custom/plugins/SMTheme/src/Resources/views/storefront/block/cms-block-gallery-buybox.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}
  2. {% block block_gallery_buybox %}
  3.     {% block block_gallery_buybox_column_left %}
  4.         {% set element = block.slots.getSlot('left') %}
  5.         {% set config = element.fieldConfig.elements %}
  6.         {% if sectionClasses.0 == "tickets" %}
  7.                 {% set col = "12" %}
  8.         {% elseif page.product.cmsPage.name == "Kindergeburtstag" %}
  9.                 {% set col = "6" %}
  10.         {% else %}
  11.                 {% set col = "7" %}
  12.         {% endif %}
  13.         <div class="col-lg-{{ col }} product-detail-media" data-cms-element-id="{{ element.id }}">
  14.             {% block block_gallery_buybox_column_left_inner %}
  15.                 {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing
  16.                     with {
  17.                     'isProduct': config.sliderItems.value == 'product.media' and config.sliderItems.source == 'mapped',
  18.                     'startIndexThumbnails': page.product.cover.position + 1,
  19.                 } %}
  20.             {% endblock %}
  21.         </div>
  22.     {% endblock %}
  23.     {% block block_gallery_buybox_column_right %}
  24.         {% set element = block.slots.getSlot('right') %}
  25.         {% if sectionClasses.0 == "tickets" %}
  26.                 {% set col = "12" %}
  27.         {% elseif page.product.cmsPage.name == "Kindergeburtstag" %}
  28.                 {% set col = "6" %}
  29.         {% else %}
  30.                 {% set col = "5" %}
  31.         {% endif %}
  32.         <div class="col-lg-{{ col }} product-detail-buy" data-cms-element-id="{{ element.id }}">
  33.             {% block block_gallery_buybox_column_right_inner %}
  34.                 {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
  35.             {% endblock %}
  36.         </div>
  37.     {% endblock %}
  38. {% endblock %}