<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_post_format_image($config = array())
 {
     $config = thb_array_asum(array('size' => 'large'), $config);
     $image = thb_get_post_format_image_src($config['size']);
     // if( is_array($image) ) {
     if (!empty($image['scaled'])) {
         thb_post_format_image_markup($image, $config);
     }
     // }
     // else {
     // 	$pattern = '/<img src="([^\"]+)"(.*)class="wp-image-(.*)/i';
     // 	preg_match_all($pattern, $image, $matches, PREG_OFFSET_CAPTURE);
     // 	if( isset($matches[1]) && !empty($matches[1]) ) {
     // 		$parsed_img = $matches[1][0][0];
     // 		$attachment_id = thb_image_get_attachment_id($parsed_img);
     // 		thb_post_format_image_markup(array(
     // 			'full' => $parsed_img,
     // 			'scaled' => thb_image_get_size($attachment_id, $config['size'])
     // 		), $config);
     // 	}
     // 	else {
     // 		echo do_shortcode($image);
     // 	}
     // }
 }