34 lines
No EOL
1,017 B
PHP
34 lines
No EOL
1,017 B
PHP
<?php namespace ProcessWire;
|
|
|
|
/** @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 */
|
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
|
{
|
|
$session->redirect($inicio->url);
|
|
}
|
|
else
|
|
{
|
|
$menu = renderMenu($inicio->and($inicio->children));
|
|
?>
|
|
<main id="contido" class="completo">
|
|
<nav id="migas" aria-label="<?=_x("Breadcrumb", "Breadcrumb");?>">
|
|
<?=renderMigasPan($page);?>
|
|
</nav>
|
|
<article id="habitacions" class="flexible linna">
|
|
<h1 class="visually-hidden"><?=ucfirst($page->title);?></h1>
|
|
<?=getSeccions($page->seccions);?>
|
|
<?php if(count($page->ligazon_imaxe)): ?>
|
|
<?=getSeccions($page->ligazon_imaxe);?>
|
|
<?php endif; ?>
|
|
</article>
|
|
</main>
|
|
<?php
|
|
}
|