diff options
| author | polo <ordipolo@gmx.fr> | 2025-11-01 23:35:25 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-11-01 23:35:25 +0100 |
| commit | 3fb48f4bf19b5e5d73607509c0d15a4f8864e1b7 (patch) | |
| tree | 9bab7aeff8c16b3dca39a2326eea87b911d83050 /src/view/NavBuilder.php | |
| parent | 34d4b26dc3984fc2cca8226dbd43db3945697cc6 (diff) | |
| download | cms-3fb48f4bf19b5e5d73607509c0d15a4f8864e1b7.tar.gz cms-3fb48f4bf19b5e5d73607509c0d15a4f8864e1b7.tar.bz2 cms-3fb48f4bf19b5e5d73607509c0d15a4f8864e1b7.zip | |
renommage pour mes yeux
Diffstat (limited to 'src/view/NavBuilder.php')
| -rw-r--r-- | src/view/NavBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/NavBuilder.php b/src/view/NavBuilder.php index 2cded67..03b4c97 100644 --- a/src/view/NavBuilder.php +++ b/src/view/NavBuilder.php | |||
| @@ -13,9 +13,9 @@ class NavBuilder extends AbstractBuilder | |||
| 13 | public function __construct(Node $node = null) | 13 | public function __construct(Node $node = null) |
| 14 | { | 14 | { |
| 15 | $this->html .= '<nav class="nav_main"><ul>'; | 15 | $this->html .= '<nav class="nav_main"><ul>'; |
| 16 | if(count(Model::$menu_data->getChildren()) > 1){ | 16 | if(count(Model::$menu->getChildren()) > 1){ |
| 17 | $this->html .= $this->navMainHTML( | 17 | $this->html .= $this->navMainHTML( |
| 18 | Model::$menu_data, // Menu étend Page | 18 | Model::$menu, // Menu étend Page |
| 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model | 19 | Model::$page_path != null ? Model::$page_path->getArray() : []); // param nullable, ça retire une dépendance stricte entre NavBuilder et Model |
| 20 | } | 20 | } |
| 21 | $this->html .= '</ul></nav>'; | 21 | $this->html .= '</ul></nav>'; |
