complete_form.php
5 years ago
content.php
5 years ago
lesson_sidebar.php
5 years ago
required-enroll.php
5 years ago
sidebar_question_and_answer.php
5 years ago
content.php
59 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 | $jsonData = array(); |
| 17 | $jsonData['post_id'] = get_the_ID(); |
| 18 | $jsonData['best_watch_time'] = 0; |
| 19 | $jsonData['autoload_next_course_content'] = (bool) get_tutor_option('autoload_next_course_content'); |
| 20 | |
| 21 | $best_watch_time = tutor_utils()->get_lesson_reading_info(get_the_ID(), 0, 'video_best_watched_time'); |
| 22 | if ($best_watch_time > 0){ |
| 23 | $jsonData['best_watch_time'] = $best_watch_time; |
| 24 | } |
| 25 | ?> |
| 26 | |
| 27 | <?php do_action('tutor_lesson/single/before/content'); ?> |
| 28 | |
| 29 | <div class="tutor-single-page-top-bar"> |
| 30 | <div class="tutor-topbar-item tutor-hide-sidebar-bar"> |
| 31 | <a href="javascript:;" class="tutor-lesson-sidebar-hide-bar"><i class="tutor-icon-angle-left"></i> </a> |
| 32 | <?php $course_id = get_post_meta(get_the_ID(), '_tutor_course_id_for_lesson', true); ?> |
| 33 | <a href="<?php echo get_the_permalink($course_id); ?>" class="tutor-topbar-home-btn"> |
| 34 | <i class="tutor-icon-home"></i> <?php echo __('Go to Course Home', 'tutor') ; ?> |
| 35 | </a> |
| 36 | </div> |
| 37 | <div class="tutor-topbar-item tutor-topbar-content-title-wrap"> |
| 38 | <?php |
| 39 | tutor_utils()->get_lesson_type_icon(get_the_ID(), true, true); |
| 40 | the_title(); ?> |
| 41 | </div> |
| 42 | |
| 43 | <div class="tutor-topbar-item tutor-topbar-mark-to-done"> |
| 44 | <?php tutor_lesson_mark_complete_html(); ?> |
| 45 | </div> |
| 46 | |
| 47 | </div> |
| 48 | |
| 49 | |
| 50 | <div class="tutor-lesson-content-area"> |
| 51 | |
| 52 | <input type="hidden" id="tutor_video_tracking_information" value="<?php echo esc_attr(json_encode($jsonData)); ?>"> |
| 53 | <?php tutor_lesson_video(); ?> |
| 54 | <?php the_content(); ?> |
| 55 | <?php get_tutor_posts_attachments(); ?> |
| 56 | <?php tutor_next_previous_pagination(); ?> |
| 57 | </div> |
| 58 | |
| 59 | <?php do_action('tutor_lesson/single/after/content'); ?> |