1 ? '[tabs style="" delay="0" vertical="false"] ' : '';
foreach($orderby as $current_order):
echo count($orderby)>1 ? ' [tab title="'.$this->get_section_title($current_order).'"] ' : '';
if($current_order == 'comments'):
$comments = get_comments(array(
'status' => 'approve',
'number' => $number,
));
?>
$c):
$post = get_post($c->comment_post_ID);
?>
-
$number,
'nopaging' => 0,
'orderby' => $current_order,
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
);
if(!empty($instance['cat']))
$query['cat'] = implode(',', $instance['cat']);
$r = new WP_Query($query);
$i = 0;
if ($r->have_posts()):
?>
have_posts()): $r->the_post(); ?>
-
post_count-1): ?>
1 ? ' [/tab] ' : '';
endforeach;
echo count($orderby)>1 ? '[/tabs]' : '';
echo do_shortcode(ob_get_clean());
echo $after_widget; ?>