![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/anfangola.com/wp-content/plugins/matomo/classes/WpMatomo/Admin/ |
<?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 */ namespace WpMatomo\Admin; use WpMatomo; use WpMatomo\Settings; if ( ! defined( 'ABSPATH' ) ) { exit; // if accessed directly } class SafeModeMenu { /** * @var Settings */ private $settings; private $parent_slug = 'matomo'; /** * @param Settings $settings */ public function __construct( $settings ) { $this->settings = $settings; add_action( 'admin_menu', [ $this, 'add_menu' ] ); add_action( 'network_admin_menu', [ $this, 'add_menu' ] ); } public function add_menu() { if ( ! WpMatomo::is_admin_user() ) { return; } $system_report = new SystemReport( $this->settings ); add_menu_page( 'Matomo Analytics', 'Matomo Analytics', Menu::CAP_NOT_EXISTS, 'matomo', null, 'dashicons-analytics' ); add_submenu_page( $this->parent_slug, __( 'System Report', 'matomo' ), __( 'System Report', 'matomo' ), 'administrator', Menu::SLUG_SYSTEM_REPORT, [ $system_report, 'show', ] ); } }