Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -22,9 +22,9 @@ |
23 | 23 | |
24 | 24 | public static function Get_Html( $text, $mode) |
25 | 25 | { |
26 | | - global $wgOnlineStatusBarModes, $wgOnlineStatusBarColor; |
| 26 | + global $wgOnlineStatusBarModes, $wgOnlineStatusBarIcon, $wgOnlineStatusBarColor; |
27 | 27 | $color= $wgOnlineStatusBarColor[$mode]; |
28 | | - return '<div style="border: 0px solid black; background: transparent; float: right; position: relative; top:-3px; padding: 5px"><p><b>' . $text . ': <span style="color: ' . $color . '; font:bold;"><img alt="Ledorange.svg" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Ledorange.svg/20px-Ledorange.svg.png" width="20" height="20" />' . $wgOnlineStatusBarModes[$mode] . '</span></b></p></div>'; |
| 28 | + return '<div style="border: 0px solid black; background: transparent; float: right; position: relative; top:-3px; padding: 5px"><p><b>' . $text . ': <span style="color: ' . $color . '; font:bold;"><img alt="Ledorange.svg" src="' . $wgOnlineStatusBarIcon[$mode] . '" width="20" height="20" />' . $wgOnlineStatusBarModes[$mode] . '</span></b></p></div>'; |
29 | 29 | } |
30 | 30 | |
31 | 31 | static function UpdateDb() |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -37,6 +37,14 @@ |
38 | 38 | 'offline' => "Offline", |
39 | 39 | ); |
40 | 40 | |
| 41 | +$wgOnlineStatusBarIcon = array ( |
| 42 | + 'online' => "//upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Ledgreen.svg/20px-Ledgreen.svg.png", |
| 43 | + 'busy' => "//upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Ledorange.svg/20px-Ledorange.svg.png", |
| 44 | + 'away' => "//upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Ledorange.svg/20px-Ledorange.svg.png", |
| 45 | + 'hidden' => "//upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nuvola_apps_krec.svg/20px-Nuvola_apps_krec.svg.png", |
| 46 | + 'offline' => "//upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nuvola_apps_krec.svg/20px-Nuvola_apps_krec.svg.png", |
| 47 | +); |
| 48 | + |
41 | 49 | $wgOnlineStatusBarColor = array ( |
42 | 50 | 'online' => "green", |
43 | 51 | 'busy' => "orange", |