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)

-
-