1
0

tabs.php: Updated to not overline "Home" from acal.aclindsay.com

This commit is contained in:
Aaron Lindsay 2011-04-16 16:20:59 -06:00
parent 8c5f3a8681
commit 73fc0e5fb5

View File

@ -12,11 +12,11 @@ $base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com";
foreach ($tabs as $name => $url) {
if ($url == "/") {
if ($_SERVER['REQUEST_URI'] == "/")
if ($base_domain && $_SERVER['REQUEST_URI'] == "/")
echo "\t\t<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>\n";
else
echo "\t\t<li><a href=\"http://aclindsay.com/\">Home</a></li>\n";
} else if ($base_domain && strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0)
} else if (strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0)
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>\n";
else
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>\n";