'mts_subscribe_widget', 'description' => __('Feedburner Subscription Widget.', 'mythemeshop') ); /* Widget control settings. */ // $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'mts_subscribe_widget' ); /* Create the widget. */ // $this->WP_Widget( 'mts_subscribe_widget', __('MyThemeShop: Subscribe Widget', 'mythemeshop'), $widget_ops, $control_ops ); // } class mts_Subscribe_Widget extends WP_Widget { public function __construct() { $widget_ops = array( 'classname' => 'mts_subscribe_widget', 'description' => __('Feedburner Subscription Widget.', 'mythemeshop') ); parent::__construct('mts_subscribe_widget', __('MyThemeShop: Subscribe Widget', 'mythemeshop'), $widget_ops); } /*-----------------------------------------------------------------------------------*/ /* Display Widget /*-----------------------------------------------------------------------------------*/ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); $desc = $instance['desc']; /* Before widget (defined by themes). */ echo $before_widget; /* Display Widget */ ?>