diff --git a/core/core.php b/core/core.php index f44d3a38..9fa01687 100644 --- a/core/core.php +++ b/core/core.php @@ -2139,7 +2139,7 @@ class layout extends common { $items .= ''; } $items .= $this->getData(['page', $parentPageId, 'title']); - $items .= ''; + $items .= ''; } $itemsChildren = ''; foreach($childrenPageIds as $childKey) { @@ -2169,7 +2169,10 @@ class layout extends common { $items .= '
'; + } else { + $items .= ''; } + } if ($onlyChildren === false) { $items .= ''; @@ -2456,13 +2459,13 @@ class template { 'href' => 'javascript:void(0);', 'ico' => '', 'id' => $nameId, - 'name' => $nameId, + //'name' => $nameId, 'target' => '', 'uniqueSubmission' => false, 'value' => 'Bouton' ], $attributes); // Retourne le html - return sprintf( + return sprintf( '%s', helper::sprintAttributes($attributes, ['class', 'disabled', 'ico', 'value']), $attributes['disabled'] ? 'disabled' : '', @@ -3015,7 +3018,7 @@ class template { 'value' => 'Enregistrer' ], $attributes); // Retourne le html - return sprintf( + return sprintf( '', $attributes['class'], $attributes['uniqueSubmission'] ? 'uniqueSubmission' : '', diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index bfcef3db..50d3cae9 100755 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -160,7 +160,7 @@ echo template::formOpen('pageEditForm'); ?>