'imagmag_themepacific_tweets', 'description' => 'To show latest Tweets.'); /* Widget control settings. */ $control_ops = array('id_base' => 'imagmag_themepacific_tweets_widget'); /* Create the widget. */ $this->WP_Widget('imagmag_themepacific_tweets_widget', 'ThemePacific: Tweets Widget', $widget_ops, $control_ops); } /** * Display the widget */ function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $twit_id = $instance['twit_id']; $twitposts = $instance['twitposts']; echo $before_widget; /* Display the widget title if it has*/ if($title) { echo $before_title.$title.$after_title; } if($twit_id): ?>