diff --git a/templates/tibiacom/buttons.base.html.twig b/templates/tibiacom/buttons.base.html.twig index 6833a61d..a4ab47d5 100644 --- a/templates/tibiacom/buttons.base.html.twig +++ b/templates/tibiacom/buttons.base.html.twig @@ -1,8 +1,19 @@ -{% spaceless %} -
-
-
- +{% apply spaceless %} + + {% set tmp_image = 'sbutton' %} + + {% if button_color is defined %} + {% if button_color == 'green' %} + {% set tmp_image = 'sbutton_green' %} + {% elseif button_color == 'red' %} + {% set tmp_image = 'sbutton_red' %} + {% endif %} + {% endif %} + +
+
+
+ +
-
-{% endspaceless %} +{% endapply %}