{# /** * @file views-bootstrap-thumbnail.html.twig * Default simple view template to display Bootstrap Thumbnails. * * * - columns: Contains rows grouped by columns. * - rows: Contains a nested array of rows. Each row contains an array of * columns. * - column_type: Contains a number (default Bootstrap grid system column type). * * @ingroup views_templates */ #} {% set classes = [ 'views-view-grid', options.alignment, ] %} {% set row_classes = [ 'row', ] %} {% set col_classes = [ 'col', col_xs, col_sm, col_md, col_lg, ] %} {% if title %}

{{ title }}

{% endif %}
{% if options.alignment == 'horizontal' %} {% for row in items %} {% for column in row.content %}
{{ column.content }}
{% endfor %} {% endfor %} {% else %} {% for column in items %} {% for row in column.content %}
{{ row.content }}
{% endfor %} {% if loop.index is divisible by (sizes.xs) %}
{% endif %} {% if loop.index is divisible by (sizes.sm) %}
{% endif %} {% if loop.index is divisible by (sizes.md) %}
{% endif %} {% if loop.index is divisible by (sizes.lg) %}
{% endif %} {% endfor %} {% endif %}