'widget_comicpress_show_scheduled_posts', 'description' => 'Display a list of posts that are scheduled to be published.' ); $this->WP_Widget('show_scheduled_posts', 'Scheduled Posts', $widget_ops); } function widget($args, $instance) { extract($args, EXTR_SKIP); echo '
'; echo $before_widget; $title = empty($instance['title']) ? 'Scheduled Posts' : 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 { foreach($scheduled_posts as $post) : ?> '; } 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']); ?>