{% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}
{% block block_gallery_buybox %}
{% block block_gallery_buybox_column_left %}
{% set element = block.slots.getSlot('left') %}
{% set config = element.fieldConfig.elements %}
{% if sectionClasses.0 == "tickets" %}
{% set col = "12" %}
{% elseif page.product.cmsPage.name == "Kindergeburtstag" %}
{% set col = "6" %}
{% else %}
{% set col = "7" %}
{% endif %}
<div class="col-lg-{{ col }} product-detail-media" data-cms-element-id="{{ element.id }}">
{% block block_gallery_buybox_column_left_inner %}
{% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing
with {
'isProduct': config.sliderItems.value == 'product.media' and config.sliderItems.source == 'mapped',
'startIndexThumbnails': page.product.cover.position + 1,
} %}
{% endblock %}
</div>
{% endblock %}
{% block block_gallery_buybox_column_right %}
{% set element = block.slots.getSlot('right') %}
{% if sectionClasses.0 == "tickets" %}
{% set col = "12" %}
{% elseif page.product.cmsPage.name == "Kindergeburtstag" %}
{% set col = "6" %}
{% else %}
{% set col = "5" %}
{% endif %}
<div class="col-lg-{{ col }} product-detail-buy" data-cms-element-id="{{ element.id }}">
{% block block_gallery_buybox_column_right_inner %}
{% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
{% endblock %}
</div>
{% endblock %}
{% endblock %}