From db6e2c3a971ba3b221e9ca12c2eb108e33944afc Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 5 Oct 2020 09:49:06 +0200 Subject: [PATCH] tag article --- module/blog/view/article/article.php | 216 ++++++++++++++------------- 1 file changed, 109 insertions(+), 107 deletions(-) diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index b8435286..5b573ebc 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -1,120 +1,122 @@ -
-
-
- - 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 + AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + ): ?> +
+ helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], + 'value' => 'Editer' + ]); ?> +
+
- getUser('group') >= self::GROUP_ADMIN - AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - ): ?> -
- 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']) . ''; - } ?> + 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']) . ''; + } ?> -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.

- -

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

- - 'Rédiger un commentaire...', - 'readonly' => true - ]); ?> -
- getUser('password') === $this->getInput('ZWII_USER_PASSWORD')): ?> - 'Nom', - 'readonly' => true, - 'value' => $this->getUser('firstname') . ' ' . $this->getUser('lastname') + 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.

+ +

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

+ + 'Rédiger un commentaire...', + 'readonly' => true + ]); ?> +
+ getUser('password') === $this->getInput('ZWII_USER_PASSWORD')): ?> + 'Nom', + 'readonly' => true, + 'value' => $this->getUser('firstname') . ' ' . $this->getUser('lastname') + ]); ?> + $this->getUser('id') + ]); ?> + +
+
+ 'Nom' + ]); ?> +
+
+
Ou
+
+
+ helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()) . '__comment', + 'value' => 'Connexion' + ]); ?> +
+
+ + 'Commentaire', + 'maxlength' => '500' ]); ?> - $this->getUser('id') - ]); ?> - + getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?> +
+
+ +
+
+
-
- 'Nom' +
+ 'buttonGrey', + 'value' => 'Annuler' ]); ?>
-
-
Ou
-
-
- helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()) . '__comment', - 'value' => 'Connexion' +
+ 'Envoyer', + 'ico' => '' ]); ?>
- - 'Commentaire', - 'maxlength' => '500' - ]); ?> - getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?> -
-
- -
-
- -
-
- 'buttonGrey', - 'value' => 'Annuler' - ]); ?> -
-
- 'Envoyer', - 'ico' => '' - ]); ?> -
-
- - + + -
-
- $comment): ?> -
-

- - getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']); ?> - - - - le -

- -
- +
+
+ $comment): ?> +
+

+ + getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']); ?> + + + + le +

+ +
+ +
-
- + + \ No newline at end of file