echo implode(' ', $class); ?> "> <?php echo $content; ?> <?php foreach ($items as $item) { ?> <div class="item"> <?php if (!isset($thumb) || $thumb) { ?> <?php $post_featured_image = thb_get_post_thumbnail_src($item->ID, 'large'); ?> <?php if (!empty($post_featured_image)) { ?> <a href="<?php echo $post_featured_image; ?> " class="item-thumb" title="<?php echo apply_filters('the_title', $item->post_title); ?> "> <img src="<?php echo $post_featured_image; ?> " alt="">
</div> <?php } ?> </div> <?php } ?> <ul class="list"> <?php foreach ($items as $item) { ?> <?php $thumbnail_image = thb_get_post_thumbnail_src($item->ID, 'micro'); ?> <li class="item<?php if ($thumb == 0 || empty($thumbnail_image)) { ?> no-thumb<?php } ?> "> <?php if ($thumb && !empty($thumbnail_image)) { ?> <a class="item-thumb" href="<?php echo get_permalink($item->ID); ?> ">
<div class="single-work-slideshow-container"> <?php if (count($slideshow->getSlides()) > 0) { ?> <?php if (thb_get_featured_image($thb_page_id) != '') { $slideshow->addCoverSlide(get_post_thumbnail_id($thb_page_id)); } thb_get_template_part('config/modules/core/slideshows/submodules/flexslider/templates/slideshow', array('slideshow' => $slideshow, 'meta' => array('flexslider_smoothHeight' => '1', 'slideshowHeight' => '0', 'flexslider_effects' => 'fade', 'transition_speed' => 0.25, 'delay' => 4), 'id' => 'thb-single-work-slideshow')); ?> <?php } else { ?> <?php thb_post_format_image_markup(array('full' => thb_get_post_thumbnail_src($thb_page_id, 'full'), 'scaled' => thb_get_post_thumbnail_src($thb_page_id, 'large-cropped'))); ?> <?php } ?> </div> <?php } } ?> <?php get_template_part('partial-header-closure'); ?> <?php
function thb_get_featured_image($post_id = null, $size = 'full') { return thb_get_post_thumbnail_src($post_id, $size); }
</div> <?php } ?> </div> <?php } ?> <ul class="list"> <?php foreach ($items as $item) { ?> <?php $thumbnail_image = thb_get_post_thumbnail_src($item->ID, $thumb_size); ?> <li class="item<?php if ($thumb == 0 || empty($thumbnail_image)) { ?> no-thumb<?php } ?> "> <?php if ($thumb && !empty($thumbnail_image)) { ?> <a class="item-thumb" href="<?php echo get_permalink($item->ID); ?> ">
<?php $sizes = thb_get_post_meta(get_the_ID(), 'single_featured_size'); $post_featured_image = thb_get_post_thumbnail_src(get_the_ID(), $sizes); ?> <?php if (!empty($post_featured_image)) { ?> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> " class="item-thumb"> <span class="thb-overlay"></span> <img src="<?php echo $post_featured_image; ?> " alt=""> </a> <?php }
<?php $post_featured_image = thb_get_post_thumbnail_src(get_the_ID(), 'thumb-360'); ?> <?php if (!empty($post_featured_image)) { ?> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> " class="item-thumb"> <span class="thb-overlay"></span> <img src="<?php echo $post_featured_image; ?> " alt=""> </a> <?php } ?> <div class="item-wrapper<?php if (!empty($post_featured_image)) { ?> w-featured-image<?php } ?>
<?php /** * Starting the loop */ $i = 0; if (have_posts()) { while (have_posts()) { the_post(); /** * Retrieving post data */ $post_id = get_the_ID(); $post_format = get_post_format(); $image = thb_get_post_thumbnail_src($post_id, "large-cropped"); $image_full = thb_get_post_thumbnail_src($post_id, "full"); $post_classes = thb_get_post_classes($i, array('item list'), 2); // Post template ================================================================== ?> <?php thb_post_before(); ?> <article id="post-<?php echo $post_id; ?> " <?php post_class($post_classes); ?> >