sintonia/airtime_mvc/application/configs/navigation.php

197 lines
5.8 KiB
PHP
Raw Normal View History

<?php
/*
* Navigation container (config/array)
* 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(
'label' => _('Now Playing'),
2011-02-09 21:25:16 +01:00
'module' => 'default',
'controller' => 'Showbuilder',
2011-02-09 21:25:16 +01:00
'action' => 'index',
'resource' => 'showbuilder'
2015-08-14 14:30:52 +02:00
),*/
array(
'label' => _('Add Media'),
'module' => 'default',
'controller' => 'Plupload',
'action' => 'index',
'resource' => 'plupload'
2015-08-14 14:30:52 +02:00
),/*
array(
'label' => _('Library'),
'module' => 'default',
'controller' => 'Library',
'action' => 'index',
'resource' => 'playlist'
2015-08-14 14:30:52 +02:00
),*/
array(
'label' => _('Calendar'),
'module' => 'default',
'controller' => 'Schedule',
'action' => 'index',
'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(
'label' => _('System'),
'uri' => '#',
'resource' => 'preference',
2011-02-04 01:17:52 +01:00
'pages' => array(
array(
'label' => _('Preferences'),
2011-02-04 01:17:52 +01:00
'module' => 'default',
'controller' => 'Preference'
),
array(
'label' => _('Users'),
2011-02-04 01:17:52 +01:00
'module' => 'default',
'controller' => 'user',
'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' => _('Listener Stats'),
'module' => 'default',
'controller' => 'listenerstat',
'action' => 'index',
'resource' => 'listenerstat'
2015-02-12 20:08:06 +01:00
),
array(
'label' => _('Embeddable Widgets'),
2015-02-12 20:08:06 +01:00
'module' => 'default',
'controller' => 'embeddablewidgets',
'action' => 'index'
)
2011-02-04 01:17:52 +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',
'controller' => 'playouthistorytemplate',
'action' => 'index',
'resource' => 'playouthistorytemplate'
2013-07-23 00:11:44 +02:00
),
)
),
array(
'label' => _('Help'),
'uri' => '#',
'resource' => 'dashboard',
'pages' => array(
array(
'label' => _('Help Center'),
'uri' => HELP_URL,
'target' => "_blank"
),
array(
'label' => _('Getting Started'),
'module' => 'default',
'controller' => 'dashboard',
'action' => 'help',
'resource' => 'dashboard'
),
array(
'label' => _('FAQ'),
'uri' => FAQ_URL,
'target' => "_blank"
),
array(
'label' => _('User Manual'),
'uri' => USER_MANUAL_URL,
'target' => "_blank"
),
array(
'label' => _('About'),
'module' => 'default',
'controller' => 'dashboard',
'action' => 'about',
'resource' => 'dashboard'
),
array(
'label' => _(sprintf("Help Translate %s", PRODUCT_NAME)),
'uri' => AIRTIME_TRANSIFEX_URL,
'target' => "_blank"
)
)
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'
)
)
)
);
2011-02-04 01:17:52 +01:00
// Create container from array
$container = new Zend_Navigation($pages);
$container->id = "nav";
//store it in the registry:
Zend_Registry::set('Zend_Navigation', $container);