31 lines
No EOL
978 B
PHP
31 lines
No EOL
978 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($inicio->title) . '</h2>' . "\n";
|
|
$contido .= getSeccions($page->seccions) . "\n";
|
|
$contido .= '<section class="contedor">' . "\n";
|
|
$contido .= '<h3 class="visually-hidden">' . $page->title . '</h3>' . "\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 .= '</section>' . "\n";
|
|
$contido .= '</article>' . "\n";
|
|
} |