mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-10 16:48:41 +00:00
59 lines
1.5 KiB
PHP
Executable File
59 lines
1.5 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Web\{APPNAME}
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
*
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
/** @var phpOMS\Model\Html\Head $head */
|
|
$head = $this->head;
|
|
|
|
/** @var array $dispatch */
|
|
$dispatch = $this->getData('dispatch') ?? [];
|
|
?>
|
|
<!DOCTYPE HTML>
|
|
<html lang="<?= $this->printHtml($this->response->header->l11n->language); ?>">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="theme-color" content="#262626">
|
|
<meta name="msapplication-navbutton-color" content="#262626">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="#262626">
|
|
<meta name="description" content="<?= $this->getHtml(':meta', '0', '0'); ?>">
|
|
<?= $head->render(); ?>
|
|
|
|
<base href="/">
|
|
|
|
<link rel="manifest" href="<?= UriFactory::build('Web/{APPNAME}/manifest.json'); ?>">
|
|
<link rel="shortcut icon" href="<?= UriFactory::build('Web/{APPNAME}/img/favicon.ico'); ?>" type="image/x-icon">
|
|
|
|
<title><?= $this->printHtml($head->title); ?></title>
|
|
|
|
<?= $head->renderAssets(); ?>
|
|
|
|
<style><?= $head->renderStyle(); ?></style>
|
|
<script><?= $head->renderScript(); ?></script>
|
|
</head>
|
|
<body>
|
|
<?php include __DIR__ . '/tpl/header.tpl.php'; ?>
|
|
<main>
|
|
<?php
|
|
foreach ($dispatch as $view) {
|
|
if ($view instanceof \phpOMS\Contract\RenderableInterface) {
|
|
echo $view->render();
|
|
}
|
|
}
|
|
?>
|
|
</main>
|
|
<?php include __DIR__ . '/tpl/footer.tpl.php'; ?>
|