tools
4 years ago
add_new_instructor.php
4 years ago
addons.php
4 years ago
announcements.php
4 years ago
answer.php
4 years ago
course-list.php
4 years ago
enable_disable_addons.php
4 years ago
get-pro.php
5 years ago
instructors.php
4 years ago
question_answer.php
4 years ago
quiz_attempts.php
4 years ago
students.php
4 years ago
tools.php
4 years ago
tutor-pro-addons.php
4 years ago
uninstall.php
4 years ago
view_attempt.php
4 years ago
welcome.php
4 years ago
withdraw_requests.php
4 years ago
tools.php
36 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 (tutor_utils()->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="' . esc_url( $url ) . '" class="nav-tab-item ' . esc_attr( $active_class ) . '">' . esc_attr( $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_' . esc_attr( $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/' . esc_attr( $current_page ) . '.php' ) ) { |
| 26 | include tutor()->path . 'views/pages/tools/' . esc_attr( $current_page ) . '.php'; |
| 27 | } else { |
| 28 | do_action( 'tutor_tools_page_' . esc_attr( $current_page ) . '' ); |
| 29 | } |
| 30 | |
| 31 | do_action( 'tutor_tools_page_' . esc_attr( $current_page ) . '_after' ); |
| 32 | ?> |
| 33 | </div> |
| 34 | |
| 35 | </div> |
| 36 |