{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{% if not partConfig.require_page_property|default(false) or pageDocument.getProperty(partConfig.require_page_property) %}
{{ wrap_macro.wrapperOpen( partConfig.wrapper, _context) }}
{% for subPartConfig in partConfig.parts %}
{% set template = subPartConfig.template %}
{% if not ( template starts with 'AppBundle' or template starts with '@App') %}
{% set template = '@FoxHabbitBasis/Areas/basisbundle-topnav/nav-parts/' ~ template ~ '.html.twig' %}
{% endif %}
{% include template with {
pageDocument: pageDocument, navigation: navigation, partConfig: subPartConfig } %}
{% endfor %}
{{ wrap_macro.wrapperClose( partConfig.wrapper, _context) }}
{% endif %}