diff options
| author | polo <ordipolo@gmx.fr> | 2026-07-02 00:01:31 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-07-02 00:01:31 +0200 |
| commit | 0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f (patch) | |
| tree | aa41e7a0a2e41649dea66114e73a26574a042b85 /src/view/MainBuilder.php | |
| parent | 9021dc699874c46b72dcbe019ec1a4408fbf6d70 (diff) | |
| download | cms-0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f.tar.gz cms-0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f.tar.bz2 cms-0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f.zip | |
entité Presentation, MAJ filtre ViewController::SPECIAL_PAGES, table node_data non allégée pour l'instant
Diffstat (limited to 'src/view/MainBuilder.php')
| -rw-r--r-- | src/view/MainBuilder.php | 8 |
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; |
