1
0

Reordered tabs

This commit is contained in:
Aaron Lindsay 2011-03-20 21:32:35 -06:00
parent 3129e11853
commit 9a5ec17ee5

View File

@ -1,11 +1,13 @@
<div id="tabs"> <div id="tabs">
<ul> <ul>
<?php <?php
$tabs = array("Home" => "/home/", $tabs = array(
"Projects" => "/projects/",
"About" => "/about/", "About" => "/about/",
"Resume" => "/resume/", "Blog" => "/home/",
"Contact" => "/contact/"); "Contact" => "/contact/",
"Projects" => "/projects/",
"Resume" => "/resume/"
);
foreach ($tabs as $name => $url) { foreach ($tabs as $name => $url) {
if ($url == $_SERVER['REQUEST_URI']) if ($url == $_SERVER['REQUEST_URI'])
echo "<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>"; echo "<li><a href=\"http://aclindsay.com".$url."\" class=\"current\">".$name."</a></li>";