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

29 lines
942 B
PHP
Raw Normal View History

<?php
/**
* Admin View: Page - Status Tools
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-03-07 03:16:08 +00:00
exit;
}
?>
<form method="post" action="options.php">
<?php settings_fields( 'woocommerce_status_settings_fields' ); ?>
2017-08-30 14:39:54 +00:00
<table class="wc_status_table wc_status_table--tools widefat" cellspacing="0">
<tbody class="tools">
<?php foreach ( $tools as $action => $tool ) : ?>
<tr class="<?php echo sanitize_html_class( $action ); ?>">
2017-08-15 11:05:34 +00:00
<th>
<strong class="name"><?php echo esc_html( $tool['name'] ); ?></strong>
<p class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></p>
</th>
<td class="run-tool">
<a href="<?php echo wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button button-large <?php echo esc_attr( $action ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</form>