ecommerce
11 months ago
tools
1 year ago
add_new_instructor.php
2 years ago
addons.php
1 year ago
announcements.php
11 months ago
answer.php
3 years ago
course-builder.php
1 year ago
course-list.php
10 months ago
enable_disable_addons.php
10 months ago
feature-promotion.php
2 years ago
get-pro.php
2 years ago
instructors.php
11 months ago
question_answer.php
11 months ago
quiz_attempts.php
11 months ago
students.php
11 months ago
tools.php
3 years ago
view_attempt.php
3 years ago
welcome.php
1 year ago
whats-new.php
11 months ago
withdraw_requests.php
11 months ago
tools.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tools page |
| 4 | * |
| 5 | * @package Tutor\Views |
| 6 | * @subpackage Tutor\Tools |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | <div class="wrap"> |
| 14 | <h1 class="wp-heading-inline"><?php esc_html_e( 'Tools', 'tutor' ); ?></h1> |
| 15 | <hr class="wp-header-end"> |
| 16 | |
| 17 | <nav class="nav-tab-wrapper tutor-nav-tab-wrapper"> |
| 18 | <?php |
| 19 | if ( tutor_utils()->count( $pages ) ) { |
| 20 | foreach ( $pages as $key => $page ) { |
| 21 | $title = is_array( $page ) ? $page['title'] : $page; |
| 22 | $active_class = $key == $current_page ? 'nav-tab-item-active' : ''; |
| 23 | $url = add_query_arg( array( 'sub_page' => $key ) ); |
| 24 | echo '<a href="' . esc_url( $url ) . '" class="nav-tab-item ' . esc_attr( $active_class ) . '">' . esc_attr( $title ) . '</a>'; |
| 25 | } |
| 26 | } |
| 27 | ?> |
| 28 | </nav> |
| 29 | |
| 30 | <div id="tutor-tools-page-wrap" class="tutor-tools-page-wrap"> |
| 31 | |
| 32 | <?php |
| 33 | do_action( 'tutor_tools_page_' . esc_attr( $current_page ) . '_before' ); |
| 34 | |
| 35 | if ( ! empty( $pages[ $current_page ]['view_path'] ) && file_exists( $pages[ $current_page ]['view_path'] ) ) { |
| 36 | include $pages[ $current_page ]['view_path']; |
| 37 | } elseif ( file_exists( tutor()->path . 'views/pages/tools/' . esc_attr( $current_page ) . '.php' ) ) { |
| 38 | include tutor()->path . 'views/pages/tools/' . esc_attr( $current_page ) . '.php'; |
| 39 | } else { |
| 40 | do_action( 'tutor_tools_page_' . esc_attr( $current_page ) . '' ); |
| 41 | } |
| 42 | |
| 43 | do_action( 'tutor_tools_page_' . esc_attr( $current_page ) . '_after' ); |
| 44 | ?> |
| 45 | </div> |
| 46 | |
| 47 | </div> |
| 48 |