58 lines
1.7 KiB
Twig
58 lines
1.7 KiB
Twig
{#
|
|
/**
|
|
* @file
|
|
* Theme override to display a view of unformatted rows.
|
|
*
|
|
* Available variables:
|
|
* - title: The title of this group of rows. May be empty.
|
|
* - rows: A list of the view's row items.
|
|
* - attributes: The row's HTML attributes.
|
|
* - content: The row's content.
|
|
* - view: The view object.
|
|
* - default_row_class: A flag indicating whether default classes should be
|
|
* used on rows.
|
|
*
|
|
* @see template_preprocess_views_view_unformatted()
|
|
*/
|
|
#}
|
|
|
|
{#
|
|
/**
|
|
* Custom template to display unformatted rows for the view "base_de_donnees".
|
|
*/
|
|
#}
|
|
|
|
{%
|
|
set view_wrapper_class = [
|
|
default_row_class ? 'views-row-wrapper',
|
|
]
|
|
%}
|
|
|
|
<div class="view-content {{ is_filtered ? 'grid-layout' : 'use-slider' }}">
|
|
{% if grouped_rows is defined %}
|
|
{% for type_class, group in grouped_rows %}
|
|
<div class="view-type-slide {{ type_class }}">
|
|
<h3 class="{{ type_class }}">{{ group.label }}</h3>
|
|
{% if not is_filtered %}
|
|
<button class="tout-voir" type="button" style="" target="_blank"><a href="http://dev.eql.fr//ressources?field_type_de_media_target_id=All&field_type_de_ressource_target_id=595&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Tout voir</a></button>
|
|
{% endif %}
|
|
<div class="{{ is_filtered ? 'grid-layout-inner' : 'views-row-wrapper' }}">
|
|
{% for row in group.rows %}
|
|
<div{{ row.attributes.addClass('views-row') }}>
|
|
{{ row.content }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="grid-layout-inner">
|
|
{% for row in rows %}
|
|
<div{{ row.attributes.addClass('views-row') }}>
|
|
{{ row.content }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|