2022-05-03 12:18:01 +02:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2024-10-07 11:18:13 +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 */
|
2022-05-03 12:18:01 +02:00
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
2022-05-03 12:18:01 +02:00
|
|
|
{
|
2024-10-07 11:18:13 +02:00
|
|
|
$session->redirect($inicio->url);
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2024-10-07 11:18:13 +02:00
|
|
|
$menu = renderMenu($inicio->and($inicio->children));
|
|
|
|
?>
|
|
|
|
<main id="contido" class="completo">
|
|
|
|
<nav id="migas" aria-label="<?=_x("Breadcrumb", "Breadcrumb");?>">
|
|
|
|
<?=renderMigasPan($page);?>
|
|
|
|
</nav>
|
|
|
|
<article id="habitacion">
|
|
|
|
<h1><?=ucfirst($page->title);?></h1>
|
|
|
|
<?=getSeccions($page->seccions);?>
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
<?php
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|