Shuttle VA Posted January 11, 2010 Report Share Posted January 11, 2010 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 Quote Link to comment Share on other sites More sharing options...
Tom Posted January 11, 2010 Report Share Posted January 11, 2010 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. Quote Link to comment Share on other sites More sharing options...
Shuttle VA Posted January 11, 2010 Author Report Share Posted January 11, 2010 Thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.