diff options
Diffstat (limited to 'src/view/templates')
-rw-r--r-- | src/view/templates/footer.php | 27 | ||||
-rw-r--r-- | src/view/templates/header.php | 27 | ||||
-rw-r--r-- | src/view/templates/login.php | 22 | ||||
-rw-r--r-- | src/view/templates/menu.php | 7 | ||||
-rw-r--r-- | src/view/templates/new_page.php | 7 | ||||
-rw-r--r-- | src/view/templates/user_create.php | 2 | ||||
-rw-r--r-- | src/view/templates/user_edit.php | 28 |
7 files changed, 85 insertions, 35 deletions
diff --git a/src/view/templates/footer.php b/src/view/templates/footer.php index 1b63edf..33647a6 100644 --- a/src/view/templates/footer.php +++ b/src/view/templates/footer.php | |||
@@ -1,11 +1,28 @@ | |||
1 | <?php declare(strict_types=1); ?> | 1 | <?php declare(strict_types=1); ?> |
2 | <footer> | 2 | <footer> |
3 | <?= $breadcrumb ?> | 3 | <?= $breadcrumb ?> |
4 | <div> | 4 | <div class="data"> |
5 | <p class="contact"><?= $contact_nom ?><br> | 5 | <div class="contact"> |
6 | <?= $adresse ?><br> | 6 | <div id="footer_name"> |
7 | <a href="mailto:<?= $e_mail ?>"><?= $e_mail ?></a></p> | 7 | <script>let footer_name = new InputText('footer_name');</script> |
8 | <p class="footer_logo"><img src="<?= $footer_logo ?>" alt="logo"><p> | 8 | <span id="footer_name_span"><?= htmlspecialchars($name ?? '') ?></span> |
9 | <input type="text" id="footer_name_input" class="hidden" value="<?= htmlspecialchars($name ?? '') ?>" size="30"> | ||
10 | <?= $buttons_footer_name ?> | ||
11 | </div> | ||
12 | <div id="footer_address"> | ||
13 | <script>let footer_address = new InputText('footer_address');</script> | ||
14 | <span id="footer_address_span"><?= htmlspecialchars($address ?? '') ?></span> | ||
15 | <input type="text" id="footer_address_input" class="hidden" value="<?= htmlspecialchars($address ?? '') ?>" size="30"> | ||
16 | <?= $buttons_footer_address ?> | ||
17 | </div> | ||
18 | <div id="footer_email"> | ||
19 | <script>let footer_email = new InputText('footer_email');</script> | ||
20 | <a href="mailto:<?= $email ?>"><span id="footer_email_span"><?= htmlspecialchars($email ?? '') ?></span></a> | ||
21 | <input type="text" id="footer_email_input" class="hidden" value="<?= htmlspecialchars($email ?? '') ?>" size="30"> | ||
22 | <?= $buttons_footer_email ?> | ||
23 | </div> | ||
24 | </div> | ||
25 | <p class="footer_logo"><img src="<?= $footer_logo ?>" alt="logo"></p> | ||
9 | </div> | 26 | </div> |
10 | <div class="<?= $empty_admin_zone ?>"></div> | 27 | <div class="<?= $empty_admin_zone ?>"></div> |
11 | <div class="<?= $div_admin ?>"> | 28 | <div class="<?= $div_admin ?>"> |
diff --git a/src/view/templates/header.php b/src/view/templates/header.php index d419a12..7977ef3 100644 --- a/src/view/templates/header.php +++ b/src/view/templates/header.php | |||
@@ -7,19 +7,36 @@ | |||
7 | </div> | 7 | </div> |
8 | 8 | ||
9 | <div class="header-content"> | 9 | <div class="header-content"> |
10 | <div class="head_logo"> | 10 | <div class="header_left_col"> |
11 | <a href="<?= new URL ?>"><img src="<?= $header_logo ?>" alt="logo_alt"></a> | 11 | <div id="edit_favicon_zone" class="<?= $edit_favicon_hidden ?>"> |
12 | <?= $button_favicon ?> | ||
13 | </div> | ||
14 | <div> | ||
15 | <a href="<?= new URL ?>"><img id="header_logo" src="<?= $header_logo ?>" alt="logo_alt"></a> | ||
16 | <?= $button_header_logo ?> | ||
17 | </div> | ||
12 | </div> | 18 | </div> |
13 | <div class="nav_button"> | 19 | <div class="nav_button"> |
14 | <button>MENU</button> | 20 | <button>MENU</button> |
15 | </div> | 21 | </div> |
16 | <div class="site_title"> | 22 | <div class="site_title"> |
17 | <a href="<?= new URL ?>"><h1><?= $title ?></h1></a> | 23 | <h1 id="header_title"> |
18 | <h2><?= $description ?></h2> | 24 | <script>let header_title = new InputText('header_title');</script> |
25 | <a href="<?= new URL ?>"><span id="header_title_span"><?= htmlspecialchars($title ?? '') ?></span></a> | ||
26 | <input type="text" id="header_title_input" class="hidden" value="<?= htmlspecialchars($title ?? '') ?>" size="30"> | ||
27 | <?= $buttons_header_title ?> | ||
28 | </h1> | ||
29 | <h2 id="header_description"> | ||
30 | <script>let header_description = new InputText('header_description');</script> | ||
31 | <span id="header_description_span"><?= htmlspecialchars($description ?? '') ?></span> | ||
32 | <input type="text" id="header_description_input" class="hidden" value="<?= htmlspecialchars($description ?? '') ?>" size="30"> | ||
33 | <?= $buttons_header_description ?> | ||
34 | </h2> | ||
19 | </div> | 35 | </div> |
20 | <div> | 36 | <div class="header_right_col"> |
21 | <div class="social"> | 37 | <div class="social"> |
22 | <?= $social_networks ?> | 38 | <?= $social_networks ?> |
39 | <?= $buttons_social_networks ?> | ||
23 | </div> | 40 | </div> |
24 | <?= $breadcrumb ?? '' ?> | 41 | <?= $breadcrumb ?? '' ?> |
25 | </div> | 42 | </div> |
diff --git a/src/view/templates/login.php b/src/view/templates/login.php index c40b3a7..3257690 100644 --- a/src/view/templates/login.php +++ b/src/view/templates/login.php | |||
@@ -1,10 +1,10 @@ | |||
1 | <?php declare(strict_types=1); ?> | 1 | <?php declare(strict_types=1); ?> |
2 | <section> | 2 | <section> |
3 | <h3 class="connexionTitre" >Connexion à l'espace d'administration</h3> | 3 | <h3>Connexion à l'espace d'administration</h3> |
4 | <div class="login_form"> | 4 | <div class="basic_div"> |
5 | <p class="connexionP" >Veuillez saisir votre identifiant et votre mot de passe.</p> | 5 | <p>Veuillez saisir votre identifiant et votre mot de passe.</p> |
6 | <p style="color: red; font-style: italic;"><?= $error ?></p> | 6 | <p style="color: red; font-style: italic;"><?= $error ?></p> |
7 | <form class="connexionFormulaire" method="post" action="<?= $link_form ?>" > | 7 | <form method="post" action="<?= $link_form ?>" > |
8 | <p><label for="login" >Identifiant:</label> | 8 | <p><label for="login" >Identifiant:</label> |
9 | <input id="login" type="text" name="login" autofocus required></p> | 9 | <input id="login" type="text" name="login" autofocus required></p> |
10 | <p><label for="password" >Mot de passe:</label> | 10 | <p><label for="password" >Mot de passe:</label> |
@@ -18,12 +18,14 @@ | |||
18 | 18 | ||
19 | <input type="submit" value="Valider"> | 19 | <input type="submit" value="Valider"> |
20 | </form> | 20 | </form> |
21 | <p class='connexionP' >Au fait? Vous n'utilisez pas votre propre ordinateur ou téléphone?<br/> | 21 | <p>Au fait? Vous n'utilisez pas votre propre ordinateur ou téléphone?<br/> |
22 | Utilisez la navigation privée.</p> | 22 | Utilisez la navigation privée.</p> |
23 | <p class="connexionP connexionFooter" > | 23 | </div> |
24 | <a href="<?= $link_exit ?>" > | 24 | </section> |
25 | <button>Retour au site</button> | 25 | <section> |
26 | </a> | 26 | <div class="basic_div"> |
27 | </p> | 27 | <a href="<?= $link_exit ?>" > |
28 | <button>Retour au site</button> | ||
29 | </a> | ||
28 | </div> | 30 | </div> |
29 | </section> \ No newline at end of file | 31 | </section> \ No newline at end of file |
diff --git a/src/view/templates/menu.php b/src/view/templates/menu.php index d78c665..4f11756 100644 --- a/src/view/templates/menu.php +++ b/src/view/templates/menu.php | |||
@@ -38,4 +38,11 @@ | |||
38 | <div id="menu_edit_buttons"> | 38 | <div id="menu_edit_buttons"> |
39 | <?= $this->html ?> | 39 | <?= $this->html ?> |
40 | </div> | 40 | </div> |
41 | </section> | ||
42 | <section> | ||
43 | <div class="basic_div"> | ||
44 | <a href="<?= new URL ?>"> | ||
45 | <button>Retour au site</button> | ||
46 | </a> | ||
47 | </div> | ||
41 | </section> \ No newline at end of file | 48 | </section> \ No newline at end of file |
diff --git a/src/view/templates/new_page.php b/src/view/templates/new_page.php index 5747e82..1756a78 100644 --- a/src/view/templates/new_page.php +++ b/src/view/templates/new_page.php | |||
@@ -25,4 +25,11 @@ | |||
25 | <input type="submit" value="Créer la page"> | 25 | <input type="submit" value="Créer la page"> |
26 | </form> | 26 | </form> |
27 | </div> | 27 | </div> |
28 | </section> | ||
29 | <section> | ||
30 | <div class="basic_div"> | ||
31 | <a href="<?= new URL ?>"> | ||
32 | <button>Retour au site</button> | ||
33 | </a> | ||
34 | </div> | ||
28 | </section> \ No newline at end of file | 35 | </section> \ No newline at end of file |
diff --git a/src/view/templates/user_create.php b/src/view/templates/user_create.php index 68e115c..8572efe 100644 --- a/src/view/templates/user_create.php +++ b/src/view/templates/user_create.php | |||
@@ -28,7 +28,7 @@ $_SESSION['captcha'] = $captcha->getSolution(); // enregistrement de la réponse | |||
28 | <section> | 28 | <section> |
29 | <h3>Bienvenue.</h3> | 29 | <h3>Bienvenue.</h3> |
30 | <p style="text-align: center;">Veuillez choisir les codes que vous utiliserez pour gérer le site.</p> | 30 | <p style="text-align: center;">Veuillez choisir les codes que vous utiliserez pour gérer le site.</p> |
31 | <div class="login_form"> | 31 | <div class="basic_div"> |
32 | <p style="color: red; font-style: italic;"><?= $error ?></p> | 32 | <p style="color: red; font-style: italic;"><?= $error ?></p> |
33 | <form method="post" action="index.php?action=create_user" > | 33 | <form method="post" action="index.php?action=create_user" > |
34 | <p><label for="login" >Identifiant:</label> | 34 | <p><label for="login" >Identifiant:</label> |
diff --git a/src/view/templates/user_edit.php b/src/view/templates/user_edit.php index 18eb037..28caac4 100644 --- a/src/view/templates/user_edit.php +++ b/src/view/templates/user_edit.php | |||
@@ -2,18 +2,18 @@ | |||
2 | <section> | 2 | <section> |
3 | <div class="user_edit_header"> | 3 | <div class="user_edit_header"> |
4 | <div class="empty_column"></div> | 4 | <div class="empty_column"></div> |
5 | <h3 class="connexionTitre" >Mon compte</h3> | 5 | <h3>Mon compte</h3> |
6 | <div> | 6 | <div> |
7 | <img class="user_icon" src="assets/user_hollow.svg"> | 7 | <img class="user_icon" src="assets/user_hollow.svg"> |
8 | <div><?= $_SESSION['user'] ?></div> | 8 | <div><?= $_SESSION['user'] ?></div> |
9 | </div> | 9 | </div> |
10 | </div> | 10 | </div> |
11 | <div class="user_edit_flex"> | 11 | <div class="user_edit_flex"> |
12 | <div class="login_form"> | 12 | <div class="basic_div"> |
13 | <p class="connexionP" >Modifier mon <b>nom d'utilisateur</b>.</p> | 13 | <p>Modifier mon <b>nom d'utilisateur</b>.</p> |
14 | <p style="color: red; font-style: italic;"><?= $error_username ?></p> | 14 | <p style="color: red; font-style: italic;"><?= $error_username ?></p> |
15 | <p style="color: green; font-style: italic;"><?= $success_username ?></p> | 15 | <p style="color: green; font-style: italic;"><?= $success_username ?></p> |
16 | <form class="connexionFormulaire" method="post" action="<?= $link_user_form ?>" > | 16 | <form method="post" action="<?= $link_user_form ?>" > |
17 | <p><label for="login" >Ancien nom:</label> | 17 | <p><label for="login" >Ancien nom:</label> |
18 | <input id="login" type="text" name="login" required></p> | 18 | <input id="login" type="text" name="login" required></p> |
19 | <p><label for="password" >Mot de passe:</label> | 19 | <p><label for="password" >Mot de passe:</label> |
@@ -30,11 +30,11 @@ | |||
30 | <input type="submit" value="Valider"> | 30 | <input type="submit" value="Valider"> |
31 | </form> | 31 | </form> |
32 | </div> | 32 | </div> |
33 | <div class="login_form"> | 33 | <div class="basic_div"> |
34 | <p class="connexionP" >Modifier mon <b>mot de passe</b>.</p> | 34 | <p>Modifier mon <b>mot de passe</b>.</p> |
35 | <p style="color: red; font-style: italic;"><?= $error_password ?></p> | 35 | <p style="color: red; font-style: italic;"><?= $error_password ?></p> |
36 | <p style="color: green; font-style: italic;"><?= $success_password ?></p> | 36 | <p style="color: green; font-style: italic;"><?= $success_password ?></p> |
37 | <form class="connexionFormulaire" method="post" action="<?= $link_password_form ?>" > | 37 | <form method="post" action="<?= $link_password_form ?>" > |
38 | <p><label for="login" >Nom:</label> | 38 | <p><label for="login" >Nom:</label> |
39 | <input id="login" type="text" name="login" required></p> | 39 | <input id="login" type="text" name="login" required></p> |
40 | <p><label for="password" >Ancien mot de passe:</label> | 40 | <p><label for="password" >Ancien mot de passe:</label> |
@@ -52,12 +52,12 @@ | |||
52 | </form> | 52 | </form> |
53 | </div> | 53 | </div> |
54 | </div> | 54 | </div> |
55 | <div class="login_form"> | 55 | </section> |
56 | <p class="connexionP connexionFooter" > | 56 | <section> |
57 | <a href="<?= $link_exit ?>"> | 57 | <div class="basic_div"> |
58 | <button>Retour au site</button></a> | 58 | <a href="<?= $link_exit ?>"> |
59 | <a href="<?= $link_logout ?>"> | 59 | <button>Retour au site</button></a> |
60 | <button>Déconnexion</button></a> | 60 | <a href="<?= $link_logout ?>"> |
61 | </p> | 61 | <button>Déconnexion</button></a> |
62 | </div> | 62 | </div> |
63 | </section> \ No newline at end of file | 63 | </section> \ No newline at end of file |