fix languages links

This commit is contained in:
Gnieark 2016-06-06 11:11:09 +02:00
parent 24b3fe490b
commit 6109d9513e

View File

@ -245,7 +245,12 @@ if (isset($_POST['xd_check'])){
<body>
<header>
<h1><?php echo $siteTitle; ?></h1>
<nav id="languages"><a href="<?php echo $currentArena; ?>-fr">fr</a>&nbsp;<a href="<?php echo $currentArena; ?>-en">en</a></nav>
<?php
if(isset($_GET['doc'])){
echo '<nav id="languages"><a href="/'.$currentArena.'/doc-fr">fr</a>&nbsp;<a href="/'.$currentArena.'/doc-en">en</a></nav>';
}else{
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