Implement entry page with dynamic content and update template structure
This commit is contained in:
1 parent
1a2e1cc33f
commit
0c73ad14f5
8 files changed
+79
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user