php class
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
*/
|
||||
#}
|
||||
<div class="buttons-filtres-ressources">
|
||||
<button class="button-videos" type="button" style=""><a href="/ressources?field_type_de_media_target_id=681&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Vidéos</a></button>
|
||||
<button class="button-videos" type="button" style=""><a href="/ressources?field_type_de_media_target_id=681&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Vidéos</a></button>
|
||||
|
||||
<button class="button-podcasts" type="button" style=""><a href="/ressources?field_type_de_media_target_id=686&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Podcasts</a></button>
|
||||
<button class="button-podcasts" type="button" style=""><a href="/ressources?field_type_de_media_target_id=686&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Podcasts</a></button>
|
||||
|
||||
<button class="button-reportages-photos" type="button" style=""><a href="/ressources?field_type_de_media_target_id=683&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Reportages photos</a></button>
|
||||
<button class="button-livres" type="button" style=""><a href="/ressources?field_type_de_media_target_id=684&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Livres</a></button>
|
||||
<button class="button-articles" type="button" style=""><a href="/ressources?field_type_de_media_target_id=682&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Articles</a></button>
|
||||
<button class="button-publications-rapports" type="button" style=""><a href="/ressources?field_type_de_media_target_id=685&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=#filtres"> Publications/rapports</a></button>
|
||||
<button class="button-reportages-photos" type="button" style=""><a href="/ressources?field_type_de_media_target_id=683&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Reportages photos</a></button>
|
||||
<button class="button-livres" type="button" style=""><a href="/ressources?field_type_de_media_target_id=684&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Livres</a></button>
|
||||
<button class="button-articles" type="button" style=""><a href="/ressources?field_type_de_media_target_id=682&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Articles</a></button>
|
||||
<button class="button-publications-rapports" type="button" style=""><a href="/ressources?field_type_de_media_target_id=685&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Publications/rapports</a></button>
|
||||
</div>
|
||||
|
||||
<form{{ attributes }}>
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{#
|
||||
/**
|
||||
* @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()
|
||||
*/
|
||||
#}
|
||||
|
||||
{%
|
||||
set view_wrapper_class = [
|
||||
default_row_class ? 'views-row-wrapper',
|
||||
]
|
||||
%}
|
||||
{% 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>
|
||||
<div class="views-row-wrapper">
|
||||
{% for row in group.rows %}
|
||||
<div{{ row.attributes.addClass('views-row') }}>
|
||||
{{ row.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for row in rows %}
|
||||
<div{{ row.attributes.addClass('views-row') }}>
|
||||
{{ row.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -66,9 +66,9 @@
|
||||
{% if rows %}
|
||||
|
||||
{% set content_classes = ['view-content'] %}
|
||||
{% if view.id == 'base_de_donnees' %}
|
||||
{# {% if view.id == 'base_de_donnees' %}
|
||||
{% set content_classes = content_classes|merge(['view-ressources-hidden']) %}
|
||||
{% endif %}
|
||||
{% endif %} #}
|
||||
|
||||
<div{{ create_attribute().addClass(content_classes) }}>
|
||||
{{ rows }}
|
||||
|
||||
Reference in New Issue
Block a user