tools
5 years ago
add_new_instructor.php
5 years ago
addons.php
5 years ago
announcements.php
5 years ago
answer.php
5 years ago
enable_disable_addons.php
5 years ago
get-pro.php
5 years ago
instructors.php
5 years ago
question_answer.php
5 years ago
quiz_attempts.php
5 years ago
students.php
5 years ago
tools.php
5 years ago
tutor-pro-addons.php
5 years ago
uninstall.php
5 years ago
view_attempt.php
5 years ago
withdraw_requests.php
5 years ago
instructors.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | $sub_page = tutor_utils()->avalue_dot('sub_page', $_GET); |
| 4 | if ( ! empty($sub_page)){ |
| 5 | $include_file = tutor()->path."views/pages/{$sub_page}.php"; |
| 6 | if (file_exists($include_file)){ |
| 7 | include $include_file; |
| 8 | return; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | $instructorList = new \TUTOR\Instructors_List(); |
| 13 | $instructorList->prepare_items(); |
| 14 | ?> |
| 15 | |
| 16 | |
| 17 | <div class="wrap"> |
| 18 | <h1 class="wp-heading-inline"><?php _e('Instructors', 'tutor'); ?></h1> |
| 19 | <?php |
| 20 | if(get_option( 'users_can_register', false ) && current_user_can( 'manage_options' )) { |
| 21 | ?> |
| 22 | <a href="<?php echo add_query_arg(array('sub_page' => 'add_new_instructor')); ?>" class="page-title-action"> |
| 23 | <i class="tutor-icon-plus"></i> <?php _e('Add New Instructor', 'tutor'); ?> |
| 24 | </a> |
| 25 | <?php |
| 26 | } |
| 27 | ?> |
| 28 | <hr class="wp-header-end"> |
| 29 | |
| 30 | <form id="students-filter" method="get"> |
| 31 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
| 32 | <?php |
| 33 | $instructorList->search_box(__('Search', 'tutor'), 'instructors'); |
| 34 | $instructorList->display(); ?> |
| 35 | </form> |
| 36 | </div> |