You are here

tb-megamenu.html.twig in The Better Mega Menu 8

Same filename and directory in other branches
  1. 2.x templates/tb-megamenu.html.twig
{% if css_style is defined %}
<style type="text/css">
  .tb-megamenu.animate .mega > .mega-dropdown-menu, .tb-megamenu.animate.slide .mega > .mega-dropdown-menu > div {
  {{ css_style }}
  }
</style>
{% endif %}
<div {{ attributes }}>
  {% if section == 'frontend' %}
    <button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar tb-megamenu-button" type="button">
      <i class="fa fa-reorder"></i>
    </button>
    <div class="nav-collapse {{ block_config['always-show-submenu'] ? ' always-show' : '' }}">
  {% endif %}
  {{ content }}
  {% if section == 'frontend' %}
    </div>
  {% endif %}
</div>

File

templates/tb-megamenu.html.twig
View source
  1. {% if css_style is defined %}
  2. <style type="text/css">
  3. .tb-megamenu.animate .mega > .mega-dropdown-menu, .tb-megamenu.animate.slide .mega > .mega-dropdown-menu > div {
  4. {{ css_style }}
  5. }
  6. </style>
  7. {% endif %}
  8. <div {{ attributes }}>
  9. {% if section == 'frontend' %}
  10. <button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar tb-megamenu-button" type="button">
  11. <i class="fa fa-reorder"></i>
  12. </button>
  13. <div class="nav-collapse {{ block_config['always-show-submenu'] ? ' always-show' : '' }}">
  14. {% endif %}
  15. {{ content }}
  16. {% if section == 'frontend' %}
  17. </div>
  18. {% endif %}
  19. </div>