Skip to content

Commit

Permalink
Accessibility: mark as read buttons title text updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed May 13, 2019
1 parent aa26c5f commit ef6ad53
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 14 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ <h2 class="feed-add-title">{function="_t('ADD_FEED')"}</h2>
</button>
{function="Plugin::callHook("menu_pre_folder_link", array(&$value))"}
<a href="./?action=selectedFolder&amp;folder={$value->getId()}" title="{function="_t('READ_FOLDER_ITEMS')"}" class="sidebar-item js-folder-name">{$value->getName()}</a>
<button class="mark-as-read js-mark-as-read js-folder-counter{if="$unreadEventsForFolder === 0"} hidden{/if}" title="{function="_t('MARK_AS_READ_FOLDER_ITEMS',array($unreadEventsForFolder))"}"><span data-count="number">{$unreadEventsForFolder}</span> <span class="sr-only" data-count="text">{function="_t($unreadEventsForFolder > 1 ? 'LEEDVIBES_UNREADS' : 'LEEDVIBES_UNREAD')"}</span></button>
<button
class="mark-as-read js-mark-as-read js-folder-counter
{if="$unreadEventsForFolder === 0"} hidden{/if}"
title="{function="_t('LEEDVIBES_FOLDER_MARK_AS_READ', array($value->getName()))"}"
>
<span data-count="number">{$unreadEventsForFolder}</span> <span class="sr-only" data-count="text">{function="_t($unreadEventsForFolder > 1 ? 'LEEDVIBES_UNREADS' : 'LEEDVIBES_UNREAD')"}</span>
</button>
{function="Plugin::callHook("menu_post_folder_link", array(&$value))"}
</div>
<ul class="feed js-toggle-item{if="!$value->getIsopen()"} feed--closed{/if}">
Expand All @@ -120,7 +126,13 @@ <h2 class="feed-add-title">{function="_t('ADD_FEED')"}</h2>
<span class="sidebar-item-label js-feed-name">{$value2['name']}</span>
</a>
{$feedUnreadCount=isset( $unread[$value2['id']] ) ? $unread[$value2['id']] : 0}
<button class="mark-as-read js-mark-as-read js-feed-counter{if="! isset($unread[$value2['id']])"} hidden{/if}" title="{function="_t('MARK_AS_READ')"}"><span data-count="number">{$feedUnreadCount}</span> <span class="sr-only" data-count="text">{function="_t($feedUnreadCount > 1 ? 'LEEDVIBES_UNREADS' : 'LEEDVIBES_UNREAD')"}</span></button>
<button
class="mark-as-read js-mark-as-read js-feed-counter
{if="! isset($unread[$value2['id']])"} hidden{/if}"
title="{function="_t('LEEDVIBES_FEED_MARK_AS_READ', array($value2['name']))"}"
>
<span data-count="number">{$feedUnreadCount}</span> <span class="sr-only" data-count="text">{function="_t($feedUnreadCount > 1 ? 'LEEDVIBES_UNREADS' : 'LEEDVIBES_UNREAD')"}</span>
</button>
{function="Plugin::callHook("menu_post_feed_link", array(&$value))"}
</li>
{/loop}
Expand Down
2 changes: 2 additions & 0 deletions locale/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"LEEDVIBES_ALL_FEEDS": "All feeds",
"LEEDVIBES_CONNECTION": "Connection",
"LEEDVIBES_FEED_MARK_AS_READ": "Mark as read all the events from the $1's feed",
"LEEDVIBES_FOLDER_MARK_AS_READ": "Mark as read all the events from the $1's folder",
"LEEDVIBES_FOLDER_TOGGLE_OFF": "Show the feed list of the folder",
"LEEDVIBES_FOLDER_TOGGLE_ON": "Hide the feed list of the folder",
"LEEDVIBES_GET_NEW_EVENTS": "Show new events",
Expand Down
2 changes: 2 additions & 0 deletions locale/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"LEEDVIBES_ALL_FEEDS": "Tous les flux",
"LEEDVIBES_CONNECTION": "Connexion",
"LEEDVIBES_FEED_MARK_AS_READ": "Marquer comme lus tous les événements du flux $1",
"LEEDVIBES_FOLDER_MARK_AS_READ": "Marquer comme lus tous les événements du dossier $1",
"LEEDVIBES_FOLDER_TOGGLE_OFF": "Montrer la liste des flux du dossier",
"LEEDVIBES_FOLDER_TOGGLE_ON": "Masquer la liste des flux du dossier",
"LEEDVIBES_GET_NEW_EVENTS": "Afficher les nouvelles entrées",
Expand Down

0 comments on commit ef6ad53

Please sign in to comment.