1
0
aclindsay.com/tabs.php

20 lines
464 B
PHP
Raw Normal View History

2011-02-24 14:25:26 -05:00
<div id="tabs">
<ul>
<?php
2011-03-20 23:32:35 -04:00
$tabs = array(
"About" => "/about/",
2011-03-20 23:38:57 -04:00
"Blog" => "/blog/",
2011-03-20 23:32:35 -04:00
"Contact" => "/contact/",
"Projects" => "/projects/",
"Resume" => "/resume/"
);
foreach ($tabs as $name => $url) {
if ($url == $_SERVER['REQUEST_URI'])
echo "<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>";
else
echo "<li><a href=\"http://aclindsay.com".$url."\">".$name."</a></li>";
}
?>
2011-02-24 14:25:26 -05:00
</ul>
</div>