src/Front/Templates/_includes/_profile.html.twig line 1
{% from '@front_templates/_includes/_icons.html.twig' import profileUser, profileArrow, close, register, person %}
<button class="profile ico-dark justify-c js-profile-open">
<span>{{ profileUser('T_PROFILE'|trans) }}</span>
<span class="profile__arrow">{{ profileArrow() }}</span>
</button>
<div class="header-area__full-screen header-area__full-screen--profile js-profile-area">
<div class="profile-bar">
{% if not app.user %}
<a href="{{ site_url_generator.Url('customer_login') }}" class="link">
{{ person('T_LOGIN'|trans) }}
{{ 'Zaloguj się'|trans }}
</a>
<p>{{ 'Nie masz jeszcze konta?'|trans }}</p>
<a class="link" href="{{ site_url_generator.Url('customer_register') }}">
{{ register('T_REGISTER'|trans) }}
{{ 'Zarejestruj się'|trans }}
</a>
{% else %}
<a class="link" href="{{ site_url_generator.Url('customer_profile') }}">{{ 'Profil'|trans }}</a>
<form action="{{ site_url_generator.Url('customer_logout') }}" method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('logout') }}" id="csrf-token" />
<input type="submit" name="_submit" class="link" value="{{ 'Wyloguj'|trans }}" />
</form>
{% endif %}
</div>
</div>
<button class="close close--profile ico-light justify-c js-profile-close">
{{ close('T_CLOSE_PROFILE'|trans, 'black') }}
</button>