__CLASS__, 'description' => __( 'Display a list of the latest comics.', 'comic-easel' ), ) // Args ); } function widget($args, $instance) { global $post; extract($args, EXTR_SKIP); echo $before_widget; ceo_protect(); $title = empty($instance['title']) ? __('Latest Comics','comic-easel') : apply_filters('widget_title', $instance['title']); if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; $args = array( 'showposts' => (int)$instance['count'], 'post_type' => 'comic' ); $latestcomics = get_posts($args); ?> '', 'count' => 5 ) ); $title = wp_strip_all_tags($instance['title']); $count = (int)$instance['count']; if (($count > 50) || ($count < 1)) $count = 5; ?>