custom/plugins/NetiNextStoreLocator/src/Resources/views/storefront/store_locator/index.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_breadcrumb %}
  3.     <div class="breadcrumb cms-breadcrumb container">
  4.         {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  5.             context: context,
  6.             category: page.header.navigation.active
  7.         } only %}
  8.     </div>
  9. {% endblock %}
  10. {% block base_content %}
  11.     {% block neti_store_locator_index_top_cms_page_html %}
  12.         {% if page.topCmsPageHtml %}
  13.             {{ page.topCmsPageHtml|raw }}
  14.         {% endif %}
  15.     {% endblock %}
  16.     {% block neti_store_locator_index_app %}
  17.         <div class="neti-next-store-locator mb-5" v-cloak :class="{ 'off-canvas-opened': filterOffCanvasOpened }">
  18.             {% block neti_store_locator_index_app_config %}
  19.                 <input type="hidden" value="{{ page.config|json_encode|escape }}" ref="config">
  20.                 <input type="hidden" value="{{ url('frontend.store_locator.detail', { id: 'storeId' }) }}" ref="storeUrl">
  21.                 <input type="hidden" value="{{ url('frontend.store_locator.get_stores') }}" ref="getStoresUrl">
  22.                 <input type="hidden" value="{{ page.countries|json_encode|escape }}" ref="countries">
  23.                 <input type="hidden" value="{{ page.orderTypes|json_encode|escape }}" ref="orderTypes">
  24.                 <input type="hidden" value="{{ page.filters|json_encode|escape }}" ref="filters">
  25.                 {% if page.config._storePickupEnabled == true %}
  26.                     <input type="hidden" value="{{ url('frontend.store_pickup.select_store') }}" ref="selectStoreUrl">
  27.                 {% endif %}
  28.             {% endblock %}
  29.             {% block neti_store_locator_index_app_map_overlay %}
  30.                 <div class="map-overlay d-flex flex-column" ref="mapOverlay">
  31.                     {% sw_include '@Storefront/storefront/store_locator/search.twig' %}
  32.                     {% sw_include '@Storefront/storefront/store_locator/list/index.twig' %}
  33.                 </div>
  34.             {% endblock %}
  35.             {% sw_include '@Storefront/storefront/store_locator/map.twig' %}
  36.             {% block neti_store_locator_index_contact_form %}
  37.                 <neti-store-locator-contact-form :store="selectedStore"></neti-store-locator-contact-form>
  38.             {% endblock %}
  39.             {% block neti_store_locator_index_route %}
  40.                 <neti-store-locator-route
  41.                         v-if="selectedStore && map && currentLocation"
  42.                         :store="selectedStore"
  43.                         :map="map"
  44.                         :location="currentLocation"
  45.                 ></neti-store-locator-route>
  46.             {% endblock %}
  47.             {% block neti_store_locator_info_window %}
  48.                 <neti-store-locator-info-window v-if="selectedStore" :store="selectedStore" :config="config"></neti-store-locator-info-window>
  49.             {% endblock %}
  50.         </div>
  51.     {% endblock %}
  52.     {% block neti_store_locator_index_bottom_cms_page_html %}
  53.         {% if page.bottomCmsPageHtml %}
  54.             {{ page.bottomCmsPageHtml|raw }}
  55.         {% endif %}
  56.     {% endblock %}
  57.     <script type="text/x-template" id="neti-store-locator-store">
  58.         {% sw_include '@Storefront/storefront/store_locator/list/store.twig' %}
  59.     </script>
  60.     <script type="text/x-template" id="neti-store-locator-contact-form">
  61.         {% sw_include '@Storefront/storefront/store_locator/contact-form.twig' %}
  62.     </script>
  63.     <script type="text/x-template" id="neti-store-locator-route">
  64.         {% sw_include '@Storefront/storefront/store_locator/vue-components/route.twig' %}
  65.     </script>
  66.     <script type="text/x-template" id="neti-store-locator-info-window">
  67.         {% sw_include '@Storefront/storefront/store_locator/vue-components/info-window.twig' %}
  68.     </script>
  69.     {% block neti_store_locator_cookie_consent %}
  70.         {% sw_include '@Storefront/storefront/store_locator/cookie-consent.html.twig' %}
  71.     {% endblock %}
  72. {% endblock %}