{% set class = class|default('') %}
{% set items = get_drop_menu_items() %}
<div class="drop-menu {{ class }}" data-drop-menu>
<div class="drop-menu__container" data-drop-menu-container>
<div class="drop-menu__inner">
<div class="drop-menu__top">
<ul class="drop-menu__list">
{% for item in items %}
{% if item['link'] and item['isVisible'] %}
<li class="drop-menu__item"
style="order: {% if item['order'] is not null %}{{ item['order'] }}{% else %}{{ loop.index }}{% endif %};"
>
<a href="javascript:void(0);"
title="{{ item['name'] }}"
class="drop-menu__item-link h4 h4_laptop text__black-text"
data-drop-menu-link="{{ item['link'] }}"
>
{{ item['name'] }}
</a>
</li>
{% endif %}
{% endfor %}
{% if settings().favoritesLink %}
<li class="drop-menu__item"
style="order: 50;"
>
<a href="{{ settings().favoritesLink }}"
title="Избранное"
class="drop-menu__item-link h4 h4_laptop text__black-text"
target="_blank"
>
Избранное
</a>
</li>
{% endif %}
{% if vich_uploader_asset(settings(), 'webcamFile') %}
<li class="drop-menu__item"
style="order: 60;">
<a href="{{ vich_uploader_asset(settings(), 'webcamFile') }}"
title="webcam"
class="drop-menu__item-link h4 h4_laptop text__black-text"
target="_blank">
WEB-камера
</a>
</li>
{% endif %}
</ul>
<a href="javascript:void(0);"
title="Выбрать квартиру"
class="drop-menu__choose-apart button"
data-drop-menu-link="#LAYOUTS"
>
Выбрать квартиру
</a>
</div>
<div class="drop-menu__bottom">
<a href="https://kvartiry.kssk.ru/"
title="Все проекты КССК"
class="drop-menu__link {{ class }}"
target="_blank"
>
<span class="arrow arrow_accent">
{% include '_parts/icons/arrow.svg' %}
</span>
<span class="drop-menu__link-title">
Все проекты КССК
</span>
</a>
<div class="drop-menu__logo">
{{ source('_parts/icons/kssk-logo-grey.svg') }}
</div>
{% include '_parts/pattern.html.twig' with {'class': 'drop-menu__pattern'} %}
</div>
</div>
</div>
</div>