praiadeseselle/site/templates/inicio.php

28 lines
No EOL
1.1 KiB
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 */
?>
<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>
<?php if($configuracion['mantemento']['activo'] && !$user->isLoggedin()):?>
<?php $menu = renderMenu($inicio->and($pages->get('/noticias')->and($pages->get('/contacto'))));?>
<?=renderTextoMantemento($configuracion['mantemento']['titular'], $configuracion['mantemento']['artigo'], $configuracion['mantemento']['imaxe']);?>
<?php else: ?>
<?php $menu = renderMenu($inicio->and($inicio->children));?>
<?=getSeccions($page->seccions);?>
<?php endif; ?>
</article>
</main>