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
shortcode.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display shortcode |
| 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/shortcode' ); |
| 19 | ?> |
| 20 | <div class="tutor-video-player"> |
| 21 | <div class="loading-spinner" area-hidden="true"></div> |
| 22 | <div class="tutor-ratio tutor-ratio-16x9"> |
| 23 | <?php echo do_shortcode( tutor_utils()->array_get( 'source_shortcode', $video_info ) ); ?> |
| 24 | </div> |
| 25 | </div> |
| 26 | <?php |
| 27 | do_action( 'tutor_lesson/single/after/video/shortcode' ); ?> |
| 28 |