aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2022-12-13 15:46:28 +0000
committerThomas Hackl <hackl@data-quest.de>2022-12-13 15:46:28 +0000
commite5e9bd58b60f8fb24f27be0f79dfa1c7eedcdb22 (patch)
tree051276152d0bb15211f8109bb61a622a5102b4aa /templates
parent7c2ae216f313f5fd2d70b57cfa2e48292ee3420f (diff)
Resolve "Polishing für die neue HTML-Stuktur" Teil 1
Closes #1886 and #1888 Merge request studip/studip!1231
Diffstat (limited to 'templates')
-rw-r--r--templates/contentbar/contentbar.php4
-rw-r--r--templates/footer.php34
-rw-r--r--templates/header.php1
3 files changed, 20 insertions, 19 deletions
diff --git a/templates/contentbar/contentbar.php b/templates/contentbar/contentbar.php
index 851c77e..dcdeeb8 100644
--- a/templates/contentbar/contentbar.php
+++ b/templates/contentbar/contentbar.php
@@ -1,4 +1,4 @@
-<header>
+<section>
<header class="contentbar">
<nav class="contentbar-nav"></nav>
<div class="contentbar-wrapper-left">
@@ -34,4 +34,4 @@
<? endif ?>
</div>
</header>
-</div>
+</section>
diff --git a/templates/footer.php b/templates/footer.php
index 57fe54c..d652cb2 100644
--- a/templates/footer.php
+++ b/templates/footer.php
@@ -35,22 +35,24 @@
<? endif; ?>
<? if (Navigation::hasItem('/footer')) : ?>
- <ul>
- <? foreach (Navigation::getItem('/footer') as $nav): ?>
- <? if ($nav->isVisible()): ?>
- <li>
- <a
- <? if (is_internal_url($url = $nav->getURL())) : ?>
- href="<?= URLHelper::getLink($url, $link_params ?? null) ?>"
- <? else: ?>
- href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer"
- <? endif ?>
- <?= arrayToHtmlAttributes($nav->getLinkAttributes()) ?>
- ><?= htmlReady($nav->getTitle()) ?></a>
- </li>
- <? endif; ?>
- <? endforeach; ?>
- </ul>
+ <nav id="main-footer-navigation" aria-label="<?= _('Fußzeilennavigation') ?>">
+ <ul>
+ <? foreach (Navigation::getItem('/footer') as $nav): ?>
+ <? if ($nav->isVisible()): ?>
+ <li>
+ <a
+ <? if (is_internal_url($url = $nav->getURL())) : ?>
+ href="<?= URLHelper::getLink($url, $link_params ?? null) ?>"
+ <? else: ?>
+ href="<?= htmlReady($url) ?>" target="_blank" rel="noopener noreferrer"
+ <? endif ?>
+ <?= arrayToHtmlAttributes($nav->getLinkAttributes()) ?>
+ ><?= htmlReady($nav->getTitle()) ?></a>
+ </li>
+ <? endif; ?>
+ <? endforeach; ?>
+ </ul>
+ </nav>
<? endif; ?>
</footer>
<?= $this->render_partial('debug/db-log.php') ?>
diff --git a/templates/header.php b/templates/header.php
index 408b5b8..5e4ed10 100644
--- a/templates/header.php
+++ b/templates/header.php
@@ -203,7 +203,6 @@ if ($navigation) {
</li>
<? endif; ?>
- <li id="responsive-toggle-desktop"></li>
<li id="responsive-toggle-fullscreen"></li>
</ul>
</div>