{#
/**
* @var \Pimcore\Templating\PhpEngine view
* @var \Pimcore\Templating\GlobalVariables app
* #
*/ #}
{% if templateData['detailContact']['address'] is not empty %}
{% if infrastructure.getSystemIdentifier() is not same as "Graz" %}
{% set addressString = ((templateData['detailContact']['address'] | split("<br>"))| slice (-2, 2)) | join (" ") %}
{% else %}
{% set addressString = ((templateData['detailContact']['address'] | split("<br>")) | join (" ") | url_encode ) %}
{% endif %}
<iframe fetchpriority="low" frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?q={{ templateData['googlePlaceId'] ? "place_id:" ~ templateData['googlePlaceId'] : addressString }}&key={{ demi_getMapsKey() }}"
allowfullscreen></iframe>
{% endif %}