Adam 2009-02-24
Documentation » Printp_links
Prints a menu (links) of nodes. Useful for constructing site's menu UI elements
void p_links( [int $depth = 1, string $types = false, string $list_tag = 'ul', string $item_tag = 'li', mixed $id = true, string $add_class = false, string $inside_tag = false] )
Parameters
- int $depth Menu depth (0 - current element and its children, 1 - children, 2 - all descendants)
- string $types Comma separated list of allowed node types (FALSE for any)
- string $list_tag Global HTML tag to wrap the menu with
- string $item_tag HTML tag to wrap each menu element with
- mixed $id Node identifier to start with or level (0 - list all elements beginning at root), or TRUE for current node
- string $add_class Adds item's tag class name to active elements, so they will be marked with class name of 'class-active' rather than just 'active'
- string $inside_tag Inner HTML tag for menu item titles (FALSE for none)
