</h1> <?php if ($woo_options['woo_portfolio_section_message'] && $woo_options['woo_portfolio_section_message'] != '') { ?> <p><span><?php echo stripslashes(esc_attr($woo_options['woo_portfolio_section_message'])); ?> </span></p> <?php } ?> <?php /* Display the gallery navigation (from theme-functions.php). */ woo_portfolio_navigation($galleries, array('current' => $current), $toggle_pagination); ?> </header> <div id="portfolio" class="portfolio-items type-page fix"> <?php echo term_description(); ?> <?php while (have_posts()) { the_post(); $count++; /* Get the settings for this portfolio item. */ $settings = woo_portfolio_item_settings($post->ID); /* If the theme option is set to link to the single portfolio item, adjust the $settings. */
} $query_args['tax_query'] = array(array('taxonomy' => 'portfolio-gallery', 'field' => 'slug', 'terms' => $gallery_slugs)); } /* The Query. */ query_posts($query_args); } // End IF Statement ( is_tax() ) /* The Loop. */ if (have_posts()) { $count = 0; ?> <div id="portfolio"> <?php /* Display the gallery navigation (from theme-functions.php). */ if (is_page() || is_post_type_archive()) { woo_portfolio_navigation($galleries); } ?> <div class="portfolio-items"> <?php while (have_posts()) { the_post(); $count++; /* Get the settings for this portfolio item. */ $settings = woo_portfolio_item_settings($post->ID); /* If the theme option is set to link to the single portfolio item, adjust the $settings. */ if (isset($woo_options['woo_portfolio_linkto']) && $woo_options['woo_portfolio_linkto'] == 'post') { $settings['large'] = get_permalink($post->ID); $settings['rel'] = ''; } ?>