2022-03-14 14:56:35 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2022-04-06 13:08:40 +02:00
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
2022-03-14 14:56:35 +01:00
|
|
|
$mantemento = $inicio->mantemento;
|
2022-04-06 13:08:40 +02:00
|
|
|
$contido .= '<article id="' . $page->name . '">';
|
|
|
|
$contido .= '<h2 class="visually-hidden">' . $page->title . '</h2>';
|
2022-03-14 14:56:35 +01:00
|
|
|
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
|
|
{
|
2022-04-06 13:08:40 +02:00
|
|
|
$session->redirect($inicio->url);
|
2022-03-14 14:56:35 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
2022-04-06 13:08:40 +02:00
|
|
|
$contido .= renderMigasPan($page);
|
|
|
|
if(count($page->seccions))
|
|
|
|
{
|
|
|
|
$contido .= getSeccions($page->seccions);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$contido .= '</article>';
|