{% set siteConfig = getSiteConfig() %}
<div class="footer-additional">
{% embed 'includes/editmode-box.html.twig' %}{% block editmodeSettings %}
<b>Contact information can be edited in (Micro)SiteConfig-Object:</b>
{% if document.property('siteConfig') %}
<a class="arrow-link" target="_blank"
href="{{ app.request.getSchemeAndHttpHost() }}/admin/login/deeplink?object_{{ document.property('siteConfig').id }}_object"
>
-> Open Object
</a>
{% endif %}
{% endblock %}{% endembed %}
{% if not isInNav|default(false) %}<div class="container">{% endif %}
<div class="row">
<div class="col-md">
<div class="footer-additional__contacts">
<a href="tel:{{ siteConfig.phone|phone }}" class="footer-additional__contact-item">
<span class="icon icon-phone footer-additional__contact-item-icon" aria-hidden="true"></span>
{{ siteConfig.phone }}
</a>
<a href="mailto:{{ siteConfig.email }}" class="footer-additional__contact-item">
<span class="icon icon-mail footer-additional__contact-item-icon" aria-hidden="true"></span>
{{ siteConfig.email }}
</a>
</div>
</div>
<div class="col-auto">
<div class="footer-additional__social-list">
{% for social in siteConfig.socialMediaBlock %}
{% set socialLink = social.socialLink.data %}
{% if socialLink %}
{% set trackingKey = 'click-footer-' ~ socialLink.text %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_footer',
'click_item': socialLink.text,
'click_url': socialLink.href,
'category': 'social_media_icons',
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<a href="{{ socialLink.href }}" class="footer-additional__social-item"
target="{{ socialLink.target }}" data-event-tracking-key="{{ trackingKey }}"
>
<span class="visually-hidden">{{ socialLink.text }}</span>
<span class="icon icon-{{ social.socialIcon.data }} footer-additional__social-item-icon"
aria-label="{{ socialLink.text }}"
></span>
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>