Fibinger Ádám
6 days ago 2b49a0e495a546e8b87bbab1ce386d79d933dce6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
include "vendor/autoload.php";
 
define('IS_DEV', true);
define('SITE_ROOT', __DIR__);
 
$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);