création page benevole
This commit is contained in:
parent
51015e4ac5
commit
683daad382
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
$context = Timber::context();
|
$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', 'la_benevole_zone.twig' ), $context );
|
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'la_benevole_zone.twig' ), $context );
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
<body class="{{body_class}}" data-template="base.twig">
|
<body class="{{body_class}}" data-template="base.twig">
|
||||||
<a class="skip-link screen-reader-text" href="#content">{{ _e( 'Skip to content') }}</a>
|
<a class="skip-link screen-reader-text" href="#content">{{ _e( 'Skip to content') }}</a>
|
||||||
<header class="header" >
|
<header class="header">
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="wrapper">
|
<div class="logoLamine">
|
||||||
<h1 class="hdr-logo" role="banner">
|
<h1 class="hdr-logo" role="banner">
|
||||||
<a class="hdr-logo-link" href="{{site.url}}" rel="home">{{site.name}}</a>
|
<a class="hdr-logo-link" href="{{site.url}}" rel="home">{{site.name}}</a>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
{% if name == 'true' %}
|
||||||
|
{% set class = "title_bene" %}
|
||||||
|
{% else %}
|
||||||
|
{% set class = "title" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="{{class}}">
|
||||||
|
<h2>{{post.title}}</h2>
|
||||||
|
</div>
|
@ -1,14 +1,33 @@
|
|||||||
{% extends "base.twig" %}
|
{% extends "base.twig" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="content-wrapper">
|
|
||||||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
|
{% include 'components/title_page.twig' with {name: 'true'} %}
|
||||||
|
|
||||||
|
<div class="colonne_gauche">
|
||||||
<section class="article-content">
|
<section class="article-content">
|
||||||
<h1 class="article-h1">{{post.title}}</h1>
|
<h1 class="titre-bloc">{{ post.meta('titre_bloc') }}</h1>
|
||||||
<div class="article-body">
|
<div class="article-body">
|
||||||
{{post.content}}
|
<!-- {{dump(post)}} -->
|
||||||
|
{{ post.meta('paragraphe_bloc') }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
<div class="boutons">
|
||||||
</div><!-- /content-wrapper -->
|
<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') }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div><!-- /colonne-droite -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
|
{% include 'components/title_page.twig' %}
|
||||||
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
|
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
|
||||||
<section class="article-content">
|
<section class="article-content">
|
||||||
<h1 class="article-h1">{{post.title}}</h1>
|
<h1 class="article-h1">{{post.title}}</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user