| Server IP : 167.99.224.18 / Your IP : 216.73.216.136 Web Server : Apache/2.4.41 (Ubuntu) System : Linux wordpress-ubuntu-s-1vcpu-1gb-nyc1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.0.25 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins-old/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">
<thead>
<tr>
<th width="75%"><?php echo esc_html( $report_meta['dimension'] ); ?></th>
<th class="right"><?php echo esc_html( $first_metric_display_name ); ?></th>
</tr>
</thead>
<tbody>
<?php
$matomo_report_metadata = $report['reportMetadata'];
foreach ( $report['reportData']->getRows() as $matomo_report_id => $matomo_report_row ) {
if ( ! empty( $matomo_report_row[ $first_metric_name ] ) ) {
$matomo_logo_image = '';
$matomo_meta_row = $matomo_report_metadata->getRowFromId( $matomo_report_id );
if ( ! empty( $matomo_meta_row ) ) {
$matomo_logo = $matomo_meta_row->getColumn( 'logo' );
if ( ! empty( $matomo_logo ) ) {
$matomo_logo_image = '<img height="16" src="' . plugins_url( 'app/' . $matomo_logo, MATOMO_ANALYTICS_FILE ) . '"> ';
}
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '<tr><td width="75%">' . $matomo_logo_image . esc_html( $matomo_report_row['label'] ) . '</td><td width="25%">' . esc_html( $matomo_report_row[ $first_metric_name ] ) . '</td></tr>';
}
}
?>
</tbody>
</table>
</div>