wordpress/wp-content/themes/basic/themify/themify-template-tags.php
/**
     * Display post video or the featured image
     *
     * @since 2.7.7
     */
Display post video or the featured image
@since 2.7.7
Display post video or the featured image @since 2 . 7 . 7
function themify_post_media($args = array()) {
		global $themify;
		if ($themify->hide_image !== 'yes') {
			$isImage = 'yes' !== $themify->unlink_image || isset( $_GET['post_in_lightbox']) || (isset($args['unlink']) && false===$args['unlink']);
			if(isset($args['image'])){
			    $post_image=$args['image'];
			}
			else{
			    $post_image = isset($args['use_video_link']) && $args['use_video_link']===true?'':themify_post_video(false, false);
			    if ($post_image==='') {
				    $post_image = themify_get_image(array('w'=>$themify->width,'h'=>$themify->height,'class'=>(isset($args['image_class'])?$args['image_class']:'')));
				    if($post_image==='' && isset($args['use_video_link']) && $args['use_video_link']===true){
					    $post_image=themify_fetch_video_image(themify_get( 'video_url' ) );
				    }
			    } else {
				    $isImage = false;
			    }
			}
			if($isImage===true){
			    $link_attr=themify_permalink_attr($args,false);
			}
			if (isset($args['before'])) {
			    echo $args['before'];
			}
            if ($post_image!=='') {
				if(!isset($args['no_hook'])){
                    themify_before_post_image(); 
                }
			?>
			<figure class="<?php echo isset($args['class']) ? $args['class'] : 'post-image tf_clearfix'?><?php if($isImage===false):?> is_video<?php endif;?>">
			    <?php 
				if (isset($args['before_image'])) {
				    echo $args['before_image'];
				}
			    ?>
				<?php if ($isImage === true): ?>
				<a href="<?php echo $link_attr['href']?>"<?php if($link_attr['cl']!==''):?> class="<?php echo $link_attr['cl']?>"<?php endif;?><?php if($link_attr['r']!==''):?> <?php echo $link_attr['r']?><?php endif;?>>
				<?php endif; ?>
				<?php echo $post_image; ?>
				<?php if ($isImage === true): ?>
				    <?php if($link_attr['l']===true):?>
					<?php themify_zoom_icon(); ?>
				    <?php endif;?>
				</a>
				<?php endif; ?>
			    <?php 
				if (isset($args['after_image'])) {
				    echo $args['after_image'];
				}
			    ?>
			</figure>
			<?php
                if(!isset($args['no_hook'])){
                    themify_after_post_image(); 
                }
			}
			if (isset($args['after'])) {
			    echo $args['after'];
			}
		}
    }
function themify_post_media ( $ args = array ( ) ) { global $ themify ; if ( $ themify -> hide_image !== 'yes' ) { $ isImage = 'yes' !== $ themify -> unlink_image || isset ( $ _GET [ 'post_in_lightbox' ] ) || ( isset ( $ args [ 'unlink' ] ) && false === $ args [ 'unlink' ] ) ; if ( isset ( $ args [ 'image' ] ) ) { $ post_image = $ args [ 'image' ] ; } else { $ post_image = isset ( $ args [ 'use_video_link' ] ) && $ args [ 'use_video_link' ] === true ? '' : themify_post_video ( false , false ) ; if ( $ post_image === '' ) { $ post_image = themify_get_image ( array ( 'w' => $ themify -> width , 'h' => $ themify -> height , 'class' => ( isset ( $ args [ 'image_class' ] ) ? $ args [ 'image_class' ] : '' ) ) ) ; if ( $ post_image === '' && isset ( $ args [ 'use_video_link' ] ) && $ args [ 'use_video_link' ] === true ) { $ post_image = themify_fetch_video_image ( themify_get ( 'video_url' ) ) ; } } else { $ isImage = false ; } } if ( $ isImage === true ) { $ link_attr = themify_permalink_attr ( $ args , false ) ; } if ( isset ( $ args [ 'before' ] ) ) { echo $ args [ 'before' ] ; } if ( $ post_image !== '' ) { if ( ! isset ( $ args [ 'no_hook' ] ) ) { themify_before_post_image ( ) ; } ?> <figure class=" <?php echo isset ( $ args [ 'class' ] ) ? $ args [ 'class' ] : 'post-image tf_clearfix' ?> <?php if ( $ isImage === false ) : ?> is_video <?php endif ; ?> ">
			     <?php if ( isset ( $ args [ 'before_image' ] ) ) { echo $ args [ 'before_image' ] ; } ?> <?php if ( $ isImage === true ) : ?> <a href=" <?php echo $ link_attr [ 'href' ] ?> " <?php if ( $ link_attr [ 'cl' ] !== '' ) : ?> class=" <?php echo $ link_attr [ 'cl' ] ?> " <?php endif ; ?> <?php if ( $ link_attr [ 'r' ] !== '' ) : ?> <?php echo $ link_attr [ 'r' ] ?> <?php endif ; ?> >
				 <?php endif ; ?> <?php echo $ post_image ; ?> <?php if ( $ isImage === true ) : ?> <?php if ( $ link_attr [ 'l' ] === true ) : ?> <?php themify_zoom_icon ( ) ; ?> <?php endif ; ?> </a>
				 <?php endif ; ?> <?php if ( isset ( $ args [ 'after_image' ] ) ) { echo $ args [ 'after_image' ] ; } ?> </figure>
			 <?php if ( ! isset ( $ args [ 'no_hook' ] ) ) { themify_after_post_image ( ) ; } } if ( isset ( $ args [ 'after' ] ) ) { echo $ args [ 'after' ] ; } } }
Display post video or the featured image
 @since 2.7.7
Display post video or the featured image @since 2 . 7 . 7
//check if there is a video url in the custom field // Hook // Hook