PluginProbe
Tutor LMS – eLearning and online course solution / 1.2.20
Tutor LMS – eLearning and online course solution v1.2.20
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
tutor / templates / dashboard / wishlist.php
wishlist.php
43 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php global $post; ?>
2
3
4 <h3><?php _e('Wishlist', 'tutor'); ?></h3>
5 <div class="tutor-dashboard-content-inner">
6 <div class="tutor-row">
7
8 <?php
9 $wishlists = tutor_utils()->get_wishlist();
10
11
12 if (is_array($wishlists) && count($wishlists)):
13 foreach ($wishlists as $post):
14 setup_postdata($post);
15
16 /**
17 * @hook tutor_course/archive/before_loop_course
18 * @type action
19 * Usage Idea, you may keep a loop within a wrap, such as bootstrap col
20 */
21 do_action('tutor_course/archive/before_loop_course');
22
23 tutor_load_template('loop.course');
24
25 /**
26 * @hook tutor_course/archive/after_loop_course
27 * @type action
28 * Usage Idea, If you start any div before course loop, you can end it here, such as </div>
29 */
30 do_action('tutor_course/archive/after_loop_course');
31
32 endforeach;
33
34 wp_reset_postdata();
35
36 else:
37 echo "<div class=\"tutor-col\">".esc_html('There\'s no active course')."</div>";
38 endif;
39
40 ?>
41 </div>
42 </div>
43