apply customization to archive page

This commit is contained in:
Tristan Schneider 2020-12-25 12:43:27 +01:00
parent ea1f5e26fd
commit 1b00af7e3c

View File

@ -1,11 +1,26 @@
<?php
$raw_json_config = file_get_contents("data/config.json");
$config_data = json_decode($raw_json_config, false);
?>
<html>
<head>
<title>OWE Archiv</title>
<title><?php print("Archiv ".($config_data->title ?? "One Word Each")); ?></title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="<?php print($config_data->logo->icon_path ?? "favicon.ico"); ?>" type="image/x-icon">
</head>
<body>
<h1>One Word Each Archiv</h1>
<?php
if (isset($config_data->style)) {
print("<style>\n");
print($config_data->style);
print("\n</style>");
}
?>
<h1><?php print($config_data->headline ?? "One Word Each"); ?> - Archiv</h1>
<p><a href="./">Startseite</a></p>
<?php
$filename = $_REQUEST["file"];