<div <?php post_class('blog-post'); ?>>
 <?php 
    $video = get_post_meta(get_the_ID(), '_photofolio_intro_video', true);
?><?php if($video!=''){ ?>
<div class="post-gallery">
	<!-- Vimeo -->
	<?php echo wp_oembed_get(get_post_meta(get_the_ID(), '_photofolio_intro_video', true)); ?>
	<!-- End Vimeo -->
</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>