<div class="footer-brands">
<div class="container">
<div class="row">
<div class="col-md-2 footer-brands__copyright d-flex align-items-center">
© {{ 'now' | date('Y') }} {{ pimcore_input('copyright', { 'placeholder': 'Copyright' }) }}
</div>
<div class="col-md text-md-center">
<div class="footer-brands__brands-wrapper">
{% for element in pimcore_block('brandLinkBlock').iterator %}
{% if editmode %}
<b>Logo:</b> {{ pimcore_select('brandImage', {
'store': [
[ 'audi', 'Audi' ],
[ 'zermatt', 'Zermatt' ],
[ 'best-ski-resort', 'Best Ski Resort' ],
[ 'mountain-care', 'Mountain Care'],
[ 'hublot', 'Hublot' ]
]
}) }}
<b>Link:</b> {{ pimcore_link('link') }}
{% elseif not pimcore_link('link').empty and pimcore_select('brandImage').data %}
{% set brand = pimcore_select('brandImage').data %}
{% set trackingKey = 'click-footer-' ~ brand %}
{% set trackingData = {
"trigger": "click",
'datalayer': {
'event': 'click_footer',
'click_item': brand,
'click_url': pimcore_link('link').href,
'category': 'company_icons',
}
} %}
{% do jsConfig('_trackingData').add({
(trackingKey): trackingData
}) %}
<a href="{{ pimcore_link('link').href }}" class="footer-brands__brand" target="_blank" data-event-tracking-key="{{ trackingKey }}">
<img src="{{ elements_cache_buster(elements_staticFolder() ~ '/img/footer/' ~ brand ~ '.svg') }}"
alt="{{ ('footer.brand.' ~ brand ~ '.alt')|trans }}" class="footer-brands__brand-img"
>
</a>
{% endif %}
{% endfor %}
</div>
</div>
<div class="col-md-2 justify-content-end d-flex align-items-center">
{% if editmode %}<b>Partner Link:</b>{% endif %}
{{ pimcore_link('partnerLink', { 'class': 'footer-brands__partner-link' }) }}
</div>
</div>
</div>
</div>