mmenu.html.twig in Mobile sliding menu 8
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.html.twig
- mmenu_page_bottom in ./
mmenu.module - Implements hook_page_bottom().
File
tpl/mmenu.html.twigView source
- {#
- /**
- * @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="{{ id }}" class="mmenu-nav clearfix">
- <ul>
- {% for block in blocks %}
- {% if block.collapsed %}
- <li class="mmenu-collapsed">
- {% if block.subject is not empty %}
- <span class="mmenu-block-collapsed mmenu-block"><i class="{{ block.icon_class }}"></i><span class="mmenu-block-title">{{ block.subject }}</span></span>
- {% endif %}
- {% if block.wrap %}
- <ul><li class="mmenu-block-wrap"><span>{{ block.content }}</span></li></ul>
- {% else %}
- {{ block.content }}
- {% endif %}
- </li>
- {% else %}
- {% if block.subject is not empty %}
- <li class="mmenu-expanded">
- <span class="mmenu-block-expanded mmenu-block"><i class="mmenu-block-icon mmenu-block-icon-{{ block.module }}-{{ block.delta }}"></i><span class="mmenu-block-title">{{ block.subject }}</span></span>
- </li>
- {% endif %}
- {% if block.wrap %}
- <ul><li class="mmenu-block-wrap"><span>{{ block.content }}</span></li></ul>
- {% else %}
- {{ block.content }}
- {% endif %}
- {% endif %}
- {% endfor %}
- </ul>
- </nav>