34 lines
781 B
PHP
34 lines
781 B
PHP
<?php
|
|
|
|
/**
|
|
* Template for displaying courses
|
|
*
|
|
* @since v.1.0.0
|
|
*
|
|
* @author Themeum
|
|
* @url https://themeum.com
|
|
*
|
|
* @package TutorLMS/Templates
|
|
* @version 1.5.8
|
|
*/
|
|
tutor_utils()->tutor_custom_header();
|
|
|
|
do_action('tutor_course/archive/before/wrap');
|
|
|
|
if ( isset( $_GET['course_filter'] ) ) {
|
|
$filter = (new \Tutor\Course_Filter(false))->load_listing( $_GET, true );
|
|
query_posts( $filter );
|
|
}
|
|
|
|
// Load the
|
|
tutor_load_template('archive-course-init', array_merge($_GET, array(
|
|
'course_filter' => (bool) tutor_utils()->get_option('course_archive_filter', false),
|
|
'supported_filters' => tutor_utils()->get_option('supported_course_filters', array()),
|
|
'loop_content_only' => false
|
|
)));
|
|
|
|
do_action('tutor_course/archive/after/wrap');
|
|
|
|
tutor_utils()->tutor_custom_footer();
|
|
|