<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 * @package socity
 */
	if (defined('CS_ACTIVE_FRAMEWORK') && function_exists('cs_get_option')) {
		$socity_pfv_meta = get_post_meta( $post->ID, 'socity_pfv_meta', true );
		$code = 'iframe';
	}
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('post-single'); ?>>
	<?php if(!empty($socity_pfv_meta['socity_pfv_link'])) : ?>
	<div class="vendor">
		<<?php echo esc_attr($code); ?> width="100%" height="100%" src="<?php echo esc_url($socity_pfv_meta['socity_pfv_link']); ?>" frameborder="0" allowfullscreen="false"></<?php echo esc_attr($code); ?>>
	</div>
	<?php elseif( socity_post_thumbnail() ) : ?>
	<div class="socity-bimg">
		<?php socity_post_thumbnail(); ?>		
	</div>
	<?php endif; ?>
	<?php get_template_part('template-parts/content','summery'); ?>
</div>