templates/components/header.html.twig line 1

Open in your IDE?
  1. {%- macro _menu_advertiser(currentCity,currentStation,activeUri) -%}
  2.     <div class="navigation-item-payment">
  3.         <p class="d-flex align-items-center mb-2">
  4.             Ваш баланс:
  5.             <span class="ml-2"><b>{{ app.user.currentBalance|money_format }}</b></span>
  6.         </p>
  7.         <p class="d-flex align-items-center mb-2">
  8.             Расход в час:
  9.             <span class="ml-2">{{ owner_charges()|money_format }}</span>
  10.         </p>
  11.         <p class="calculate mb-0" data-money="{{ app.user.currentBalance.amount }}" id="money-calculate">Хватит на: <span class="value">
  12.                 <span class="days">
  13.                     <span class="colored">XX</span> <span class="text">дней</span>
  14.                 </span>
  15.                 <span class="hours">
  16.                     <span class="colored">XX</span> <span class="text">часа</span>
  17.                 </span>
  18.                 <span class="minutes d-none">
  19.                     <span class="colored"></span> <span class="text">минут</span>
  20.                 </span>
  21.             </span>
  22.         </p>
  23.     </div>
  24.     <a href="{{ path('account.finances.pay') }}" class="navigation-item first clr-red d-flex align-items-center ">
  25.         <svg  class="icon mr-3" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g clip-path="url(#a-icon)" fill="#fff"><path d="M7.86 5c-.4 0-.72.32-.72.71V10h-.71a.71.71 0 1 0 0 1.43h.71v.71h-.71a.71.71 0 1 0 0 1.43h.71v.72a.71.71 0 1 0 1.43 0v-.72h3.57a.71.71 0 1 0 0-1.43H8.57v-.71h2.5a3.22 3.22 0 0 0 0-6.43H7.86Zm3.21 5h-2.5V6.43h2.5a1.79 1.79 0 1 1 0 3.57Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 0a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 3.5a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Z"/><path d="M13.07.48a10 10 0 1 0 6.45 6.45c-.47.53-1.06.95-1.73 1.22A8.03 8.03 0 0 1 10 18a8 8 0 1 1 1.85-15.79c.27-.67.69-1.26 1.22-1.73Z"/></g><defs><clipPath id="a-icon"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
  26.         <span class="font-weight-bold">Пополнить баланс</span>
  27.     </a>
  28.     <a href="{{ path('account.profile_management.list') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/ankety/' in activeUri %} current{% endif %}">
  29.         <svg class="icon mr-3">
  30.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-profiles"></use>
  31.         </svg>
  32.         <span class="d-flex align-items-center w-100" id="girl-count-to">Анкеты <em class="ml-auto"></em></span>
  33.     </a>
  34.     <a href="{{ path('account.paid_services.info_page') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/services/' in activeUri %} current{% endif %}">
  35.         <svg class="icon mr-3">
  36.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-profileup"></use>
  37.         </svg>
  38.         <span>Стать заметнее</span>
  39.     </a>
  40.     <a href="{{ path('account.support_messages.list') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/support_messages/' in activeUri %} current{% endif %}">
  41.         <svg class="icon mr-3">
  42.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-messages"></use>
  43.         </svg>
  44.         <span class="d-flex align-items-center w-100" id="message-count-to">Чат с поддержкой <em class="ml-auto"></em></span>
  45.     </a>
  46.     <a href="{{ path('account.profile_management.commented_profiles') }}" class="navigation-item d-flex align-items-center w-100">
  47.         <svg class="icon mr-3">
  48.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-comments"></use>
  49.         </svg>
  50.         <span>Отзывы</span>
  51.     </a>
  52.     <a href="{{ path('account.phone_review') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/phone_reviews/' in activeUri %} current{% endif %}">
  53.         <svg class="icon mr-3">
  54.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-blacklist"></use>
  55.         </svg>
  56.         <span>Чёрный список</span>
  57.     </a>
  58.     <a href="{{ path('account.finances.transactions') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/transactions/' in activeUri %} current{% endif %}">
  59.         <svg class="icon">
  60.             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-history"></use>
  61.         </svg>
  62.         <span>История платежей</span>
  63.     </a>
  64. {%- endmacro -%}
  65. {%- macro _menu_hodok(currentCity,currentStation,activeUri) -%}
  66.     <a href="{{ path('account.preferred_profiles.list') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/for-you/' in activeUri %} current{% endif %}">
  67.         <svg class="icon mr-3" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  68.             <path fill-rule="evenodd" clip-rule="evenodd" d="M6 0C4.3425 0 3 1.3425 3 3C3 4.6575 4.3425 6 6 6C7.6575 6 9 4.6575 9 3C9 1.3425 7.6575 0 6 0ZM7.5 3C7.5 2.175 6.825 1.5 6 1.5C5.175 1.5 4.5 2.175 4.5 3C4.5 3.825 5.175 4.5 6 4.5C6.825 4.5 7.5 3.825 7.5 3ZM10.5 10.5C10.35 9.9675 8.025 9 6 9C3.9825 9 1.6725 9.96 1.5 10.5H10.5ZM0 10.5C0 8.505 3.9975 7.5 6 7.5C8.0025 7.5 12 8.505 12 10.5V12H0V10.5Z" fill="#FF3F40"></path>
  69.         </svg>
  70.         <span class="d-flex align-items-center w-100" id="girl-count-to">Для Вас <em class="ml-auto"></em></span>
  71.     </a>
  72.     <a href="{{ path('account.city_profiles') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/city-girls/' in activeUri %} current{% endif %}">
  73.         <svg class="icon mr-3" width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  74.             <path fill-rule="evenodd" clip-rule="evenodd" d="M6 0.5C3.0975 0.5 0.75 2.8475 0.75 5.75C0.75 9.6875 6 15.5 6 15.5C6 15.5 11.25 9.6875 11.25 5.75C11.25 2.8475 8.9025 0.5 6 0.5ZM2.25 5.75C2.25 3.68 3.93 2 6 2C8.07 2 9.75 3.68 9.75 5.75C9.75 7.91 7.59 11.1425 6 13.16C4.44 11.1575 2.25 7.8875 2.25 5.75ZM4.125 5.75C4.125 4.71447 4.96447 3.875 6 3.875C6.66987 3.875 7.28886 4.23237 7.6238 4.8125C7.95873 5.39263 7.95873 6.10737 7.6238 6.6875C7.28886 7.26763 6.66987 7.625 6 7.625C4.96447 7.625 4.125 6.78553 4.125 5.75Z" fill="#FF3F40"/>
  75.         </svg>
  76.         <span class="d-flex align-items-center w-100" id="girl-count-to">В Вашем городе <em class="ml-auto"></em></span>
  77.     </a>
  78.     <a href="{{ path('account.favourites.profiles') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/favourites/' in activeUri %} current{% endif %}">
  79.         <svg class="icon mr-3" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  80.             <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.68615C8.8175 0.726152 10.07 0.118652 11.375 0.118652C13.685 0.118652 15.5 1.93365 15.5 4.24365C15.5 7.07633 12.9542 9.38486 9.09701 12.8825L9.0875 12.8912L8 13.8812L6.9125 12.8987L6.88289 12.8717C3.03697 9.37683 0.5 7.0714 0.5 4.24365C0.5 1.93365 2.315 0.118652 4.625 0.118652C5.93 0.118652 7.1825 0.726152 8 1.68615ZM8 11.8562L8.075 11.7812C11.645 8.54865 14 6.41115 14 4.24365C14 2.74365 12.875 1.61865 11.375 1.61865C10.22 1.61865 9.095 2.36115 8.705 3.38865H7.3025C6.905 2.36115 5.78 1.61865 4.625 1.61865C3.125 1.61865 2 2.74365 2 4.24365C2 6.41115 4.355 8.54865 7.925 11.7812L8 11.8562Z" fill="#FF3F40"/>
  81.         </svg>
  82.         <span class="d-flex align-items-center w-100" id="girl-count-to">Избранное <em class="ml-auto"></em></span>
  83.     </a>
  84.     <a href="{{ path('account.profile_preferences') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/customer-profile-preferences/' in activeUri %} current{% endif %}">
  85.         <svg class="icon mr-3" width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  86.             <path fill-rule="evenodd" clip-rule="evenodd" d="M6.75 15.5H13.5C14.1225 15.5 14.655 15.125 14.88 14.585L17.145 9.2975C17.2125 9.125 17.25 8.945 17.25 8.75V7.25C17.25 6.425 16.575 5.75 15.75 5.75H11.0175L11.73 2.3225L11.7525 2.0825C11.7525 1.775 11.625 1.49 11.4225 1.2875L10.6275 0.5L5.685 5.4425C5.415 5.7125 5.25 6.0875 5.25 6.5V14C5.25 14.825 5.925 15.5 6.75 15.5ZM6.75 6.49999L10.005 3.24499L9 7.24999H15.75V8.74999L13.5 14H6.75V6.49999ZM3.75 6.5H0.75V15.5H3.75V6.5Z" fill="#FF3F40"/>
  87.         </svg>
  88.         <span class="d-flex align-items-center w-100" id="girl-count-to">Предпочтения <em class="ml-auto"></em></span>
  89.     </a>
  90.     <a href="{{ path('account.reviews.profile') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/profile-reviews/' in activeUri %} current{% endif %}">
  91.         <svg class="icon mr-3" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  92.             <path fill-rule="evenodd" clip-rule="evenodd" d="M15.4925 2C15.4925 1.175 14.825 0.5 14 0.5H2C1.175 0.5 0.5 1.175 0.5 2V11C0.5 11.825 1.175 12.5 2 12.5H12.5L15.5 15.5L15.4925 2ZM14 2V11.8775L13.1225 11H2V2H14ZM12.5 8H3.5V9.5H12.5V8ZM3.5 5.75H12.5V7.25H3.5V5.75ZM12.5 3.5H3.5V5H12.5V3.5Z" fill="#FF3F40"/>
  93.         </svg>
  94.         <span class="d-flex align-items-center w-100" id="girl-count-to">Отзывы к анкетам <em class="ml-auto"></em></span>
  95.     </a>
  96.     <a href="{{ path('account.settings') }}" class="navigation-item d-flex align-items-center w-100{% if '/my/profile/' in activeUri %} current{% endif %}">
  97.         <svg class="icon mr-3" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  98.             <path fill-rule="evenodd" clip-rule="evenodd" d="M13.6266 8C13.6266 8.255 13.6041 8.495 13.5742 8.735L15.1566 9.9725C15.2991 10.085 15.3366 10.2875 15.2466 10.4525L13.7466 13.0475C13.6791 13.1675 13.5516 13.235 13.4241 13.235C13.3791 13.235 13.3341 13.2275 13.2891 13.2125L11.4216 12.4625C11.0316 12.755 10.6116 13.01 10.1542 13.1975L9.86915 15.185C9.84665 15.365 9.68915 15.5 9.50165 15.5H6.50165C6.31415 15.5 6.15665 15.365 6.13415 15.185L5.84915 13.1975C5.39165 13.01 4.97165 12.7625 4.58165 12.4625L2.71415 13.2125C2.67665 13.2275 2.63165 13.235 2.58665 13.235C2.45165 13.235 2.32415 13.1675 2.25665 13.0475L0.75665 10.4525C0.66665 10.2875 0.70415 10.085 0.84665 9.9725L2.42915 8.735C2.39915 8.495 2.37665 8.2475 2.37665 8C2.37665 7.7525 2.39915 7.505 2.42915 7.265L0.84665 6.0275C0.70415 5.915 0.65915 5.7125 0.75665 5.5475L2.25665 2.9525C2.32415 2.8325 2.45165 2.765 2.57915 2.765C2.62415 2.765 2.66915 2.7725 2.71415 2.7875L4.58165 3.5375C4.97165 3.245 5.39165 2.99 5.84915 2.8025L6.13415 0.815C6.15665 0.635 6.31415 0.5 6.50165 0.5H9.50165C9.68915 0.5 9.84665 0.635 9.86915 0.815L10.1542 2.8025C10.6116 2.99 11.0316 3.2375 11.4216 3.5375L13.2891 2.7875C13.3266 2.7725 13.3716 2.765 13.4166 2.765C13.5516 2.765 13.6791 2.8325 13.7466 2.9525L15.2466 5.5475C15.3366 5.7125 15.2991 5.915 15.1566 6.0275L13.5742 7.265C13.6041 7.505 13.6266 7.745 13.6266 8ZM12.1266 8C12.1266 7.8425 12.1191 7.685 12.0891 7.4525L11.9841 6.605L12.6516 6.08L13.4541 5.4425L12.9291 4.535L11.9766 4.9175L11.1816 5.24L10.4991 4.715C10.1991 4.49 9.89915 4.3175 9.57665 4.1825L8.78165 3.86L8.66165 3.0125L8.51915 2H7.47665L7.32665 3.0125L7.20665 3.86L6.41165 4.1825C6.10415 4.31 5.79665 4.49 5.47415 4.73L4.79915 5.24L4.01915 4.925L3.06665 4.5425L2.54165 5.45L3.35165 6.08L4.01915 6.605L3.91415 7.4525C3.89165 7.6775 3.87665 7.85 3.87665 8C3.87665 8.15 3.89165 8.3225 3.91415 8.555L4.01915 9.4025L3.35165 9.9275L2.54165 10.5575L3.06665 11.465L4.01915 11.0825L4.81415 10.76L5.49665 11.285C5.79665 11.51 6.09665 11.6825 6.41915 11.8175L7.21415 12.14L7.33415 12.9875L7.47665 14H8.52665L8.67665 12.9875L8.79665 12.14L9.59165 11.8175C9.89915 11.69 10.2066 11.51 10.5291 11.27L11.2041 10.76L11.9841 11.075L12.9366 11.4575L13.4616 10.55L12.6516 9.92L11.9841 9.395L12.0891 8.5475C12.1116 8.3225 12.1266 8.1575 12.1266 8ZM8.00164 5C6.34414 5 5.00164 6.3425 5.00164 8C5.00164 9.6575 6.34414 11 8.00164 11C9.65914 11 11.0016 9.6575 11.0016 8C11.0016 6.3425 9.65914 5 8.00164 5ZM6.50164 8C6.50164 8.825 7.17664 9.5 8.00164 9.5C8.82664 9.5 9.50164 8.825 9.50164 8C9.50164 7.175 8.82664 6.5 8.00164 6.5C7.17664 6.5 6.50164 7.175 6.50164 8Z" fill="#FF3F40"/>
  99.         </svg>
  100.         <span class="d-flex align-items-center w-100" id="girl-count-to">Настройки <em class="ml-auto"></em></span>
  101.     </a>
  102. {%- endmacro -%}
  103. {% set currentCity = app.request.get('city', default_city()) %}
  104. {% set currentStation = app.request.get('station') %}
  105. {% set activeUri = app.request.requestUri %}
  106. {% set inAccount = '/my/' in activeUri %}
  107. <header class="header">
  108.     <div class="content content-fixed">
  109.         <div class="header-height d-flex align-items-center justify-content-between justify-content-md-start">
  110.             <div class="header-navbar header-nav-margin d-block">
  111.                 <button class="navbar-toggler d-flex align-items-center justify-content-center" data-toggle="collapse" data-target="#navbarToggle" aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle navigation">
  112.                     <svg class="navbar-toggler__open" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  113.                         <path fill-rule="evenodd" clip-rule="evenodd" d="M1 4C1 3.44772 1.44772 3 2 3H22C22.5523 3 23 3.44772 23 4C23 4.55228 22.5523 5 22 5H2C1.44772 5 1 4.55228 1 4ZM1 12C1 11.4477 1.44772 11 2 11H22C22.5523 11 23 11.4477 23 12C23 12.5523 22.5523 13 22 13H2C1.44772 13 1 12.5523 1 12ZM2 19C1.44772 19 1 19.4477 1 20C1 20.5523 1.44772 21 2 21H22C22.5523 21 23 20.5523 23 20C23 19.4477 22.5523 19 22 19H2Z" fill="white"/>
  114.                     </svg>
  115.                     <svg xmlns="http://www.w3.org/2000/svg" class="navbar-toggler__close" width="24" height="24" viewBox="0 0 36 36" fill="none">
  116.                         <path fill="white" d="M28.5 9.6l-2.1-2.1-8.4 8.4-8.4-8.4-2.1 2.1 8.4 8.4-8.4 8.4 2.1 2.1 8.4-8.4 8.4 8.4 2.1-2.1-8.4-8.4 8.4-8.4z"></path>
  117.                     </svg>
  118.                 </button>
  119.                 <div class="collapse header-navigation" id="navbarToggle">
  120.                     <div class="header-navigation__content" id="list-group-parent">
  121.                         {% if inAccount %}
  122.                             {# <button class="btn-link navigation-item navigation-item__collapse d-flex align-items-center w-100"  aria-expanded="{% if inAccount %}true{% else %}false{% endif %}" aria-controls="profile">
  123.                                 <svg class="icon mr-3 navigation-user">
  124.                                     <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-navigation-user"></use>
  125.                                 </svg>
  126.                                 <span><b>Личный кабинет</b></span>
  127.                                 <svg class="icon ml-auto navigation-arrow">
  128.                                     <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-dropdown"></use>
  129.                                 </svg>
  130.                             </button>
  131.                             <div class="w-100 border-v1"></div> #}
  132.                             <div class="collapse navigation-item-child {% if inAccount %}show{% endif %}" id="profile" data-parent="#list-group-parent">
  133.                                 {% if is_user_advertiser(app.user) %}
  134.                                     {{ _self._menu_advertiser(currentCity,currentStation,activeUri) }}
  135.                                 {% else %}
  136.                                     {{ _self._menu_hodok(currentCity,currentStation,activeUri) }}
  137.                                 {% endif %}
  138.                             </div>
  139.                         {% else %}
  140.                             <div class="header-is-metro d-block d-md-none">
  141.                                 <button type="button" class="btn w-100 header-is-metro__content d-flex align-items-center rounding" id="metro-header-mobile">
  142.                                     <span class="mr-3">{{ metro ? metro : 'Все станции' }}</span>
  143.                                     <svg class="icon ml-auto">
  144.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
  145.                                     </svg>
  146.                                 </button>
  147.                             </div>
  148.                             <div class="">
  149.                                 <a href="{% if not currentCity.equals(default_city()) %}{{ path("profile_list.list_by_city", {"city": currentCity.uriIdentity}) }}{% else %}{{ path("homepage") }}{% endif %}" class="navigation-item d-flex align-items-center w-100{% if 'profile_list.list_by_city' == app.request.get("_route") %} current{% endif %}" aria-label="Ссылка на индивидуалки">
  150.                                     <svg class="icon mr-3 icon-red">
  151.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-home"></use>
  152.                                     </svg>
  153.                                     <span>Индивидуалки</span>
  154.                                 </a>
  155.                                 <a href="{{ path('profile_list.list_approved', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/proverennye/' in activeUri %} current{% endif %}" aria-label="Ссылка на проверенные">
  156.                                     <svg class="icon">
  157.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-verify-new"></use>
  158.                                     </svg>
  159.                                     <span>Проверенные</span>
  160.                                 </a>
  161.                                 <a href="{{ path('profile_list.list_new', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/novye/' in activeUri %} current{% endif %}" aria-label="Ссылка на новые">
  162.                                     <svg class="icon">
  163.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-new-profiles"></use>
  164.                                     </svg>
  165.                                     <span>Новые</span>
  166.                                 </a>
  167.                                 <a href="{{ path('profile_list.list_bdsm', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/bdsm/' in activeUri %} current{% endif %}" aria-label="Ссылка на бдсм">
  168.                                     <svg class="icon">
  169.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-bdsm"></use>
  170.                                     </svg>
  171.                                     <span>БДСМ</span>
  172.                                 </a>
  173.                                 <a href="{{ path('masseur_list.page', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/massajistki/' in activeUri %} current{% endif %}" aria-label="Ссылка на массажистки">
  174.                                     <svg class="icon">
  175.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-masseur"></use>
  176.                                     </svg>
  177.                                     <span>Массажистки</span>
  178.                                 </a>
  179.                                 <a href="{{ path('profile_search.page', {'city': currentCity.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/search/' in activeUri %} current{% endif %}" aria-label="Ссылка на расширенный поиск">
  180.                                     <svg class="icon icon-red">
  181.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-search-navigation"></use>
  182.                                     </svg>
  183.                                     <span>Расширенный поиск</span>
  184.                                 </a>
  185.                                 <a href="{{ path('map.page', {'city': currentCity.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/intim-karta/' in activeUri %} current{% endif %}" aria-label="Ссылка на карту">
  186.                                     <svg class="icon">
  187.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-map"></use>
  188.                                     </svg>
  189.                                     <span>Интим-карта</span>
  190.                                 </a>
  191.                                 <a href="{{ path('profile_list.list_with_comments', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/otzyvy/' in activeUri %} current{% endif %}" aria-label="Ссылка на индивидуалок с отзывами">
  192.                                     <svg class="icon">
  193.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-comments"></use>
  194.                                     </svg>
  195.                                     <span>С отзывами</span>
  196.                                 </a>
  197.                                 <a href="{{ path('profile_list.list_with_video', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/video/' in activeUri %} current{% endif %}" aria-label="Ссылка на индивидуалок с видео">
  198.                                     <svg class="icon">
  199.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-video"></use>
  200.                                     </svg>
  201.                                     <span>С видео</span>
  202.                                 </a>
  203.                                 <a href="{{ path('profile_list.list_with_selfie', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/selfie/' in activeUri %} current{% endif %}" aria-label="Ссылка на индивидуалок с селфи">
  204.                                     <svg class="icon">
  205.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-selfie"></use>
  206.                                     </svg>
  207.                                     <span>С селфи</span>
  208.                                 </a>
  209.                                 {#        <a href="{{ path('profile_list.list_for_elite_girls', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/elite_girls/' in activeUri %} current{% endif %}">#}
  210.                                 {#            <svg class="icon">#}
  211.                                 {#                <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-elites"></use>#}
  212.                                 {#            </svg>#}
  213.                                 {#            <span>Элитные</span>#}
  214.                                 {#        </a>#}
  215.                                 <a href="{{ path('profile_list.list_price_high', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/price/dorogie/' in activeUri %} current{% endif %}" aria-label="Ссылка на дорогих">
  216.                                     <svg class="icon">
  217.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-two-arrow"></use>
  218.                                     </svg>
  219.                                     <span>Дорогие</span>
  220.                                 </a>
  221.                                 <a href="{{ path('profile_list.list_price_low', {'city': city.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/price/deshevye/' in activeUri %} current{% endif %}" aria-label="Ссылка на дешёвых">
  222.                                     <svg class="icon">
  223.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-one-arrow"></use>
  224.                                     </svg>
  225.                                     <span>Дешевые</span>
  226.                                 </a>
  227.                                 <a href="{{ path('station_list.page', {'city': currentCity.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/stancii/' in activeUri %} current{% endif %}" aria-label="Ссылка на список по метро">
  228.                                     <svg class="icon mr-3">
  229.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
  230.                                     </svg>
  231.                                     <span>Метро</span>
  232.                                 </a>
  233.                                 <a href="{{ path('district_list.page', {'city': currentCity.uriIdentity}) }}" class="navigation-item d-flex align-items-center w-100{% if '/raiony/' in activeUri %} current{% endif %}" aria-label="Ссылка на список по районам">
  234.                                     <svg class="icon mr-3">
  235.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-district"></use>
  236.                                     </svg>
  237.                                     <span>Районы</span>
  238.                                 </a>
  239.                             </div>
  240.                         {% endif %}
  241.                         <div class="navigation-item__content-button p-2">
  242.                             {% if is_granted('ROLE_USER') %}
  243.                                 <a href="{{ path('logout') }}" class="btn btn-secondary btn-block rounding" aria-label="Выйти из личного кабинета">Выйти</a>
  244.                             {% else %}
  245.                                 <a href="{{ path('register', {'city': city.uriIdentity}) }}" class="btn btn-danger btn-block mb-2 rounding" aria-label="Ссылка на регистрацию">Зарегистрироваться</a>
  246.                                 <a href="{{ path('login') }}" class="btn btn-secondary btn-block rounding" id="right-login-btn" aria-expanded="false" aria-label="Ссылка на вход в личный кабинет">Войти</a>
  247.                             {% endif %}
  248.                         </div>
  249.                     </div>
  250.                 </div>
  251.             </div>
  252.             <div class="header-logo header-nav-margin">
  253.                 <a href="{% if not currentCity.equals(default_city()) %}{{ path("profile_list.list_by_city", {"city": currentCity.uriIdentity}) }}{% else %}{{ path("homepage") }}{% endif %}">
  254.                     <img class="header-logo__img" src="{{ asset('assets/images/logotype.svg', 'basicConfig') }}" width='183' height='34' alt="Мос Проститутки"/>
  255.                 </a>
  256.             </div>
  257.             <div class="header-metro header-nav-margin align-items-center d-none d-md-flex">
  258.                 <button type="button" class="header-metro__button btn d-flex rounding" id="metro-header">
  259.                     <svg class="icon">
  260.                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-metro"></use>
  261.                     </svg>
  262.                     <span class="header-metro__value">
  263.                         {{- metro ? metro : 'Все станции' -}}
  264.                     </span>
  265.                 </button>
  266.             </div>
  267.             {# <div class="header-search header-nav-margin flex-fill d-none d-xl-block position-relative">
  268.                 {% set search_by_keys_form = search_by_keywords_form() %}
  269.                 {{ form_start(search_by_keys_form, {'attr': {}}) }}
  270.                     <div class="header-search__group">
  271.                         {{ form_widget(search_by_keys_form.keywords, {
  272.                             'label': '',
  273.                             'attr': {
  274.                                 'class': 'form-control',
  275.                                 'placeholder':"Поиск по имени, номеру, метро и тд"
  276.                         }}) }}
  277.                         {{ form_widget(search_by_keys_form.search, {
  278.                             'label': '',
  279.                             'attr': {
  280.                                 'class': 'btn d-flex align-items-center justify-content-center'
  281.                         }}) }}
  282.                     </div>
  283.                 {{ form_end(search_by_keys_form) }}
  284.             </div> #}
  285.             <div class="header-profile ml-md-auto">
  286.                 <div class="dropdown header-profile__dropdown d-flex align-items-center">
  287.                     {% if is_granted('ROLE_USER') %}
  288.                         {% if '/my/' not in activeUri %}
  289.                             <a class="btn btn-danger profile-button d-flex align-items-center rounding" href="{{ path('account') }}" aria-label="Открыть личный кабинет">
  290.                                 <svg class="icon mr-md-2 navigation-user">
  291.                                     <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-header-user"></use>
  292.                                 </svg>
  293.                                 <span class="d-none d-md-block">
  294.                                     Личный кабинет
  295.                                 </span>
  296.                             </a>
  297.                         {% else %}
  298.                             <a class="btn btn-secondary profile-button d-flex align-items-center rounding" href="{{ path('logout') }}"  aria-label="Выйти из личного кабинета">
  299.                                 <span class="d-none d-sm-block">
  300.                                     <div class="d-flex align-items-center">
  301.                                         {# <svg class="icon mr-2" style="font-size: 14px;">
  302.                                             <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-close"></use>
  303.                                         </svg> #}
  304.                                         <svg class="icon mr-2" class="icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M.88 1.88A3 3 0 0 1 3 1h6a3 3 0 0 1 3 3v2a1 1 0 1 1-2 0V4a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2a1 1 0 1 1 2 0v2a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V4a3 3 0 0 1 .88-2.12Z" /><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3 6.3a1 1 0 0 1 1.4 0l3 3a1 1 0 0 1 0 1.4l-3 3a1 1 0 0 1-1.4-1.4l1.29-1.3H7a1 1 0 1 1 0-2h9.59l-1.3-1.3a1 1 0 0 1 0-1.4Z" /></svg>
  305.                                         Выйти
  306.                                     </div>
  307.                                 </span>
  308.                                 <span class="d-block d-sm-none">
  309.                                     {# <svg class="icon">
  310.                                         <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-user-exit"></use>
  311.                                     </svg> #}
  312.                                     <svg class="icon" class="icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M.88 1.88A3 3 0 0 1 3 1h6a3 3 0 0 1 3 3v2a1 1 0 1 1-2 0V4a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2a1 1 0 1 1 2 0v2a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V4a3 3 0 0 1 .88-2.12Z" /><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3 6.3a1 1 0 0 1 1.4 0l3 3a1 1 0 0 1 0 1.4l-3 3a1 1 0 0 1-1.4-1.4l1.29-1.3H7a1 1 0 1 1 0-2h9.59l-1.3-1.3a1 1 0 0 1 0-1.4Z" /></svg>
  313.                                 </span>
  314.                             </a>
  315.                         {% endif %}
  316.                     {% else %}
  317.                         <a class="btn btn-danger profile-button d-flex align-items-center rounding" href="{{ path('login') }}" id="right-login-btn" aria-expanded="false" aria-label="Войти в личный кабинет">
  318.                             <svg class="icon mr-md-2 navigation-user">
  319.                                 <use xlink:href="{{ asset('assets_domain/images/icons/svg-library.svg', 'nodomainConfig') }}#icon-header-user"></use>
  320.                             </svg>
  321.                             <span class="d-none d-md-block">Личный кабинет</span>
  322.                         </a>
  323.                     {% endif %}
  324.                 </div>
  325.             </div>
  326.         </div>
  327.     </div>
  328. </header>