From c7bd13baf5c24a306ca43f0b8fd848c1aff9a7e7 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 22 Mar 2011 11:32:57 -0600 Subject: [PATCH] tabs.php: made class="current" part only work for aclindsay.com base domain (not acal.aclindsay.com) --- tabs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabs.php b/tabs.php index c5ab608..2acb09c 100644 --- a/tabs.php +++ b/tabs.php @@ -8,8 +8,10 @@ "Projects" => "/projects/", "Resume" => "/resume/" ); + $base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com"; + foreach ($tabs as $name => $url) { - if ($url == $_SERVER['REQUEST_URI']) + if ($base_domain && $url == $_SERVER['REQUEST_URI']) echo "
  • ".$name."
  • "; else echo "
  • ".$name."
  • ";