Skip to content
Snippets Groups Projects
Commit 31e6680a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

let skiplinks navigation be a nav element, fixes #2642, fixes #2645

Closes #2642 and #2645

Merge request studip/studip!1802
parent a4063842
No related branches found
No related tags found
No related merge requests found
...@@ -62,5 +62,5 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); ...@@ -62,5 +62,5 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
</head> </head>
<body id="<?= PageLayout::getBodyElementId() ?>"> <body id="<?= PageLayout::getBodyElementId() ?>">
<div id="skip_link_navigation" aria-busy="true"></div> <nav id="skip_link_navigation" aria-busy="true"></nav>
<?= PageLayout::getBodyElements() ?> <?= PageLayout::getBodyElements() ?>
...@@ -71,7 +71,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); ...@@ -71,7 +71,7 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
</head> </head>
<body id="<?= PageLayout::getBodyElementId() ?>" <? if (!PageLayout::isSidebarEnabled()) echo 'class="no-sidebar"'; ?>> <body id="<?= PageLayout::getBodyElementId() ?>" <? if (!PageLayout::isSidebarEnabled()) echo 'class="no-sidebar"'; ?>>
<div id="skip_link_navigation" aria-busy="true"></div> <nav id="skip_link_navigation" aria-busy="true"></nav>
<?= PageLayout::getBodyElements() ?> <?= PageLayout::getBodyElements() ?>
<? include 'lib/include/header.php' ?> <? include 'lib/include/header.php' ?>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Lifter010: TODO # Lifter010: TODO
?> ?>
<? if ($navigation instanceof Navigation && iterator_count($navigation) > 0) : ?> <? if ($navigation instanceof Navigation && iterator_count($navigation) > 0) : ?>
<ul role="navigation" id="skiplink_list"> <ul id="skiplink_list">
<? foreach ($navigation as $index => $nav) : ?> <? foreach ($navigation as $index => $nav) : ?>
<li> <li>
<? if (mb_substr($url = $nav->getURL(), 0, 1) == '#') : ?> <? if (mb_substr($url = $nav->getURL(), 0, 1) == '#') : ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment