2017-05-21 06:27:34 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2020-07-12 10:57:03 +02:00
|
|
|
* @var League\Plates\Template\Template $this
|
|
|
|
* @var App\Auth $auth
|
|
|
|
* @var App\Acl $acl
|
|
|
|
* @var App\Http\Router $router
|
|
|
|
* @var App\Session\Flash $flash
|
|
|
|
* @var App\Customization $customization
|
|
|
|
* @var App\Version $version
|
|
|
|
* @var App\Http\ServerRequest $request
|
2020-12-06 12:57:39 +01:00
|
|
|
* @var App\Environment $environment
|
2022-11-16 01:16:04 +01:00
|
|
|
* @var App\View\GlobalSections $sections
|
2017-05-21 06:27:34 +02:00
|
|
|
*/
|
2020-07-12 10:57:03 +02:00
|
|
|
|
2021-12-24 01:17:13 +01:00
|
|
|
$title ??= null;
|
|
|
|
$hide_footer ??= false;
|
2017-05-21 06:27:34 +02:00
|
|
|
?>
|
2023-03-31 17:34:34 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="<?= $customization->getLocale()->getHtmlLang() ?>"
|
2023-07-09 03:01:24 +02:00
|
|
|
data-bs-theme="<?= $customization->getPublicTheme()?->value ?>">
|
2016-05-02 05:17:53 +02:00
|
|
|
<head>
|
2020-07-12 10:57:03 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2016-09-25 09:09:00 +02:00
|
|
|
|
2023-04-23 03:15:57 +02:00
|
|
|
<title><?= $this->e($customization->getPageTitle($title)) ?></title>
|
2016-09-25 09:09:00 +02:00
|
|
|
|
2022-11-16 01:16:04 +01:00
|
|
|
<?= $this->fetch('partials/head') ?>
|
2016-09-25 09:09:00 +02:00
|
|
|
|
2022-11-16 01:16:04 +01:00
|
|
|
<?= $sections->get('head') ?>
|
2021-04-13 06:12:50 +02:00
|
|
|
|
2022-11-16 01:16:04 +01:00
|
|
|
<style>
|
|
|
|
<?=$customization->getCustomPublicCss() ?>
|
|
|
|
</style>
|
2023-01-03 23:55:49 +01:00
|
|
|
|
|
|
|
<?= $sections->get('station_head') ?>
|
2016-05-02 05:17:53 +02:00
|
|
|
</head>
|
|
|
|
|
2022-11-16 01:16:04 +01:00
|
|
|
<body class="page-minimal <?= $page_class ?? '' ?>">
|
|
|
|
|
|
|
|
<?= $sections->get('bodyjs') ?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<?=$customization->getCustomPublicJs() ?>
|
|
|
|
</script>
|
2018-08-27 10:31:32 +02:00
|
|
|
|
2023-01-03 23:55:49 +01:00
|
|
|
<?= $sections->get('station_bodyjs') ?>
|
|
|
|
|
2023-04-01 18:29:58 +02:00
|
|
|
<main>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
</main>
|
2016-05-04 07:39:47 +02:00
|
|
|
|
2021-02-15 22:36:34 +01:00
|
|
|
<?php
|
2021-04-23 04:16:00 +02:00
|
|
|
$hide_footer ??= false;
|
2021-02-15 22:36:34 +01:00
|
|
|
if (!$customization->hideProductName() && !$hide_footer): ?>
|
2023-04-01 18:29:58 +02:00
|
|
|
<footer id="footer" class="footer-alt" role="contentinfo" aria-label="<?= __('Footer') ?>">
|
2022-11-16 01:16:04 +01:00
|
|
|
<?= sprintf(
|
2021-02-15 22:36:34 +01:00
|
|
|
__('Powered by %s'),
|
|
|
|
'<a href="https://azuracast.com/" target="_blank">' . $environment->getAppName() . '</a>' . ' '
|
2022-11-16 01:16:04 +01:00
|
|
|
) ?>
|
2018-03-09 01:06:29 +01:00
|
|
|
</footer>
|
2021-02-15 22:36:34 +01:00
|
|
|
<?php
|
|
|
|
endif; ?>
|
2023-07-09 03:01:24 +02:00
|
|
|
|
|
|
|
<?= $this->fetch('partials/toasts') ?>
|
2016-05-02 05:17:53 +02:00
|
|
|
</body>
|
2018-08-05 00:05:14 +02:00
|
|
|
</html>
|