views-view-fields--wholiked.html.twig in Open Social 8
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.2 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.3 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.4 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.5 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.6 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.7 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
- 8.8 themes/socialbase/templates/views/views-view-fields--wholiked.html.twig
Default view template to display all the fields in a row.
Available variables:
- view: The view in use.
- fields: A list of fields, each one contains:
- content: The output of the field.
- raw: The raw data for the field, if it exists. This is NOT output safe.
- class: The safe class ID to use.
- handler: The Views field handler controlling this field.
- inline: Whether or not the field should be inline.
- wrapper_element: An HTML element for a wrapper.
- wrapper_attributes: List of attributes for wrapper element.
- separator: An optional separator that may appear before a field.
- label: The field's label text.
- label_element: An HTML element for a label wrapper.
- label_attributes: List of attributes for label wrapper.
- label_suffix: Colon after the label.
- element_type: An HTML element for the field content.
- element_attributes: List of attributes for HTML element for field content.
- has_label_colon: A boolean indicating whether to display a colon after the label.
- element_type: An HTML element for the field content.
- element_attributes: List of attributes for HTML element for field content.
- row: The raw result from the query, with all data it fetched.
See also
File
themes/socialbase/templates/views/views-view-fields--wholiked.html.twigView source
- {#
- /**
- * @file
- * Default view template to display all the fields in a row.
- *
- * Available variables:
- * - view: The view in use.
- * - fields: A list of fields, each one contains:
- * - content: The output of the field.
- * - raw: The raw data for the field, if it exists. This is NOT output safe.
- * - class: The safe class ID to use.
- * - handler: The Views field handler controlling this field.
- * - inline: Whether or not the field should be inline.
- * - wrapper_element: An HTML element for a wrapper.
- * - wrapper_attributes: List of attributes for wrapper element.
- * - separator: An optional separator that may appear before a field.
- * - label: The field's label text.
- * - label_element: An HTML element for a label wrapper.
- * - label_attributes: List of attributes for label wrapper.
- * - label_suffix: Colon after the label.
- * - element_type: An HTML element for the field content.
- * - element_attributes: List of attributes for HTML element for field content.
- * - has_label_colon: A boolean indicating whether to display a colon after
- * the label.
- * - element_type: An HTML element for the field content.
- * - element_attributes: List of attributes for HTML element for field content.
- * - row: The raw result from the query, with all data it fetched.
- *
- * @see template_preprocess_views_view_fields()
- *
- * @ingroup themeable
- */
- #}
- <div class="row">
- {% for field in fields -%}
- {%- if field.wrapper_element -%}
- <{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
- {%- endif %}
- {{ field.content }}
- {%- if field.wrapper_element -%}
- </{{ field.wrapper_element }}>
- {%- endif %}
- {%- endfor %}
- </div>