Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function c($files) {
- $active = false;
- $basename = basename($_SERVER['PHP_SELF']);
- $basename != '' || $basename = 'index.php';
- $files = explode(' ', $files);
- foreach ($files as $file) {
- $active = $active || ($basename == $file);
- }
- return $active ? ' class="active"' : '';
- }
- $projects = 'projects.php projects2.php';
- ?>
- <div id="header">
- <ul id="nav">
- <li><a href="index.php"<?=c('index.php');?>>HOME</a></li>
- <li><a href="about.php"<?=c('about.php');?>>ABOUT</a></li>
- <li><a href="projects.php"<?=c($projects);?>>PROJECTS</a></li>
- <li><a href="irrigation.php"<?=c('irrigation.php');?>>IRRIGATION</a></li>
- <li><a href="news.php"<?=c('news.php');?>>NEWS</a></li>
- <li id="last"><a href="contact.php"<?=c('contact.php');?>>CONTACT</a></li>
- </ul>
- <div id="logo"><a href="index.php"><img src="img/botanical-visions-inc.png" width="213" height="111" alt="Botanical Visions Inc."/></a></div>
- </div>
Add Comment
Please, Sign In to add comment