diff --git a/CHANGES.md b/CHANGES.md index 24f12810..26495f59 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,7 +8,7 @@ - Mise à jour en ligne : - problème lors du stockage de décompte - réinitialisation du décompte de vérification lors de l'activation de l'option -Modifications : +- Modifications : - TinyMCE : libellé des fonctions "Afficher dans" - TinyMCE : boutons souligné et barré dans la barre d'outils. - Module Form : option permettant d'ajouter le premier mail dans le formulaire au message de notification (Reply To) afin de répondre directement au message. @@ -16,6 +16,8 @@ Modifications : - bouton affichant le numéro de la version en ligne. - uniformisation de la position des champs de saisie avec les versions suivantes. - Galerie : position du champ de tri des images. +- Mise à jour : + - SimpleLightBox passe en version 2.1.0 ## version 9.2.22 - Modifications : diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index da7a3140..13ae8c01 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -199,7 +199,7 @@
helper::baseUrl() . 'install/update', - 'value' => 'Mise à jour forçée' + 'value' => 'Mise à jour forcée' ]); ?>
diff --git a/core/vendor/simplelightbox/inc.json b/core/vendor/simplelightbox/inc.json index fe8cd580..e968e152 100644 --- a/core/vendor/simplelightbox/inc.json +++ b/core/vendor/simplelightbox/inc.json @@ -1,6 +1,6 @@ [ - "simple-lightbox.min.js", - "simplelightbox.min.css", + "simpleLightbox.min.js", + "simpleLightbox.min.css", "init.css", "init.js" ] \ No newline at end of file diff --git a/core/vendor/simplelightbox/init.js b/core/vendor/simplelightbox/init.js index f20bc0cb..9f9fbc48 100644 --- a/core/vendor/simplelightbox/init.js +++ b/core/vendor/simplelightbox/init.js @@ -1,10 +1,14 @@ // Paramètres d'initialisation $(document).ready(function() { - // Ajouter la classe Gallery afin de faire la liaison avec simplelightbox + // Ajouter la classe Gallery afin de faire la liaison avec simplelightbox $("a[rel='gallery']").addClass( "gallery","" ); + + // Démarrer le script $('.gallery').simpleLightbox({closeText:"×",captionsData:'alt'}); - }); \ No newline at end of file + + + }); diff --git a/core/vendor/simplelightbox/simple-lightbox.min.js b/core/vendor/simplelightbox/simple-lightbox.min.js deleted file mode 100644 index 0e2c1dd5..00000000 --- a/core/vendor/simplelightbox/simple-lightbox.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* - By André Rinas, www.andrerinas.de - Documentation, www.simplelightbox.de - Available for use under the MIT License - 1.17.0 -*/ -!function(st,lt,rt,t){"use strict";st.fn.simpleLightbox=function(P){P=st.extend({sourceAttr:"href",overlay:!0,spinner:!0,nav:!0,navText:["‹","›"],captions:!0,captionDelay:0,captionSelector:"img",captionType:"attr",captionsData:"title",captionPosition:"bottom",captionClass:"",close:!0,closeText:"×",swipeClose:!0,showCounter:!0,fileExt:"png|jpg|jpeg|gif",animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:"simple-lightbox",widthRatio:.8,heightRatio:.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:"Image not found, next image will be loaded",additionalHtml:!1,history:!0,throttleInterval:0,doubleTapZoom:2,maxZoom:10,htmlClass:"has-lightbox"},P);var h,t,Z="ontouchstart"in lt,z=(lt.navigator.pointerEnabled||lt.navigator.msPointerEnabled,0),H=0,L=st(),i=function(){var t=rt.body||rt.documentElement;return""===(t=t.style).WebkitTransition?"-webkit-":""===t.MozTransition?"-moz-":""===t.OTransition?"-o-":""===t.transition&&""},N=!1,p=[],j=P.rel&&!1!==P.rel?(t=P.rel,st(this).filter(function(){return st(this).attr("rel")===t})):this,d=(i=i(),0),K=!1!==i,a="pushState"in history,u=!1,n=lt.location,$=function(){return n.hash.substring(1)},B=$(),f=function(){$();var t="pid="+(J+1),e=n.href.split("#")[0]+"#"+t;a?history[u?"replaceState":"pushState"]("",rt.title,e):u?n.replace(e):n.hash=t,u=!0},Q=function(e,a){var n;return function(){var t=arguments;n||(e.apply(this,t),n=!0,setTimeout(function(){return n=!1},a))}},U="simplelb",e=st("
").addClass("sl-overlay"),o=st(""),s=st("
").addClass("sl-counter").html('/'),m=!1,J=0,v=0,l=st("
").addClass("sl-caption "+P.captionClass+" pos-"+P.captionPosition),V=st("
").addClass("sl-image"),r=st("
").addClass("sl-wrapper").addClass(P.className),c=function(t){t.trigger(st.Event("show.simplelightbox")),P.disableScroll&&(d=C("hide")),P.htmlClass&&""!=P.htmlClass&&st("html").addClass(P.htmlClass),r.appendTo("body"),V.appendTo(r),P.overlay&&e.appendTo(st("body")),m=!0,J=j.index(t),L=st("").hide().attr("src",t.attr(P.sourceAttr)).attr("data-scale",1).attr("data-translate-x",0).attr("data-translate-y",0),-1==p.indexOf(t.attr(P.sourceAttr))&&p.push(t.attr(P.sourceAttr)),V.html("").attr("style",""),L.appendTo(V),b(),e.fadeIn("fast"),st(".sl-close").fadeIn("fast"),g.show(),G.fadeIn("fast"),st(".sl-wrapper .sl-counter .sl-current").text(J+1),s.fadeIn("fast"),_(),P.preloading&&y(),setTimeout(function(){t.trigger(st.Event("shown.simplelightbox"))},P.animationSpeed)},_=function(s){if(L.length){var l=new Image,r=lt.innerWidth*P.widthRatio,c=lt.innerHeight*P.heightRatio;l.src=L.attr("src"),L.data("scale",1),L.data("translate-x",0),L.data("translate-y",0),et(0,0,1),st(l).on("error",function(t){j.eq(J).trigger(st.Event("error.simplelightbox")),N=!(m=!1),g.hide();var e=1==s||-1==s;v===J&&e?ot():(P.alertError&&alert(P.alertErrorMessage),it(e?s:1))}),l.onload=function(){void 0!==s&&j.eq(J).trigger(st.Event("changed.simplelightbox")).trigger(st.Event((1===s?"nextDone":"prevDone")+".simplelightbox")),P.history&&(u?h=setTimeout(f,800):f()),-1==p.indexOf(L.attr("src"))&&p.push(L.attr("src"));var t=l.width,e=l.height;if(P.scaleImageToRatio||r=j.length-1&&st(".sl-next").hide(),0").html(P.additionalHtml).addClass("sl-additional-html").appendTo(st(".sl-image"))}}},x=function(t,e){""!==t&&void 0!==t&&P.captions&&l.html(t).css({width:e+"px"}).hide().appendTo(st(".sl-image")).delay(P.captionDelay).fadeIn("fast")},tt=function(t,e){var a={};a[i+"transform"]="translateX("+e+")",a[i+"transition"]=i+"transform "+t+"s linear",st(".sl-image").css(a)},et=function(t,e,a){var n={};n[i+"transform"]="translate("+t+","+e+") scale("+a+")",L.css(n)},at=function(t,e,a){return t=j.length-1&&0P.swipeTolerance&&e?it(0=j.length-1?0:J+1,e=J-1<0?j.length-1:J-1>=j.length-1?0:J-1;st("").attr("src",j.eq(t).attr(P.sourceAttr)).on("load",function(){-1==p.indexOf(st(this).attr("src"))&&p.push(st(this).attr("src")),j.eq(J).trigger(st.Event("nextImageLoaded.simplelightbox"))}),st("").attr("src",j.eq(e).attr(P.sourceAttr)).on("load",function(){-1==p.indexOf(st(this).attr("src"))&&p.push(st(this).attr("src")),j.eq(J).trigger(st.Event("prevImageLoaded.simplelightbox"))})},it=function(e){j.eq(J).trigger(st.Event("change.simplelightbox")).trigger(st.Event((1===e?"next":"prev")+".simplelightbox"));var t=J+e;if(!(m||(t<0||t>=j.length)&&!1===P.loop)){J=t<0?j.length-1:t>j.length-1?0:t,st(".sl-wrapper .sl-counter .sl-current").text(J+1);var a={opacity:0};P.animationSlide&&(K?tt(P.animationSpeed/1e3,-100*e-z+"px"):a.left=parseInt(st(".sl-image").css("left"))+-100*e+"px"),st(".sl-image").animate(a,P.animationSpeed,function(){setTimeout(function(){var t=j.eq(J);L.attr("src",t.attr(P.sourceAttr)),-1==p.indexOf(t.attr(P.sourceAttr))&&g.show(),st(".sl-caption").remove(),_(e),P.preloading&&y()},100)})}},ot=function(){if(!m){var t=j.eq(J),e=!1;t.trigger(st.Event("close.simplelightbox")),P.history&&(a?history.pushState("",rt.title,n.pathname+n.search):n.hash="",clearTimeout(h)),st(".sl-image img, .sl-overlay, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter").fadeOut("fast",function(){P.disableScroll&&C("show"),P.htmlClass&&""!=P.htmlClass&&st("html").removeClass(P.htmlClass),st(".sl-wrapper, .sl-overlay").remove(),G.off("click","button"),st(rt).off("click."+U,".sl-close"),st(lt).off("resize."+U),st(lt).off("hashchange."+U),e||t.trigger(st.Event("closed.simplelightbox")),e=!0}),L=st(),m=N=!1}},C=function(t){var e=0;if("hide"==t){var a=lt.innerWidth;if(!a){var n=rt.documentElement.getBoundingClientRect();a=n.right-Math.abs(n.left)}if(rt.body.clientWidth=this.items.length?t=0:t<0&&(t=this.items.length-1),t},showPosition:function(t){var e=this.normalizePosition(t);return void 0!==this.currentPosition&&(this.direction=e>this.currentPosition?"next":"prev"),this.currentPosition=e,this.setupLightboxHtml().prepareItem(this.currentPosition,this.setContent).show()},loading:function(t){var e=this,n=this.options;t?this.loadingTimeout=setTimeout(function(){i(e.$el,n.elementLoadingClass),e.$content.innerHTML='

'+n.loadingCaption+"

",e.show()},n.loadingTimeout):(s(this.$el,n.elementLoadingClass),clearTimeout(this.loadingTimeout))},prepareItem:function(t,e){var n=this,i=this.items[t];if(this.loading(!0),this.options.videoRegex.test(i))e.call(n,o('
'));else{var s=o('
');this.$currentImage=s.querySelector(".slbImage"),this.options.showCaptions&&this.captions[t]&&s.appendChild(o('
'+this.captions[t]+"
")),this.loadImage(i,function(){n.setImageDimensions(),e.call(n,s),n.loadImage(n.items[n.normalizePosition(n.currentPosition+1)])})}return this},loadImage:function(t,e){if(!this.options.videoRegex.test(t)){var n=new Image;e&&(n.onload=e),n.src=t}},setupLightboxHtml:function(){var t=this.options;return this.$el||(this.$el=o('
'+(1
":"")+"
"),this.$content=this.$el.querySelector(".slbContent")),this.$content.innerHTML="",this},show:function(){return this.modalInDom||(document.querySelector(this.options.appendTarget).appendChild(this.$el),i(document.documentElement,this.options.htmlClass),this.setupLightboxEvents(),this.modalInDom=!0),this},setContent:function(t){var e="string"==typeof t?o(t):t;return this.loading(!1),this.setupLightboxHtml(),s(this.$content,"slbDirectionNext"),s(this.$content,"slbDirectionPrev"),this.direction&&i(this.$content,"next"===this.direction?"slbDirectionNext":"slbDirectionPrev"),this.options.beforeSetContent&&this.options.beforeSetContent(e,this),this.$content.appendChild(e),this},setImageDimensions:function(){this.$currentImage&&(this.$currentImage.style.maxHeight=("innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight)+"px")},setupLightboxEvents:function(){var n=this;return this.eventRegistry.lightbox.length||this.addEvent(this.$el,"click",function(t){var e=t.target;l(e,".slbCloseBtn")||n.options.closeOnOverlayClick&&l(e,".slbWrap")?n.close():l(e,".slbArrow")?l(e,".next")?n.next():n.prev():n.options.nextOnImageClick&&1