diff --git a/templates/tibiacom/boxes/networks.php b/templates/tibiacom/boxes/networks.php index 7f1faee7..d0fa9dc1 100644 --- a/templates/tibiacom/boxes/networks.php +++ b/templates/tibiacom/boxes/networks.php @@ -1,5 +1,3 @@ display('networks.html.twig', array( - 'topPlayers' => getTopPlayers(5) -)); +$twig->display('networks.html.twig'); diff --git a/templates/tibiacom/boxes/templates/networks.html.twig b/templates/tibiacom/boxes/templates/networks.html.twig index c1b8c768..3e377d5a 100644 --- a/templates/tibiacom/boxes/templates/networks.html.twig +++ b/templates/tibiacom/boxes/templates/networks.html.twig @@ -1,22 +1,20 @@ +{% if config['network_facebook'] != '' or config['network_twitter'] != '' %}
{% if config['network_facebook'] is not empty %}
- - +
- - +
- - +
@@ -29,3 +27,4 @@ {% endif %}
+{% endif %} diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index d6379c8a..ef01eeec 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -12,9 +12,16 @@ if(isset($config['boxes'])) + + + + + + +