2022-03-09 18:09:44 +01:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2022-04-06 13:08:40 +02:00
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
2022-03-09 18:09:44 +01:00
|
|
|
$mantemento = $inicio->mantemento;
|
2022-04-06 13:08:40 +02:00
|
|
|
$contido .= '<article id="inicio" class="contedor">';
|
|
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($inicio->title) . '</h2>';
|
|
|
|
$contido .= renderMigasPan($page);
|
2022-03-09 18:09:44 +01:00
|
|
|
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
|
|
{
|
2022-03-10 01:47:18 +01:00
|
|
|
$menu = renderMenu($inicio, 0, 'paxinas');
|
2022-04-06 13:08:40 +02:00
|
|
|
$contido .= renderGaleria($inicio->galeria);
|
|
|
|
$contido .= renderTexto($inicio->artigo);
|
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-04-06 13:08:40 +02:00
|
|
|
$contido .= renderGaleria($inicio->galeria);
|
|
|
|
$contido .= renderTexto($inicio->artigo);
|
|
|
|
|
|
|
|
}
|
|
|
|
$contido .= '</article>';
|