mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 04:03:26 +02:00
Add outfit to highscores box in tibiacom template
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
<?php
|
||||
|
||||
$topPlayers = getTopPlayers(5);
|
||||
foreach($topPlayers as &$player) {
|
||||
$outfit_url = '';
|
||||
if($config['online_outfit']) {
|
||||
$outfit_url = $config['outfit_images_url'] . '?id=' . $player['looktype'] . (!empty
|
||||
($player['lookaddons']) ? '&addons=' . $player['lookaddons'] : '') . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'];
|
||||
|
||||
$player['outfit'] = $outfit_url;
|
||||
}
|
||||
}
|
||||
|
||||
$twig->display('highscores.html.twig', array(
|
||||
'topPlayers' => getTopPlayers(5)
|
||||
'topPlayers' => $topPlayers
|
||||
));
|
||||
|
Reference in New Issue
Block a user