diff --git a/airtime_mvc/application/configs/navigation.php b/airtime_mvc/application/configs/navigation.php index 51897c5cf..00a84fb18 100644 --- a/airtime_mvc/application/configs/navigation.php +++ b/airtime_mvc/application/configs/navigation.php @@ -8,6 +8,13 @@ * the navigation container below. */ $pages = array( + array( + 'label' => ""._('Radio Page'), + 'uri' => '/', + 'resource' => '', + 'pages' => array( + ) + ), array( 'label' => ""._('Calendar'), 'module' => 'default', @@ -16,10 +23,24 @@ $pages = array( 'resource' => 'schedule' ), array( - 'label' => ""._('Radio Page'), - 'uri' => '/', - 'resource' => '', + 'label' => ""._('Widgets'), + 'module' => 'default', + 'controller' => 'embeddablewidgets', + 'action' => 'player', + 'title' => 'Widgets', 'pages' => array( + array( + 'label' => _('Player'), + 'module' => 'default', + 'controller' => 'embeddablewidgets', + 'action' => 'player', + ), + array( + 'label' => _('Weekly Schedule'), + 'module' => 'default', + 'controller' => 'embeddablewidgets', + 'action' => 'schedule', + ) ) ), array( @@ -88,23 +109,32 @@ $pages = array( ) ), array( - 'label' => ""._('Widgets'), - 'module' => 'default', - 'controller' => 'embeddablewidgets', - 'action' => 'player', - 'title' => 'Widgets', + 'label' => ""._('Billing'), + 'controller' => 'billing', + 'action' => 'client', + 'resource' => 'billing', + 'title' => 'Billing', 'pages' => array( array( - 'label' => _('Player'), - 'module' => 'default', - 'controller' => 'embeddablewidgets', - 'action' => 'player', + 'label' => _('Account Details'), + 'module' => 'default', + 'controller' => 'billing', + 'action' => 'client', + 'resource' => 'billing' ), array( - 'label' => _('Weekly Schedule'), - 'module' => 'default', - 'controller' => 'embeddablewidgets', - 'action' => 'schedule', + 'label' => _('Account Plans'), + 'module' => 'default', + 'controller' => 'billing', + 'action' => 'upgrade', + 'resource' => 'billing' + ), + array( + 'label' => _('View Invoices'), + 'module' => 'default', + 'controller' => 'billing', + 'action' => 'invoices', + 'resource' => 'billing' ) ) ), @@ -149,36 +179,6 @@ $pages = array( ) ) ), - array( - 'label' => ""._('Billing'), - 'controller' => 'billing', - 'action' => 'client', - 'resource' => 'billing', - 'title' => 'Billing', - 'pages' => array( - array( - 'label' => _('Account Details'), - 'module' => 'default', - 'controller' => 'billing', - 'action' => 'client', - 'resource' => 'billing' - ), - array( - 'label' => _('Account Plans'), - 'module' => 'default', - 'controller' => 'billing', - 'action' => 'upgrade', - 'resource' => 'billing' - ), - array( - 'label' => _('View Invoices'), - 'module' => 'default', - 'controller' => 'billing', - 'action' => 'invoices', - 'resource' => 'billing' - ) - ) - ) ); diff --git a/airtime_mvc/application/controllers/BillingController.php b/airtime_mvc/application/controllers/BillingController.php index b2c5140a3..11e147674 100644 --- a/airtime_mvc/application/controllers/BillingController.php +++ b/airtime_mvc/application/controllers/BillingController.php @@ -22,7 +22,6 @@ class BillingController extends Zend_Controller_Action { public function upgradeAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Billing'); $CC_CONFIG = Config::getConfig(); @@ -211,7 +210,6 @@ class BillingController extends Zend_Controller_Action { public function clientAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Billing'); $CC_CONFIG = Config::getConfig(); @@ -264,7 +262,6 @@ class BillingController extends Zend_Controller_Action { public function invoicesAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Billing'); $CC_CONFIG = Config::getConfig(); diff --git a/airtime_mvc/application/controllers/DashboardController.php b/airtime_mvc/application/controllers/DashboardController.php index a0c5a58d5..660a6b61c 100644 --- a/airtime_mvc/application/controllers/DashboardController.php +++ b/airtime_mvc/application/controllers/DashboardController.php @@ -108,13 +108,11 @@ class DashboardController extends Zend_Controller_Action public function helpAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Help'); } public function aboutAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Help'); $this->view->airtime_version = Application_Model_Preference::GetAirtimeVersion(); } diff --git a/airtime_mvc/application/controllers/EmbeddablewidgetsController.php b/airtime_mvc/application/controllers/EmbeddablewidgetsController.php index 4fc7c4023..210edb969 100644 --- a/airtime_mvc/application/controllers/EmbeddablewidgetsController.php +++ b/airtime_mvc/application/controllers/EmbeddablewidgetsController.php @@ -10,7 +10,6 @@ class EmbeddableWidgetsController extends Zend_Controller_Action public function playerAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Widgets'); $CC_CONFIG = Config::getConfig(); @@ -34,7 +33,6 @@ class EmbeddableWidgetsController extends Zend_Controller_Action public function scheduleAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Widgets'); $apiEnabled = Application_Model_Preference::GetAllow3rdPartyApi(); diff --git a/airtime_mvc/application/controllers/ListenerstatController.php b/airtime_mvc/application/controllers/ListenerstatController.php index 59cb4e15a..15a7a9e3a 100644 --- a/airtime_mvc/application/controllers/ListenerstatController.php +++ b/airtime_mvc/application/controllers/ListenerstatController.php @@ -17,7 +17,6 @@ class ListenerstatController extends Zend_Controller_Action $request = $this->getRequest(); $baseUrl = Application_Common_OsPath::getBaseDir(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Analytics'); $this->view->headScript()->appendFile($baseUrl.'js/flot/jquery.flot.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); diff --git a/airtime_mvc/application/controllers/PlayouthistoryController.php b/airtime_mvc/application/controllers/PlayouthistoryController.php index da5e22fdd..1d55266cb 100644 --- a/airtime_mvc/application/controllers/PlayouthistoryController.php +++ b/airtime_mvc/application/controllers/PlayouthistoryController.php @@ -24,7 +24,6 @@ class PlayouthistoryController extends Zend_Controller_Action $CC_CONFIG = Config::getConfig(); $baseUrl = Application_Common_OsPath::getBaseDir(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Analytics'); list($startsDT, $endsDT) = Application_Common_HTTPHelper::getStartEndFromRequest($this->getRequest()); diff --git a/airtime_mvc/application/controllers/PlayouthistorytemplateController.php b/airtime_mvc/application/controllers/PlayouthistorytemplateController.php index 885e9ccc6..72fea97d3 100644 --- a/airtime_mvc/application/controllers/PlayouthistorytemplateController.php +++ b/airtime_mvc/application/controllers/PlayouthistorytemplateController.php @@ -18,7 +18,6 @@ class PlayouthistorytemplateController extends Zend_Controller_Action $CC_CONFIG = Config::getConfig(); $baseUrl = Application_Common_OsPath::getBaseDir(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Analytics'); $this->view->headScript()->appendFile($baseUrl.'js/airtime/playouthistory/template.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); @@ -35,7 +34,6 @@ class PlayouthistorytemplateController extends Zend_Controller_Action $CC_CONFIG = Config::getConfig(); $baseUrl = Application_Common_OsPath::getBaseDir(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Analytics'); $this->view->headScript()->appendFile($baseUrl.'js/airtime/playouthistory/configuretemplate.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); diff --git a/airtime_mvc/application/controllers/PreferenceController.php b/airtime_mvc/application/controllers/PreferenceController.php index 477ba67ea..359050510 100644 --- a/airtime_mvc/application/controllers/PreferenceController.php +++ b/airtime_mvc/application/controllers/PreferenceController.php @@ -24,7 +24,6 @@ class PreferenceController extends Zend_Controller_Action $CC_CONFIG = Config::getConfig(); $request = $this->getRequest(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings'); $baseUrl = Application_Common_OsPath::getBaseDir(); @@ -146,7 +145,6 @@ class PreferenceController extends Zend_Controller_Action $request = $this->getRequest(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings'); $baseUrl = Application_Common_OsPath::getBaseDir(); diff --git a/airtime_mvc/application/controllers/UserController.php b/airtime_mvc/application/controllers/UserController.php index 321b45be4..d626dcd5f 100644 --- a/airtime_mvc/application/controllers/UserController.php +++ b/airtime_mvc/application/controllers/UserController.php @@ -23,7 +23,6 @@ class UserController extends Zend_Controller_Action $request = $this->getRequest(); - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings'); $baseUrl = Application_Common_OsPath::getBaseDir(); @@ -125,7 +124,6 @@ class UserController extends Zend_Controller_Action public function editUserAction() { - $this->_helper->layout->setLayout("page-sub-menu"); Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings'); session_start(); //Reopen session for writing. diff --git a/airtime_mvc/application/layouts/scripts/layout.phtml b/airtime_mvc/application/layouts/scripts/layout.phtml index 1624c18ef..ffb999a54 100644 --- a/airtime_mvc/application/layouts/scripts/layout.phtml +++ b/airtime_mvc/application/layouts/scripts/layout.phtml @@ -88,13 +88,51 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= navigation()->menu(); ?> + totalSpace-$disk->totalFreeSpace; + $total = $disk->totalSpace; + ?> +
+ +
+
+
;">
+ + + +
+
">
-
- layout()->content ?> +
" id="content"> + layout()->parent_page)) { ?> +
+
+ +
+ +
+ layout()->content; } ?> +
- - -partial('partialviews/trialBox.phtml', array("is_trial" => $this->isTrial(), "trial_remain" => $this->trialRemaining())) ?> - -
- suspended) { ?> - partial('partialviews/suspended.phtml'); ?> - - - versionNotify(); - $sss = $this->SourceSwitchStatus(); - $scs = $this->SourceConnectionStatus(); - ?> - partial('partialviews/header.phtml', array( - "live_dj_switch" => $sss['live_dj'], "live_dj_connection" => $scs['live_dj'], "master_dj_switch" => $sss['master_dj'], "master_dj_connection" => $scs['master_dj'], - "scheduled_play_switch" => $sss['scheduled_play'] - )) ?> - navigation()->menu()->setPartial($partial); ?> - - - -
- -
-
- - - - - -
-
-
-
-
-
-
-
- -
-
-
-
- -
- - -
">
- - -
- - - layout()->content ?> - - -
- - - - - - - - diff --git a/airtime_mvc/public/css/styles.css b/airtime_mvc/public/css/styles.css index 158cdcf93..0d5b45d6d 100644 --- a/airtime_mvc/public/css/styles.css +++ b/airtime_mvc/public/css/styles.css @@ -98,7 +98,7 @@ select { left: 23px; top: 30px; width: 100px; - height: 46px; + height: 42px; } /* Version Notification Starts*/ @@ -2959,23 +2959,7 @@ tfoot tr th { -moz-border-radius: 4px; font-size:13px; } -.statustable .big { - width:120px; - height:10px; - background:#444444; - background: -moz-linear-gradient(top, #464646 0, #3e3e3e 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #3e3e3e), color-stop(100%, #464646)); - border-bottom:1px solid #fff; - margin: 0 auto; - padding: 1px; - display:inline-block; -} -.diskspace { - background-color:#e76400; - background: -moz-linear-gradient(top, #ff6f01 0, #bc5200 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ff6f01), color-stop(100%, #bc5200)); - height:10px; -} + .statustable a { color: #222; text-decoration: underline; @@ -3023,8 +3007,8 @@ tfoot tr th { height:38px; display:block; position:fixed; - left:20px; - bottom:10px; + left:160px; + bottom:0px; background-color:#222; background-color:rgba(0, 0, 0, 0.7); z-index:101; @@ -3662,10 +3646,6 @@ button.btn-icon-text > i.icon-white { text-decoration: none; } -.page-sub-menu { - /*background-color: #252525;*/ -} - #sub-menu-content-panel { flex-grow: 1 @@ -3710,3 +3690,46 @@ hr { display:inline; margin-right:4px } + +#disk_usage { + border-radius: 1px; + /*position: fixed; + bottom: 5px; + left: 10px;*/ + width: 118px; + font-size: 14px; + text-align: center; + padding: 5px 5px; + background-color: #242424; + border: 1px solid #5b5b5b; + color: #ccc; +} + +.disk_usage_progress_bar { + width:118px; + height:13px; + background:#444444; + background: -moz-linear-gradient(top, #464646 0, #3e3e3e 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #3e3e3e), color-stop(100%, #464646)); + margin: 0 auto; + z-index: 1; + position:absolute; +} + +.disk_usage_percent_in_use { + color: #fff; + font-size: 10px; + z-index: 3; + position:absolute; + width: 120px; + line-height: 13px; +} + +.disk_usage_used { + background-color:#e76400; + background: -moz-linear-gradient(top, #ff6f01 0, #bc5200 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ff6f01), color-stop(100%, #bc5200)); + height:13px; + z-index: 2; + position:absolute; +}