diff --git a/core/core.php b/core/core.php index 1bacb585..8b3b6c6b 100755 --- a/core/core.php +++ b/core/core.php @@ -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]); } } diff --git a/module/gallery/view/gallery/gallery.css b/module/gallery/view/gallery/gallery.css old mode 100755 new mode 100644 index b8f9959e..a9da4105 --- a/module/gallery/view/gallery/gallery.css +++ b/module/gallery/view/gallery/gallery.css @@ -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 { diff --git a/module/gallery/view/index/index.css b/module/gallery/view/index/index.css index b8f9959e..a9da4105 100755 --- a/module/gallery/view/index/index.css +++ b/module/gallery/view/index/index.css @@ -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 {