dashboard
6 years ago
email
6 years ago
global
6 years ago
loop
6 years ago
profile
6 years ago
shortcode
6 years ago
single
6 years ago
template-part
6 years ago
widget
6 years ago
archive-course.php
6 years ago
course-none.php
6 years ago
dashboard.php
6 years ago
login.php
6 years ago
single-assignment.php
6 years ago
single-course-enrolled-announcements.php
6 years ago
single-course-enrolled-overview.php
6 years ago
single-course-enrolled-questions.php
6 years ago
single-course-enrolled-subpage.php
6 years ago
single-course-enrolled.php
6 years ago
single-course.php
6 years ago
single-lesson.php
6 years ago
single-preview-lesson.php
6 years ago
single-quiz.php
6 years ago
student-public-profile.php
6 years ago
template.php
6 years ago
archive-course.php
61 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 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | get_header(); ?> |
| 15 | |
| 16 | <div class="<?php tutor_container_classes() ?>"> |
| 17 | <?php |
| 18 | do_action('tutor_course/archive/before_loop'); |
| 19 | |
| 20 | if ( have_posts() ) : |
| 21 | /* Start the Loop */ |
| 22 | |
| 23 | tutor_course_loop_start(); |
| 24 | |
| 25 | while ( have_posts() ) : the_post(); |
| 26 | /** |
| 27 | * @hook tutor_course/archive/before_loop_course |
| 28 | * @type action |
| 29 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 30 | */ |
| 31 | do_action('tutor_course/archive/before_loop_course'); |
| 32 | |
| 33 | tutor_load_template('loop.course'); |
| 34 | |
| 35 | /** |
| 36 | * @hook tutor_course/archive/after_loop_course |
| 37 | * @type action |
| 38 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 39 | */ |
| 40 | do_action('tutor_course/archive/after_loop_course'); |
| 41 | endwhile; |
| 42 | |
| 43 | tutor_course_loop_end(); |
| 44 | |
| 45 | else : |
| 46 | |
| 47 | /** |
| 48 | * No course found |
| 49 | */ |
| 50 | tutor_load_template('course-none'); |
| 51 | |
| 52 | endif; |
| 53 | |
| 54 | tutor_course_archive_pagination(); |
| 55 | |
| 56 | do_action('tutor_course/archive/after_loop'); |
| 57 | ?> |
| 58 | </div><!-- .wrap --> |
| 59 | |
| 60 | <?php get_footer(); |
| 61 |