AzuraCast/templates/minimal.phtml

68 lines
1.7 KiB
PHTML
Raw Normal View History

<?php
/**
* @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
* @var App\Environment $environment
2022-11-16 01:16:04 +01:00
* @var App\View\GlobalSections $sections
*/
$title ??= null;
$hide_footer ??= false;
?>
<!DOCTYPE html>
<html lang="<?= $customization->getLocale()->getHtmlLang() ?>"
data-bs-theme="<?= $customization->getPublicTheme()?->value ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= $this->e($customization->getPageTitle($title)) ?></title>
2022-11-16 01:16:04 +01:00
<?= $this->fetch('partials/head') ?>
2022-11-16 01:16:04 +01:00
<?= $sections->get('head') ?>
2022-11-16 01:16:04 +01:00
<style>
<?=$customization->getCustomPublicCss() ?>
</style>
2023-01-03 23:55:49 +01:00
<?= $sections->get('station_head') ?>
</head>
2022-11-16 01:16:04 +01:00
<body class="page-minimal <?= $page_class ?? '' ?>">
<?= $sections->get('bodyjs') ?>
<script>
<?=$customization->getCustomPublicJs() ?>
</script>
2023-01-03 23:55:49 +01:00
<?= $sections->get('station_bodyjs') ?>
<main>
<?= $this->section('content') ?>
</main>
<?php
2021-04-23 04:16:00 +02:00
$hide_footer ??= false;
if (!$customization->hideProductName() && !$hide_footer): ?>
<footer id="footer" class="footer-alt" role="contentinfo" aria-label="<?= __('Footer') ?>">
2022-11-16 01:16:04 +01:00
<?= sprintf(
__('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>
<?php
endif; ?>
<?= $this->fetch('partials/toasts') ?>
</body>
</html>