assignments
6 years ago
earning
6 years ago
enrolled-courses
6 years ago
instructor
6 years ago
quiz-attempts
6 years ago
reviews
6 years ago
settings
6 years ago
withdraw-method-fields
6 years ago
assignments.php
6 years ago
create-course.php
6 years ago
dashboard.php
6 years ago
earning.php
6 years ago
enrolled-courses.php
6 years ago
index.php
6 years ago
logged-in.php
6 years ago
my-courses.php
6 years ago
my-profile.php
6 years ago
my-quiz-attempts.php
6 years ago
purchase_history.php
6 years ago
quiz-attempts.php
6 years ago
registration.php
6 years ago
reviews.php
6 years ago
settings.php
6 years ago
wishlist.php
6 years ago
withdraw.php
6 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 | |
| 18 | if (is_array($wishlists) && count($wishlists)): |
| 19 | foreach ($wishlists as $post): |
| 20 | setup_postdata($post); |
| 21 | |
| 22 | /** |
| 23 | * @hook tutor_course/archive/before_loop_course |
| 24 | * @type action |
| 25 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 26 | */ |
| 27 | do_action('tutor_course/archive/before_loop_course'); |
| 28 | |
| 29 | tutor_load_template('loop.course'); |
| 30 | |
| 31 | /** |
| 32 | * @hook tutor_course/archive/after_loop_course |
| 33 | * @type action |
| 34 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 35 | */ |
| 36 | do_action('tutor_course/archive/after_loop_course'); |
| 37 | |
| 38 | endforeach; |
| 39 | |
| 40 | wp_reset_postdata(); |
| 41 | |
| 42 | else: |
| 43 | echo "<div class=\"tutor-col\">".esc_html('There\'s no active course')."</div>"; |
| 44 | endif; |
| 45 | |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 |