2014-07-28 14:50:11 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Admin View: Page - Status
|
|
|
|
*/
|
|
|
|
|
2014-07-28 15:16:35 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit; // Exit if accessed directly
|
|
|
|
}
|
2014-07-28 14:50:11 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
2013-07-18 14:22:05 +00:00
|
|
|
<div class="wrap woocommerce">
|
|
|
|
<div class="icon32 icon32-woocommerce-status" id="icon-woocommerce"><br /></div><h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
|
|
|
|
<?php
|
|
|
|
$tabs = array(
|
|
|
|
'status' => __( 'System Status', 'woocommerce' ),
|
|
|
|
'tools' => __( 'Tools', 'woocommerce' ),
|
2014-05-28 10:12:35 +00:00
|
|
|
'logs' => __( 'Logs', 'woocommerce' ),
|
2013-07-18 14:22:05 +00:00
|
|
|
);
|
|
|
|
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>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</h2><br/>
|
|
|
|
<?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;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|