2022-05-03 12:18:01 +02:00
|
|
|
<?php namespace ProcessWire;
|
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
/** @var Page $page API variable */
|
|
|
|
|
2022-05-03 12:18:01 +02:00
|
|
|
$menu = '';
|
|
|
|
$contido = '';
|
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
|
2022-05-03 12:18:01 +02:00
|
|
|
{
|
|
|
|
$session->redirect($inicio->url);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
|
2023-02-18 18:21:02 +01:00
|
|
|
$menu = renderMenu($inicio->children);
|
2022-05-03 12:18:01 +02:00
|
|
|
|
2022-10-27 14:10:14 +02:00
|
|
|
$contido .= renderMigasPan($page) . "\n";
|
2023-02-18 18:21:02 +01:00
|
|
|
$contido .= '<article id="inicio" class="container">' . "\n";
|
2023-02-21 14:48:37 +01:00
|
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($page->title) . '</h2>' . "\n";
|
2023-02-18 18:21:02 +01:00
|
|
|
$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))
|
2022-05-03 12:18:01 +02:00
|
|
|
{
|
2023-02-18 18:21:02 +01:00
|
|
|
$contido .= getSeccions($page->ligazon_imaxe) . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|
2022-10-27 14:10:14 +02:00
|
|
|
$contido .= '</div>' . "\n";
|
|
|
|
$contido .= '</article>' . "\n";
|
2022-05-03 12:18:01 +02:00
|
|
|
}
|