Reworked navigation
Next stop, adding leaderboards!
This commit is contained in:
parent
10836461b9
commit
2c5144f026
1 changed files with 12 additions and 8 deletions
|
@ -44,20 +44,24 @@
|
||||||
<div class="collapse navbar-collapse pull-right">
|
<div class="collapse navbar-collapse pull-right">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<?php
|
<?php
|
||||||
$links = array(
|
|
||||||
'/' => 'Home',
|
|
||||||
'/about' => 'About',
|
|
||||||
'/contact' => 'Contact',
|
|
||||||
);
|
|
||||||
|
|
||||||
if (User::isAuthenticated())
|
if (User::isAuthenticated())
|
||||||
{
|
{
|
||||||
$links['/logout'] = 'Logout';
|
$links = array(
|
||||||
|
'/leaderboards' => 'My Leaderboards',
|
||||||
|
'/contact' => 'Contact Us',
|
||||||
|
'/logout' => 'Logout',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$links['/login'] = 'Sign in';
|
$links = array(
|
||||||
$links['/join'] = 'Sign up';
|
'/' => 'Home',
|
||||||
|
'/about' => 'About',
|
||||||
|
'/contact' => 'Contact Us',
|
||||||
|
'/login' => 'Sign In',
|
||||||
|
'/join' => 'Sign Up',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($links as $uri => $label)
|
foreach ($links as $uri => $label)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue