2010-12-07 20:19:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Navigation container (config/array)
|
2011-03-24 20:05:49 +01:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
* Each element in the array will be passed to
|
|
|
|
* Zend_Navigation_Page::factory() when constructing
|
|
|
|
* the navigation container below.
|
|
|
|
*/
|
|
|
|
$pages = array(
|
2015-11-13 20:57:32 +01:00
|
|
|
array(
|
|
|
|
'label' => "<i class='icon-music icon-white'></i>"._('My Podcast'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'podcast',
|
|
|
|
'action' => 'station',
|
|
|
|
'resource' => 'podcast'
|
|
|
|
),
|
2015-08-20 16:56:11 +02:00
|
|
|
array(
|
|
|
|
'label' => "<i class='icon-globe icon-white'></i>"._('Radio Page'),
|
|
|
|
'uri' => '/',
|
|
|
|
'resource' => '',
|
|
|
|
'pages' => array(
|
|
|
|
)
|
|
|
|
),
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2015-08-19 18:58:31 +02:00
|
|
|
'label' => "<i class='icon-calendar icon-white'></i>"._('Calendar'),
|
2011-02-13 22:42:10 +01:00
|
|
|
'module' => 'default',
|
2015-08-26 23:02:01 +02:00
|
|
|
'controller' => 'schedule',
|
2011-02-13 22:42:10 +01:00
|
|
|
'action' => 'index',
|
2015-08-26 23:02:01 +02:00
|
|
|
'resource' => 'schedule'
|
2012-08-21 17:13:27 +02:00
|
|
|
),
|
2015-06-12 23:21:46 +02:00
|
|
|
array(
|
2015-08-20 16:56:11 +02:00
|
|
|
'label' => "<i class='icon-wrench icon-white'></i>"._('Widgets'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'embeddablewidgets',
|
|
|
|
'action' => 'player',
|
2015-08-28 17:32:19 +02:00
|
|
|
'resource' => 'embeddablewidgets',
|
2015-08-20 16:56:11 +02:00
|
|
|
'title' => 'Widgets',
|
2015-06-12 23:21:46 +02:00
|
|
|
'pages' => array(
|
2015-08-20 16:56:11 +02:00
|
|
|
array(
|
|
|
|
'label' => _('Player'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'embeddablewidgets',
|
|
|
|
'action' => 'player',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _('Weekly Schedule'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'embeddablewidgets',
|
|
|
|
'action' => 'schedule',
|
2015-10-30 19:38:34 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _('Facebook'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'embeddablewidgets',
|
|
|
|
'action' => 'facebook',
|
2015-08-20 16:56:11 +02:00
|
|
|
)
|
2015-06-12 23:21:46 +02:00
|
|
|
)
|
|
|
|
),
|
2011-02-04 01:17:52 +01:00
|
|
|
array(
|
2015-08-19 18:58:31 +02:00
|
|
|
'label' => "<i class='icon-cog icon-white'></i>"._("Settings"),
|
2015-08-17 18:46:32 +02:00
|
|
|
'resource' => 'preference',
|
|
|
|
'action' => 'index',
|
|
|
|
'module' => 'default',
|
2015-08-26 23:02:01 +02:00
|
|
|
'controller' => 'preference',
|
2015-08-19 18:58:31 +02:00
|
|
|
'title' => 'Settings',
|
2015-08-17 18:46:32 +02:00
|
|
|
'pages' => array(
|
2011-02-04 01:17:52 +01:00
|
|
|
array(
|
2015-08-18 23:52:23 +02:00
|
|
|
'label' => _('General'),
|
2011-02-04 01:17:52 +01:00
|
|
|
'module' => 'default',
|
2015-08-26 23:02:01 +02:00
|
|
|
'controller' => 'preference'
|
2011-02-04 01:17:52 +01:00
|
|
|
),
|
2015-08-17 22:22:55 +02:00
|
|
|
array(
|
|
|
|
'label' => _('My Profile'),
|
|
|
|
'controller' => 'user',
|
|
|
|
'action' => 'edit-user',
|
|
|
|
'resource' => 'user'
|
|
|
|
),
|
2011-02-04 01:17:52 +01:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Users'),
|
2011-02-04 01:17:52 +01:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'user',
|
|
|
|
'action' => 'add-user',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'user'
|
2011-06-21 10:24:02 +02:00
|
|
|
),
|
2011-08-15 22:10:46 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Streams'),
|
2011-08-15 22:10:46 +02:00
|
|
|
'module' => 'default',
|
2015-08-26 23:02:01 +02:00
|
|
|
'controller' => 'preference',
|
2011-08-15 22:10:46 +02:00
|
|
|
'action' => 'stream-setting'
|
2015-08-17 18:46:32 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
2015-08-19 18:58:31 +02:00
|
|
|
'label' => "<i class='icon-signal icon-white'></i>"._("Analytics"),
|
2015-08-17 18:46:32 +02:00
|
|
|
'module' => 'default',
|
2015-10-19 20:09:42 +02:00
|
|
|
'controller' => 'playouthistory',
|
2015-08-17 18:46:32 +02:00
|
|
|
'action' => 'index',
|
2015-10-19 20:09:42 +02:00
|
|
|
'resource' => 'playouthistory',
|
2015-08-19 18:58:31 +02:00
|
|
|
'title' => 'Analytics',
|
2015-08-17 18:46:32 +02:00
|
|
|
'pages' => array(
|
2012-11-02 21:59:39 +01:00
|
|
|
array(
|
2015-08-17 18:46:32 +02:00
|
|
|
'label' => _('Playout History'),
|
2012-11-02 21:59:39 +01:00
|
|
|
'module' => 'default',
|
2015-08-17 18:46:32 +02:00
|
|
|
'controller' => 'playouthistory',
|
2012-11-02 21:59:39 +01:00
|
|
|
'action' => 'index',
|
2015-08-17 18:46:32 +02:00
|
|
|
'resource' => 'playouthistory'
|
2015-02-12 20:08:06 +01:00
|
|
|
),
|
|
|
|
array(
|
2015-08-17 18:46:32 +02:00
|
|
|
'label' => _('History Templates'),
|
2015-02-12 20:08:06 +01:00
|
|
|
'module' => 'default',
|
2015-08-17 18:46:32 +02:00
|
|
|
'controller' => 'playouthistorytemplate',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'playouthistorytemplate'
|
2015-10-19 20:09:42 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _('Listener Stats'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'listenerstat',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'listenerstat'
|
|
|
|
),
|
2011-02-04 01:17:52 +01:00
|
|
|
)
|
2011-02-12 00:13:26 +01:00
|
|
|
),
|
2015-08-17 18:46:32 +02:00
|
|
|
array(
|
2015-10-27 20:01:34 +01:00
|
|
|
'label' => (Application_Model_Preference::GetPlanLevel()=="trial") ? "<i class='icon-star icon-orange'></i><span style='color: #ff5d1a'>"._('Upgrade')."</span>" : "<i class='icon-briefcase icon-white'></i>"._('Billing'),
|
2015-08-20 16:56:11 +02:00
|
|
|
'controller' => 'billing',
|
2015-08-26 15:16:06 +02:00
|
|
|
'action' => 'upgrade',
|
2015-08-20 16:56:11 +02:00
|
|
|
'resource' => 'billing',
|
|
|
|
'title' => 'Billing',
|
2015-08-17 22:15:26 +02:00
|
|
|
'pages' => array(
|
|
|
|
array(
|
2015-08-26 15:16:06 +02:00
|
|
|
'label' => _('Account Plans'),
|
2015-08-20 16:56:11 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'billing',
|
2015-08-26 15:16:06 +02:00
|
|
|
'action' => 'upgrade',
|
2015-08-20 16:56:11 +02:00
|
|
|
'resource' => 'billing'
|
2015-08-17 22:15:26 +02:00
|
|
|
),
|
|
|
|
array(
|
2015-08-26 15:16:06 +02:00
|
|
|
'label' => _('Account Details'),
|
2015-08-20 16:56:11 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'billing',
|
2015-08-26 15:16:06 +02:00
|
|
|
'action' => 'client',
|
2015-08-20 16:56:11 +02:00
|
|
|
'resource' => 'billing'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _('View Invoices'),
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'billing',
|
|
|
|
'action' => 'invoices',
|
|
|
|
'resource' => 'billing'
|
2015-08-17 22:15:26 +02:00
|
|
|
)
|
|
|
|
)
|
2015-08-17 18:46:32 +02:00
|
|
|
),
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2015-08-19 18:58:31 +02:00
|
|
|
'label' => "<i class='icon-question-sign icon-white'></i>"._('Help'),
|
2015-08-17 18:46:32 +02:00
|
|
|
'controller' => 'dashboard',
|
|
|
|
'action' => 'help',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'dashboard',
|
2015-08-19 18:58:31 +02:00
|
|
|
'title' => 'Help',
|
2011-08-31 00:00:03 +02:00
|
|
|
'pages' => array(
|
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Getting Started'),
|
2011-08-31 00:00:03 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'dashboard',
|
|
|
|
'action' => 'help',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'dashboard'
|
2011-08-31 00:00:03 +02:00
|
|
|
),
|
2015-06-19 20:22:58 +02:00
|
|
|
array(
|
|
|
|
'label' => _('FAQ'),
|
2015-06-26 20:42:52 +02:00
|
|
|
'uri' => FAQ_URL,
|
2015-06-19 20:22:58 +02:00
|
|
|
'target' => "_blank"
|
|
|
|
),
|
2011-08-31 00:00:03 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('User Manual'),
|
2015-06-26 20:42:52 +02:00
|
|
|
'uri' => USER_MANUAL_URL,
|
2011-09-02 20:37:40 +02:00
|
|
|
'target' => "_blank"
|
2011-09-02 23:29:08 +02:00
|
|
|
),
|
2015-08-28 18:18:44 +02:00
|
|
|
array(
|
|
|
|
'label' => _('File a Support Ticket'),
|
|
|
|
'uri' => SUPPORT_TICKET_URL,
|
|
|
|
'target' => "_blank"
|
|
|
|
),
|
2015-06-26 20:27:27 +02:00
|
|
|
array(
|
|
|
|
'label' => _(sprintf("Help Translate %s", PRODUCT_NAME)),
|
|
|
|
'uri' => AIRTIME_TRANSIFEX_URL,
|
|
|
|
'target' => "_blank"
|
2015-09-28 23:19:02 +02:00
|
|
|
),
|
|
|
|
array(
|
2015-09-29 18:36:56 +02:00
|
|
|
'label' => _('What\'s New?'),
|
2015-09-28 23:19:02 +02:00
|
|
|
'uri' => UI_REVAMP_YOUTUBE_URL,
|
|
|
|
'target' => "_blank"
|
2011-08-31 00:00:03 +02:00
|
|
|
)
|
|
|
|
)
|
2014-06-20 23:25:05 +02:00
|
|
|
),
|
2010-12-07 20:19:27 +01:00
|
|
|
);
|
2011-02-04 01:17:52 +01:00
|
|
|
|
2011-03-24 20:05:49 +01:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
// Create container from array
|
|
|
|
$container = new Zend_Navigation($pages);
|
2011-01-27 00:31:59 +01:00
|
|
|
$container->id = "nav";
|
2011-03-24 20:05:49 +01:00
|
|
|
|
2010-12-07 20:19:27 +01:00
|
|
|
//store it in the registry:
|
|
|
|
Zend_Registry::set('Zend_Navigation', $container);
|