From 0f90de33e3dabae033acc8b7c3d9c6697862df72 Mon Sep 17 00:00:00 2001 From: 810 Date: Thu, 30 Mar 2017 16:22:27 +0200 Subject: [PATCH] A11y icons (#5253) --- src/libraries/kunena/icons/icons.php | 396 ++++++++++++++------------- 1 file changed, 204 insertions(+), 192 deletions(-) diff --git a/src/libraries/kunena/icons/icons.php b/src/libraries/kunena/icons/icons.php index a9606539e14..bf4eb592e25 100644 --- a/src/libraries/kunena/icons/icons.php +++ b/src/libraries/kunena/icons/icons.php @@ -33,19 +33,19 @@ static public function arrowdown() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -63,19 +63,19 @@ static public function arrowup() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -97,15 +97,15 @@ static public function chevronright() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -127,15 +127,15 @@ static public function members() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -157,15 +157,15 @@ static public function user() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -187,15 +187,15 @@ static public function lock() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -217,15 +217,19 @@ static public function star() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; + } + elseif ($topicicontype == 'image') + { + return ''; } else { - return ''; + return ''; } } @@ -247,15 +251,15 @@ static public function shield() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -277,15 +281,19 @@ static public function flag() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; + } + elseif ($topicicontype == 'image') + { + return ''; } else { - return ''; + return ''; } } @@ -307,15 +315,15 @@ static public function poll() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -337,15 +345,15 @@ static public function stats() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -368,15 +376,15 @@ static public function search() } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -424,19 +432,19 @@ static public function clock() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -454,19 +462,19 @@ static public function thumbsup() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -484,19 +492,19 @@ static public function cancel() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -519,19 +527,19 @@ static public function ip() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -549,23 +557,23 @@ static public function email() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } elseif ($topicicontype == 'image') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -583,19 +591,19 @@ static public function bookmark() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -613,19 +621,19 @@ static public function back() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -643,19 +651,19 @@ static public function save() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -673,19 +681,19 @@ static public function edit() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -703,19 +711,19 @@ static public function pencil() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -733,19 +741,23 @@ static public function attach() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; + } + elseif ($topicicontype == 'image') + { + return ''; } else { - return ''; + return ''; } } @@ -763,19 +775,19 @@ static public function plus() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -796,19 +808,19 @@ static public function rss($text = null) if ($topicicontype == 'fa') { - return ''; + return ' aria-hidden="true"'; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -826,19 +838,19 @@ static public function upload() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -856,19 +868,19 @@ static public function picture() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -886,19 +898,19 @@ static public function file() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -916,19 +928,19 @@ static public function delete() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -947,22 +959,22 @@ static public function poll_add() if ($topicicontype == 'fa') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } elseif ($topicicontype == 'B2') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } elseif ($topicicontype == 'B3') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } else { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } } @@ -981,22 +993,22 @@ static public function poll_rem() if ($topicicontype == 'fa') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } elseif ($topicicontype == 'B2') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } elseif ($topicicontype == 'B3') { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } else { return ' '; + alt="' . JText::_('COM_KUNENA_POLL_ADD_POLL_OPTION') . '" aria-hidden="true"> '; } } @@ -1014,23 +1026,23 @@ static public function undo() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } elseif ($topicicontype == 'image') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1048,19 +1060,19 @@ static public function shuffle() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1204,23 +1216,23 @@ static public function caticon($categoryicon, $new = null, $big = true) if ($topicicontype == 'fa') { - return ' '; + return ''; } elseif ($topicicontype == 'B2') { - return ' '; + return ''; } elseif ($topicicontype == 'B3') { - return ' '; + return ''; } elseif ($topicicontype == 'image') { - return ' '; + return ''; } else { - return ' '; + return ''; } } @@ -1238,19 +1250,19 @@ static public function home() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1268,19 +1280,19 @@ static public function calendar() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1298,19 +1310,19 @@ static public function hamburger() if ($topicicontype == 'fa') { - return ' '; + return ' '; } elseif ($topicicontype == 'B2') { - return ' '; + return ' '; } elseif ($topicicontype == 'B3') { - return ' '; + return ' '; } else { - return ' '; + return ' '; } } @@ -1328,19 +1340,19 @@ static public function info() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1358,19 +1370,19 @@ static public function online() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1388,19 +1400,19 @@ static public function away() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1418,19 +1430,19 @@ static public function busy() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1448,19 +1460,19 @@ static public function invisible() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1478,19 +1490,19 @@ static public function cog() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1508,19 +1520,19 @@ static public function drawer() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1538,19 +1550,19 @@ static public function out() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1568,19 +1580,19 @@ static public function grid() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1598,23 +1610,23 @@ static public function globe() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } elseif ($topicicontype == 'image') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1632,23 +1644,23 @@ static public function location() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } elseif ($topicicontype == 'image') { - return ''; + return ''; } else { - return ''; + return ''; } } @@ -1666,23 +1678,23 @@ static public function pm() if ($topicicontype == 'fa') { - return ''; + return ''; } elseif ($topicicontype == 'B2') { - return ''; + return ''; } elseif ($topicicontype == 'B3') { - return ''; + return ''; } elseif ($topicicontype == 'image') { - return ''; + return ''; } else { - return ''; + return ''; } } }