tools
6 years ago
add_new_instructor.php
6 years ago
addons.php
6 years ago
answer.php
6 years ago
enable_disable_addons.php
6 years ago
get-pro.php
6 years ago
instructors.php
6 years ago
question_answer.php
6 years ago
quiz_attempts.php
6 years ago
students.php
6 years ago
tools.php
6 years ago
tutor-pro-addons.php
6 years ago
uninstall.php
6 years ago
view_attempt.php
6 years ago
withdraw_requests.php
6 years ago
tools.php
35 lines
| 1 | <div class="wrap"> |
| 2 | <h1 class="wp-heading-inline"><?php _e('Tools', 'tutor'); ?></h1> |
| 3 | <hr class="wp-header-end"> |
| 4 | |
| 5 | <nav class="nav-tab-wrapper tutor-nav-tab-wrapper"> |
| 6 | <?php |
| 7 | if (tutils()->count($pages)){ |
| 8 | foreach ($pages as $key => $page){ |
| 9 | $title = is_array($page)? $page['title'] : $page; |
| 10 | $active_class = $key == $current_page ? 'nav-tab-item-active' : ''; |
| 11 | $url = add_query_arg(array('sub_page' => $key )); |
| 12 | echo "<a href='{$url}' class='nav-tab-item {$active_class} '>{$title}</a>"; |
| 13 | } |
| 14 | } |
| 15 | ?> |
| 16 | </nav> |
| 17 | |
| 18 | <div id="tutor-tools-page-wrap" class="tutor-tools-page-wrap"> |
| 19 | |
| 20 | <?php |
| 21 | do_action("tutor_tools_page_{$current_page}_before"); |
| 22 | |
| 23 | if ( ! empty($pages[$current_page]['view_path']) && file_exists($pages[$current_page]['view_path'])){ |
| 24 | include $pages[$current_page]['view_path']; |
| 25 | }elseif (file_exists(tutor()->path."views/pages/tools/{$current_page}.php")){ |
| 26 | include tutor()->path."views/pages/tools/{$current_page}.php"; |
| 27 | }else{ |
| 28 | do_action("tutor_tools_page_{$current_page}"); |
| 29 | } |
| 30 | |
| 31 | do_action("tutor_tools_page_{$current_page}_after"); |
| 32 | ?> |
| 33 | </div> |
| 34 | |
| 35 | </div> |