123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <?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(
- 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',
- 'controller' => 'Schedule',
- 'action' => 'index',
- 'resource' => 'schedule'
- ),
- array(
- 'label' => _('System'),
- 'uri' => '#',
- 'resource' => 'preference',
- 'pages' => array(
- array(
- 'label' => _('Preferences'),
- 'module' => 'default',
- 'controller' => 'Preference'
- ),
- array(
- 'label' => _('Users'),
- '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'
- )
- )
- ),
- 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' => _('Help'),
- 'uri' => '#',
- 'resource' => 'dashboard',
- 'pages' => array(
- array(
- 'label' => _('Getting Started'),
- 'module' => 'default',
- 'controller' => 'dashboard',
- 'action' => 'help',
- 'resource' => 'dashboard'
- ),
- array(
- 'label' => _('User Manual'),
- 'uri' => "http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/",
- 'target' => "_blank"
- ),
- array(
- 'label' => _('About'),
- 'module' => 'default',
- 'controller' => 'dashboard',
- 'action' => 'about',
- 'resource' => 'dashboard'
- )
- )
- )
- );
- // Create container from array
- $container = new Zend_Navigation($pages);
- $container->id = "nav";
- //store it in the registry:
- Zend_Registry::set('Zend_Navigation', $container);
|