diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2022-11-14 12:15:24 +0100 |
---|---|---|
committer | Simon L. (Rebase PR Action) <szaimen@e.mail.de> | 2022-11-15 10:50:33 +0000 |
commit | a8ff2ff0b05b639c0f8155f6828973f0519196b7 (patch) | |
tree | 738de4f31097c52b2476b70a314c76a99a7349d9 /core/templates/layout.public.php | |
parent | a57762576728d4bea0ed709ad10fd8e2666aaf28 (diff) | |
download | nextcloud-server-a8ff2ff0b05b639c0f8155f6828973f0519196b7.tar.gz nextcloud-server-a8ff2ff0b05b639c0f8155f6828973f0519196b7.zip |
Place ```<h1>``` into main content
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'core/templates/layout.public.php')
-rw-r--r-- | core/templates/layout.public.php | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 736a49eff22..65110fb84f5 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -38,21 +38,19 @@ <header id="header"> <div class="header-left"> - <span id="nextcloud"> - <div class="logo logo-icon svg"></div> - <h1 class="header-appname"> - <?php if (isset($template) && $template->getHeaderTitle() !== '') { ?> - <?php p($template->getHeaderTitle()); ?> - <?php } else { ?> - <?php p($theme->getName()); ?> - <?php } ?> - </h1> - <?php if (isset($template) && $template->getHeaderDetails() !== '') { ?> + <div class="logo logo-icon svg"></div> + <span id="nextcloud" class="header-appname"> + <?php if (isset($template) && $template->getHeaderTitle() !== '') { ?> + <?php p($template->getHeaderTitle()); ?> + <?php } else { ?> + <?php p($theme->getName()); ?> + <?php } ?> + </span> + <?php if (isset($template) && $template->getHeaderDetails() !== '') { ?> <div class="header-shared-by"> <?php p($template->getHeaderDetails()); ?> </div> - <?php } ?> - </span> + <?php } ?> </div> <div class="header-right"> @@ -87,9 +85,16 @@ } ?> </div> </header> - <div id="content" class="app-<?php p($_['appid']) ?>" role="main"> + <main id="content" class="app-<?php p($_['appid']) ?>"> + <h1 class="hidden-visually"> + <?php if (isset($template) && $template->getHeaderTitle() !== '') { ?> + <?php p($template->getHeaderTitle()); ?> + <?php } else { ?> + <?php p($theme->getName()); ?> + <?php } ?> + </h1> <?php print_unescaped($_['content']); ?> - </div> + </main> <?php if (isset($template) && $template->getFooterVisible()) { ?> <footer> <p><?php print_unescaped($theme->getLongFooter()); ?></p> |