application de la nouvelle identité sur toutes les pages
This commit is contained in:
@@ -15,13 +15,15 @@
|
||||
*/
|
||||
#}
|
||||
{% if content %}
|
||||
<div{{ attributes }} class="fullpage meetup-offre">
|
||||
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
|
||||
<div class="page-header-outside">
|
||||
<div class="retour-meetup">
|
||||
<a href="/meetup">← Retour à la liste des annonces</a>
|
||||
</div>
|
||||
|
||||
<h2>{{ elements.erabletheme_contenudelapageprincipale.content['#title'] }}</h2>
|
||||
</div>
|
||||
|
||||
<div{{ attributes }} class="fullpage meetup-offre">
|
||||
<div class="offre-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
@@ -68,23 +68,23 @@
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<article{{ attributes }} class="actu_full fullpage">
|
||||
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
|
||||
<div class="page-header-outside">
|
||||
<div class="retour_actus">
|
||||
<a href="/actualites">← Retour aux actualités</a>
|
||||
</div>
|
||||
<h2{{ title_attributes }}>{{ label }}</h2>
|
||||
{{ content.field_sous_titre }}
|
||||
</div>
|
||||
|
||||
<article{{ attributes }} class="actu_full fullpage">
|
||||
<div class="article_meta">
|
||||
{{ content.field_date }}
|
||||
{{ content.field_type_d_actualite }}
|
||||
</div>
|
||||
|
||||
|
||||
<h2{{ title_attributes }}>
|
||||
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
|
||||
</h2>
|
||||
|
||||
<div{{ content_attributes }}>
|
||||
{{ content|without('field_date', 'field_type_d_actualite') }}
|
||||
{{ content|without('field_date', 'field_type_d_actualite', 'field_sous_titre') }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
@@ -69,13 +69,16 @@
|
||||
*/
|
||||
#}
|
||||
|
||||
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
|
||||
<div class="page-header-outside">
|
||||
<h2>{{ label }}</h2>
|
||||
{{ content.field_sous_titre }}
|
||||
</div>
|
||||
|
||||
<article class="fullpage">
|
||||
<div class="fullpage_content">
|
||||
|
||||
<h2>{{ label }}</h2>
|
||||
|
||||
<div{{ content_attributes }}>
|
||||
{{ content }}
|
||||
{{ content|without('field_sous_titre') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -69,16 +69,20 @@
|
||||
*/
|
||||
#}
|
||||
|
||||
<article class="fullpage projet_full">
|
||||
<div class="fullpage_content">
|
||||
{# En-tête hors de la colonne blanche : retour + titre + sous-titre
|
||||
apparaissent sur le fond gris de la page. #}
|
||||
<div class="page-header-outside">
|
||||
<div class="retour_projets">
|
||||
<a href="/projets">← Retour aux projets</a>
|
||||
</div>
|
||||
<h2>{{ label }}</h2>
|
||||
{{ content.field_sous_titre }}
|
||||
</div>
|
||||
|
||||
<h2>{{ label }}</h2>
|
||||
|
||||
<article class="fullpage projet_full">
|
||||
<div class="fullpage_content">
|
||||
<div{{ content_attributes }}>
|
||||
{{ content }}
|
||||
{{ content|without('field_sous_titre') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -69,16 +69,19 @@
|
||||
*/
|
||||
#}
|
||||
|
||||
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
|
||||
<div class="page-header-outside">
|
||||
<div class="retour_ressources">
|
||||
<a href="/ressources">← Retour aux ressources</a>
|
||||
</div>
|
||||
<h2>{{ label }}</h2>
|
||||
{{ content.field_sous_titre }}
|
||||
</div>
|
||||
|
||||
<article class="fullpage">
|
||||
<div class="fullpage_content ressource">
|
||||
|
||||
<div class="retour_ressources">
|
||||
<a href="/ressources">← Retour aux ressources</a>
|
||||
</div>
|
||||
|
||||
<div{{ content_attributes }}>
|
||||
<h2>{{ label }}</h2>
|
||||
{{ content }}
|
||||
{{ content|without('field_sous_titre') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -68,8 +68,14 @@
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<article{{ attributes.addClass('fullpage ressources') }}>
|
||||
{# En-tête hors colonne blanche : titre "Ressources" rendu sur chaque node
|
||||
mais affiché uniquement sur la 1re ressource via CSS
|
||||
(.views-row:first-of-type > .ressources .page-header-outside). #}
|
||||
<div class="page-header-outside">
|
||||
<h2 class="main-title">Ressources</h2>
|
||||
</div>
|
||||
|
||||
<article{{ attributes.addClass('fullpage ressources') }}>
|
||||
|
||||
{% if display_submitted %}
|
||||
<footer>
|
||||
@@ -81,7 +87,6 @@
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
<div class="main-title">Ressources</div>
|
||||
<div{{ content_attributes }}>
|
||||
{{ title_prefix }}
|
||||
{% if label and not page %}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{#
|
||||
Override pour le paragraphe "membre-equipe" :
|
||||
on regroupe prénom + nom dans un même wrapper .nom-prenom pour qu'ils
|
||||
s'enchaînent comme un seul bloc (typo, retour à la ligne, etc.).
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'paragraph',
|
||||
'paragraph--type--' ~ paragraph.bundle|clean_class,
|
||||
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
|
||||
not paragraph.isPublished() ? 'paragraph--unpublished'
|
||||
]
|
||||
%}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
{{ content.field_portrait }}
|
||||
<div class="nom-prenom">
|
||||
{{ content.field_prenom }}
|
||||
{{ content.field_nom }}
|
||||
</div>
|
||||
{{ content|without('field_portrait', 'field_prenom', 'field_nom') }}
|
||||
</div>
|
||||
@@ -69,17 +69,23 @@
|
||||
*/
|
||||
#}
|
||||
|
||||
<article class="fullpage projet_full taxonomy_page">
|
||||
<div class="fullpage_content">
|
||||
{# Page d'archive taxonomy (filtres par tag). On rend chaque projet associé
|
||||
en mode "card" (titre + diapo en plus petit, cf. _projets.scss).
|
||||
Le titre du tag est sorti dans .page-header-outside ; via le CSS, on n'en
|
||||
affiche qu'une seule (1re .views-row), cf. _projets.scss. La variable
|
||||
taxonomy_term_label est injectée par erabletheme_preprocess_node__view__taxonomy_term. #}
|
||||
<div class="page-header-outside taxonomy_header">
|
||||
<div class="retour_projets">
|
||||
<a href="/projets">← Retour aux projets</a>
|
||||
</div>
|
||||
<h2>{{ taxonomy_term_label }}</h2>
|
||||
</div>
|
||||
|
||||
<h2>{{ label }}</h2>
|
||||
|
||||
<article class="fullpage projet_full taxonomy_page">
|
||||
<div class="fullpage_content">
|
||||
<h2 class="projet_label"><a href="{{ url }}">{{ label }}</a></h2>
|
||||
<div{{ content_attributes }}>
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user