From 71b4f4a64a9a8f74e9fa6b351c85114471d70774 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 23 Mar 2020 15:46:43 +0100 Subject: [PATCH] Add outfit to highscores box in tibiacom template --- templates/tibiacom/boxes/highscores.php | 13 ++++++++++++- .../tibiacom/boxes/templates/highscores.html.twig | 8 ++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/templates/tibiacom/boxes/highscores.php b/templates/tibiacom/boxes/highscores.php index e46a3e81..808bb237 100644 --- a/templates/tibiacom/boxes/highscores.php +++ b/templates/tibiacom/boxes/highscores.php @@ -1,5 +1,16 @@ display('highscores.html.twig', array( - 'topPlayers' => getTopPlayers(5) + 'topPlayers' => $topPlayers )); diff --git a/templates/tibiacom/boxes/templates/highscores.html.twig b/templates/tibiacom/boxes/templates/highscores.html.twig index 50b98c1c..d1f455ee 100644 --- a/templates/tibiacom/boxes/templates/highscores.html.twig +++ b/templates/tibiacom/boxes/templates/highscores.html.twig @@ -45,9 +45,13 @@
{% for player in topPlayers %}
-     {{ player['rank'] }} - {{ player['name'] }} + {% if config.online_outfit %} + player outfit + {% endif %} + {{ player['rank'] }} - + {{ player['name'] }}
-       Level: ({{ player['level'] }}) + Level: ({{ player['level'] }})