|
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/Admin/ |
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
*/
namespace WpMatomo\Admin;
class MatomoPage {
/**
* @var MatomoPageContent
*/
private $content;
/**
* @var string
*/
private $content_show_method;
public function __construct( MatomoPageContent $content, $content_show_method = 'show' ) {
$this->content = $content;
$this->content_show_method = $content_show_method;
}
public function show() {
$title = $this->content->get_title();
?>
<div class="wrap">
<div id="icon-plugins" class="icon32"></div>
<?php if ( ! empty( $title ) ) { ?>
<h1><?php matomo_header_icon(); ?><?php echo esc_html( $title ); ?></h1>
<?php
}
do_action( 'matomo_page_content_before' );
call_user_func( [ $this->content, $this->content_show_method ] );
do_action( 'matomo_page_content_after' );
?>
</div>
<?php
}
public function get_content() {
return $this->content;
}
}