commit c3b9f6e5eb6a9dc29f53bf2db6c42a88e74bfada
parent 0e0f76bd40484e41ca70d903edc0ab3df018114e
Author: markseu <mark2011@mayberg.se>
Date: Mon, 24 Oct 2022 17:31:46 +0200
Updated navigation/pagination for Steffen
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/layouts/navigation.html b/system/layouts/navigation.html
@@ -1,6 +1,6 @@
<?php $pages = $this->yellow->content->top() ?>
<?php $this->yellow->page->setLastModified($pages->getModified()) ?>
-<div class="navigation" role="navigation">
+<div class="navigation" role="navigation" aria-label="<?php echo $this->yellow->language->getTextHtml("coreNavigation") ?>">
<ul>
<?php foreach ($pages as $page): ?>
<li><a<?php echo $page->isActive() ? " class=\"active\" aria-current=\"page\"" : "" ?> href="<?php echo $page->getLocation(true) ?>"><?php echo $page->getHtml("titleNavigation") ?></a></li>
diff --git a/system/layouts/pagination.html b/system/layouts/pagination.html
@@ -1,6 +1,6 @@
<?php list($name, $pages) = $this->yellow->getLayoutArguments() ?>
<?php if ($pages->isPagination()): ?>
-<div class="pagination" role="navigation">
+<div class="pagination" role="navigation" aria-label="<?php echo $this->yellow->language->getTextHtml("corePagination") ?>">
<?php if ($pages->getPaginationPrevious()): ?>
<a class="previous" href="<?php echo $pages->getPaginationPrevious() ?>"><?php echo $this->yellow->language->getTextHtml("corePaginationPrevious") ?></a>
<?php endif ?>