custom/plugins/TraumPlugin/src/Resources/views/storefront/element/cms-element-image-slider.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-image-slider.html.twig' %}
  2. {% block element_image_slider %}
  3.     {%  set sliderConfig = element.fieldConfig.elements %}
  4.     <div class="cms-element-{{ element.type }}{% if sliderConfig.displayMode.value == "standard" and sliderConfig.verticalAlign.value %} has-vertical-alignment{% endif %}">
  5.         {% set baseSliderOptions = {
  6.             slider: {
  7.                 navPosition: 'bottom',
  8.                 speed: 500,
  9.                 autoplay: true,
  10.                 autoplayButtonOutput: false,
  11.                 nav: sliderConfig.navigationDots.value ? true : false,
  12.                 controls: sliderConfig.navigationArrows.value ? true : false,
  13.                 autoHeight: (sliderConfig.displayMode.value == "standard") ? true : false
  14.             }
  15.         } %}
  16.         {% block element_image_slider_alignment %}
  17.             {{ parent() }}
  18.         {% endblock %}
  19.     </div>
  20. {% endblock %}