<?php
/**
 * Post featured image template part.
 *
 * 🚫🚫🚫
 * DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
 * of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
 * custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
 * see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
 * 🚫🚫🚫
 *
 * @package AMP
 */

/**
 * Context.
 *
 * @var AMP_Post_Template $this
 */

if($video_embed = get_post_meta(get_the_ID(), 'video_embed', true )): ?>
	<div class="kanews-video embed-container">
		<?php echo wp_oembed_get($video_embed); ?>
	</div>
<?php elseif($vide_src = get_post_meta(get_the_ID(), 'video_src', true )): ?>
	<div class="kanews-video embed-containers">
		<video controls >
			<source loading="lazy" type="video/mp4" src="<?php echo $video_src; ?>">
		</video>
	</div>
<?php else: ?>
	<?php if(has_post_thumbnail()): ?>
		<?php the_post_thumbnail(); ?>
	<?php endif; ?>
<?php endif; ?>