Use aria-hidden to hide elements used purely for decoration
authorMarcel Werk <burntime@woltlab.com>
Sun, 7 Oct 2018 11:20:58 +0000 (13:20 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 7 Oct 2018 11:20:58 +0000 (13:20 +0200)
See #2713

17 files changed:
com.woltlab.wcf/templates/boxFollowingsOnline.tpl
com.woltlab.wcf/templates/boxStaffOnline.tpl
com.woltlab.wcf/templates/boxTodaysBirthdays.tpl
com.woltlab.wcf/templates/boxTodaysFollowingBirthdays.tpl
com.woltlab.wcf/templates/boxUserList.tpl
com.woltlab.wcf/templates/messageQuoteList.tpl
com.woltlab.wcf/templates/messageSidebar.tpl
com.woltlab.wcf/templates/moderationArticle.tpl
com.woltlab.wcf/templates/moderationComment.tpl
com.woltlab.wcf/templates/pageHeaderUser.tpl
com.woltlab.wcf/templates/quoteMetaCode.tpl
com.woltlab.wcf/templates/recentActivityListItem.tpl
com.woltlab.wcf/templates/searchResultList.tpl
com.woltlab.wcf/templates/userBirthdayList.tpl
com.woltlab.wcf/templates/userListItem.tpl
com.woltlab.wcf/templates/userProfileLikeItem.tpl
com.woltlab.wcf/templates/usersOnlineList.tpl

index 9a05c84a7a639064fca2f68cfc975f4bc61ebe11..cf328bf506648582e029036933033d9b151b3977 100644 (file)
@@ -1,7 +1,7 @@
 <ul class="sidebarItemList">
        {foreach from=$usersOnlineList item=userOnline}
                <li class="box32">
-                       <a href="{link controller='User' object=$userOnline}{/link}">{@$userOnline->getAvatar()->getImageTag(32)}</a>
+                       <a href="{link controller='User' object=$userOnline}{/link}" aria-hidden="true">{@$userOnline->getAvatar()->getImageTag(32)}</a>
                        
                        <div class="sidebarItemTitle">
                                <h3><a href="{link controller='User' object=$userOnline}{/link}" class="userLink" data-user-id="{@$userOnline->userID}">{$userOnline->username}</a></h3>
index d6e306cede38c284d0bfb5883aaa01272a0ff2df..fe2b9172f245bbcd71ec0355f6d0d760de25da58 100644 (file)
@@ -1,7 +1,7 @@
 <ul class="sidebarItemList">
        {foreach from=$usersOnlineList item=userOnline}
                <li class="box32">
-                       <a href="{link controller='User' object=$userOnline}{/link}">{@$userOnline->getAvatar()->getImageTag(32)}</a>
+                       <a href="{link controller='User' object=$userOnline}{/link}" aria-hidden="true">{@$userOnline->getAvatar()->getImageTag(32)}</a>
                        
                        <div class="sidebarItemTitle">
                                <h3><a href="{link controller='User' object=$userOnline}{/link}" class="userLink" data-user-id="{@$userOnline->userID}">{$userOnline->username}</a></h3>
index a63bba297d3a55c121793e8d291382e9559f26d5..8c7a0daac97933bd361f77506b447253c71d674d 100644 (file)
@@ -1,7 +1,7 @@
 <ul class="sidebarItemList">
        {foreach from=$birthdayUserProfiles item=birthdayUserProfile}
                <li class="box32">
-                       <a href="{link controller='User' object=$birthdayUserProfile}{/link}">{@$birthdayUserProfile->getAvatar()->getImageTag(32)}</a>
+                       <a href="{link controller='User' object=$birthdayUserProfile}{/link}" aria-hidden="true">{@$birthdayUserProfile->getAvatar()->getImageTag(32)}</a>
                        
                        <div class="sidebarItemTitle">
                                <h3><a href="{link controller='User' object=$birthdayUserProfile}{/link}" class="userLink" data-user-id="{@$birthdayUserProfile->userID}">{$birthdayUserProfile->username}</a></h3>
index 742e894e69fdf52f69217a587d9681b45216a42a..657133e1e655a33c248692b5b8d838c7cf058d3d 100644 (file)
@@ -1,7 +1,7 @@
 <ul class="sidebarItemList">
        {foreach from=$birthdayUserProfiles item=birthdayUserProfile}
                <li class="box32">
-                       <a href="{link controller='User' object=$birthdayUserProfile}{/link}">{@$birthdayUserProfile->getAvatar()->getImageTag(32)}</a>
+                       <a href="{link controller='User' object=$birthdayUserProfile}{/link}" aria-hidden="true">{@$birthdayUserProfile->getAvatar()->getImageTag(32)}</a>
                        
                        <div class="sidebarItemTitle">
                                <h3><a href="{link controller='User' object=$birthdayUserProfile}{/link}" class="userLink" data-user-id="{@$birthdayUserProfile->userID}">{$birthdayUserProfile->username}</a></h3>
index 58925017fa7c26618d4e39f34705b623c4ccd6f4..69b4f987e36b928d195b194122400d65dfd9ebdf 100644 (file)
@@ -1,7 +1,7 @@
 <ul class="sidebarItemList">
        {foreach from=$boxUsers item=boxUser}
                <li class="box24">
-                       <a href="{link controller='User' object=$boxUser}{/link}">{@$boxUser->getAvatar()->getImageTag(24)}</a>
+                       <a href="{link controller='User' object=$boxUser}{/link}" aria-hidden="true">{@$boxUser->getAvatar()->getImageTag(24)}</a>
                        
                        <div class="sidebarItemTitle">
                                <h3><a href="{link controller='User' object=$boxUser}{/link}" class="userLink" data-user-id="{@$boxUser->userID}">{$boxUser->username}</a></h3>
index 1e10c7752d409af47446cec1d25c738f1556ed7f..aca61802a9aeacd4b845a537b85e19e3267783bd 100644 (file)
@@ -5,7 +5,7 @@
                        <header class="messageHeader">
                                <div class="box32 messageHeaderWrapper">
                                        {if $userProfiles[$message->getUserID()]|isset}
-                                               <a href="{link controller='User' object=$userProfiles[$message->getUserID()]}{/link}">{@$userProfiles[$message->getUserID()]->getAvatar()->getImageTag(32)}</a>
+                                               <a href="{link controller='User' object=$userProfiles[$message->getUserID()]}{/link}" aria-hidden="true">{@$userProfiles[$message->getUserID()]->getAvatar()->getImageTag(32)}</a>
                                        {else}
                                                <span><img src="{@$__wcf->getPath()}images/avatars/avatar-default.svg" alt="" class="userAvatarImage" style="width: 32px; height: 32px"></span>
                                        {/if}
index c1034d8a1bb9c18a392b9ae2c72808ff3f75b8bf..7737777e4f529667275e5426c10eb426530c737e 100644 (file)
@@ -17,7 +17,7 @@
                        
                        {if $userProfile->getAvatar()}
                                <div class="userAvatar">
-                                       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}">{@$userProfile->getAvatar()->getImageTag(128)}</a>
+                                       <a href="{link controller='User' object=$userProfile->getDecoratedObject()}{/link}" aria-hidden="true">{@$userProfile->getAvatar()->getImageTag(128)}</a>
                                        
                                        {if MESSAGE_SIDEBAR_ENABLE_ONLINE_STATUS && !$isReply && $userProfile->isOnline()}<span class="badge green badgeOnline" title="{lang}wcf.user.online.title{/lang}">{lang}wcf.user.online{/lang}</span>{/if}
                                </div>
index b385eef986fecaa12e0e05eaa7bdccc050254dde..ba03e64ce0f84ed64c5bafa15ea78f288537c864 100644 (file)
@@ -3,7 +3,7 @@
                <header class="messageHeader">
                        <div class="box32 messageHeaderWrapper">
                                {if $article->getUserProfile()->userID}
-                                       <a href="{link controller='User' object=$article->getUserProfile()->getDecoratedObject()}{/link}">{@$article->getUserProfile()->getAvatar()->getImageTag(32)}</a>
+                                       <a href="{link controller='User' object=$article->getUserProfile()->getDecoratedObject()}{/link}" aria-hidden="true">{@$article->getUserProfile()->getAvatar()->getImageTag(32)}</a>
                                {else}
                                        <span>{@$article->getUserProfile()->getAvatar()->getImageTag(32)}</span>
                                {/if}
index a846600619b0242bfe5bf76783bf54bf74cc6898..54dca5a1ab92bb37aec804162982905120914575 100644 (file)
@@ -3,7 +3,7 @@
                <header class="messageHeader">
                        <div class="box32 messageHeaderWrapper">
                                {if $message->userID}
-                                       <a href="{link controller='User' object=$message->getUserProfile()->getDecoratedObject()}{/link}">{@$message->getUserProfile()->getAvatar()->getImageTag(32)}</a>
+                                       <a href="{link controller='User' object=$message->getUserProfile()->getDecoratedObject()}{/link}" aria-hidden="true">{@$message->getUserProfile()->getAvatar()->getImageTag(32)}</a>
                                {else}
                                        <span>{@$message->getUserProfile()->getAvatar()->getImageTag(32)}</span>
                                {/if}
index 5cd367eca1f5e2b2b43d028492614dadb7b2562f..0bb61596fc76afaddbdfa29dab860978a8a78e28 100644 (file)
@@ -24,7 +24,7 @@
                                                <ul class="interactiveDropdownItems interactiveDropdownItemsUserMenu">
                                                        <li>
                                                                <div class="box48">
-                                                                       <a href="{link controller='User' object=$__wcf->user}{/link}">{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(48)}</a>
+                                                                       <a href="{link controller='User' object=$__wcf->user}{/link}" aria-hidden="true">{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(48)}</a>
                                                                        
                                                                        <div class="containerHeadline">
                                                                                <h3>
index f695da1f9a7808cdfc2b8a7a7471168d3427e1ce..66dff97acfc869769bc222f15f312c3d8a4634e7 100644 (file)
@@ -1,7 +1,7 @@
 <blockquote class="quoteBox collapsibleBbcode jsCollapsibleBbcode{if $collapseQuote} collapsed{/if}{if !$quoteAuthorObject} quoteBoxSimple{/if}"{if $quoteLink} cite="{$quoteLink}"{/if}>
        <div class="quoteBoxIcon">
                {if $quoteAuthorObject}
-                       <a href="{link controller='User' object=$quoteAuthorObject}{/link}" class="userLink" data-user-id="{@$quoteAuthorObject->userID}">{@$quoteAuthorObject->getAvatar()->getImageTag(64)}</a>
+                       <a href="{link controller='User' object=$quoteAuthorObject}{/link}" class="userLink" data-user-id="{@$quoteAuthorObject->userID}" aria-hidden="true">{@$quoteAuthorObject->getAvatar()->getImageTag(64)}</a>
                {else}
                        <span class="quoteBoxQuoteSymbol"></span>
                {/if}
index d824d03b3a2e1186783cc7308072c3eff8da1f9f..5e609c54e9e934ba972a7cb00c2023046d6d9d19 100644 (file)
@@ -1,7 +1,7 @@
 {foreach from=$eventList item=event}
        <li>
                <div class="box48{if $__wcf->getUserProfileHandler()->isIgnoredUser($event->getUserProfile()->userID)} ignoredUserContent{/if}">
-                       <a href="{link controller='User' object=$event->getUserProfile()}{/link}" title="{$event->getUserProfile()->username}">{@$event->getUserProfile()->getAvatar()->getImageTag(48)}</a>
+                       <a href="{link controller='User' object=$event->getUserProfile()}{/link}" title="{$event->getUserProfile()->username}" aria-hidden="true">{@$event->getUserProfile()->getAvatar()->getImageTag(48)}</a>
                        
                        <div>
                                <div class="containerHeadline">
index b9b62eee57aa197ace1eebbcd5ca120d3a97e827..73cfcb75a4c99a178dc776a60ae82864cb2fb2bd 100644 (file)
@@ -8,7 +8,7 @@
                                        {if $_messageCustomIcon === ''}
                                                {if $message->getUserProfile()}
                                                        {if $message->getUserProfile()->userID}
-                                                               <a href="{link controller='User' object=$message->getUserProfile()}{/link}" title="{$message->getUserProfile()->username}">{@$message->getUserProfile()->getAvatar()->getImageTag(48)}</a>
+                                                               <a href="{link controller='User' object=$message->getUserProfile()}{/link}" title="{$message->getUserProfile()->username}" aria-hidden="true">{@$message->getUserProfile()->getAvatar()->getImageTag(48)}</a>
                                                        {else}
                                                                <p>{@$message->getUserProfile()->getAvatar()->getImageTag(48)}</p>
                                                        {/if}
index 779769c6bb1a64a174d4c392a6d95a19e087e9f5..d9538b725e6b6b24ecfbec97ee60407875e61222 100644 (file)
@@ -4,7 +4,7 @@
                        {foreach from=$users item=user}
                                <li data-object-id="{@$user->userID}">
                                        <div class="box48">
-                                               <a href="{link controller='User' object=$user}{/link}" title="{$user->username}">{@$user->getAvatar()->getImageTag(48)}</a>
+                                               <a href="{link controller='User' object=$user}{/link}" title="{$user->username}" aria-hidden="true">{@$user->getAvatar()->getImageTag(48)}</a>
                                                
                                                <div class="details userInformation">
                                                        <div class="containerHeadline">
index 15abe6e63240ab99ceedbfde37322438a2f79004..8f42dd8d6be7752bcb7c8c0b8ac04502b9aa7b07 100644 (file)
@@ -1,6 +1,6 @@
 <li data-object-id="{@$user->userID}">
        <div class="box48">
-               <a href="{link controller='User' object=$user}{/link}" title="{$user->username}">{@$user->getAvatar()->getImageTag(48)}</a>
+               <a href="{link controller='User' object=$user}{/link}" title="{$user->username}" aria-hidden="true">{@$user->getAvatar()->getImageTag(48)}</a>
                
                <div class="details userInformation">
                        {include file='userInformation'}
index e5d7bd6c56487a4b4b549db390768aa51f3e5a5e..37f666e605db421e92effa151040f0410c6f11af 100644 (file)
@@ -1,7 +1,7 @@
 {foreach from=$likeList item=like}
        <li>
                <div class="box48">
-                       <a href="{link controller='User' object=$like->getUserProfile()}{/link}" title="{$like->getUserProfile()->username}">{@$like->getUserProfile()->getAvatar()->getImageTag(48)}</a>
+                       <a href="{link controller='User' object=$like->getUserProfile()}{/link}" title="{$like->getUserProfile()->username}" aria-hidden="true">{@$like->getUserProfile()->getAvatar()->getImageTag(48)}</a>
                        
                        <div>
                                <div class="containerHeadline">
index 4d0931e84f3fb80d1997dde96efb724b2e80471a..a2defa19da4a2f58afe93122ee600601ffbab752 100644 (file)
                {capture append=usersOnlineList}
                        <li>
                                <div class="box48">
-                                       <a href="{link controller='User' object=$user}{/link}" title="{$user->username}">{@$user->getAvatar()->getImageTag(48)}</a>
+                                       <a href="{link controller='User' object=$user}{/link}" title="{$user->username}" aria-hidden="true">{@$user->getAvatar()->getImageTag(48)}</a>
                                        
                                        <div class="details userInformation">
                                                <div class="containerHeadline">