src/Front/Templates/_includes/_profile.html.twig line 1

  1. {% from '@front_templates/_includes/_icons.html.twig' import profileUser, profileArrow, close, register, person %}
  2. <button class="profile ico-dark justify-c js-profile-open">
  3.     <span>{{ profileUser('T_PROFILE'|trans) }}</span>
  4.     <span class="profile__arrow">{{ profileArrow() }}</span>
  5. </button>
  6. <div class="header-area__full-screen header-area__full-screen--profile js-profile-area">
  7.     <div class="profile-bar">
  8.         {% if not app.user %}
  9.             <a href="{{ site_url_generator.Url('customer_login') }}"  class="link">
  10.                 {{ person('T_LOGIN'|trans) }}
  11.                 {{ 'Zaloguj się'|trans }}
  12.             </a>
  13.             <p>{{ 'Nie masz jeszcze konta?'|trans }}</p>
  14.             <a class="link" href="{{ site_url_generator.Url('customer_register') }}">
  15.                 {{ register('T_REGISTER'|trans) }}
  16.                 {{ 'Zarejestruj się'|trans }}
  17.             </a>
  18.         {% else %}
  19.             <a class="link" href="{{ site_url_generator.Url('customer_profile') }}">{{ 'Profil'|trans }}</a>
  20.             <form action="{{ site_url_generator.Url('customer_logout') }}" method="post">
  21.                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('logout') }}" id="csrf-token" />
  22.                 <input type="submit" name="_submit" class="link" value="{{ 'Wyloguj'|trans }}" />
  23.             </form>
  24.         {% endif %}
  25.     </div>
  26. </div>
  27. <button class="close close--profile ico-light justify-c js-profile-close">
  28.     {{ close('T_CLOSE_PROFILE'|trans, 'black') }}
  29. </button>