'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): ?>
id="get_field_id('cover_photo'); ?>" name="get_field_name('cover_photo'); ?>" />
id="get_field_id('tagline'); ?>" name="get_field_name('tagline'); ?>" />