announcements
5 years ago
assignments
5 years ago
earning
5 years ago
enrolled-courses
5 years ago
instructor
5 years ago
my-quiz-attempts
5 years ago
notifications
5 years ago
question-answer
5 years ago
quiz-attempts
5 years ago
reviews
5 years ago
settings
5 years ago
withdraw-method-fields
5 years ago
announcements.php
5 years ago
assignments.php
5 years ago
create-course.php
5 years ago
dashboard.php
5 years ago
earning.php
5 years ago
enrolled-courses.php
5 years ago
index.php
5 years ago
logged-in.php
5 years ago
my-courses.php
5 years ago
my-profile.php
5 years ago
my-quiz-attempts.php
5 years ago
purchase_history.php
5 years ago
question-answer.php
5 years ago
quiz-attempts.php
5 years ago
registration.php
5 years ago
reviews.php
5 years ago
settings.php
5 years ago
wishlist.php
5 years ago
withdraw.php
5 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 |