Merge branch 'master' of github.com:woothemes/woocommerce

This commit is contained in:
Claudio Sanches 2016-06-30 04:44:22 -03:00
commit bc9b2f6f9a
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'] ) {