2016-05-02 03:17:53 +00:00
|
|
|
<!DOCTYPE html>
|
2017-05-21 04:27:34 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var \League\Plates\Template\Template $this
|
|
|
|
* @var \App\Auth $auth
|
|
|
|
* @var \AzuraCast\Acl\StationAcl $acl
|
|
|
|
* @var \App\Url $url
|
|
|
|
* @var \App\Flash $flash
|
|
|
|
* @var \AzuraCast\Customization $customization
|
2017-09-24 11:29:19 +00:00
|
|
|
* @var \AzuraCast\Assets $assets
|
2017-07-19 00:09:29 +00:00
|
|
|
* @var array $app_settings
|
2017-05-21 04:27:34 +00:00
|
|
|
*/
|
|
|
|
?>
|
2016-05-04 08:13:36 +00:00
|
|
|
<html>
|
2016-05-02 03:17:53 +00:00
|
|
|
<head>
|
2016-09-25 07:09:00 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<?php
|
2018-02-04 13:20:23 +00:00
|
|
|
if ($title) {
|
|
|
|
$page_title = ($customization->hideProductName()) ? $title : $title.' - '.$app_settings['name'];
|
|
|
|
} else {
|
|
|
|
$page_title = ($customization->hideProductName()) ? '' : $app_settings['name'];
|
|
|
|
}
|
2016-09-25 07:09:00 +00:00
|
|
|
|
2017-07-16 18:41:28 +00:00
|
|
|
if (!APP_IN_PRODUCTION)
|
2016-09-25 07:09:00 +00:00
|
|
|
$page_title = '('.ucfirst(APP_APPLICATION_ENV).') '.$page_title;
|
|
|
|
?>
|
|
|
|
<title><?=$page_title ?></title>
|
|
|
|
|
|
|
|
<?=$this->fetch('partials/icons') ?>
|
|
|
|
|
2017-09-24 11:29:19 +00:00
|
|
|
<?php
|
|
|
|
$assets
|
|
|
|
->load('minimal_header')
|
|
|
|
->load('minimal_body')
|
|
|
|
->load('theme_'.$customization->getPublicTheme());
|
|
|
|
?>
|
2016-09-25 07:09:00 +00:00
|
|
|
|
2017-09-24 11:29:19 +00:00
|
|
|
<?=$assets->css('header') ?>
|
|
|
|
<?=$assets->css('body') ?>
|
|
|
|
<?=$assets->js('header') ?>
|
2016-09-25 07:09:00 +00:00
|
|
|
|
2017-09-20 02:10:06 +00:00
|
|
|
<style type="text/css">
|
|
|
|
<?=$customization->getCustomPublicCss() ?>
|
|
|
|
</style>
|
2018-01-09 22:46:39 +00:00
|
|
|
<script type="text/javascript" nonce="<?=$assets->getCspNonce() ?>">
|
2017-07-16 18:41:28 +00:00
|
|
|
var APP_AppEnv = '<?=APP_APPLICATION_ENV ?>';
|
2016-09-25 07:09:00 +00:00
|
|
|
var APP_BaseUrl = '<?=$url->named('home') ?>';
|
|
|
|
var APP_ContentPath = '<?=$url->content('') ?>';
|
|
|
|
</script>
|
2016-05-02 03:17:53 +00:00
|
|
|
</head>
|
|
|
|
|
2016-05-04 05:39:47 +00:00
|
|
|
<body class="<?=$page_class ?>">
|
2016-09-17 21:18:50 +00:00
|
|
|
<?=$this->section('content') ?>
|
2016-05-04 05:39:47 +00:00
|
|
|
|
2018-03-09 00:06:29 +00:00
|
|
|
<?php if (!$customization->hideProductName() && !$hide_footer): ?>
|
|
|
|
<footer id="footer" class="footer-alt" role="contentinfo">
|
2018-03-19 01:31:43 +00:00
|
|
|
<?=sprintf(__('Powered by %s'), '<a href="https://github.com/AzuraCast/AzuraCast" target="_blank">'.$app_settings['name'].'</a>'.' ') ?><br>
|
|
|
|
<?=sprintf(__('Mascot designed by %s'), '<a href="https://tysontan.deviantart.com/" target="_blank">Tyson Tan</a>') ?>
|
2018-03-09 00:06:29 +00:00
|
|
|
</footer>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2017-09-24 11:29:19 +00:00
|
|
|
<?=$assets->js('body') ?>
|
2016-09-23 07:29:02 +00:00
|
|
|
|
2016-10-21 08:34:06 +00:00
|
|
|
<?php if ($flash->hasMessages()): ?>
|
2018-01-28 06:05:56 +00:00
|
|
|
<script type="text/javascript" nonce="<?=$assets->getCspNonce() ?>">
|
2016-09-23 07:29:02 +00:00
|
|
|
$(function() {
|
2016-10-21 08:34:06 +00:00
|
|
|
<?php foreach($flash->getMessages() as $message): ?>
|
2017-06-10 11:04:47 +00:00
|
|
|
notify("<?=str_replace(array('"', "\n"), array('\'', '<br>'), $message['text']) ?>", '<?=$message['color'] ?>', true);
|
2016-10-21 08:34:06 +00:00
|
|
|
<?php endforeach; ?>
|
2016-09-23 07:29:02 +00:00
|
|
|
});
|
|
|
|
</script>
|
2016-10-21 08:34:06 +00:00
|
|
|
<?php endif; ?>
|
2018-03-09 00:06:29 +00:00
|
|
|
|
2018-02-28 15:25:33 +00:00
|
|
|
<script type="text/javascript" nonce="<?=$assets->getCspNonce() ?>">
|
|
|
|
<?=$customization->getCustomPublicJs() ?>
|
|
|
|
</script>
|
2016-05-02 03:17:53 +00:00
|
|
|
</body>
|
|
|
|
</html>
|