2025-07-14 07:33:32 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying all pages.
|
|
|
|
*
|
|
|
|
* This is the template that displays all pages by default.
|
|
|
|
* Please note that this is the WordPress construct of pages
|
|
|
|
* and that other 'pages' on your WordPress site will use a
|
|
|
|
* different template.
|
|
|
|
*/
|
|
|
|
|
2025-07-16 07:33:09 +00:00
|
|
|
/**namespace App;
|
2025-07-14 07:33:32 +00:00
|
|
|
use Timber\Timber;
|
2025-07-16 07:33:09 +00:00
|
|
|
$context = Timber::context();
|
|
|
|
Timber::render( 'templates/page.twig', $context );*/
|
2025-07-14 07:33:32 +00:00
|
|
|
|
|
|
|
$context = Timber::context();
|
|
|
|
|
2025-07-16 07:33:09 +00:00
|
|
|
$timber_post = Timber::get_post();
|
|
|
|
$context['post'] = $timber_post;
|
2025-07-24 09:31:42 +00:00
|
|
|
//Timber::render( array( 'templates/page-' . $timber_post->post_name . '.twig', 'page.twig' ), $context );
|
|
|
|
|
|
|
|
Timber::render( array( 'templates/page-' . $timber_post->post_name . '.twig' ), $context );
|