You are here

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

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

Default theme implementation to wrap menu blocks.

Available variables:

  • $content: The renderable array 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.

  • $delta: (string) The menu_block's block delta.
  • $config: An array of the block's configuration settings. Includes menu_name, parent_mlid, title_link, admin_title, 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 renderable array 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.
 * - $delta: (string) The menu_block's block delta.
 * - $config: An array of the block's configuration settings. Includes
 *   menu_name, parent_mlid, title_link, admin_title, level, follow, depth,
 *   expanded, and sort.
 *
 * @see template_preprocess_menu_block_wrapper()
 */
?>
<div class="<?php

print $classes;
?>">
  <?php

print render($content);
?>
</div>