deprecated get_context
This commit is contained in:
@@ -4,7 +4,7 @@ global $params;
|
||||
//~ global $paged;
|
||||
//~ if (!isset($paged) || !$paged){ $paged = 1; }
|
||||
|
||||
$context = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
$templates = array('actualidad.twig');
|
||||
|
||||
$mainargs = array(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include(__DIR__.'/vendor/autoload.php');
|
||||
$context = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
$post = new TimberPost();
|
||||
$context['post'] = $post;
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
global $params;
|
||||
$templates = array('header.twig');
|
||||
|
||||
$context = Timber::get_context();
|
||||
//$GLOBALS['timberContext'] = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
//$GLOBALS['timberContext'] = Timber::context();
|
||||
//ob_start();
|
||||
|
||||
|
||||
|
||||
2
page.php
2
page.php
@@ -45,7 +45,7 @@ function posts_by_service($numberposts=-1,$postslug,$slug,$template_name='posts_
|
||||
)
|
||||
),
|
||||
];
|
||||
$context = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
$ctx = ['posts' => Timber::get_posts( $args ), 'areas' => $context['areas']];
|
||||
return Timber::fetch($template_name, $ctx);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @since Timber 0.1
|
||||
*/
|
||||
|
||||
$context = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
$post = Timber::get_post();
|
||||
$context['post'] = $post;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ global $params;
|
||||
require_once(get_template_directory().'/app.php');
|
||||
include(__DIR__ .'/vendor/autoload.php');
|
||||
|
||||
$context = Timber::get_context();
|
||||
$context = Timber::context();
|
||||
$templates = ['team-member.twig'];
|
||||
$q = array(
|
||||
'post_type' => 'team',
|
||||
|
||||
Reference in New Issue
Block a user