"facebook", "twitter" => "twitter", "pinterest" => "pinterest", "instagram" => "instagram", "googleplus" => "google-plus", "dribbble" => "dribbble", "skype" => "skype", "wordpress" => "wordpress", "vimeo" => "vimeo-square", "flickr" => "flickr", "linkedin" => "linkedin", "youtube" => "youtube", "tumblr" => "tumblr", "link" => "link", "stumbleupon" => "stumbleupon", "delicious" => "delicious", ); function __construct() { $widget_ops = array( 'classname' => 'widget_social', 'description' => esc_html__('Displays your social profile.', 'arktheme') ); parent::__construct(false, esc_html__(': Social Links', 'arktheme'), $widget_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); print($before_widget); if( $title ){ echo "$before_title $title $after_title"; } echo ''; print($after_widget); } function update($new_instance, $old_instance) { $instance = $old_instance; /* Strip tags (if needed) and update the widget settings. */ $instance['title'] = sanitize_text_field($new_instance['title']); foreach ($this->social_icons as $social => $icon) { $instance['social_' . $social] = sanitize_text_field($new_instance['social_' . $social]); } return $instance; } function form($instance) { ?>

social_icons as $social => $icon) { ?>