website

Code for the bare sturcture of concealed.world.
git clone git://git.concealed.world/website
Log | Files | Refs | README | LICENSE

nav.php (512B)


      1 <?php
      2 function navlink($link){
      3 	if($_SERVER['REQUEST_URI'] == '/'.$link.'/'){
      4 		echo "\t\t\t\t<li>/".$link."/</li>\n";
      5 	}else{
      6 		echo "\t\t\t\t<li><a href='/".$link."/'>/".$link."/</a></li>\n";
      7 	}
      8 }
      9 
     10 echo "\n\t\t<div class='nav'>\n";
     11 	echo "\t\t\t<a href='/'><img src='/img/head.gif' class='navimg' alt='Return' /></a>\n";
     12 	echo "\n\t\t\t<ul class='nomargin'>\n";
     13 		navlink('about');
     14 		navlink('blog');
     15 		navlink('contact');
     16 		navlink('links');
     17 		navlink('other');
     18 	echo "\t\t\t</ul>\n";
     19 echo "\t\t</div>\n";
     20 ?>