custom/plugins/SwagCmsExtensions/src/Resources/views/storefront/section/quickview/component.html.twig line 1

Open in your IDE?
  1. {% block page_content_section_quickview %}
  2.     {% set quickview = false %}
  3.     {{ sw_icon_cache_disable() }}
  4.     {% set arrowHeadLeft %}
  5.         {% sw_icon 'arrow-head-left' style { 'color': 'white' } %}
  6.     {% endset %}
  7.     {% set arrowHeadRight %}
  8.         {% sw_icon 'arrow-head-right' style { 'color': 'white' } %}
  9.     {% endset %}
  10.     {{ sw_icon_cache_enable() }}
  11.     {% for block in section.blocks %}
  12.         {% if block.extensions.swagCmsExtensionsQuickview is not null and block.extensions.swagCmsExtensionsQuickview.active %}
  13.             {% set quickview = true %}
  14.         {% endif %}
  15.     {% endfor %}
  16.     {% set quickviewOptions = {
  17.         sectionId: section.id,
  18.         arrowHeadLeft: arrowHeadLeft,
  19.         arrowHeadRight: arrowHeadRight
  20.     } %}
  21.     {% block page_content_section_quickview_modal %}
  22.         {% if quickview %}
  23.             <div class="d-none"
  24.                  data-swag-cms-extensions-quickview="true"
  25.                  data-swag-cms-extensions-quickview-options="{{ quickviewOptions|json_encode }}">
  26.             </div>
  27.         {% endif %}
  28.     {% endblock %}
  29. {% endblock %}