|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/KMU-CSR-PLANER/wp-content/plugins/matomo/classes/WpMatomo/Report/views/ |
Upload File : |
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @package matomo
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // if accessed directly
}
/** @var array $report */
/** @var array $report_meta */
/** @var string $first_metric_name */
/** @var string $first_metric_display_name */
?>
<div class="table">
<table class="widefat matomo-table">
<tbody>
<?php
$matomo_columns = ! empty( $report['columns'] ) ? $report['columns'] : [];
foreach ( $report['reportData']->getRows() as $matomo_val => $matomo_row ) {
foreach ( $matomo_row as $matomo_metric_name => $matomo_value ) {
$matomo_display_name = ! empty( $matomo_columns[ $matomo_metric_name ] ) ? $matomo_columns[ $matomo_metric_name ] : $matomo_metric_name;
echo '<tr><td width="75%">' . esc_html( $matomo_display_name ) . '</td><td width="25%">' . esc_html( $matomo_value ) . '</td></tr>';
}
}
?>
</tbody>
</table>
</div>