2015-01-08 10:10:06 +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 >
2015-01-04 07:37:51 +00:00
< head >
2016-09-24 22:12:54 +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
if ($title)
2017-07-19 00:09:29 +00:00
$page_title = $title.' - '.$app_settings['name'];
2016-09-24 22:12:54 +00:00
else
2017-07-19 00:09:29 +00:00
$page_title = $app_settings['name'];
2016-09-24 22:12:54 +00:00
2017-07-16 18:41:28 +00:00
if (!APP_IN_PRODUCTION)
2016-09-24 22:12:54 +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('main_header')
->load('main_body')
->load('theme_'.$customization->getTheme());
?>
2016-09-24 22:12:54 +00:00
2017-09-24 11:29:19 +00:00
<? = $assets -> css ( 'header' ) ?>
<? = $assets -> css ( 'body' ) ?>
<? = $assets -> js ( 'header' ) ?>
2016-09-24 22:12:54 +00:00
2017-09-20 02:10:06 +00:00
< style type = "text/css" >
2017-09-24 11:29:19 +00:00
<? = $customization -> getCustomInternalCss () ?>
2017-09-20 02:10:06 +00:00
< / style >
2018-01-09 09:53:48 +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-24 22:12:54 +00:00
var APP_BaseUrl = '<? = $url -> named ( 'home' ) ?> ';
var APP_ContentPath = '<? = $url -> content ( '' ) ?> ';
< / script >
2015-01-04 07:37:51 +00:00
< / head >
2016-10-07 02:41:04 +00:00
< body class = " <? = $page_class ?> " >
< header id = "header" class = "clearfix" data-ma-theme = "blue" style = "background-image: url(' <? = $url -> content ( 'img/header_bg.png' ) ?> ');" data-rjs = "3" >
< ul class = "h-inner" >
2016-10-07 09:59:10 +00:00
<?php if ( ! empty ( $sidebar )) : ?>
2016-10-07 02:41:04 +00:00
< li class = "hi-trigger ma-trigger" data-ma-action = "sidebar-open" data-ma-target = "#sidebar" >
2016-05-02 03:17:53 +00:00
< div class = "line-wrap" >
< div class = "line top" > < / div >
< div class = "line center" > < / div >
< div class = "line bottom" > < / div >
< / div >
< / li >
2016-09-17 19:58:29 +00:00
<?php endif ; ?>
2016-05-02 03:17:53 +00:00
2016-05-13 04:48:04 +00:00
< li class = "logo" >
2016-09-17 19:58:29 +00:00
< a href = " <? = $url -> named ( 'home' ) ?> " >
2017-08-12 07:47:23 +00:00
azura< strong > cast</ strong > <?php if ( ! empty ( $customization -> getInstanceName ())) : ?> < small > <? = $this -> e ( $customization -> getInstanceName ()) ?> </ small > <?php endif ; ?>
2016-05-13 04:48:04 +00:00
< / a >
2016-05-02 03:17:53 +00:00
< / li >
< li class = "pull-right" >
2017-11-08 18:11:09 +00:00
< ul class = "hi-menu" role = "toolbar" >
2016-11-08 07:46:17 +00:00
<? = $this -> fetch ( 'partials/radio_controls' ) ?>
2016-05-17 08:40:44 +00:00
2016-05-02 03:17:53 +00:00
< li class = "dropdown" >
2016-10-07 02:41:04 +00:00
< a data-toggle = "dropdown" href = "" > < i class = "him-icon zmdi zmdi-more-vert" > < / i > < / a >
2016-05-02 03:17:53 +00:00
< ul class = "dropdown-menu dm-icon pull-right" >
2016-11-01 14:56:39 +00:00
< li >< a href = " <? = $url -> named ( 'home' ) ?> " >< i class = "zmdi zmdi-home" ></ i > <? = _ ( 'Dashboard' ) ?> </ a ></ li >
2018-02-06 17:55:58 +00:00
<?php if ( $acl -> userAllowed ( $user , 'view administration' )) : ?>
2016-10-12 00:58:40 +00:00
< li >< a href = " <? = $url -> named ( 'admin:index:index' ) ?> " >< i class = "zmdi zmdi-settings" ></ i > <? = _ ( 'System Administration' ) ?> </ a ></ li >
2016-10-21 08:34:06 +00:00
<?php endif ; ?>
2016-10-12 00:58:40 +00:00
< li >< a href = " <? = $url -> named ( 'profile:index' ) ?> " >< i class = "zmdi zmdi-account" ></ i > <? = _ ( 'My Account' ) ?> </ a ></ li >
2018-02-06 11:09:05 +00:00
< li >< a href = " <? = $url -> named ( 'api_keys:index' ) ?> " >< i class = "zmdi zmdi-key" ></ i > <? = _ ( 'My API Keys' ) ?> </ a ></ li >
2016-05-06 01:04:18 +00:00
< li class = "divider" > < / li >
2016-10-08 07:08:13 +00:00
<?php if ( $auth -> isMasqueraded ()) : ?>
2016-10-12 00:58:40 +00:00
< li >< a href = " <? = $url -> named ( 'account:endmasquerade' ) ?> " >< i class = "zmdi zmdi-power" ></ i > <? = _ ( 'End Session' ) ?> </ a ></ li >
2016-10-08 07:08:13 +00:00
<?php else : ?>
2016-10-12 00:58:40 +00:00
< li >< a href = " <? = $url -> named ( 'account:logout' ) ?> " >< i class = "zmdi zmdi-power" ></ i > <? = _ ( 'Sign Out' ) ?> </ a ></ li >
2016-10-08 07:08:13 +00:00
<?php endif ; ?>
2016-05-02 03:17:53 +00:00
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / header >
2015-01-04 07:37:51 +00:00
2016-05-02 03:17:53 +00:00
< section id = "main" >
2016-10-07 09:59:10 +00:00
<?php if ( ! empty ( $sidebar )) : ?>
2017-11-08 18:11:09 +00:00
< nav id = "sidebar" class = "sidebar c-overflow" role = "navigation" >
2016-10-07 09:59:10 +00:00
<? = $sidebar ?>
2017-11-08 18:11:09 +00:00
< / nav >
2016-09-17 19:58:29 +00:00
<?php endif ; ?>
2016-05-02 03:17:53 +00:00
2017-11-08 18:11:09 +00:00
< section id = "content" <?php if ( empty ( $sidebar )) : ?> class = "content-alt" <?php endif ; ?> role = "main" >
2016-05-02 03:17:53 +00:00
< div class = "container" >
2016-09-17 19:58:29 +00:00
<?php if ( $manual ) : ?>
<? = $this -> section ( 'content' ) ?>
<?php else : ?>
2016-05-02 03:17:53 +00:00
< div class = "block-header" >
2016-05-06 01:04:18 +00:00
< h2 > <? = $title ?> </ h2 >
2016-05-02 03:17:53 +00:00
< / div >
2016-05-06 01:04:18 +00:00
< div class = "card" >
< div class = "card-body card-padding" >
2016-09-17 19:58:29 +00:00
<? = $this -> section ( 'content' ) ?>
2015-05-18 05:42:02 +00:00
< / div >
< / div >
2016-09-17 19:58:29 +00:00
<?php endif ; ?>
2015-05-18 05:42:02 +00:00
< / div >
2016-05-02 03:17:53 +00:00
< / section >
< / section >
2017-11-08 18:11:09 +00:00
< footer id = "footer" <?php if ( empty ( $sidebar )) : ?> class = "footer-alt" <?php endif ; ?> role = "contentinfo" >
2017-12-13 06:08:40 +00:00
<? = sprintf ( _ ( 'Powered by %s Version %s.' ), '<a href="https://github.com/AzuraCast/AzuraCast" target="_blank">' . $app_settings [ 'name' ] . '</a>' , \AzuraCast\Version :: getVersionText () . ' ' . ( APP_INSIDE_DOCKER ? '(Docker)' : '(Traditional)' )) ?> < br >
2016-09-17 19:58:29 +00:00
PHP <? = \PHP_VERSION ?> , SlimPHP 3
2016-05-02 03:17:53 +00:00
< / footer >
2016-05-17 08:40:44 +00:00
< div id = "radio-player" > < / div >
2017-09-24 11:29:19 +00:00
<? = $assets -> js ( 'body' ) ?>
2016-05-05 09:58:16 +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-05-05 09:58:16 +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' ] ?> ', false);
2016-10-21 08:34:06 +00:00
<?php endforeach ; ?>
2016-05-05 09:58:16 +00:00
});
< / script >
2016-10-21 08:34:06 +00:00
<?php endif ; ?>
2015-01-04 07:37:51 +00:00
< / body >
< / html >