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;
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2022-04-08 12:32:49 +02:00
|
|
|
|
2022-03-14 14:56:35 +01:00
|
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
2022-04-08 12:32:49 +02:00
|
|
|
|
|
|
|
$contido .= ' ' . renderMigasPan($page) . "\n";
|
2022-10-25 14:47:38 +02:00
|
|
|
$contido .= ' <article id="' . $page->name .'">' . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
$contido .= ' <header>' . "\n";
|
|
|
|
$contido .= ' <div class="columna">' . "\n";
|
|
|
|
$contido .= ' <h2>' . ucfirst($page->title) . '</h2>' . "\n";
|
|
|
|
$contido .= ' </div>' . "\n";
|
|
|
|
$contido .= ' </header>' . "\n";
|
2022-04-08 12:32:49 +02:00
|
|
|
$contido .= ' <div class="contedor">' . "\n";
|
2022-04-06 13:08:40 +02:00
|
|
|
if(count($page->seccions))
|
|
|
|
{
|
2022-05-03 12:18:01 +02:00
|
|
|
$contido .= ' ' . getSeccions($page->seccions) . "\n";
|
2022-04-06 13:08:40 +02:00
|
|
|
}
|
2022-04-08 12:32:49 +02:00
|
|
|
$contido .= ' </div>' . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
$contido .= ' </article>' . "\n";
|
2022-04-08 12:32:49 +02:00
|
|
|
}
|