Gallery sample defalutdata
This commit is contained in:
parent
4d17eebdd6
commit
cde0e52528
|
@ -774,7 +774,7 @@ class init extends common {
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'config' => [
|
'theme' => [
|
||||||
'thumbAlign' => 'center',
|
'thumbAlign' => 'center',
|
||||||
'thumbWidth' => '18em',
|
'thumbWidth' => '18em',
|
||||||
'thumbHeight' => '15em',
|
'thumbHeight' => '15em',
|
||||||
|
@ -789,9 +789,11 @@ class init extends common {
|
||||||
'legendAlign' => 'center',
|
'legendAlign' => 'center',
|
||||||
'legendTextColor' => 'rgba(255, 255, 255, 1)',
|
'legendTextColor' => 'rgba(255, 255, 255, 1)',
|
||||||
'legendBgColor' => 'rgba(0, 0, 0, .6)',
|
'legendBgColor' => 'rgba(0, 0, 0, .6)',
|
||||||
'versionData' => '3.0',
|
|
||||||
'style' => 'site/data/modules/gallery/galeries.css'
|
'style' => 'site/data/modules/gallery/galeries.css'
|
||||||
],
|
],
|
||||||
|
'config' => [
|
||||||
|
'versionData' => '3.0'
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'site-de-zwii' => [
|
'site-de-zwii' => [
|
||||||
'url' => 'https://zwiicms.fr/',
|
'url' => 'https://zwiicms.fr/',
|
||||||
|
|
|
@ -149,6 +149,7 @@ class gallery extends common {
|
||||||
*/
|
*/
|
||||||
private function update() {
|
private function update() {
|
||||||
|
|
||||||
|
|
||||||
// Mise à jour d'une version inférieure, la gallery existe mais pas content
|
// Mise à jour d'une version inférieure, la gallery existe mais pas content
|
||||||
if ($this->getData(['module', $this->getUrl(0)]) &&
|
if ($this->getData(['module', $this->getUrl(0)]) &&
|
||||||
$this->getData(['module', $this->getUrl(0), 'content']) === NULL ) {
|
$this->getData(['module', $this->getUrl(0), 'content']) === NULL ) {
|
||||||
|
@ -172,9 +173,6 @@ class gallery extends common {
|
||||||
$this->setData(['module', $this->getUrl(0), 'theme', $data]);
|
$this->setData(['module', $this->getUrl(0), 'theme', $data]);
|
||||||
// Nom de la feuille de style
|
// Nom de la feuille de style
|
||||||
$this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $moduleId . '.css']);
|
$this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $moduleId . '.css']);
|
||||||
} else {
|
|
||||||
// Theme par défaut
|
|
||||||
$this->init($this->geturl(0));
|
|
||||||
}
|
}
|
||||||
// Nouvelle version
|
// Nouvelle version
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData', '3.0']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData', '3.0']);
|
||||||
|
@ -301,9 +299,7 @@ class gallery extends common {
|
||||||
$this->update();
|
$this->update();
|
||||||
|
|
||||||
// Initialisation d'un nouveau module
|
// Initialisation d'un nouveau module
|
||||||
if ($this->getData(['module', $this->getUrl(0)]) === null) {
|
$this->init($this->getUrl(0));
|
||||||
$this->init($this->getUrl(0));
|
|
||||||
}
|
|
||||||
|
|
||||||
//Affichage de la galerie triée
|
//Affichage de la galerie triée
|
||||||
$g = $this->getData(['module', $this->getUrl(0), 'content']);
|
$g = $this->getData(['module', $this->getUrl(0), 'content']);
|
||||||
|
@ -589,9 +585,7 @@ class gallery extends common {
|
||||||
$this->update();
|
$this->update();
|
||||||
|
|
||||||
// Initialisation d'un nouveau module
|
// Initialisation d'un nouveau module
|
||||||
if ($this->getData(['module', $this->getUrl(0)]) === null) {
|
$this->init($this->getUrl(0));
|
||||||
$this->init($this->getUrl(0));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Images d'une galerie
|
// Images d'une galerie
|
||||||
if($this->getUrl(1)) {
|
if($this->getUrl(1)) {
|
||||||
|
|
Loading…
Reference in New Issue