Données par défaut
This commit is contained in:
parent
5bee7f1c5b
commit
c25bc1ab65
@ -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
|
||||
|
@ -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%'
|
||||
];
|
||||
*/
|
||||
}
|
Loading…
Reference in New Issue
Block a user