course-filter
5 years ago
dashboard
5 years ago
email
5 years ago
global
5 years ago
loop
5 years ago
profile
5 years ago
shortcode
5 years ago
single
5 years ago
template-part
5 years ago
widget
5 years ago
archive-course-init.php
5 years ago
archive-course.php
5 years ago
course-none.php
5 years ago
dashboard.php
5 years ago
instructor-setting.php
5 years ago
login.php
5 years ago
public-profile-setting.php
5 years ago
single-assignment.php
5 years ago
single-course-enrolled-announcements.php
5 years ago
single-course-enrolled-overview.php
5 years ago
single-course-enrolled-questions.php
5 years ago
single-course-enrolled-subpage.php
5 years ago
single-course-enrolled.php
5 years ago
single-course-instructor.php
5 years ago
single-course.php
5 years ago
single-lesson.php
5 years ago
single-preview-lesson.php
5 years ago
single-quiz.php
5 years ago
student-public-profile.php
5 years ago
template.php
5 years ago
archive-course.php
40 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 | |
| 15 | get_header(); |
| 16 | |
| 17 | $course_filter = (bool) tutor_utils()->get_option('course_archive_filter', false); |
| 18 | $supported_filters = tutor_utils()->get_option('supported_course_filters', array()); |
| 19 | |
| 20 | if ($course_filter && count($supported_filters)) { |
| 21 | ?> |
| 22 | <div class="tutor-course-filter-wrapper"> |
| 23 | <div class="tutor-course-filter-container"> |
| 24 | <?php tutor_load_template('course-filter.filters'); ?> |
| 25 | </div> |
| 26 | <div> |
| 27 | <div class="<?php tutor_container_classes(); ?> tutor-course-filter-loop-container" data-column_per_row="<?php echo tutor_utils()->get_option( 'courses_col_per_row', 4 ); ?>"> |
| 28 | <?php tutor_load_template('archive-course-init'); ?> |
| 29 | </div><!-- .wrap --> |
| 30 | </div> |
| 31 | </div> |
| 32 | <?php |
| 33 | } else { |
| 34 | ?> |
| 35 | <div class="<?php tutor_container_classes(); ?>"> |
| 36 | <?php tutor_load_template('archive-course-init'); ?> |
| 37 | </div> |
| 38 | <?php |
| 39 | } |
| 40 | get_footer(); ?> |