mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Heartbeat gifs with black background - #4194
This commit is contained in:
parent
b6d551d583
commit
0cccafc7be
BIN
pandora_console/images/heartbeat_green_black.gif
Normal file
BIN
pandora_console/images/heartbeat_green_black.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
pandora_console/images/heartbeat_red_black.gif
Normal file
BIN
pandora_console/images/heartbeat_red_black.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -3385,11 +3385,22 @@ function agents_get_image_status($status)
|
||||
*/
|
||||
function agents_get_status_animation($up=true)
|
||||
{
|
||||
global $config;
|
||||
|
||||
// Gif with black background or white background
|
||||
if ($config['style'] === 'pandora_black') {
|
||||
$heartbeat_green = 'images/heartbeat_green_black.gif';
|
||||
$heartbeat_red = 'images/heartbeat_red_black.gif';
|
||||
} else {
|
||||
$heartbeat_green = 'images/heartbeat_green.gif';
|
||||
$heartbeat_red = 'images/heartbeat_red.gif';
|
||||
}
|
||||
|
||||
switch ($up) {
|
||||
case true:
|
||||
default:
|
||||
return html_print_image(
|
||||
'images/heartbeat_green.gif',
|
||||
$heartbeat_green,
|
||||
true,
|
||||
[
|
||||
'width' => '170',
|
||||
@ -3399,7 +3410,7 @@ function agents_get_status_animation($up=true)
|
||||
|
||||
case false:
|
||||
return html_print_image(
|
||||
'images/heartbeat_red.gif',
|
||||
$heartbeat_red,
|
||||
true,
|
||||
[
|
||||
'width' => '170',
|
||||
|
Loading…
x
Reference in New Issue
Block a user