'evolve_tabs', 'description' => __( 'Popular posts, recent post and comments.', 'evolve' ) ); $control_ops = array('id_base' => 'evolve_tabs-widget'); $this->WP_Widget('evolve_tabs-widget', 'evolve: Tabs', $widget_ops, $control_ops); } function widget($args, $instance) { global $data, $post; extract($args); $posts = $instance['posts']; $comments = $instance['comments']; $tags_count = $instance['tags']; $show_popular_posts = isset($instance['show_popular_posts']) ? 'true' : 'false'; $show_recent_posts = isset($instance['show_recent_posts']) ? 'true' : 'false'; $show_comments = isset($instance['show_comments']) ? 'true' : 'false'; $show_tags = isset($instance['show_tags']) ? 'true' : 'false'; $orderby = $instance['orderby']; if(!$orderby) { $orderby = 'Highest Comments'; } echo $before_widget; ?>
3, 'comments' => '3', 'tags' => 3, 'show_popular_posts' => 'on', 'show_recent_posts' => 'on', 'show_comments' => 'on', 'show_tags' => 'on', 'orderby' => 'Highest Comments'); $instance = wp_parse_args((array) $instance, $defaults); ?>

id="get_field_id('show_popular_posts'); ?>" name="get_field_name('show_popular_posts'); ?>" />

id="get_field_id('show_recent_posts'); ?>" name="get_field_name('show_recent_posts'); ?>" />

id="get_field_id('show_comments'); ?>" name="get_field_name('show_comments'); ?>" />