You are here

drupal-slider-views-style.html.twig in Drupal Slider 8

Same filename and directory in other branches
  1. 8.2 templates/drupal-slider-views-style.html.twig
{{attached}}
<div class="slider-pro" id="{{id}}">	
	<div class="sp-slides">{{ rows }}</div>
	{% if rows.0['#view'].style_plugin.render_tokens.0['{{ drupal_slider_thumbnails }}']|render|striptags is not empty %}
		<div class="sp-thumbnails">
			{% for row in rows %}
			{% set img = row['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ drupal_slider_thumbnails }}']|render|striptags %}
				<img class="sp-thumbnail" src="{{ img }}"/>
			{% endfor %}
		</div>	
	{% endif %}
</div>

File

templates/drupal-slider-views-style.html.twig
View source
  1. {{attached}}
  2. <div class="slider-pro" id="{{id}}">
  3. <div class="sp-slides">{{ rows }}</div>
  4. {% if rows.0['#view'].style_plugin.render_tokens.0['{{ drupal_slider_thumbnails }}']|render|striptags is not empty %}
  5. <div class="sp-thumbnails">
  6. {% for row in rows %}
  7. {% set img = row['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ drupal_slider_thumbnails }}']|render|striptags %}
  8. <img class="sp-thumbnail" src="{{ img }}"/>
  9. {% endfor %}
  10. </div>
  11. {% endif %}
  12. </div>