nav: home link class selected if is selected

This commit is contained in:
Gnieark 2015-11-28 13:30:14 +01:00
parent 63f890985e
commit 481ef34179

View File

@ -83,7 +83,7 @@ if($currentArena == ""){
<header>
<h1><?php echo $siteTitle; ?></h1>
<nav id="languages"><a href="-fr">fr</a>&nbsp;<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
foreach($arenas as $arena){
if( $arena['id'] == $currentArena){