custom/plugins/NetiNextStoreLocator/src/Resources/views/storefront/store_locator/vue-components/info-window.twig line 1

Open in your IDE?
  1. {% block neti_store_locator_info_window %}
  2.     <div class="neti-store-locator-info-window">
  3.         <template v-if="store.country && store.country.iso == 'GB'">
  4.             <strong>{{ '{{ store.label }}' }}</strong><br />
  5.             {{ '{{ store.streetNumber }} {{ store.street }}' }}<br />
  6.             {{ '{{ store.city }}' }}<br />
  7.             <template v-if="store.countryState">
  8.                 {{ '{{ store.countryState.translated.name }}' }}<br />
  9.             </template>
  10.             {{ '{{ store.zipCode }}' }}<br />
  11.             <template v-if="store.country">
  12.                 {{ '{{ store.country.name }}' }}<br />
  13.             </template>
  14.         </template>
  15.         <template v-else>
  16.             <strong>{{ '{{ store.label }}' }}</strong><br />
  17.             {{ '{{ store.street }} {{ store.streetNumber }}' }}<br />
  18.             {{ '{{ store.zipCode }} {{ store.city }}' }}<br />
  19.             <template v-if="store.country">
  20.                 {{ '{{ store.country.name }}' }}<br />
  21.             </template>
  22.         </template>
  23.         <br />
  24.         <template v-if="store.phone">
  25.             <strong>{{ "neti-next-store-locator.index.store.labelTelephone"|trans }}</strong>
  26.             <a :href="'tel:' + store.phone">
  27.                 {{ '{{ store.phone }}' }}
  28.             </a>
  29.             <br />
  30.         </template>
  31.         <template v-if="store.fax">
  32.             <strong>{{ "neti-next-store-locator.index.store.labelFax"|trans }}</strong>
  33.             {{ '{{ store.fax }}' }}
  34.             <br />
  35.         </template>
  36.         {% block neti_store_locator_info_window_opening_times %}
  37.             <template v-if="config.showOpeningTimesOnMarkerWindow">
  38.                 <template v-if="hasBusinessHours">
  39.                     <br />
  40.                     <div v-if="isStoreOpen" class="font-weight-bold text-success mb-1">
  41.                         {{ "neti-next-store-locator.index.store.open"|trans }}
  42.                     </div>
  43.                     <div v-else-if="store.extensions.storeBusinessHours.businessHours.length > 0" class="text-danger">
  44.                         {{ "neti-next-store-locator.index.store.closed"|trans }}
  45.                     </div>
  46.                     <div class="buiness-hours-week">
  47.                         <dl v-for="weekDay in weekDays" class="row mb-1 justify-content-end">
  48.                             <template v-if="businessHours[weekDay.id]">
  49.                                 <dt class="col-5">{{ '{{ weekDay.translated.name }}' }}:</dt>
  50.                                 <dd v-for="businessHour in businessHours[weekDay.id]" class="col-7 mb-0">
  51.                                     {{ '{{ formatTime(businessHour.businessHour.start) }}' }} - {{ '{{ formatTime(businessHour.businessHour.end) }}' }}
  52.                                 </dd>
  53.                             </template>
  54.                         </dl>
  55.                     </div>
  56.                 </template>
  57.                 <template v-else-if="formattedOpeningTimes">
  58.                     <br />
  59.                     <div class="opening-times">
  60.                         <strong>
  61.                             {{ "neti-next-store-locator.index.store.labelOpeningTimes"|trans }}
  62.                         </strong>
  63.                         <div v-html="formattedOpeningTimes"></div>
  64.                     </div>
  65.                 </template>
  66.             </template>
  67.         {% endblock %}
  68.     </div>
  69. {% endblock %}