parent
411585e8c8
commit
02f8e12ed5
|
@ -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'] ) {
|
||||
|
|
Loading…
Reference in New Issue