<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>

<?php
	$post_meta = get_post_meta( $post_ID, '_vouge_post_settings', TRUE );
	$post_meta = is_array( $post_meta ) ? $post_meta  : array();

	$post_format = !empty( $post_meta['post-format-type'] ) ? $post_meta['post-format-type'] : get_post_format();

	$template_args['post_ID'] = $post_ID;
	$template_args['meta'] = $post_meta;
	$template_args['enable_video_audio'] = $enable_video_audio;
	$template_args['enable_gallery_slider'] = $enable_gallery_slider; ?>

	<!-- Featured Image -->
	<div class="entry-thumb">
		<?php vouge_template_part( 'blog', 'templates/post-format/post', $post_format, $template_args ); ?>
        <?php if( has_post_thumbnail( $post_ID ) ) : ?>
            <div class="entry-author-pic">
                <?php echo get_avatar( get_the_author_meta( 'ID' ), 50 ); ?>
            </div>
        <?php endif; ?>
        <?php do_action( 'vouge_blog_archive_post_format', $enable_post_format, $post_format ); ?>