From c25bc1ab65459b6c23ddbc5bfe0c45149dfa3500 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 22 Jul 2021 23:19:02 +0200 Subject: [PATCH] =?UTF-8?q?Donn=C3=A9es=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 6 +++--- module/news/ressource/defaultdata.php | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index 0ede9d40..a650ea7f 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -521,15 +521,15 @@ class news extends common { private function init() { - $fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css'; + //$fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css'; // Données du module absentes if ($this->getData(['module', $this->getUrl(0), 'config' ]) === null) { require_once('module/news/ressource/defaultdata.php'); $this->setData(['module', $this->getUrl(0), 'config', init::$defaultData]); // Données de thème - $this->setData(['module', $this->getUrl(0), 'theme', init::$defaultTheme]); - $this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' ]); + //$this->setData(['module', $this->getUrl(0), 'theme', init::$defaultTheme]); + //$this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' ]); } // Dossier de l'instance diff --git a/module/news/ressource/defaultdata.php b/module/news/ressource/defaultdata.php index d1e48f2b..dd48eaa5 100644 --- a/module/news/ressource/defaultdata.php +++ b/module/news/ressource/defaultdata.php @@ -5,10 +5,12 @@ class init extends search { 'feedsLabel' => '', 'itemsperPage' => 8, 'itemsperCol' => 12, - 'versionData' => '3.2' + 'versionData' => '3.4' ]; + /* public static $defaultTheme = [ 'itemsHeight' => 'auto', 'itemsBlur' => '0%' ]; + */ } \ No newline at end of file