Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default view template to display all the fields in a row. Chris@0: * Chris@0: * Available variables: Chris@0: * - view: The view in use. Chris@0: * - fields: A list of fields, each one contains: Chris@0: * - content: The output of the field. Chris@0: * - raw: The raw data for the field, if it exists. This is NOT output safe. Chris@0: * - class: The safe class ID to use. Chris@0: * - handler: The Views field handler controlling this field. Chris@0: * - inline: Whether or not the field should be inline. Chris@0: * - wrapper_element: An HTML element for a wrapper. Chris@0: * - wrapper_attributes: List of attributes for wrapper element. Chris@0: * - separator: An optional separator that may appear before a field. Chris@0: * - label: The field's label text. Chris@0: * - label_element: An HTML element for a label wrapper. Chris@0: * - label_attributes: List of attributes for label wrapper. Chris@0: * - label_suffix: Colon after the label. Chris@0: * - element_type: An HTML element for the field content. Chris@0: * - element_attributes: List of attributes for HTML element for field content. Chris@0: * - has_label_colon: A boolean indicating whether to display a colon after Chris@0: * the label. Chris@0: * - element_type: An HTML element for the field content. Chris@0: * - element_attributes: List of attributes for HTML element for field content. Chris@0: * - row: The raw result from the query, with all data it fetched. Chris@0: * Chris@0: * @see template_preprocess_views_view_fields() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% for field in fields -%} Chris@0: {{ field.separator }} Chris@0: {%- if field.wrapper_element -%} Chris@0: <{{ field.wrapper_element }}{{ field.wrapper_attributes }}> Chris@0: {%- endif %} Chris@0: {%- if field.label -%} Chris@0: {%- if field.label_element -%} Chris@0: <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }} Chris@0: {%- else -%} Chris@0: {{ field.label }}{{ field.label_suffix }} Chris@0: {%- endif %} Chris@0: {%- endif %} Chris@0: {%- if field.element_type -%} Chris@0: <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }} Chris@0: {%- else -%} Chris@0: {{ field.content }} Chris@0: {%- endif %} Chris@0: {%- if field.wrapper_element -%} Chris@0: Chris@0: {%- endif %} Chris@0: {%- endfor %}