2022-03-14 14:56:35 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2024-10-08 20:55:01 +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-21 14:48:37 +01:00
|
|
|
|
2022-04-06 13:08:40 +02:00
|
|
|
$menu = '';
|
|
|
|
|
2023-02-21 14:48:37 +01:00
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
2022-03-14 14:56:35 +01:00
|
|
|
{
|
2022-04-06 13:08:40 +02:00
|
|
|
$session->redirect($inicio->url);
|
2022-03-14 14:56:35 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2024-10-07 13:17:36 +02:00
|
|
|
$menu = renderMenu($inicio->and($inicio->children));
|
|
|
|
?>
|
|
|
|
<main id="contido" class="completo">
|
|
|
|
<nav id="migas" aria-label="<?=_x("Breadcrumb", "Breadcrumb");?>">
|
|
|
|
<?=renderMigasPan($page);?>
|
|
|
|
</nav>
|
2024-10-08 20:55:01 +02:00
|
|
|
<article id="<?=$page->name;?>">
|
2024-10-07 13:17:36 +02:00
|
|
|
<h1 class="visually-hidden"><?=ucfirst($page->title);?></h1>
|
|
|
|
<?=getSeccions($page->seccions);?>
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
<?php
|
2022-04-08 12:32:49 +02:00
|
|
|
}
|