You are here

images-jssor-formatter.html.twig in Jssor Slider 8

Available variables:

  • attributes: HTML attributes for the containing element.
  • children: The rendered child elements of the container.
  • arrownavigator: Weither or not use arrows navigator.
  • bulletnavigator: Weither or not use bullets navigator.

File

templates/images-jssor-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. *
  5. * Available variables:
  6. * - attributes: HTML attributes for the containing element.
  7. * - children: The rendered child elements of the container.
  8. * - arrownavigator: Weither or not use arrows navigator.
  9. * - bulletnavigator: Weither or not use bullets navigator.
  10. *
  11. * @see template_preprocess_images_jssor_formatter()
  12. */
  13. #}
  14. <div {{ attributes.addClass(classes) }} style="position: relative; margin: 0 auto; top: 0; left: 0; width: 1300px; height: 600px; overflow: hidden;">
  15. <!-- Slides Container -->
  16. <div data-u="slides" style="cursor: move; position: absolute; left: 0; top: 0; width: 1300px; height: 600px; overflow: hidden;">
  17. {{ children }}
  18. </div>
  19. {% if arrownavigator %}
  20. <!-- Arrows navigator -->
  21. <span data-u="arrowleft" class="jssora01l"></span>
  22. <span data-u="arrowright" class="jssora01r"></span>
  23. {% endif %}
  24. {% if bulletnavigator %}
  25. <!-- Bullets navigator -->
  26. <div u="navigator" class="jssorb01" style="position: absolute; bottom: 16px; right: 6px;">
  27. <div u="prototype" style="position: absolute; width: 16px; height: 16px;"></div>
  28. </div>
  29. {% endif %}
  30. </div>