'pixelshow_social_widget', 'description' => esc_html__('A widget that displays your social icons', 'belinni-lite') ); $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'pixelshow_social_widget' ); parent::__construct( 'pixelshow_social_widget', esc_html__('Belinni: Social Icons', 'belinni-lite'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); $facebook = $instance['facebook']; $twitter = $instance['twitter']; $googleplus = $instance['googleplus']; $instagram = $instance['instagram']; $bloglovin = $instance['bloglovin']; $youtube = $instance['youtube']; $tumblr = $instance['tumblr']; $pinterest = $instance['pinterest']; $dribbble = $instance['dribbble']; $soundcloud = $instance['soundcloud']; $vimeo = $instance['vimeo']; $linkedin = $instance['linkedin']; $rss = $instance['rss']; /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if ( $title ) echo $before_title . $title . $after_title; ?>
'Subscribe & Follow', 'facebook' => '1', 'twitter' => '1', 'instagram' => '1', 'googleplus' => '0', 'bloglovin' => '0', 'youtube' => '0', 'tumblr' => '0', 'pinterest' => '0', 'dribbble' => '0', 'soundcloud' => '0', 'vimeo' => '0', 'linkedin' => '0', 'rss' => '0'); $instance = wp_parse_args( (array) $instance, $defaults ); ?>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>