praiadeseselle/site/templates/publicacion.php

18 lines
407 B
PHP
Raw Normal View History

2022-10-25 14:47:38 +02:00
<?php namespace ProcessWire;
2023-02-21 14:48:37 +01:00
/** @var Page $page API variable */
2022-10-25 14:47:38 +02:00
2023-02-21 14:48:37 +01:00
$menu = '';
$contido = '';
2022-10-25 14:47:38 +02:00
2023-03-10 16:52:43 +01:00
if($configuracion['mantemento']['activo'] && !$user->isLoggedin())
{
$menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto')));
}
else
{
$menu = renderMenu($inicio->children);
}
2023-02-21 14:48:37 +01:00
$contido .= renderMigasPan($page) . "\n";
$contido .= renderArtigos($page, $languages->getLocale(), false);