2014-01-23 23:08:42 -05:00
|
|
|
<?php include_once("common.php"); ?>
|
2011-02-24 14:25:26 -05:00
|
|
|
<div id="tabs">
|
|
|
|
<ul>
|
2011-04-15 23:33:30 -04:00
|
|
|
<?php
|
|
|
|
$tabs = array(
|
|
|
|
"Home" => "/",
|
|
|
|
"Blog" => "/blog/",
|
|
|
|
"Contact" => "/contact/",
|
|
|
|
"Projects" => "/projects/",
|
|
|
|
"Resume" => "/resume/"
|
|
|
|
);
|
|
|
|
$base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com";
|
2011-03-22 13:32:57 -04:00
|
|
|
|
2011-04-15 23:33:30 -04:00
|
|
|
foreach ($tabs as $name => $url) {
|
|
|
|
if ($url == "/") {
|
2011-04-16 18:20:59 -04:00
|
|
|
if ($base_domain && $_SERVER['REQUEST_URI'] == "/")
|
2014-01-23 23:08:42 -05:00
|
|
|
echo "\t\t<li><a href=\"".$base_url."/\" class=\"current\">Home</a></li>\n";
|
2011-04-15 23:33:30 -04:00
|
|
|
else
|
2014-01-23 23:08:42 -05:00
|
|
|
echo "\t\t<li><a href=\"".$base_url."/\">Home</a></li>\n";
|
2011-04-16 18:20:59 -04:00
|
|
|
} else if (strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0)
|
2014-01-23 23:08:42 -05:00
|
|
|
echo "\t\t<li><a href=\"".$base_url."".$url."\" class=\"current\">".$name."</a></li>\n";
|
2011-04-15 23:33:30 -04:00
|
|
|
else
|
2014-01-23 23:08:42 -05:00
|
|
|
echo "\t\t<li><a href=\"".$base_url."".$url."\">".$name."</a></li>\n";
|
2011-04-15 23:33:30 -04:00
|
|
|
}
|
|
|
|
?>
|
2011-02-24 14:25:26 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|