4 * Default theme implementation for views to display rows in a responsive grid.
7 * - attributes: HTML attributes for the wrapping div element.
8 * - title: The title of this group of rows.
9 * - view: The view object.
10 * - rows: The rendered view results array.
11 * - options: The view plugin style options.
12 * - items: Contains a nested array of grid items. The structure of this array
13 * - depends on the value of options.alignment.
14 * - row_attributes: HTML attributes for each grid row. The structure of this
15 * array depends on the value of options.alignment.
16 * - col_attributes: HTML attributes for each grid column. The structure of this
17 * array depends on the value of options.alignment.
19 * @see template_process_views_view_responsive_grid()
22 * @ingroup views_templates
29 {% if options.alignment == 'horizontal' %}
30 {% for row_key, row in items %}
31 <div{{ row_attributes[row_key] }}>
32 {% for col_key, col in row %}
33 <div{{ col_attributes[row_key][col_key] }}>
34 {{ items[row_key][col_key] }}
40 {% for col_key, column in items %}
41 <div{{ col_attributes[col_key] }}>
42 {% for row_key, row in column %}
43 <div{{ row_attributes[col_key][row_key] }}>
44 {{ items[col_key][row_key] }}