at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
templates
/
single
/
video
/
youtube.php
run:
R
W
Run
embedded.php
1.18 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
external_url.php
1.15 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
html5.php
1.23 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
shortcode.php
706 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
video.php
1.16 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
vimeo.php
1.65 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
youtube.php
1.51 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
youtube.php
Save
<?php /** * Display YouTube Video * * @package Tutor\Templates * @subpackage Single\Video * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $disable_default_player_youtube = tutor_utils()->get_option( 'disable_default_player_youtube' ); $video_info = tutor_utils()->get_video_info(); $video_info = $video_info ? (array) $video_info : array(); $youtube_video_id = tutor_utils()->get_youtube_video_id( tutor_utils()->avalue_dot( 'source_youtube', $video_info ) ); do_action( 'tutor_lesson/single/before/video/youtube' ); ?> <?php if ( $youtube_video_id ) : ?> <div class="tutor-video-player"> <div class="loading-spinner" aria-hidden="true"></div> <div class="<?php echo $disable_default_player_youtube ? 'plyr__video-embed tutorPlayer' : 'tutor-ratio tutor-ratio-16x9'; ?>"> <?php if ( ! $disable_default_player_youtube ) : ?> <iframe src="https://www.youtube.com/embed/<?php echo esc_attr( $youtube_video_id ); ?>" frameborder="0" allowfullscreen allowtransparency allow="autoplay"></iframe> <?php else : ?> <iframe src="https://www.youtube.com/embed/<?php echo esc_attr( $youtube_video_id ); ?>?&iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1" allowfullscreen allowtransparency allow="autoplay"></iframe> <?php endif; ?> </div> </div> <?php endif; ?> <?php do_action( 'tutor_lesson/single/after/video/youtube' ); ?>