views-view-jcarousel.html.twig in jCarousel 8.5
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.
- rows: The rendered rows.
See also
File
templates/views-view-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.
- * - rows: 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>