course-filter
4 years ago
dashboard
4 years ago
email
4 years ago
global
4 years ago
loop
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.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
archive-course.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Template for displaying courses |
| 5 | * |
| 6 | * @since v.1.0.0 |
| 7 | * |
| 8 | * @author Themeum |
| 9 | * @url https://themeum.com |
| 10 | * |
| 11 | * @package TutorLMS/Templates |
| 12 | * @version 1.5.8 |
| 13 | */ |
| 14 | tutor_utils()->tutor_custom_header(); |
| 15 | |
| 16 | $course_filter = (bool) tutor_utils()->get_option('course_archive_filter', false); |
| 17 | $supported_filters = tutor_utils()->get_option('supported_course_filters', array()); |
| 18 | |
| 19 | if ($course_filter && count($supported_filters)) { |
| 20 | ?> |
| 21 | <div class="tutor-wrap tutor-courses-wrap tutor-container"> |
| 22 | <div class="tutor-course-listing-filter tutor-filter-course-grid-2 course-archive-page"> |
| 23 | <div class="tutor-course-filter tutor-course-filter-container"> |
| 24 | <div class="tutor-course-filter-widget"> |
| 25 | <?php tutor_load_template('course-filter.filters'); ?> |
| 26 | </div> |
| 27 | </div> |
| 28 | <div id="tutor-course-filter-loop-container" class="<?php tutor_container_classes(); ?> tutor-course-filter-loop-container" data-column_per_row="<?php echo esc_html(tutor_utils()->get_option( 'courses_col_per_row', 3 )); ?>"><div style="background-color: #fff;" class="loading-spinner"></div> |
| 29 | <?php tutor_load_template('archive-course-init'); ?> |
| 30 | </div><!-- .wrap --> |
| 31 | </div> |
| 32 | </div> |
| 33 | <?php |
| 34 | } else { |
| 35 | ?> |
| 36 | <div class="tutor-wrap tutor-courses-wrap tutor-container course-archive-page"> |
| 37 | <div class="<?php tutor_container_classes(); ?> tutor-course-filter-loop-container"><div style="background-color: #fff;" class="loading-spinner"></div> |
| 38 | <?php tutor_load_template('archive-course-init'); ?> |
| 39 | </div> |
| 40 | </div> |
| 41 | <?php |
| 42 | } |
| 43 | tutor_utils()->tutor_custom_footer(); ?> |
| 44 |