bundles/FoxHabbit/BasisBundle/Resources/views/Areas/basisbundle-topnav/nav-parts/buttons.html.twig line 1

Open in your IDE?
  1. {% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  2. {{ wrap_macro.wrapperOpen( partConfig.wrapper, _context) }}
  3.     {% for button in partConfig.buttons %}
  4.         <{{ button.tag|default('button') }} class="{{ button.class|default('') }}"
  5.             {% if button.attr is defined %}
  6.                 {% for attrTag,attrValue in button.attr %}
  7.                     {% if attrValue is same as (true) %} {{attrTag}}
  8.                     {% elseif attrValue %} {{attrTag}}="{{ attrValue }}"
  9.                     {% endif %}
  10.                 {% endfor %}
  11.             {% endif %}
  12.         >
  13.             {% if button.content|default(false) %}{{ button.content }}{% endif %}
  14.         </{{ button.tag|default('button') }}>
  15.     {% endfor %}
  16. {{ wrap_macro.wrapperClose( partConfig.wrapper, _context) }}