{# /** * @file views-bootstrap-grid.html.twig * Default simple view template to display Bootstrap Grids. * * * - 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, ] %}
{% 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 %}