refactorizar

This commit is contained in:
2025-10-14 15:08:21 +00:00
parent d1e5638ed2
commit 4abf91910f
10 changed files with 367 additions and 349 deletions

21
template-portada.php Normal file
View File

@@ -0,0 +1,21 @@
<?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 );