Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites
Syntax: theme_navbar_item(string $text, [string $link, bool $isActive, string $elementID])
Render a navigation item meant to be used in a navigation bar (usually in the header of the page).
Parameters
$text
The text to display
Optional $link
The link of the item. Can be a path or a URL. If not set, the link will be a sharp (‘#’)
Optional $isActive
Set the item to be seen as active
by the end user or not. This add the active
class to the element. If not set, it is determined automatically based on the provided $link
.
Optional $elementID
The HTML ID and name of the item.
Return values
The HTML code for rendering a navigation item inside a navigation bar with the specified text, link, state and ID.
Examples:
Print a navigation item with the text Welcome! and a link to the root of the website
echo theme_navbar_item('Welcome!', '/');
NOTE: You can see this example in context in the header.php file.