clean twig
This commit is contained in:
@@ -2,33 +2,61 @@
|
||||
|
||||
{% block content %}
|
||||
{% include 'components/title_page.twig' %}
|
||||
{% include '/components/sider_left.twig' with { name : 'association' } %}
|
||||
|
||||
<div class="colonne_droite">
|
||||
<section class="article_content">
|
||||
<section class="paragraphe_asso">
|
||||
<h1 class="'titre_1'">{{ post.meta('titre_asso') }}</h1>
|
||||
<div class="article_body">
|
||||
<section>
|
||||
<aside class="sidebar_left">
|
||||
{% include '/components/sider_left.twig' with { name__template : 'association' } %}
|
||||
</aside>
|
||||
|
||||
<div class="wrapper__content">
|
||||
<div class="wrap__content __asso">
|
||||
|
||||
<div class="__header">
|
||||
<h2 class="'titre_1'">{{ post.meta('titre_asso') }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
{{ post.meta('paragraphe_asso') }}
|
||||
</div>
|
||||
</section>
|
||||
<section class="engagements">
|
||||
<h1 class="'titre_1'">{{ post.meta('titre_engage') }}</h1>
|
||||
<div class="article_body">
|
||||
<img src="{{ Image(post.meta('image_engagement')).src }}" />
|
||||
<div class="tableau_engagements">
|
||||
{% for item in post.meta('type_engagement') %}
|
||||
<div class="engagement">{{item.titre_engagement}}{{item.paragraphe_engagement}}</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
<div class="wrap__content engagement">
|
||||
<div class="__header">
|
||||
<h2 class="titre_1">{{ post.meta('titre_engage') }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
<div class="__image">
|
||||
<img src="{{ Image(post.meta('image_engagement')).src }}" />
|
||||
</div>
|
||||
|
||||
<div class="tableau_engagements">
|
||||
{% for item in post.meta('type_engagement') %}
|
||||
<div class="engagement">
|
||||
<div class="__head">
|
||||
<h6>{{item.titre_engagement}}</h6>
|
||||
</div>
|
||||
<div class="__content">
|
||||
{{item.paragraphe_engagement}}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="wrap__content vie-asso">
|
||||
<div class="__header">
|
||||
<h2 class="'titre_1'">{{ post.meta('titre_vieasso') }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
{{ post.meta('paragraphe_vieasso') }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="paragraphe_vieasso">
|
||||
<h1 class="'titre_1'">{{ post.meta('titre_vieasso') }}</h1>
|
||||
<div class="article_body">
|
||||
{{ post.meta('paragraphe_vieasso') }}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div><!-- /colonne_droite -->
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -0,0 +1,3 @@
|
||||
<div class="btn telechargement_plaquette">
|
||||
<a href="{{post.meta('bouton').document.url}}"download>{{post.meta('bouton').texte}}</a>
|
||||
</div>
|
@@ -0,0 +1,3 @@
|
||||
<form class="" action="index.html" method="post">
|
||||
{# INTÉGRATION DU formulaire #}
|
||||
</form>
|
@@ -1,37 +1,59 @@
|
||||
|
||||
<!-- cleaner le code + condition bouton pour asso voir pour condition bouton dans le wordpress -->
|
||||
{% if name__template == "temps_fors" %}
|
||||
<div class="__header">
|
||||
<div class="title">
|
||||
<h3>{{item.nom_du_temps_fort}}</h3>
|
||||
</div>
|
||||
<div class="sub_title">
|
||||
<p>{{item.sous_titre}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{item.paragraphe_descriptif}}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="colonne_gauche">
|
||||
<section class="article-content">
|
||||
{% if name == 'collecte' %}
|
||||
{#{% include '/components/formulaire.twig' %}#}
|
||||
{% endif %}
|
||||
{% if name == 'association' %}
|
||||
<div class="article_body">
|
||||
<h1 class="titre_bloc">{{ post.meta('titre') }}</h1>
|
||||
<ul>
|
||||
{% for item in post.meta('documents') %}
|
||||
<li>
|
||||
<a href="{{item.document.document.url}}" download>{{item.document.nom_doc}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="liste_doc"> {{ post.meta('file') }}</div>
|
||||
</div>
|
||||
<div class = "bouttons" >
|
||||
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||
</div>
|
||||
{% elseif name == 'benevole' %}
|
||||
<h1 class="titre_bloc">{{ post.meta('titre_bloc') }}</h1>
|
||||
<div class="article_body">
|
||||
<!-- {{dump(post)}} -->
|
||||
{{ post.meta('paragraphe_bloc') }}
|
||||
</div>
|
||||
<div class = "bouttons" >
|
||||
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||
{% include '/components/buttons/bouton_contact.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if name__template == 'benevole' %}
|
||||
|
||||
</section>
|
||||
</div><!-- /colonne_gauche -->
|
||||
<div class="__header">
|
||||
<div class="title">
|
||||
<h3>{{ post.meta('titre_bloc') }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="__content">
|
||||
{{ post.meta('paragraphe_bloc') }}
|
||||
</div>
|
||||
|
||||
<div class = "__bouttons">
|
||||
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||
{% include '/components/buttons/bouton_contact.html.twig' %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if name__template == 'association' %}
|
||||
|
||||
<div class="__header">
|
||||
<div class="title">
|
||||
<h3 class="titre_bloc">{{ post.meta('titre') }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="__content">
|
||||
<div class="list_item">
|
||||
<ul>
|
||||
{% for item in post.meta('documents') %}
|
||||
<li>
|
||||
<a href="{{item.document.document.url}}" download>{{item.document.nom_doc}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class = "bouttons" >
|
||||
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
@@ -1,17 +1,29 @@
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include 'components/title_page.twig' %}
|
||||
{% include 'components/sider_left.twig' with { name : 'benevole' } %}
|
||||
|
||||
<section>
|
||||
|
||||
<aside class="sidebar_left">
|
||||
{% include 'components/sider_left.twig' with { name__template : 'benevole' } %}
|
||||
</aside>
|
||||
|
||||
<div class="wrapper__content">
|
||||
<div class="wrap__content">
|
||||
|
||||
<div class="__header">
|
||||
<h2 class="__chapeau">{{ post.meta('texte_chapeau') }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<div class="colonne_droite">
|
||||
<section class="article_content">
|
||||
<h1 class="texte_chapeau">{{ post.meta('texte_chapeau') }}</h1>
|
||||
<div class="article_body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
</section>
|
||||
</div><!-- /colonne_droite -->
|
||||
{% endblock %}
|
||||
|
@@ -1,16 +1,26 @@
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'components/title_page.twig' %}
|
||||
{% include 'components/sider_left.twig' with { name : 'collecte' } %}
|
||||
|
||||
<div class="colonne_droite">
|
||||
<section class="article_content">
|
||||
<h1 class="texte_chapeau">{{ post.meta('texte_chapeau') }}</h1>
|
||||
<div class="article_body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
</section>
|
||||
</div><!-- /colonne_droite -->
|
||||
{% include 'components/title_page.twig' %}
|
||||
|
||||
<section>
|
||||
<aside class="sidebar_left">
|
||||
{% include 'components/forms/form_lacollecte.twig' %}
|
||||
</aside>
|
||||
|
||||
<div class="wrapper__content">
|
||||
<div class="wrap__content">
|
||||
|
||||
<div class="__header">
|
||||
<h2 class="__chapeau">{{ post.meta('texte_chapeau') }}</h2>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -2,27 +2,43 @@
|
||||
|
||||
{% block content %}
|
||||
{% include 'components/title_page.twig' %}
|
||||
{# {{dump(post)}} #}
|
||||
<section class="zone_projet">
|
||||
<div class="zone">
|
||||
{% for item in post.meta('zone_de_projets') %}
|
||||
<div class="zone_de_projets">
|
||||
<h2>{{item.titre_zone}}</h2>
|
||||
{{item.paragraphe_descriptif}}
|
||||
|
||||
<section>
|
||||
<div class="zone_projets">
|
||||
{% for projets in post.meta('zone_de_projets') %}
|
||||
<div class="projet">
|
||||
<div class="__header">
|
||||
<h3>{{projets.titre_zone}}</h3>
|
||||
</div>
|
||||
|
||||
<section class="article_content">
|
||||
{% for item2 in item.projet %}
|
||||
<h3>{{item2.titre_du_projet}}</h3>
|
||||
<div class="article_body">
|
||||
<img src="{{ Image(item2.image).src }}" />
|
||||
<p>{{item2.paragraphe_descriptif}}</p>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
<div class="wrapper__content">
|
||||
<div class="wrap__content">
|
||||
<p>{{projets.paragraphe_descriptif}}</p>
|
||||
</div>
|
||||
|
||||
<div class="items">
|
||||
{% for item in projets.projet %}
|
||||
<div class="item">
|
||||
<div class="__image">
|
||||
<img src="{{ Image(item.image).src }}" />
|
||||
</div>
|
||||
<div class="__body">
|
||||
<div class="__header">
|
||||
<h6>{{item.titre_du_projet}}</h6>
|
||||
</div>
|
||||
<div class="__content">
|
||||
<p>{{item.paragraphe_descriptif}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="zone">
|
||||
</section><!-- /zone de projet -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -2,38 +2,32 @@
|
||||
{% block content %}
|
||||
|
||||
{% include 'components/title_page.twig'%}
|
||||
{% for item in post.meta('temps_fort') %}
|
||||
<section>
|
||||
<div>
|
||||
<aside class="sidebar_left">
|
||||
<div class="__header">
|
||||
<div class="title">
|
||||
<h3>{{item.nom_du_temps_fort}}</h3>
|
||||
</div>
|
||||
<div class="sub_title">
|
||||
<p>{{item.sous_titre}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{item.paragraphe_descriptif}}
|
||||
</div>
|
||||
</aside>
|
||||
<div class="wrapper">
|
||||
<div class="wrap_content">
|
||||
<div class="slide">
|
||||
{% for media in item.choose %}
|
||||
{% if media.acf_fc_layout == 'image' %}
|
||||
<img src="{{ Image(media.image).src }}" />
|
||||
<p class="caption">{{ Image(media.image).caption }}</p>
|
||||
{% elseif media.acf_fc_layout == 'video' %}
|
||||
{{media.video}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
|
||||
{% for item in post.meta('temps_fort') %}
|
||||
<section>
|
||||
<aside class="sidebar_left">
|
||||
{% include 'components/sider_left.twig' with { name__template : 'temps_fors' }%}
|
||||
</aside>
|
||||
|
||||
<div class="wrapper__content">
|
||||
<div class="wrap__content">
|
||||
<div class="slide">
|
||||
{% for media in item.choose %}
|
||||
{% if media.acf_fc_layout == 'image' %}
|
||||
<div class="image">
|
||||
<img src="{{ Image(media.image).src }}" />
|
||||
<p class="caption">{{ Image(media.image).caption }}</p>
|
||||
</div>
|
||||
{% elseif media.acf_fc_layout == 'video' %}
|
||||
<div class="video">
|
||||
{{media.video}}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
@@ -3,37 +3,61 @@
|
||||
{% block content %}
|
||||
{% include 'components/title_page.twig' %}
|
||||
|
||||
<section class="texte_intro">
|
||||
<section>
|
||||
<div class="wrapper__content">
|
||||
|
||||
<section class="article-content">
|
||||
<div class="wrap__content">
|
||||
|
||||
<div class="__header">
|
||||
<h2 class="texte_chapeau">{{ post.meta('texte_chapeau') }}</h2>
|
||||
<div class="article_body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="__body">
|
||||
{{ post.meta('paragraphe_descriptif') }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wrap__content __slide">
|
||||
{% for item in post.meta('slide_image') %}
|
||||
<div class="images">
|
||||
<div class="img">
|
||||
<img src="{{ Image(item.image).src }}" />
|
||||
</div>
|
||||
|
||||
<div class="legendes">
|
||||
<div class="__head">
|
||||
<p>{{ item.titre_legende}}</p>
|
||||
</div>
|
||||
<div class="__content">
|
||||
<p>{{ item.texte_legende}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="wrap__content __organisation">
|
||||
<div class="__body">
|
||||
{% for item in post.meta('type_organisation') %}
|
||||
<div class="__head">
|
||||
<h6>{{ item.titre_bloc}}</h6>
|
||||
</div>
|
||||
|
||||
<div class="__content">
|
||||
<p>{{ item.paragraphe_descriptif}}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% include 'temcomponents/buttons/boutton_privatiser.html.twigplate'%}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="slide_imglegende">
|
||||
{% for item in post.meta('slide_image') %}
|
||||
<div class="images"><img src="{{ Image(item.image).src }}" /></div>
|
||||
<div class="legendes">{{ item.titre_legende}}{{ item.texte_legende}}</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
<section class="organisation">
|
||||
<div class="colonne_orga">
|
||||
<section class="article-content">
|
||||
{% for item in post.meta('type_organisation') %}
|
||||
<h2 class="titre_bloc">{{ item.titre_bloc}}</h2>
|
||||
<div class="article_body">{{ item.paragraphe_descriptif}}</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
</div><!-- /colonne_orga -->
|
||||
</section>
|
||||
|
||||
<section class="telechargement_plaquette">
|
||||
<a href="{{post.meta('bouton').document.url}}"download>{{post.meta('bouton').texte}}</a>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user