création twig de la page projet, privatiser, accueil et asso

This commit is contained in:
2020-05-25 17:11:10 +02:00
parent 3978fb61c8
commit 234ab9f041
12 changed files with 189 additions and 86 deletions
+15 -6
View File
@@ -1,10 +1,19 @@
<?php
/**
* template name: Agenda
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* Methods for TimberHelper can be found in the /lib sub-directory
*
* @package WordPress
* @subpackage Timber
* @since Timber 0.2
*/
$timber_post = new Timber\Post();
$context['post'] = $timber_post;
$context = Timber::context();
$timber_post = new Timber\Post();
$context['post'] = $timber_post;
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'agenda.twig' ), $context );
Timber::render( array( 'agenda.twig' ), $context );