2010-12-07 20:19:27 +01:00
|
|
|
<?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(
|
2011-02-09 21:25:16 +01:00
|
|
|
'label' => 'Now Playing',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Nowplaying',
|
|
|
|
'action' => 'index',
|
2011-02-11 00:03:41 +01:00
|
|
|
'resource' => 'nowplaying'
|
2010-12-07 20:19:27 +01:00
|
|
|
),
|
2011-01-27 16:07:30 +01:00
|
|
|
array(
|
2011-02-13 22:42:10 +01:00
|
|
|
'label' => 'Add Audio',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Plupload',
|
|
|
|
'action' => 'plupload',
|
|
|
|
'resource' => 'plupload'
|
2011-01-27 16:07:30 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => 'Playlist Builder',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Library',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'library'
|
|
|
|
),
|
|
|
|
array(
|
2011-02-14 13:16:57 +01:00
|
|
|
'label' => 'Calendar',
|
2011-02-13 22:42:10 +01:00
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Schedule',
|
|
|
|
'action' => 'index',
|
|
|
|
'resource' => 'schedule'
|
2011-01-27 16:07:30 +01:00
|
|
|
),
|
2011-02-04 01:17:52 +01:00
|
|
|
array(
|
|
|
|
'label' => 'Configure',
|
2011-02-13 23:51:28 +01:00
|
|
|
'uri' => '#',
|
2011-02-04 01:17:52 +01:00
|
|
|
'resource' => 'preference',
|
|
|
|
'pages' => array(
|
|
|
|
array(
|
|
|
|
'label' => 'Preferences',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'Preference'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => 'Manage Users',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'user',
|
|
|
|
'action' => 'add-user',
|
|
|
|
'resource' => 'user'
|
|
|
|
)
|
|
|
|
)
|
2011-02-12 00:13:26 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'label' => 'Help',
|
|
|
|
'module' => 'default',
|
|
|
|
'controller' => 'dashboard',
|
|
|
|
'action' => 'help',
|
|
|
|
'resource' => 'dashboard'
|
|
|
|
)
|
2010-12-07 20:19:27 +01:00
|
|
|
);
|
2011-02-04 01:17:52 +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";
|
2010-12-07 20:19:27 +01:00
|
|
|
|
|
|
|
//store it in the registry:
|
|
|
|
Zend_Registry::set('Zend_Navigation', $container);
|