From 541fdce52157d807244e7080275c28c58d900e52 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Tue, 15 Nov 2022 18:20:17 +0100 Subject: [PATCH] =?UTF-8?q?Modif=20=C3=A9diteur=20+=20bug=20affichage=20so?= =?UTF-8?q?us=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 5 +- core/core.js.php | 9 + core/core.php | 18 +- .../ressource/database_en/base/module.json | 10 +- .../ressource/database_en/base/page.json | 16 + .../ressource/database_fr/base/module.json | 8 +- .../ressource/database_fr/base/page.json | 16 + .../ressource/databaselight_en/base/page.json | 1 + core/module/install/ressource/defaultdata.php | 1 + core/module/page/lang/en/lex_page.php | 6 +- core/module/page/lang/fr/lex_page.php | 6 +- core/module/page/view/edit/edit.php | 624 +++++++++--------- module/blog/blog.php | 6 + module/blog/view/article/article.php | 6 +- module/gallery/gallery.php | 4 +- 15 files changed, 396 insertions(+), 340 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ea97fd7..a56a398 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,10 @@ - Modifications : - Ajout du groupe éditeur, autorisations limitées à l'édition des pages, l'ajout de fichiers, l'accès aux pages privées membre et éditeur, - Adaptation des modules de page à ce nouveau groupe avec des actions autorisées très limitées, - - + - Nouvelle option dans l'édition d'une page, permissions : sélection du groupe requis pour modifier la page, + - Module Gallery, sélection du dossier incluant les images : exclusion de certains dossiers, +- Corrections : + - Affichage du sous-menu avec un alignement du contenu à droite : il y avait un décalage du site quand les pages situées à la droite du menu possédaient des pages enfants. ## Version 4.3.08 de Deltacms - Modifications : diff --git a/core/core.js.php b/core/core.js.php index 0426fb1..cb104a0 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -437,6 +437,15 @@ $(document).ready(function(){ $("#navfixedlogout .navSub").css({ 'pointer-events' : 'none' }); $("#navfixedconnected .navSub").css({ 'pointer-events' : 'none' }); }); + + /* Position du sous-menu */ + $("a.B, a.A").mouseenter(function(event){ + if( event.pageX > ( $(window).width()-250 ) ){ + $("nav li ul").css("right","0px"); + } else { + $("nav li ul").css("right",""); + } + }); /** * Chargement paresseux des images et des iframes diff --git a/core/core.php b/core/core.php index 4bdcba9..1e4573f 100644 --- a/core/core.php +++ b/core/core.php @@ -2013,13 +2013,19 @@ class common { // Sur une page d'accueil OR $this->getUrl(0) === '' ) { - $leftItems .= '
  • ' . template::ico('pencil') . '
  • '; - if ($this->getData(['page', $this->getUrl(0),'moduleId'])) { - $leftItems .= '
  • ' . template::ico('gear') . '
  • '; + // Droits d'édition et de configuration du module ? + if( null == $this->getData(['page', $this->getUrl(0), 'groupEdit']) || $this->getUser('group') >= $this->getData(['page', $this->getUrl(0), 'groupEdit'])){ + $leftItems .= '
  • ' . template::ico('pencil') . '
  • '; + if ($this->getData(['page', $this->getUrl(0),'moduleId'])) { + $leftItems .= '
  • ' . template::ico('gear') . '
  • '; + } } - if($this->getUser('group') >= self::GROUP_MODERATOR) { - $leftItems .= '
  • ' . template::ico('clone') . '
  • '; - $leftItems .= '
  • ' . template::ico('trash') . '
  • '; + // Droits pour dupliquer ou effacer ? + if( null == $this->getData(['page', $this->getUrl(0), 'groupEdit']) || $this->getUser('group') >= $this->getData(['page', $this->getUrl(0), 'groupEdit'])){ + if($this->getUser('group') >= self::GROUP_MODERATOR) { + $leftItems .= '
  • ' . template::ico('clone') . '
  • '; + $leftItems .= '
  • ' . template::ico('trash') . '
  • '; + } } } } diff --git a/core/module/install/ressource/database_en/base/module.json b/core/module/install/ressource/database_en/base/module.json index 69e6d75..5c8df93 100644 --- a/core/module/install/ressource/database_en/base/module.json +++ b/core/module/install/ressource/database_en/base/module.json @@ -5,7 +5,7 @@ "feeds": true, "feedsLabel": "Syndication RSS", "itemsperPage": 6, - "versionData": "6.4" + "versionData": "6.5" }, "texts": { "NoComment": "No comment yet", @@ -120,7 +120,7 @@ "style": "site\/data\/gallery\/galeries\/theme.css" }, "config": { - "versionData": "4.1" + "versionData": "4.2" } }, "deltacms": { @@ -141,7 +141,7 @@ "logoUrl": "", "logoWidth": "40", "maxSizeUpload": "500000", - "versionData": "4.4", + "versionData": "4.5", "uploadJpg": true, "uploadPng": true, "uploadPdf": false, @@ -187,7 +187,7 @@ "placeHolder": "One or more keywords separated by a space or +.", "resultHideContent": false, "previewLength": 100, - "versionData": "3.2", + "versionData": "3.3", "nearWordText": "Related words", "successTitle": "Result of your search", "failureTitle": "No results", @@ -204,7 +204,7 @@ "resultHideContent": false, "placeHolder": "Un ou plusieurs mots-clés séparés par un espace ou par +", "submitText": "Rechercher", - "versionData": "3.2", + "versionData": "3.3", "nearWordText": "Mots approchants", "successTitle": "Résultat de votre recherche", "failureTitle": "Aucun résultat", diff --git a/core/module/install/ressource/database_en/base/page.json b/core/module/install/ressource/database_en/base/page.json index abf7ef3..a651583 100644 --- a/core/module/install/ressource/database_en/base/page.json +++ b/core/module/install/ressource/database_en/base/page.json @@ -14,6 +14,7 @@ "parentPageId": "", "position": 1, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Home", "shortTitle": "Home", @@ -39,6 +40,7 @@ "modulePosition": "bottom", "position": 3, "group": 1, + "groupEdit": 2, "targetBlank": false, "title": "Private page", "shortTitle": "Private", @@ -63,6 +65,7 @@ "parentPageId": "editing", "position": 1, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Layout", "shortTitle": "Layout", @@ -88,6 +91,7 @@ "parentPageId": "editing", "position": 2, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Sidebar with menu", "shortTitle": "Side menu", @@ -113,6 +117,7 @@ "parentPageId": "", "position": 4, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Blog", "shortTitle": "Blog", @@ -137,6 +142,7 @@ "parentPageId": "", "position": 5, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Image galleries", "shortTitle": "Galleries", @@ -161,6 +167,7 @@ "parentPageId": "", "position": 6, "group": 0, + "groupEdit": 2, "targetBlank": true, "title": "Deltacms", "shortTitle": "Deltacms", @@ -185,6 +192,7 @@ "parentPageId": "", "position": 7, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Contact", "shortTitle": "Contact", @@ -209,6 +217,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Sidebar", "shortTitle": "Sidebar", @@ -233,6 +242,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Sidebar with menu", "shortTitle": "Sidebar with menu", @@ -257,6 +267,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Legal notices", "shortTitle": "Legal notices", @@ -282,6 +293,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Maintenance in progress", "shortTitle": "Maintenance in progress", @@ -307,6 +319,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Error 403", "shortTitle": "Error 403", @@ -332,6 +345,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Error 404", "shortTitle": "Error 404", @@ -356,6 +370,7 @@ "parentPageId": "", "position": 8, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Search in the site", "shortTitle": "Search", @@ -383,6 +398,7 @@ "parentPageId": "", "position": 2, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Editing", "shortTitle": "Editing", diff --git a/core/module/install/ressource/database_fr/base/module.json b/core/module/install/ressource/database_fr/base/module.json index 5849f20..7f3fe45 100644 --- a/core/module/install/ressource/database_fr/base/module.json +++ b/core/module/install/ressource/database_fr/base/module.json @@ -5,7 +5,7 @@ "feeds": true, "feedsLabel": "Syndication RSS", "itemsperPage": 4, - "versionData": "6.4" + "versionData": "6.5" }, "texts": { "NoComment": "Pas encore de commentaire", @@ -120,7 +120,7 @@ "style": "site\/data\/gallery\/galeries\/theme.css" }, "config": { - "versionData": "4.1" + "versionData": "4.2" } }, "deltacms": { @@ -141,7 +141,7 @@ "logoUrl": "", "logoWidth": "40", "maxSizeUpload": "1000000", - "versionData": "4.4", + "versionData": "4.5", "uploadJpg": true, "uploadPng": true, "uploadPdf": false, @@ -187,7 +187,7 @@ "resultHideContent": false, "placeHolder": "Un ou plusieurs mots-clés séparés par un espace ou par +", "submitText": "Rechercher", - "versionData": "3.2", + "versionData": "3.3", "nearWordText": "Mots approchants", "successTitle": "Résultat de votre recherche", "failureTitle": "Aucun résultat", diff --git a/core/module/install/ressource/database_fr/base/page.json b/core/module/install/ressource/database_fr/base/page.json index da3a908..472a368 100644 --- a/core/module/install/ressource/database_fr/base/page.json +++ b/core/module/install/ressource/database_fr/base/page.json @@ -14,6 +14,7 @@ "parentPageId": "", "position": 1, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Accueil", "shortTitle": "Accueil", @@ -39,6 +40,7 @@ "modulePosition": "bottom", "position": 3, "group": 1, + "groupEdit": 2, "targetBlank": false, "title": "Page privée", "shortTitle": "Privée", @@ -63,6 +65,7 @@ "parentPageId": "edition", "position": 2, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Barre latérale avec menu", "shortTitle": "Menu latéral", @@ -88,6 +91,7 @@ "parentPageId": "", "position": 4, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Blog", "shortTitle": "Blog", @@ -112,6 +116,7 @@ "parentPageId": "", "position": 6, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Galeries d'images", "shortTitle": "Galeries", @@ -136,6 +141,7 @@ "parentPageId": "", "position": 5, "group": 0, + "groupEdit": 2, "targetBlank": true, "title": "Deltacms", "shortTitle": "Deltacms", @@ -160,6 +166,7 @@ "parentPageId": "", "position": 7, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Contact", "shortTitle": "Contact", @@ -185,6 +192,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Barre latérale", "shortTitle": "Barre latérale", @@ -209,6 +217,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Barre latérale avec menu", "shortTitle": "Barre latérale avec menu", @@ -233,6 +242,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Mentions légales", "shortTitle": "Mentions légales", @@ -258,6 +268,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Maintenance en cours", "shortTitle": "Maintenance en cours", @@ -283,6 +294,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Erreur 403", "shortTitle": "Erreur 403", @@ -307,6 +319,7 @@ "parentPageId": "", "position": 0, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Erreur 404", "shortTitle": "Erreur 404", @@ -331,6 +344,7 @@ "parentPageId": "", "position": 8, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Recherche dans le site", "shortTitle": "Rechercher", @@ -355,6 +369,7 @@ "parentPageId": "edition", "position": 1, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Barre latérale", "shortTitle": "Barre latérale", @@ -380,6 +395,7 @@ "parentPageId": "", "position": 2, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Edition", "shortTitle": "Edition", diff --git a/core/module/install/ressource/databaselight_en/base/page.json b/core/module/install/ressource/databaselight_en/base/page.json index c47f4d6..b5a93e7 100644 --- a/core/module/install/ressource/databaselight_en/base/page.json +++ b/core/module/install/ressource/databaselight_en/base/page.json @@ -15,6 +15,7 @@ "parentPageId": "", "position": 1, "group": 0, + "groupEdit": 2, "targetBlank": false, "title": "Home", "shortTitle": "Home", diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 34cd2a1..678cf0f 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -115,6 +115,7 @@ class init extends common { 'parentPageId' => '', 'position' => 1, 'group' => self::GROUP_VISITOR, + 'groupEdit' => self::GROUP_EDITOR, 'targetBlank' => false, 'title' => 'Accueil', 'shortTitle' => 'Accueil', diff --git a/core/module/page/lang/en/lex_page.php b/core/module/page/lang/en/lex_page.php index 23df407..761b8ba 100644 --- a/core/module/page/lang/en/lex_page.php +++ b/core/module/page/lang/en/lex_page.php @@ -44,7 +44,7 @@ $text['core_page_view']['edit'][40] = 'Breadcrumb'; $text['core_page_view']['edit'][41] = "Are you sure you want to delete this page ?"; $text['core_page_view']['edit'][42] = "The data in the module "; $text['core_page_view']['edit'][43] = " will be deleted. Do you confirm?"; -$text['core_page_view']['edit'][44] = "Minimum group to edit page"; +$text['core_page_view']['edit'][44] = "Group required to edit the page :"; $text['core_page_view']['edit'][45] = "You do not have editing rights, contact an administrator."; // Tinymce et Flatpickr @@ -95,4 +95,8 @@ $groupEdit = [ self::GROUP_MODERATOR => 'Moderator', self::GROUP_ADMIN => 'Administrator' ]; +$groupEditModerator = [ + self::GROUP_EDITOR => 'Editor', + self::GROUP_MODERATOR => 'Moderator' +]; ?> \ No newline at end of file diff --git a/core/module/page/lang/fr/lex_page.php b/core/module/page/lang/fr/lex_page.php index 44a3eeb..11fa225 100644 --- a/core/module/page/lang/fr/lex_page.php +++ b/core/module/page/lang/fr/lex_page.php @@ -44,7 +44,7 @@ $text['core_page_view']['edit'][40] = 'Fil d\'Ariane'; $text['core_page_view']['edit'][41] = "Êtes-vous sûr de vouloir supprimer cette page ?"; $text['core_page_view']['edit'][42] = "Les données du module "; $text['core_page_view']['edit'][43] = " seront effacées. Confirmez-vous ?"; -$text['core_page_view']['edit'][44] = "Groupe minimum pour éditer la page"; +$text['core_page_view']['edit'][44] = "Groupe requis pour modifier la page :"; $text['core_page_view']['edit'][45] = "Vous n'avez pas les droits d'édition, contactez un administrateur."; @@ -97,4 +97,8 @@ $groupEdit = [ self::GROUP_MODERATOR => 'Modérateur', self::GROUP_ADMIN => 'Administrateur' ]; +$groupEditModerator = [ + self::GROUP_EDITOR => 'Editeur', + self::GROUP_MODERATOR => 'Modérateur' +]; ?> \ No newline at end of file diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 5fc7949..1b76cf0 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -16,343 +16,331 @@ if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ){ } echo ''; -// Droit d'édition ? -if( null != $this->getData(['page', $this->getUrl(2), 'groupEdit']) && $this->getUser('group') < $this->getData(['page', $this->getUrl(2), 'groupEdit'])){ ?> +echo template::formOpen('pageEditForm'); ?> +
    +
    + getUrl(2); ?> + getData(['page', $this->getUrl(2), 'moduleId']) === 'redirection' || 'code')$href = helper::baseUrl(); ?> + 'buttonGrey', + 'href' => $href, + 'ico' => 'left', + 'value' => $text['core_page_view']['edit'][0] + ]); ?> +
    +
    + 'https://doc.deltacms.fr/edition', + 'target' => '_blank', + 'ico' => 'help', + 'value' => $text['core_page_view']['edit'][1], + 'class' => 'buttonHelp' + ]); ?> +
    +
    + getUser('group') >= self::GROUP_MODERATOR) { echo template::button('pageEditDuplicate', [ + 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], + 'value' => $text['core_page_view']['edit'][2], + 'ico' => 'clone' + ]); } ?> +
    +
    + getUser('group') >= self::GROUP_MODERATOR) { echo template::button('pageEditDelete', [ + 'class' => 'buttonRed', + 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], + 'value' => $text['core_page_view']['edit'][3], + 'ico' => 'cancel' + ]); } ?> +
    +
    + true, + 'value' => $text['core_page_view']['edit'][4] + ]); ?> +
    +
    - '', - 'value' => $text['core_page_view']['edit'][45] +
    +

    + + + + + +

    +
    +
    + $text['core_page_view']['edit'][6], + 'value' => $this->getData(['page', $this->getUrl(2), 'title']) + ]); ?> +
    +
    + $text['core_page_view']['edit'][7], + 'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']), + 'help' => $text['core_page_view']['edit'][8] + ]); ?> +
    +
    +
    getUser('group') < self::GROUP_MODERATOR) { echo 'style="display: none;"'; } ?>> +
    + + $text['core_page_view']['edit'][9], + 'label' => $text['core_page_view']['edit'][10], + 'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId']) + ]); ?> + $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?> + array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId'])) + ]); ?> +
    +
    + getData(['page', $this->getUrl(2), 'moduleId']) && $this->getData(['page', $this->getUrl(2), 'moduleId']) !== '' ) $state= false?> + (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false, + 'disabled' => $state, + 'uniqueSubmission' => true, + 'value' => template::ico('gear') + ]); ?> +
    +
    +
    +
    +
    +
    + $text['core_page_view']['edit'][11], + 'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu']) + ]); ?> +
    +
    + $text['core_page_view']['edit'][12], + 'label' => $text['core_page_view']['edit'][13], + 'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) + ]); ?> +
    +
    + $text['core_page_view']['edit'][14], + 'label' => $text['core_page_view']['edit'][15], + 'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition']) + ]); ?> +
    +
    +
    +
    +
    +
    +
    + 'editorWysiwyg', + //'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content'])) + 'value' => $this->getPage($this->getUrl(2), self::$i18n) ]); ?>
    -
    -
    - getUrl(2); ?> - getData(['page', $this->getUrl(2), 'moduleId']) === 'redirection' || 'code')$href = helper::baseUrl(); ?> - 'buttonGrey', - 'href' => $href, - 'ico' => 'left', - 'value' => $text['core_page_view']['edit'][0] - ]); ?> -
    -
    - 'https://doc.deltacms.fr/edition', - 'target' => '_blank', - 'ico' => 'help', - 'value' => $text['core_page_view']['edit'][1], - 'class' => 'buttonHelp' - ]); ?> -
    -
    - getUser('group') >= self::GROUP_MODERATOR) { echo template::button('pageEditDuplicate', [ - 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], - 'value' => $text['core_page_view']['edit'][2], - 'ico' => 'clone' - ]); } ?> -
    -
    - getUser('group') >= self::GROUP_MODERATOR) { echo template::button('pageEditDelete', [ - 'class' => 'buttonRed', - 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], - 'value' => $text['core_page_view']['edit'][3], - 'ico' => 'cancel' - ]); } ?> -
    -
    - true, - 'value' => $text['core_page_view']['edit'][4] - ]); ?> -
    -
    -
    -
    -
    -

    - - - - - -

    -
    -
    - $text['core_page_view']['edit'][6], - 'value' => $this->getData(['page', $this->getUrl(2), 'title']) - ]); ?> -
    -
    - $text['core_page_view']['edit'][7], - 'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']), - 'help' => $text['core_page_view']['edit'][8] - ]); ?> -
    -
    -
    getUser('group') < self::GROUP_MODERATOR) { echo 'style="display: none;"'; } ?>> -
    - - $text['core_page_view']['edit'][9], - 'label' => $text['core_page_view']['edit'][10], - 'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId']) - ]); ?> - $this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?> - array_key_exists($this->getData(['page', $this->getUrl(2), 'moduleId']),$module::$moduleIds)? $module::$moduleIds[$this->getData(['page', $this->getUrl(2), 'moduleId'])] : ucfirst($this->getData(['page', $this->getUrl(2), 'moduleId'])) - ]); ?> -
    -
    - getData(['page', $this->getUrl(2), 'moduleId']) && $this->getData(['page', $this->getUrl(2), 'moduleId']) !== '' ) $state= false?> - (bool) $this->getData(['page', $this->getUrl(2), 'moduleId']) === false, - 'disabled' => $state, - 'uniqueSubmission' => true, - 'value' => template::ico('gear') - ]); ?> -
    -
    -
    -
    -
    -
    - $text['core_page_view']['edit'][11], - 'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu']) - ]); ?> -
    -
    - $text['core_page_view']['edit'][12], - 'label' => $text['core_page_view']['edit'][13], - 'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl']) - ]); ?> -
    -
    - $text['core_page_view']['edit'][14], - 'label' => $text['core_page_view']['edit'][15], - 'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition']) - ]); ?> -
    -
    -
    -
    -
    -
    -
    - 'editorWysiwyg', - //'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content'])) - 'value' => $this->getPage($this->getUrl(2), self::$i18n) - ]); ?> -
    -
    - getUser('group') < self::GROUP_MODERATOR) { - echo '
    '; - } - else { - echo '
    '; - } - ?> -
    -
    -
    -

    - - - - - -

    -
    -
    -
    -
    -
    - $text['core_page_view']['edit'][17], - 'help' => $text['core_page_view']['edit'][18], - 'selected' => $this->getData(['page', $this->getUrl(2) , 'block']) - ]); ?> -
    -
    -
    -
    - - getHierarchy($this->getUrl(2),false,true)): ?> - $this->getData(['page', $this->getUrl(2), 'barLeft']) - ]); ?> - - $text['core_page_view']['edit'][19], - 'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft']) - ]); ?> - - getHierarchy($this->getUrl(2),false,true)): ?> - $this->getData(['page', $this->getUrl(2), 'barRight']) - ]); ?> - - $text['core_page_view']['edit'][20], - 'selected' => $this->getData(['page', $this->getUrl(2), 'barRight']) - ]); ?> - - $text['core_page_view']['edit'][21], - 'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']), - 'help' => $text['core_page_view']['edit'][22] - ]); ?> -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    - - - - - -

    -
    -
    -
    - $text['core_page_view']['edit'][24], - 'help' => $text['core_page_view']['edit'][25] - ]); ?> -
    -
    - getHierarchy($this->getUrl(2), false)): ?> - $this->getData(['page', $this->getUrl(2), 'parentPageId']) - ]); ?> - - $text['core_page_view']['edit'][26], - 'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId']) - ]); ?> - -
    -
    - -
    -
    - $this->getData(['page', $this->getUrl(2), 'disable']), - 'help' => $text['core_page_view']['edit'][27] - ]); ?> -
    -
    - $this->getData(['page', $this->getUrl(2), 'targetBlank']) - ]); ?> -
    -
    -
    -
    - $this->getData(['page', $this->getUrl(2), 'hideTitle']) - ]); ?> -
    -
    - $this->getData(['page', $this->getUrl(2), 'breadCrumb']), - 'help' => $text['core_page_view']['edit'][28] - ]); ?> -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    - - - - - -

    -
    -
    -
    - $this->getData(['page', $this->getUrl(2), 'hideMenuChildren']) - ]); ?> -
    -
    - $this->getData(['page', $this->getUrl(2), 'hideMenuSide']), - 'help' => $text['core_page_view']['edit'][32] - ]); ?> -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    +if($this->getUser('group') < self::GROUP_MODERATOR) { + echo '
    '; +} +else { + echo '
    '; +} +?> +
    +
    +
    +

    - + -

    -
    -
    -
    - $text['core_page_view']['edit'][34], - 'selected' => $this->getData(['page', $this->getUrl(2), 'group']) - ]); ?> +

    +
    +
    +
    +
    +
    + $text['core_page_view']['edit'][17], + 'help' => $text['core_page_view']['edit'][18], + 'selected' => $this->getData(['page', $this->getUrl(2) , 'block']) + ]); ?> +
    -
    - $text['core_page_view']['edit'][44], - 'selected' => $this->getData(['page', $this->getUrl(2), 'groupEdit']) +
    +
    + + getHierarchy($this->getUrl(2),false,true)): ?> + $this->getData(['page', $this->getUrl(2), 'barLeft']) ]); ?> -
    -
    - $text['core_page_view']['edit'][35], - 'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle']) + + $text['core_page_view']['edit'][19], + 'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft']) ]); ?> - $text['core_page_view']['edit'][36], - //'maxlength' => '500', - 'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription']) + + getHierarchy($this->getUrl(2),false,true)): ?> + $this->getData(['page', $this->getUrl(2), 'barRight']) ]); ?> -
    + + $text['core_page_view']['edit'][20], + 'selected' => $this->getData(['page', $this->getUrl(2), 'barRight']) + ]); ?> + + $text['core_page_view']['edit'][21], + 'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']), + 'help' => $text['core_page_view']['edit'][22] + ]); ?>
    -
    - +
    +
    +
    +
    +

    + + + + + +

    +
    +
    +
    + $text['core_page_view']['edit'][24], + 'help' => $text['core_page_view']['edit'][25] + ]); ?> +
    +
    + getHierarchy($this->getUrl(2), false)): ?> + $this->getData(['page', $this->getUrl(2), 'parentPageId']) + ]); ?> + + $text['core_page_view']['edit'][26], + 'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId']) + ]); ?> + +
    +
    + +
    +
    + $this->getData(['page', $this->getUrl(2), 'disable']), + 'help' => $text['core_page_view']['edit'][27] + ]); ?> +
    +
    + $this->getData(['page', $this->getUrl(2), 'targetBlank']) + ]); ?> +
    +
    +
    +
    + $this->getData(['page', $this->getUrl(2), 'hideTitle']) + ]); ?> +
    +
    + $this->getData(['page', $this->getUrl(2), 'breadCrumb']), + 'help' => $text['core_page_view']['edit'][28] + ]); ?> +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    + + + + + +

    +
    +
    +
    + $this->getData(['page', $this->getUrl(2), 'hideMenuChildren']) + ]); ?> +
    +
    + $this->getData(['page', $this->getUrl(2), 'hideMenuSide']), + 'help' => $text['core_page_view']['edit'][32] + ]); ?> +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    + + + + + +

    +
    +
    +
    + $text['core_page_view']['edit'][34], + 'selected' => $this->getData(['page', $this->getUrl(2), 'group']) + ]); ?> +
    +
    + getUser('group') === self::GROUP_MODERATOR ) $groupEdit = $groupEditModerator; + echo template::select('pageEditGroupEdit', $groupEdit, [ + 'label' => $text['core_page_view']['edit'][44], + 'selected' => $this->getData(['page', $this->getUrl(2), 'groupEdit']) + ]); ?> +
    +
    + $text['core_page_view']['edit'][35], + 'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle']) + ]); ?> + $text['core_page_view']['edit'][36], + //'maxlength' => '500', + 'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription']) + ]); ?> +
    +
    +
    +
    +
    +
    +
    +