<?php
/**
 * The template used for displaying content in template-home.php
 */
?>

<?php $num_home_posts_cat = esc_attr( get_theme_mod( 'num_featured_posts_cat', 3 ) ); ?>
<div class="<?php if ( $num_home_posts_cat == 4 ) { echo "medium-3"; } else { echo "medium-4"; } ?> small-12 columns">

	<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>

		<div class="featured-image">
			<?php // Featured Image
			if ( has_post_thumbnail() ) { 

				echo '<a href="' . esc_url( get_permalink() ) . '">';
				the_post_thumbnail( 'culinary-blog-post' );
				echo '</a>';

			} // end featured image ?>
		</div><!-- .featured-image -->

		<header class="entry-header">
			<?php the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>

			<?php if ( 'post' == get_post_type() ) : ?>
			<div class="entry-date">
				<?php the_time( get_option( 'date_format' ) ); ?>
			</div><!-- .entry-date -->
			<?php endif; ?>
		</header><!-- .entry-header -->

	</article><!-- #post-## -->

</div><!-- .large-4 -->