diff --git a/index.php b/index.php index a0221a0..79508fc 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ $default_page = "domov"; $template_dir = "templates/"; -$page_dir = "pages/"; +$static_page_dir = "pages/"; $dynamic_page_dir = "dynamic/"; @@ -27,11 +27,11 @@ if (empty($page_name)){ } -$dynamic_page_file = $page_dir . $subdomain . "/" . $page_name . ".php"; -$page_file = $page_dir . $subdomain . "/" . $page_name . ".html"; +$dynamic_page_file = $static_page_dir . $subdomain . "/" . $page_name . ".php"; +$page_file = $static_page_dir . $subdomain . "/" . $page_name . ".html"; -$dynamic_page_file_global = $page_dir . "global/" . $page_name . ".php"; -$page_file_global = $page_dir . "global/" . $page_name . ".html"; +$dynamic_page_file_global = $static_page_dir . "global/" . $page_name . ".php"; +$page_file_global = $static_page_dir . "global/" . $page_name . ".html"; $skeleton = file_get_contents($template_dir . "skeleton.html"); $nav = file_get_contents($template_dir . "nav.html"); diff --git a/templates/navpages.php b/templates/navpages.php index 13ca52e..eeca87c 100644 --- a/templates/navpages.php +++ b/templates/navpages.php @@ -5,11 +5,11 @@ $navsite_template = '