28 lines
No EOL
806 B
PHP
28 lines
No EOL
806 B
PHP
<?php namespace ProcessWire;
|
|
|
|
/** @var Page $page API variable */
|
|
|
|
$menu = '';
|
|
$contido = '';
|
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
|
{
|
|
$session->redirect($inicio->url);
|
|
}
|
|
else
|
|
{
|
|
|
|
$menu = renderMenu($inicio->children);
|
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
|
$contido .= '<article id="inicio" class="container">' . "\n";
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($page->title) . '</h2>' . "\n";
|
|
$contido .= getSeccions($page->seccions) . "\n";
|
|
$contido .= '<div class="row g-4 py-5 row-cols-1 row-cols-lg-2 justify-content-center clearfix">' . "\n";
|
|
if(count($page->ligazon_imaxe))
|
|
{
|
|
$contido .= getSeccions($page->ligazon_imaxe) . "\n";
|
|
}
|
|
$contido .= '</div>' . "\n";
|
|
$contido .= '</article>' . "\n";
|
|
} |