embedded.php
3 years ago
external_url.php
3 years ago
html5.php
3 years ago
shortcode.php
3 years ago
video.php
3 years ago
vimeo.php
3 years ago
youtube.php
3 years ago
embedded.php
47 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 | |
| 18 | do_action( 'tutor_lesson/single/before/video/embedded' ); |
| 19 | ?> |
| 20 | <?php if ( $video_info ) : ?> |
| 21 | <div class="tutor-video-player"> |
| 22 | <input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr( json_encode( $jsonData ?? null ) ); ?>"> |
| 23 | <div class="loading-spinner" area-hidden="true"></div> |
| 24 | <div class="tutor-ratio tutor-ratio-16x9"> |
| 25 | <?php |
| 26 | echo wp_kses( |
| 27 | tutor_utils()->array_get( 'source_embedded', $video_info ), |
| 28 | array( |
| 29 | 'iframe' => array( |
| 30 | 'src' => true, |
| 31 | 'title' => true, |
| 32 | 'height' => true, |
| 33 | 'width' => true, |
| 34 | 'frameborder' => true, |
| 35 | 'allowfullscreen' => true, |
| 36 | 'allow' => true, |
| 37 | 'style' => true, |
| 38 | ), |
| 39 | ) |
| 40 | ); |
| 41 | ?> |
| 42 | </div> |
| 43 | </div> |
| 44 | <?php endif; ?> |
| 45 | |
| 46 | <?php do_action( 'tutor_lesson/single/after/video/embedded' ); ?> |
| 47 |