'mts_googleplus', 'description' => __('Add Google Plus Badge Box.','mythemeshop')); $control_ops = array('id_base' => 'google-badge-box'); parent::__construct('google-badge-box', __('MyThemeShop: Google Plus Badge Box','mythemeshop'), $widget_ops, $control_ops); } */ class mts_googleplus_Widget extends WP_Widget { public function __construct() { $widget_ops = array( 'classname' => 'mts_googleplus_widget', 'description' => __('Display Google+ Badge.', 'your-text-domain') ); parent::__construct('mts_googleplus_widget', __('Google+ Widget', 'your-text-domain'), $widget_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $page_type = $instance['page_type']; $page_url = $instance['page_url']; $width = $instance['width']; $color_scheme = $instance['color_scheme']; $gp_layout = $instance['gp_layout']; $cover_photo = isset($instance['cover_photo']) ? 'true' : 'false'; $tagline = isset($instance['tagline']) ? 'true' : 'false'; echo $before_widget; if($title) { echo $before_title.$title.$after_title; } if($page_url): ?>
class="g-person"class="g-page"class="g-community" data-width="" data-href="" data-layout="" data-theme="" data-rel="publisher" data-showtagline="" data-showcoverphoto="">
__('Find us on Google Plus','mythemeshop'), 'page_url' => '', 'width' => '300', 'color_scheme' => 'light', 'gp_layout' => 'portrait', 'page_type' => 'profile', 'cover_photo' => 'on', 'tagline' => 'on'); $instance = wp_parse_args((array) $instance, $defaults); ?>

id="get_field_id('cover_photo'); ?>" name="get_field_name('cover_photo'); ?>" />

id="get_field_id('tagline'); ?>" name="get_field_name('tagline'); ?>" />