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 class="menu-office-fest">#}
  9. {#                    <a href="{{ base_url }}/fest/office" class="color-white">Офисный фэст до 31.01</a>#}
  10. {#                </li>#}
  11. {#            {% endif %}#}
  12.             {% if not isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  13.                 <li>
  14.                     <a href="{{ base_url }}/avto/shinomontazh">🛞 Шиномонтаж</a>
  15.                 </li>
  16.             {% endif %}
  17. {#            <li>#}
  18. {#                <a href="{{ base_url }}/profile/external-codes/index ">МТС-БОНУС</a>#}
  19. {#            </li>#}
  20.             {% if getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  21.                 <li><a href="{{ base_url }}/eda/dostavka-edy?utm_source=main_menu">Доставка еды</a></li>
  22.             {% endif %}
  23.             {% block meOnMap %}
  24.                 <li>
  25.                     <a href="{{ base_url }}/map" target="_blank" class="d-flex pin-maps-header position-relative pr-3 py-1 violet-light-color">
  26.                         <img height="20" src="/images/pin.svg"/>
  27.                         <span>Я на карте</span>
  28.                     </a>
  29.                 </li>
  30.             {% endblock %}
  31.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SALES')) %}
  32.                 <li {{ currentPath == path('sales') ? 'class="active"' }}><a href="{{ base_url }}{{ path('sales') }}">Новости скидок</a></li>
  33.             {% endif %}
  34.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::GIFTS')) and getCurrentCity().getID() == constant('Slivki\\Entity\\City::DEFAULT_CITY_ID') %}
  35.                 <li><a href="{{ base_url }}/gift">🎁 Подарки</a></li>
  36.             {% endif %}
  37.             {% set menuItem = getTestMenuItem(2) %}
  38.             {% set landingUrl = '/subscription-landing?utm_source=slivki&utm_medium=button&utm_campaign=slivki-header-mob' %}
  39.             {% if subscription is not null and subscription.status == constant('Slivki\\Bundle\\SubscriptionBundle\\Enum\\SubscriptionStatus::CANCELED') %}
  40.                 {% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
  41.             {% endif %}
  42.             {% set videoGuideURL = getURL(constant('Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')) %}
  43.             {% set flierUrl = path('flierLanding') %}
  44.             {% block vacancy %}
  45.                 <li>
  46.                     <a class="vakansii" href="{{ app.user ?  '/profile/oplata-pay' }}"{{ not app.user ? 'data-target=".modal-auth" data-toggle="modal"' : '' }}>Баланс</a>
  47.                 </li>
  48.             {% endblock %}
  49.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::FLIERS')) %}
  50.                 <li {{ currentPath == flierUrl ? 'class="active"' }}><a href="{{ flierUrl }}">Листовки</a></li>
  51.             {% endif %}
  52.             <li>
  53.                 <a href="/skidki-i-rasprodazhi/vakansii/brest">Вакансии</a>
  54.             </li>
  55.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION')) %}
  56.                 <li>
  57.                     <a href="{{ landingUrl }}">⚡️ Подписка</a>
  58.                 </li>
  59.             {% endif %}
  60.             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) %}
  61.                 <li>
  62.                     <a href="/virtual-wallet-pay">SlivkiPay</a>
  63.                 </li>
  64.             {% endif %}
  65.         </ul>
  66.     {% endapply %}
  67. </nav>