mmenu.tpl.php in Mobile sliding menu 7.2
Same filename and directory in other branches
Default theme implementation to display a mmenu.
Available variables:
- $mmenu: the original mmenu definitions.
- $id: the id of the mmenu.
- $name: the machine name of the mmenu.
- $blocks: an array that contains all rendered blocks and its configurations.
1 theme call to mmenu.tpl.php
- mmenu_page_build in ./
mmenu.module - Implements hook_page_build().
File
tpl/mmenu.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to display a mmenu.
*
* Available variables:
* - $mmenu: the original mmenu definitions.
* - $id: the id of the mmenu.
* - $name: the machine name of the mmenu.
* - $blocks: an array that contains all rendered blocks and its configurations.
*
* @see template_preprocess()
* @see template_preprocess_mmenu()
* @see template_process()
*
* @ingroup themeable
*/
?>
<nav id="<?php
print $id;
?>" class="mmenu-nav clearfix">
<ul>
<?php
foreach ($blocks as $k => $block) {
?>
<?php
if ($block['collapsed']) {
?>
<li class="mmenu-collapsed">
<?php
if (!empty($block['subject'])) {
?>
<span class="mmenu-block-collapsed mmenu-block"><i class="<?php
print $block['icon_class'];
?>"></i><span class="mmenu-block-title"><?php
print $block['subject'];
?></span></span>
<?php
}
?>
<?php
if ($block['wrap']) {
?>
<ul><li class="mmenu-block-wrap"><span><?php
print $block['content'];
?></span></li></ul>
<?php
}
else {
?>
<?php
print $block['content'];
?>
<?php
}
?>
</li>
<?php
}
else {
?>
<?php
if (!empty($block['subject'])) {
?>
<li class="mmenu-expanded">
<span class="mmenu-block-expanded mmenu-block"><i class="mmenu-block-icon mmenu-block-icon-<?php
print $block['module'];
?>-<?php
print $block['delta'];
?>"></i><span class="mmenu-block-title"><?php
print $block['subject'];
?></span></span>
</li>
<?php
}
?>
<?php
if ($block['wrap']) {
?>
<ul><li class="mmenu-block-wrap"><span><?php
print $block['content'];
?></span></li></ul>
<?php
}
else {
?>
<?php
print $block['content'];
?>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</ul>
</nav>