2022-05-03 12:18:01 +02:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
|
|
|
$mantemento = $inicio->mantemento;
|
|
|
|
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
|
|
{
|
|
|
|
$session->redirect($inicio->url);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
|
|
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
|
|
|
|
2022-10-27 14:10:14 +02:00
|
|
|
$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";
|
2022-05-03 12:18:01 +02:00
|
|
|
if(count($page->seccions))
|
|
|
|
{
|
2022-10-27 14:10:14 +02:00
|
|
|
$contido .= getSeccions($page->seccions) . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|
2022-10-27 14:10:14 +02:00
|
|
|
$contido .= '</div>' . "\n";
|
|
|
|
$contido .= '</article>' . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|