From f851fa3845725fdc47652e70bf854c9816230268 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 19 Jun 2023 08:00:54 +0200 Subject: [PATCH] New characters page hooks HOOK_CHARACTERS_BEFORE_SKILLS HOOK_CHARACTERS_AFTER_SKILLS HOOK_CHARACTERS_AFTER_QUESTS HOOK_CHARACTERS_AFTER_EQUIPMENT HOOK_CHARACTERS_BEFORE_DEATHS --- system/hooks.php | 5 +++++ system/templates/characters.html.twig | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/system/hooks.php b/system/hooks.php index 5eeacf92..cf35286e 100644 --- a/system/hooks.php +++ b/system/hooks.php @@ -18,6 +18,11 @@ define('HOOK_TIBIACOM_ARTICLE', ++$i); define('HOOK_TIBIACOM_BORDER_3', ++$i); define('HOOK_CHARACTERS_BEFORE_INFORMATIONS', ++$i); define('HOOK_CHARACTERS_AFTER_INFORMATIONS', ++$i); +define('HOOK_CHARACTERS_BEFORE_SKILLS', ++$i); +define('HOOK_CHARACTERS_AFTER_SKILLS', ++$i); +define('HOOK_CHARACTERS_AFTER_QUESTS', ++$i); +define('HOOK_CHARACTERS_AFTER_EQUIPMENT', ++$i); +define('HOOK_CHARACTERS_BEFORE_DEATHS', ++$i); define('HOOK_CHARACTERS_BEFORE_SIGNATURE', ++$i); define('HOOK_CHARACTERS_AFTER_SIGNATURE', ++$i); define('HOOK_CHARACTERS_AFTER_ACCOUNT', ++$i); diff --git a/system/templates/characters.html.twig b/system/templates/characters.html.twig index f11159e1..a388de50 100644 --- a/system/templates/characters.html.twig +++ b/system/templates/characters.html.twig @@ -156,6 +156,8 @@
+ {{ hook(constant('HOOK_CHARACTERS_BEFORE_SKILLS')) }} + {% if config.characters.skills %} {% endif %} + + {{ hook(constant('HOOK_CHARACTERS_AFTER_EQUIPMENT')) }}
@@ -176,6 +178,8 @@ {% endif %} + {{ hook(constant('HOOK_CHARACTERS_AFTER_SKILLS')) }} + {% if quests_enabled %} @@ -196,6 +200,8 @@ {% endif %} + {{ hook(constant('HOOK_CHARACTERS_AFTER_QUESTS')) }} + {% if config.characters.equipment %} @@ -231,9 +237,13 @@
+ {{ hook(constant('HOOK_CHARACTERS_BEFORE_DEATHS')) }} + {% if deaths|length > 0 %}