32 lines
No EOL
1 KiB
PHP
32 lines
No EOL
1 KiB
PHP
<?php namespace ProcessWire;
|
|
|
|
$mantemento = $inicio->mantemento;
|
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
|
{
|
|
$menu = renderMenu($inicio->and($pages->get('/noticias')), 0, 'paxinas');
|
|
}
|
|
else
|
|
{
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
|
}
|
|
|
|
$contido = '';
|
|
|
|
$publicacions = pages()->get('/noticias/publicaciones/')->children("template='publicacion',etiquetas=$page,sort=-fecha_publicacion,limit=10");
|
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
|
$contido .= '<article id="' . $page->name .'">' . "\n";
|
|
$contido .= '<div class="contedor">' . "\n";
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($page->title) . '</h2>' . "\n";
|
|
$contido .= '<section id="publicacions">' . "\n";
|
|
$contido .= renderPaxinacion($publicacions, 'superior');
|
|
|
|
foreach($publicacions as $publicacion)
|
|
{
|
|
$contido .= renderArtigos($publicacion, $languages->getLocale());
|
|
}
|
|
$contido .= renderPaxinacion($publicacions, 'inferior');
|
|
$contido .= '</section>' . "\n";
|
|
$contido .= '</div>' . "\n";
|
|
$contido .= '</article>' . "\n"; |