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-08-14 14:30:52 +02:00
|
|
|
/*array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Now Playing'),
|
2011-02-09 21:25:16 +01:00
|
|
|
'module' => 'default',
|
2012-03-12 14:23:03 +01:00
|
|
|
'controller' => 'Showbuilder',
|
2011-02-09 21:25:16 +01:00
|
|
|
'action' => 'index',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'showbuilder'
|
2015-08-14 14:30:52 +02:00
|
|
|
),*/
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Add Media'),
|
2012-08-21 17:13:27 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Plupload',
|
|
|
|
'action' => 'index',
|
2013-08-29 00:25:46 +02:00
|
|
|
'resource' => 'plupload'
|
2015-08-14 14:30:52 +02:00
|
|
|
),/*
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Library'),
|
2012-08-21 17:13:27 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Library',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'playlist'
|
2015-08-14 14:30:52 +02:00
|
|
|
),*/
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Calendar'),
|
2011-02-13 22:42:10 +01:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Schedule',
|
|
|
|
'action' => 'index',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'schedule'
|
|
|
|
),
|
2015-06-12 23:21:46 +02:00
|
|
|
array(
|
|
|
|
'label' => _('Radio Page'),
|
|
|
|
'uri' => '/',
|
|
|
|
'resource' => '',
|
|
|
|
'pages' => array(
|
|
|
|
)
|
|
|
|
),
|
2011-02-04 01:17:52 +01:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('System'),
|
2012-08-21 17:13:27 +02:00
|
|
|
'uri' => '#',
|
|
|
|
'resource' => 'preference',
|
2011-02-04 01:17:52 +01:00
|
|
|
'pages' => array(
|
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Preferences'),
|
2011-02-04 01:17:52 +01:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Preference'
|
|
|
|
),
|
|
|
|
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
|
|
|
),
|
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Media Folders'),
|
2011-06-21 10:24:02 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Preference',
|
2011-09-07 15:55:21 +02:00
|
|
|
'action' => 'directory-config',
|
2012-08-21 17:13:27 +02:00
|
|
|
'id' => 'manage_folder'
|
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',
|
|
|
|
'controller' => 'Preference',
|
|
|
|
'action' => 'stream-setting'
|
2011-08-19 01:05:13 +02:00
|
|
|
),
|
2011-09-02 20:37:40 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Status'),
|
2011-09-02 20:37:40 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'systemstatus',
|
|
|
|
'action' => 'index',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'systemstatus'
|
2012-03-08 18:30:56 +01:00
|
|
|
),
|
2012-11-02 21:59:39 +01:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Listener Stats'),
|
2012-11-02 21:59:39 +01:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'listenerstat',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'listenerstat'
|
2015-02-12 20:08:06 +01:00
|
|
|
),
|
|
|
|
array(
|
2015-06-11 00:02:25 +02:00
|
|
|
'label' => _('Embeddable Widgets'),
|
2015-02-12 20:08:06 +01:00
|
|
|
'module' => 'default',
|
2015-06-04 18:00:23 +02:00
|
|
|
'controller' => 'embeddablewidgets',
|
|
|
|
'action' => 'index'
|
2012-08-21 17:13:27 +02:00
|
|
|
)
|
2011-02-04 01:17:52 +01:00
|
|
|
)
|
2011-02-12 00:13:26 +01:00
|
|
|
),
|
2013-07-23 00:11:44 +02:00
|
|
|
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',
|
2013-08-29 00:25:46 +02:00
|
|
|
'controller' => 'playouthistorytemplate',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'playouthistorytemplate'
|
2013-07-23 00:11:44 +02:00
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
2012-08-21 17:13:27 +02:00
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('Help'),
|
2012-08-21 17:13:27 +02:00
|
|
|
'uri' => '#',
|
|
|
|
'resource' => 'dashboard',
|
2011-08-31 00:00:03 +02:00
|
|
|
'pages' => array(
|
2014-12-17 22:10:04 +01:00
|
|
|
array(
|
|
|
|
'label' => _('Help Center'),
|
2015-06-26 20:42:52 +02:00
|
|
|
'uri' => HELP_URL,
|
2014-12-17 22:10:04 +01:00
|
|
|
'target' => "_blank"
|
|
|
|
),
|
2011-08-31 00:00:03 +02:00
|
|
|
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
|
|
|
),
|
|
|
|
array(
|
2012-11-15 19:24:30 +01:00
|
|
|
'label' => _('About'),
|
2011-09-02 23:29:08 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'dashboard',
|
|
|
|
'action' => 'about',
|
2012-08-21 17:13:27 +02:00
|
|
|
'resource' => 'dashboard'
|
2015-06-26 20:27:27 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _(sprintf("Help Translate %s", PRODUCT_NAME)),
|
|
|
|
'uri' => AIRTIME_TRANSIFEX_URL,
|
|
|
|
'target' => "_blank"
|
2011-08-31 00:00:03 +02:00
|
|
|
)
|
|
|
|
)
|
2014-06-20 23:25:05 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => _('Billing'),
|
|
|
|
'uri' => '#',
|
|
|
|
'resource' => '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(
|
2014-06-20 23:29:56 +02:00
|
|
|
'label' => _('View Invoices'),
|
2014-06-20 23:25:05 +02:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'billing',
|
|
|
|
'action' => 'invoices',
|
|
|
|
'resource' => 'billing'
|
|
|
|
)
|
|
|
|
)
|
2012-08-21 17:13:27 +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);
|