{% import 'common/macros/svg.html.twig' as svg %}
{% macro nav(label, href) %}
<li><a href="{{ href }}">{{ label|upper }}</a></li>
{% endmacro %}
{% import _self as _ %}
{% set lang = app.session.get('locale')|default('en') %}
{% set otherLang = lang == 'hu' ? 'en' : 'hu' %}
<header class="page-header">
<div class="wrapper">
<div class="logo">
<a href="{{ path('home_index') }}">
{{ svg.icf_logo }}
</a>
</div>
<div class="nav">
<ul>
{{ _.nav('common.about_us'|trans, path('about_us_index')) }}
{{ _.nav('common.our_locations'|trans, path('office_index')) }}
{{ _.nav('common.operations'|trans, path('home_index') ~ '#operations') }}
{{ _.nav('common.career'|trans, path('career_index')) }}
{{ _.nav('common.news'|trans, path('news_index')) }}
{{ _.nav('common.get_in_touch'|trans, path('home_index') ~ '#get_in_touch') }}
<li class="lang-select">
<a href="?lang={{ otherLang }}">
<img class="flag" src="/img/{{ otherLang }}.png" alt="{{ otherLang }}" />
<span class="lang-display">{{ otherLang|upper }}</span>
</a>
</li>
</ul>
</div>
<button class="nav-button">
<span></span>
<span></span>
<span></span>
</button>
</div>
</header>