templates/_parts/header/_drop-menu.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set items = get_drop_menu_items() %}
  3. <div class="drop-menu {{ class }}" data-drop-menu>
  4.     <div class="drop-menu__container" data-drop-menu-container>
  5.         <div class="drop-menu__inner">
  6.             <div class="drop-menu__top">
  7.                 <ul class="drop-menu__list">
  8.                     {% for item in items %}
  9.                         {% if item['link'] and item['isVisible'] %}
  10.                             <li class="drop-menu__item"
  11.                                 style="order: {% if item['order'] is not null %}{{ item['order'] }}{% else %}{{ loop.index }}{% endif %};"
  12.                             >
  13.                                 <a href="javascript:void(0);"
  14.                                    title="{{ item['name'] }}"
  15.                                    class="drop-menu__item-link h4 h4_laptop text__black-text"
  16.                                    data-drop-menu-link="{{ item['link'] }}"
  17.                                 >
  18.                                     {{ item['name'] }}
  19.                                 </a>
  20.                             </li>
  21.                         {% endif %}
  22.                     {% endfor %}
  23.                     {% if settings().favoritesLink %}
  24.                         <li class="drop-menu__item"
  25.                             style="order: 50;"
  26.                         >
  27.                             <a href="{{ settings().favoritesLink }}"
  28.                                title="Избранное"
  29.                                class="drop-menu__item-link h4 h4_laptop text__black-text"
  30.                                target="_blank"
  31.                             >
  32.                                 Избранное
  33.                             </a>
  34.                         </li>
  35.                     {% endif %}
  36.                     {% if vich_uploader_asset(settings(), 'webcamFile') %}
  37.                         <li class="drop-menu__item"
  38.                             style="order: 60;">
  39.                             <a href="{{ vich_uploader_asset(settings(), 'webcamFile') }}"
  40.                                title="webcam"
  41.                                class="drop-menu__item-link h4 h4_laptop text__black-text"
  42.                                target="_blank">
  43.                                 WEB-камера
  44.                             </a>
  45.                         </li>
  46.                     {% endif %}
  47.                 </ul>
  48.                 <a href="javascript:void(0);"
  49.                    title="Выбрать квартиру"
  50.                    class="drop-menu__choose-apart button"
  51.                    data-drop-menu-link="#LAYOUTS"
  52.                 >
  53.                     Выбрать квартиру
  54.                 </a>
  55.             </div>
  56.             <div class="drop-menu__bottom">
  57.                 <a href="https://kvartiry.kssk.ru/"
  58.                    title="Все проекты КССК"
  59.                    class="drop-menu__link {{ class }}"
  60.                    target="_blank"
  61.                 >
  62.                     <span class="arrow arrow_accent">
  63.                         {% include '_parts/icons/arrow.svg' %}
  64.                     </span>
  65.                     <span class="drop-menu__link-title">
  66.                         Все проекты КССК
  67.                     </span>
  68.                 </a>
  69.                 <div class="drop-menu__logo">
  70.                     {{ source('_parts/icons/kssk-logo-grey.svg') }}
  71.                 </div>
  72.                 {% include '_parts/pattern.html.twig' with {'class': 'drop-menu__pattern'} %}
  73.             </div>
  74.         </div>
  75.     </div>
  76. </div>