|
|
|
@ -1,23 +1,3 @@
|
|
|
|
|
<?php
|
|
|
|
|
$dev = isset($_GET['dev']) ? $_GET['dev'] : false;
|
|
|
|
|
if ($dev) {
|
|
|
|
|
$config = file_get_contents("./calendar_dev.json");
|
|
|
|
|
} else {
|
|
|
|
|
$config = file_get_contents("./calendar_prod.json");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
require "adventCalendar.php";
|
|
|
|
|
$calendar = new adventCalendar();
|
|
|
|
|
$calendar->load_from_json($config);
|
|
|
|
|
|
|
|
|
|
echo $calendar->showExtras;
|
|
|
|
|
echo $calendar->enableSnow;
|
|
|
|
|
|
|
|
|
|
$showExtras = ($calendar->showExtras == 'true') ? true : false;
|
|
|
|
|
$snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
@ -35,7 +15,7 @@ $snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
|
|
|
|
|
|
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/main-adventskalender.css?v=3.1" media="all">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/main-adventskalender.css?v=3.4" media="all">
|
|
|
|
|
|
|
|
|
|
<!--[if lte IE 9]>
|
|
|
|
|
<style type='text/css'>
|
|
|
|
@ -62,6 +42,24 @@ $snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
|
|
|
|
|
<!-- End Matomo Code -->
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</head>
|
|
|
|
|
<?php
|
|
|
|
|
$dev = isset($_GET['dev']) ? $_GET['dev'] : false;
|
|
|
|
|
if ($dev) {
|
|
|
|
|
$config = file_get_contents("./calendar_dev.json");
|
|
|
|
|
} else {
|
|
|
|
|
$config = file_get_contents("./calendar_prod.json");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
require "adventCalendar.php";
|
|
|
|
|
$calendar = new adventCalendar();
|
|
|
|
|
$calendar->load_from_json($config);
|
|
|
|
|
|
|
|
|
|
//echo $calendar->showExtras;
|
|
|
|
|
//echo $calendar->enableSnow;
|
|
|
|
|
$showExtras = ($calendar->showExtras == 'true') ? true : false;
|
|
|
|
|
$snow_enabled = ($calendar->enableSnow == 'true') ? true : false;
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<?php if ($snow_enabled) { ?>
|
|
|
|
|
<canvas class="snow" id="snow"></canvas>
|
|
|
|
|