Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @since 1.0.0 */ use TUTOR\User; if ( ! defined( 'ABSPATH' ) ) { exit; } global $post; global $previous_id; global $next_id; // Get the ID of this content and the corresponding course. $course_content_id = get_the_ID(); $course_id = tutor_utils()->get_course_id_by_subcontent( $course_content_id ); $_is_preview = get_post_meta( $course_content_id, '_is_preview', true ); $content_id = tutor_utils()->get_post_id( $course_content_id ); $contents = tutor_utils()->get_course_prev_next_contents_by_id( $content_id ); $previous_id = $contents->previous_id; $next_id = $contents->next_id; $prev_is_preview = get_post_meta( $previous_id, '_is_preview', true ); $next_is_preview = get_post_meta( $next_id, '_is_preview', true ); $is_enrolled = tutor_utils()->is_enrolled( $course_id ); $is_public = get_post_meta( $course_id, '_tutor_is_public_course', true ); $prev_is_locked = ! ( $is_enrolled || $prev_is_preview || $is_public ); $next_is_locked = ! ( $is_enrolled || $next_is_preview || $is_public ); $json_data = array(); $json_data['post_id'] = get_the_ID(); $json_data['best_watch_time'] = 0; $json_data['autoload_next_course_content'] = (bool) get_tutor_option( 'autoload_next_course_content' ); $best_watch_time = tutor_utils()->get_lesson_reading_info( get_the_ID(), 0, 'video_best_watched_time' ); if ( $best_watch_time > 0 ) { $json_data['best_watch_time'] = $best_watch_time; } $is_comment_enabled = tutor_utils()->get_option( 'enable_comment_for_lesson' ) && comments_open() && is_user_logged_in(); ?> $course_id, 'mark_as_complete' => true, ) ); ?>
get_video_info(); $source_key = is_object( $video_info ) && 'html5' !== $video_info->source ? 'source_' . $video_info->source : null; $has_source = ( is_object( $video_info ) && $video_info->source_video_id ) || ( isset( $source_key ) ? $video_info->$source_key : null ); ?> get_option( 'course_completion_process' ); $json_data['strict_mode'] = ( 'strict' === $completion_mode ); $json_data['control_video_lesson_completion'] = (bool) tutor_utils()->get_option( 'control_video_lesson_completion', false ); $json_data['required_percentage'] = (int) tutor_utils()->get_option( 'required_percentage_to_complete_video_lesson', 80 ); $json_data['video_duration'] = $video_info->duration_sec ?? 0; $json_data['lesson_completed'] = tutor_utils()->is_completed_lesson( $content_id, get_current_user_id() ) !== false; $json_data['is_enrolled'] = tutor_utils()->is_enrolled( $course_id, get_current_user_id() ) !== false; ?>
get_attachments() ) > 0; $has_lesson_comment = (int) get_comments_number( $course_content_id ); ?>
$course_id ) ); ?>