semanticviews-row.html.twig in Semantic Views 8.2        
                          
                  
                        
  
  {#
 * @file
 * Default simple view template to display all the fields as a row. The template
 * outputs a full row by looping through the $fields array, printing the field's
 * HTML element (as configured in the UI) and the class attributes. If a label
 * is specified for the field, it is printed wrapped in a <label> element with
 * the same class attributes as the field's HTML element.
 *
 * - $view: The view in use.
 * - $fields: an array of $field objects. Each one contains:
 *   - $field.content: The output of the field.
 *   - $field.raw: The raw data for the field, if it exists. This is NOT output
 *     safe.
 *   - $field.element_type: The HTML element wrapping the field content and
 *     label.
 *   - $field.attributes: An array of attributes for the field wrapper.
 *   - $field.handler: The Views field handler object controlling this field.
 *     Do not use var_export to dump this object, as it can't handle the
 *     recursion.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @see template_preprocess_semanticviews_view_fields()
 * @ingroup views_templates
 * @todo Justify this template. Excluding the PHP, this template outputs angle
 * brackets, the label element, slashes and whitespace.
#}
{% for field in fields %}
  {% if field.element_type %}
    <{{ field.element_type }} {{ field.attributes }}>
  {% endif %}
    {% if field.label %}
      {% if field.label_element_type %}
        <{{ field.label_element_type }} {{ field.label_attributes }}>
      {% endif %}
          {{ field.label }}{{ field.label_colon }}
      {% if field.label_element_type %}
        </{{ field.label_element_type }}>
      {% endif %}
    {% endif %}
      {{ field.content }}
  {% if field.element_type %}
    </{{ field.element_type }}>
  {% endif %}
{% endfor %}
 
  
  
File
  templates/semanticviews-row.html.twig
  
    View source  
  - {#
-  * @file
-  * Default simple view template to display all the fields as a row. The template
-  * outputs a full row by looping through the $fields array, printing the field's
-  * HTML element (as configured in the UI) and the class attributes. If a label
-  * is specified for the field, it is printed wrapped in a <label> element with
-  * the same class attributes as the field's HTML element.
-  *
-  * - $view: The view in use.
-  * - $fields: an array of $field objects. Each one contains:
-  *   - $field.content: The output of the field.
-  *   - $field.raw: The raw data for the field, if it exists. This is NOT output
-  *     safe.
-  *   - $field.element_type: The HTML element wrapping the field content and
-  *     label.
-  *   - $field.attributes: An array of attributes for the field wrapper.
-  *   - $field.handler: The Views field handler object controlling this field.
-  *     Do not use var_export to dump this object, as it can't handle the
-  *     recursion.
-  * - $row: The raw result object from the query, with all data it fetched.
-  *
-  * @see template_preprocess_semanticviews_view_fields()
-  * @ingroup views_templates
-  * @todo Justify this template. Excluding the PHP, this template outputs angle
-  * brackets, the label element, slashes and whitespace.
- #}
- {% for field in fields %}
- 
-   {% if field.element_type %}
-     <{{ field.element_type }} {{ field.attributes }}>
-   {% endif %}
- 
-     {% if field.label %}
- 
-       {% if field.label_element_type %}
-         <{{ field.label_element_type }} {{ field.label_attributes }}>
-       {% endif %}
- 
-           {{ field.label }}{{ field.label_colon }}
- 
-       {% if field.label_element_type %}
-         </{{ field.label_element_type }}>
-       {% endif %}
- 
-     {% endif %}
- 
-       {{ field.content }}
- 
-   {% if field.element_type %}
-     </{{ field.element_type }}>
-   {% endif %}
- 
- {% endfor %}