Implement entry page with dynamic content and update template structure

This commit is contained in:
marc-go committed 2026-10-05 19:25:13 +02:00
1 parent 1a2e1cc33f
commit 0c73ad14f5
8 files changed
+79 -6

No files matched your search

+6 -1
View File
@@ -51,7 +51,7 @@ class HTMLLoader {
die($replace);
}
function show() {
function show($args = []) {
$template = $this->template;
$file = file_get_contents(TEMPLATE_CONF);
@@ -75,6 +75,11 @@ class HTMLLoader {
$html = str_replace("%css%", $css, $html);
// Insert Args
foreach ($args as $key => $value) {
$html = str_replace($key, $value, $html);
}
die($html);
}
}