slick-vanilla.html.twig in Slick Carousel 8.2
Same filename and directory in other branches
Default theme implementation for the slick-vanilla item template.
This is a vanilla alternative for slick-slide.html.twig where everything is dumped as is into 'item'. Think of it as a raw individual item output. Choosing vanilla means you are on your own, and want a more controlled item.
Available variables:
- attributes: An array of attributes to apply to the element.
- item: A renderable array of the slide content.
- settings: An array containing the given settings.
See also
1 theme call to slick-vanilla.html.twig
- template_preprocess_slick_grid in templates/
slick.theme.inc - Prepares variables for slick-grid.html.twig templates.
File
templates/slick-vanilla.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the slick-vanilla item template.
- *
- * This is a vanilla alternative for slick-slide.html.twig where everything is
- * dumped as is into 'item'. Think of it as a raw individual item output.
- * Choosing vanilla means you are on your own, and want a more controlled item.
- *
- * Available variables:
- * - attributes: An array of attributes to apply to the element.
- * - item: A renderable array of the slide content.
- * - settings: An array containing the given settings.
- *
- * @see template_preprocess_slick_vanilla()
- */
- #}
- {%
- set classes = [
- 'slick__slide',
- 'slide',
- 'slide--' ~ delta
- ]
- %}
- {% block slick_vanilla %}
- <div{{ attributes.addClass(classes) }}>
- {{ item }}
- </div>
- {% endblock %}