templates/hc/dropdown-menu.html.twig line 1

Open in your IDE?
  1. {% set variant = _args.variant|default('default') %}
  2. {% set items = _args.items|default([]) %}
  3. {% set mobile = _args.mobile|default(false) %}
  4. {% if mobile %}
  5.     <div class="hc-dropdown-content hc-mobile-menu--wrapper hc-header-menu hc-header-menu--{{ variant }}">
  6.     <div class="hc-mobile-menu--section">
  7. {% endif %}
  8. <menu class="hc-header-menu{% if not mobile %} hc-dropdown-content hc-header-menu--{{ variant }} hc-dropdown-content--right{% endif %}">
  9.     {% block header %}{% endblock %}
  10.     {% for nav in items %}
  11.         {% include 'hc/dropdown-menu-nav.html.twig' with nav %}
  12.     {% endfor %}
  13. </menu>
  14. {% if mobile %}
  15.     </div>
  16.     </div>
  17. {% endif %}