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 @@

Informations générales

-
+
'Titre' ]); ?>
-
+
+
+
'Taille optimale de l\'image de couverture : ' . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.', 'label' => 'Image de couverture', 'type' => 1 ]); ?>
-
+
+ 'Largeur de l\'image' + ]); ?>
-
+
+ 'Position', + 'help' => 'Le texte de l\'article est adapté autour de l\'image' + ]); ?> +
+
+
+
$this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'hidePicture']) ]); ?> -
+
@@ -72,7 +85,13 @@

Options avancées

- + + 'Editeurs = éditeurs + administrateurs
Membres = membres + éditeurs + administrateurs' + ]); ?> + '' + ]); ?>
diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 7072649c..e3386281 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -23,13 +23,10 @@ } ?> getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?> - -

+

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' ]); ?> -
+
-
+
$this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'hidePicture']) ]); ?> -
+
@@ -99,9 +99,9 @@ ]); ?> '', - 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'groupNotification']) - ]); ?> + 'label' => '', + 'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'groupNotification']) + ]); ?>