{% set selected = 0 %}
{% set homelink = request.resourceLocatorPrefix %}
{% set loginlink = appMediabankUrl ~ app.request.locale ~ '/login' %}
{% set loginImg = 'data/img/menu_login.png' %}
{% set carrentUser = '' %}
{%- if uuid is defined -%}
{% set selected = adapt_attribute('header.selected', {'currentUuid' : uuid}) %}
{%- endif -%}
{%- if app.user -%}
{% set carrentUser = app.user.username %}
{%- endif -%}
<modern-header
links="{{ adapt_attribute('header.links', {'locale':app.request.locale}) | json_encode }}"
selected="{{ selected }}"
logo-link="{{ { 'url': sulu_content_root_path(), 'imageUrl': 'data/img/menu_logo.png' } | json_encode }}"
home-link="{{ { 'url': homelink, 'imageUrl': 'data/img/menu_home.png' } | json_encode }}"
search-link="{{ { 'url': '/', 'imageUrl': 'data/img/menu_search.png' } | json_encode }}"
user-link="{{ { 'url': loginlink, 'imageUrl': loginImg } | json_encode }}"
localizations="{{localizations | json_encode }}"
carrent-language="{{request.resourceLocatorPrefix}}"
current-user="{{carrentUser}}"
social-media="{{ adapt_attribute('header.social_media', {'areaKey': 'footerSocialMediaLinks'}) | json_encode }}"
{% include 'pages/components/attributes/theme.html.twig' %}
{% include 'pages/components/attributes/overlay.html.twig' %}
></modern-header>