fix languages links

This commit is contained in:
Gnieark 2016-06-06 11:13:44 +02:00
parent 6109d9513e
commit 3d4cf9f080

View File

@ -251,8 +251,12 @@ if (isset($_POST['xd_check'])){
}else{ }else{
echo '<nav id="languages"><a href="/'. $currentArena.'-fr">fr</a>&nbsp;<a href="/'.$currentArena.'-en">en</a></nav>'; echo '<nav id="languages"><a href="/'. $currentArena.'-fr">fr</a>&nbsp;<a href="/'.$currentArena.'-en">en</a></nav>';
} }
<nav id="menus"><a href="/"<?php if(($currentArena == "") && (!isset($_GET['doc']))) echo ' class="selected"'; ?>><?php echo $lang['HOME']; ?></a>
<?php echo '<nav id="menus"><a href="/"';
if(($currentArena == "") && (!isset($_GET['doc']))){
echo ' class="selected"';
}
echo '>'.$lang['HOME'.'</a>';
foreach($arenas as $arena){ foreach($arenas as $arena){
if( $arena['id'] == $currentArena){ if( $arena['id'] == $currentArena){