{% set class = class|default("") %}
{% set typeClass = get_hero_type() %}
{% set isIndex = isIndex|default(false) %}
<header class="header {{ class }} {{ typeClass }}" data-header>
<div class="header__container" data-header-container>
<div class="header__inner" data-header-inner>
<div class="header__content grid-block container container_spacer">
<div class="header__left">
<div class="header__hamburger-wrap">
{% include '_parts/header/hamburger.html.twig' with {
class: 'header__hamburger',
} %}
{% include '_parts/header/header-choose-apart-link.html.twig' with {
class: 'header__choose-apart-link header__choose-apart-link_left'
} %}
</div>
{% if view_settings() is has_image('imageName') %}
<a href="{% if not isIndex %}{{ url('main:index') }}{% else %}javascript:void(0);{% endif %}"
title="Главная"
class="header__logo"
>
{% include '_parts/image/adaptive-image.html.twig' with {
object: view_settings(),
field: 'imageFile',
size: 'logo_thumb',
alt: 'Логотип',
class: 'header__image',
classPicture: 'header__picture',
} %}
</a>
{% endif %}
{% if view_settings() is has_image('imageWhiteName') %}
<a href="{% if not isIndex %}{{ url('main:index') }}{% else %}javascript:void(0);{% endif %}"
title="Главная"
class="header__logo header__logo_white"
>
{% include '_parts/image/adaptive-image.html.twig' with {
object: view_settings(),
field: 'imageWhiteFile',
size: 'logo_thumb',
alt: 'Логотип',
class: 'header__image',
classPicture: 'header__picture',
} %}
</a>
{% endif %}
</div>
<div class="header__right">
{% include '_parts/header/header-choose-apart-link-iconless.html.twig' with {
class: 'header__choose-apart-link header__choose-apart-link_right'
} %}
{% if settings().phone %}
<a href="tel:{{ settings().phone|tel }}" class="header__phone text__body"
data-goal-yandex-click="{{ settings().clickPhoneGoal }}"
data-goal-vk-click="{{ settings().clickPhoneGoal }}"
>
{{ settings().phone }}
</a>
{% endif %}
<a href="{{ path('request:recall_modal') }}"
title="Заказать звонок"
class="header__modal header__modal_title link link_accent"
data-modal
data-goal-yandex-submit="{{ settings().successGoal }}"
data-goal-yandex-click="{{ settings().clickFormGoal }}"
data-goal-vk-submit="{{ settings().successGoal }}"
data-goal-vk-click="{{ settings().clickFormGoal }}"
>
<span class="link__inner">
<span class="link__title-wrap">
<span class="link__title">
Заказать звонок
</span>
<span class="link__title link__title_duplicate">
Заказать звонок
</span>
</span>
<span class="link__arrow">
{% include '_parts/icons/arrow-mini.svg' %}
</span>
</span>
</a>
<a href="{{ path('request:recall_modal') }}"
title="Заказать звонок"
class="header__modal header__modal_icon"
data-modal
data-goal-yandex-submit="{{ settings().successGoal }}"
data-goal-yandex-click="{{ settings().clickFormGoal }}"
data-goal-vk-submit="{{ settings().successGoal }}"
data-goal-vk-click="{{ settings().clickFormGoal }}"
>
<span class="header__modal-icon">
{{ source('_parts/icons/phone.svg') }}
</span>
</a>
</div>
</div>
{% include '_parts/header/_drop-menu.html.twig' with {
class: 'header__drop-menu'
} %}
</div>
</div>
</header>