You are here

menu-block-wrapper.tpl.php in Menu Block 6.2

Same filename and directory in other branches
  1. 7.3 menu-block-wrapper.tpl.php
  2. 7.2 menu-block-wrapper.tpl.php

Default theme implementation to wrap menu blocks.

Available variables:

  • $content: The unordered list containing the menu.
  • $classes: A string containing the CSS classes for the DIV tag. Includes: menu-block-DELTA, menu-name-NAME, parent-mlid-MLID, and menu-level-LEVEL.
  • $classes_array: An array containing each of the CSS classes.

The following variables are provided for contextual information.

  • $settings: An array of the block's configuration settings. Includes menu_name, parent_mlid, level, follow, depth, expanded, and sort.

File

menu-block-wrapper.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to wrap menu blocks.
 *
 * Available variables:
 * - $content: The unordered list containing the menu.
 * - $classes: A string containing the CSS classes for the DIV tag. Includes:
 *   menu-block-DELTA, menu-name-NAME, parent-mlid-MLID, and menu-level-LEVEL.
 * - $classes_array: An array containing each of the CSS classes.
 *
 * The following variables are provided for contextual information.
 * - $settings: An array of the block's configuration settings. Includes
 *   menu_name, parent_mlid, level, follow, depth, expanded, and sort.
 *
 * @see template_preprocess_menu_block_wrapper()
 */
?>
<div class="<?php

print $classes;
?>">
  <?php

print $content;
?>
</div>