Added alternate text for images

pull/13/head
Wruczek 9 years ago
parent f9337c1d2a
commit 41dd2dfc54

@ -48,10 +48,10 @@ function getAdminList() {
$groupicon = getGroupIcon($tsAdmin, $group); $groupicon = getGroupIcon($tsAdmin, $group);
if($groupicon) { if($groupicon) {
$icon = '<img src="data:' . TeamSpeak3_Helper_Convert::imageMimeType($groupicon) . ';base64,' . base64_encode($groupicon) . '" /> '; $icon = '<img src="data:' . TeamSpeak3_Helper_Convert::imageMimeType($groupicon) . ';base64,' . base64_encode($groupicon) . '" alt="Ikona grupy" /> ';
} }
} elseif(in_array($group["iconid"], $localIcons)) { } elseif(in_array($group["iconid"], $localIcons)) {
$icon = '<img src="lib/ts3phpframework/images/viewer/group_icon_' . $group["iconid"] . '.png" /> '; $icon = '<img src="lib/ts3phpframework/images/viewer/group_icon_' . $group["iconid"] . '.png" alt="Ikona grupy" /> ';
} }
} }
@ -72,7 +72,7 @@ function getAdminList() {
continue; continue;
} }
$output .= '<p><img src="lib/ts3phpframework/images/viewer/' . $user->getIcon() . '.png">' . '<span class="label label-primary">' . $user . '</span>' . ($user['client_away'] ? '<span class="label label-warning pullright">Away</span>' : '<span class="label label-success pullright">Online</span>') . '</p>'; $output .= '<p><img src="lib/ts3phpframework/images/viewer/' . $user->getIcon() . '.png" alt="Status użytkownika">' . '<span class="label label-primary">' . $user . '</span>' . ($user['client_away'] ? '<span class="label label-warning pullright">Away</span>' : '<span class="label label-success pullright">Online</span>') . '</p>';
} }
} }

@ -95,7 +95,7 @@ function showError($title, $text) { ?>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"><img src="https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png" width="20px"> <?php echo $title; ?></h3> <h3 class="panel-title"><img src="https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png" width="20px" alt="Błąd"> <?php echo $title; ?></h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<?php echo $text; ?> <?php echo $text; ?>

Loading…
Cancel
Save