Files
cnt-sindikatua/template-portada.php

22 lines
515 B
PHP
Raw Normal View History

2025-10-14 15:08:21 +00:00
<?php
/* Template Name: Plantilla de Portada */
use Timber\Timber;
$templates = [ 'templates/page-portada.twig' ];
$context = Timber::context(
[
'last_posts_opinion' => $site->getLastPostOpinion(),
'posts_campana' => $site->getLastPostCampana(),
'posts_conflicts' => $site->getLastPostConflicts(),
'lasts_posts_news' => $site->getLastsPostsNews(),
'botones_imagen' => $site->getBotonesEnlaces(),
]
);
//var_dump($context);
error_log('✅ Template-portada');
Timber::render( $templates, $context );