html-admin-page-addons.php
5 years ago
html-admin-page-product-export.php
5 years ago
html-admin-page-reports.php
5 years ago
html-admin-page-status-logs-db.php
5 years ago
html-admin-page-status-logs.php
5 years ago
html-admin-page-status-report.php
5 years ago
html-admin-page-status-tools.php
8 years ago
html-admin-page-status.php
8 years ago
html-admin-settings.php
5 years ago
html-bulk-edit-product.php
5 years ago
html-email-template-preview.php
7 years ago
html-notice-base-table-missing.php
5 years ago
html-notice-custom.php
8 years ago
html-notice-install.php
5 years ago
html-notice-legacy-shipping.php
7 years ago
html-notice-maxmind-license-key.php
6 years ago
html-notice-no-shipping-methods.php
7 years ago
html-notice-redirect-only-download.php
6 years ago
html-notice-regenerating-lookup-table.php
5 years ago
html-notice-regenerating-thumbnails.php
8 years ago
html-notice-secure-connection.php
8 years ago
html-notice-template-check.php
5 years ago
html-notice-update.php
7 years ago
html-notice-updated.php
7 years ago
html-notice-updating.php
6 years ago
html-notice-uploads-directory-is-unprotected.php
6 years ago
html-notice-wp-php-minimum-requirements.php
6 years ago
html-quick-edit-product.php
5 years ago
html-report-by-date.php
5 years ago
html-admin-page-status.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Page - Status |
| 4 | */ |
| 5 | |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | exit; |
| 8 | } |
| 9 | |
| 10 | $current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status'; |
| 11 | $tabs = array( |
| 12 | 'status' => __( 'System status', 'woocommerce' ), |
| 13 | 'tools' => __( 'Tools', 'woocommerce' ), |
| 14 | 'logs' => __( 'Logs', 'woocommerce' ), |
| 15 | ); |
| 16 | $tabs = apply_filters( 'woocommerce_admin_status_tabs', $tabs ); |
| 17 | ?> |
| 18 | <div class="wrap woocommerce"> |
| 19 | <nav class="nav-tab-wrapper woo-nav-tab-wrapper"> |
| 20 | <?php |
| 21 | foreach ( $tabs as $name => $label ) { |
| 22 | echo '<a href="' . admin_url( 'admin.php?page=wc-status&tab=' . $name ) . '" class="nav-tab '; |
| 23 | if ( $current_tab == $name ) { |
| 24 | echo 'nav-tab-active'; |
| 25 | } |
| 26 | echo '">' . $label . '</a>'; |
| 27 | } |
| 28 | ?> |
| 29 | </nav> |
| 30 | <h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1> |
| 31 | <?php |
| 32 | switch ( $current_tab ) { |
| 33 | case 'tools': |
| 34 | WC_Admin_Status::status_tools(); |
| 35 | break; |
| 36 | case 'logs': |
| 37 | WC_Admin_Status::status_logs(); |
| 38 | break; |
| 39 | default: |
| 40 | if ( array_key_exists( $current_tab, $tabs ) && has_action( 'woocommerce_admin_status_content_' . $current_tab ) ) { |
| 41 | do_action( 'woocommerce_admin_status_content_' . $current_tab ); |
| 42 | } else { |
| 43 | WC_Admin_Status::status_report(); |
| 44 | } |
| 45 | break; |
| 46 | } |
| 47 | ?> |
| 48 | </div> |
| 49 |