add-to-cart-edd.php
4 years ago
add-to-cart-woocommerce.php
4 years ago
course-author.php
4 years ago
course-continue.php
4 years ago
course-in-cart.php
4 years ago
course-price-edd.php
4 years ago
course-price-woocommerce.php
4 years ago
course-price.php
4 years ago
course.php
4 years ago
end_content_wrap.php
5 years ago
enrolled-course-progress.php
4 years ago
footer.php
4 years ago
header.php
4 years ago
loop-after-content.php
4 years ago
loop-before-content.php
4 years ago
loop-end.php
5 years ago
loop-start.php
4 years ago
meta.php
4 years ago
rating.php
4 years ago
start_content_wrap.php
4 years ago
thumbnail.php
4 years ago
title.php
4 years ago
tutor-pagination.php
4 years ago
tutor-pagination_ajax.php
4 years ago
loop-start.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Course Loop Start |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | $supported_filters = tutor_utils()->get_option( 'supported_course_filters', array() ); |
| 17 | $shortcode = isset($GLOBALS['tutor_shortcode_arg']['shortcode_enabled']) && true === $GLOBALS['tutor_shortcode_arg']['shortcode_enabled'] ? true : false; |
| 18 | |
| 19 | if ( true === $shortcode ) { |
| 20 | $courseCols = isset( $GLOBALS['tutor_shortcode_arg']['column_per_row'] ) ? $GLOBALS['tutor_shortcode_arg']['column_per_row'] : null; |
| 21 | $course_filter = isset( $GLOBALS['tutor_shortcode_arg']['include_course_filter'] ) ? false : true; |
| 22 | } else { |
| 23 | $courseCols = tutor_utils()->get_option( 'courses_col_per_row', 3 ); |
| 24 | $course_filter = (bool) tutor_utils()->get_option( 'course_archive_filter', false ); |
| 25 | |
| 26 | } |
| 27 | |
| 28 | $courseCols = ( true === $course_filter && $courseCols > 3 ) ? 3 : $courseCols; |
| 29 | |
| 30 | ?> |
| 31 | <div class="tutor-course-listing-grid tutor-course-listing-grid-<?php echo esc_html( $courseCols ); ?> <?php |
| 32 | if ( $course_filter && count( $supported_filters ) ) { |
| 33 | echo wp_kses_post( 'tutor-course-listing-filter-grid-2' ); |
| 34 | } else { |
| 35 | echo ''; } |
| 36 | ?> |
| 37 | "> |
| 38 |