4in1_ws_web/classes/handler/IndexHandler.php
2024-01-01 00:57:22 +00:00

24 lines
537 B
PHP

<?php
namespace handler;
use admin;
use posts;
class IndexHandler extends \RequestHandler {
public function get(): \Response {
global $config;
$page = \pages::getPageByName($config['index_page_id']);
$this->skin->title = $page->title;
$this->skin->fixedTitle = true;
return $this->skin->renderPage('main/page',
unsafe_html: $page->getHtml($this->isRetina(), \themes::getUserTheme()),
page_url: $page->getUrl(),
short_name: $page->shortName);
}
}