templates/galilea/includes/header.html.twig line 1
{% set flyout = flyout() %}
{% set currentFlyout = (flyout is not empty and flyout[app.request.locale] is defined) ? flyout[app.request.locale] : [] %}
{% set flyoutPages = currentFlyout is not empty ? currentFlyout|keys : [] %}
{% set navTree = [] %}
{% for item in sulu_navigation_root_tree('main') %}
{% set topNavItem = {
url: sulu_content_path(item.url, item.webspaceKey),
title: item.title,
target: null,
children: item.url in flyoutPages ? currentFlyout[item.url]['children']|map(child => {
url: child['url'],
title: child['title'],
target: null
}) : []
} %}
{% set navTree = navTree|merge([topNavItem]) %}
{% endfor %}
{{ include('galilea/import/components/header.twig', {
homepage_url: sulu_content_root_path(),
header_nav: navTree,
header_subnav: sulu_navigation_root_flat('header_right', 10)|map(item => {
url: item.url,
title: item.title,
target: null
}),
header_ctas: [
{
url: '#',
title: 'Demo buchen',
target: null
}
],
language_link: localizations|filter(item => item.locale != app.request.getLocale())|map(item => item.url)|first,
language_label: localizations|filter(item => item.locale != app.request.getLocale())|map(item => item.locale|upper)|first,
footer_animation: '',
baseIncludePath: 'galilea/import/'
}) }}