diff --git a/module/blog/blog.php b/module/blog/blog.php index 94294649..8d84ebb9 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -51,7 +51,7 @@ class blog extends common { public static $users = []; - const BLOG_VERSION = '2.01'; + const BLOG_VERSION = '2.02'; /** * Édition @@ -66,12 +66,14 @@ class blog extends common { // Crée l'article $this->setData(['module', $this->getUrl(0), $articleId, [ 'closeComment' => $this->getInput('blogAddCloseComment', helper::FILTER_BOOLEAN), - 'mailNotification' => $this->getInput('blogEditMailNotification', helper::FILTER_BOOLEAN), - 'groupNotification' => $this->getInput('blogEditGroupNotification', helper::FILTER_INT), + '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), diff --git a/module/blog/view/add/add.php b/module/blog/view/add/add.php index a28e0743..37230abd 100755 --- a/module/blog/view/add/add.php +++ b/module/blog/view/add/add.php @@ -28,25 +28,38 @@
+
getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'firstname']); ?> getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?> -
- getData(['module', $this->getUrl(0), $this->getUrl(1), 'closeComment'])): ?>Cet article ne reçoit pas de commentaire.
diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index 195b83f9..da093b3f 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -56,14 +56,14 @@ 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'picturePosition']), 'help' => 'Le texte de l\'article est adapté autour de l\'image' ]); ?> -