praiadeseselle/site/templates/inicio.php

23 lines
No EOL
747 B
PHP

<?php namespace ProcessWire;
/** @var Page $page API variable */
$menu = '';
$contido = '';
$contido .= renderMigasPan($page) . "\n";
$contido .= '<article id="inicio" class="container">' . "\n";
$contido .= '<h2 class="visually-hidden">' . ucfirst($inicio->title) . '</h2>' . "\n";
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
{
$menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto')));
$contido .= renderTextoMantemento($configuracion['mantemento']['titular'], $configuracion['mantemento']['artigo'], $configuracion['mantemento']['imaxe']) . "\n";
}
else
{
$menu = renderMenu($inicio->children);
$contido .= getSeccions($page->seccions) . "\n";
}
$contido .= '</article>' . "\n";