'jellywp_social_iconss_widget', 'description' => esc_html__( 'Social icons widget' , 'nanopress') ); parent::__construct('nanopress_social_iconss_widget', esc_html__('jellywp: Social icons', 'nanopress'), $widget_ops); } /*-----------------------------------------------------------------------------------*/ /* Display Widget /*-----------------------------------------------------------------------------------*/ function widget($args,$instance){ extract($args); $title = $instance['title']; $facebook = $instance['facebook']; $google_plus = $instance['google_plus']; $behance = $instance['behance']; $vimeo = $instance['vimeo']; $youtube = $instance['youtube']; $instagram = $instance['instagram']; $tumblr = $instance['tumblr']; $linkedin = $instance['linkedin']; $pinterest = $instance['pinterest']; $twitter = $instance['twitter']; $deviantart = $instance['deviantart']; $dribble = $instance['dribble']; $dropbox = $instance['dropbox']; $rss = $instance['rss']; $skype = $instance['skype']; $stumbleupon = $instance['stumbleupon']; $wordpress = $instance['wordpress']; $yahoo = $instance['yahoo']; $flickr = $instance['flickr']; $sound_cloud = $instance['sound_cloud']; ?>
"; } /*-----------------------------------------------------------------------------------*/ /* Update Widget /*-----------------------------------------------------------------------------------*/ function update($new_instance, $old_instance){ $instance = $old_instance; $instance['title'] = $new_instance['title']; $instance['facebook'] = $new_instance['facebook']; $instance['google_plus'] = $new_instance['google_plus']; $instance['behance'] = $new_instance['behance']; $instance['vimeo'] = $new_instance['vimeo']; $instance['youtube'] = $new_instance['youtube']; $instance['tumblr'] = $new_instance['tumblr']; $instance['instagram'] = $new_instance['instagram']; $instance['linkedin'] = $new_instance['linkedin']; $instance['pinterest'] = $new_instance['pinterest']; $instance['twitter'] = $new_instance['twitter']; $instance['blogger'] = $new_instance['blogger']; $instance['deviantart'] = $new_instance['deviantart']; $instance['dribble'] = $new_instance['dribble']; $instance['dropbox'] = $new_instance['dropbox']; $instance['rss'] = $new_instance['rss']; $instance['skype'] = $new_instance['skype']; $instance['stumbleupon'] = $new_instance['stumbleupon']; $instance['wordpress'] = $new_instance['wordpress']; $instance['yahoo'] = $new_instance['yahoo']; $instance['flickr'] = $new_instance['flickr']; $instance['sound_cloud'] = $new_instance['sound_cloud']; return $instance; } function form($instance){ ?> esc_html__( 'Connect with us' , 'nanopress'), 'facebook' => '#', 'google_plus' => '#', 'behance' => '#', 'vimeo' => '#', 'youtube' => '#', 'tumblr' => '#', 'instagram' => '#', 'linkedin' => '#', 'pinterest' => '#', 'twitter' => '#', 'blogger' => '#', 'deviantart' => '#', 'dribble' => '#', 'dropbox' => '#', 'rss' => '#', 'skype' => '#', 'stumbleupon' => '#', 'wordpress' => '#', 'yahoo' => '#', 'flickr' => '#', 'sound_cloud' => '#'); $instance = wp_parse_args((array) $instance, $defaults); ?>