/** constructor */ function rotatingtweets_Widget() { parent::WP_Widget(false, $name = 'Rotating Tweets', array('description' => __('A widget to show tweets for a particular user in rotation.', 'rotatingtweets'))); if (is_active_widget(false, false, $this->id_base)) { rotatingtweets_enqueue_scripts(); } }
/** constructor */ public function __construct() { parent::__construct('rotatingtweets_widget', __('Rotating Tweets', 'rotatingtweets'), array('description' => __('A widget to show tweets for a particular user in rotation.', 'rotatingtweets'))); if (is_active_widget(false, false, $this->id_base, true)) { rotatingtweets_enqueue_scripts(); } }