diff --git a/core/core.php b/core/core.php index a075ca11..eb1f686e 100644 --- a/core/core.php +++ b/core/core.php @@ -3162,12 +3162,6 @@ class core extends common 'style' => file_get_contents($stylePath) ]); } - if ($output['style']) { - $this->addOutput([ - //'style' => $this->output['style'] . file_get_contents($output['style']) - 'style' => file_get_contents($output['style']) - ]); - } // JS $scriptPath = $modulePath . self::MODULE_DIR . $moduleId . '/view/' . $output['view'] . '/' . $output['view'] . '.js.php'; diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 0ec34661..091e1d5a 100755 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -1,4 +1,14 @@ + getData(['module', $this->getUrl(0), 'config', 'feeds'])) : ?> +
+ + + getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) ? '

' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

' : ''; + ?> +
+
+
$article) : ?> getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) === 0) : ?> @@ -143,16 +153,6 @@
- getData(['module', $this->getUrl(0), 'config', 'feeds'])) : ?> -
- - - ' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

'; - ?> -
-
- \ No newline at end of file diff --git a/module/news/changes.md b/module/news/changes.md index f1fd01f7..0d38a1e7 100644 --- a/module/news/changes.md +++ b/module/news/changes.md @@ -1,6 +1,7 @@ # Version 4.4 - Intl date Formats -- Modification liées à la suppression de flatpickr +- Bug un conflit avec le style de la page +- Modifications liées à la suppression de flatpickr # Version 4.3 - Multilinguisme # Version 4.23 diff --git a/module/news/news.php b/module/news/news.php index fea6e372..45c30ed4 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -266,8 +266,7 @@ class news extends common // Générer la feuille de CSS $style = '.newsFrame {'; - $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 .= 'border:' . $this->getInput('newsThemeBorderStyle', helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth', helper::FILTER_STRING_SHORT) . ';'; $style .= 'background-color:' . $this->getInput('newsThemeBackgroundColor') . ';'; $style .= '}'; @@ -546,9 +545,6 @@ class news extends common 'showBarEditButton' => true, 'showPageContent' => true, 'view' => 'index', - 'style' => file_exists($this->getData(['module', $this->getUrl(0), 'theme', 'style'])) - ? $this->getData(['module', $this->getUrl(0), 'theme', 'style']) - : '' ]); } } diff --git a/module/news/view/index/index.css b/module/news/view/index/index.css index f0bff231..6727c753 100755 --- a/module/news/view/index/index.css +++ b/module/news/view/index/index.css @@ -13,14 +13,9 @@ */ /* -* Module news +* Module news TRUC */ -/* -.newsTitle { - background-color: #ECEFF1; - padding:5px; -}*/ .newsContent { overflow: hidden; /* les dépassements seront masqués */ position: relative; @@ -51,5 +46,3 @@ display: inline; vertical-align: top; } - - diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index 62e844fb..10ebf140 100644 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -1,54 +1,60 @@ - -
-
- $news) : ?> -
-

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

-
- - - - - - getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - and - ( // Propriétaire - ($this->getUser('group') === self::GROUP_ADMIN) - ) - ) : ?> - - Éditer - - -
-
-
- - 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'; ?> - -
- -
-
- - getData(['module', $this->getUrl(0), 'config', 'feeds'])) : ?> + + + getData(['module', $this->getUrl(0), 'config', 'feeds'])): ?>
' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

'; + echo $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) ? '

' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

' : ''; ?>
- +
+
+ + $news): ?> +
+
+

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

+
+ + + + + + getUser('password') === $this->getInput('ZWII_USER_PASSWORD') + and + ( // Propriétaire + ($this->getUser('group') === self::GROUP_ADMIN) + ) + ): ?> + + Éditer + + +
+
+ + 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'; ?> + +
+
+
+ + +
+
+ + \ No newline at end of file