2014-07-28 14:50:11 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Admin View: Settings
|
|
|
|
*/
|
2014-07-28 15:16:35 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2016-01-05 11:23:15 +00:00
|
|
|
exit;
|
2014-07-28 15:16:35 +00:00
|
|
|
}
|
2016-02-23 09:11:02 +00:00
|
|
|
|
2014-07-28 14:50:11 +00:00
|
|
|
?>
|
2013-07-26 14:36:28 +00:00
|
|
|
<div class="wrap woocommerce">
|
2015-01-06 19:24:32 +00:00
|
|
|
<form method="<?php echo esc_attr( apply_filters( 'woocommerce_settings_form_method_tab_' . $current_tab, 'post' ) ); ?>" id="mainform" action="" enctype="multipart/form-data">
|
2015-11-11 14:18:26 +00:00
|
|
|
<div class="icon32 icon32-woocommerce-settings" id="icon-woocommerce"><br /></div>
|
2016-02-17 18:01:20 +00:00
|
|
|
<h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
|
2016-02-23 08:33:11 +00:00
|
|
|
<h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
|
2013-07-26 14:36:28 +00:00
|
|
|
<?php
|
2015-01-06 19:24:32 +00:00
|
|
|
foreach ( $tabs as $name => $label ) {
|
2013-10-22 16:26:18 +00:00
|
|
|
echo '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>';
|
2015-01-06 19:24:32 +00:00
|
|
|
}
|
2013-07-26 14:36:28 +00:00
|
|
|
|
|
|
|
do_action( 'woocommerce_settings_tabs' );
|
|
|
|
?>
|
2016-02-23 08:33:11 +00:00
|
|
|
</h2>
|
2013-07-26 14:36:28 +00:00
|
|
|
<?php
|
2016-01-05 11:23:15 +00:00
|
|
|
do_action( 'woocommerce_sections_' . $current_tab );
|
|
|
|
|
2015-11-11 14:18:26 +00:00
|
|
|
self::show_messages();
|
|
|
|
|
2013-07-26 14:36:28 +00:00
|
|
|
do_action( 'woocommerce_settings_' . $current_tab );
|
|
|
|
do_action( 'woocommerce_settings_tabs_' . $current_tab ); // @deprecated hook
|
|
|
|
?>
|
2014-11-30 06:52:32 +00:00
|
|
|
<p class="submit">
|
|
|
|
<?php if ( ! isset( $GLOBALS['hide_save_button'] ) ) : ?>
|
2015-08-05 16:51:44 +00:00
|
|
|
<input name="save" class="button-primary" type="submit" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>" />
|
2014-11-30 06:52:32 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<input type="hidden" name="subtab" id="last_tab" />
|
|
|
|
<?php wp_nonce_field( 'woocommerce-settings' ); ?>
|
|
|
|
</p>
|
2013-07-26 14:36:28 +00:00
|
|
|
</form>
|
2014-11-30 06:52:32 +00:00
|
|
|
</div>
|