{% extends 'layouts/layout.html.twig' %}
{% block content %}
<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">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="alert alert-{{ label }} alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
{{ message }}
</div>
{% endfor %}
{% endfor %}
{{ render(controller('App\\Controller\\MenuController::breadcrumbsAction')) }}
{{ pimcore_areablock("myAreablock") }}
{% if app.request.pathInfo == '/it/contatti' or app.request.pathInfo == '/en/contacts' %}
<script>
function initMap() {
var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
var map = new google.maps.Map(document.getElementById('googleMap'), {
zoom: 16,
center: mycenter
});
var marker = new google.maps.Marker({
position: mycenter,
map: map
});
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap"></script>
{% endif %}
</main>
{% endblock %}