création contenu page ass, page collecte et temps forts
This commit is contained in:
parent
27abaedb4d
commit
3978fb61c8
@ -7,21 +7,5 @@ $context = Timber::context();
|
|||||||
|
|
||||||
$timber_post = new Timber\Post();
|
$timber_post = new Timber\Post();
|
||||||
$context['post'] = $timber_post;
|
$context['post'] = $timber_post;
|
||||||
|
|
||||||
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'les_temps_forts.twig' ), $context );
|
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'les_temps_forts.twig' ), $context );
|
||||||
|
|
||||||
//repeater de temps forts
|
|
||||||
if(get_field('temps_forts')):
|
|
||||||
<ul>
|
|
||||||
<while (has_sub_field('temps_forts')): {
|
|
||||||
<li>sub_field_1 = the_sub_field('nom_du_temps_fort');
|
|
||||||
sub_field_2 = the_sub_field('sous_titre');
|
|
||||||
sub_field_3= the_sub_field('paragraphe_descriptif');
|
|
||||||
sub_field_4= the_sub_field('choose');
|
|
||||||
</li>
|
|
||||||
}
|
|
||||||
endwhile;
|
|
||||||
</ul>
|
|
||||||
endif;
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
{% extends "base.twig" %}
|
{% extends "base.twig" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="content-wrapper">
|
{% include 'components/title_page.twig' %}
|
||||||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
|
{% include '/components/sider_left.twig' %}
|
||||||
<section class="article-content">
|
|
||||||
<h1 class="article-h1">{{post.title}}</h1>
|
<div class="colonne_droite">
|
||||||
<div class="article-body">
|
<section class="article_content">
|
||||||
{{post.content}}
|
<h1 class="'titre_1'">{{ post.meta('titre_1) }}</h1>
|
||||||
|
<div class="article_body">
|
||||||
|
{{ post.meta( 'paragraphe_1') }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</div><!-- /colonne_droite -->
|
||||||
</div><!-- /content-wrapper -->
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
<div id="bouton_asso">
|
||||||
|
<a href="{{post.meta('bouton_asso').lien_hello_asso}}">{{post.meta('bouton_asso').texte_bouton}}</a>
|
||||||
|
<!-- <a href="{{group.url}}">{{group.txt}}</a> -->
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
<div id="bouton_contact">
|
||||||
|
<a href="{{post.meta('bouton_contact').lien_hello_asso}}">{{post.meta('bouton_contact').texte_bouton}}</a>
|
||||||
|
</div>
|
45
web/app/themes/la_mine/templates/components/sider_left.twig
Normal file
45
web/app/themes/la_mine/templates/components/sider_left.twig
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{% if form %}
|
||||||
|
{% include '/components/formulaire.twig' %}
|
||||||
|
{% endif %}
|
||||||
|
{{dump(post)}}
|
||||||
|
|
||||||
|
{% if name == 'benevole' %}
|
||||||
|
<div class="colonne_gauche">
|
||||||
|
<section class="article-content">
|
||||||
|
<h1 class="titre_bloc">{{ post.meta('titre_bloc') }}</h1>
|
||||||
|
<div class="article_body">
|
||||||
|
<!-- {{dump(post)}} -->
|
||||||
|
{{ post.meta('paragraphe_bloc') }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class = "bouttons" >
|
||||||
|
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||||
|
{% include '/components/buttons/bouton_contact.html.twig' %}
|
||||||
|
</div>
|
||||||
|
</div><!-- /colonne_gauche -->
|
||||||
|
<!-- cleaner le code + condition bouton pour asso voir pour condition bouton dans le wordpress -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{dump(post)}}
|
||||||
|
<div class="colonne_gauche">
|
||||||
|
<section class="article-content">
|
||||||
|
|
||||||
|
{% if name == 'association' %}
|
||||||
|
<div class="article_body">
|
||||||
|
<h1 class="titre_bloc">{{ post.meta('titre') }}</h1>
|
||||||
|
{{ post.meta('file') }}
|
||||||
|
</div>
|
||||||
|
{% elseif name == 'benevole' %}
|
||||||
|
<h1 class="titre_bloc">{{ post.meta('titre_bloc') }}</h1>
|
||||||
|
<div class="article_body">
|
||||||
|
<!-- {{dump(post)}} -->
|
||||||
|
{{ post.meta('paragraphe_bloc') }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<div class = "bouttons" >
|
||||||
|
{% include '/components/buttons/bouton_asso.html.twig' %}
|
||||||
|
</div>
|
||||||
|
</div><!-- /colonne_gauche -->
|
@ -3,31 +3,15 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include 'components/title_page.twig' %}
|
{% include 'components/title_page.twig' %}
|
||||||
|
{% include 'components/sider_left.twig' with { name : 'benevole' } %}
|
||||||
|
|
||||||
<div class="colonne_gauche">
|
|
||||||
<section class="article-content">
|
<div class="colonne_droite">
|
||||||
<h1 class="titre-bloc">{{ post.meta('titre_bloc') }}</h1>
|
<section class="article_content">
|
||||||
<div class="article-body">
|
<h1 class="texte_chapeau">{{ post.meta('texte_chapeau') }}</h1>
|
||||||
<!-- {{dump(post)}} -->
|
<div class="article_body">
|
||||||
{{ post.meta('paragraphe_bloc') }}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<div class="boutons">
|
|
||||||
<div id="bouton_asso">
|
|
||||||
<a href="{{post.meta('bouton_asso').lien_hello_asso}}">{{post.meta('bouton_asso').texte_bouton}}</a>
|
|
||||||
<!-- <a href="{{group.url}}">{{group.txt}}</a> -->
|
|
||||||
</div>
|
|
||||||
<div id="bouton_contact">
|
|
||||||
<a href="{{post.meta('bouton_contact').lien_hello_asso}}">{{post.meta('bouton_contact').texte_bouton}}</a>
|
|
||||||
</div>
|
|
||||||
</div><!-- /boutons -->
|
|
||||||
</div><!-- /colonne-gauche -->
|
|
||||||
<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') }}
|
{{ post.meta('paragraphe_descriptif') }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div><!-- /colonne-droite -->
|
</div><!-- /colonne_droite -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'components/title_page.twig' %}
|
{% include 'components/title_page.twig' %}
|
||||||
<div class="content-wrapper">
|
{% include 'components/sider_left.twig' %}
|
||||||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
|
|
||||||
|
<div class="colonne_droite">
|
||||||
<section class="article-content">
|
<section class="article-content">
|
||||||
<h1 class="article-h1">{{post.title}}</h1>
|
<h1 class="texte-chapeau">{{ post.meta('texte_chapeau') }}</h1>
|
||||||
<div class="article-body">
|
<div class="article-body">
|
||||||
{{post.content}}
|
{{ post.meta('paragraphe_descriptif') }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</div><!-- /colonne_droite -->
|
||||||
</div><!-- /content-wrapper -->
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -2,16 +2,38 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include 'components/title_page.twig'%}
|
{% include 'components/title_page.twig'%}
|
||||||
|
{% for item in post.meta('temps_fort') %}
|
||||||
<!--
|
<section>
|
||||||
<div class="colonne_gauche">
|
<div>
|
||||||
<section class="article-content">
|
<aside class="sidebar_left">
|
||||||
<h1 class="nom_du_temps_fort"></h1>
|
<div class="__header">
|
||||||
<h2 class="sous-titre"></h2>
|
<div class="title">
|
||||||
<div class="article-body">
|
<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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
{% endfor %}
|
||||||
<div class = "slide_medias">
|
|
||||||
</div> -->
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user