embedded.php
4 years ago
external_url.php
4 years ago
html5.php
4 years ago
shortcode.php
4 years ago
video.php
4 years ago
vimeo.php
4 years ago
youtube.php
4 years ago
embedded.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Display Video HTML5 |
| 5 | * |
| 6 | * @since v.1.0.0 |
| 7 | * @author themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) |
| 15 | exit; |
| 16 | |
| 17 | $video_info = tutor_utils()->get_video_info(); |
| 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 echo tutor_utils()->array_get('source_embedded', $video_info); ?> |
| 27 | </div> |
| 28 | </div> |
| 29 | <?php endif; ?> |
| 30 | |
| 31 | <?php do_action('tutor_lesson/single/after/video/embedded'); ?> |