Jump to content

nav bar style


Shuttle VA

Recommended Posts

I have my site working now :), now i have to add the bling and by that i mean change the navigation to look good. is there a way to change this code to look like my sites menu bar.

<a href="<?php echo url('/'); ?>">Home</a>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>

<a href="<?php echo url('/login'); ?>">Login</a>
<a href="<?php echo url('/registration'); ?>">Register</a>
<?php
}
else
{
// Show these items only if they are logged in
?>

<a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php
}
?>

<a href="<?php echo url('/pilots'); ?>">Pilots</a>
<a href="<?php echo url('/acars') ?>">Live Map</a>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
	echo '
<a href="'.fileurl('/admin').'">Admin Center</a></li>';
}
?>
<?php
$admin = ExamsData::check_admin(Auth::$userinfo->pilotid);
                if ($admin->admin_level >= '1')
      {echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';}
?>

<a href="<?php echo url('/Exams') ?>">EXAMCenter</a>
<a href="<?php echo url('/logout'); ?>">Log Out</a></li>
<?php
}
?>

site menu bar can be seen at http://www.shuttleva.com

Thanks

Link to comment
Share on other sites

You would put the php code you find in the example you posted into the javascript you're using for your menu, for example:

[null, 'Contact Us', null, '_self', 'Contact Us']

would become:

[null, 'Contact Us', '<?php echo url('/contact'); ?>', '_self', 'Contact Us']

And where you want to have the admin menu, you would use the php if to wrap the entire drop down, so it wouldn't show for other users.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...