Fibinger Ádám
2020-01-09 cffd2c46efe5875ad1eb86a566a9b41bdb461861
Kali, Wamai és egyéb módosítások
6 files modified
27 ■■■■■ changed files
EOG/Models/Stripe.php 2 ●●● patch | view | raw | blame | history
common/base.php 5 ●●●● patch | view | raw | blame | history
create.php 4 ●●● patch | view | raw | blame | history
form.php 4 ●●●● patch | view | raw | blame | history
templates/overlays/start-soon.twig 9 ●●●●● patch | view | raw | blame | history
templates/overlays/stripe.twig 3 ●●●●● patch | view | raw | blame | history
EOG/Models/Stripe.php
@@ -15,7 +15,7 @@
        'glaz', 'goyo', 'gridlock', 'hibana', 'iq', 'jackal', 'jager', 'kaid', 'kapkan',
        'lesion', 'lion', 'maestro', 'maverick', 'mira', 'montagne', 'mozzie', 'mute', 'nokk',
        'nomad', 'pulse', 'rook', 'sledge', 'smoke', 'tachanka', 'thatcher', 'thermite', 'twitch',
        'valkyrie', 'vigil', 'warden', 'ying', 'zofia'];
        'valkyrie', 'vigil', 'warden', 'ying', 'zofia', 'wamai', 'kali'];
    protected $state = [
        'stripe' => [
            'class' => 'team',
common/base.php
@@ -7,10 +7,7 @@
define('IS_DEV', true);
define('SITE_ROOT', dirname(__DIR__));
define('OVERLAY_DIR', dirname(SITE_ROOT) . '/overlays/');
define('TARGET_DIR', dirname(SITE_ROOT) . '/overlays/');
define('STRIPE_JSON', OVERLAY_DIR . 'last.json');
define('TEAMS_JSON', OVERLAY_DIR . 'teams.json');
define('HISTORY_JSON', OVERLAY_DIR . 'history.json');
$twig = \EOG\Utils\TwigFactory::getEnvironment(SITE_ROOT . '/templates/');
create.php
@@ -2,5 +2,7 @@
include_once "common/base.php";
$html_content = $twig->render('overlays/start-soon.twig');
file_put_contents('../esl-overlay/overlays/start-soon.html', $html_content);
file_put_contents('../esl-overlay/overlays/start-soon.html', $html_content);
$html_content = $twig->render('overlays/interrogacion.twig');
file_put_contents('../esl-overlay/overlays/interview.html', $html_content);
form.php
@@ -22,6 +22,10 @@
    $html_content = $twig->render('overlays/stripe.twig', ['stripe' => $s]);
    file_put_contents(OVERLAY_DIR . 'team-ban.html', $html_content);
    $s->setClass('team-ban');
    $html_content = $twig->render('overlays/stripe.twig', ['stripe' => $s, 'autorefresh' => 30]);
    file_put_contents(OVERLAY_DIR . 'team-ban-refresh.html', $html_content);
} else {
    if (file_exists(STRIPE_JSON)) {
        $raw_json = file_get_contents(STRIPE_JSON);
templates/overlays/start-soon.twig
@@ -1,7 +1,8 @@
{% extends "overlays/html-base.twig" %}
{% block head %}
    {{ parent() }}
    <link rel="stylesheet" href="/assets/operators-color.css">
{% endblock %}
{% block body %}
    <div id="main" class="soon">
        <div class="placeholder">&nbsp;</div>
        <div class="text">Hamarosan kezdünk!</div>
    </div>
    <div id="main-text" class="soon">Hamarosan kezdünk!</div>
{% endblock %}
templates/overlays/stripe.twig
@@ -2,6 +2,9 @@
{% block head %}
    {{ parent() }}
    <link rel="stylesheet" href="/assets/operators-color.css">
    {% if autorefresh %}
        <meta http-equiv="refresh" content="{{ autorefresh }}">
    {% endif %}
{% endblock %}
{% block body %}
    {% block stripe %}