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-07-19 00:09:29 +00:00
* @var array $app_settings
* @var object $assets
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' ) ?>
< link rel = "stylesheet" type = "text/css" href = " <? = $url -> content ( 'vendors/bower_components/animate.css/animate.min.css' ) ?> " >
< link rel = "stylesheet" type = "text/css" href = " <? = $url -> content ( 'vendors/bower_components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css' ) ?> " >
< link rel = "stylesheet" type = "text/css" href = " <? = $url -> content ( 'vendors/bower_components/bootstrap-sweetalert/lib/sweet-alert.css' ) ?> " >
< link rel = "stylesheet" type = "text/css" href = " <? = $url -> content ( 'vendors/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css' ) ?> " >
< link rel = "stylesheet" type = "text/css" href = " <? = $url -> content ( 'vendors/bootgrid/jquery.bootgrid.min.css' ) ?> " >
<? = $this -> section ( 'custom_css' ) ?>
2017-06-23 04:54:50 +00:00
< link rel = "stylesheet" type = "text/css" href = " <? = $assets -> getPath ( 'css/' . $customization -> getTheme () . '.css' ) ?> " >
2016-10-11 05:15:25 +00:00
2016-09-24 22:12:54 +00:00
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/jquery/dist/jquery.min.js' ) ?> " ></ script >
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/bootstrap/dist/js/bootstrap.min.js' ) ?> " ></ script >
2017-07-25 06:30:25 +00:00
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/vue/dist/' . ( APP_IN_PRODUCTION ? 'vue.min.js' : 'vue.js' )) ?> " ></ script >
2016-09-24 22:12:54 +00:00
2016-09-25 07:09:00 +00:00
< script type = "text/javascript" >
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-05-21 04:27:34 +00:00
azura< strong > cast</ strong > <?php if ( ! empty ( $customization -> getInstanceName ())) : ?> < small > <? = $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" >
2016-10-07 02:41:04 +00:00
< ul class = "hi-menu" >
2016-05-15 14:52:44 +00:00
<!--
2016-05-02 03:17:53 +00:00
< li id = "top-search" >
< a href = "" > < i class = "tm-icon zmdi zmdi-search" > < / i > < / a >
< / li >
2016-05-15 14:52:44 +00:00
-->
2016-05-02 03:17:53 +00:00
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 >
2016-10-21 08:34:06 +00:00
<?php if ( $acl -> isAllowed ( '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 >
2016-05-06 01:04:18 +00:00
< li class = "divider" > < / li >
2016-10-07 03:56:08 +00:00
<!--
2016-09-21 06:24:52 +00:00
< li class = "hidden-xs" >
2016-09-30 22:31:30 +00:00
< a data-action = "fullscreen" href = "" >< i class = "zmdi zmdi-fullscreen" ></ i > <? = _ ( 'Toggle Fullscreen' ) ?> </ a >
2016-09-21 06:24:52 +00:00
< / li >
2016-10-07 03:56:08 +00:00
-->
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 >
2016-05-15 14:52:44 +00:00
<!-- Top Search Content
2016-05-02 03:17:53 +00:00
< div id = "top-search-wrap" >
< div class = "tsw-inner" >
< i id = "top-search-close" class = "zmdi zmdi-arrow-left" > < / i >
< input type = "text" >
< / div >
2016-05-15 14:52:44 +00:00
< / div > -->
2016-05-02 03:17:53 +00:00
< / 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 )) : ?>
2016-05-02 03:17:53 +00:00
< aside id = "sidebar" class = "sidebar c-overflow" >
2016-10-07 09:59:10 +00:00
<? = $sidebar ?>
2016-05-02 03:17:53 +00:00
< / aside >
2016-09-17 19:58:29 +00:00
<?php endif ; ?>
2016-05-02 03:17:53 +00:00
2016-10-07 09:59:10 +00:00
< section id = "content" <?php if ( empty ( $sidebar )) : ?> class = "content-alt" <?php endif ; ?> >
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 >
2016-10-07 09:59:10 +00:00
< footer id = "footer" <?php if ( empty ( $sidebar )) : ?> class = "footer-alt" <?php endif ; ?> >
2017-07-19 00:09:29 +00:00
<? = sprintf ( _ ( 'Powered by %s Version %s.' ), '<a href="https://github.com/AzuraCast/AzuraCast" target="_blank">' . $app_settings [ 'name' ] . '</a>' , \AzuraCast\Version :: getVersionText ()) ?> < br >
2016-09-17 19:58:29 +00:00
PHP <? = \PHP_VERSION ?> , SlimPHP 3
2016-05-02 03:17:53 +00:00
< / footer >
2016-09-22 20:21:07 +00:00
<?php /*
2016-05-02 03:17:53 +00:00
<!-- Page Loader -->
< div class = "page-loader" >
< div class = "preloader pls-blue" >
< svg class = "pl-circular" viewBox = "25 25 50 50" >
2016-05-05 09:58:16 +00:00
< circle class = "plc-path" cx = "50" cy = "50" r = "20" > < / circle >
2016-05-02 03:17:53 +00:00
< / svg >
< p > Please wait...< / p >
2015-01-04 07:37:51 +00:00
< / div >
< / div >
2016-09-22 20:21:07 +00:00
*/ ?>
2015-01-04 07:37:51 +00:00
2016-05-17 08:40:44 +00:00
< div id = "radio-player" > < / div >
2016-09-17 19:58:29 +00:00
<? = $this -> section ( 'custom_js' ) ?>
2017-06-23 04:54:50 +00:00
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/zxcvbn/dist/zxcvbn.js' ) ?> " ></ script >
2016-09-17 19:58:29 +00:00
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js' ) ?> " ></ script >
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bootstrap-growl/bootstrap-growl.min.js' ) ?> " ></ script >
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/bootstrap-sweetalert/lib/sweet-alert.min.js' ) ?> " ></ script >
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bower_components/autosize/dist/autosize.js' ) ?> " ></ script >
2016-09-21 07:50:34 +00:00
< script type = "text/javascript" src = " <? = $url -> content ( 'vendors/bootgrid/jquery.bootgrid.updated.js' ) ?> " ></ script >
2016-09-25 07:09:00 +00:00
2017-06-23 04:54:50 +00:00
< script type = "text/javascript" src = " <? = $assets -> getPath ( 'js/app.min.js' ) ?> " ></ script >
2016-05-05 09:58:16 +00:00
2016-10-21 08:34:06 +00:00
<?php if ( $flash -> hasMessages ()) : ?>
2016-05-05 09:58:16 +00:00
< script type = "text/javascript" >
$(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 >