2014-07-28 14:50:11 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Admin View: Page - Status Tools
|
|
|
|
*/
|
|
|
|
|
2014-07-28 15:16:35 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2015-03-07 03:16:08 +00:00
|
|
|
exit;
|
2014-07-28 15:16:35 +00:00
|
|
|
}
|
2014-07-28 14:50:11 +00:00
|
|
|
|
|
|
|
?>
|
2013-10-23 15:52:58 +00:00
|
|
|
<form method="post" action="options.php">
|
|
|
|
<?php settings_fields( 'woocommerce_status_settings_fields' ); ?>
|
|
|
|
<table class="wc_status_table widefat" cellspacing="0">
|
|
|
|
<tbody class="tools">
|
2014-06-04 17:25:49 +00:00
|
|
|
<?php foreach ( $tools as $action => $tool ) : ?>
|
2015-06-15 07:30:09 +00:00
|
|
|
<tr class="<?php echo sanitize_html_class( $action ); ?>">
|
2013-10-23 16:21:03 +00:00
|
|
|
<td><?php echo esc_html( $tool['name'] ); ?></td>
|
|
|
|
<td>
|
|
|
|
<p>
|
2015-06-12 19:59:51 +00:00
|
|
|
<a href="<?php echo wp_nonce_url( admin_url('admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button <?php echo esc_attr( $action ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
|
2013-10-23 16:21:03 +00:00
|
|
|
<span class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-06-04 17:25:49 +00:00
|
|
|
<?php endforeach; ?>
|
2013-10-23 15:52:58 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-11-30 06:52:32 +00:00
|
|
|
<p class="submit">
|
2016-03-24 17:26:40 +00:00
|
|
|
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ) ?>" />
|
2014-11-30 06:52:32 +00:00
|
|
|
</p>
|
2014-06-04 17:25:49 +00:00
|
|
|
</form>
|