Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Default theme implementation for main view template.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - attributes: Remaining HTML attributes for the element.
|
Chris@0
|
8 * - css_name: A css-safe version of the view name.
|
Chris@0
|
9 * - css_class: The user-specified classes names, if any.
|
Chris@0
|
10 * - header: The optional header.
|
Chris@0
|
11 * - footer: The optional footer.
|
Chris@0
|
12 * - rows: The results of the view query, if any.
|
Chris@0
|
13 * - empty: The content to display if there are no rows.
|
Chris@0
|
14 * - pager: The optional pager next/prev links to display.
|
Chris@0
|
15 * - exposed: Exposed widget form/info to display.
|
Chris@0
|
16 * - feed_icons: Optional feed icons to display.
|
Chris@0
|
17 * - more: An optional link to the next page of results.
|
Chris@0
|
18 * - title: Title of the view, only used when displaying in the admin preview.
|
Chris@0
|
19 * - title_prefix: Additional output populated by modules, intended to be
|
Chris@0
|
20 * displayed in front of the view title.
|
Chris@0
|
21 * - title_suffix: Additional output populated by modules, intended to be
|
Chris@0
|
22 * displayed after the view title.
|
Chris@0
|
23 * - attachment_before: An optional attachment view to be displayed before the
|
Chris@0
|
24 * view content.
|
Chris@0
|
25 * - attachment_after: An optional attachment view to be displayed after the
|
Chris@0
|
26 * view content.
|
Chris@0
|
27 * - dom_id: Unique id for every view being printed to give unique class for
|
Chris@0
|
28 * Javascript.
|
Chris@0
|
29 *
|
Chris@0
|
30 * @see template_preprocess_views_view()
|
Chris@0
|
31 *
|
Chris@0
|
32 * @ingroup themeable
|
Chris@0
|
33 */
|
Chris@0
|
34 #}
|
Chris@0
|
35 {%
|
Chris@0
|
36 set classes = [
|
Chris@0
|
37 dom_id ? 'js-view-dom-id-' ~ dom_id,
|
Chris@0
|
38 ]
|
Chris@0
|
39 %}
|
Chris@0
|
40 <div{{ attributes.addClass(classes) }}>
|
Chris@0
|
41 {{ title_prefix }}
|
Chris@0
|
42 {{ title }}
|
Chris@0
|
43 {{ title_suffix }}
|
Chris@0
|
44
|
Chris@0
|
45 {% if header %}
|
Chris@0
|
46 <header>
|
Chris@0
|
47 {{ header }}
|
Chris@0
|
48 </header>
|
Chris@0
|
49 {% endif %}
|
Chris@0
|
50
|
Chris@0
|
51 {{ exposed }}
|
Chris@0
|
52 {{ attachment_before }}
|
Chris@0
|
53
|
Chris@18
|
54 {% if rows -%}
|
Chris@18
|
55 {{ rows }}
|
Chris@18
|
56 {% elseif empty -%}
|
Chris@18
|
57 {{ empty }}
|
Chris@18
|
58 {% endif %}
|
Chris@0
|
59 {{ pager }}
|
Chris@0
|
60
|
Chris@0
|
61 {{ attachment_after }}
|
Chris@0
|
62 {{ more }}
|
Chris@0
|
63
|
Chris@0
|
64 {% if footer %}
|
Chris@0
|
65 <footer>
|
Chris@0
|
66 {{ footer }}
|
Chris@0
|
67 </footer>
|
Chris@0
|
68 {% endif %}
|
Chris@0
|
69
|
Chris@0
|
70 {{ feed_icons }}
|
Chris@0
|
71 </div>
|