From c5946f44341c29594803c5b2ca64dcaf335fbca3 Mon Sep 17 00:00:00 2001 From: Fibinger Ádám <adam.fibinger@wup.hu> Date: Wed, 27 Nov 2019 21:03:23 +0100 Subject: [PATCH] Némi refaktor és új overlay --- create.php | 35 +++-------------------------------- 1 files changed, 3 insertions(+), 32 deletions(-) diff --git a/create.php b/create.php index 40fdd35..41388a1 100644 --- a/create.php +++ b/create.php @@ -1,35 +1,6 @@ <?php -include "vendor/autoload.php"; +include_once "common/base.php"; -define('IS_DEV', true); -define('SITE_ROOT', __DIR__); +$html_content = $twig->render('overlays/start-soon.twig'); -$twig = \EOG\Utils\TwigFactory::getEnvironment(SITE_ROOT); - -$variables = [ - 'cup' => [ - 'number' => '#75', - 'name' => '5on5 Open Cup', - ], - 'team' => [ - 'orange' => - [ - 'name' => 'Dompa Esports Community', - 'ban' => [ - 'mira', - 'jackal' - ] - ], - 'blue' => [ - 'name' => 'The Grizz Esports', - 'ban' => [ - 'rook', - 'blitz' - ] - ] - ] -]; - - -$html_content = $twig->render('templates/overlay-base.twig', $variables); -file_put_contents('overlay/generated.html', $html_content); \ No newline at end of file +file_put_contents('../esl-overlay/overlays/start-soon.html', $html_content); \ No newline at end of file -- Gitblit v1.8.0