custom/plugins/econdCrossSelll/src/Resources/views/storefront/block/cms-block-image.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/block/cms-block-image.html.twig" %}
  2. {% block block_image %}
  3.     {% set element = block.slots.getSlot('image') %}
  4.     {% set columns = 1 %}
  5.     {% if(element.type == 'econda-cross-sell') %}
  6.         {% set cs_config = element.config|json_encode() %}
  7.         <div class="col-12" id="ec-{{ element.id }}" data-element-id="{{ element.id }}" data-element-type="{{ element.type }}" data-widget-id="{{ element.config.widgetId.value }}" data-cross-sell-instance="{{ ECS['econdCrossSelll.config.clientId'] }}" data-csConfig="{{ cs_config }}" data-category="{{ categories|json_encode }}" data-econda-cross-sell>
  8.     {% else %}
  9.         <div class="col-12" data-cms-element-id="{{ element.id }}">
  10.     {% endif %}
  11.         {% block block_image_inner %}
  12.             {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
  13.         {% endblock %}
  14.     </div>
  15. {% endblock %}