{% set logoDefaultPath = isBroadcastType() ? 'press_site.actions.product.all_movies' : 'press_site.actions.content.default' %}
<nav class="navbar">
<div class="navbar__container">
<div class="navbar__logo">
<a href="{{ path(logoDefaultPath, {_locale: app.request.locale}) }}">
<img src="{{ asset('assets/press_site/images/header/NF_Corp_Logo_Neg.png') }}" alt="Logo">
</a>
</div>
{% if hide_menu is not defined or not hide_menu %}
<ul class="navbar__items">
{% if not isBroadcastType() %}
<li class="navbar__item">
<a href="{{ path('press_site.actions.content.default', {_locale: app.request.locale}) }}">
{{ 'menu.header.home' | trans({}, 'PressSite') }}
</a>
</li>
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.upcoming_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.upcoming_movies' | trans({}, 'PressSite') }}
</a>
</li>
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.new_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.new_movies' | trans({}, 'PressSite') }}
</a>
</li>
{% endif %}
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.all_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.all_movies' | trans({}, 'PressSite') }}
</a>
</li>
</ul>
<div class="mobile-menu-container">
<a class="menu__icon mobile" data-action="mobile-menu-toggle">
<span></span>
</a>
</div>
{% endif %}
<div class="navbar__profile-container">
{% set headerPages = getContentPages('header') %}
<div class="navbar__locale-container">
{% for page in headerPages %}
{% if headerPages is not empty %}
{% set params = {_locale: app.request.locale, id: page.id, slug: page.slug} %}
<a href="{{ path('press_site.actions.content.generic', params) }}">{{ page.title }}</a>
{% endif %}
{% endfor %}
{% if hasLanguageSwitcher() %}
<button data-action="language-switcher" aria-expanded="false">
<img class="navbar__flag" src="{{ getCurrentLanguageFlagAsset() }}" alt="">
<img class="navbar__menu-arrow" src="{{ asset('assets/press_site/images/navbar/arrow-down.png') }}" alt="arrow-down">
</button>
<ul class="navbar__locale-menu" data-role="language-menu">
{% for languageCode in getAvailableLanguages() %}
{% set metadata = getMetadataForLanguageCode(languageCode) %}
<li>
<div class="locale-menu__item">
<img src="{{ metadata.asset }}" alt="">
<a href="{{ getUrlForLanguage(languageCode, languageAwareObject) }}">{{ metadata.label }}</a>
</div>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% if app.user is not empty %}
<div class="navbar__avatar-container">
<a href="{{ path('press_site.actions.account.sign_out', {_locale: app.request.locale}) }}">
{{ 'meta.logout' | trans({}, 'PressSite') }}
<img src="{{ asset('assets/press_site/images/navbar/profile-icon.png') }}" alt="avatar-picture">
</a>
</div>
{% endif %}
</div>
</div>
{% if hide_menu is not defined or not hide_menu %}
<ul aria-expanded="false" class="navbar__mobile-menu" data-role="mobile-menu-container">
{% if hasLanguageSwitcher() %}
<li class="navbar__item">
<div class="navbar__locale-container">
<button data-action="language-switcher" aria-expanded="false">
<img class="navbar__flag" src="{{ getCurrentLanguageFlagAsset() }}" alt="">
<img class="navbar__menu-arrow" src="{{ asset('assets/press_site/images/navbar/arrow-down.png') }}" alt="arrow-down">
</button>
<ul class="navbar__locale-menu mobile" data-role="language-menu">
{% for languageCode in getAvailableLanguages() %}
{% set metadata = getMetadataForLanguageCode(languageCode) %}
<li>
<div class="locale-menu__item">
<img src="{{ metadata.asset }}" alt="">
<a href="{{ getUrlForLanguage(languageCode, languageAwareObject) }}">{{ metadata.label }}</a>
</div>
</li>
{% endfor %}
</ul>
</div>
</li>
{% endif %}
{% if not isBroadcastType() %}
<li class="navbar__item">
<a href="{{ path('press_site.actions.content.default', {_locale: app.request.locale}) }}">
{{ 'menu.header.home' | trans({}, 'PressSite') }}
</a>
</li>
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.upcoming_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.upcoming_movies' | trans({}, 'PressSite') }}
</a>
</li>
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.new_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.new_movies' | trans({}, 'PressSite') }}
</a>
</li>
{% endif %}
<li class="navbar__item">
<a href="{{ path('press_site.actions.product.all_movies', {_locale: app.request.locale}) }}">
{{ 'menu.header.all_movies' | trans({}, 'PressSite') }}
</a>
</li>
<li class="navbar__item">
<div class="navbar__avatar-container mobile">
<a href="{{ path('press_site.actions.account.sign_out', {_locale: app.request.locale}) }}">
{{ 'meta.logout' | trans({}, 'PressSite') }}
<img src="{{ asset('assets/press_site/images/navbar/profile-icon.png') }}" alt="avatar-picture">
</a>
</div>
</li>
</ul>
{% endif %}
</nav>