From d24acb3bc24af650aee591d139b2f9c06e201975 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 17 Mar 2022 12:55:04 +0100 Subject: [PATCH] =?UTF-8?q?news=20perso=20css=20et=20balise=20s=C3=A9manti?= =?UTF-8?q?que=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 9 ++-- module/news/view/index/index.php | 70 ++++++++++++++++---------------- 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index d4492ac3..c1a72177 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -80,11 +80,7 @@ class news extends common { public static $borderStyle =[ 'none' => 'Aucune', - 'solid' => 'Tiret', - 'inset' => '3D enfoncé', - 'outset'=> '3D surélevé', - 'ridge' => 'Relief 1', - 'groove'=> 'Relief 2' + 'solid' => 'Tiret' ]; // Signature de l'article @@ -252,7 +248,8 @@ class news extends common { // Générer la feuille de CSS $style = '.newsFrame {'; - $style .= 'border:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';'; + $style .= 'border-right:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';'; + $style .= 'border-left:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';'; $style .= 'background-color:' . $this->getInput('newsThemeBackgroundColor') . ';'; $style .= '}'; diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index 096b255f..c893dc96 100644 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -1,40 +1,42 @@ -
- $news): ?> -
-

- getUrl(0) . '/' . $newsId . '">' . $news['title'] . ''; ?> -

-
- - getData(['module', $this->getUrl(0), 'config', 'height']) !== -1 - && strlen($this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'content'])) >= $this->getData(['module', $this->getUrl(0), 'config', 'height'])):?> - getUrl(0) . '/' . $newsId . '">lire la suite'; ?> - -
-
- - - - - - +
+ $news): ?> +
+

+ getUrl(0) . '/' . $newsId . '">' . $news['title'] . ''; ?> +

+
+ + getData(['module', $this->getUrl(0), 'config', 'height']) !== -1 + && strlen($this->getData(['module', $this->getUrl(0), 'posts', $newsId, 'content'])) >= $this->getData(['module', $this->getUrl(0), 'config', 'height'])):?> + getUrl(0) . '/' . $newsId . '">lire la suite'; ?> + +
+
+ + + - + + getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - AND - ( // Propriétaire - ( $this->getUser('group') === self::GROUP_ADMIN ) - ) - ): ?> - - Editer - - -
+ $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + AND + ( // Propriétaire + ( $this->getUser('group') === self::GROUP_ADMIN ) + ) + ): ?> + + Editer + + +
+
+
- -
+ getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>