function hub_tabs() { if (is_hub('single')) { ?> <div id="hub-tabs"> <ul> <?php foreach (lg_hub_tab_list() as $key => $tab) { $class = null; if (get_endpoint($tab) || $key == 0 && get_current_url() == get_permalink()) { $class = 'current-tab'; } // if(is_hub()) $class = 'current-tab'; $end = $key > 0 ? $tab : null; ?> <li class="hub-tab-item <?php echo $class; ?> "><a href="<?php echo get_the_permalink() . $end; ?> "><?php echo strpretty($tab); ?> </a></li> <?php } ?> </ul> </div> <?php } }
if (is_singular()) { ?> <?php if (get_current_url() == get_permalink()) { the_detail_box() . the_content(); } if (get_endpoint('reviews')) { hub_reviews(); } if (get_endpoint('news')) { hub_posts(); } if (get_endpoint('images')) { hub_gallery(); } if (get_endpoint('videos')) { echo 'Yay Videos!'; } ?> <?php } else { the_excerpt(); } if (is_single()) { wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages', 'lewdgamer') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>')); the_review(); } ?> </section> <?php if (is_single()) {