HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpwisesolutions/wp-content/themes/pofo/loop/single/loop-video.php
<?php
/**
 * displaying video for single post
 *
 * @package Pofo
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) { exit; }

$pofo_video_type = pofo_post_meta('pofo_video_type');
$pofo_video = pofo_post_meta('pofo_video');
if($pofo_video_type == 'self'){
    $pofo_video_mp4 = pofo_post_meta('pofo_video_mp4');
    $pofo_video_ogg = pofo_post_meta('pofo_video_ogg');
    $pofo_video_webm = pofo_post_meta('pofo_video_webm');
    $pofo_mute = pofo_post_meta('pofo_enable_mute');
    $pofo_enable_mute = ($pofo_mute == 1) ? 'muted ' : '';
    if($pofo_video_mp4 || $pofo_video_ogg || $pofo_video_webm){
        echo '<div class="blog-image">';
            echo '<video autoplay playsinline '.esc_attr($pofo_enable_mute).'loop controls>';
                if(! empty($pofo_video_mp4)){
                    echo '<source src="'.esc_url($pofo_video_mp4).'" type="video/mp4">';
                }
                if(! empty($pofo_video_ogg)){
                    echo '<source src="'.esc_url($pofo_video_ogg).'" type="video/ogg">';
                }
                if(! empty($pofo_video_webm)){
                    echo '<source src="'.esc_url($pofo_video_webm).'" type="video/webm">';
                }
            echo '</video>';
        echo '</div>';
    }
}else{
    $pofo_video_url = pofo_post_meta('pofo_video');
    $fullscreen_class = '';
    if (strpos($pofo_video_url,'player.vimeo.com') == true) {
        $fullscreen_class = 'webkitAllowFullScreen mozallowfullscreen allowFullScreen';
    }else{
        $fullscreen_class = 'allowFullScreen';
    }
    if($pofo_video_url){
        echo '<div class="blog-image fit-videos">';
            echo '<iframe src="'.esc_url( $pofo_video_url ).'" width="640" height="360" frameborder="0" '.$fullscreen_class.' allow="autoplay; fullscreen"></iframe>';
        echo '</div>';
    }
}

$pofo_blog_image = pofo_option("pofo_featured_image", '1');
if($pofo_blog_image == 1)
{
    echo '<div class="blog-image bg-transparent margin-40px-top xs-margin-25px-top">';
        if ( has_post_thumbnail() ) {
            the_post_thumbnail( 'full' );
        }
    echo '</div>';
}