nav: home link class selected if is selected
This commit is contained in:
parent
63f890985e
commit
481ef34179
|
@ -83,7 +83,7 @@ if($currentArena == ""){
|
||||||
<header>
|
<header>
|
||||||
<h1><?php echo $siteTitle; ?></h1>
|
<h1><?php echo $siteTitle; ?></h1>
|
||||||
<nav id="languages"><a href="-fr">fr</a> <a href="-en">en</a></nav>
|
<nav id="languages"><a href="-fr">fr</a> <a href="-en">en</a></nav>
|
||||||
<nav id="menus"><a href="/"><?php echo $lang['HOME']; ?></a>
|
<nav id="menus"><a href="/"<?php if($currentArena == "") echo 'class="selected"'; ?>><?php echo $lang['HOME']; ?></a>
|
||||||
<?php
|
<?php
|
||||||
foreach($arenas as $arena){
|
foreach($arenas as $arena){
|
||||||
if( $arena['id'] == $currentArena){
|
if( $arena['id'] == $currentArena){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user