From 2c288d2292a09c58011f17bf15a3100ea43bd998 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Thu, 27 Apr 2017 16:56:01 +0200 Subject: [PATCH] [serendipity_event_lightbox] Update bundled lightbox scripts - Update colorbox to 1.6.4 - Update lightbox2 to 2.9.0 - Update prettyPhoto to 3.1.6 (the uncompressed version was still at v3.1.4) --- serendipity_event_lightbox/ChangeLog | 9 +- serendipity_event_lightbox/colorbox/README.md | 4 + .../colorbox/colorbox.css | 2 +- .../colorbox/i18n/jquery.colorbox-fa.js | 36 +- .../colorbox/i18n/jquery.colorbox-hr.js | 28 +- .../colorbox/i18n/jquery.colorbox-ja.js | 30 +- .../colorbox/i18n/jquery.colorbox-pl.js | 30 +- .../colorbox/i18n/jquery.colorbox-ru.js | 30 +- .../colorbox/i18n/jquery.colorbox-si.js | 28 +- .../colorbox/i18n/jquery.colorbox-zh-CN.js | 28 +- .../colorbox/jquery.colorbox-min.js | 4 +- .../colorbox/jquery.colorbox.js | 6 +- .../lightbox2-jquery/README.md | 55 +- .../lightbox2-jquery/css/lightbox.css | 17 +- .../js/lightbox-plus-jquery.js | 89 +- .../js/lightbox-plus-jquery.min.js | 4 +- .../js/lightbox-plus-jquery.min.map | 2 +- .../lightbox2-jquery/js/lightbox.js | 89 +- .../lightbox2-jquery/js/lightbox.min.js | 4 +- .../lightbox2-jquery/js/lightbox.min.map | 2 +- .../prettyphoto/js/jquery.prettyPhoto.js | 1810 ++++++++--------- .../serendipity_event_lightbox.php | 4 +- 22 files changed, 1238 insertions(+), 1073 deletions(-) diff --git a/serendipity_event_lightbox/ChangeLog b/serendipity_event_lightbox/ChangeLog index f5ac1971..5f839141 100644 --- a/serendipity_event_lightbox/ChangeLog +++ b/serendipity_event_lightbox/ChangeLog @@ -1,3 +1,10 @@ +2.5.1: + * colorbox update v.1.6.4 + * lightbox2-jquery update v.2.9.0 + * prettyPhoto update v.3.1.6 (the uncompressed version was still at + v.3.1.4) + +------------------------------------------------------------------------ 2.5.0: * Magnific Popup update v.1.1.0 - 2016-02-20 @@ -117,4 +124,4 @@ Version 1.3 (brockhaus): blogpage, if needed. ------------------------------------------------------------------------ -Version 1.2: earlier versions.. +Version 1.2: earlier versions.. \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/README.md b/serendipity_event_lightbox/colorbox/README.md index 9473a686..29850761 100644 --- a/serendipity_event_lightbox/colorbox/README.md +++ b/serendipity_event_lightbox/colorbox/README.md @@ -3,6 +3,10 @@ A customizable lightbox plugin for jQuery. See the [project page](http://jacklm ## Changelog: +##### Version 1.6.4 - 2016/05/10 + +* Fixed bug where using the inline property would duplicate target elements, if the selector matched multiple elements. + ##### Version 1.6.3 - 2015/07/27 * Fixed regression that caused error in IE8 when the calculated initial size was negative. Fixes #741 diff --git a/serendipity_event_lightbox/colorbox/colorbox.css b/serendipity_event_lightbox/colorbox/colorbox.css index 8a4ff998..c210ec49 100644 --- a/serendipity_event_lightbox/colorbox/colorbox.css +++ b/serendipity_event_lightbox/colorbox/colorbox.css @@ -2,7 +2,7 @@ Colorbox Core Style: The following CSS is consistent between example themes and should not be altered. */ -#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);} #cboxWrapper {max-width:none;} #cboxOverlay{position:fixed; width:100%; height:100%;} #cboxMiddleLeft, #cboxBottomLeft{clear:left;} diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-fa.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-fa.js index dbe70e1a..32869a4c 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-fa.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-fa.js @@ -1,18 +1,18 @@ -/* - jQuery Colorbox language configuration - language: Persian (Farsi) - translated by: Mahdi Jaberzadeh Ansari (MJZSoft) - site: www.mjzsoft.ir - email: mahdijaberzadehansari (at) yahoo.co.uk - Please note : Persian language is right to left like arabic. -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "تصویر {current} از {total}", - previous: "قبلی", - next: "بعدی", - close: "بستن", - xhrError: "متاسفانه محتویات مورد نظر قابل نمایش نیست.", - imgError: "متاسفانه بارگذاری این عکس با مشکل مواجه شده است.", - slideshowStart: "آغاز نمایش خودکار", - slideshowStop: "توقف نمایش خودکار" -}); +/* + jQuery Colorbox language configuration + language: Persian (Farsi) + translated by: Mahdi Jaberzadeh Ansari (MJZSoft) + site: www.mjzsoft.ir + email: mahdijaberzadehansari (at) yahoo.co.uk + Please note : Persian language is right to left like arabic. +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "تصویر {current} از {total}", + previous: "قبلی", + next: "بعدی", + close: "بستن", + xhrError: "متاسفانه محتویات مورد نظر قابل نمایش نیست.", + imgError: "متاسفانه بارگذاری این عکس با مشکل مواجه شده است.", + slideshowStart: "آغاز نمایش خودکار", + slideshowStop: "توقف نمایش خودکار" +}); diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-hr.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-hr.js index 9e0d0f48..7eb62bec 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-hr.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-hr.js @@ -1,15 +1,15 @@ -/* - jQuery Colorbox language configuration - language: Croatian (hr) - translated by: Mladen Bicanic (base.hr) -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "Slika {current} od {total}", - previous: "Prethodna", - next: "Sljedeća", - close: "Zatvori", - xhrError: "Neuspješno učitavanje sadržaja.", - imgError: "Neuspješno učitavanje slike.", - slideshowStart: "Pokreni slideshow", - slideshowStop: "Zaustavi slideshow" +/* + jQuery Colorbox language configuration + language: Croatian (hr) + translated by: Mladen Bicanic (base.hr) +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "Slika {current} od {total}", + previous: "Prethodna", + next: "Sljedeća", + close: "Zatvori", + xhrError: "Neuspješno učitavanje sadržaja.", + imgError: "Neuspješno učitavanje slike.", + slideshowStart: "Pokreni slideshow", + slideshowStop: "Zaustavi slideshow" }); \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ja.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ja.js index 067612c0..5480de33 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ja.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ja.js @@ -1,15 +1,15 @@ -/* - jQuery Colorbox language configuration - language: Japanaese (ja) - translated by: Hajime Fujimoto -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "{total}枚中{current}枚目", - previous: "前", - next: "次", - close: "閉じる", - xhrError: "コンテンツの読み込みに失敗しました", - imgError: "画像の読み込みに失敗しました", - slideshowStart: "スライドショー開始", - slideshowStop: "スライドショー終了" -}); +/* + jQuery Colorbox language configuration + language: Japanaese (ja) + translated by: Hajime Fujimoto +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "{total}枚中{current}枚目", + previous: "前", + next: "次", + close: "閉じる", + xhrError: "コンテンツの読み込みに失敗しました", + imgError: "画像の読み込みに失敗しました", + slideshowStart: "スライドショー開始", + slideshowStop: "スライドショー終了" +}); diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-pl.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-pl.js index 8cbdcab2..1c04dae1 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-pl.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-pl.js @@ -1,16 +1,16 @@ -/* - jQuery Colorbox language configuration - language: Polski (pl) - translated by: Tomasz Wasiński - site: 2bevisible.pl -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "{current}. obrazek z {total}", - previous: "Poprzedni", - next: "Następny", - close: "Zamknij", - xhrError: "Nie udało się załadować treści.", - imgError: "Nie udało się załadować obrazka.", - slideshowStart: "rozpocznij pokaz slajdów", - slideshowStop: "zatrzymaj pokaz slajdów" +/* + jQuery Colorbox language configuration + language: Polski (pl) + translated by: Tomasz Wasiński + site: 2bevisible.pl +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "{current}. obrazek z {total}", + previous: "Poprzedni", + next: "Następny", + close: "Zamknij", + xhrError: "Nie udało się załadować treści.", + imgError: "Nie udało się załadować obrazka.", + slideshowStart: "rozpocznij pokaz slajdów", + slideshowStop: "zatrzymaj pokaz slajdów" }); \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ru.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ru.js index 81b688f2..1d88b8cd 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ru.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-ru.js @@ -1,16 +1,16 @@ -/* - jQuery Colorbox language configuration - language: Russian (ru) - translated by: Marfa - site: themarfa.name -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "изображение {current} из {total}", - previous: "назад", - next: "вперёд", - close: "закрыть", - xhrError: "Не удалось загрузить содержимое.", - imgError: "Не удалось загрузить изображение.", - slideshowStart: "начать слайд-шоу", - slideshowStop: "остановить слайд-шоу" +/* + jQuery Colorbox language configuration + language: Russian (ru) + translated by: Marfa + site: themarfa.name +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "изображение {current} из {total}", + previous: "назад", + next: "вперёд", + close: "закрыть", + xhrError: "Не удалось загрузить содержимое.", + imgError: "Не удалось загрузить изображение.", + slideshowStart: "начать слайд-шоу", + slideshowStop: "остановить слайд-шоу" }); \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-si.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-si.js index 8fac6800..034b5b3c 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-si.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-si.js @@ -1,15 +1,15 @@ -/* - jQuery Colorbox language configuration - language: Slovenian (si) - translated by: Boštjan Pišler (pisler.si) -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "Slika {current} od {total}", - previous: "Prejšnja", - next: "Naslednja", - close: "Zapri", - xhrError: "Vsebine ni bilo mogoče naložiti.", - imgError: "Slike ni bilo mogoče naložiti.", - slideshowStart: "Zaženi prezentacijo", - slideshowStop: "Zaustavi prezentacijo" +/* + jQuery Colorbox language configuration + language: Slovenian (si) + translated by: Boštjan Pišler (pisler.si) +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "Slika {current} od {total}", + previous: "Prejšnja", + next: "Naslednja", + close: "Zapri", + xhrError: "Vsebine ni bilo mogoče naložiti.", + imgError: "Slike ni bilo mogoče naložiti.", + slideshowStart: "Zaženi prezentacijo", + slideshowStop: "Zaustavi prezentacijo" }); \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-zh-CN.js b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-zh-CN.js index 5b6ec042..770d8eac 100644 --- a/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-zh-CN.js +++ b/serendipity_event_lightbox/colorbox/i18n/jquery.colorbox-zh-CN.js @@ -1,15 +1,15 @@ -/* - jQuery Colorbox language configuration - language: Chinese Simplified (zh-CN) - translated by: zhao weiming -*/ -jQuery.extend(jQuery.colorbox.settings, { - current: "当前图像 {current} 总共 {total}", - previous: "前一页", - next: "后一页", - close: "关闭", - xhrError: "此内容无法加载", - imgError: "此图片无法加载", - slideshowStart: "开始播放幻灯片", - slideshowStop: "停止播放幻灯片" +/* + jQuery Colorbox language configuration + language: Chinese Simplified (zh-CN) + translated by: zhao weiming +*/ +jQuery.extend(jQuery.colorbox.settings, { + current: "当前图像 {current} 总共 {total}", + previous: "前一页", + next: "后一页", + close: "关闭", + xhrError: "此内容无法加载", + imgError: "此图片无法加载", + slideshowStart: "开始播放幻灯片", + slideshowStop: "停止播放幻灯片" }); \ No newline at end of file diff --git a/serendipity_event_lightbox/colorbox/jquery.colorbox-min.js b/serendipity_event_lightbox/colorbox/jquery.colorbox-min.js index c02c9eb8..b5109a26 100644 --- a/serendipity_event_lightbox/colorbox/jquery.colorbox-min.js +++ b/serendipity_event_lightbox/colorbox/jquery.colorbox-min.js @@ -1,6 +1,6 @@ /*! - Colorbox 1.6.3 + Colorbox 1.6.4 license: MIT http://www.jacklmoore.com/colorbox */ -(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('