diff --git a/module/news/news.php b/module/news/news.php index f48081d4..0700eda7 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -448,9 +448,13 @@ class news extends common { // Créer la structure de configuration si absente // Il n'existait aucun paramétrage dans les version précédentes - if ($this->getData(['module', $this->getUrl(0), 'config']) === NULL ) { + if ($this->getData(['module', $this->getUrl(0), 'config', 'itemsperPage']) === NULL ) { // Données config et theme absentes du précédent module - $this->init(); + 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 . 'pages/' . $this->getUrl(0) . '/theme.css' ]); } } diff --git a/module/news/ressource/defaultdata.php b/module/news/ressource/defaultdata.php index cf2d5649..4bb863a4 100644 --- a/module/news/ressource/defaultdata.php +++ b/module/news/ressource/defaultdata.php @@ -8,7 +8,7 @@ class init extends search { 'versionData' => '3.0' ]; public static $defaultTheme = [ - 'itemsHeight' => '200px', - 'itemsBlur' => '0%' + 'itemsHeight' => 'auto', + 'itemsBlur' => '100%' ]; } \ No newline at end of file