webui: Final Font Awesome conversion (#5652)

This commit is contained in:
Richard Mayhew
2017-01-29 01:44:36 +02:00
committed by Neil Lathwood
parent f2e6cfbe87
commit 5be1ea9132
1361 changed files with 38 additions and 28 deletions

View File

@@ -7,15 +7,18 @@ if ($bg == $list_colour_a) {
}
unset($icon);
$icon_returned = geteventicon($entry['message']);
$icon_type = $icon_returned['icon'];
$icon_colour = $icon_returned['colour'];
$icon = geteventicon($entry['message']);
if ($icon) {
$icon = "<img src='images/16/$icon'>";
if ($icon_type) {
$icon = "<i class='fa $icon_type fa-lg' style='color:$icon_colour' aria-hidden='true'></i>";
} else {
$icon = "<i class='fa fa-bookmark-o fa-lg' style='color:black' aria-hidden='true'></i>";
}
echo '<tr">
<td></td>
<td>
<td>'.$icon.'&nbsp;
'.$entry['humandate'].'
</td>
<td>';
@@ -25,5 +28,4 @@ if ($entry['type'] == 'interface') {
}
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
<td></td>
</tr>';