Viewing File: /usr/local/cpanel/3rdparty/wp-toolkit/php-files/CpanelMainPage.php
<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.
class CpanelMainPage implements MainPageInterface
{
private const APP_KEY = 'wordpress-toolkit';
private const APP_TITLE = 'WP Toolkit';
/**
* @var CPANEL
*/
private $cpanel;
/**
* @param CPANEL $cpanel
*/
public function __construct($cpanel)
{
$this->cpanel = $cpanel;
}
public function checkConstraints(): void
{
}
public function getCpanelHeader(): string
{
$header = $this->cpanel->header(self::APP_TITLE, self::APP_KEY);
$header .= '<style>.page-header { display: none !important; }</style>';
return $header;
}
public function getCpanelFooter(): string
{
return $this->cpanel->footer();
}
public function isCpanel(): bool
{
return true;
}
}
Back to Directory
File Manager