<?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'     => 'Nowplaying',
		'controller' => 'index',
		'action'     => 'index',
		'order'      => -100 //make sure home is the first page
	),
	array(
		'label'      => 'Schedule',
		'uri' => 'javascript:void(null)',
		'pages'      => array(
		    array(
		        'label'      => 'View',
		        'module'     => 'default',
		        'controller' => 'Schedule',
		        'action'     => 'index',
				'resource'	=>	'schedule'
		    ),
		    array(
		        'label'      => 'Add Show',
		        'module'     => 'default',
		        'controller' => 'Schedule',
		        'action'     => 'add-show-dialog',
				'resource'	=>	'schedule'
		    )
		)
	),
	array(
		'label'      => 'Playlist Builder',
		'module'     => 'default',
		'controller' => 'Library',
		'action'     => 'index',
		'resource'	=>	'library'
	),
	array(
		'label'      => 'Add Audio',
		'module'     => 'default',
		'controller' => 'Plupload',
		'action'     => 'plupload',
		'resource'	=>	'plupload'
	),
	array(
		'label'      => 'Configure',
		'uri' => 'javascript:void(null)',
		'pages'      => array(
		    array(
		        'label'      => 'Preferences',
		        'module'     => 'default',
		        'controller' => 'Nowplaying'
		    ),
			array(
				'label'      => 'Manage Users',
				'module'     => 'default',
				'controller' => 'user',
				'action'     => 'add-user',
				'resource'	=>	'user'	
			)
		)
	)
	/*
	array(
		'label'      => 'Media Library',
		'module'     => 'default',
		'controller' => 'Library',
		'action'     => 'index',
		'resource'	=>	'library',
		'pages'      => array(
		    array(
		        'label'      => 'Add Audio',
		        'module'     => 'default',
		        'controller' => 'Plupload',
		        'action'     => 'plupload',
				'resource'	=>	'plupload'
		    ),
			array(
		        'label'      => 'Search (not working right now)',
		        'module'     => 'default',
		        'controller' => 'Search',
		        'action'     => 'index',
				'resource'	=>	'search'
		    )
		)
	)
	*/
);
 
// Create container from array
$container = new Zend_Navigation($pages);
$container->id = "nav";
 
//store it in the registry:
Zend_Registry::set('Zend_Navigation', $container);