<?php

/**
 * The template to display portfolio content
 *
 * @package Hanna
 * @since Hanna 1.0
 */
$class = 'on' == get_post_meta($post->ID, '_zilla_image_opacity', true) ? 'lower-opacity' : '';
$class = $class . ' ' . ($term_list = hanna_get_the_term_slugs($post->ID, 'portfolio-type'));
zilla_post_before();
?>
<!--BEGIN .post -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class($class);
?>
>
<?php 
zilla_post_start();
?>

	<?php 
$portfolio_custom_fields = array();
$portfolio_custom_fields['display_gallery'] = get_post_meta($post->ID, '_tzp_display_gallery', true);
$portfolio_custom_fields['display_audio'] = get_post_meta($post->ID, '_tzp_display_audio', true);
$portfolio_custom_fields['display_video'] = get_post_meta($post->ID, '_tzp_display_video', true);
?>
<?php

/**
 * Displays a simplized form of portfolios posts
 *
 * @package  Hanna
 * @since  Hanna 1.0
 */
$term_list = hanna_get_the_term_slugs($post->ID, 'portfolio-type');
zilla_post_before();
?>
<!--BEGIN .post -->
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class($term_list);
?>
>
<?php 
zilla_post_start();
?>

	<div class="entry-thumbnail">
		<a href="<?php 
the_permalink();
?>
">
			<?php 
the_post_thumbnail('portfolio-featured-image');
?>