summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-12-17 16:05:01 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-12-19 00:35:24 +0100
commita2c2775df2c2a02c3f8bf184207ae37758cf5af5 (patch)
treeba06b10b6b76ba29f9c28d57f62fb60f222fe529 /core/templates
parent7b2ae4676243085cd1dc6847191b1718aa914292 (diff)
downloadnextcloud-server-a2c2775df2c2a02c3f8bf184207ae37758cf5af5.tar.gz
nextcloud-server-a2c2775df2c2a02c3f8bf184207ae37758cf5af5.zip
introduce first 'Skip to content' button
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 11e2df71458..238b2dd163e 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -40,14 +40,16 @@
<?php endif; ?>
</div>
<header><div id="header">
- <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud">
+ <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
+ title="" id="owncloud" tabindex="-1">
<div class="logo-icon svg">
<h1 class="hidden-visually">
<?php p($theme->getName()); ?>
</h1>
</div>
</a>
- <a href="#" class="menutoggle" tabindex="1">
+
+ <a href="#" class="menutoggle" tabindex="2">
<h1 class="header-appname">
<?php
if(OC_Util::getEditionString() === '') {
@@ -59,9 +61,14 @@
</h1>
<div class="icon-caret svg"></div>
</a>
+
+ <div id="skip-to-content">
+ <a href="#app-content" tabindex="1"><?php p($l->t('Skip to content')); ?></a>
+ </div>
+
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div id="settings" class="svg">
- <div id="expand" tabindex="3" role="link">
+ <div id="expand" tabindex="4" role="link">
<?php if ($_['enableAvatars']): ?>
<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown"'); } else { print_unescaped('" style="display: none"'); } ?>>
<?php if ($_['userAvatarSet']): ?>
@@ -100,7 +107,7 @@
</label>
<input id="searchbox" class="svg" type="search" name="query"
value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
- autocomplete="off" tabindex="2" />
+ autocomplete="off" tabindex="3" />
</form>
</div></header>