<!--BEGIN .entry-media -->
						<div class="entry-media">
							
							<?php 
        if ($portfolio_display_gallery == 'on') {
            $gallery_layout = get_post_meta($post->ID, '_zilla_gallery_layout', true);
            $slideshow = $gallery_layout == 'slideshow' ? true : false;
            $size = $media_pos == 'zilla-media-center' ? 'portfolio-full' : 'portfolio-index';
            zilla_gallery($post->ID, $size, $slideshow, $slideshow);
        }
        if ($portfolio_display_video == 'on') {
            $embed = get_post_meta($post->ID, '_zilla_video_embed_code', true);
            if (!empty($embed)) {
                echo stripslashes(htmlspecialchars_decode($embed));
            } else {
                zilla_video($post->ID, $width);
            }
        }
        if ($portfolio_display_audio == 'on') {
            zilla_audio($post->ID, $width);
        }
        ?>
						<!--END .entry-media -->
						</div>

						<!--BEGIN .entry-content -->
						<div class="entry-content">

							<h1 class="entry-title"><?php 
        the_title();
        ?>
<div class="post-thumb">

	<?php 
$embed = get_post_meta($post->ID, '_zilla_video_embed_code', true);
if (!empty($embed)) {
    echo stripslashes(htmlspecialchars_decode($embed));
} else {
    zilla_video($post->ID, 600);
}
?>

</div>

<?php 
if (is_single()) {
    ?>

	<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>

	<?php 
    get_template_part('content', 'meta-header');
    ?>

<?php 
}
?>