templates/Slivki/mobile/header_menu.html.twig line 1

Open in your IDE?
  1. <nav id="headerMenu" class="navbar">
  2.     {% apply spaceless %}
  3.         <ul class="list-unstyled m-0 pt-1 d-flex align-items-center">
  4.             {% set currentPath = app.request.pathinfo %}
  5.             <li class="d-flex {{ currentPath == path('homepage') ? 'active' }}"><img class="mr-1" width="16" src="/images/icon_category.svg"/><a href="#" role="button" data-toggle="modal" data-target="#offerCategoryMenuPopup">Категории</a></li>
  6.             {% include "Slivki/mobile#{regional_template_path}/info_massage_block.html.twig" %}
  7.             {% if not isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  8.                 <li>
  9.                     <a href="{{ base_url }}/avto/shinomontazh">🚗 Шиномонтаж</a>
  10.                 </li>
  11.             {% endif %}
  12.             {% if getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  13.                 <li><a href="{{ base_url }}/eda/dostavka-edy?utm_source=main_menu">Доставка еды</a></li>
  14.             {% endif %}
  15.             {% block meOnMap %}
  16.                 <li>
  17.                     <a href="{{ base_url }}/map" target="_blank" class="d-flex pin-maps-header position-relative pr-3 py-1 violet-light-color">
  18.                         <img height="20" src="/images/pin.svg"/>
  19.                         <span>Я на карте</span>
  20.                     </a>
  21.                 </li>
  22.             {% endblock %}
  23.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SALES')) %}
  24.                 <li {{ currentPath == path('sales') ? 'class="active"' }}><a href="{{ base_url }}{{ path('sales') }}">Новости скидок</a></li>
  25.             {% endif %}
  26.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::GIFTS')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  27.                 <li><a href="{{ base_url }}/gift">🎁 Подарки</a></li>
  28.             {% endif %}
  29.             {% set menuItem = getTestMenuItem(2) %}
  30.             {% set landingUrl = '/subscription-landing?utm_source=slivki&utm_medium=button&utm_campaign=slivki-header-mob' %}
  31.             {% if subscription is not null and subscription.status == constant('Slivki\\Bundle\\SubscriptionBundle\\Enum\\SubscriptionStatus::CANCELED') %}
  32.                 {% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
  33.             {% endif %}
  34.             {% set videoGuideURL = getURL(constant('Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')) %}
  35.             {% set flierUrl = path('flierLanding') %}
  36.             {% block vacancy %}
  37.                 <li>
  38.                     <a class="vakansii" href="{{ base_url }}/skidki-i-rasprodazhi/vakansii/minsk">Вакансии</a>
  39.                 </li>
  40.             {% endblock %}
  41.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::FLIERS')) %}
  42.                 <li {{ currentPath == flierUrl ? 'class="active"' }}><a href="{{ flierUrl }}">Листовки</a></li>
  43.             {% endif %}
  44.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION')) %}
  45.                 <li>
  46.                     <a href="{{ landingUrl }}">⚡️ Подписка</a>
  47.                 </li>
  48.             {% endif %}
  49.         </ul>
  50.     {% endapply %}
  51. </nav>