It looks like you're new here. If you want to get involved, click one of these buttons!
$this->load->view('_blocks/topnav');
//The topnav view:
<div id="nav">
<div id="menu">
<ul>
<?php
if($page_title == "Home"):
echo '<li class="selected"><a href="#" class="home">Home</a></li>';
else:
echo '<li><a href="' . site_url() . 'home" id="home" class="home">Home</a></li>';
endif;
if($page_title == "About Us"):
echo '<li class="selected"><a href="#" class="about">About Us</a></li>';
else:
echo '<li><a href="' . site_url() . 'aboutus" class="about">About Us</a></li>';
endif;
?>
</ul>
</div>
</div>
echo fuel_nav(array('container_tag_id' => 'menu', 'item_id_prefix' => 'menu_'));
<div class="menu">
<ul>
<li><a href="http://localhost/highlandfuel/main">Home</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/about">About Us</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/ourcoffees">Our Coffees</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/orderonline">Order Online</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/main/gallery">Gallery</a></li><li class="sep">|</li><li><a href="http://localhost/highlandfuel/contact">Contact Us</a></li> </ul>
Comments
What the....?
Am I losing my mind?
The home page on ie displays the old nav, that's the only difference, which is still a mistery, between them all.
I also unistalled Firefox and reinstalled it.
I went and drank coffee, went to sleep, woke up.... same thing lol
I am such a fool !!!!
I worked on this site a while ago, and now came back to it and totally forgot I put some of the pages in the admin. So now, I updated them in the code, and of course, the updates did not display since I didn't update in the admin panel..... Updating the about us in the admin panel works...... oh dear.... oh dear...