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
*/
global $post;
//phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
$currentPost = $post;
$method_map = array(
'lesson' => 'tutor_lesson_content',
'assignment' => 'tutor_assignment_content',
);
$content_id = tutor_utils()->get_post_id();
$course_id = tutor_utils()->get_course_id_by_subcontent( $content_id );
$contents = tutor_utils()->get_course_prev_next_contents_by_id( $content_id );
$previous_id = $contents->previous_id;
$next_id = $contents->next_id;
$user_id = get_current_user_id();
$is_course_completed = tutor_utils()->is_completed_course( $course_id, $user_id );
$enable_spotlight_mode = tutor_utils()->get_option( 'enable_spotlight_mode' );
//phpcs:ignore WordPress.PHP.DontExtract.extract_extract
extract( $data ); // $data variable consist $context, $html_content.
/**
* Single course sidebar content
*
* @param boolean $echo echo the content or not.
* @param string $context device context (mobile/desktop).
* @return string HTML output string.
*/
function tutor_course_single_sidebar( $echo = true, $context = 'desktop' ) {
ob_start();
tutor_load_template( 'single.lesson.lesson_sidebar', array( 'context' => $context ) );
$output = apply_filters( 'tutor_lesson/single/lesson_sidebar', ob_get_clean() );
if ( $echo ) {
add_filter( 'wp_kses_allowed_html', 'tutor_kses_allowed_html', 10, 2 );
echo wp_kses_post( $output );
remove_filter( 'wp_kses_allowed_html', 'tutor_kses_allowed_html' );
}
return $output;
}
do_action( 'tutor/course/single/content/before/all', $course_id, $content_id );
get_tutor_header();
$show_mark_as_complete = false;
if ( tutor()->lesson_post_type === $post->post_type ) {
$show_mark_as_complete = apply_filters( 'tutor_lesson_show_mark_as_complete', true );
}
?>
get_course_completed_percent( $course_id, 0, true );
// Is Lesstion Complete.
$is_completed_lesson = tutor_utils()->is_completed_lesson();
?>