Files
cnt-sindikatua/template-portada.php

23 lines
555 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(),
2025-10-15 15:33:50 +00:00
'videos' => $site->getVideosSlider(),
2025-10-14 15:08:21 +00:00
]
);
//var_dump($context);
error_log('✅ Template-portada');
Timber::render( $templates, $context );