0

When I upload this file core_navigation.tpl, I get this error:
Parse error: syntax error, unexpected $end in /home1/skywestv/public_html/www.flyboeingva.org/lib/skins/fbva_custom/core_navigation.tpl on line 65

Code:

     <!-- Menu -->
      <div class="pi-row-block pi-pull-right">
        <ul class="pi-simple-menu pi-has-hover-border pi-full-height pi-hidden-sm">
          <!-- Home -->
          <li class="active">
            <a href="#"><span>Home</span></a>
          </li>
          <!-- End home -->
          <!-- About -->
          <li class="pi-has-dropdown">
            <a href="#"><span>About</span></a>
            <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark">
              <li><a href="<?php echo url('vFleet'); ?>"><span>Fleet</span></a></li>
              <li><a href="<?php echo url('history'); ?>"><span>History</span></a></li>
              <li><a href="<?php echo url('hubs'); ?>"><span>Hubs</span></a></li>
            </ul>
          </li>
          <!-- End company -->
          <!-- Careers -->
          <li class="pi-has-dropdown">
            <a href="#"><span>Careers</span></a>
            <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark">
              <li><a href="<?php echo url('vStaff'); ?>"><span>Staff Contacts</span></a></li>
              <li><a href="<?php echo url('login'); ?>"><span>Login to Pilot Center</span></a></li>
                  <?php if(Auth::LoggedIn()) { ?>
              <li><a href="<?php echo url('logout'); ?>"><span>Logout</span></a></li>
            </ul>
          </li>
          <!-- End Careers -->
          <!-- Communication -->
          <li class="pi-has-dropdown">
            <a href="#"><span>Communications</span></a>
            <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark">
                    <li><a href="http://www.facebook.com/vAircraftDelivery"><span>Facebook</span></a></li>
                    <li><a href="http://www.flyboeingva.org/forum/"><span>Forums</span></a></li>
            </ul>
          </li>
          <!-- End company -->
          <!-- Work -->
          <!-- Start Members -->
          <li class="pi-has-dropdown">
            <a href="#"><i class="icon-people"></i><span>Members</span></a>
            <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark">
              <li><a href="<?php echo url('vStaff'); ?>"><span>Staff Roster</span></a></li>
              <li><a href="<?php echo url('pilots'); ?>"><span>Pilot Roster</span></a></li>
            </ul>
          </li>
          <!-- End Members -->
          <!-- Pilots -->
          <li class="pi-has-dropdown">
            <a href="#"><span>Pilots</span></a>
            <ul class="pi-submenu pi-has-border pi-items-have-borders pi-has-shadow pi-submenu-dark">
              <li><a href="<?php echo url('pilots'); ?>"><span>Roster</span></a></li>
                <?php if(Auth::LoggedIn()) { ?>
              <li><a href="<?php echo url('profile'); ?>"><span>Pilot Center</span></a></li>
              <li><a href="<?php echo url('schedules'); ?>"><span>Schedules</span></a></li>
              <li><a href="<?php echo url('FlightAcademy'); ?>"><span>Training</span></a></li>
                <?php } else { ?>
              <li><a href="<?php echo url('login'); ?>"><span>Login</span></a></li>
            </ul>
          </li>
          <!-- End Pilots -->
        </ul>
      </div>
      <!-- Menu end -->

Edited by AConley

3
Contributors
4
Replies
13
Views
2 Years
Discussion Span
Last Post by diafol
0

Now after I add that closing bracket it says: Parse error: syntax error, unexpected $end in /home1/skywestv/public_html/www.flyboeingva.org/lib/skins/fbva_custom/core_navigation.tpl on line 66

0

You need to go through the whole code and ensure that your braces are balanced. Check that all php lines end in a semicolon too - these are the usual culprits.

A decent IDE should flag up these issues before you run the code.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.