embedded.php
8 months ago
external_url.php
8 months ago
html5.php
8 months ago
shortcode.php
8 months ago
video.php
1 year ago
vimeo.php
8 months ago
youtube.php
8 months ago
embedded.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display Video HTML5 |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Video |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; |
| 14 | } |
| 15 | |
| 16 | $video_info = tutor_utils()->get_video_info(); |
| 17 | $video_info = $video_info ? (array) $video_info : array(); |
| 18 | |
| 19 | do_action( 'tutor_lesson/single/before/video/embedded' ); |
| 20 | ?> |
| 21 | <?php if ( $video_info ) : ?> |
| 22 | <div class="tutor-video-player"> |
| 23 | <input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr( json_encode( $jsonData ?? null ) ); ?>"> |
| 24 | <div class="loading-spinner" area-hidden="true"></div> |
| 25 | <div class="tutor-ratio tutor-ratio-16x9"> |
| 26 | <?php |
| 27 | echo wp_kses( |
| 28 | tutor_utils()->array_get( 'source_embedded', $video_info ), |
| 29 | array( |
| 30 | 'iframe' => array( |
| 31 | 'src' => true, |
| 32 | 'title' => true, |
| 33 | 'height' => true, |
| 34 | 'width' => true, |
| 35 | 'frameborder' => true, |
| 36 | 'allowfullscreen' => true, |
| 37 | 'allow' => true, |
| 38 | 'style' => true, |
| 39 | ), |
| 40 | ) |
| 41 | ); |
| 42 | ?> |
| 43 | </div> |
| 44 | </div> |
| 45 | <?php endif; ?> |
| 46 | |
| 47 | <?php do_action( 'tutor_lesson/single/after/video/embedded' ); ?> |
| 48 |