<?php
/**
 * Blog Template Part for displaying entry-thumnail image
 * Used for entry overlay too.
 *
 * @package june
 * @subpackage Blog Parts
 * @since 1.0.0
 *
 */

?>

<div class="entry-media entry-overlay-<?php echo codeless_get_mod( 'blog_overlay', 'color' ) ?>">
	
	<?php 
	
	/**
	 * Blog Overlay Styles with the appropiate icon
	 * Blog Entry Link
	 */ 
	if( ! codeless_is_single_post() )
		codeless_blog_overlay();

	?>
	
	
	<div class="post-thumbnail">
		
		<?php if( codeless_get_mod( 'blog_image_filter', 'normal' ) != 'normal' ): ?>
			<figure class="<?php echo codeless_get_mod( 'blog_image_filter' ) ?>">
		<?php endif; ?>

			<?php 

			if( has_post_thumbnail() ) 
				the_post_thumbnail( codeless_get_post_thumbnail_size() ); 
			else
				codeless_placeholder_img();

			?>
			
		<?php if( codeless_get_mod( 'blog_image_filter', 'normal' ) != 'normal' ): ?>
			</figure>
		<?php endif; ?>

	</div><!-- .post-thumbnail --> 
</div><!-- .entry-media --> 