<?php
/**
 * @package White
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4 col-sm-4 grid'); ?>>

		<div class="featured-thumb col-md-12">
			<?php if (has_post_thumbnail()) : ?>	
				<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_post_thumbnail('grid'); ?></a>
			<?php else: ?>
				<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder.jpg"; ?>"></a>
			<?php endif; ?>
			
			<div class="in-thumb col-md-12">
				<header class="entry-header">
					<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php echo (strlen(get_the_title()) > 60 ? substr(get_the_title(),0,60)."..." : get_the_title() ); ?></a></h1>
				</header><!-- .entry-header -->
			</div><!--.in-thumb-->
			
		</div><!--.featured-thumb-->
		
</article><!-- #post-## -->