| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly. |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* @var array $reports |
| 8 |
* @var int $tabs_count |
| 9 |
*/ |
| 10 |
$tabs_count++; |
| 11 |
|
| 12 |
foreach ( $reports as $report_name => $report ) : |
| 13 |
$report['report']->print_raw( $tabs_count ); |
| 14 |
|
| 15 |
if ( ! empty( $report['sub'] ) ) : |
| 16 |
$this->print_report( $report['sub'], $template, true ); |
| 17 |
endif; |
| 18 |
endforeach; |
| 19 |
|
| 20 |
$tabs_count--; |
| 21 |
|