</div> <div class="seasonFilter left"> <span>Current Seasons</span> <a href="http://www.fashionbeans.com/category/mens-look-books/?season=ss13">Spring/Summer 2013</a> <a href="http://www.fashionbeans.com/category/mens-look-books/?season=aw13">Autumn/Winter 2013</a> <div class="break"></div> </div> <div class="break"></div> <span class="closeFilters">Close Filters</span> </div> --> </div> <div class="break"></div> <div class="lookbookCategory"> <?php query_posts(array('post_status' => 'publish', 'posts_per_page' => 30, 'paged' => $paged, 'cat' => get_current_catid())); if (have_posts()) { $count = 1; while (have_posts()) { the_post(); ?> <div class="lookbooks" <?php echo $count % 3 == 0 ? 'style="margin-right:0px;"' : ''; ?> > <a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title(); ?>
/** * Get Sub menu for Header menu */ function get_sub_menu() { global $post; if (is_home()) { return; } elseif (is_single()) { $cat_post = get_the_category($post->ID); $current_cat_id = $cat_post[0]->cat_ID; $current_parent_cat_id = get_parent_current_cat_id_by_cat_name($cat_post[0]->cat_name); } elseif (is_category()) { $current_cat_id = get_current_catid(); $current_parent_cat_id = get_current_parent_catid(); } else { return; } $childrens = get_categories(array('child_of' => $current_parent_cat_id, 'hide_empty' => 0)); if (count($childrens) > 0) { echo '<div class="secondaryMenu"><strong>Xem thêm:</strong>'; foreach ($childrens as $children) { $active_sub_menu = $children->cat_ID == $current_cat_id ? ' class="underline bold"' : ''; echo '<a href="' . get_category_link($children->cat_ID) . '"' . $active_sub_menu . '>' . $children->cat_name . '</a>'; } echo '<div class="break"></div></div>'; } }