complete_form.php
5 years ago
content.php
4 years ago
lesson_sidebar.php
4 years ago
required-enroll.php
4 years ago
sidebar_question_and_answer.php
4 years ago
content.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display the content |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | $jsonData = array(); |
| 18 | $jsonData['post_id'] = get_the_ID(); |
| 19 | $jsonData['best_watch_time'] = 0; |
| 20 | $jsonData['autoload_next_course_content'] = (bool) get_tutor_option( 'autoload_next_course_content' ); |
| 21 | |
| 22 | $best_watch_time = tutor_utils()->get_lesson_reading_info( get_the_ID(), 0, 'video_best_watched_time' ); |
| 23 | if ( $best_watch_time > 0 ) { |
| 24 | $jsonData['best_watch_time'] = $best_watch_time; |
| 25 | } |
| 26 | ?> |
| 27 | |
| 28 | <?php do_action( 'tutor_lesson/single/before/content' ); ?> |
| 29 | |
| 30 | <div class="tutor-single-page-top-bar"> |
| 31 | <div class="tutor-topbar-item tutor-hide-sidebar-bar"> |
| 32 | <a href="javascript:;" class="tutor-lesson-sidebar-hide-bar"><i class="tutor-icon-angle-left"></i> </a> |
| 33 | <?php $course_id = tutor_utils()->get_course_id_by( 'lesson', get_the_ID() ); ?> |
| 34 | <a href="<?php echo esc_url( get_the_permalink( $course_id ) ); ?>" class="tutor-topbar-home-btn"> |
| 35 | <i class="tutor-icon-home"></i> <?php echo __( 'Go to Course Home', 'tutor' ); ?> |
| 36 | </a> |
| 37 | </div> |
| 38 | <div class="tutor-topbar-item tutor-topbar-content-title-wrap"> |
| 39 | <?php |
| 40 | tutor_utils()->get_lesson_type_icon( get_the_ID(), true, true ); |
| 41 | the_title(); |
| 42 | ?> |
| 43 | </div> |
| 44 | |
| 45 | <div class="tutor-topbar-item tutor-topbar-mark-to-done"> |
| 46 | <?php tutor_lesson_mark_complete_html(); ?> |
| 47 | </div> |
| 48 | |
| 49 | </div> |
| 50 | |
| 51 | |
| 52 | <div class="tutor-lesson-content-area"> |
| 53 | |
| 54 | <input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr( json_encode( $jsonData ) ); ?>"> |
| 55 | <?php tutor_lesson_video(); ?> |
| 56 | <?php the_content(); ?> |
| 57 | <?php get_tutor_posts_attachments(); ?> |
| 58 | <?php tutor_next_previous_pagination(); ?> |
| 59 | </div> |
| 60 | |
| 61 | <?php do_action( 'tutor_lesson/single/after/content' ); ?> |
| 62 |