{% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}

{% block block_gallery_buybox_column_left_inner %}
    {{ parent() }}
    
    {% if page.product.extensions.awardMedia|length %}
        <div class="awards">
            {% for awardMedia in page.product.extensions.awardMedia.all() %}
                <a href="https://www.wg-schriesheim.de/auszeichnungen"
                   title="{{ name }}" target="_blank">
                    {% sw_thumbnails 'awardMedia' with {
                        media: awardMedia|first,
                        sizes: {
                            'xs': '501px',
                            'sm': '315px',
                            'md': '427px',
                            'lg': '333px',
                            'xl': '284px',
                            'default': '100px'
                        },
                        attributes: {
                            'title': awardMedia|first.title
                        }
                    } %}
                </a>
            {% endfor %}
        </div>
    {% endif %}
{% endblock %}
