JeuPistesSarreguemines/require/nav.php

17 lines
490 B
PHP
Raw Permalink Normal View History

2023-06-27 14:31:55 +02:00
<?php
$url = $_SERVER["PHP_SELF"] . "?";
if (isset($_GET["team"])) {
$url = $url . "team=" . htmlspecialchars($_GET["team"]) . "&";
}
2023-06-27 14:31:55 +02:00
if (isset($_GET["id"])) {
$url = $url . "id=" . htmlspecialchars($_GET["id"]) . "&";
}
$url = $url . "lg=";
?>
<nav>
<p><a href="index.php"><?= $tr["nav"]["title"] ?></a></p>
<ul>
<li><a href="<?= $url ?>fr">FR</a>/<a href="<?= $url ?>en">EN</a></li>
</ul>
</nav>