From 9e8d0685d6199dcf02593b97c89697361e771bf1 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 13 Feb 2026 17:44:12 +0100 Subject: [PATCH 1/2] Improve A11Y of the article navigation --- com.woltlab.wcf/templates/article.tpl | 40 +++++++++++++++------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index f1a5684760..915b79e3a8 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -210,40 +210,44 @@ {if $previousArticle || $nextArticle}
{if $previousArticle} -
-
+
+ {if $previousArticle->getTeaserImage()} -
{unsafe:$previousArticle->getTeaserImage()->getElementTag(96)}
+ {/if} -
-
{lang}wcf.article.previousArticle{/lang}
-
+

+ {lang}wcf.article.previousArticle{/lang} + -

-
-
+ + + {/if} {if $nextArticle} -
-
+
+ {if $nextArticle->getTeaserImage()} -
{unsafe:$nextArticle->getTeaserImage()->getElementTag(96)}
+ {/if} -
-
{lang}wcf.article.nextArticle{/lang}
-
+

+ {lang}wcf.article.nextArticle{/lang} + -

-
-
+ + + {/if}
{/if} From 7ffbde66c5fab71ac79e8b230317de5f4ccfd39c Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 13 Feb 2026 19:09:09 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Alexander Ebert --- com.woltlab.wcf/templates/article.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index 915b79e3a8..024dfb2937 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -211,7 +211,7 @@
{if $previousArticle}
-