aboutsummaryrefslogtreecommitdiff
path: root/templates/tabs.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-05-28 14:31:53 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-05-28 14:31:53 +0000
commitcc617253eb92d8e57d82dcc269a2f535681931a4 (patch)
tree1b5bb8ad15ac02bf3902eae9aa53923d273a17d5 /templates/tabs.php
parente9806e73f7d91f0810a298bc6c9139e6da138575 (diff)
display skip links for first and second navigagion layer only when there are elements, fixes #4049
Closes #4049 Merge request studip/studip!2949
Diffstat (limited to 'templates/tabs.php')
-rw-r--r--templates/tabs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/tabs.php b/templates/tabs.php
index 987e0fd..24597cb 100644
--- a/templates/tabs.php
+++ b/templates/tabs.php
@@ -7,10 +7,10 @@ foreach (Navigation::getItem("/")->getSubNavigation() as $path => $nav) {
}
?>
<div class="tabs_wrapper">
- <? SkipLinks::addIndex(_('Zweite Navigationsebene'), 'navigation-level-2', 10, false); ?>
<ul id="tabs">
<? if (!empty($navigation)): ?>
- <? foreach ($navigation as $path => $nav) : ?>
+ <? SkipLinks::addIndex(_('Zweite Navigationsebene'), 'navigation-level-2', 10, false); ?>
+ <? foreach ($navigation as $path => $nav) : ?>
<? if ($nav->isVisible()) : ?>
<li id="nav_<?= $path1 ?? '' ?>_<?= $path ?>"<?= $nav->isActive() ? ' class="current"' : '' ?>>
<? if ($nav->isEnabled()): ?>