2014-07-28 14:50:11 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-11-03 13:53:50 +00:00
|
|
|
* Admin View: Page - Status
|
2014-07-28 14:50:11 +00:00
|
|
|
*/
|
|
|
|
|
2014-07-28 15:16:35 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2015-01-20 10:41:26 +00:00
|
|
|
exit;
|
2014-07-28 15:16:35 +00:00
|
|
|
}
|
2014-07-28 14:50:11 +00:00
|
|
|
|
2015-01-20 10:41:26 +00:00
|
|
|
$current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status';
|
2016-02-17 18:23:50 +00:00
|
|
|
$tabs = array(
|
|
|
|
'status' => __( 'System Status', 'woocommerce' ),
|
|
|
|
'tools' => __( 'Tools', 'woocommerce' ),
|
|
|
|
'logs' => __( 'Logs', 'woocommerce' ),
|
|
|
|
);
|
2016-02-23 08:33:11 +00:00
|
|
|
|
2014-07-28 14:50:11 +00:00
|
|
|
?>
|
2013-07-18 14:22:05 +00:00
|
|
|
<div class="wrap woocommerce">
|
2016-04-01 09:53:30 +00:00
|
|
|
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
|
2013-07-18 14:22:05 +00:00
|
|
|
<?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 ';
|
2013-07-18 14:22:05 +00:00
|
|
|
if ( $current_tab == $name ) echo 'nav-tab-active';
|
|
|
|
echo '">' . $label . '</a>';
|
|
|
|
}
|
|
|
|
?>
|
2016-04-01 09:53:30 +00:00
|
|
|
</nav>
|
|
|
|
<h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
|
2013-07-18 14:22:05 +00:00
|
|
|
<?php
|
|
|
|
switch ( $current_tab ) {
|
|
|
|
case "tools" :
|
2014-06-04 10:16:19 +00:00
|
|
|
WC_Admin_Status::status_tools();
|
2013-07-18 14:22:05 +00:00
|
|
|
break;
|
2014-05-28 10:12:35 +00:00
|
|
|
case "logs" :
|
2014-06-04 10:16:19 +00:00
|
|
|
WC_Admin_Status::status_logs();
|
2014-05-28 10:12:35 +00:00
|
|
|
break;
|
2013-07-18 14:22:05 +00:00
|
|
|
default :
|
2014-06-04 10:16:19 +00:00
|
|
|
WC_Admin_Status::status_report();
|
2013-07-18 14:22:05 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2015-11-03 13:31:20 +00:00
|
|
|
</div>
|