public static function categories_vertical_tabs() { global $wdwt_front; $hide_categories_vertical_tabs = $wdwt_front->get_param('hide_categories_vertical_tabs'); $categories_vertical_tabs_categories = implode(',', $wdwt_front->get_param('categories_vertical_tabs_categories', array(), array(''))); $categories_vertical_tabs_name = $wdwt_front->get_param('categories_vertical_tabs_name'); $categories_vertical_tabs_count = $wdwt_front->get_param('categories_vertical_tabs_count'); $grab_image = $wdwt_front->get_param('grab_image'); $blog_style = $wdwt_front->get_param('blog_style'); $wp_query = new WP_Query("posts_per_page=" . $categories_vertical_tabs_count . "&ignore_sticky_posts=1&cat=" . $categories_vertical_tabs_categories . "&orderby=title&order=DESC"); if ($hide_categories_vertical_tabs) { ?> <div id="wd-categories-vertical-tabs"> <h2 style="border-bottom: 3px solid #f1f1f1 !important;"><?php echo $categories_vertical_tabs_name; ?> </h2> <div class="arrows-block"> <div class="arrow-up"><a href="#up"></a></div> <div class="tabs-block" > <div class="tabs-scroll-block" style="top: 0px;"> <ul class="tabs" data-visible="<?php echo $categories_vertical_tabs_count; ?> " data-count="<?php echo $categories_vertical_tabs_count; ?> "> <?php if (have_posts()) { $i = 1; while ($wp_query->have_posts()) { $wp_query->the_post(); $vertical_id = $i++; ?> <li <?php if ($vertical_id == 1) { echo 'class="active"'; } ?> > <a href="#<?php echo $vertical_id; ?> "> <p style="font-size: 20px;"><?php the_title(); ?> </p> <span class="date"><?php echo get_the_time('M d, Y'); ?> </span> </a> </li> <?php } } ?> </ul> </div> </div> <div class="arrow-down"><a href="#down"></a></div> </div> <div class="content-block"> <ul class="content"> <?php if (have_posts()) { $ii = 1; while ($wp_query->have_posts()) { $wp_query->the_post(); $vertical_tabs_id = $ii++; ?> <li <?php if ($vertical_tabs_id == 1) { echo 'class="active"'; } ?> id="categories-vertical-tabs-content-<?php echo $vertical_tabs_id; ?> "> <div class="image_for_vertcat"> <?php if ($grab_image) { echo news_magazine_frontend_functions::display_thumbnail(500, 500); } else { echo news_magazine_frontend_functions::thumbnail(500, 500); } ?> </div> <div class="text"> <p> <?php news_magazine_frontend_functions::the_excerpt_max_charlength(1100); ?> </p> </div> <div class="tabs-more"> <a class="tab-more" href="<?php echo get_permalink(); ?> ">More Information</a> </div> </li> <?php } } ?> </ul> </div> <?php wp_reset_postdata(); ?> <div class="clear"></div> <?php $wdwt_front->bottom_advertisment(); ?> </div> <?php } }
?> </h2> </a><?php if ($date_enable) { ?> <div class="home-post-date"> <?php echo news_magazine_frontend_functions::posted_on(); ?> </div> <?php } if ($grab_image) { echo news_magazine_frontend_functions::display_thumbnail(150, 150); } else { echo news_magazine_frontend_functions::thumbnail(150, 150); } if ($blog_style) { the_excerpt(); } else { the_content(__('More', "news-magazine")); } ?> <div class="clear"></div> </div> <?php } if ($wp_query->max_num_pages > 2) { ?> <div class="page-navigation">