<div <?php post_class('blog-post'); ?>>
	<?php if(has_post_thumbnail()){ ?>
	<div class="post-gallery">
		<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
	</div>
	<?php } ?>
	<div class="post-content">
		<?php $cats =get_the_category(); ?>
		<span><?php $i=1; foreach($cats as $cat){ if($i>1){echo ' ,';} echo esc_html($cat->name);  $i++;} ?></span>
		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
		<?php do_action('photofolio_post_meta');?>
		<?php the_excerpt(); ?>
		
		<?php photofolio_post_share($id=get_the_ID()); ?>
	</div>
</div>