dashboard
7 years ago
email
7 years ago
global
7 years ago
loop
7 years ago
profile
7 years ago
single
7 years ago
archive-course.php
7 years ago
course-none.php
7 years ago
dashboard.php
7 years ago
login.php
7 years ago
single-course-enrolled-announcements.php
7 years ago
single-course-enrolled-overview.php
7 years ago
single-course-enrolled-questions.php
7 years ago
single-course-enrolled.php
7 years ago
single-course.php
7 years ago
single-lesson.php
7 years ago
single-preview-lesson.php
7 years ago
single-quiz.php
7 years ago
student-public-profile.php
7 years ago
archive-course.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying courses |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | */ |
| 10 | |
| 11 | get_header(); ?> |
| 12 | |
| 13 | <div class="<?php tutor_container_classes() ?>"> |
| 14 | <?php |
| 15 | do_action('tutor_course/archive/before_loop'); |
| 16 | |
| 17 | if ( have_posts() ) : |
| 18 | /* Start the Loop */ |
| 19 | |
| 20 | tutor_course_loop_start(); |
| 21 | |
| 22 | while ( have_posts() ) : the_post(); |
| 23 | /** |
| 24 | * @hook tutor_course/archive/before_loop_course |
| 25 | * @type action |
| 26 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 27 | */ |
| 28 | do_action('tutor_course/archive/before_loop_course'); |
| 29 | |
| 30 | tutor_load_template('loop.course'); |
| 31 | |
| 32 | /** |
| 33 | * @hook tutor_course/archive/after_loop_course |
| 34 | * @type action |
| 35 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 36 | */ |
| 37 | do_action('tutor_course/archive/after_loop_course'); |
| 38 | endwhile; |
| 39 | |
| 40 | tutor_course_loop_end(); |
| 41 | |
| 42 | else : |
| 43 | |
| 44 | /** |
| 45 | * No course found |
| 46 | */ |
| 47 | tutor_load_template('course-none'); |
| 48 | |
| 49 | endif; |
| 50 | |
| 51 | tutor_course_archive_pagination(); |
| 52 | |
| 53 | do_action('tutor_course/archive/after_loop'); |
| 54 | ?> |
| 55 | </div><!-- .wrap --> |
| 56 | |
| 57 | <?php get_footer(); |
| 58 |