From e3dc796e5d0c7ac48441ebf2e5b3ca59f3b14b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 18 Jul 2022 18:00:22 +0200 Subject: [PATCH] Add skip content buttons to the public page layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/templates/layout.public.php | 5 +++++ lib/private/TemplateLayout.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 17752de10cd..7251560cb65 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -31,6 +31,11 @@ $initialState) { ?> + +
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 96b785b2e1c..37f459ca52d 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -282,8 +282,8 @@ class TemplateLayout extends \OC_Template { $this->assign('initialStates', $this->initialState->getInitialStates()); - $this->assign('id-app-content', '#app-content'); - $this->assign('id-app-navigation', '#app-navigation'); + $this->assign('id-app-content', $renderAs === TemplateResponse::RENDER_AS_USER ? '#app-content' : '#content'); + $this->assign('id-app-navigation', $renderAs === TemplateResponse::RENDER_AS_USER ? '#app-navigation' : null); } /**