Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor/templates/single/video/html5.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
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_array = $video_info ? (array) $video_info : array();
18
+
19
+
$poster = tutor_utils()->avalue_dot( 'poster', $video_info_array );
20
+
$poster_url = $poster ? wp_get_attachment_url( $poster ) : '';
21
+
$video_url = ( $video_info && $video_info->source_video_id ) ? wp_get_attachment_url( $video_info->source_video_id ) : null;
22
+
23
+
do_action( 'tutor_lesson/single/before/video/html5' );
24
+
?>
25
+
26
+
<?php if ( $video_url ) : ?>
27
+
<div class="tutor-video-player">
28
+
<input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr( json_encode( $jsonData ?? null ) ); ?>">
29
+
<div class="loading-spinner" area-hidden="true"></div>
30
+
<video poster="<?php echo esc_url( $poster_url ); ?>" class="tutorPlayer" playsinline controls >
31
+
<source src="<?php echo esc_url( $video_url ); ?>" type="<?php echo esc_attr( tutor_utils()->avalue_dot( 'type', $video_info_array ) ); ?>">
32
+
</video>
33
+
</div>
34
+
<?php endif; ?>
35
+
36
+
<?php do_action( 'tutor_lesson/single/after/video/html5' ); ?>
37
+