-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
28 lines (26 loc) · 913 Bytes
/
page.php
File metadata and controls
28 lines (26 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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.
*
* To generate specific templates for your pages you can use:
* /mytheme/templates/page-mypage.twig
* (which will still route through this PHP file)
* OR
* /mytheme/page-mypage.php
* (in which case you'll want to duplicate this file and save to the above path)
*
* Methods for TimberHelper can be found in the /lib subdirectory
*
*/
use tp\TenthTemplate\Exultant;
$context = Timber\Timber::context();
require 'commonContext.php';
$timber_post = Timber::get_post();
$context['post'] = $timber_post;
$context['typeInfo']['includeByline'] = false;
Exultant::render( [ 'page-' . $timber_post->post_name . '.twig', 'page.twig' ], $context );