32 lines
927 B
PHP
Executable File
32 lines
927 B
PHP
Executable File
<?php
|
|
/**
|
|
* NOTE: This template is from the TutorLMS plugin is is overridden in Kadence Theme for better theme support of TutorLMS.
|
|
* Template for displaying courses
|
|
*
|
|
* Edited by Kadence Theme, Original Author:
|
|
* @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();
|