You are here

flexslider-list-item.html.twig in Flex Slider 8.2

Default theme implementation for the individual Flexslider item/slide template.

Available variables:

  • attributes: An array of attributes to apply to the element.
  • item.slide: A renderable array of the main image/background.
  • item.caption: A renderable array containing caption fields if provided:
    • title: The individual slide title.
    • alt: The core Image field Alt as caption.
    • link: The slide links or buttons.
    • overlay: The image/audio/video overlay, or a nested slick.
    • data: any possible field for more complex data if crazy enough.
  • settings: An array containing the given settings.

File

templates/flexslider-list-item.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the individual Flexslider item/slide template.
  5. *
  6. * Available variables:
  7. * - attributes: An array of attributes to apply to the element.
  8. * - item.slide: A renderable array of the main image/background.
  9. * - item.caption: A renderable array containing caption fields if provided:
  10. * - title: The individual slide title.
  11. * - alt: The core Image field Alt as caption.
  12. * - link: The slide links or buttons.
  13. * - overlay: The image/audio/video overlay, or a nested slick.
  14. * - data: any possible field for more complex data if crazy enough.
  15. * - settings: An array containing the given settings.
  16. *
  17. * @see template_preprocess_flexslider_list_item()
  18. */
  19. #}
  20. <li{{ attributes }}>
  21. {{ item }}
  22. {% if caption %}
  23. <div class="flex-caption">{{ caption }}</div>
  24. {% endif %}
  25. </li>