You are here

views-slideshow-slide-counter.html.twig in Views Slideshow 8.4

Same filename and directory in other branches
  1. 8.3 templates/views-slideshow-slide-counter.html.twig

Default theme implementation for a views slideshow slide counter.

Available variables:

  • classes: Classes to apply to the counter's div element.
  • slide_count: Total number of slides.
  • vss_id: The slideshow's id.

File

templates/views-slideshow-slide-counter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a views slideshow slide counter.
  5. *
  6. * Available variables:
  7. * - classes: Classes to apply to the counter's div element.
  8. * - slide_count: Total number of slides.
  9. * - vss_id: The slideshow's id.
  10. *
  11. * @see template_preprocess_views_slideshow_slide_counter()
  12. *
  13. * @ingroup vss_templates
  14. */
  15. #}
  16. <div id="views_slideshow_slide_counter_{{ vss_id }}" {{ attributes.addClass(classes) }}>
  17. <span class="num">1</span> {{ 'of'|t }} <span class="total">{{ slide_count }}</span>
  18. </div>

Related topics