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/wptalentcloud/wp-content/themes/salient/includes/partials/blog/media/video-player.php
<?php
/**
 * Video blog partial.
 *
 * Outputs actual video player.
 *
 * @version 10.5
 */
 
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $post;

$video_embed  = get_post_meta( $post->ID, '_nectar_video_embed', true );
$video_m4v    = get_post_meta( $post->ID, '_nectar_video_m4v', true );
$video_ogv    = get_post_meta( $post->ID, '_nectar_video_ogv', true );
$video_poster = get_post_meta( $post->ID, '_nectar_video_poster', true );

if ( ! empty( $video_embed ) || ! empty( $video_m4v ) ) {

  // Video embed
  if ( ! empty( $video_embed ) ) {
    echo '<div class="video">' . do_shortcode( $video_embed ) . '</div>';
  }
  // Self hosted video
  else  {

    if ( ! empty( $video_m4v ) || ! empty( $video_ogv ) ) {

      $video_output = '[video ';

      if ( ! empty( $video_m4v ) ) {
        $video_output .= 'mp4="' . esc_url( $video_m4v ) . '" '; 
      }
      if ( ! empty( $video_ogv ) ) {
        $video_output .= 'ogv="' . esc_url( $video_ogv ) . '"'; 
      }

      $video_output .= ' poster="' . esc_url( $video_poster ) . '"]';

      echo '<div class="video">' . do_shortcode( $video_output ) . '</div>';
      
    }
  }
}