Remove h1 and legacy icon, switch to nav element

Closes #11296
This commit is contained in:
Mike Jolley 2016-06-30 08:39:04 +01:00
parent 411585e8c8
commit 02f8e12ed5
1 changed files with 4 additions and 6 deletions

View File

@ -9,9 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-woocommerce-reports" id="icon-woocommerce"><br /></div>
<h1><?php echo sprintf( esc_html__( '%s Report', 'woocommerce' ), $reports[ $current_tab ]['title'] ); ?></h1>
<h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
<?php
foreach ( $reports as $key => $report_group ) {
echo '<a href="' . admin_url( 'admin.php?page=wc-reports&tab=' . urlencode( $key ) ) . '" class="nav-tab ';
@ -23,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
do_action( 'wc_reports_tabs' );
?>
</h2>
</nav>
<?php if ( sizeof( $reports[ $current_tab ]['reports'] ) > 1 ) {
?>
<ul class="subsubsub">
@ -58,9 +56,9 @@ if ( ! defined( 'ABSPATH' ) ) {
$report = $reports[ $current_tab ][ 'reports' ][ $current_report ];
if ( ! isset( $report['hide_title'] ) || $report['hide_title'] != true ) {
echo '<h2>' . esc_html( $report['title'] ) . '</h2>';
echo '<h1>' . esc_html( $report['title'] ) . '</h1>';
} else {
echo '<h2 class="screen-reader-text">' . esc_html( $report['title'] ) . '</h2>';
echo '<h1 class="screen-reader-text">' . esc_html( $report['title'] ) . '</h1>';
}
if ( $report['description'] ) {