Change heading and tab markup

Closes #10515
This commit is contained in:
Mike Jolley 2016-03-10 12:52:20 +00:00
parent 29d35151a1
commit 2d2c64d2ab
3 changed files with 5 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -2424,7 +2424,7 @@ img.help_tip {
.woocommerce {
.woo-nav-tab-wrapper {
margin-bottom: 16px !important;
margin: 1.5em 0 1em !important;
border-bottom: 1px solid #ccc;
}

View File

@ -9,9 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<div class="wrap woocommerce">
<form method="<?php echo esc_attr( apply_filters( 'woocommerce_settings_form_method_tab_' . $current_tab, 'post' ) ); ?>" id="mainform" action="" enctype="multipart/form-data">
<div class="icon32 icon32-woocommerce-settings" id="icon-woocommerce"><br /></div>
<h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
<h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
<?php
foreach ( $tabs as $name => $label ) {
echo '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=' . $name ) . '" class="nav-tab ' . ( $current_tab == $name ? 'nav-tab-active' : '' ) . '">' . $label . '</a>';
@ -19,7 +17,8 @@ if ( ! defined( 'ABSPATH' ) ) {
do_action( 'woocommerce_settings_tabs' );
?>
</h2>
</nav>
<h1 class="screen-reader-text"><?php echo esc_html( $tabs[ $current_tab ] ); ?></h1>
<?php
do_action( 'woocommerce_sections_' . $current_tab );