aboutsummaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/AbstractBuilder.php2
-rw-r--r--src/view/FooterBuilder.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/view/AbstractBuilder.php b/src/view/AbstractBuilder.php
index 7b53010..dd83a42 100644
--- a/src/view/AbstractBuilder.php
+++ b/src/view/AbstractBuilder.php
@@ -7,7 +7,7 @@ use App\Entity\Node;
7 7
8abstract class AbstractBuilder 8abstract class AbstractBuilder
9{ 9{
10 protected const VIEWS_PATH = '../src/view/templates/'; 10 protected const string VIEWS_PATH = '../src/view/templates/';
11 protected string $html = ''; 11 protected string $html = '';
12 protected int $id_node; 12 protected int $id_node;
13 13
diff --git a/src/view/FooterBuilder.php b/src/view/FooterBuilder.php
index cf88476..f20dd2e 100644
--- a/src/view/FooterBuilder.php
+++ b/src/view/FooterBuilder.php
@@ -72,7 +72,8 @@ class FooterBuilder extends AbstractBuilder
72 private function makePageModifModeButton(): string 72 private function makePageModifModeButton(): string
73 { 73 {
74 $link_edit_page = new URL(['page' => CURRENT_PAGE]); 74 $link_edit_page = new URL(['page' => CURRENT_PAGE]);
75 if(CURRENT_PAGE !== 'article'){ 75 if(!in_array(CURRENT_PAGE, ['article', 'nouvelle_page', 'menu_chemins'])) // ajouter 'user_edit' et 'connection' le jour où ces pages auront un footer
76 {
76 if(MainBuilder::$modif_mode){ 77 if(MainBuilder::$modif_mode){
77 $link_edit_label = 'Sortir du mode modification'; 78 $link_edit_label = 'Sortir du mode modification';
78 } 79 }