forked from rebillar/site-accueil-insa
prise en charge des pages sans pancarte
This commit is contained in:
parent
6e0f1af128
commit
0702ad051c
4 changed files with 59 additions and 44 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
#msg_acc {
|
||||||
|
display: block;
|
||||||
|
background-color: rgba(255,255,255,0.5);
|
||||||
|
width: 80%;
|
||||||
|
max-width: 800px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
padding: 50px;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
|
@ -5,6 +5,6 @@ ob_start(); // Start reading html
|
||||||
<img src="assets/img/error.jpg" style="margin-top: 50px;width:50vw;">
|
<img src="assets/img/error.jpg" style="margin-top: 50px;width:50vw;">
|
||||||
</main>
|
</main>
|
||||||
<?php
|
<?php
|
||||||
$infopage = ["", "Erreur", ob_get_clean(), "", "erreur",""]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
|
$infopage = ["", "Erreur", ob_get_clean(), "", "erreur"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
|
||||||
include("structure/template.php");
|
include("structure/template.php");
|
||||||
?>
|
?>
|
|
@ -3,7 +3,6 @@ ob_start(); // Start reading html
|
||||||
|
|
||||||
include "assets/fonts/color.php";
|
include "assets/fonts/color.php";
|
||||||
|
|
||||||
include "assets/fonts/cursor.php";
|
|
||||||
?>
|
?>
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
|
@ -41,6 +40,7 @@ include "assets/fonts/cursor.php";
|
||||||
Si tu souhaites voir le détail des scores, <a href="stats.php" class="link">c'est par ici</a>.
|
Si tu souhaites voir le détail des scores, <a href="stats.php" class="link">c'est par ici</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<?php
|
<?php
|
||||||
$infopage = ["", "Accueil", ob_get_clean(), "", "index","Semaine d'Accueil INSA Toulouse 2023"]; //relativepath, pagetitle, pagecontent, pagescript, pagename, txt_pancarte | cf structure/template.php ligne 2 à 6
|
$infopage = ["", "Accueil", ob_get_clean(), "", "index","Semaine d'Accueil INSA Toulouse 2023"]; //relativepath, pagetitle, pagecontent, pagescript, pagename, txt_pancarte | cf structure/template.php ligne 2 à 6
|
||||||
|
|
|
@ -58,16 +58,22 @@ $txt_pancarte = $infopage[5]; // le texte à mettre sur la pancarte
|
||||||
<?php include $relativepath."structure/menu.php"; ?>
|
<?php include $relativepath."structure/menu.php"; ?>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="pc_container">
|
<?php
|
||||||
<div class="pancarte">
|
if(isset($txt_pancarte)){
|
||||||
|
|
||||||
<div class="title"><?php echo $txt_pancarte; ?></div>
|
echo "<div class=\"pc_container\">
|
||||||
|
<div class=\"pancarte\">
|
||||||
|
|
||||||
<span class="circles circles-top"></span>
|
<div class=\"title\">
|
||||||
<span class="circles circles-bottom"></span>
|
".$txt_pancarte."
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<span class=\"circles circles-top\"></span>
|
||||||
|
<span class=\"circles circles-bottom\"></span>
|
||||||
|
</div>
|
||||||
|
</div>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php
|
<?php
|
||||||
if (isset($pagecontent)) {
|
if (isset($pagecontent)) {
|
||||||
echo $pagecontent; //ici on appelle le contenu de la page
|
echo $pagecontent; //ici on appelle le contenu de la page
|
||||||
|
@ -91,7 +97,6 @@ $txt_pancarte = $infopage[5]; // le texte à mettre sur la pancarte
|
||||||
<!-- To be charged at the end so that it doesn't slow the page loading -->
|
<!-- To be charged at the end so that it doesn't slow the page loading -->
|
||||||
<script defer>
|
<script defer>
|
||||||
(() => {
|
(() => {
|
||||||
const tube = document.getElementById("tube");
|
|
||||||
const closeBTN = document.getElementById("close-mobile-menu");
|
const closeBTN = document.getElementById("close-mobile-menu");
|
||||||
const mobileMenu = document.getElementById("mobile-menu");
|
const mobileMenu = document.getElementById("mobile-menu");
|
||||||
|
|
||||||
|
@ -99,7 +104,6 @@ $txt_pancarte = $infopage[5]; // le texte à mettre sur la pancarte
|
||||||
mobileMenu.classList.toggle("open");
|
mobileMenu.classList.toggle("open");
|
||||||
};
|
};
|
||||||
|
|
||||||
tube.addEventListener("click", onTubeClick)
|
|
||||||
closeBTN.addEventListener("click", onTubeClick)
|
closeBTN.addEventListener("click", onTubeClick)
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue