} ?> <?php thb_post_before(); ?> <li class="item <?php echo implode(" ", $itemclass); ?> "> <?php thb_post_start(); ?> <?php thb_portfolio_item(array('work_featured_image' => $work_featured_image, 'post' => $post, 'work_categories' => $cats, 'portfolio_item_template' => $portfolio_item_template, 'i' => $i)); ?> <?php thb_post_end(); ?> </li> <?php thb_post_after(); ?> <?php $i++; } }
?> <?php if (have_posts()) { ?> <ul class="<?php echo $classes; ?> " <?php thb_attributes($data_attrs); ?> > <?php while (have_posts()) { ?> <?php the_post(); ?> <?php thb_portfolio_item(array('portfolio_item_template' => $portfolio_item_template)); ?> <?php } ?> </ul> <?php } wp_reset_query();