diff --git a/airtime_mvc/application/configs/navigation.php b/airtime_mvc/application/configs/navigation.php index d06c136b7..42de99fe8 100644 --- a/airtime_mvc/application/configs/navigation.php +++ b/airtime_mvc/application/configs/navigation.php @@ -8,27 +8,6 @@ * the navigation container below. */ $pages = array( - /*array( - 'label' => _('Now Playing'), - 'module' => 'default', - 'controller' => 'Showbuilder', - 'action' => 'index', - 'resource' => 'showbuilder' - ),*/ - array( - 'label' => _('Add Media'), - 'module' => 'default', - 'controller' => 'Plupload', - 'action' => 'index', - 'resource' => 'plupload' - ),/* - array( - 'label' => _('Library'), - 'module' => 'default', - 'controller' => 'Library', - 'action' => 'index', - 'resource' => 'playlist' - ),*/ array( 'label' => _('Calendar'), 'module' => 'default', @@ -44,10 +23,12 @@ $pages = array( ) ), array( - 'label' => _('System'), - 'uri' => '#', - 'resource' => 'preference', - 'pages' => array( + 'label' => _("Settings"), + 'resource' => 'preference', + 'action' => 'index', + 'module' => 'default', + 'controller' => 'preference', + 'pages' => array( array( 'label' => _('Preferences'), 'module' => 'default', @@ -60,26 +41,21 @@ $pages = array( 'action' => 'add-user', 'resource' => 'user' ), - array( - 'label' => _('Media Folders'), - 'module' => 'default', - 'controller' => 'Preference', - 'action' => 'directory-config', - 'id' => 'manage_folder' - ), array( 'label' => _('Streams'), 'module' => 'default', 'controller' => 'Preference', 'action' => 'stream-setting' - ), - array( - 'label' => _('Status'), - 'module' => 'default', - 'controller' => 'systemstatus', - 'action' => 'index', - 'resource' => 'systemstatus' - ), + ) + ) + ), + array( + 'label' => _("Analytics"), + 'module' => 'default', + 'controller' => 'listenerstat', + 'action' => 'index', + 'resource' => 'listenerstat', + 'pages' => array( array( 'label' => _('Listener Stats'), 'module' => 'default', @@ -88,44 +64,33 @@ $pages = array( 'resource' => 'listenerstat' ), array( - 'label' => _('Embeddable Widgets'), + 'label' => _('Playout History'), 'module' => 'default', - 'controller' => 'embeddablewidgets', - 'action' => 'index' + 'controller' => 'playouthistory', + 'action' => 'index', + 'resource' => 'playouthistory' + ), + array( + 'label' => _('History Templates'), + 'module' => 'default', + 'controller' => 'playouthistorytemplate', + 'action' => 'index', + 'resource' => 'playouthistorytemplate' ) ) ), - array( - 'label' => _('History'), - 'uri' => '#', - 'resource' => 'playouthistory', - 'pages' => array( - array( - 'label' => _('Playout History'), - 'module' => 'default', - 'controller' => 'playouthistory', - 'action' => 'index', - 'resource' => 'playouthistory' - ), - array( - 'label' => _('History Templates'), - 'module' => 'default', - 'controller' => 'playouthistorytemplate', - 'action' => 'index', - 'resource' => 'playouthistorytemplate' - ), - ) - ), + array( + 'label' => _('Widgets'), + 'module' => 'default', + 'controller' => 'embeddablewidgets', + 'action' => 'index' + ), array( 'label' => _('Help'), - 'uri' => '#', + 'controller' => 'dashboard', + 'action' => 'help', 'resource' => 'dashboard', 'pages' => array( - array( - 'label' => _('Help Center'), - 'uri' => HELP_URL, - 'target' => "_blank" - ), array( 'label' => _('Getting Started'), 'module' => 'default', @@ -133,6 +98,11 @@ $pages = array( 'action' => 'help', 'resource' => 'dashboard' ), + array( + 'label' => _('Help Center'), + 'uri' => HELP_URL, + 'target' => "_blank" + ), array( 'label' => _('FAQ'), 'uri' => FAQ_URL, @@ -159,7 +129,8 @@ $pages = array( ), array( 'label' => _('Billing'), - 'uri' => '#', + 'controller' => 'billing', + 'action' => 'client', 'resource' => 'billing', 'pages' => array( array( diff --git a/airtime_mvc/application/controllers/BillingController.php b/airtime_mvc/application/controllers/BillingController.php index fda5c881d..b2c5140a3 100644 --- a/airtime_mvc/application/controllers/BillingController.php +++ b/airtime_mvc/application/controllers/BillingController.php @@ -21,6 +21,10 @@ 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(); $baseUrl = Application_Common_OsPath::getBaseDir(); $this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']); @@ -207,6 +211,9 @@ 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(); $baseUrl = Application_Common_OsPath::getBaseDir(); $this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']); @@ -257,6 +264,9 @@ 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(); $baseUrl = Application_Common_OsPath::getBaseDir(); $this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']); diff --git a/airtime_mvc/application/controllers/DashboardController.php b/airtime_mvc/application/controllers/DashboardController.php index 2dc134eec..a0c5a58d5 100644 --- a/airtime_mvc/application/controllers/DashboardController.php +++ b/airtime_mvc/application/controllers/DashboardController.php @@ -108,11 +108,14 @@ class DashboardController extends Zend_Controller_Action public function helpAction() { - // action body + $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/ListenerstatController.php b/airtime_mvc/application/controllers/ListenerstatController.php index d8ac220b5..67ddd25f5 100644 --- a/airtime_mvc/application/controllers/ListenerstatController.php +++ b/airtime_mvc/application/controllers/ListenerstatController.php @@ -17,6 +17,9 @@ 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'); $this->view->headScript()->appendFile($baseUrl.'js/flot/jquery.flot.crosshair.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/airtime/listenerstat/listenerstat.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); diff --git a/airtime_mvc/application/controllers/PlayouthistoryController.php b/airtime_mvc/application/controllers/PlayouthistoryController.php index 533f41d76..da5e22fdd 100644 --- a/airtime_mvc/application/controllers/PlayouthistoryController.php +++ b/airtime_mvc/application/controllers/PlayouthistoryController.php @@ -24,6 +24,9 @@ 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()); $userTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone()); diff --git a/airtime_mvc/application/controllers/PlayouthistorytemplateController.php b/airtime_mvc/application/controllers/PlayouthistorytemplateController.php index c6651d8eb..885e9ccc6 100644 --- a/airtime_mvc/application/controllers/PlayouthistorytemplateController.php +++ b/airtime_mvc/application/controllers/PlayouthistorytemplateController.php @@ -17,6 +17,9 @@ 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'); $this->view->headLink()->appendStylesheet($baseUrl.'css/history_styles.css?'.$CC_CONFIG['airtime_version']); @@ -31,6 +34,9 @@ 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'); $this->view->headLink()->appendStylesheet($baseUrl.'css/history_styles.css?'.$CC_CONFIG['airtime_version']); diff --git a/airtime_mvc/application/controllers/PreferenceController.php b/airtime_mvc/application/controllers/PreferenceController.php index 7eee7afbe..477ba67ea 100644 --- a/airtime_mvc/application/controllers/PreferenceController.php +++ b/airtime_mvc/application/controllers/PreferenceController.php @@ -23,6 +23,9 @@ 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(); @@ -143,6 +146,9 @@ 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(); $this->view->headScript()->appendFile($baseUrl.'js/airtime/preferences/streamsetting.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); diff --git a/airtime_mvc/application/controllers/UserController.php b/airtime_mvc/application/controllers/UserController.php index 264444562..8212a6efe 100644 --- a/airtime_mvc/application/controllers/UserController.php +++ b/airtime_mvc/application/controllers/UserController.php @@ -22,6 +22,10 @@ class UserController 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(); $js_files = array( diff --git a/airtime_mvc/application/layouts/scripts/layout.phtml b/airtime_mvc/application/layouts/scripts/layout.phtml index 2699018f6..5552d386a 100644 --- a/airtime_mvc/application/layouts/scripts/layout.phtml +++ b/airtime_mvc/application/layouts/scripts/layout.phtml @@ -79,7 +79,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
- + + +
@@ -106,7 +109,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

diff --git a/airtime_mvc/application/layouts/scripts/page-sub-menu.phtml b/airtime_mvc/application/layouts/scripts/page-sub-menu.phtml new file mode 100644 index 000000000..f28bcac3c --- /dev/null +++ b/airtime_mvc/application/layouts/scripts/page-sub-menu.phtml @@ -0,0 +1,178 @@ +doctype() ?> + + + + headTitle() ?> + headLink() ?> + headScript() ?> + google_analytics)?$this->google_analytics:"" ?> + + + + + + + + +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/application/views/scripts/preference/stream-setting.phtml b/airtime_mvc/application/views/scripts/preference/stream-setting.phtml index 04e6170f5..80956681c 100644 --- a/airtime_mvc/application/views/scripts/preference/stream-setting.phtml +++ b/airtime_mvc/application/views/scripts/preference/stream-setting.phtml @@ -6,7 +6,7 @@ form->getElement('csrf') ?>
statusMsg;?> -
+

@@ -102,7 +102,7 @@
form->getSubform('live_stream_subform'); ?>
-
+

i.icon-white { } #new_media_selector { - width: 100%; font-size: 14px; } @@ -3596,3 +3595,32 @@ button.btn-icon-text > i.icon-white { margin-bottom: 10px; } +#sub-menu { + width: 10%; + border-right: 1px solid #5b5b5b; + font-size: 14px; + color: #cecece; + padding: 10px; +} + +#sub-menu .navigation { + list-style: none; + padding-left: 0px; +} + +#sub-menu .navigation li { + padding-bottom: 10px; +} + +#sub-menu .navigation a { + color: #cecece; + text-decoration: none; +} + +#listenerstat_content { + width: 100%; +} + +.dashboard-btn { + width: 50%; +} diff --git a/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js b/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js index 3c1cfc9df..dbc81b658 100644 --- a/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js +++ b/airtime_mvc/public/js/airtime/listenerstat/listenerstat.js @@ -6,8 +6,8 @@ $(document).ready(function() { timeEndId = "#his_time_end"; // set width dynamically - var width = $("#content").width(); - width = width - 120; + var width = $("#listenerstat_content").width(); + width = width * .91; $("#listenerstat_content").find("#flot_placeholder").width(width); $("#listenerstat_content").find("#legend").width(width);