templates/location/includes/location-list-item.html.twig line 1

Open in your IDE?
  1. <article class="location-item shadow border-radius-4 js-ajax-form-map-google__item stretch-link"
  2.          data-item-id="dealer-search-{{ location.id }}">
  3.     <div class="location-item__content d-flex flex-column">
  4.         <div class="location-item__text-wrapper">
  5.             <div class="d-flex flex-column justify-content-between">
  6.                 <div class="location-item__inner-wrapper">
  7.                     <h3 class="location-item__title">
  8.                         <a class="stretch-link__link"
  9.                            data-event-tracking-event="location_finder"
  10.                            data-event-tracking-action="click_detail"
  11.                            data-event-tracking-select_item="{{ location.name }}"
  12.                            data-event-tracking-link_url="dealer-search-{{ location.id }}">
  13.                             {{ location.name }}
  14.                         </a>
  15.                     </h3>
  16.                     <div class="location-item__contact">
  17.                         {% if location.phone %}
  18.                             <div>
  19.                                 <a href="tel:{{ location.phone|phone }}"
  20.                                    class="link-with-icon text-secondary"
  21.                                    title="phone"
  22.                                    data-event-tracking-event="location_finder"
  23.                                    data-event-tracking-action="click_telephone"
  24.                                    data-event-tracking-select_item="{{ location.phone }}"
  25.                                    data-event-tracking-link_url="tel:{{ location.phone|phone }}">
  26.                                     <span class="icon icon-phone" aria-hidden="false"></span>
  27.                                     {{ location.phone }}
  28.                                 </a>
  29.                             </div>
  30.                         {% endif %}
  31.                         {% if location.email %}
  32.                             <div>
  33.                                 <a href="mail:{{ location.email }}"
  34.                                    class="link-with-icon text-secondary"
  35.                                    title="mail"
  36.                                    data-event-tracking-event="location_finder"
  37.                                    data-event-tracking-action="click_email"
  38.                                    data-event-tracking-select_item="{{ location.email }}"
  39.                                    data-event-tracking-link_url="mail:{{ location.email }}">
  40.                                     <span class="icon icon-mail" aria-hidden="false"></span>
  41.                                     {{ location.email }}
  42.                                 </a>
  43.                             </div>
  44.                         {% endif %}
  45.                     </div>
  46.                 </div>
  47.                 <div class="location-item__inner-wrapper w-100">
  48.                     {% if location.street or location.zip or location.city %}
  49.                         <div class="d-flex flex-column location-item__address">
  50.                             {% if location.street %}
  51.                                 <span>{{ location.street }}</span>
  52.                             {% endif %}
  53.                             {% if location.zip or location.city %}
  54.                                 <span>{{ location.zip }} {{ location.city }}</span>
  55.                             {% endif %}
  56.                             {% if location.config()[0] is defined and location.config()[0].country %}
  57.                                 <span>{{ elements_get_country_name(location.config()[0].country) }}</span>
  58.                             {% endif %}
  59.                             {% if location.geo and location.geo.getLatitude() and location.geo.getLongitude() %}
  60.                                 <a target="_blank"
  61.                                    href="https://www.google.com/maps/dir/?api=1&&destination={{ location.geo.getLatitude() }},{{ location.geo.getLongitude() }}"
  62.                                    class="text-secondary font-bold"
  63.                                    data-event-tracking-event="location_finder"
  64.                                    data-event-tracking-action="click_route_to_the_location"
  65.                                    data-event-tracking-select_item="{{ 'locationFinder.Routeplaner'|trans }}"
  66.                                    data-event-tracking-link_url="https://www.google.com/maps/dir/?api=1&&destination={{ location.geo.getLatitude() }},{{ location.geo.getLongitude() }}">
  67.                                     {{ 'locationFinder.Routeplaner'|trans }}
  68.                                 </a>
  69.                             {% endif %}
  70.                         </div>
  71.                     {% endif %}
  72.                     {{ include('includes/resort-badge.html.twig', {
  73.                         resorts: location.resorts
  74.                     }) }}
  75.                 </div>
  76.             </div>
  77.         </div>
  78.     </div>
  79. </article>