Same filename and directory in other branches
  1. 8.x-3.x templates/views-slideshow-slide-counter.html.twig 1 comment
  2. 8.x-4.x templates/views-slideshow-slide-counter.html.twig 1 comment

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.

See also

template_preprocess_views_slideshow_slide_counter()

1 theme call to views-slideshow-slide-counter.html.twig
template_preprocess_views_slideshow_slide_counter_widget in ./views_slideshow.theme.inc
Views Slideshow: Slide Counter.

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