tabs.php: Updated to not overline "Home" from acal.aclindsay.com
This commit is contained in:
parent
8c5f3a8681
commit
73fc0e5fb5
4
tabs.php
4
tabs.php
@ -12,11 +12,11 @@ $base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com";
|
|||||||
|
|
||||||
foreach ($tabs as $name => $url) {
|
foreach ($tabs as $name => $url) {
|
||||||
if ($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";
|
echo "\t\t<li><a href=\"http://aclindsay.com/\" class=\"current\">Home</a></li>\n";
|
||||||
else
|
else
|
||||||
echo "\t\t<li><a href=\"http://aclindsay.com/\">Home</a></li>\n";
|
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";
|
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>\n";
|
||||||
else
|
else
|
||||||
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>\n";
|
echo "\t\t<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user