public function form($instance)
 {
     $instance = wp_parse_args((array) $instance, $this->widget_defaults());
     //title
     openstrap_widget_field($this, array('field' => 'title', 'label' => __('Title:', 'openstrap')), $instance['title']);
     //facebook
     openstrap_widget_field($this, array('field' => 'show_facebook_icon', 'label' => __('Display Facebook Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_facebook_icon']);
     openstrap_widget_field($this, array('field' => 'facebook_profile', 'label' => __('Facebook Profile:', 'openstrap'), 'type' => 'text'), $instance['facebook_profile']);
     //twitter
     openstrap_widget_field($this, array('field' => 'show_twitter_icon', 'label' => __('Display Twitter Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_twitter_icon']);
     openstrap_widget_field($this, array('field' => 'twitter_profile', 'label' => __('Twitter Profile:', 'openstrap'), 'type' => 'text'), $instance['twitter_profile']);
     //googleplus
     openstrap_widget_field($this, array('field' => 'show_googleplus_icon', 'label' => __('Display Google+ Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_googleplus_icon']);
     openstrap_widget_field($this, array('field' => 'googleplus_profile', 'label' => __('Google+ Profile:', 'openstrap'), 'type' => 'text'), $instance['googleplus_profile']);
     //linkedin
     openstrap_widget_field($this, array('field' => 'show_linkedin_icon', 'label' => __('Display LinkedIn Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_linkedin_icon']);
     openstrap_widget_field($this, array('field' => 'linkedin_profile', 'label' => __('LinkedIn Profile:', 'openstrap'), 'type' => 'text'), $instance['linkedin_profile']);
     //pinterest
     openstrap_widget_field($this, array('field' => 'show_pinterest_icon', 'label' => __('Display Pinterest Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_pinterest_icon']);
     openstrap_widget_field($this, array('field' => 'pinterest_profile', 'label' => __('LinkedIn Pinterest:', 'openstrap'), 'type' => 'text'), $instance['pinterest_profile']);
     //rss
     openstrap_widget_field($this, array('field' => 'show_rss_icon', 'label' => __('Display RSS Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_rss_icon']);
     openstrap_widget_field($this, array('field' => 'rss_profile', 'label' => __('LinkedIn RSS:', 'openstrap'), 'type' => 'text'), $instance['rss_profile']);
     //rss
     openstrap_widget_field($this, array('field' => 'show_youtube_icon', 'label' => __('Display Youtube Icon :', 'openstrap'), 'type' => 'checkbox'), $instance['show_youtube_icon']);
     openstrap_widget_field($this, array('field' => 'youtube_profile', 'label' => __('Youtube Profile:', 'openstrap'), 'type' => 'text'), $instance['youtube_profile']);
     openstrap_widget_field($this, array('field' => 'icon_style', 'type' => 'select', 'label' => __('Select Style: ', 'openstrap'), 'options' => array(array('key' => 'small', 'name' => __('Small', 'openstrap')), array('key' => 'large', 'name' => __('Default', 'openstrap')), array('key' => '2x', 'name' => __('Large', 'openstrap')), array('key' => '3x', 'name' => __('Extra Large', 'openstrap'))), 'class' => ''), $instance['icon_style']);
 }
 public function form($instance)
 {
     $instance = wp_parse_args((array) $instance, $this->widget_defaults());
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_unique_id', 'desc' => __('Feedburner Id:', 'openstrap'), 'type' => 'label'), $instance['feedburner_unique_id']);
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_unique_id', 'type' => 'text'), $instance['feedburner_unique_id']);
     openstrap_widget_field($this, array('field' => 'feedburner_unique_id', 'type' => 'label', 'desc' => __('(e.g: opencodez) ', 'openstrap')), '');
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_title_text', 'desc' => __('Title Text:', 'openstrap'), 'type' => 'label'), $instance['feedburner_title_text']);
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_title_text', 'type' => 'text'), $instance['feedburner_title_text']);
     openstrap_widget_field($this, array('field' => 'feedburner_title_text', 'type' => 'label', 'desc' => __('(e.g: Email Newsletter) ', 'openstrap')), '');
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_sub_text', 'desc' => __('Sub Text:', 'openstrap'), 'type' => 'label'), $instance['feedburner_sub_text']);
     openstrap_widget_field($this, array('ptag' => false, 'field' => 'feedburner_sub_text', 'type' => 'text'), $instance['feedburner_sub_text']);
     openstrap_widget_field($this, array('field' => 'feedburner_sub_text', 'type' => 'label', 'desc' => __("(e.g: Sign up to receive email updates and to hear what's going on with our company!)", 'openstrap')), '');
     openstrap_widget_field($this, array('field' => 'feedburner_style', 'type' => 'select', 'label' => __('Style: ', 'openstrap'), 'options' => array(array('key' => 'dark', 'name' => __('Dark', 'openstrap')), array('key' => 'light', 'name' => __('Light', 'openstrap'))), 'class' => ''), $instance['feedburner_style']);
 }
 public function form($instance)
 {
     $instance = wp_parse_args((array) $instance, $this->widget_defaults());
     openstrap_widget_field($this, array('field' => 'title', 'label' => __('Title:', 'openstrap')), $instance['title']);
     openstrap_widget_field($this, array('field' => 'image', 'label' => __('Image:', 'openstrap'), 'type' => 'media'), $instance['image']);
     openstrap_widget_field($this, array('field' => 'thumbnail', 'type' => 'select', 'label' => __('Image Size:', 'openstrap'), 'options' => openstrap_thumbnail_array(), 'class' => ''), $instance['thumbnail']);
     if ($instance['image']) {
         echo wp_get_attachment_image($instance['image'], openstrap_thumbnail_size($instance['thumbnail']), false, array('class' => 'widget-image'));
     }
     openstrap_widget_field($this, array('field' => 'headline', 'label' => __('Headline:', 'openstrap')), $instance['headline']);
     openstrap_widget_field($this, array('field' => 'tagline', 'label' => __('Tagline:', 'openstrap'), 'type' => 'textarea'), $instance['tagline']);
     openstrap_widget_field($this, array('field' => 'action_url', 'label' => __('Action URL:', 'openstrap'), 'type' => 'url'), $instance['action_url']);
     openstrap_widget_field($this, array('field' => 'action_label', 'label' => __('Action Label:', 'openstrap')), $instance['action_label']);
     openstrap_widget_field($this, array('field' => 'alignment', 'type' => 'select', 'label' => __('Alignment: ', 'openstrap'), 'options' => array(array('key' => 'left', 'name' => __('Left', 'openstrap')), array('key' => 'center', 'name' => __('Center', 'openstrap')), array('key' => 'right', 'name' => __('Right', 'openstrap'))), 'class' => ''), $instance['alignment']);
     openstrap_widget_field($this, array('field' => 'action_color', 'type' => 'select', 'label' => __('Action Button: ', 'openstrap'), 'options' => array(array('key' => 'primary', 'name' => __('Primary', 'openstrap')), array('key' => 'info', 'name' => __('Info', 'openstrap')), array('key' => 'warning', 'name' => __('Warning', 'openstrap')), array('key' => 'danger', 'name' => __('Danger', 'openstrap')), array('key' => 'success', 'name' => __('Success', 'openstrap')), array('key' => 'default', 'name' => __('Default', 'openstrap'))), 'class' => ''), $instance['action_color']);
 }