diff options
Diffstat (limited to 'src/view/MenuBuilder.php')
-rw-r--r-- | src/view/MenuBuilder.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/view/MenuBuilder.php b/src/view/MenuBuilder.php index 0fcfbe5..5a010d5 100644 --- a/src/view/MenuBuilder.php +++ b/src/view/MenuBuilder.php | |||
@@ -22,8 +22,6 @@ class MenuBuilder extends AbstractBuilder | |||
22 | extract($node->getNodeData()->getData()); | 22 | extract($node->getNodeData()->getData()); |
23 | }*/ | 23 | }*/ |
24 | 24 | ||
25 | // ajouter un article | ||
26 | $new_article = ''; | ||
27 | if($_SESSION['admin']) | 25 | if($_SESSION['admin']) |
28 | { | 26 | { |
29 | $this->unfoldMenu(Director::$menu_data, 0 - $this->margin_left_multiplier); | 27 | $this->unfoldMenu(Director::$menu_data, 0 - $this->margin_left_multiplier); |
@@ -47,7 +45,7 @@ class MenuBuilder extends AbstractBuilder | |||
47 | foreach($menu->getChildren() as $entry) | 45 | foreach($menu->getChildren() as $entry) |
48 | { | 46 | { |
49 | $div_style = 'margin-left: ' . $margin_left . 'px;'; | 47 | $div_style = 'margin-left: ' . $margin_left . 'px;'; |
50 | $checked = $entry->IsInMenu() ? 'checked' : ''; | 48 | $checked = $entry->isHidden() ? '' : 'checked'; |
51 | $this->html .= '<div id="' . $entry->getId() . '" style="' . $div_style . '"> | 49 | $this->html .= '<div id="' . $entry->getId() . '" style="' . $div_style . '"> |
52 | <img class="move_entry_icon" onclick="" src="assets/arrow-left.svg"> | 50 | <img class="move_entry_icon" onclick="" src="assets/arrow-left.svg"> |
53 | <img class="move_entry_icon" onclick="" src="assets/arrow-right.svg"> | 51 | <img class="move_entry_icon" onclick="" src="assets/arrow-right.svg"> |
@@ -67,14 +65,9 @@ class MenuBuilder extends AbstractBuilder | |||
67 | $this->html .= '<i>' . $entry->getPagePath() . '</i>'; | 65 | $this->html .= '<i>' . $entry->getPagePath() . '</i>'; |
68 | } | 66 | } |
69 | 67 | ||
70 | |||
71 | // supprimer me label "visible" et griser le texte et bouton en JS à la place | ||
72 | |||
73 | /* | 68 | /* |
74 | => flèche gauche: position = position du parent + 1, parent = grand-parent, recalculer les positions | 69 | => flèche gauche: position = position du parent + 1, parent = grand-parent, recalculer les positions |
75 | => flèche droite: position = nombre d'éléments de la fraterie + 1, l'élément précédent devient le parent | 70 | => flèche droite: position = nombre d'éléments de la fraterie + 1, l'élément précédent devient le parent |
76 | => flèches haut et bas: inversement de position, comme pour les noeuds, mais dans la table page | ||
77 | => checkbox: in_menu ^= 1 | ||
78 | */ | 71 | */ |
79 | 72 | ||
80 | if(count($entry->getChildren()) > 0){ | 73 | if(count($entry->getChildren()) > 0){ |