{# /** * @file * Default theme implementation to display a Bootstrap Carousel component. * * Available variables: * - attributes: An array of HTML attributes intended to be added to the main * container tag of this template. * - id: A valid HTML ID and guaranteed to be unique. * - controls: Flag indicating whether or not to show the carousel controls. * - indicators: Flag indicating whether or not to show the carousel indicators. * - interval: The amount of time to delay between automatically cycling a * slide item. If false, carousel will not automatically cycle. * - pause: (optional) Pauses the cycling of the carousel on mouseenter and * resumes the cycling of the carousel on mouseleave. * - slides: A list of carousel slide items containing: * - image: (required) The image to display in the slide item. * - attributes: (optional) An array of HTML attributes intended to be added * to the slide item. * - title: (optional) A title to display for the slide item. * - description: (optional) Additional helpful text to display for a slide * item. * - start_index: (optional) Alters the slide position relative to its current * position. * - wrap: (optional) Whether the carousel should cycle continuously or have * hard stops. * * @ingroup templates */ #} {% set classes = ['carousel', 'slide'] %} {% if indicators %} {{ indicators }} {% endif %} {% endfor %} {% if controls %} {{ controls.left }} {{ controls.right }} {% endif %}