course-filter
3 years ago
dashboard
3 years ago
email
4 years ago
global
4 years ago
instructor
4 years ago
loop
3 years ago
modal
4 years ago
profile
4 years ago
shortcode
4 years ago
single
3 years ago
template-part
3 years ago
widget
4 years ago
archive-course-init.php
3 years ago
archive-course.php
3 years ago
course-embed.php
3 years ago
course-none.php
3 years ago
dashboard.php
3 years ago
feature_disabled.php
3 years ago
instructor-setting.php
3 years ago
login-form.php
3 years ago
login.php
3 years ago
permission-denied.php
3 years ago
public-profile.php
3 years ago
single-assignment.php
3 years ago
single-content-loader.php
3 years ago
single-course.php
3 years ago
single-lesson.php
3 years ago
single-preview-lesson.php
3 years ago
single-quiz.php
3 years ago
template.php
3 years ago
archive-course.php
32 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying courses |
| 4 | * |
| 5 | * @author Themeum |
| 6 | * @link https://themeum.com |
| 7 | * @package TutorLMS/Templates |
| 8 | * @version 1.5.8 |
| 9 | */ |
| 10 | |
| 11 | tutor_utils()->tutor_custom_header(); |
| 12 | |
| 13 | if ( isset( $_GET['course_filter'] ) ) { |
| 14 | $filter = ( new \Tutor\Course_Filter( false ) )->load_listing( $_GET, true ); |
| 15 | query_posts( $filter ); |
| 16 | } |
| 17 | |
| 18 | // Load the |
| 19 | tutor_load_template( |
| 20 | 'archive-course-init', |
| 21 | array_merge( |
| 22 | $_GET, |
| 23 | array( |
| 24 | 'course_filter' => (bool) tutor_utils()->get_option( 'course_archive_filter', false ), |
| 25 | 'supported_filters' => tutor_utils()->get_option( 'supported_course_filters', array() ), |
| 26 | 'loop_content_only' => false, |
| 27 | ) |
| 28 | ) |
| 29 | ); |
| 30 | |
| 31 | tutor_utils()->tutor_custom_footer(); |
| 32 |