+
true // Désactivé à cause des modifications en ajax
]); ?>
@@ -28,12 +28,6 @@
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
-
- 'Tri des images',
- 'help' => 'Les images sont triées par nom de fichier grâce à la méthode naturelle qui donne de meilleurs résultats lorsque les images sont numérotées.'
- ]); ?>
-
'',
@@ -45,11 +39,11 @@
Version n°
+
Module version n°
\ No newline at end of file
diff --git a/module/gallery/view/edit/edit.js.php b/module/gallery/view/edit/edit.js.php
index 63252061..4b6a4130 100644
--- a/module/gallery/view/edit/edit.js.php
+++ b/module/gallery/view/edit/edit.js.php
@@ -48,9 +48,4 @@ setInterval(function() {
*/
directoryDOM.on("change", function() {
directoryOldDOM.val($(this).val());
-});
-
-$('.homePicture').click(function(){
- $('.homePicture').prop('checked', false);
- $(this).prop('checked', true);
});
\ No newline at end of file
diff --git a/module/gallery/view/edit/edit.php b/module/gallery/view/edit/edit.php
index c088032d..4eb99514 100644
--- a/module/gallery/view/edit/edit.php
+++ b/module/gallery/view/edit/edit.php
@@ -17,13 +17,13 @@
Informations générales
-
+
'Nom',
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'name'])
]); ?>
-
+
$this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'directory']),
'noDirty' => true // Désactivé à cause des modifications en ajax
@@ -33,18 +33,11 @@
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
-
- $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort']),
- 'label' => 'Tri des images',
- 'help' => 'Les images sont triées par nom de fichier grâce à la méthode naturelle qui donne de meilleurs résultats lorsque les images sont numérotées.'
- ]); ?>
-
-
+
\ No newline at end of file
diff --git a/module/gallery/view/gallery/gallery.css b/module/gallery/view/gallery/gallery.css
index 9206e2d7..439b58bb 100644
--- a/module/gallery/view/gallery/gallery.css
+++ b/module/gallery/view/gallery/gallery.css
@@ -1,24 +1,58 @@
-.galleryGalleryPicture {
- display: block;
- border: 1px solid #DDD;
- height: 150px;
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center;
+.gallery {
+ padding: 5px;
position: relative;
- -webkit-transition: opacity .3s ease-out;
- transition: opacity .3s ease-out;
}
-.galleryGalleryPicture:hover {
- opacity: .7;
+.galleryGalleryPicture {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ height: 110px;
+ text-align: center;
+ background-color: rgba(230, 230, 230, 0.7);
+ border: 1px solid #DDD;
+ border-radius: 6px;
}
.galleryGalleryName {
position: absolute;
left: 0;
right: 0;
bottom: 0;
- padding: 10px;
- background: rgba(0, 0, 0, .6);
- color: #FFF;
- text-align: center;
-}
\ No newline at end of file
+ line-height: 1.2;
+ color: #000;
+ overflow: hidden;
+}
+.galleryGalleryPicture img {
+ max-height: 80%;
+ max-width: 95%;
+}
+.galleryGalleryPicture img:hover {
+ z-index: 2;
+}
+.picResized {
+ color: crimson;
+}
+.osm {
+ position: absolute;
+ left:10px;
+ bottom:10px;
+}
+/* !important obligatoire */
+@media (max-width: 1281px) {
+.galleryGalleryPicture {
+ height: 160px !important;
+ }
+}
+@media (max-width: 1025px) {
+.galleryGalleryPicture {
+ height: 145px !important;
+}
+.galleryGalleryName {
+ font-size: 0.85em !important;
+ }
+}
+@media (max-width: 813px) {
+.galleryGalleryPicture {
+ height: 115px !important;
+}
+}
diff --git a/module/gallery/view/gallery/gallery.js.php b/module/gallery/view/gallery/gallery.js.php
index e0c6f85d..cd072fce 100644
--- a/module/gallery/view/gallery/gallery.js.php
+++ b/module/gallery/view/gallery/gallery.js.php
@@ -12,11 +12,14 @@
/**
* Galerie d'image
- * SLB est activé pour tout le site
*/
-var b = new SimpleLightbox('.galleryGalleryPicture', {
+$(".galleryGalleryPicture").simpleLightbox({
captionSelector: "self",
captionType: "data",
captionsData: "caption",
closeText: "×"
});
+
+$(".galleryGalleryPicture").on("click", function() {
+ $('body').removeClass("notranslate");
+});
diff --git a/module/gallery/view/gallery/gallery.php b/module/gallery/view/gallery/gallery.php
index 6dde60ee..82c2eb2b 100644
--- a/module/gallery/view/gallery/gallery.php
+++ b/module/gallery/view/gallery/gallery.php
@@ -8,26 +8,65 @@
]); ?>