custom/plugins/econdCrossSelll/src/Resources/views/storefront/element/cms-element-econda-cross-sell.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/element/cms-element-product-slider.html.twig" %}
  2. {% block element_product_slider %}
  3.     {% if not sliderConfig %}
  4.         {% set sliderConfig = element.fieldConfig.elements %}
  5.     {% endif %}
  6.     <div class="base-slider product-slider data-product-slider=true cms-element-{% if element.type == null %}{{element}}{% else %}{{element.type}}{% endif %} {% if sliderConfig.displayMode.value == "standard" and sliderConfig.verticalAlign.value %} has-vertical-alignment{% endif %} data-econda-cross-sell">
  7.         {% block element_product_slider_alignment %}
  8.             {% if config.verticalAlign.value %}
  9.                 <div class="cms-element-alignment{% if sliderConfig.verticalAlign.value == "center" %} align-self-center{% elseif sliderConfig.verticalAlign.value == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  10.             {% endif %}
  11.             <div class="econda-slider base-slider product-slider{% if sliderConfig.border.value %} has-border{% endif %}{% if sliderConfig.navigation.value %} has-nav{% endif %}" style="overflow: hidden; padding-left: 22px"
  12.                  data-product-slider="true"
  13.                  data-product-slider-options='{
  14.                         {% if sliderConfig.elMinWidth.value %}"productboxMinWidth": "{{ sliderConfig.elMinWidth.value }}",{% endif %}
  15.                         "slider": {
  16.                             "gutter": 30,
  17.                             "autoplayButtonOutput": false,
  18.                             "nav": false,
  19.                             "controls": {% if sliderConfig.navigation.value %}true{% else %}false{% endif %},
  20.                             {% if not sliderConfig.navigation.value %}"mouseDrag": true,{% endif %}
  21.                             "autoplay": {% if sliderConfig.rotate.value %}true{% else %}false{% endif %}
  22.                         }
  23.                      }'>
  24.                 {% block element_product_slider_title %}
  25.                     {% if sliderConfig.ecTitle.value %}
  26.                         <div class="cms-element-title">
  27.                             <h2 class="cms-element-title-paragraph">{{ cs_response.widgetDetails.title }}</h2>
  28.                         </div>
  29.                     {% else %}
  30.                         <div class="cms-element-title">
  31.                             <h2 class="cms-element-title-paragraph">{{ sliderConfig.title.value }}</h2>
  32.                         </div>
  33.                     {% endif %}
  34.                 {% endblock %}
  35.                 {% block element_product_slider_inner %}
  36.                     {% block element_product_slider_element %}
  37.                         <div class="product-econda-container"
  38.                              data-product-slider-container="true">
  39.                             {% for product in cs_response.products %}
  40.                                 {% block element_product_slider_inner_item %}
  41.                                     <div class="product-econda-item">
  42.                                         {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  43.                                             'layout': sliderConfig.boxLayout.value,
  44.                                             'displayMode': sliderConfig.displayMode.value
  45.                                         } %}
  46.                                     </div>
  47.                                 {% endblock %}
  48.                             {% endfor %}
  49.                         </div>
  50.                     {% endblock %}
  51.                     {% block element_product_slider_controls %}
  52.                         {% if sliderConfig.navigation.value %}
  53.                             <div class="product-slider-controls-container">
  54.                                 <div class="base-slider-controls"
  55.                                      data-product-slider-controls="true">
  56.                                     {% block element_product_slider_controls_items %}
  57.                                         <button class="ec-prev base-slider-controls-prev product-slider-controls-prev{% if sliderConfig.border.value %} has-border{% endif %}">
  58.                                             {% block element_product_slider_controls_items_prev_icon %}
  59.                                                 {% sw_icon 'arrow-head-left' %}
  60.                                             {% endblock %}
  61.                                         </button>
  62.                                         <button class="ec-next base-slider-controls-next product-slider-controls-next{% if sliderConfig.border.value %} has-border{% endif %}">
  63.                                             {% block element_product_slider_controls_items_next_icon %}
  64.                                                 {% sw_icon 'arrow-head-right' %}
  65.                                             {% endblock %}
  66.                                         </button>
  67.                                     {% endblock %}
  68.                                 </div>
  69.                             </div>
  70.                         {% endif %}
  71.                     {% endblock %}
  72.                 {% endblock %}
  73.             </div>
  74.             {% if config.verticalAlign.value %}
  75.                 </div>
  76.             {% endif %}
  77.         {% endblock %}
  78.     </div>
  79. {% endblock %}