'arras_tabbed_sidebar', 'description' => __('Sidebar containing tabs that displays posts, comments and tags.', 'arras'), ); $this->WP_Widget('arras_tabbed_sidebar', __('Tabbed Sidebar', 'arras'), $widget_args); } function widget($args, $instance) { global $wpdb; extract($args, EXTR_SKIP); if (!$instance['order']) $instance['order'] = array('featured', 'latest', 'comments', 'tags'); if ($instance['display_home'] && !is_home()) return; $featured = arras_get_option('featured_cat'); ?>
checked="checked" />
Popularity Contest is enabled.', 'arras') ?>
__('None', 'arras'), 'featured' => __('Featured Posts', 'arras'), 'latest' => __('Latest Posts', 'arras'), 'comments' => __('Recent Comments', 'arras'), 'tags' => __('Tag Cloud', 'arras') ); if ( function_exists('akpc_most_popular') ) { $opts['popular'] = __('Popular Posts', 'arras'); } if (!$selected) $selected = $default; foreach ( $opts as $id => $val ) { echo ''; } } function render_sidebar_tabs($order, $show_featured) { $order = array_unique($order); $list = array( 'latest' => __('Latest', 'arras'), 'comments' => __('Comments', 'arras'), 'tags' => __('Tag Cloud', 'arras'), 'popular' => __('Popular', 'arras') ); $count = 0; if ($show_featured) $list['featured'] = __('Featured', 'arras'); foreach ($order as $t) { if (!$show_featured) { if ($t == 'featured') continue; } if ($t != 'none') { ?>