'blacklite_social_widget', 'description' => esc_html__('A widget that displays your social icons', 'blacklite')); parent::__construct('blacklite_social_widget', esc_html__('ZThemes: Social Icons', 'blacklite'), $widget_ops); } 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' => 'on', 'twitter' => 'on', 'instagram' => 'on', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

Note: Set your social links in the Customizer

/>

/>

/>

/>

/>

/>

/>

/>

/>

/>

/>

/>

/>