Skip to content
Snippets Groups Projects
Commit c193c70b authored by Eric Bremner's avatar Eric Bremner Committed by Igor Biki
Browse files

ISTWCMS-4790: updating views view twig

parent 3b984bc1
No related branches found
No related tags found
1 merge request!55ISTWCMS-4790: updating views view twig
{% set additional_attributes = { {%
'class': ['view'], set classes = [
} %} 'view',
'view-' ~ id|clean_class,
<{{ element ?: 'div' }} {{ add_attributes(additional_attributes) }}> 'view-id-' ~ id,
'view-display-id-' ~ display_id,
dom_id ? 'js-view-dom-id-' ~ dom_id,
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }} {{ title_prefix }}
{% if title %} {% if title %}
{{ title }} {{ title }}
{% endif %} {% endif %}
{{ title_suffix }} {{ title_suffix }}
{% if header %} {% if header %}
<div class="view__header"> <div class="view-header">
{{- header -}} {{ header }}
</div> </div>
{% endif %} {% endif %}
{% if exposed %} {% if exposed %}
<div class="view__filters"> <div class="view-filters">
{{- exposed -}} {{ exposed }}
</div> </div>
{% endif %} {% endif %}
{% if attachment_before %} {% if attachment_before %}
<div class="attachment attachment--before"> <div class="attachment attachment-before">
{{- attachment_before -}} {{ attachment_before }}
</div> </div>
{% endif %} {% endif %}
{% if rows %} {% if rows %}
<div class="view__content"> <div class="view-content">
{{- rows -}} {{ rows }}
</div> </div>
{% elseif empty %} {% elseif empty %}
<div class="view__empty"> <div class="view-empty">
{{- empty -}} {{ empty }}
</div> </div>
{% endif %} {% endif %}
{% if pager %} {% if pager %}
{{ pager }} {{ pager }}
{% endif %} {% endif %}
{% if attachment_after %} {% if attachment_after %}
<div class="attachment attachment--after"> <div class="attachment attachment-after">
{{- attachment_after -}} {{ attachment_after }}
</div> </div>
{% endif %} {% endif %}
{% if more %} {% if more %}
{{ more }} {{ more }}
{% endif %} {% endif %}
{% if footer %} {% if footer %}
<div class="view__footer"> <div class="view-footer">
{{- footer -}} {{ footer }}
</div> </div>
{% endif %} {% endif %}
{% if feed_icons %} {% if feed_icons %}
<div class="feed-icons"> <div class="feed-icons">
{{- feed_icons -}} {{ feed_icons }}
</div> </div>
{% endif %} {% endif %}
</{{ element ?: 'div' }}> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment