summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-16 09:58:33 +0200
committerJulius Härtl <jus@bitgrid.net>2022-07-16 10:00:53 +0200
commitca0435382d91a734842b74c097c4f57590c6e8a0 (patch)
tree0d535ebbed04d8e5f0b171a51a983e4df616848a /core/templates
parent16b06dd75889bef318881a4783cff03aaeb971d9 (diff)
downloadnextcloud-server-ca0435382d91a734842b74c097c4f57590c6e8a0.tar.gz
nextcloud-server-ca0435382d91a734842b74c097c4f57590c6e8a0.zip
Allow to override #app-content and #app-navigation hrefs for content skipping
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 337a1dfc317..d6d0b4441bc 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -49,8 +49,8 @@ $getUserAvatar = static function (int $size) use ($_): string {
<input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
<?php }?>
- <a href="#app-content" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a>
- <a href="#app-navigation" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a>
+ <?php if ($_['id-app-content'] !== null) { ?><a href="<?php p($_['id-app-content']); ?>" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a><?php } ?>
+ <?php if ($_['id-app-navigation'] !== null) { ?><a href="<?php p($_['id-app-navigation']); ?>" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a><?php } ?>
<div id="notification-container">
<div id="notification"></div>