function theme_menutree_page in MenuTree 6
Same name and namespace in other branches
- 5 menutree.module \theme_menutree_page()
Theme the menutree.
Parameters
string $title: The title of this tree, if any.
$description: The descriptive intro text for this tree, if any.
$tree: The pre-rendered menu tree itself.
1 theme call to theme_menutree_page()
- menutree_display in ./
menutree.pages.inc - Display a fully-expanded version of the menu specified on the path
File
- ./
menutree.pages.inc, line 95 - User-facing page callbacks for the menutree module.
Code
function theme_menutree_page($title, $description, $tree) {
$output = '';
if ($title) {
$output .= '<h3>' . $title . "</h3>\n";
}
if ($description) {
$output .= '<div class="menutree-description">' . $description . "</div>\n";
}
$output .= $tree;
return '<div class="menutree-page">' . $output . "</div>\n";
}