additional_plugins/serendipity_event_guestbook/plugin_guestbook_backend_header.tpl
Matthias Mees c3e8443d73 Improve accessibility of iconfont icons
Iconfont icons are of no value to screenreader users; in our case,
they get alternative text. By adding 'aria-hidden="true"' to the
<span> holding the iconfont icon, we avoid the screenreader trying
to announce the iconfont icon.

This commit is to ensure consistency with the core across the
additional_plugins repository. While I was at it, I also cleaned
up the ChangeLogs, trying to establish a common pattern.
2016-10-26 15:07:46 +02:00

38 lines
1.8 KiB
Smarty

{*
plugin_guestbook_backend_header.tpl v.3.59 2016-01-08 Ian
*}
{function name="feedback"}{* message and error feedback for approve, view, add issues *}
<div class="msg_{if $msg_header == $CONST.THANKS_FOR_ENTRY}success{else}error{/if}">
<span class="icon-{if $msg_header == $CONST.THANKS_FOR_ENTRY}ok{else}attention{/if}-circled" aria-hidden="true"></span> <strong>{$msg_header}</strong>
{if $guestbook_messages}
<ul>
{foreach $guestbook_messages AS $msg}
<li>{$msg}</li>
{/foreach}
</ul>
{/if}
</div>
{/function}
{if $gb_isnav}
<div class="clearfix gbnav">
<ul>
<li{$gb_liva}>
<a href="{$serendipityHTTPPath}serendipity_admin.php?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=guestbook&amp;serendipity[guestbookcategory]=gbview">{$CONST.PLUGIN_GUESTBOOK_ADMIN_VIEW}</a>
</li>
{if $gb_moderate === true}
<li{$gb_liapa}>
<a href="{$serendipityHTTPPath}serendipity_admin.php?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=guestbook&amp;serendipity[guestbookcategory]=gbapp">{$CONST.PLUGIN_GUESTBOOK_ADMIN_APP}</a>
</li>
{/if}
<li{$gb_liada}>
<a href="{$serendipityHTTPPath}serendipity_admin.php?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=guestbook&amp;serendipity[guestbookcategory]=gbadd">{$CONST.PLUGIN_GUESTBOOK_ADMIN_ADD}</a>
</li>
<li{$gb_lida}>
<a href="{$serendipityHTTPPath}serendipity_admin.php?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=guestbook&amp;serendipity[guestbookcategory]=gbdb">{$CONST.PLUGIN_GUESTBOOK_ADMIN_DBC}</a>
</li>
</ul>
</div>
{/if}