<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
<?php
}
?>
I get:
Parse error: parse error in …\core_navigation.tpl on line 113
which is
<?php
}
?>
Which, if I remove said line, I get it at line 111, which of course is the end of the file.
I want to move it below the main navigation, ie. Home, Pilots, Live Map, etc
Would someone be kind enough, to help me out. All my tries to move:
<?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>
has all ended up the same way. I even checked the documents and started with a blank layout.tpl file (the example listed there). This way I’d know that it wasn’t another file that might have been causing it. Well, at least not from the layout.
What I’m looking to do, is have the navigation as:
How does that differ from running the news? (by the way, I don’t even know the code to pull the news)
This will show the news on any page you place this code. If you want to show more or less than 5 at a time, just change the number to any one you want.
<?php
// Show the News module, call the function ShowNewsFront
// This is in the modules/Frontpage folder
MainController::Run('News', 'ShowNewsFront', 5);
?>
This will show the news on any page you place this code. If you want to show more or less than 5 at a time, just change the number to any one you want.
<?php
// Show the News module, call the function ShowNewsFront
// This is in the modules/Frontpage folder
MainController::Run('News', 'ShowNewsFront', 5);
?>