aboutsummaryrefslogtreecommitdiff
path: root/src/view/MainBuilder.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/MainBuilder.php')
-rw-r--r--src/view/MainBuilder.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/MainBuilder.php b/src/view/MainBuilder.php
index b488703..b888a56 100644
--- a/src/view/MainBuilder.php
+++ b/src/view/MainBuilder.php
@@ -53,10 +53,10 @@ class MainBuilder extends AbstractBuilder
53 } 53 }
54 54
55 // mode modification de page uniquement 55 // mode modification de page uniquement
56 private function viewEditBlocks($node): void 56 private function viewEditBlocks(Node $node): void
57 { 57 {
58 $options = ''; 58 $options = '';
59 foreach(Blocks::$blocks as $key => $value){ 59 foreach(Presentation::$blocks as $key => $value){
60 $options .= '<option value= "' . $key . '">' . $value . "</option>\n"; 60 $options .= '<option value= "' . $key . '">' . $value . "</option>\n";
61 } 61 }
62 62
@@ -69,7 +69,7 @@ class MainBuilder extends AbstractBuilder
69 } 69 }
70 70
71 // présentation par défaut 71 // présentation par défaut
72 if(Blocks::hasPresentation($child_node->getName()) && $child_node->getNodeData()->getPresentation() === null){ 72 if(Presentation::hasPresentation($child_node->getName()) && $child_node->getNodeData()->getPresentation() === null){
73 $child_node->getNodeData()->setPresentation('full_width'); // pas de persistence ici 73 $child_node->getNodeData()->setPresentation('full_width'); // pas de persistence ici
74 } 74 }
75 75
@@ -87,7 +87,7 @@ class MainBuilder extends AbstractBuilder
87 private function makePresentationOptions(string $presentation): string 87 private function makePresentationOptions(string $presentation): string
88 { 88 {
89 $options = ''; 89 $options = '';
90 foreach(Blocks::$presentations as $key => $value){ 90 foreach(Presentation::$presentations as $key => $value){
91 $options .= '<option value="' . $key . '" ' . ($presentation === $key ? 'selected' : '') . '>' . $value . '</option>'; 91 $options .= '<option value="' . $key . '" ' . ($presentation === $key ? 'selected' : '') . '>' . $value . '</option>';
92 } 92 }
93 return $options; 93 return $options;