balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

thumbnail-video.php (771B)


      1 <?php
      2 $appside = Appside();
      3 $post_meta = get_post_meta(get_the_ID(),'appside_post_video_options',true);
      4 $video_url = isset($post_meta['video_url']) && $post_meta['video_url'] ? $post_meta['video_url'] : '';
      5 $blog_single_options = Appside_Group_Fields_Value::post_meta('blog_single_post');
      6 if(!empty($video_url)):
      7 	?>
      8 	<div class="thumb">
      9 		<div class="time">
     10 			<span class="date"><?php echo esc_html(get_the_date('d'))?></span>
     11 			<span class="month"><?php echo esc_html(get_the_date('M'))?></span>
     12 		</div>
     13 		<?php $appside->post_thumbnail(); ?>
     14 		<?php if(!empty($video_url)): ?>
     15 			<div class="hover">
     16 				<a href="<?php echo esc_url($video_url);?>" class="video-play-btn mfp-iframe"><i class="fa fa-play"></i></a>
     17 			</div>
     18 		<?php endif; ?>
     19 	</div>
     20 <?php endif; ?>