earning
7 years ago
enrolled-courses
7 years ago
instructor
7 years ago
withdraw-method-fields
7 years ago
dashboard.php
7 years ago
earning.php
7 years ago
enrolled-courses.php
7 years ago
index.php
7 years ago
logged-in.php
7 years ago
my-courses.php
7 years ago
my-profile.php
7 years ago
my-reviews.php
7 years ago
quiz-attempts.php
7 years ago
registration.php
7 years ago
wishlist.php
7 years ago
withdraw.php
7 years ago
index.php
50 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 | |
| 11 | global $wp_query; |
| 12 | |
| 13 | $dashboard_page_slug = ''; |
| 14 | if (isset($wp_query->query_vars['tutor_dashboard_page']) && $wp_query->query_vars['tutor_dashboard_page']) { |
| 15 | $dashboard_page_slug = $wp_query->query_vars['tutor_dashboard_page']; |
| 16 | } |
| 17 | ?> |
| 18 | |
| 19 | <div class="tutor-wrap tutor-dashboard tutor-dashboard-student"> |
| 20 | <div class="tutor-container"> |
| 21 | <div class="tutor-row"> |
| 22 | <div class="tutor-col-3"> |
| 23 | <ul class="tutor-dashboard-permalinks"> |
| 24 | <?php |
| 25 | $dashboard_pages = tutor_utils()->tutor_dashboard_pages(); |
| 26 | foreach ($dashboard_pages as $dashboard_key => $dashboard_page){ |
| 27 | if ($dashboard_key === 'index') |
| 28 | $dashboard_key = ''; |
| 29 | $active_class = $dashboard_key == $dashboard_page_slug ? 'active' : ''; |
| 30 | echo "<li class='{$active_class}'><a href='".tutor_utils()->get_tutor_dashboard_page_permalink($dashboard_key)."'> {$dashboard_page} </a> </li>"; |
| 31 | } |
| 32 | ?> |
| 33 | </ul> |
| 34 | </div> |
| 35 | <div class="tutor-col-9"> |
| 36 | <div class="tutor-dashboard-content"> |
| 37 | <?php |
| 38 | if ($dashboard_page_slug){ |
| 39 | tutor_load_template("dashboard.".$wp_query->query_vars['tutor_dashboard_page']); |
| 40 | }else{ |
| 41 | tutor_load_template("dashboard.dashboard"); |
| 42 | } |
| 43 | ?> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | |
| 49 | </div> |
| 50 |