forked from ZwiiCMS-Team/ZwiiCMS
Modif galerie : mise à jour et nettoyage du json
This commit is contained in:
parent
b3a094c4ee
commit
f7b411a09f
@ -1373,6 +1373,33 @@ class common {
|
||||
$this->setData(['theme','footer','displaySearch',false]);
|
||||
// Inscription des nouvelles variables
|
||||
$this->setData(['config','searchPageId','']);
|
||||
|
||||
// Actualisation du stockage du thème de la galerie
|
||||
//----------------------------------------
|
||||
// Mettre à jour les données des galeries
|
||||
$pageList = array();
|
||||
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
|
||||
$pageList [] = $parentKey;
|
||||
foreach ($parentValue as $childKey) {
|
||||
$pageList [] = $childKey;
|
||||
}
|
||||
}
|
||||
// Mise à jour des données de thème de la galerie
|
||||
// Les données de thème sont communes au site
|
||||
foreach ($pageList as $parentKey => $parent) {
|
||||
//La page a une galerie
|
||||
if ($this->getData(['page',$parent,'moduleId']) === 'gallery' ) {
|
||||
foreach ( $this->getData(['module', $parent]) as $galleryKey => $galleryItem) {
|
||||
// Transfert du theme dans une structure unique
|
||||
if ( is_array($this->getdata(['theme',$parent])) ) {
|
||||
$this->setdata(['theme','gallery',$this->getdata(['theme',$parent])]);
|
||||
}
|
||||
}
|
||||
$this->deleteData(['theme',$parent]);
|
||||
}
|
||||
}
|
||||
|
||||
// Mise à jour du numéro de version
|
||||
$this->setData(['core', 'dataVersion', 10300]);
|
||||
}
|
||||
}
|
||||
|
24
module/gallery/view/gallery/gallery.css
Executable file → Normal file
24
module/gallery/view/gallery/gallery.css
Executable file → Normal file
@ -2,28 +2,28 @@
|
||||
--thumbAlign: center;
|
||||
}
|
||||
.colPicture {
|
||||
--thumbWidth: 15em;
|
||||
--thumbMargin: .3em;
|
||||
--thumbWidth: 18em;
|
||||
--thumbMargin: .5em;
|
||||
}
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
--thumbHeight: 12em;
|
||||
--thumbBorder: 0em;
|
||||
--thumbBorderColor: rgba(121, 176, 214, 1);
|
||||
--thumbRadius: 0em;
|
||||
--thumbShadows: 0px;
|
||||
--thumbShadowsColor: rgba(29, 72, 104, 1);
|
||||
--thumbHeight: 15em;
|
||||
--thumbBorder: .1em;
|
||||
--thumbBorderColor: rgba(221, 221, 221, 1);
|
||||
--thumbRadius: .3em;
|
||||
--thumbShadows: 1px 1px 10px;
|
||||
--thumbShadowsColor: rgba(125, 125, 125, 1);
|
||||
}
|
||||
.galleryName,
|
||||
.galleryGalleryName {
|
||||
--legendHeight: .125em;
|
||||
--legendHeight: .375em;
|
||||
--legendAlign: center;
|
||||
--legendTextColor: rgba(4, 21, 39, 1);
|
||||
--legendBgColor: rgba(143, 181, 184, 0.74);
|
||||
--legendTextColor: rgba(255, 255, 255, 1);
|
||||
--legendBgColor: rgba(0, 0, 0, .6);
|
||||
}
|
||||
.galleryPicture:hover,
|
||||
.galleryGalleryPicture:hover {
|
||||
--thumbOpacity: 1;
|
||||
--thumbOpacity: .7;
|
||||
}
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
|
@ -2,28 +2,28 @@
|
||||
--thumbAlign: center;
|
||||
}
|
||||
.colPicture {
|
||||
--thumbWidth: 15em;
|
||||
--thumbMargin: .3em;
|
||||
--thumbWidth: 18em;
|
||||
--thumbMargin: .5em;
|
||||
}
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
--thumbHeight: 12em;
|
||||
--thumbBorder: 0em;
|
||||
--thumbBorderColor: rgba(121, 176, 214, 1);
|
||||
--thumbRadius: 0em;
|
||||
--thumbShadows: 0px;
|
||||
--thumbShadowsColor: rgba(29, 72, 104, 1);
|
||||
--thumbHeight: 15em;
|
||||
--thumbBorder: .1em;
|
||||
--thumbBorderColor: rgba(221, 221, 221, 1);
|
||||
--thumbRadius: .3em;
|
||||
--thumbShadows: 1px 1px 10px;
|
||||
--thumbShadowsColor: rgba(125, 125, 125, 1);
|
||||
}
|
||||
.galleryName,
|
||||
.galleryGalleryName {
|
||||
--legendHeight: .125em;
|
||||
--legendHeight: .375em;
|
||||
--legendAlign: center;
|
||||
--legendTextColor: rgba(4, 21, 39, 1);
|
||||
--legendBgColor: rgba(143, 181, 184, 0.74);
|
||||
--legendTextColor: rgba(255, 255, 255, 1);
|
||||
--legendBgColor: rgba(0, 0, 0, .6);
|
||||
}
|
||||
.galleryPicture:hover,
|
||||
.galleryGalleryPicture:hover {
|
||||
--thumbOpacity: 1;
|
||||
--thumbOpacity: .7;
|
||||
}
|
||||
.galleryPicture,
|
||||
.galleryGalleryPicture {
|
||||
|
Loading…
Reference in New Issue
Block a user