bundles/FoxHabbit/BasisBundle/Resources/views/Areas/basisbundle-topnav/level-entries/link.html.twig line 1

Open in your IDE?
  1. {% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  2. {{ wrap_macro.wrapperOpen( entryConfig.wrapper, _context) }}
  3.     <a    class="{{ entryConfig.a_class|default('nav-link') }} {{ page.getClass() }}"
  4.         href="{{ page.getHref() }}"
  5.         {% if page.getTarget() %}
  6.         target="{{ page.getTarget() }}"
  7.         {% endif %}
  8.         title="{{ page.getTitle() }}"
  9.         itemprop="url"><span itemprop="name">
  10.                 {{- page.getLabel() -}}
  11.                 {% if entryConfig.mdi_icon|default(null) %}
  12.                     <i class="{{ entryConfig.mdi_icon }}"></i>
  13.                 {% endif %}
  14.             </span>
  15.     </a>
  16.     {% if page.hasChildren() and childLevelConfig %}
  17.         {% set childrenLevelConfig = childLevelConfig[0].type %}
  18.         {% if childrenLevelConfig.template|default(null) %}
  19.             {% include '@FoxHabbitBasis/Areas/basisbundle-topnav/level-types/' ~ childrenLevelConfig.template ~ '.html.twig' with {
  20.                 navigation: page, levelConfig: childLevelConfig } %}
  21.         {% endif %}
  22.     {% endif %}
  23. {{ wrap_macro.wrapperClose( entryConfig.wrapper) }}