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
index.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying student dashboard |
| 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 | global $wp_query; |
| 15 | |
| 16 | $dashboard_page_slug = ''; |
| 17 | if (isset($wp_query->query_vars['tutor_dashboard_page']) && $wp_query->query_vars['tutor_dashboard_page']) { |
| 18 | $dashboard_page_slug = $wp_query->query_vars['tutor_dashboard_page']; |
| 19 | } |
| 20 | ?> |
| 21 | |
| 22 | <div class="tutor-wrap tutor-dashboard tutor-dashboard-student"> |
| 23 | <div class="tutor-container"> |
| 24 | <div class="tutor-row"> |
| 25 | <div class="tutor-col-3"> |
| 26 | <ul class="tutor-dashboard-permalinks"> |
| 27 | <?php |
| 28 | $dashboard_pages = tutor_utils()->tutor_dashboard_pages(); |
| 29 | foreach ($dashboard_pages as $dashboard_key => $dashboard_page){ |
| 30 | if ($dashboard_key === 'index') |
| 31 | $dashboard_key = ''; |
| 32 | |
| 33 | $menu_title = $dashboard_page; |
| 34 | if (is_array($dashboard_page)){ |
| 35 | $menu_title = tutor_utils()->array_get('title', $dashboard_page); |
| 36 | if ( isset($dashboard_page['show_ui']) && ! tutor_utils()->array_get('show_ui', $dashboard_page)){ |
| 37 | continue; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | $active_class = $dashboard_key == $dashboard_page_slug ? 'active' : ''; |
| 42 | echo "<li class='{$active_class}'><a href='".tutor_utils()->get_tutor_dashboard_page_permalink($dashboard_key)."'> {$menu_title} </a> </li>"; |
| 43 | } |
| 44 | ?> |
| 45 | </ul> |
| 46 | </div> |
| 47 | <div class="tutor-col-9"> |
| 48 | <div class="tutor-dashboard-content"> |
| 49 | <?php |
| 50 | if ($dashboard_page_slug){ |
| 51 | tutor_load_template("dashboard.".$wp_query->query_vars['tutor_dashboard_page']); |
| 52 | }else{ |
| 53 | tutor_load_template("dashboard.dashboard"); |
| 54 | } |
| 55 | ?> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | </div> |
| 62 |