wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * Display the post video
 * Must be used inside the loop
 *
 * @since 2.7.3
 */
Display the post video
Must be used inside the loop


Display the post video Must be used inside the loop
function themify_post_video($url=false,$echo=true) {
	$video_file = $url?$url:themify_get( 'video_url' );
	$output='';
	if(!empty($video_file)){
	    if ( 'mp4' !== pathinfo($video_file,PATHINFO_EXTENSION )){
		    global $wp_embed;
		    $output=$wp_embed->run_shortcode('[embed]' . $video_file . '[/embed]');
	    }
	    else{
			$output='<div class="post-video">';
			$output.=do_shortcode( '[video src="' . $video_file . '"]' ); 
			$output.='</div>';
	    }
	}
	if($echo===true){
	    echo $output;
	}
	else{
	    return $output;
	}
}
function themify_post_video ( $ url = false , $ echo = true ) { $ video_file = $ url ? $ url : themify_get ( 'video_url' ) ; $ output = '' ; if ( ! empty ( $ video_file ) ) { if ( 'mp4' !== pathinfo ( $ video_file , PATHINFO_EXTENSION ) ) { global $ wp_embed ; $ output = $ wp_embed -> run_shortcode ( '[embed]' . $ video_file . '[/embed]' ) ; } else { $ output = '<div class="post-video">' ; $ output .= do_shortcode ( '[video src="' . $ video_file . '"]' ) ; $ output .= '</div>' ; } } if ( $ echo === true ) { echo $ output ; } else { return $ output ; } }
Display the post video
 Must be used inside the loop
Display the post video Must be used inside the loop