{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{{ wrap_macro.wrapperOpen( entryConfig.wrapper, _context) }}
<a class="{{ entryConfig.a_class|default('nav-link') }} {{ page.getClass() }}"
href="{{ page.getHref() }}"
{% if page.getTarget() %}
target="{{ page.getTarget() }}"
{% endif %}
title="{{ page.getTitle() }}"
itemprop="url"><span itemprop="name">
{{- page.getLabel() -}}
{% if entryConfig.mdi_icon|default(null) %}
<i class="{{ entryConfig.mdi_icon }}"></i>
{% endif %}
</span>
</a>
{% if page.hasChildren() and childLevelConfig %}
{% set childrenLevelConfig = childLevelConfig[0].type %}
{% if childrenLevelConfig.template|default(null) %}
{% include '@FoxHabbitBasis/Areas/basisbundle-topnav/level-types/' ~ childrenLevelConfig.template ~ '.html.twig' with {
navigation: page, levelConfig: childLevelConfig } %}
{% endif %}
{% endif %}
{{ wrap_macro.wrapperClose( entryConfig.wrapper) }}