jcarousel.html.twig in jCarousel 8.4
Same filename and directory in other branches
View template to display a list as a carousel.
Available variables
- attributes: A list of HTML attributes for the wrapper element.
- items: The rendered rows.
See also
2 theme calls to jcarousel.html.twig
- JCarouselFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ JCarouselFormatter.php - Builds a renderable array for a field value.
- _jcarousel_help_render_gen in ./
jcarousel.module - Builds carousel from image URLs.
File
templates/jcarousel.html.twigView source
- {#
- /**
- * @file
- * View template to display a list as a carousel.
- *
- * Available variables
- * - attributes: A list of HTML attributes for the wrapper element.
- * - items: The rendered rows.
- *
- * @see template_preprocess_jcarousel_view()
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes_wrapper }}>
- {% if options.navigation == 'before' %}
- <a{{ attributes_previous }} href="#"></a>
- <a{{ attributes_next }} href="#"></a>
- {% endif %}
- <div{{ attributes }}>
- <ul{{ attributes_content }}>
- {% for key,row in items %}
- <li{{ attributes_row[key] }}>
- {{ row }}
- </li>
- {% endfor %}
- </ul>
- </div>
- {% if options.navigation == 'after' %}
- <a{{ attributes_previous }} href="#"></a>
- <a{{ attributes_next }} href="#"></a>
- {% endif %}
- </div>