* added player status to tibiacom top 5 highscores box

* fix when there are no changelogs or highscores yet
This commit is contained in:
slawkens1
2018-01-03 21:27:47 +01:00
parent 3e49ef42a2
commit 01c0d021b2
4 changed files with 24 additions and 9 deletions

View File

@@ -26,12 +26,17 @@
#Topbar a {
text-decoration: none;
cursor: auto;
}
.online {
color: #008000;
}
.offline {
color: #FF0000;
}
a.topfont {
font-family: Verdana, Arial, Helvetica;
font-size: 11px;
color: #FF0000;
text-decoration: none
}
a:hover.topfont {
@@ -47,7 +52,7 @@
<?php
foreach(getTopPlayers(5) as $player) {
echo '<div align="left"><a href="'.getPlayerLink($player['name'], false).'" class="topfont">
echo '<div align="left"><a href="'.getPlayerLink($player['name'], false).'" class="topfont ' . ($player['online'] == 1 ? 'online' : 'offline') . '">
<font color="#CCC">&nbsp;&nbsp;&nbsp;&nbsp;'.$player['rank'].' - </font>'.$player['name'].'
<br>
<small><font color="white">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Level: ('.$player['level'].')</font></small>