From 0ffe4f7b40066f349e8b5fd5952960a8f9ac64af Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 2 Sep 2020 09:08:27 +0200 Subject: [PATCH] ajoute balise
--- module/blog/view/article/article.php | 216 ++++++++++++++------------- module/blog/view/index/index.php | 2 + 2 files changed, 111 insertions(+), 107 deletions(-) diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 45d071a8..1bf1ba9e 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -1,111 +1,113 @@ -
-
-
- - 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']) . ''; - } ?> -getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?> -

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

Cet article ne reçoit pas de commentaire.

- -

- - - 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' => $module::$editCommentSignature - ]); ?> - $this->getUser('id') - ]); ?> - -
-
- 'Nom' - ]); ?> -
-
-
Ou
-
-
- helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()) . '__comment', - 'value' => 'Connexion' - ]); ?> -
-
- - 'Commentaire avec maximum '.$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']).' caractères', - 'class' => 'editorWysiwygComment', - 'noDirty' => true, - 'maxlength' => $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']) - ]); ?> -
- getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?> -
-
- -
-
- -
-
- 'buttonGrey', - 'value' => 'Annuler' - ]); ?> -
-
- 'Envoyer', - 'ico' => '' - ]); ?> -
+
+
+
+
+ + 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']) . ''; + } ?> + getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?> +

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

Cet article ne reçoit pas de commentaire.

+ +

+ + + 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' => $module::$editCommentSignature + ]); ?> + $this->getUser('id') + ]); ?> + +
+
+ 'Nom' + ]); ?> +
+
+
Ou
+
+
+ helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()) . '__comment', + 'value' => 'Connexion' + ]); ?> +
+
+ + 'Commentaire avec maximum '.$this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']).' caractères', + 'class' => 'editorWysiwygComment', + 'noDirty' => true, + 'maxlength' => $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'commentMaxlength']) + ]); ?> +
+ getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?> +
+
+ +
+
+ +
+
+ 'buttonGrey', + 'value' => 'Annuler' + ]); ?> +
+
+ 'Envoyer', + 'ico' => '' + ]); ?> +
+
+
+ + -
-
- $comment): ?> -
-

- le -

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

+ le +

+ +
+ +
-
- + +
\ No newline at end of file diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 3734b479..81fe7a66 100755 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -21,6 +21,7 @@