templates/Includes/simple-map.html.twig line 1

Open in your IDE?
  1. <section class="container content-block js-fade-in {{ styleModifier | default(null) }} {{ anchorNavItem | default(null) ? 'js-anchor-nav__item' : '' }}"
  2.     {% if anchorNavItem | default(null) and anchorNavTitle | default(null) %}
  3.     data-anchor-nav-title="{{ anchorNavTitle }}"
  4.     {% endif %}>
  5.     {{ include('Includes/title-block.html.twig', {
  6.         title: title|default(''),
  7.         subtitle: subtitle|default(''),
  8.         isCentered: true,
  9.         styleModifier: 'js-fade-in'
  10.     }) }}
  11.     {% if geoposition|default(null) and geoposition.longitude and geoposition.latitude %}
  12.         {% set geo = geoposition.latitude ~ ',' ~ geoposition.longitude %}
  13.     {% else %}
  14.         {% set geo = street|default('') ~ ', ' ~ zip|default('') ~ ' ' ~ city|default('') %}
  15.     {% endif %}
  16.     <div class="embed-responsive embed-responsive-2by1">
  17.         <iframe width="100%" height="100%" frameborder="0" class="embed-responsive-item js-lazy-iframe" style="border:0"
  18.                 data-src="https://www.google.com/maps/embed/v1/place?q={{ geo }}&key={{ googleApiKey() }}"
  19.                 allowfullscreen>
  20.         </iframe>
  21.     </div>
  22. </section>