tutor-course.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | if ( have_posts() ) : |
| 8 | /* Start the Loop */ |
| 9 | |
| 10 | tutor_course_loop_start(); |
| 11 | |
| 12 | while ( have_posts() ) : the_post(); |
| 13 | /** |
| 14 | * @hook tutor_course/archive/before_loop_course |
| 15 | * @type action |
| 16 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 17 | */ |
| 18 | do_action('tutor_course/archive/before_loop_course'); |
| 19 | |
| 20 | tutor_load_template('loop.course'); |
| 21 | |
| 22 | /** |
| 23 | * @hook tutor_course/archive/after_loop_course |
| 24 | * @type action |
| 25 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 26 | */ |
| 27 | do_action('tutor_course/archive/after_loop_course'); |
| 28 | endwhile; |
| 29 | |
| 30 | tutor_course_loop_end(); |
| 31 | |
| 32 | endif; |
| 33 |