praiadeseselle/site/templates/inicio.php

23 lines
793 B
PHP
Raw Normal View History

2022-03-09 18:09:44 +01:00
<?php namespace ProcessWire;
$menu = '';
$contido = '';
2022-10-06 13:14:42 +02:00
$contido .= renderMigasPan($page) . "\n";
$contido .= '<article id="inicio">' . "\n";
$contido .= '<div class="contedor">' . "\n";
$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
{
$menu = renderMenu($inicio->and($pages->get('/noticias')), 0, 'paxinas');
$contido .= renderTextoMantemento($configuracion['mantemento']['titular'], $configuracion['mantemento']['artigo'], $configuracion['mantemento']['imaxe']) . "\n";
2022-03-09 18:09:44 +01:00
}
else
{
2022-03-10 01:47:18 +01:00
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
2022-10-06 13:14:42 +02:00
$contido .= getSeccions($inicio->seccions) . "\n";
}
2022-10-06 13:14:42 +02:00
$contido .= '</div>' . "\n";
$contido .= '</article>' . "\n";