Données par défaut

This commit is contained in:
Fred Tempez 2021-07-22 23:19:02 +02:00
parent 5bee7f1c5b
commit c25bc1ab65
2 changed files with 6 additions and 4 deletions

View File

@ -521,15 +521,15 @@ class news extends common {
private function init() { private function init() {
$fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css'; //$fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css';
// Données du module absentes // Données du module absentes
if ($this->getData(['module', $this->getUrl(0), 'config' ]) === null) { if ($this->getData(['module', $this->getUrl(0), 'config' ]) === null) {
require_once('module/news/ressource/defaultdata.php'); require_once('module/news/ressource/defaultdata.php');
$this->setData(['module', $this->getUrl(0), 'config', init::$defaultData]); $this->setData(['module', $this->getUrl(0), 'config', init::$defaultData]);
// Données de thème // Données de thème
$this->setData(['module', $this->getUrl(0), 'theme', init::$defaultTheme]); //$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', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' ]);
} }
// Dossier de l'instance // Dossier de l'instance

View File

@ -5,10 +5,12 @@ class init extends search {
'feedsLabel' => '', 'feedsLabel' => '',
'itemsperPage' => 8, 'itemsperPage' => 8,
'itemsperCol' => 12, 'itemsperCol' => 12,
'versionData' => '3.2' 'versionData' => '3.4'
]; ];
/*
public static $defaultTheme = [ public static $defaultTheme = [
'itemsHeight' => 'auto', 'itemsHeight' => 'auto',
'itemsBlur' => '0%' 'itemsBlur' => '0%'
]; ];
*/
} }