4 * Theme override for an item list.
7 * - attributes: HTML attributes to be applied to the list.
8 * - items: A list of items. Each item contains:
9 * - attributes: HTML attributes to be applied to each list item.
10 * - list_type: The tag for list element ("ul" or "ol").
11 * - start_index: (optional) Alters the slide position relative to its current
13 * - target: A valid HTML ID for the carousel container.
17 * @see template_preprocess_item_list()
20 {% set classes = ['carousel-indicators'] %}
22 <{{ list_type }}{{ attributes.addClass(classes) }} role="menu">
23 {% for item in items %}
24 {% set item_classes = [start_index == loop.index0 ? 'active'] %}
25 <li{{ item.attributes.addClass(item_classes) }} data-target="{{ target }}" data-slide-to="{{ loop.index0 }}"></li>