Provides navigation for the items/browse page.
Installed and activated plugins may add elements to the items navigation through the public_navigation_items filter.
Usage
<?php public_nav_items($navArray) ?>
Arguments
- $navArray (array): An array of link labels pointing to link URLs. Best practice for creating links to other parts of an Omeka site is to use the uri() helper.
- $maxDepth (integer) How many navigation sub-levels to display. This defaults to 0, it will only display the "top level" of links.
Example
This function is generally used along with a php echo command. Here it is called with arguments pointing to the URIs for the normal and tag-based item browse pages.
<?php echo public_nav_items( array( 'Browse All' => uri('items'), 'Browse by Tag' => uri('items/tags') ) ); ?>
CSS Styles
The default CSS style div class tag is .navigation.
Source File/Version
- application/helpers/LinkFunctions.php since Omeka 1.3