This commit is contained in:
Baptiste 2022-06-23 23:16:00 +02:00
parent 74bcca19d9
commit d4d5bef8cf

View file

@ -130,8 +130,8 @@ if(!isset($relativepath)) {
<!-- Top layer (LtR) -->
<?php
$co_y_0 = [0, 48.85, 97.7, 146.55, 195.4, 244.25, 293.1, 341.95, 390.8, 439.65, 488.5];
$texte_y_0 = ["Accueil", "Planning", "Plan", "Blouse", "Lydia/Izly", "Homework", "Chansons", "Pkpeach", "Boomario", "Les stats", ""];
$lien_y_0 = ["index.php", "planning.php", "map.php", "blouse.php", "lydia.php", "vacances.php", "chansons.php", "team.php?team=pkpeach", "team.php?team=boomario", "stats.php", ""];
$texte_y_0 = ["Accueil", "Planning", "Plan", "Lydia/Izly", "Blouse", "Pkpeach", "Boomario", "Les stats", "", "Prévention", ""];
$lien_y_0 = ["index.php", "planning.php", "map.php", "lydia.php", "blouse.php", "team.php?team=pkpeach", "team.php?team=boomario", "stats.php", "", "prevs.php", ""];
for($i = 0; $i <= 10; $i++) {
echo
'<a href="'.$lien_y_0[$i].'" class="menu-link">
@ -144,8 +144,8 @@ if(!isset($relativepath)) {
</a>';
}
$co_y_1 = [-23.5, 25.35,74.2, 123.05, 171.9, 220.75, 269.6, 318.45, 367.3, 416.15, 465];
$texte_y_1 = ["", "Photos","Les clubs", "Parrainage", "Prévention", "Com'ville", "Com'anim", "", "Download", "Les com's", "Infos"];
$lien_y_1 = ["", "photos.php","clubs.php", "parrainage.php", "prevs.php", "map_com_ville.php", "anim.php", "", "downloads.php", "coms.php", "info.php"];
$texte_y_1 = ["", "Photos","Les clubs", "Com's", "", "Homework", "Chansons", "", "Download", "Contact", "Infos"];
$lien_y_1 = ["", "photos.php","clubs.php", "com_page.php", "", "vacances.php", "chansons.php", "", "downloads.php", "coms.php", "info.php"];
for($i = 0; $i <= 10; $i++) {
echo
'<a href="'.$lien_y_1[$i].'" class="menu-link menu-bottom-line">
@ -172,35 +172,26 @@ if(!isset($relativepath)) {
<div class="mobile-grid">
<?php
$texte_y_0 = ["Accueil", "Planning", "Plan", "Blouse", "Lydia/Izly", "Homework", "Chansons", "Les stats", "Boomario", "PKpeach", "Photos"];
$lien_y_0 = ["index.php", "planning.php", "map.php", "blouse.php", "lydia.php", "vacances.php", "chansons.php", "stats.php", "team.php?team=boomario", "team.php?team=pkpeach", "photos.php"];
for($i = 0; $i <= 10; $i++) {
for($i = 0; $i <= 19; $i++) {
if($i%2 == 0) {
// pair
$link = $lien_y_0[$i/2];
$text = $texte_y_0[$i/2];
} else {
//impair
$link = $lien_y_1[($i-1)/2];
$text = $texte_y_1[($i-1)/2];
}
echo
'<a href="'.$lien_y_0[$i].'" class="mobile-menu-link">
'<a href="'.$link.'" class="mobile-menu-link">
<svg class="mobile-brick menu-link" viewBox="-2 -2 51 21">
<use xlink:href="#Brick" width="47" height="17" x="0" y="0"/>
<text x="23.8" y="8.5">
'.$texte_y_0[$i].'
'.$text.'
</text>
</svg>
</a>';
}
$texte_y_1 = ["Les clubs", "Parrainage", "Prévention", "Com'ville", "Com'anim", "Download", "Les com's", "", "Infos"];
$lien_y_1 = ["clubs.php", "parrainage.php", "prevs.php", "map_com_ville.php", "anim.php", "downloads.php", "coms.php", "", "info.php"];
for($i = 0; $i <= 8; $i++) {
echo
'<a href="'.$lien_y_1[$i].'" class="mobile-menu-link">
<svg class="mobile-brick menu-link" viewBox="-2 -2 51 21">
<use xlink:href="#Brick" width="47" height="17" x="0" y="0"/>
<text x="23.8" y="8.5">
'.$texte_y_1[$i].'
</text>
</svg>
</a>';
}
?>
</div>
</div>