From 3beedc17475799b56fd3c7ee466054c82da1fba0 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 21 Dec 2020 01:59:32 +0100 Subject: [PATCH] New configurable: outfit_images_wrong_looktypes --- config.php | 1 + system/pages/highscores.php | 2 +- system/templates/characters.html.twig | 2 +- system/templates/forum.show_thread.html.twig | 4 ++-- system/templates/online.html.twig | 4 ++-- system/templates/team.html.twig | 4 ++-- templates/tibiacom/boxes/templates/highscores.html.twig | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/config.php b/config.php index cc906a54..b1f77819 100644 --- a/config.php +++ b/config.php @@ -86,6 +86,7 @@ $config = array( // images 'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit + 'outfit_images_wrong_looktypes' => [75, 126, 127, 266, 302], // this looktypes needs to have different margin-top and margin-left because they are wrong positioned 'item_images_url' => 'http://item-images.ots.me/1092/', // set to images/items if you host your own items in images folder 'item_images_extension' => '.gif', diff --git a/system/pages/highscores.php b/system/pages/highscores.php index f890143c..4988443b 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -267,7 +267,7 @@ foreach($highscores as $id => &$player) $player['link'] = getPlayerLink($player['name'], false); $player['flag'] = getFlagImage($player['country']); if($configHighscoresOutfit) { - $player['outfit'] = ''; + $player['outfit'] = ''; } $player['rank'] = $offset + $i; } diff --git a/system/templates/characters.html.twig b/system/templates/characters.html.twig index 8cdd906e..6faacdd9 100644 --- a/system/templates/characters.html.twig +++ b/system/templates/characters.html.twig @@ -17,7 +17,7 @@ {% endif %} {% if config.characters.outfit %} -
player outfit
+
player outfit
{% endif %} diff --git a/system/templates/forum.show_thread.html.twig b/system/templates/forum.show_thread.html.twig index 9e559abd..ade8070a 100644 --- a/system/templates/forum.show_thread.html.twig +++ b/system/templates/forum.show_thread.html.twig @@ -24,7 +24,7 @@ Page: {{ links_to_pages|raw }}
{% set i = i + 1 %}
{{ post.player_link|raw }}
{% if post.outfit is defined %} - player outfit + player outfit
{% endif %} @@ -72,4 +72,4 @@ Page: {{ links_to_pages|raw }}
{% endfor %}

- \ No newline at end of file + diff --git a/system/templates/online.html.twig b/system/templates/online.html.twig index e4c3eec4..04e0b651 100644 --- a/system/templates/online.html.twig +++ b/system/templates/online.html.twig @@ -102,7 +102,7 @@ {{ player.country_image|raw }} {% endif %} {% if config.online_outfit %} - player outfit + player outfit {% endif %} {{ player.name|raw }}{{ player.skull }} {{ player.level }} @@ -110,4 +110,4 @@ {% endfor %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/system/templates/team.html.twig b/system/templates/team.html.twig index 9828d182..515dffab 100644 --- a/system/templates/team.html.twig +++ b/system/templates/team.html.twig @@ -64,7 +64,7 @@ {% if config.team_display_outfit %} - player outfit + player outfit {% endif %} @@ -142,7 +142,7 @@ {% if config.team_display_outfit %} - player outfit + player outfit {% endif %} diff --git a/templates/tibiacom/boxes/templates/highscores.html.twig b/templates/tibiacom/boxes/templates/highscores.html.twig index d1f455ee..0cac1f0a 100644 --- a/templates/tibiacom/boxes/templates/highscores.html.twig +++ b/templates/tibiacom/boxes/templates/highscores.html.twig @@ -46,7 +46,7 @@ {% for player in topPlayers %}
{% if config.online_outfit %} - player outfit + player outfit {% endif %} {{ player['rank'] }} - {{ player['name'] }}