From dc416d6b8be7db7afee3cafb932aef85118832fa Mon Sep 17 00:00:00 2001 From: Laegnur Date: Fri, 10 Mar 2023 16:52:43 +0100 Subject: [PATCH] Mais correccions de estilos. --- site/templates/categoria.php | 9 ++++++++- site/templates/contacto.php | 1 - site/templates/etiqueta.php | 9 ++++++++- site/templates/layout/partial/main_head.php | 6 +++--- site/templates/publicacion.php | 9 ++++++++- 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/site/templates/categoria.php b/site/templates/categoria.php index 837cbef..87860e2 100644 --- a/site/templates/categoria.php +++ b/site/templates/categoria.php @@ -5,7 +5,14 @@ $menu = ''; $contido = ''; -$menu = renderMenu($inicio->children); +if($configuracion['mantemento']['activo'] && !$user->isLoggedin()) +{ + $menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto'))); +} +else +{ + $menu = renderMenu($inicio->children); +} $publicacions = pages()->get('/noticias/publicaciones/')->children("template='publicacion',categorias=$page,sort=-fecha_publicacion,limit=10"); diff --git a/site/templates/contacto.php b/site/templates/contacto.php index ddf7f93..14ac1b1 100644 --- a/site/templates/contacto.php +++ b/site/templates/contacto.php @@ -11,7 +11,6 @@ if($configuracion['mantemento']['activo'] && !$user->isLoggedin()) } else { - $menu = renderMenu($inicio->children); } diff --git a/site/templates/etiqueta.php b/site/templates/etiqueta.php index 22b283e..1be2cc4 100644 --- a/site/templates/etiqueta.php +++ b/site/templates/etiqueta.php @@ -5,7 +5,14 @@ $menu = ''; $contido = ''; -$menu = renderMenu($inicio->children); +if($configuracion['mantemento']['activo'] && !$user->isLoggedin()) +{ + $menu = renderMenu($pages->get('/noticias')->and($pages->get('/contacto'))); +} +else +{ + $menu = renderMenu($inicio->children); +} $publicacions = pages()->get('/noticias/publicaciones/')->children("template='publicacion',etiquetas=$page,sort=-fecha_publicacion,limit=10"); diff --git a/site/templates/layout/partial/main_head.php b/site/templates/layout/partial/main_head.php index 53e2a98..a34e18f 100644 --- a/site/templates/layout/partial/main_head.php +++ b/site/templates/layout/partial/main_head.php @@ -96,8 +96,8 @@ if($input->get->logout == true)

-
-