{% set firstLinkList = pimcore_block('firstLinkBlock').indices > 0 %}
<div class="footer-main">
<div class="container">
<div class="row">
{% if firstLinkList|default(false) %}
<div class="col-md-4">
<ul class="list-unstyled footer-main__link-list">
{% for element in pimcore_block('firstLinkBlock').iterator %}
{% set trackingKey = 'click-footer-' ~ pimcore_link('link').getText()|replace({' ': '_'})|lower | default %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_footer',
'click_item': pimcore_link('link').getText()|default,
'click_url': pimcore_link('link').getHref()|default,
'category': 'footer_links',
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li>
{{ pimcore_link('link', {
'class': 'footer-main__link-list-link',
'data-event-tracking-key': trackingKey,
}) }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="{{ firstLinkList ? 'col-md-4 d-flex align-items-center justify-content-center': 'col-md-6' }}">
{% if editmode or not pimcore_image('logo').empty %}
{{ pimcore_image('logo', {
'thumbnail': 'footer-logo',
'imgAttributes': {
'class': 'js-lazy-img footer-main__logo img-fluid',
'loading': 'lazy'
},
'disableWidthHeightAttributes': true,
'lowQualityPlaceholder': true,
'width': 220
})|raw }}
{% endif %}
</div>
<div class="{{ firstLinkList ? 'col-md-4': 'col-md-6' }} align-items-center d-md-flex justify-content-end">
<ul class="list-unstyled footer-main__link-list asdfasdf">
{% for element in pimcore_block('secondLinkBlock').iterator %}
{% set trackingKey = 'click-footer-' ~ pimcore_link('link').getText()|replace({' ': '_'})|lower | default %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_footer',
'click_item': pimcore_link('link').getText()|default,
'click_url': pimcore_link('link').getHref()|default,
'category': 'footer_links',
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<li>
{{ pimcore_link('link', {
'class': 'footer-main__link-list-link',
'data-event-tracking-key': trackingKey,
}) }}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>