woocommerce/includes/admin/views/html-admin-settings.php

35 lines
1.7 KiB
PHP
Raw Normal View History

2013-07-26 14:36:28 +00:00
<div class="wrap woocommerce">
<form method="post" id="mainform" action="" enctype="multipart/form-data">
<div class="icon32 icon32-woocommerce-settings" id="icon-woocommerce"><br /></div><h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
<?php
foreach ( $tabs as $name => $label )
echo '<a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>';
do_action( 'woocommerce_settings_tabs' );
?>
</h2>
<?php if ( ! empty( $_GET['hide-wc-extensions-message'] ) ) : ?>
<?php update_option( 'hide-wc-extensions-message', 1 ); ?>
<?php elseif ( ! get_option('hide-wc-extensions-message') ) : ?>
<div id="woocommerce_extensions">
<a href="<?php echo add_query_arg( 'hide-wc-extensions-message', 'true') ?>" class="hide">&times;</a>
<?php printf(__( 'More functionality and gateway options available via <a href="%s" target="_blank">WC official extensions</a>.', 'woocommerce' ), 'http://www.woothemes.com/extensions/woocommerce-extensions/'); ?>
</div>
<?php endif; ?>
<?php
do_action( 'woocommerce_sections_' . $current_tab );
do_action( 'woocommerce_settings_' . $current_tab );
do_action( 'woocommerce_settings_tabs_' . $current_tab ); // @deprecated hook
?>
<p class="submit">
<?php if ( ! isset( $GLOBALS['hide_save_button'] ) ) : ?>
<input name="save" class="button-primary" type="submit" value="<?php _e( 'Save changes', 'woocommerce' ); ?>" />
<?php endif; ?>
<input type="hidden" name="subtab" id="last_tab" />
<?php wp_nonce_field( 'woocommerce-settings' ); ?>
</p>
</form>
</div>