html-admin-page-addons.php
7 years ago
html-admin-page-builder-setup.php
8 years ago
html-admin-page-builder.php
7 years ago
html-admin-page-entries-view.php
8 years ago
html-admin-page-status-logs.php
8 years ago
html-admin-page-status.php
8 years ago
html-admin-settings.php
7 years ago
html-notice-custom.php
8 years ago
html-notice-update.php
8 years ago
html-notice-updated.php
8 years ago
html-notice-updating.php
8 years ago
html-admin-page-status.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Page - Status |
| 4 | * |
| 5 | * @package EverestForms/Admin/Logs |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | |
| 10 | $current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'logs'; |
| 11 | $tabs = array( |
| 12 | 'logs' => __( 'Logs', 'everest-forms' ), |
| 13 | ); |
| 14 | $tabs = apply_filters( 'everest_forms_admin_status_tabs', $tabs ); |
| 15 | ?> |
| 16 | <div class="wrap everest-forms"> |
| 17 | <nav class="nav-tab-wrapper evf-nav-tab-wrapper"> |
| 18 | <?php |
| 19 | foreach ( $tabs as $name => $label ) { |
| 20 | echo '<a href="' . admin_url( 'admin.php?page=evf-status&tab=' . $name ) . '" class="nav-tab '; |
| 21 | if ( $current_tab == $name ) { |
| 22 | echo 'nav-tab-active'; |
| 23 | } |
| 24 | echo '">' . $label . '</a>'; |
| 25 | } |
| 26 | ?> |
| 27 | </nav> |
| 28 | <h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1> |
| 29 | <?php |
| 30 | switch ( $current_tab ) { |
| 31 | case "logs" : |
| 32 | EVF_Admin_Status::status_logs(); |
| 33 | break; |
| 34 | default : |
| 35 | if ( array_key_exists( $current_tab, $tabs ) && has_action( 'everest_forms_admin_status_content_' . $current_tab ) ) { |
| 36 | do_action( 'everest_forms_admin_status_content_' . $current_tab ); |
| 37 | } else { |
| 38 | EVF_Admin_Status::status_logs(); |
| 39 | } |
| 40 | break; |
| 41 | } |
| 42 | ?> |
| 43 | </div> |
| 44 |