From 0afb4363ca2d8741ca02a202a6c53693ad78431f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 27 Apr 2020 12:14:42 +0200 Subject: [PATCH] Correctifs affichage d'un article --- module/blog/blog.php | 2 +- module/blog/view/article/article.php | 66 +++++++++++----------------- 2 files changed, 26 insertions(+), 42 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index aaa05e6a..a017496e 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.0'; + const BLOG_VERSION = '2.01'; /** * Édition diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 95bdabe9..7072649c 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -1,12 +1,24 @@ -
- - getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> - à getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> +
+
+
+ + getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> + à getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> +
+
+ getUser('group') >= self::GROUP_ADMIN): ?> +
+ helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], + 'value' => 'Editer' + ]); ?> +
+
- + getData(['module', $this->getUrl(0), $this->getUrl(1), 'pictureSize']) === null ? '100' : $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'pictureSize']); ?> getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) { echo '' . $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'picture']) . ''; } ?> @@ -17,44 +29,15 @@ getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?>

-getUser('group') >= self::GROUP_ADMIN): ?> -
-
- helper::baseUrl() . $this->getUrl(0), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
- helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], - 'value' => 'Editer' - ]); ?> -
-
- -
-
- 'buttonGrey', - 'href' => helper::baseUrl() . $this->getUrl(0), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
-
-
-
-

- getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); ?> - 1 ? 'commentaires' : 'commentaire'); ?> -

getData(['module', $this->getUrl(0), $this->getUrl(1), 'closeComment'])): ?> -

Les commentaires sont fermés pour cet article.

+

Cet article ne reçoit pas de commentaire.

+

+ getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); ?> + + 0 ? $commentsNb . ' ' . 'commentaire' . $s : 'Pas encore de commentaire'; ?> +

'Rédiger un commentaire...', @@ -116,6 +99,7 @@
+
$comment): ?>