custom/static-plugins/relewise/src/Resources/views/storefront/component/relewise/relewise-product-slider-init.html.twig line 1

Open in your IDE?
  1. {% block wexo_relewise_product_slider_init %}
  2.     {% set config = {
  3.         categoryId: categoryId,
  4.         productId: productId,
  5.         csrfToken: sw_csrf('frontend.relewise.recommendations.slider', {"mode": "token"}),
  6.         relewiseSliderOptions: {
  7.             slider: {
  8.                 mouseDrag: true
  9.             }
  10.         }
  11.     } %}
  12.     {% if sliderConfig %}
  13.         {% set config = config|replace_recursive(sliderConfig) %}
  14.     {% endif %}
  15.     <div style="min-height: 250px; margin: auto;" class="relewise-slider-container"
  16.          data-relewise-slider-container="true"
  17.          data-relewise-slider-options='{{ config|json_encode }}'></div>
  18. {% endblock %}