You are here

function theme_menutree_page in MenuTree 5

Same name and namespace in other branches
  1. 6 menutree.pages.inc \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.module
Display a fully-expanded version of the menu specified on the path

File

./menutree.module, line 253
This module provides a simple "site map" tree based on the menu system rather than on taxonomies.

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";
}