2022-03-09 18:09:44 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2024-09-20 14:24:47 +02:00
|
|
|
/** @var Page $page */
|
|
|
|
/** @var Pages $pages */
|
|
|
|
/** @var Config $config */
|
|
|
|
/** @var Sanitizer $sanitizer API variable */
|
|
|
|
/** @var WireInput $input API variable */
|
|
|
|
/** @var User $user API variable */
|
|
|
|
/** @var Languages $languages API variable */
|
|
|
|
/** @var SiteConfig $configuracion */
|
|
|
|
/** @var HomePage $inicio */
|
2023-02-18 18:21:02 +01:00
|
|
|
|
2024-10-08 20:55:01 +02:00
|
|
|
$menu = '';
|
|
|
|
|
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
|
|
|
{
|
|
|
|
$menu = renderMenu($inicio->and($pages->get('/noticias')->and($pages->get('/contacto'))));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$menu = renderMenu($inicio->and($inicio->children));
|
2024-09-20 14:24:47 +02:00
|
|
|
?>
|
|
|
|
<main id="contido" class="completo">
|
|
|
|
<nav id="migas" aria-label="<?=_x("Breadcrumb", "Breadcrumb");?>">
|
|
|
|
<?=renderMigasPan($page);?>
|
|
|
|
</nav>
|
|
|
|
<article id="inicio" class="completo">
|
|
|
|
<h1 class="visually-hidden"><?=ucfirst($inicio->title);?></h1>
|
|
|
|
<?=getSeccions($page->seccions);?>
|
|
|
|
</article>
|
2024-10-08 20:55:01 +02:00
|
|
|
</main>
|
|
|
|
<?php
|
|
|
|
}
|