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
+10
View File
@@ -0,0 +1,10 @@
<?php
/**
* template name: evenement
*/
$context = Timber::context();
$timber_post = new Timber\Post();
$context['post'] = $timber_post;
Timber::render( array( 'page-' . $timber_post->post_name . '.twig', 'agenda.twig' ), $context );