praiadeseselle/site/templates/inicio.php

23 lines
747 B
PHP
Raw Normal View History

2022-03-09 18:09:44 +01:00
<?php namespace ProcessWire;
/** @var Page $page API variable */
$menu = '';
$contido = '';
2022-10-06 13:14:42 +02:00
$contido .= renderMigasPan($page) . "\n";
$contido .= '<article id="inicio" class="container">' . "\n";
2022-10-06 13:14:42 +02:00
$contido .= '<h2 class="visually-hidden">' . ucfirst($inicio->title) . '</h2>' . "\n";
2022-03-09 18:09:44 +01:00
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
2022-03-09 18:09:44 +01:00
{
2023-02-21 14:48:37 +01:00
$menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto')));
$contido .= renderTextoMantemento($configuracion['mantemento']['titular'], $configuracion['mantemento']['artigo'], $configuracion['mantemento']['imaxe']) . "\n";
2022-03-09 18:09:44 +01:00
}
else
{
$menu = renderMenu($inicio->children);
$contido .= getSeccions($page->seccions) . "\n";
}
2022-10-06 13:14:42 +02:00
$contido .= '</article>' . "\n";