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]);
|
$this->setData(['theme','footer','displaySearch',false]);
|
||||||
// Inscription des nouvelles variables
|
// Inscription des nouvelles variables
|
||||||
$this->setData(['config','searchPageId','']);
|
$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]);
|
$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;
|
--thumbAlign: center;
|
||||||
}
|
}
|
||||||
.colPicture {
|
.colPicture {
|
||||||
--thumbWidth: 15em;
|
--thumbWidth: 18em;
|
||||||
--thumbMargin: .3em;
|
--thumbMargin: .5em;
|
||||||
}
|
}
|
||||||
.galleryPicture,
|
.galleryPicture,
|
||||||
.galleryGalleryPicture {
|
.galleryGalleryPicture {
|
||||||
--thumbHeight: 12em;
|
--thumbHeight: 15em;
|
||||||
--thumbBorder: 0em;
|
--thumbBorder: .1em;
|
||||||
--thumbBorderColor: rgba(121, 176, 214, 1);
|
--thumbBorderColor: rgba(221, 221, 221, 1);
|
||||||
--thumbRadius: 0em;
|
--thumbRadius: .3em;
|
||||||
--thumbShadows: 0px;
|
--thumbShadows: 1px 1px 10px;
|
||||||
--thumbShadowsColor: rgba(29, 72, 104, 1);
|
--thumbShadowsColor: rgba(125, 125, 125, 1);
|
||||||
}
|
}
|
||||||
.galleryName,
|
.galleryName,
|
||||||
.galleryGalleryName {
|
.galleryGalleryName {
|
||||||
--legendHeight: .125em;
|
--legendHeight: .375em;
|
||||||
--legendAlign: center;
|
--legendAlign: center;
|
||||||
--legendTextColor: rgba(4, 21, 39, 1);
|
--legendTextColor: rgba(255, 255, 255, 1);
|
||||||
--legendBgColor: rgba(143, 181, 184, 0.74);
|
--legendBgColor: rgba(0, 0, 0, .6);
|
||||||
}
|
}
|
||||||
.galleryPicture:hover,
|
.galleryPicture:hover,
|
||||||
.galleryGalleryPicture:hover {
|
.galleryGalleryPicture:hover {
|
||||||
--thumbOpacity: 1;
|
--thumbOpacity: .7;
|
||||||
}
|
}
|
||||||
.galleryPicture,
|
.galleryPicture,
|
||||||
.galleryGalleryPicture {
|
.galleryGalleryPicture {
|
||||||
|
@ -2,28 +2,28 @@
|
|||||||
--thumbAlign: center;
|
--thumbAlign: center;
|
||||||
}
|
}
|
||||||
.colPicture {
|
.colPicture {
|
||||||
--thumbWidth: 15em;
|
--thumbWidth: 18em;
|
||||||
--thumbMargin: .3em;
|
--thumbMargin: .5em;
|
||||||
}
|
}
|
||||||
.galleryPicture,
|
.galleryPicture,
|
||||||
.galleryGalleryPicture {
|
.galleryGalleryPicture {
|
||||||
--thumbHeight: 12em;
|
--thumbHeight: 15em;
|
||||||
--thumbBorder: 0em;
|
--thumbBorder: .1em;
|
||||||
--thumbBorderColor: rgba(121, 176, 214, 1);
|
--thumbBorderColor: rgba(221, 221, 221, 1);
|
||||||
--thumbRadius: 0em;
|
--thumbRadius: .3em;
|
||||||
--thumbShadows: 0px;
|
--thumbShadows: 1px 1px 10px;
|
||||||
--thumbShadowsColor: rgba(29, 72, 104, 1);
|
--thumbShadowsColor: rgba(125, 125, 125, 1);
|
||||||
}
|
}
|
||||||
.galleryName,
|
.galleryName,
|
||||||
.galleryGalleryName {
|
.galleryGalleryName {
|
||||||
--legendHeight: .125em;
|
--legendHeight: .375em;
|
||||||
--legendAlign: center;
|
--legendAlign: center;
|
||||||
--legendTextColor: rgba(4, 21, 39, 1);
|
--legendTextColor: rgba(255, 255, 255, 1);
|
||||||
--legendBgColor: rgba(143, 181, 184, 0.74);
|
--legendBgColor: rgba(0, 0, 0, .6);
|
||||||
}
|
}
|
||||||
.galleryPicture:hover,
|
.galleryPicture:hover,
|
||||||
.galleryGalleryPicture:hover {
|
.galleryGalleryPicture:hover {
|
||||||
--thumbOpacity: 1;
|
--thumbOpacity: .7;
|
||||||
}
|
}
|
||||||
.galleryPicture,
|
.galleryPicture,
|
||||||
.galleryGalleryPicture {
|
.galleryGalleryPicture {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user