__CLASS__, 'description' => __('Display a list of posts that are scheduled to be published.','comicpress') ); $this->WP_Widget(__CLASS__, __('ComicPress Scheduled Posts','comicpress'), $widget_ops); } } function widget($args, $instance) { extract($args, EXTR_SKIP); echo '
'; echo $before_widget; $title = empty($instance['title']) ? __('Scheduled Posts','comicpress') : apply_filters('widget_title', $instance['title']); if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; $scheduled_posts = get_posts('post_status=future&numberposts=-1'); if (empty($scheduled_posts)) { echo ''; } else { ?> '; } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = strip_tags($instance['title']); ?>