diff --git a/lib/page.php b/lib/page.php index 77c3a75..e87139a 100644 --- a/lib/page.php +++ b/lib/page.php @@ -127,6 +127,8 @@ function getPage($site_name_in = null, $page_name_in = null): string $skeleton = file_get_contents($routerConfig["template_dir"] . "skeleton.html"); + $footer = file_get_contents($routerConfig["template_dir"] . "footer.html"); + if(!empty($pageMetadata["parameters"]["page_title"])){ $page_title = $pageMetadata["parameters"]["page_title"]; } @@ -146,6 +148,7 @@ function getPage($site_name_in = null, $page_name_in = null): string $out = $skeleton; $out = str_replace("__TEMPLATE__NAV__", $navigation, $out); $out = str_replace("__TEMPLATE__PAGE__", $page, $out); + $out = str_replace("__TEMPLATE__FOOTER__", $footer, $out); $out = str_replace("__TEMPLATE__DYNAMIC__SCRIPT__", $dynamic_script, $out); $out = str_replace("__TEMPLATE__DYNAMIC__STYLE__", $dynamic_style, $out); if($routerConfig["inlining"]) { diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..f95b076 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1 @@ +

Toto nie je oficiálna stránka Adlerky, jedná sa o neoficiálnu študentskú stránku

\ No newline at end of file diff --git a/templates/skeleton.html b/templates/skeleton.html index dcdb16f..d01550c 100644 --- a/templates/skeleton.html +++ b/templates/skeleton.html @@ -18,5 +18,8 @@
__TEMPLATE__PAGE__
+ \ No newline at end of file