__( 'Ticker from SimpleTicker.', 'simple-ticker'), ) // Args ); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if ($title) { echo $before_widget; echo $before_title . $title . $after_title; include_once( SIMPLETICKER_PLUGIN_BASE_DIR . '/inc/SimpleTicker.php' ); $simpleticker = new SimpleTicker(); echo $simpleticker->read_tickers(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); unset($simpleticker); echo $after_widget; } } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { if (isset($instance['title'])) { $title = esc_attr($instance['title']); } else { $title = NULL; } ?>