2022-03-09 18:09:44 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
/** @var Page $page API variable */
|
|
|
|
|
2022-04-06 13:08:40 +02:00
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
2023-02-18 18:21:02 +01:00
|
|
|
$contido .= '<article id="inicio" class="container">' . "\n";
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($inicio->title) . '</h2>' . "\n";
|
2022-03-09 18:09:44 +01:00
|
|
|
|
2022-12-06 10:05:56 +01:00
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
2022-03-09 18:09:44 +01:00
|
|
|
{
|
2023-02-21 14:48:37 +01:00
|
|
|
$menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto')));
|
2022-12-06 10:05:56 +01:00
|
|
|
$contido .= renderTextoMantemento($configuracion['mantemento']['titular'], $configuracion['mantemento']['artigo'], $configuracion['mantemento']['imaxe']) . "\n";
|
2022-03-09 18:09:44 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-02-18 18:21:02 +01:00
|
|
|
$menu = renderMenu($inicio->children);
|
2022-04-07 13:57:02 +02:00
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
$contido .= getSeccions($page->seccions) . "\n";
|
2022-04-06 13:08:40 +02:00
|
|
|
}
|
2022-10-06 13:14:42 +02:00
|
|
|
$contido .= '</article>' . "\n";
|