templates/default/default.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3. <main role="main" class="{% if (app.request.pathInfo == '/') %} home {% endif %} {% if (app.request.pathInfo == '/it/contatti') or (app.request.pathInfo == '/en/contacts') %} contacts {% endif %} mt-100 pt-0 pt-lg-100">
  4.     {% for label, messages in app.flashes %}
  5.         {% for message in messages %}
  6.             <div class="alert alert-{{ label }} alert-dismissable">
  7.                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  8.                 {{ message }}
  9.             </div>
  10.         {% endfor %}
  11.     {% endfor %}
  12.     {{ render(controller('App\\Controller\\MenuController::breadcrumbsAction')) }}
  13.     {{ pimcore_areablock("myAreablock") }}
  14.     {% if app.request.pathInfo == '/it/contatti' or app.request.pathInfo == '/en/contacts' %}
  15.         <script>
  16.             function initMap() {
  17.                 var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
  18.                 var map = new google.maps.Map(document.getElementById('googleMap'), {
  19.                     zoom: 16,
  20.                     center: mycenter
  21.                 });
  22.                 var marker = new google.maps.Marker({
  23.                     position: mycenter,
  24.                     map: map
  25.                 });
  26.             }
  27.         </script>
  28.         <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap"></script>
  29.     {% endif %}
  30. </main>
  31. {% endblock %}