diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 7be7d351..04665a82 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -643,7 +643,6 @@ class init extends common { 'module' => [ 'blog' => [ 'mon-premier-article' => [ - 'closeComment' => false, 'comment' => [ '58e11d09e5aff' => [ 'author' => 'Rémi', @@ -660,10 +659,15 @@ class init extends common { 'publishedOn' => 1548790902, 'state' => true, 'title' => 'Mon premier article', - 'userId' => '' // Géré au moment de l'installation + 'userId' => '', // Géré au moment de l'installation + 'editConsent' => 'group', + 'commentMaxlength' => '500', + 'commentApproved' => false, + 'commentClose' => false, + 'commentNotification' => false, + 'commentGroupNotification' => 1 ], 'mon-deuxieme-article' => [ - 'closeComment' => false, 'comment' => [], 'content' => '

Et prima post Osdroenam quam, ut dictum est, ab hac descriptione discrevimus, Commagena, nunc Euphratensis, clementer adsurgit, Hierapoli, vetere Nino et Samosata civitatibus amplis inlustris.

Ob haec et huius modi multa, quae cernebantur in paucis, omnibus timeri sunt coepta. et ne tot malis dissimulatis paulatimque serpentibus acervi crescerent aerumnarum, nobilitatis decreto legati mittuntur: Praetextatus ex urbi praefecto et ex vicario Venustus et ex consulari Minervius oraturi, ne delictis supplicia sint grandiora, neve senator quisquam inusitato et inlicito more tormentis exponeretur.

Sed ut tum ad senem senex de senectute, sic hoc libro ad amicum amicissimus scripsi de amicitia. Tum est Cato locutus, quo erat nemo fere senior temporibus illis, nemo prudentior; nunc Laelius et sapiens (sic enim est habitus) et amicitiae gloria excellens de amicitia loquetur. Tu velim a me animum parumper avertas, Laelium loqui ipsum putes. C. Fannius et Q. Mucius ad socerum veniunt post mortem Africani; ab his sermo oritur, respondet Laelius, cuius tota disputatio est de amicitia, quam legens te ipse cognosces.

', 'picture' => 'galerie/landscape/desert.jpg', @@ -672,10 +676,15 @@ class init extends common { 'publishedOn' => 1550432502, 'state' => true, 'title' => 'Mon deuxième article', - 'userId' => '' // Géré au moment de l'installation + 'userId' => '', // Géré au moment de l'installation + 'editConsent' => 'group', + 'commentMaxlength' => '500', + 'commentApproved' => false, + 'commentClose' => false, + 'commentNotification' => false, + 'commentGroupNotification' => 1 ], 'mon-troisieme-article' => [ - 'closeComment' => true, 'comment' => [], 'content' => '

Rogatus ad ultimum admissusque in consistorium ambage nulla praegressa inconsiderate et leviter proficiscere inquit ut praeceptum est, Caesar sciens quod si cessaveris, et tuas et palatii tui auferri iubebo prope diem annonas. hocque solo contumaciter dicto subiratus abscessit nec in conspectum eius postea venit saepius arcessitus.

Proinde concepta rabie saeviore, quam desperatio incendebat et fames, amplificatis viribus ardore incohibili in excidium urbium matris Seleuciae efferebantur, quam comes tuebatur Castricius tresque legiones bellicis sudoribus induratae.

Inter has ruinarum varietates a Nisibi quam tuebatur accitus Vrsicinus, cui nos obsecuturos iunxerat imperiale praeceptum, dispicere litis exitialis certamina cogebatur abnuens et reclamans, adulatorum oblatrantibus turmis, bellicosus sane milesque semper et militum ductor sed forensibus iurgiis longe discretus, qui metu sui discriminis anxius cum accusatores quaesitoresque subditivos sibi consociatos ex isdem foveis cerneret emergentes, quae clam palamve agitabantur, occultis Constantium litteris edocebat inplorans subsidia, quorum metu tumor notissimus Caesaris exhalaret.

', 'picture' => 'galerie/landscape/iceberg.jpg', @@ -684,7 +693,13 @@ class init extends common { 'publishedOn' => 1550864502, 'state' => true, 'title' => 'Mon troisième article', - 'userId' => '' // Géré au moment de l'installation + 'userId' => '', // Géré au moment de l'installation + 'editConsent' => 'group', + 'commentMaxlength' => '500', + 'commentApproved' => false, + 'commentClose' => true, + 'commentNotification' => false, + 'commentGroupNotification' => 1 ] ], 'galeries' => [ diff --git a/module/blog/blog.php b/module/blog/blog.php index 084a22ad..e8383ac6 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -14,11 +14,8 @@ class blog extends common { - // Objets - // Propriétaire - groupe - const EDIT_ALL = '02'; // Groupes Editeurs et admins - const EDIT_OWNER_ADMIN = '23'; // Propriétaire éditeur + groupe admin - const EDIT_ADMIN = '03'; // Groupe des admin + const EDIT_OWNER = 'owner'; + const EDIT_GROUP = 'group'; public static $actions = [ 'add' => self::GROUP_EDITOR, @@ -41,7 +38,7 @@ class blog extends common { public static $editCommentSignature = ''; public static $comments = []; - + public static $nbCommentsApproved = 0; public static $commentsDelete; @@ -79,19 +76,16 @@ class blog extends common { ]; // Permissions d'un article - public static $articleRightsAdmin = [ - self::EDIT_ALL => 'Groupes des éditeurs et des administrateurs', - self::EDIT_OWNER_ADMIN => 'Editeur et groupe des administrateurs', - self::EDIT_ADMIN => 'Groupe des administrateurs' - ]; - public static $articleRightsModerator = [ - self::EDIT_ALL => 'Groupes des éditeurs et des administrateurs', - self::EDIT_OWNER_ADMIN => 'Editeur et groupe des administrateurs' + public static $articleConsent = [ + self::EDIT_GROUP => 'Groupe du propriétaire', + self::EDIT_OWNER => 'Propiétaire' ]; + + public static $users = []; - const BLOG_VERSION = '3.04.dev'; + const BLOG_VERSION = '3.05.dev'; /** * Édition @@ -111,22 +105,27 @@ class blog extends common { $articleId = helper::increment($articleId, (array) $this->getData(['module', $this->getUrl(0)])); $articleId = helper::increment($articleId, array_keys(self::$actions)); // Crée l'article - $this->setData(['module', $this->getUrl(0), $articleId, [ - 'closeComment' => $this->getInput('blogAddCloseComment', helper::FILTER_BOOLEAN), - 'mailNotification' => $this->getInput('blogAddMailNotification', helper::FILTER_BOOLEAN), - 'groupNotification' => $this->getInput('blogAddGroupNotification', helper::FILTER_INT), - 'comment' => [], - 'content' => $this->getInput('blogAddContent', null), - 'picture' => $this->getInput('blogAddPicture', helper::FILTER_STRING_SHORT, true), - 'hidePicture' => $this->getInput('blogAddHidePicture', helper::FILTER_BOOLEAN), - 'pictureSize' => $this->getInput('blogAddPictureSize', helper::FILTER_STRING_SHORT), - 'picturePosition' => $this->getInput('blogAddPicturePosition', helper::FILTER_STRING_SHORT), - 'publishedOn' => $this->getInput('blogAddPublishedOn', helper::FILTER_DATETIME, true), - 'state' => $this->getInput('blogAddState', helper::FILTER_BOOLEAN), - 'title' => $this->getInput('blogAddTitle', helper::FILTER_STRING_SHORT, true), - 'userId' => $newuserid, - 'commentMaxlength' => $this->getInput('blogAddlength', null) - ]]); + $this->setData(['module', + $this->getUrl(0), + $articleId, [ + 'comment' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment']), + 'content' => $this->getInput('blogAddContent', null), + 'picture' => $this->getInput('blogAddPicture', helper::FILTER_STRING_SHORT, true), + 'hidePicture' => $this->getInput('blogAddHidePicture', helper::FILTER_BOOLEAN), + 'pictureSize' => $this->getInput('blogAddPictureSize', helper::FILTER_STRING_SHORT), + 'picturePosition' => $this->getInput('blogAddPicturePosition', helper::FILTER_STRING_SHORT), + 'publishedOn' => $this->getInput('blogAddPublishedOn', helper::FILTER_DATETIME, true), + 'state' => $this->getInput('blogAddState', helper::FILTER_BOOLEAN), + 'title' => $this->getInput('blogAddTitle', helper::FILTER_STRING_SHORT, true), + 'userId' => $newuserid, + 'editConsent' => $this->getInput('blogAddConsent'), + 'commentMaxlength' => $this->getInput('blogAddCommentMaxlength'), + 'commentApproved' => $this->getInput('blogAddCommentApproved', helper::FILTER_BOOLEAN), + 'commentClose' => $this->getInput('blogAddCommentClose', helper::FILTER_BOOLEAN), + 'commentNotification' => $this->getInput('blogAddCommentNotification', helper::FILTER_BOOLEAN), + 'commentGroupNotification' => $this->getInput('blogAddCommentGroupNotification', helper::FILTER_INT) + ] + ]); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(0) . '/config', @@ -305,16 +304,15 @@ class blog extends common { // Gestion des droits d'accès $filterData=[]; foreach ($articleIds as $key => $value) { - $rights = $this->getData(['module', $this->getUrl(0), $value,'editRights']); - // Compatibilité pas de droit stocké placer droit par défaut - $rights = empty($rights) ? '02' : $rights; - // Check les droits du propriétaire - // Check les droits du groupe + $consent = $this->getData(['module', $this->getUrl(0), $value,'editConsent']); if ( - ( substr($rights,0,1) === '2' - AND $this->getData(['module', $this->getUrl(0), $value,'userId']) === $this->getUser('id') + ( + $consent === self::EDIT_OWNER + AND $this->getData(['module', $this->getUrl(0), $value,'userId']) === $this->getUser('id') + ) OR ( + $consent === self::EDIT_GROUP + AND $this->getUser('group') >= $this->getData(['user',$this->getUser('group'),'group']) ) - OR ( $this->getUser('group') >= substr($rights,1,1) ) ) { $filterData[] = $value; } @@ -437,24 +435,27 @@ class blog extends common { $articleId = helper::increment($articleId, $this->getData(['module', $this->getUrl(0)])); $articleId = helper::increment($articleId, array_keys(self::$actions)); } - $this->setData(['module', $this->getUrl(0), $articleId, [ - 'closeComment' => $this->getInput('blogEditCloseComment', helper::FILTER_BOOLEAN), - 'mailNotification' => $this->getInput('blogEditMailNotification', helper::FILTER_BOOLEAN), - 'groupNotification' => $this->getInput('blogEditGroupNotification', helper::FILTER_INT), - 'comment' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment']), - 'content' => $this->getInput('blogEditContent', null), - 'picture' => $this->getInput('blogEditPicture', helper::FILTER_STRING_SHORT, true), - 'hidePicture' => $this->getInput('blogEditHidePicture', helper::FILTER_BOOLEAN), - 'pictureSize' => $this->getInput('blogEditPictureSize', helper::FILTER_STRING_SHORT), - 'picturePosition' => $this->getInput('blogEditPicturePosition', helper::FILTER_STRING_SHORT), - 'publishedOn' => $this->getInput('blogEditPublishedOn', helper::FILTER_DATETIME, true), - 'state' => $this->getInput('blogEditState', helper::FILTER_BOOLEAN), - 'title' => $this->getInput('blogEditTitle', helper::FILTER_STRING_SHORT, true), - 'userId' => $newuserid, - 'commentMaxlength' => $this->getInput('blogEditCommentMaxlength'), - 'commentApprove' => $this->getInput('blogEditCommentApprove', helper::FILTER_BOOLEAN), - 'editRights' => $this->getInput('blogEditRights') - ]]); + $this->setData(['module', + $this->getUrl(0), + $articleId, [ + 'comment' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'comment']), + 'content' => $this->getInput('blogEditContent', null), + 'picture' => $this->getInput('blogEditPicture', helper::FILTER_STRING_SHORT, true), + 'hidePicture' => $this->getInput('blogEditHidePicture', helper::FILTER_BOOLEAN), + 'pictureSize' => $this->getInput('blogEditPictureSize', helper::FILTER_STRING_SHORT), + 'picturePosition' => $this->getInput('blogEditPicturePosition', helper::FILTER_STRING_SHORT), + 'publishedOn' => $this->getInput('blogEditPublishedOn', helper::FILTER_DATETIME, true), + 'state' => $this->getInput('blogEditState', helper::FILTER_BOOLEAN), + 'title' => $this->getInput('blogEditTitle', helper::FILTER_STRING_SHORT, true), + 'userId' => $newuserid, + 'editConsent' => $this->getInput('blogEditConsent'), + 'commentMaxlength' => $this->getInput('blogEditCommentMaxength'), + 'commentApproved' => $this->getInput('blogEditCommentApproved', helper::FILTER_BOOLEAN), + 'commentClose' => $this->getInput('blogEditCommentClose', helper::FILTER_BOOLEAN), + 'commentNotification' => $this->getInput('blogEditCommentNotification', helper::FILTER_BOOLEAN), + 'commentGroupNotification' => $this->getInput('blogEditCommentGroupNotification', helper::FILTER_INT) + ] + ]); // Supprime l'ancien article if($articleId !== $this->getUrl(2)) { $this->deleteData(['module', $this->getUrl(0), $this->getUrl(2)]); @@ -473,7 +474,7 @@ class blog extends common { // Les membres ne sont pas éditeurs, les exclure de la liste if ( $this->getData(['user', $userId, 'group']) < self::GROUP_EDITOR) { unset(self::$users[$userId]); - } + } $userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']) . ' (' . self::$groupEdits[$this->getData(['user', $userId, 'group'])] . ')'; } unset($userFirstname); @@ -526,19 +527,19 @@ class blog extends common { 'content' => $content, 'createdOn' => time(), 'userId' => $this->getInput('blogArticleUserId'), - 'approval' => !$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentApprove']) // true commentaire publié false en attente de publication + 'approval' => !$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentApproved']) // true commentaire publié false en attente de publication ]]); // Envoi d'une notification aux administrateurs // Init tableau $to = []; // Liste des destinataires foreach($this->getData(['user']) as $userId => $user) { - if ($user['group'] >= $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'groupNotification']) ) { + if ($user['group'] >= $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentGroupNotification']) ) { $to[] = $user['mail']; } } // Envoi du mail $sent code d'erreur ou de réussite - $notification = $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentApprove']) === true ? 'Commentaire déposé en attente d\'approbation': 'Commentaire déposé'; + $notification = $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentApproved']) === true ? 'Commentaire déposé en attente d\'approbation': 'Commentaire déposé'; if ($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'mailNotification']) === true) { $sent = $this->sendMail( $to, @@ -567,11 +568,13 @@ class blog extends common { } // Ids des commentaires approuvés par ordre de publication $commentsApproved = $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment']); - foreach( $commentsApproved as $key => $value){ - if($value['approval']===false) unset($commentsApproved[$key]); + if ($commentsApproved) { + foreach( $commentsApproved as $key => $value){ + if($value['approval']===false) unset($commentsApproved[$key]); + } + // Ligne suivante si affichage du nombre total de commentaires approuvés sous l'article + self::$nbCommentsApproved = count($commentsApproved); } - // Ligne suivante si affichage du nombre total de commentaires approuvés sous l'article - self::$nbCommentsApproved = count($commentsApproved); $commentIds = array_keys(helper::arrayCollumn($commentsApproved, 'createdOn', 'SORT_DESC')); // Pagination $pagination = helper::pagination($commentIds, $this->getUrl(),$this->getData(['config','itemsperPage']),'#comment'); diff --git a/module/blog/view/add/add.js.php b/module/blog/view/add/add.js.php index be4e7ac0..6067ca10 100644 --- a/module/blog/view/add/add.js.php +++ b/module/blog/view/add/add.js.php @@ -21,19 +21,19 @@ $("#blogAddDraft").on("click", function() { /** * Options de commentaires */ -$("#blogAddCloseComment").on("change", function() { +$("#blogAddCommentClose").on("change", function() { if ($(this).is(':checked') ) { - $("#commentOptionsWrapper").slideUp(); + $(".commentOptionsWrapper").slideUp(); } else { - $("#commentOptionsWrapper").slideDown(); + $(".commentOptionsWrapper").slideDown(); } }); -$("#blogAddMailNotification").on("change", function() { +$("#blogAddCommentNotification").on("change", function() { if ($(this).is(':checked') ) { - $("#blogAddGroupNotification").slideDown(); + $("#blogAddCommentGroupNotification").slideDown(); } else { - $("#blogAddGroupNotification").slideUp(); + $("#blogAddCommentGroupNotification").slideUp(); } }); @@ -41,15 +41,14 @@ $("#blogAddMailNotification").on("change", function() { $( document).ready(function() { if ($("#blogAddCloseComment").is(':checked') ) { - $("#commentOptionsWrapper").slideUp(); + $(".commentOptionsWrapper").slideUp(); } else { - $("#commentOptionsWrapper").slideDown(); + $(".commentOptionsWrapper").slideDown(); } - if ($("#blogAddMailNotification").is(':checked') ) { - $("#blogAddGroupNotification").slideDown(); + if ($("#blogAddCommentNotification").is(':checked') ) { + $("#blogAddCommentGroupNotification").slideDown(); } else { - $("#blogAddGroupNotification").slideUp(); + $("#blogAddCommentGroupNotification").slideUp(); } - }); \ No newline at end of file diff --git a/module/blog/view/add/add.php b/module/blog/view/add/add.php index 058894c8..85ab6b20 100644 --- a/module/blog/view/add/add.php +++ b/module/blog/view/add/add.php @@ -67,18 +67,11 @@ 'editorWysiwyg' ]); ?> -
+

Options de publication

-
- 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', - 'label' => 'Caractères par commentaire', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength']) - ]); ?> -
'Auteur', @@ -93,47 +86,52 @@ 'value' => time() ]); ?>
+
+ 'Edition / Suppression', + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent']), + 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' + ]); ?> +
-
-
-

Permissions

- getUser('group') === self::GROUP_ADMIN ? $module::$articleRightsAdmin : $module::$articleRightsModerator , [ - 'label' => 'Droits d\'édition et de modification', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editRights']) - ]); ?> -
-
-
+

Commentaires

- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'closeComment']) - ]); ?> -
-
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApprove']), - '' - ]); ?> -
+
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentClose']) + ]); ?>
-
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'mailNotification']), - ]); ?> -
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'groupNotification']), - 'help' => 'Editeurs = éditeurs + administrateurs
Membres = membres + éditeurs + administrateurs' - ]); ?> -
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApproved']), + '' + ]); ?> +
+
+ 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', + 'label' => 'Caractères par commentaire', + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength']) + ]); ?> +
+
+
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentNotification']), + ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentGroupNotification']), + 'help' => 'Editeurs = éditeurs + administrateurs
Membres = membres + éditeurs + administrateurs' + ]); ?>
diff --git a/module/blog/view/edit/edit.js.php b/module/blog/view/edit/edit.js.php index 0297425d..96e2872a 100644 --- a/module/blog/view/edit/edit.js.php +++ b/module/blog/view/edit/edit.js.php @@ -33,19 +33,19 @@ $("#blogEditDraft").on("click", function() { /** * Options de commentaires */ -$("#blogEditCloseComment").on("change", function() { +$("#blogEditCommentClose").on("change", function() { if ($(this).is(':checked') ) { - $("#commentOptionsWrapper").slideUp(); + $(".commentOptionsWrapper").slideUp(); } else { - $("#commentOptionsWrapper").slideDown(); + $(".commentOptionsWrapper").slideDown(); } }); -$("#blogEditMailNotification").on("change", function() { +$("#blogEditCommentNotification").on("change", function() { if ($(this).is(':checked') ) { - $("#blogEditGroupNotification").slideDown(); + $("#blogEditCommentGroupNotification").slideDown(); } else { - $("#blogEditGroupNotification").slideUp(); + $("#blogEditCommentGroupNotification").slideUp(); } }); @@ -53,15 +53,14 @@ $("#blogEditMailNotification").on("change", function() { $( document).ready(function() { if ($("#blogEditCloseComment").is(':checked') ) { - $("#commentOptionsWrapper").slideUp(); + $(".commentOptionsWrapper").slideUp(); } else { - $("#commentOptionsWrapper").slideDown(); + $(".commentOptionsWrapper").slideDown(); } - if ($("#blogEditMailNotification").is(':checked') ) { - $("#blogEditGroupNotification").slideDown(); + if ($("#blogEditCommentNotification").is(':checked') ) { + $("#blogEditCommentGroupNotification").slideDown(); } else { - $("#blogEditGroupNotification").slideUp(); + $("#blogEditCommentGroupNotification").slideUp(); } - }); \ No newline at end of file diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index d6ff0965..10402bce 100644 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -78,13 +78,6 @@

Options de publication

-
- 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', - 'label' => 'Caractères par commentaire', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength']) - ]); ?> -
'Auteur', @@ -96,7 +89,14 @@ 'L\'article n\'est visible qu\'après la date de publication prévue.', 'label' => 'Date de publication', - 'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'publishedOn']) + 'value' => time() + ]); ?> +
+
+ 'Edition / Suppression', + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editConsent']), + 'help' => 'Les utilisateurs des groupes supérieurs accèdent à l\'article sans restriction' ]); ?>
@@ -104,42 +104,41 @@
-
-
-

Permissions

- getUser('group') === self::GROUP_ADMIN ? $module::$articleRightsAdmin : $module::$articleRightsModerator , [ - 'label' => 'Droits d\'édition et de modification', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'editRights']) - ]); ?> -
-
-
+

Commentaires

- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'closeComment']) - ]); ?> -
-
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApprove']), - '' - ]); ?> -
+
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentClose']) + ]); ?>
-
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'mailNotification']), - ]); ?> -
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'groupNotification']), - 'help' => 'Editeurs = éditeurs + administrateurs
Membres = membres + éditeurs + administrateurs' - ]); ?> -
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentApprove']), + '' + ]); ?> +
+
+ 'Choix du nombre maximum de caractères pour chaque commentaire de l\'article, mise en forme html comprise.', + 'label' => 'Caractères par commentaire', + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentMaxlength']) + ]); ?> +
+ +
+
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentNotification']), + ]); ?> +
+
+ $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'commentGroupNotification']), + 'help' => 'Editeurs = éditeurs + administrateurs
Membres = membres + éditeurs + administrateurs' + ]); ?>
diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 21317bb3..aac898ce 100644 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -29,7 +29,9 @@