Fibinger Ádám
2019-11-27 c5946f44341c29594803c5b2ca64dcaf335fbca3
create.php
@@ -1,14 +1,6 @@
<?php
include "vendor/autoload.php";
include_once "common/base.php";
define('IS_DEV', true);
define('SITE_ROOT', __DIR__);
define('OVERLAY_DIR', dirname(__DIR__) . '/esl-overlay/');
$html_content = $twig->render('overlays/start-soon.twig');
$twig = \EOG\Utils\TwigFactory::getEnvironment(SITE_ROOT);
$s = new \EOG\Models\Stripe();
$html_content = $twig->render('templates/overlay-base.twig', ['stripe' => $s ]);
file_put_contents(OVERLAY_DIR . 'generated.html', $html_content);
file_put_contents('../esl-overlay/overlays/start-soon.html', $html_content);