{# render footer-template #}
{% if editmode %}
{% do pimcore_placeholder('magazine').set('true') %}
{{ include('Layout/includes/css.html.twig') }}
{% endif %}
{% if editmode %}
<div class="editmode-box editmode-box--info">
<div class="editmode-box__header">Settings</div>
<div>
<label>
Social Icon
</label>
<br>
{{ pimcore_select('socialMedia', {'store': getSocialIcons(), 'reload': true}) }}
</div>
<div>
<label>
Image (optional)
</label>
{{ pimcore_relation('image', {'types': ['asset'], 'subtypes': ['image'], 'reload': true}) }}
</div>
</div> {# end editmode box #}
{% endif %}
{% if editmode %}
<div class="vertical-gutter__item col-md-4 js-fade-in" style="height: 530px;">
{% endif %}
<section class="social-media-teaser {{ styleModifier | default(null) }} {{ not pimcore_link('button').isEmpty() ? 'stretch-link isCursor' : '' }}">
{% if not editmode %}
{% do jsConfig().add('goToLink', true) %}
{% do jsConfig().add('lazyImg', true) %}
{% endif %}
<div class="embed-responsive embed-responsive-cover social-media-teaser__embed">
{% if not pimcore_relation('image').empty %}
{{ pimcore_relation('image').element.thumbnail('social-media-teaser').html({
imgAttributes: {
class: 'embed-responsive-item js-lazy-img social-media-teaser__img'
},
lowQualityPlaceholder: true,
}) | raw }}
{% endif %}
</div>
<div class="social-media-teaser__body">
{# available Social-Media-Icons instagram, facebook, pinterest, youtube #}
<span class="social-media-teaser__icon icon icon-{{ pimcore_select('socialMedia').getData() }}" aria-label="{{ pimcore_select('socialMedia').getData() }}" title="{{ pimcore_select('socialMedia').getData() }}"></span>
<h3 class="social-media-teaser__title">
{{ pimcore_link('button', {'class': 'stretch-link__link'}) }}
</h3>
</div>
</section>
{% if editmode %}
</div>
{% endif %}