Jump to content

Navigation bar issue [SOLVED]


tobyrice01

Recommended Posts

If you go to my site: http://bluehawkvirtual.net/index.php/

You will see, that beside "Operations", the "Flights" box is blue and messed up.

Here is the entire code from my core_navigation.tpl file

Any ideas on how to make the Flights bar be like the others?

<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
 <span class="sr-only">Toggle navigation</span>
 <span class="icon-bar"></span>
 <span class="icon-bar"></span>
 <span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><?php echo SITE_NAME; ?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
 <li><a href="<?php echo url(''); ?>">Home</a></li>
 <li class="dropdown">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Corporate<b class="caret"></b></a>
 <ul class="dropdown-menu">
	 <li><a href="<?php echo url('/about'); ?>">About us</a></li>
	 <li><a href="<?php echo url('/staff'); ?>">Staff</a></li>
	 <li><a href="<?php echo url('/pilots'); ?>">Pilot Roster</a></li>
	 <li class="divider"></li>
<li><a href="<?php echo url('/pages/termsandconditionsregulations'); ?>">Terms,Conditions and SOP</a></li>
<li><a href="<?php echo url('/contact'); ?>">Contact Us</a></li>
 </ul>
 </li>
<li class="dropdown">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Operations<b class="caret"></b></a>
 <ul class="dropdown-menu">
	 <li><a href="<?php echo url('/fleet'); ?>">Fleet</a></li>
	 <li><a href="<?php echo url('/pages/divisions'); ?>">Divisions</a></li>
	 <li><a href="<?php echo url('/pages/gallery'); ?>">Fleet Gallery</a></li>
	 </ul>



</li>
</ul>

<li class="dropdown">
 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Flights<b class="caret"></b></a>
 <ul class="dropdown-menu">
	 <li><a href="<?php echo url('/schedules'); ?>">Schedules</a></li>
	 <li><a href="<?php echo url('/schedule/bids'); ?>">Bookings</a></li>
	 <li><a href="<?php echo url('/pireps/filepirep'); ?>">File Pirep</a></li>
	 <li><a href="<?php echo url('/acars'); ?>">Live Flights</a></li>
</ul>



</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php
if(Auth::LoggedIn() == false){
?>
 <li><a href="<?php echo url('/login'); ?>">Login</a></li>
 <li><a href="<?php echo url('/pages/pilotapplication'); ?>">Register</a></li>

 <?php
 }else{
 ?>
 <li><a href="<?php echo url('/logout'); ?>">Logout</a></li>

 <li class="dropdown">
 <a class="dropdown-toggle" data-toggle="dropdown">Pilot Center <b class="caret"></b></a>
 <ul class="dropdown-menu">
	 <li><a href="<?php echo url('/profile'); ?>">Profile</a></li>
	 <li><a href="<?php echo url('/downloads'); ?>">Downloads/Repaints</a></li>
	 <li><a href="<?php echo url('/pages/comingsoon'); ?>">Training</a></li>

 </ul>
 </li>
 <?php
 }
 ?>
</ul>
</div><!-- /.navbar-collapse -->
</nav>

Link to comment
Share on other sites

  • Moderators

Please try this one:

<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
	 <span class="sr-only">Toggle navigation</span>
	 <span class="icon-bar"></span>
	 <span class="icon-bar"></span>
	 <span class="icon-bar"></span>
 </button>
 <a class="navbar-brand" href="#"><?php echo SITE_NAME; ?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 <ul class="nav navbar-nav">
	 <li><a href="<?php echo url(''); ?>">Home</a></li>
	 <li class="dropdown">
		 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Corporate<b class="caret"></b></a>
		 <ul class="dropdown-menu">
			 <li><a href="<?php echo url('/about'); ?>">About us</a></li>
			 <li><a href="<?php echo url('/staff'); ?>">Staff</a></li>
			 <li><a href="<?php echo url('/pilots'); ?>">Pilot Roster</a></li>
			 <li class="divider"></li>
<li><a href="<?php echo url('/pages/termsandconditionsregulations'); ?>">Terms,Conditions and SOP</a></li>
<li><a href="<?php echo url('/contact'); ?>">Contact Us</a></li>
	 </ul>
	 </li>
<li class="dropdown">
		 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Operations<b class="caret"></b></a>
		 <ul class="dropdown-menu">
			 <li><a href="<?php echo url('/fleet'); ?>">Fleet</a></li>
			 <li><a href="<?php echo url('/pages/divisions'); ?>">Divisions</a></li>
			 <li><a href="<?php echo url('/pages/gallery'); ?>">Fleet Gallery</a></li>
			 </ul>



</li>
<li class="dropdown">
		 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Flights<b class="caret"></b></a>
		 <ul class="dropdown-menu">
			 <li><a href="<?php echo url('/schedules'); ?>">Schedules</a></li>
			 <li><a href="<?php echo url('/schedule/bids'); ?>">Bookings</a></li>
			 <li><a href="<?php echo url('/pireps/filepirep'); ?>">File Pirep</a></li>
			 <li><a href="<?php echo url('/acars'); ?>">Live Flights</a></li>
 </ul>
</li>
</ul>



</li>
</ul>
<ul class="nav navbar-nav navbar-right">
 <?php
 if(Auth::LoggedIn() == false){
 ?>
	 <li><a href="<?php echo url('/login'); ?>">Login</a></li>
	 <li><a href="<?php echo url('/pages/pilotapplication'); ?>">Register</a></li>

	 <?php
	 }else{
	 ?>
	 <li><a href="<?php echo url('/logout'); ?>">Logout</a></li>

	 <li class="dropdown">
		 <a class="dropdown-toggle" data-toggle="dropdown">Pilot Center <b class="caret"></b></a>
		 <ul class="dropdown-menu">
			 <li><a href="<?php echo url('/profile'); ?>">Profile</a></li>
			 <li><a href="<?php echo url('/downloads'); ?>">Downloads/Repaints</a></li>
			 <li><a href="<?php echo url('/pages/comingsoon'); ?>">Training</a></li>

		 </ul>
	 </li>
	 <?php
	 }
	 ?>
 </ul>
</div><!-- /.navbar-collapse -->
</nav>

Link to comment
Share on other sites

  • Moderators

The home menu is a non-dropdown menu too. This means that you can use it as an example. As soon as you get it, you will have to edit the url and the text.

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

After that, it should be placed inside the navigation bar but not inside another menu. Based on your current file and if you want to place that in the end, the file at the end of the editing will be like this:

nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
	 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
			 <span class="sr-only">Toggle navigation</span>
			 <span class="icon-bar"></span>
			 <span class="icon-bar"></span>
			 <span class="icon-bar"></span>
	 </button>
	 <a class="navbar-brand" href="#"><?php echo SITE_NAME; ?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	 <ul class="nav navbar-nav">
			 <li><a href="<?php echo url(''); ?>">Home</a></li>
			 <li class="dropdown">
					 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Corporate<b class="caret"></b></a>
					 <ul class="dropdown-menu">
							 <li><a href="<?php echo url('/about'); ?>">About us</a></li>
							 <li><a href="<?php echo url('/staff'); ?>">Staff</a></li>
							 <li><a href="<?php echo url('/pilots'); ?>">Pilot Roster</a></li>
							 <li class="divider"></li>
<li><a href="<?php echo url('/pages/termsandconditionsregulations'); ?>">Terms,Conditions and SOP</a></li>
<li><a href="<?php echo url('/contact'); ?>">Contact Us</a></li>
			 </ul>
			 </li>
<li class="dropdown">
					 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Operations<b class="caret"></b></a>
					 <ul class="dropdown-menu">
							 <li><a href="<?php echo url('/fleet'); ?>">Fleet</a></li>
							 <li><a href="<?php echo url('/pages/divisions'); ?>">Divisions</a></li>
							 <li><a href="<?php echo url('/pages/gallery'); ?>">Fleet Gallery</a></li>
							 </ul>



</li>
<li class="dropdown">
					 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Flights<b class="caret"></b></a>
					 <ul class="dropdown-menu">
							 <li><a href="<?php echo url('/schedules'); ?>">Schedules</a></li>
							 <li><a href="<?php echo url('/schedule/bids'); ?>">Bookings</a></li>
							 <li><a href="<?php echo url('/pireps/filepirep'); ?>">File Pirep</a></li>
							 <li><a href="<?php echo url('/acars'); ?>">Live Flights</a></li>
	 </ul>
</li>
<li><a href="<?php echo url('/contact'); ?>">Contact Us</a></li>
</ul>

<ul class="nav navbar-nav navbar-right">
	 <?php
	 if(Auth::LoggedIn() == false){
	 ?>
			 <li><a href="<?php echo url('/login'); ?>">Login</a></li>
			 <li><a href="<?php echo url('/pages/pilotapplication'); ?>">Register</a></li>

			 <?php
			 }else{
			 ?>
			 <li><a href="<?php echo url('/logout'); ?>">Logout</a></li>

			 <li class="dropdown">
					 <a class="dropdown-toggle" data-toggle="dropdown">Pilot Center <b class="caret"></b></a>
					 <ul class="dropdown-menu">
							 <li><a href="<?php echo url('/profile'); ?>">Profile</a></li>
							 <li><a href="<?php echo url('/downloads'); ?>">Downloads/Repaints</a></li>
							 <li><a href="<?php echo url('/pages/comingsoon'); ?>">Training</a></li>

					 </ul>
			 </li>
			 <?php
			 }
			 ?>
	 </ul>
</div><!-- /.navbar-collapse -->
</nav>

I would suggest you to keep a backup of this file and start making tests on your own. You will be able to understand how it works and where you have to put something. ;)

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...