at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
templates
/
single
/
video
/
vimeo.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
📄
vimeo.php
Save
<?php /** * Display Vimeo 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_vimeo = tutor_utils()->get_option( 'disable_default_player_vimeo' ); $video_info = tutor_utils()->get_video_info(); $video_info = $video_info ? (array) $video_info : array(); $video_url = tutor_utils()->avalue_dot( 'source_vimeo', $video_info ); $video_id = ''; if ( preg_match( '%^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$%im', $video_url, $match ) ) { if ( isset( $match[3] ) ) { $video_id = $match[3]; } } do_action( 'tutor_lesson/single/before/video/vimeo' ); ?> <?php if ( $video_id ) : ?> <div class="tutor-video-player"> <div class="loading-spinner" aria-hidden="true"></div> <div class="<?php echo $disable_default_player_vimeo ? 'plyr__video-embed tutorPlayer' : 'tutor-ratio tutor-ratio-16x9'; ?>"> <?php if ( ! $disable_default_player_vimeo ) : ?> <iframe src="https://player.vimeo.com/video/<?php echo esc_attr( $video_id ); ?>" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> <?php else : ?> <iframe src="https://player.vimeo.com/video/<?php echo esc_attr( $video_id ); ?>?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media" allowfullscreen allowtransparency allow="autoplay"></iframe> <?php endif; ?> </div> </div> <?php endif; ?> <?php do_action( 'tutor_lesson/single/after/video/vimeo' ); ?>