From 046d5451b15d46581cde846676e0b6d631fedbb7 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 24 Nov 2021 14:08:16 +0100 Subject: Improve accessibility of the title of the settings Before every setting page had the same title and this is causing issues for screenreaders since they can't differenciate the title of page. Now a new variable is available for apps to declare the page subtitle. This new variable is implemented for the settings app and while at it I added a bit more type hinting to the stuff I touched :) Signed-off-by: Carl Schwan --- core/templates/layout.user.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/templates/layout.user.php') diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 82626733bd2..ecb0c614dd4 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -18,6 +18,7 @@ $getUserAvatar = static function (int $size) use ($_): string { <?php + p(!empty($_['pageTitle'])?$_['pageTitle'].' - ':''); p(!empty($_['application'])?$_['application'].' - ':''); p($theme->getTitle()); ?> -- cgit v1.2.3