Move tibiacom boxes to Twig templates

Yes they are looking and working same as before ;)
This commit is contained in:
slawkens
2018-10-16 01:42:15 +02:00
parent ff8105f809
commit 2695995211
14 changed files with 140 additions and 130 deletions

View File

@@ -421,6 +421,8 @@ foreach($config['menu_categories'] as $id => $cat) {
<div id="Themeboxes">
<?php
$twig_loader->prependPath(__DIR__ . '/boxes/templates');
foreach($config['boxes'] as $box) {
/** @var string $template_name */
$file = TEMPLATES . $template_name . '/boxes/' . $box . '.php';