31 lines
1 KiB
PHP
31 lines
1 KiB
PHP
<?php namespace ProcessWire;
|
|
|
|
$mantemento = $inicio->mantemento;
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
{
|
|
$session->redirect($inicio->url);
|
|
}
|
|
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";
|
|
}
|