Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Default view template to display all the fields in a row.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Available variables:
|
Chris@0
|
7 * - view: The view in use.
|
Chris@0
|
8 * - fields: A list of fields, each one contains:
|
Chris@0
|
9 * - content: The output of the field.
|
Chris@0
|
10 * - raw: The raw data for the field, if it exists. This is NOT output safe.
|
Chris@0
|
11 * - class: The safe class ID to use.
|
Chris@0
|
12 * - handler: The Views field handler controlling this field.
|
Chris@0
|
13 * - inline: Whether or not the field should be inline.
|
Chris@0
|
14 * - wrapper_element: An HTML element for a wrapper.
|
Chris@0
|
15 * - wrapper_attributes: List of attributes for wrapper element.
|
Chris@0
|
16 * - separator: An optional separator that may appear before a field.
|
Chris@0
|
17 * - label: The field's label text.
|
Chris@0
|
18 * - label_element: An HTML element for a label wrapper.
|
Chris@0
|
19 * - label_attributes: List of attributes for label wrapper.
|
Chris@0
|
20 * - label_suffix: Colon after the label.
|
Chris@0
|
21 * - element_type: An HTML element for the field content.
|
Chris@0
|
22 * - element_attributes: List of attributes for HTML element for field content.
|
Chris@0
|
23 * - has_label_colon: A boolean indicating whether to display a colon after
|
Chris@0
|
24 * the label.
|
Chris@0
|
25 * - element_type: An HTML element for the field content.
|
Chris@0
|
26 * - element_attributes: List of attributes for HTML element for field content.
|
Chris@0
|
27 * - row: The raw result from the query, with all data it fetched.
|
Chris@0
|
28 *
|
Chris@0
|
29 * @see template_preprocess_views_view_fields()
|
Chris@0
|
30 *
|
Chris@0
|
31 * @ingroup themeable
|
Chris@0
|
32 */
|
Chris@0
|
33 #}
|
Chris@0
|
34 {% for field in fields -%}
|
Chris@0
|
35 {{ field.separator }}
|
Chris@0
|
36 {%- if field.wrapper_element -%}
|
Chris@0
|
37 <{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
|
Chris@0
|
38 {%- endif %}
|
Chris@0
|
39 {%- if field.label -%}
|
Chris@0
|
40 {%- if field.label_element -%}
|
Chris@0
|
41 <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{ field.label_element }}>
|
Chris@0
|
42 {%- else -%}
|
Chris@0
|
43 {{ field.label }}{{ field.label_suffix }}
|
Chris@0
|
44 {%- endif %}
|
Chris@0
|
45 {%- endif %}
|
Chris@0
|
46 {%- if field.element_type -%}
|
Chris@0
|
47 <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}>
|
Chris@0
|
48 {%- else -%}
|
Chris@0
|
49 {{ field.content }}
|
Chris@0
|
50 {%- endif %}
|
Chris@0
|
51 {%- if field.wrapper_element -%}
|
Chris@0
|
52 </{{ field.wrapper_element }}>
|
Chris@0
|
53 {%- endif %}
|
Chris@0
|
54 {%- endfor %}
|