woocommerce/includes/admin/views/html-admin-page-status.php

44 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
2015-11-03 13:53:50 +00:00
* Admin View: Page - Status
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-01-20 10:41:26 +00:00
exit;
}
2015-01-20 10:41:26 +00:00
$current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status';
$tabs = array(
'status' => __( 'System Status', 'woocommerce' ),
'tools' => __( 'Tools', 'woocommerce' ),
'logs' => __( 'Logs', 'woocommerce' ),
);
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-woocommerce-status" id="icon-woocommerce"><br /></div>
<h1><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
<h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
<?php
foreach ( $tabs as $name => $label ) {
2013-10-22 16:26:18 +00:00
echo '<a href="' . admin_url( 'admin.php?page=wc-status&tab=' . $name ) . '" class="nav-tab ';
if ( $current_tab == $name ) echo 'nav-tab-active';
echo '">' . $label . '</a>';
}
?>
</h2>
<?php
switch ( $current_tab ) {
case "tools" :
WC_Admin_Status::status_tools();
break;
case "logs" :
WC_Admin_Status::status_logs();
break;
default :
WC_Admin_Status::status_report();
break;
}
?>
2015-11-03 13:31:20 +00:00
</div>