deprecated get_context

This commit is contained in:
2025-07-29 11:10:06 +00:00
parent a648a67a0c
commit 7fd20f4700
6 changed files with 7 additions and 7 deletions

View File

@@ -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(

View File

@@ -1,6 +1,6 @@
<?php
include(__DIR__.'/vendor/autoload.php');
$context = Timber::get_context();
$context = Timber::context();
$post = new TimberPost();
$context['post'] = $post;

View File

@@ -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();

View File

@@ -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);
}

View File

@@ -9,7 +9,7 @@
* @since Timber 0.1
*/
$context = Timber::get_context();
$context = Timber::context();
$post = Timber::get_post();
$context['post'] = $post;

View File

@@ -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',