announcements
4 years ago
assignments
4 years ago
earning
4 years ago
enrolled-courses
4 years ago
instructor
4 years ago
my-quiz-attempts
4 years ago
notifications
4 years ago
question-answer
4 years ago
quiz-attempts
4 years ago
reviews
4 years ago
settings
4 years ago
withdraw-method-fields
4 years ago
announcements.php
4 years ago
assignments.php
4 years ago
create-course.php
4 years ago
dashboard-menu.php
4 years ago
dashboard.php
4 years ago
earning.php
4 years ago
enrolled-courses.php
4 years ago
index.php
4 years ago
logged-in.php
5 years ago
my-courses.php
4 years ago
my-profile.php
4 years ago
my-quiz-attempts.php
4 years ago
purchase_history.php
4 years ago
question-answer.php
4 years ago
quiz-attempts.php
4 years ago
registration.php
4 years ago
reviews.php
4 years ago
settings.php
4 years ago
wishlist.php
4 years ago
withdraw.php
4 years ago
wishlist.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | global $post; ?> |
| 8 | |
| 9 | |
| 10 | <h3><?php _e( 'Wishlist', 'tutor' ); ?></h3> |
| 11 | <div class="tutor-dashboard-content-inner"> |
| 12 | <div class="tutor-row"> |
| 13 | |
| 14 | <?php |
| 15 | $wishlists = tutor_utils()->get_wishlist(); |
| 16 | |
| 17 | if ( is_array( $wishlists ) && count( $wishlists ) ) : |
| 18 | foreach ( $wishlists as $post ) : |
| 19 | setup_postdata( $post ); |
| 20 | |
| 21 | /** |
| 22 | * @hook tutor_course/archive/before_loop_course |
| 23 | * @type action |
| 24 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 25 | */ |
| 26 | do_action( 'tutor_course/archive/before_loop_course' ); |
| 27 | |
| 28 | tutor_load_template( 'loop.course' ); |
| 29 | |
| 30 | /** |
| 31 | * @hook tutor_course/archive/after_loop_course |
| 32 | * @type action |
| 33 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 34 | */ |
| 35 | do_action( 'tutor_course/archive/after_loop_course' ); |
| 36 | |
| 37 | endforeach; |
| 38 | |
| 39 | wp_reset_postdata(); |
| 40 | |
| 41 | else : |
| 42 | $msg = __( 'You do not have any course on the wishlist yet.', 'tutor' ); |
| 43 | echo '<div class="tutor-col">' . $msg . '</div>'; |
| 44 | endif; |
| 45 | |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 |