2022-03-09 18:09:44 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2022-04-06 13:08:40 +02:00
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
2022-03-09 18:09:44 +01:00
|
|
|
$mantemento = $inicio->mantemento;
|
2022-04-08 12:32:49 +02:00
|
|
|
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
|
|
|
$contido .= '<article id="inicio">' . "\n";
|
|
|
|
$contido .= '<div class="contedor">' . "\n";
|
|
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($inicio->title) . '</h2>' . "\n";
|
2022-03-09 18:09:44 +01:00
|
|
|
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
|
|
{
|
2022-03-10 01:47:18 +01:00
|
|
|
$menu = renderMenu($inicio, 0, 'paxinas');
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= getSeccions($inicio->mantemento_mensaxe) . "\n";
|
2022-03-09 18:09:44 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-03-10 01:47:18 +01:00
|
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
2022-04-07 13:57:02 +02:00
|
|
|
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= getSeccions($inicio->seccions) . "\n";
|
2022-04-06 13:08:40 +02:00
|
|
|
}
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= '</div>' . "\n";
|
|
|
|
$contido .= '</article>' . "\n";
|