forked from ZwiiCMS-Team/ZwiiCMS
gallery initialisation config
This commit is contained in:
parent
7b01190bcd
commit
0276406577
@ -226,6 +226,7 @@ class gallery extends common {
|
|||||||
if ( $this->getData(['module', $this->getUrl(0), 'theme']) === null ) {
|
if ( $this->getData(['module', $this->getUrl(0), 'theme']) === null ) {
|
||||||
require_once('module/gallery/ressource/defaultdata.php');
|
require_once('module/gallery/ressource/defaultdata.php');
|
||||||
$this->setData(['module', $this->getUrl(0), 'theme', theme::$defaultTheme]);
|
$this->setData(['module', $this->getUrl(0), 'theme', theme::$defaultTheme]);
|
||||||
|
$this->setData(['module', $this->getUrl(0), 'config', theme::$defaultConfig]);
|
||||||
// Nom de la feuille de style
|
// Nom de la feuille de style
|
||||||
$this->setData(['module', $this->getUrl(0), 'theme', 'style', $fileCSS]);
|
$this->setData(['module', $this->getUrl(0), 'theme', 'style', $fileCSS]);
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,11 @@ class theme extends gallery {
|
|||||||
'legendTextColor' => 'rgba(255, 255, 255, 1)',
|
'legendTextColor' => 'rgba(255, 255, 255, 1)',
|
||||||
'legendBgColor' => 'rgba(0, 0, 0, .6)'
|
'legendBgColor' => 'rgba(0, 0, 0, .6)'
|
||||||
];
|
];
|
||||||
|
public static $defaultConfig = [
|
||||||
|
"showUniqueGallery" => false,
|
||||||
|
"backPosition" => "top",
|
||||||
|
"backAlign" => "center"
|
||||||
|
];
|
||||||
public static $defaultData = [
|
public static $defaultData = [
|
||||||
'versionData' => '3.0'
|
'versionData' => '3.0'
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user