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