From 7ce41dad33ea9f5f0703a96b00aefcf5bfecca0b Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 15 Mar 2022 16:04:25 +0100 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9sentation=20des=20commentaires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/blog/view/article/article.php | 23 ++++++++++------- module/blog/view/index/index.php | 37 ++++++++++++++-------------- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index ab2d6d9c..a8b4d34e 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -66,15 +66,20 @@ getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'commentClose'])): ?>

Cet article ne reçoit pas de commentaire.

-

- 0) { - echo $module::$nbCommentsApproved . ' commentaire' . ($module::$nbCommentsApproved > 1 ? 's' : ''); - } else { - echo 'Pas encore de commentaire'; - } - ?> -

+
+
+

+ 0) { + echo $module::$nbCommentsApproved . ' commentaire' . ($module::$nbCommentsApproved > 1 ? 's' : ''); + } else { + echo 'Pas encore de commentaire'; + } + ?> +

+
+
'Rédiger un commentaire...', diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 15a0e392..7f3f691f 100644 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -22,7 +22,7 @@
-
+
signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId']));?> @@ -64,23 +64,24 @@
-
-
- getData(['module', $this->getUrl(0), 'posts', $articleId, 'commentClose'])): ?> -

Cet article ne reçoit pas de commentaire.

- -

- 0) { - echo ''; - echo $module::$comments[$articleId] . ' commentaire' . ($module::$comments[$articleId] > 1 ? 's' : ''); - echo ''; - } else { - echo 'Pas encore de commentaire'; - } - ?> -

- +
+ getData(['module', $this->getUrl(0), 'posts', $articleId, 'commentClose'])): ?> +

Cet article ne reçoit pas de commentaire.

+ +

+ + 0) { + echo ''; + echo $module::$comments[$articleId] . ' commentaire' . ($module::$comments[$articleId] > 1 ? 's' : ''); + echo ''; + } else { + echo 'Pas encore de commentaire'; + } + ?> +

+ +