courses.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The template for displaying Tutor Course Widget |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Widget |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.3.1 |
| 10 | */ |
| 11 | |
| 12 | if ( have_posts() ) : |
| 13 | while ( have_posts() ) : |
| 14 | the_post(); |
| 15 | ?> |
| 16 | <div class="<?php echo esc_attr( tutor_widget_course_loop_classes() ); ?>"> |
| 17 | <div class="tutor-card tutor-course-card tutor-mb-12"> |
| 18 | <?php tutor_load_template( 'loop.course' ); ?> |
| 19 | </div> |
| 20 | </div> |
| 21 | <?php |
| 22 | endwhile; |
| 23 | endif; |
| 24 |