</div><!-- /shadowblock_out --> <?php } ?> <?php } // is_tax ?> <?php if (is_search()) { // build the advanced sidebar search cp_show_refine_search(get_query_var('scat')); } // is_search ?> <?php appthemes_before_sidebar_widgets(); ?> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar_main')) { } else { ?> <!-- no dynamic sidebar setup -->
<?php } ?> <?php if (is_tax(APP_TAX_CAT)) { // go get the taxonomy category id so we can filter with it // have to use slug instead of name otherwise it'll break with multi-word cats if (!isset($filter)) { $filter = ''; } $ad_cat_array = get_term_by('slug', get_query_var(APP_TAX_CAT), APP_TAX_CAT, ARRAY_A, $filter); // build the advanced sidebar search cp_show_refine_search($ad_cat_array['term_id']); // show all subcategories if any $args = array('hide_empty' => 0, 'show_count' => 1, 'title_li' => '', 'echo' => 0, 'show_option_none' => 0, 'taxonomy' => APP_TAX_CAT, 'depth' => 1, 'child_of' => $ad_cat_array['term_id']); $subcats = wp_list_categories($args); if (!empty($subcats)) { ?> <div class="shadowblock_out"> <div class="shadowblock"> <h2 class="dotted"><?php _e('Sub Categories', APP_TD); ?> </h2> <ul>