24 lines
867 B
PHP
24 lines
867 B
PHP
<?php namespace ProcessWire;
|
|
|
|
/** @var Page $page API variable */
|
|
|
|
$menu = '';
|
|
$contido = '';
|
|
|
|
$menu = renderMenu($inicio->children);
|
|
|
|
$publicacions = pages()->get('/noticias/publicaciones/')->children("template='publicacion',categorias=$page,sort=-fecha_publicacion,limit=10");
|
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
|
$contido .= '<article id="' . $page->name .'" class="container">' . "\n";
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($page->title) . '</h2>' . "\n";
|
|
$contido .= '<section id="publicacions" class="row row-cols-1 row-cols-lg-2 mb-3">' . "\n";
|
|
$contido .= renderPaxinacion($publicacions, 'superior');
|
|
|
|
foreach($publicacions as $publicacion)
|
|
{
|
|
$contido .= renderArtigos($publicacion, $languages->getLocale());
|
|
}
|
|
$contido .= renderPaxinacion($publicacions, 'inferior');
|
|
$contido .= '</section>' . "\n";
|
|
$contido .= '</article>' . "\n";
|