course-filter
4 years ago
dashboard
4 years ago
email
4 years ago
global
4 years ago
instructor
4 years ago
loop
4 years ago
modal
4 years ago
profile
4 years ago
shortcode
4 years ago
single
4 years ago
template-part
4 years ago
widget
4 years ago
archive-course-init.php
4 years ago
archive-course.php
4 years ago
course-none.php
4 years ago
dashboard.php
4 years ago
feature_disabled.php
4 years ago
instructor-setting.php
4 years ago
login-form.php
4 years ago
login.php
4 years ago
permission-denied.php
4 years ago
public-profile.php
4 years ago
single-assignment.php
4 years ago
single-content-loader.php
4 years ago
single-course.php
4 years ago
single-lesson.php
4 years ago
single-preview-lesson.php
4 years ago
single-quiz.php
4 years ago
template.php
4 years ago
single-course.php
73 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying single course |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | // Prepare the nav items |
| 15 | $course_nav_item = apply_filters( 'tutor_course/single/nav_items', tutor_utils()->course_nav_items(), get_the_ID() ); |
| 16 | |
| 17 | tutor_utils()->tutor_custom_header(); |
| 18 | do_action('tutor_course/single/before/wrap'); |
| 19 | ?> |
| 20 | <div <?php tutor_post_class('tutor-full-width-course-top tutor-course-top-info tutor-page-wrap tutor-wrap-parent'); ?>> |
| 21 | <div class="tutor-course-details-page tutor-container"> |
| 22 | <?php (isset($is_enrolled) && $is_enrolled) ? tutor_course_enrolled_lead_info() : tutor_course_lead_info(); ?> |
| 23 | <div class="tutor-row tutor-gx-xl-5"> |
| 24 | <main class="tutor-col-xl-8"> |
| 25 | <?php tutor_utils()->has_video_in_single() ? tutor_course_video() : get_tutor_course_thumbnail(); ?> |
| 26 | <?php do_action('tutor_course/single/before/inner-wrap'); ?> |
| 27 | <div class="tutor-course-details-tab tutor-mt-32"> |
| 28 | <div class="tutor-is-sticky"> |
| 29 | <?php tutor_load_template( 'single.course.enrolled.nav', array('course_nav_item' => $course_nav_item ) ); ?> |
| 30 | </div> |
| 31 | <div class="tutor-tab tutor-pt-24"> |
| 32 | <?php foreach( $course_nav_item as $key => $subpage ) : ?> |
| 33 | <div id="tutor-course-details-tab-<?php echo $key; ?>" class="tutor-tab-item<?php echo $key == 'info' ? ' is-active' : ''; ?>"> |
| 34 | <?php |
| 35 | do_action( 'tutor_course/single/tab/'.$key.'/before' ); |
| 36 | |
| 37 | $method = $subpage['method']; |
| 38 | if ( is_string($method) ) { |
| 39 | $method(); |
| 40 | } else { |
| 41 | $_object = $method[0]; |
| 42 | $_method = $method[1]; |
| 43 | $_object->$_method(get_the_ID()); |
| 44 | } |
| 45 | |
| 46 | do_action( 'tutor_course/single/tab/'.$key.'/after' ); |
| 47 | ?> |
| 48 | </div> |
| 49 | <?php endforeach; ?> |
| 50 | </div> |
| 51 | </div> |
| 52 | <?php do_action('tutor_course/single/after/inner-wrap'); ?> |
| 53 | </main> |
| 54 | |
| 55 | <aside class="tutor-col-xl-4"> |
| 56 | <div class="tutor-single-course-sidebar tutor-mt-40 tutor-mt-xl-0"> |
| 57 | <?php do_action('tutor_course/single/before/sidebar'); ?> |
| 58 | <?php tutor_load_template('single.course.course-entry-box'); ?> |
| 59 | <?php tutor_course_requirements_html(); ?> |
| 60 | <?php tutor_course_tags_html(); ?> |
| 61 | <?php tutor_course_target_audience_html(); ?> |
| 62 | <?php do_action('tutor_course/single/after/sidebar'); ?> |
| 63 | </div> |
| 64 | </aside> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 | |
| 69 | <?php do_action('tutor_course/single/after/wrap'); ?> |
| 70 | |
| 71 | <?php |
| 72 | tutor_utils()->tutor_custom_footer(); |
| 73 |