php testing

This commit is contained in:
Richard Mikloš 2024-01-17 11:04:39 +01:00
parent 4daf15a2c3
commit 26cc5822ee

@ -41,7 +41,11 @@ 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];
$page_name = ucfirst($page_name); if ($page_name == "smp") {
$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>";
} }