{% if address is defined and address is not empty %}
{% set addressForMap = accommodation.getName() ~ " " ~ address.getAddressLine1() ~ ', ' ~ address.getZipcode() ~ " " ~ address.getTown() ~ " " ~ address.getCity() ~ " " ~ address.getCountry() ~ " " %}
{% if not demi_core_configuration("getUseStaticImageForMap",[]) or (demi_core_configuration("getUseStaticImageForMap",[]) and demi_getStaticImageMap(acco) is null) %}
<div class="embed-responsive embed-responsive-detail-map bg-light-gray mb-3">
<iframe frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?q={{ accommodation.getProperty('google_place_id') ? "place_id:" ~ accommodation.getProperty('google_place_id') : addressForMap|url_encode }}&key={{ googleMapsKey }}"
allowfullscreen></iframe>
</div>
{% endif %}
{% endif %}
<h4>{{ headlineText | raw }}</h4>
<div>
{% if address is not empty %}
{% set addressInfos = address.getAddressLine1() %}
{% if address.getAddressLine2() is not empty %}
{% set addressInfos = addressInfos ~ " " ~ address.getAddressLine2() %}
{% endif %}
{% set addressInfos = addressInfos ~ ", <br>" ~ address.getZipcode() ~ " " ~ address.getTown() ~ " " ~ address.getCity() ~ " " ~ address.getCountry() %}
{{ addressInfos|raw }}
{% endif %}
</div>
<script data-cookieconsent="ignore">
_config.address = "{{ address.getAddressLine1() ~ address.getZipcode() ~ " " ~ address.getTown() ~ " " ~ address.getCity() ~ " " ~ address.getCountry() }}";
</script>
<ul class="list-unstyled">
{% if googleMapLink is not empty %}
<li class="mt-2">
<a href="{{ googleMapLink }}"
target="_blank"
class="text-primary js-tracking js-tracking--click"
data-tracking-category="button"
data-tracking-action="google maps"
data-tracking-label="{{ trackingLabel|escape }}">
<span class="icon-in-text demi-icon demi-icon-navigation" aria-hidden="true"></span>
<span class="text-underline">{{ 'demi.detail.show-on-map'|trans }}</span>
</a>
</li>
{% endif %}
{% if address.getUrl() is not empty %}
{% set url = demi_findNiceUrl(address.getUrl()|escape) %}
{% if url is not empty %}
<li class="mt-2">
<a href="{{ url }}" target="_blank" class="text-primary js-tracking js-tracking--click"
data-tracking-category="button"
data-tracking-action="website"
data-tracking-label="{{ trackingLabel|escape }}"
data-counting-click-type="SPURL">
<span class="icon-in-text demi-icon demi-icon-link" aria-hidden="true"></span>
<span class="text-underline">{{ 'demi.detail.website'|trans }}</span>
</a>
</li>
{% endif %}
{% endif %}
</ul>
{% if accommodation.getLicenseNumber() is not empty %}
<div class="mb-3 mt-2">
{{ "demi.detail.license-number"|trans }}: {{ accommodation.getLicenseNumber() }}
</div>
{% endif %}
<hr>
<address>
{% if address.getPhone() is not empty %}
<a class="btn btn-success mr-2 js-tracking js-tracking--click"
href="tel:{{ address.getPhone()|replace({' ':''}) }}"
data-tracking-category="button"
data-tracking-action="anrufen"
data-tracking-label="{{ trackingLabel }}"
data-counting-click-type="SPPhone">
<span class="demi-icon demi-icon-tel mr-2" aria-hidden="true"></span>
{{ "demi.detail.call"|trans }}
</a>
{% elseif address.getMobile() is not empty %}
<a class="btn btn-success mr-2 js-tracking js-tracking--click"
href="tel:{{ address.getMobile()|replace({' ':''}) }}"
data-tracking-category="button"
data-tracking-action="anrufen"
data-tracking-label="{{ trackingLabel }}"
data-counting-click-type="SPPhone">
<span class="demi-icon demi-icon-tel mr-2" aria-hidden="true"></span>
{{ "demi.detail.call"|trans }}
</a>
{% endif %}
{% if address.getEmail() is not empty %}
<a class="btn btn-primary js-tracking js-tracking--click"
href="mailto:{{ address.getEmail() }}"
data-tracking-category="button"
data-tracking-action="e-mail"
data-tracking-label="{{ trackingLabel }}">
<span class="demi-icon demi-icon-email mr-2" aria-hidden="true"></span>
{{ 'demi.detail.send-mail'|trans }}
</a>
{% endif %}
</address>
<hr>