diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-07-18 18:00:22 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-07-18 18:00:22 +0200 |
commit | e3dc796e5d0c7ac48441ebf2e5b3ca59f3b14b82 (patch) | |
tree | e53bf76ef76e38267bd3df6a7c3a40aef096c49e /lib | |
parent | d5437e2a30347d36d89be48ff9779bdacd6ef6ae (diff) | |
download | nextcloud-server-e3dc796e5d0c7ac48441ebf2e5b3ca59f3b14b82.tar.gz nextcloud-server-e3dc796e5d0c7ac48441ebf2e5b3ca59f3b14b82.zip |
Add skip content buttons to the public page layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } /** |