apply customization to archive page
This commit is contained in:
parent
ea1f5e26fd
commit
1b00af7e3c
19
archiv.php
19
archiv.php
@ -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"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user