more php testing
This commit is contained in:
parent
26cc5822ee
commit
4867edf630
@ -17,7 +17,12 @@ function generateNavigation()
|
|||||||
$site_name = "misc";
|
$site_name = "misc";
|
||||||
$site_dir = $routerConfig["default_site"];
|
$site_dir = $routerConfig["default_site"];
|
||||||
}
|
}
|
||||||
$site_name = ucfirst($site_name);
|
|
||||||
|
if ($site_name == "smp") {
|
||||||
|
$site_name = "SMP"
|
||||||
|
} else{
|
||||||
|
$site_name = ucfirst($site_name);
|
||||||
|
}
|
||||||
|
|
||||||
$site_location = $routerConfig["protocol"] . $site_dir . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $routerConfig["default_page"];
|
$site_location = $routerConfig["protocol"] . $site_dir . "." . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $routerConfig["default_page"];
|
||||||
|
|
||||||
@ -41,11 +46,7 @@ function generateNavigation()
|
|||||||
|
|
||||||
$page_name = str_replace("_", " ", $page_dir);
|
$page_name = str_replace("_", " ", $page_dir);
|
||||||
$page_name = explode(".", $page_name)[0];
|
$page_name = explode(".", $page_name)[0];
|
||||||
if ($page_name == "smp") {
|
$page_name = ucfirst($page_name);
|
||||||
$page_name = "SMP";
|
|
||||||
} else {
|
|
||||||
$page_name = ucfirst($page_name);
|
|
||||||
}
|
|
||||||
|
|
||||||
$navpages .= "<li class='navpage_item'><a href='$page_location' $page_class>$page_name</a></li>";
|
$navpages .= "<li class='navpage_item'><a href='$page_location' $page_class>$page_name</a></li>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user