| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* JCH Optimize - Performs several front-end optimizations for fast downloads |
| 5 |
* |
| 6 |
* @package jchoptimize/wordpress-platform |
| 7 |
* @author Samuel Marshall <samuel@jch-optimize.net> |
| 8 |
* @copyright Copyright (c) 2020 Samuel Marshall / JCH Optimize |
| 9 |
* @license GNU/GPLv3, or later. See LICENSE file |
| 10 |
* |
| 11 |
* If LICENSE file missing, see <http://www.gnu.org/licenses/>. |
| 12 |
*/ |
| 13 |
|
| 14 |
namespace JchOptimize\WordPress\Controller; |
| 15 |
|
| 16 |
use _JchOptimizeVendor\V91\Joomla\Input\Input; |
| 17 |
use JchOptimize\Core\Mvc\Controller; |
| 18 |
use JchOptimize\Core\Mvc\View; |
| 19 |
|
| 20 |
class Help extends Controller |
| 21 |
{ |
| 22 |
use AuthorizesAdminRequestsTrait; |
| 23 |
|
| 24 |
public function __construct(private View $view, ?Input $input) |
| 25 |
{ |
| 26 |
parent::__construct($input); |
| 27 |
} |
| 28 |
|
| 29 |
public function execute(): bool |
| 30 |
{ |
| 31 |
$this->authorizeManageOptions(); |
| 32 |
$this->view->addData('tab', 'help'); |
| 33 |
|
| 34 |
echo $this->view->render(); |
| 35 |
|
| 36 |
return true; |
| 37 |
} |
| 38 |
} |
| 39 |
|