AzuraCast/templates/minimal.phtml

65 lines
1.5 KiB
PHTML

<!DOCTYPE html>
<?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
* @var App\View\GlobalSections $sections
*/
$title ??= null;
$hide_footer ??= false;
?>
<html data-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><?= $customization->getPageTitle($title) ?></title>
<?= $this->fetch('partials/head') ?>
<?= $sections->get('head') ?>
<style>
<?=$customization->getCustomPublicCss() ?>
</style>
<?= $sections->get('station_head') ?>
</head>
<body class="page-minimal <?= $page_class ?? '' ?>">
<?= $this->fetch('partials/bodyjs') ?>
<?= $sections->get('bodyjs') ?>
<script>
<?=$customization->getCustomPublicJs() ?>
</script>
<?= $sections->get('station_bodyjs') ?>
<?= $this->section('content') ?>
<?php
$hide_footer ??= false;
if (!$customization->hideProductName() && !$hide_footer): ?>
<footer id="footer" class="footer-alt" role="contentinfo">
<?= sprintf(
__('Powered by %s'),
'<a href="https://azuracast.com/" target="_blank">' . $environment->getAppName() . '</a>' . ' '
) ?>
</footer>
<?php
endif; ?>
</body>
</html>