Gallery – Photo Gallery and Images Gallery - Version 2.0.0

Version Description

  • Added new algorithm of mobile devices Swipe support
  • Implemented Android devices swipe support
  • Implemented iOS devices swipe support
Download this release

Release Info

Developer robosoft
Plugin Icon 128x128 Gallery – Photo Gallery and Images Gallery
Version 2.0.0
Comparing to
See all releases

Code changes from version 1.9.16 to 2.0.0

gallery/css/gallery.utils.css CHANGED
@@ -182,4 +182,100 @@
182
  .my-mfp-slide-bottom.mfp-removing.mfp-bg {
183
  opacity: 0;
184
  }
185
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  .my-mfp-slide-bottom.mfp-removing.mfp-bg {
183
  opacity: 0;
184
  }
185
+
186
+
187
+ .my-mfp-slide-bottom .image-source-link {
188
+ color: #DDD;
189
+ background-color: transparent;
190
+ background-image: url('icons/download.png');
191
+ background-repeat: no-repeat;
192
+ width: 23px;
193
+ height: 23px;
194
+ display: inline-block;
195
+ text-decoration: none;
196
+ margin-bottom: -5px;
197
+ margin-left: 10px;
198
+ }
199
+
200
+
201
+ .mfp-img-mobile .mfp-title {
202
+ text-align: center;
203
+ padding: 6px 0;
204
+ }
205
+
206
+ .mfp-img-mobile .image-source-link {
207
+ color: #DDD;
208
+ background-color: transparent;
209
+ background-image: url('icons/download.png');
210
+ background-repeat: no-repeat;
211
+ width: 23px;
212
+ height: 23px;
213
+ display: inline-block;
214
+ text-decoration: none;
215
+ margin-bottom: -5px;
216
+ margin-left: 10px;
217
+ }
218
+
219
+ .mfp-img-mobile .mfp-counter {
220
+ top: 0px;
221
+ right: 5px;
222
+ font-size: 10px;
223
+ }
224
+
225
+ .mfp-img-mobile .rbs-imges-social-container {
226
+ position: absolute;
227
+ right: 0px;
228
+ bottom: 0px;
229
+ margin-right: 0;
230
+ }
231
+
232
+ .mfp-img-mobile .mfp-image-holder {
233
+ padding-left: 0;
234
+ padding-right: 0;
235
+ }
236
+
237
+ .mfp-img-mobile img.mfp-img {
238
+ padding: 0;
239
+ }
240
+
241
+ .mfp-img-mobile .mfp-figure {
242
+ /* The shadow behind the image */
243
+ }
244
+
245
+ .mfp-img-mobile .mfp-figure:after {
246
+ top: 0;
247
+ bottom: 0;
248
+ }
249
+
250
+ .mfp-img-mobile .mfp-figure small {
251
+ display: inline;
252
+ margin-left: 5px;
253
+ }
254
+
255
+ .mfp-img-mobile .mfp-bottom-bar {
256
+ background: rgba(0, 0, 0, 0.6);
257
+ bottom: 0;
258
+ margin: 0;
259
+ top: auto;
260
+ padding: 3px 5px;
261
+ position: fixed;
262
+ -webkit-box-sizing: border-box;
263
+ -moz-box-sizing: border-box;
264
+ box-sizing: border-box;
265
+ }
266
+
267
+ .mfp-img-mobile .mfp-bottom-bar:empty {
268
+ padding: 0;
269
+ }
270
+
271
+ .mfp-img-mobile .mfp-close {
272
+ top: 0;
273
+ right: 0;
274
+ width: 35px;
275
+ height: 35px;
276
+ line-height: 35px;
277
+ background: rgba(0, 0, 0, 0.6);
278
+ position: fixed;
279
+ text-align: center;
280
+ padding: 0;
281
+ }
gallery/css/icons/download.png ADDED
Binary file
gallery/css/icons/download1.png ADDED
Binary file
gallery/js/alt/jquery.collagePlus.min.js CHANGED
@@ -3,4 +3,4 @@
3
  Licensed under the MIT license - http://opensource.org/licenses/MIT
4
  Copyright (C) 2015 Andrew Prasetya
5
  */
6
- !function(e,t,a){var i=function(i,o){function n(e){e.find(_+", ."+U).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(_).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(_).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(_).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(_).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),(o.data("width")!=a||o.data("height")!=a)&&o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(_),s=!1;n="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?s?i.css("width",parseFloat(100/o)*r+"%"):i.css("width",n*parseInt(r)):s?i.css("width",100/o+"%"):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(_+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(_+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");("push-up-100%"==n||"push-down-100%"==n)&&s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):("push-down"==n||"push-down-100%"==n)&&(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(_);i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"direction"==n.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=O.find(_+", ."+U),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){O.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?T():M(),w()}function b(e,t){D[t]=e,O.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var n=e[o];for(var t in e)if(t!=o)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<q.minBoxesPerFilter&&B().length>0?(S(q.minBoxesPerFilter-e),!0):!1}function k(){var e=O.find(_),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=O.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=O.find("."+U),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function T(){H.html(q.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function I(){A++,T()}function L(){A--,0==A&&M()}function M(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(q.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(q.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function S(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){I();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(U).addClass(F),o.hide(),i.push(this))}),O.eveMB("insert",t(i),function(){L(),O.eveMB("layout")})}}function z(e){if(e!=a){var i=O.find("."+F+", ."+U);""==e?i.addClass("search-match"):(i.removeClass("search-match"),O.find(q.searchTarget).each(function(){var a=t(this),i=a.parents("."+F+", ."+U);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function P(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var n=o.parsed?o.el:t(o);return n.attr("data-mfp-src")==a.src?(i=e,!1):void 0}),null!==i&&e.goTo(i)}}else O.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var q=t.extend({},t.fn.collagePlus.defaults,o),O=t(i).addClass("rbs-imges-container"),_=".rbs-img",R=".rbs-img-image",F="rbs-img",U="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==q.overlayEasing&&(q.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(O);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(q.loadMoreClass),q.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),O.data("settings",q),O.css({"margin-left":-q.horizontalSpaceBetweenBoxes}),O.find(_).removeClass(F).addClass(U);var N=t(q.sortContainer).find(q.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);O.append('<div class="rbs-imges-grid-sizer"></div>'),O.eveMB({itemSelector:_,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:q.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+U)[0],v=o.length;for(l=0;v>l;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;v>l;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;v>l;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==q.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(_).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),S(q.boxesToLoadStart,!0),H.on("click",function(){S(q.boxesToLoad)}),q.lazyLoad&&O.waypoint(function(e){O.hasClass("lazy-load-ready")&&"down"==e&&0==O.hasClass("filtering-isotope")&&(O.removeClass("lazy-load-ready"),S(q.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(q.filterContainer);Y.find(q.filter).on("click",function(e){var i=t(this),o=i.parents(q.filterContainer);o.find(q.filter).removeClass(q.filterContainerSelectClass),i.addClass(q.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(q.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(q.search).val()),t(q.search).on("keyup",function(){var e=t(this).val();z(e)}),t(q.sortContainer).find(q.sort).on("click",function(e){var a=t(this);a.parents(q.sortContainer).find(q.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");O.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),O.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=q.thumbnailOverlay){var i=t(this),o=q.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},q.overlaySpeed,q.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},q.overlaySpeed,q.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(q.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(q.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1),r=Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4;return r},J=function(e,t){var a,i;switch(e){case 0:q.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:q.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:q.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:q.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(q.considerFilteringInPopup&&(K=_+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+U+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),q.showOnlyLoadedBoxesInPopup&&(K=_+":visible .rbs-lightbox[data-mfp-src]"),q.magnificPopup&&O.magnificPopup({delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:q.alignTop,preload:q.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:q.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){t(".mfp-title").html(i.attr("mfp-title")==a||q.hideTitle?"":i.attr("mfp-title"));var e=location.href,o=(location.href.replace(location.hash,""),i.attr("data-mfp-src")),n=i.attr("mfp-title"),r=e,s="<div class='rbs-imges-social-container'>";q.facebook&&(s+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+r+"'></div>"),q.twitter&&(s+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+r+"' data-title='"+n+"' ></div>"),q.googleplus&&(s+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+r+"'></div>"),q.pinterest&&(s+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+o+"' data-title='"+n+"' data-url='"+r+"' ></div>"),s+="</div>";var d=t(".mfp-title").html();t(".mfp-title").html(d+s)},5),void(q.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){q.deepLinking&&(e.location.hash="#!")}}}),q.deepLinking){var V=W();V&&O.find('.rbs-lightbox[data-mfp-src="'+V.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",P,!1):e.attachEvent&&e.attachEvent("onhashchange",P)}var Z=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://www.facebook.com/sharer/sharer.php?u="+a,Z(a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("title"));a="https://twitter.com/intent/tweet?url="+encodeURIComponent(e.data("url"))+"&text="+i,Z(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,Z(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this);url="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.data("url"))+"&media="+encodeURIComponent(e.data("src"))+"&description="+encodeURIComponent(e.data("title")),Z(url)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,hideTitle:!1},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,rbjQuer);
3
  Licensed under the MIT license - http://opensource.org/licenses/MIT
4
  Copyright (C) 2015 Andrew Prasetya
5
  */
6
+ !function(e,t,a){var i=function(i,o){function n(e){e.find(_+", ."+U).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(_).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(_).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(_).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(_).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),(o.data("width")!=a||o.data("height")!=a)&&o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(_),s=!1;n="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?s?i.css("width",parseFloat(100/o)*r+"%"):i.css("width",n*parseInt(r)):s?i.css("width",100/o+"%"):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(_+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(_+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");("push-up-100%"==n||"push-down-100%"==n)&&s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):("push-down"==n||"push-down-100%"==n)&&(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(_);i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"direction"==n.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=O.find(_+", ."+U),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){O.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,O.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var n=e[o];for(var t in e)if(t!=o)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<q.minBoxesPerFilter&&B().length>0?(M(q.minBoxesPerFilter-e),!0):!1}function k(){var e=O.find(_),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=O.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=O.find("."+U),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(q.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function T(){A++,I()}function S(){A--,0==A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(q.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(q.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){T();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(U).addClass(F),o.hide(),i.push(this))}),O.eveMB("insert",t(i),function(){S(),O.eveMB("layout")})}}function z(e){if(e!=a){var i=O.find("."+F+", ."+U);""==e?i.addClass("search-match"):(i.removeClass("search-match"),O.find(q.searchTarget).each(function(){var a=t(this),i=a.parents("."+F+", ."+U);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function P(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var n=o.parsed?o.el:t(o);return n.attr("data-mfp-src")==a.src?(i=e,!1):void 0}),null!==i&&e.goTo(i)}}else O.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var q=t.extend({},t.fn.collagePlus.defaults,o),O=t(i).addClass("rbs-imges-container"),_=".rbs-img",R=".rbs-img-image",F="rbs-img",U="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==q.overlayEasing&&(q.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(O);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(q.loadMoreClass),q.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),O.data("settings",q),O.css({"margin-left":-q.horizontalSpaceBetweenBoxes}),O.find(_).removeClass(F).addClass(U);var N=t(q.sortContainer).find(q.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);O.append('<div class="rbs-imges-grid-sizer"></div>'),O.eveMB({itemSelector:_,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:q.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+U)[0],v=o.length;for(l=0;v>l;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;v>l;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;v>l;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==q.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(_).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(q.boxesToLoadStart,!0),H.on("click",function(){M(q.boxesToLoad)}),q.lazyLoad&&O.waypoint(function(e){O.hasClass("lazy-load-ready")&&"down"==e&&0==O.hasClass("filtering-isotope")&&(O.removeClass("lazy-load-ready"),M(q.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(q.filterContainer);Y.find(q.filter).on("click",function(e){var i=t(this),o=i.parents(q.filterContainer);o.find(q.filter).removeClass(q.filterContainerSelectClass),i.addClass(q.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(q.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(q.search).val()),t(q.search).on("keyup",function(){var e=t(this).val();z(e)}),t(q.sortContainer).find(q.sort).on("click",function(e){var a=t(this);a.parents(q.sortContainer).find(q.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");O.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),O.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=q.thumbnailOverlay){var i=t(this),o=q.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},q.overlaySpeed,q.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},q.overlaySpeed,q.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(q.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(q.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1),r=Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4;return r},J=function(e,t){var a,i;switch(e){case 0:q.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:q.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:q.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:q.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(q.considerFilteringInPopup&&(K=_+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+U+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),q.showOnlyLoadedBoxesInPopup&&(K=_+":visible .rbs-lightbox[data-mfp-src]"),q.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:q.alignTop,preload:q.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:q.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){var e="";t(".mfp-title").html(i.attr("mfp-title")==a||q.hideTitle?"":i.attr("mfp-title"));var o=i.attr("data-mfp-src");e="",q.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+o+'" target="_blank"></a>');var n=location.href,r=(location.href.replace(location.hash,""),i.attr("mfp-title")),s=n,d="";q.facebook&&(d+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+s+"'></div>"),q.twitter&&(d+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+s+"' data-title='"+r+"' ></div>"),q.googleplus&&(d+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+s+"'></div>"),q.pinterest&&(d+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+o+"' data-title='"+r+"' data-url='"+s+"' ></div>"),d=d?"<div class='rbs-imges-social-container'>"+d+"</div>":"";var l=t(".mfp-title").html();t(".mfp-title").html(l+d+e)},5),void(q.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){q.deepLinking&&(e.location.hash="#!")}}};t.extend(V,q.lightboxOptions),O.magnificPopup(V)}if(q.deepLinking){var Z=W();Z&&O.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",P,!1):e.attachEvent&&e.attachEvent("onhashchange",P)}var $=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://www.facebook.com/sharer/sharer.php?u="+a,$(a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("title"));a="https://twitter.com/intent/tweet?url="+encodeURIComponent(e.data("url"))+"&text="+i,$(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,$(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this);url="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.data("url"))+"&media="+encodeURIComponent(e.data("src"))+"&description="+encodeURIComponent(e.data("title")),$(url)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,rbjQuer);
gallery/js/jquery.collagePlus.min.js CHANGED
@@ -3,4 +3,4 @@
3
  Licensed under the MIT license - http://opensource.org/licenses/MIT
4
  Copyright (C) 2015 Andrew Prasetya
5
  */
6
- !function(e,t,a){var i=function(i,o){function n(e){e.find(_+", ."+U).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(_).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(_).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(_).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(_).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),(o.data("width")!=a||o.data("height")!=a)&&o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(_),s=!1;n="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?s?i.css("width",parseFloat(100/o)*r+"%"):i.css("width",n*parseInt(r)):s?i.css("width",100/o+"%"):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(_+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(_+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");("push-up-100%"==n||"push-down-100%"==n)&&s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):("push-down"==n||"push-down-100%"==n)&&(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(_);i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"direction"==n.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=O.find(_+", ."+U),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){O.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?T():M(),w()}function b(e,t){D[t]=e,O.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var n=e[o];for(var t in e)if(t!=o)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<q.minBoxesPerFilter&&B().length>0?(S(q.minBoxesPerFilter-e),!0):!1}function k(){var e=O.find(_),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=O.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=O.find("."+U),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function T(){H.html(q.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function I(){A++,T()}function L(){A--,0==A&&M()}function M(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(q.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(q.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function S(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){I();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(U).addClass(F),o.hide(),i.push(this))}),O.eveMB("insert",t(i),function(){L(),O.eveMB("layout")})}}function z(e){if(e!=a){var i=O.find("."+F+", ."+U);""==e?i.addClass("search-match"):(i.removeClass("search-match"),O.find(q.searchTarget).each(function(){var a=t(this),i=a.parents("."+F+", ."+U);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function P(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var n=o.parsed?o.el:t(o);return n.attr("data-mfp-src")==a.src?(i=e,!1):void 0}),null!==i&&e.goTo(i)}}else O.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var q=t.extend({},t.fn.collagePlus.defaults,o),O=t(i).addClass("rbs-imges-container"),_=".rbs-img",R=".rbs-img-image",F="rbs-img",U="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==q.overlayEasing&&(q.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(O);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(q.loadMoreClass),q.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),O.data("settings",q),O.css({"margin-left":-q.horizontalSpaceBetweenBoxes}),O.find(_).removeClass(F).addClass(U);var N=t(q.sortContainer).find(q.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);O.append('<div class="rbs-imges-grid-sizer"></div>'),O.eveMB({itemSelector:_,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:q.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+U)[0],v=o.length;for(l=0;v>l;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;v>l;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;v>l;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==q.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(_).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),S(q.boxesToLoadStart,!0),H.on("click",function(){S(q.boxesToLoad)}),q.lazyLoad&&O.waypoint(function(e){O.hasClass("lazy-load-ready")&&"down"==e&&0==O.hasClass("filtering-isotope")&&(O.removeClass("lazy-load-ready"),S(q.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(q.filterContainer);Y.find(q.filter).on("click",function(e){var i=t(this),o=i.parents(q.filterContainer);o.find(q.filter).removeClass(q.filterContainerSelectClass),i.addClass(q.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(q.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(q.search).val()),t(q.search).on("keyup",function(){var e=t(this).val();z(e)}),t(q.sortContainer).find(q.sort).on("click",function(e){var a=t(this);a.parents(q.sortContainer).find(q.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");O.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),O.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=q.thumbnailOverlay){var i=t(this),o=q.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},q.overlaySpeed,q.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},q.overlaySpeed,q.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(q.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(q.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1),r=Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4;return r},J=function(e,t){var a,i;switch(e){case 0:q.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:q.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:q.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:q.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(q.considerFilteringInPopup&&(K=_+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+U+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),q.showOnlyLoadedBoxesInPopup&&(K=_+":visible .rbs-lightbox[data-mfp-src]"),q.magnificPopup&&O.magnificPopup({delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:q.alignTop,preload:q.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:q.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){t(".mfp-title").html(i.attr("mfp-title")==a||q.hideTitle?"":i.attr("mfp-title"));var e=location.href,o=(location.href.replace(location.hash,""),i.attr("data-mfp-src")),n=i.attr("mfp-title"),r=e,s="<div class='rbs-imges-social-container'>";q.facebook&&(s+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+r+"'></div>"),q.twitter&&(s+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+r+"' data-title='"+n+"' ></div>"),q.googleplus&&(s+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+r+"'></div>"),q.pinterest&&(s+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+o+"' data-title='"+n+"' data-url='"+r+"' ></div>"),s+="</div>";var d=t(".mfp-title").html();t(".mfp-title").html(d+s)},5),void(q.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){q.deepLinking&&(e.location.hash="#!")}}}),q.deepLinking){var V=W();V&&O.find('.rbs-lightbox[data-mfp-src="'+V.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",P,!1):e.attachEvent&&e.attachEvent("onhashchange",P)}var Z=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://www.facebook.com/sharer/sharer.php?u="+a,Z(a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("title"));a="https://twitter.com/intent/tweet?url="+encodeURIComponent(e.data("url"))+"&text="+i,Z(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,Z(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this);url="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.data("url"))+"&media="+encodeURIComponent(e.data("src"))+"&description="+encodeURIComponent(e.data("title")),Z(url)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,hideTitle:!1,hideCounter:!1},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,jQuery);
3
  Licensed under the MIT license - http://opensource.org/licenses/MIT
4
  Copyright (C) 2015 Andrew Prasetya
5
  */
6
+ !function(e,t,a){var i=function(i,o){function n(e){e.find(_+", ."+U).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(_).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(_).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(_).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(_).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),(o.data("width")!=a||o.data("height")!=a)&&o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(_),s=!1;n="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?s?i.css("width",parseFloat(100/o)*r+"%"):i.css("width",n*parseInt(r)):s?i.css("width",100/o+"%"):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(_+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(_+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");("push-up-100%"==n||"push-down-100%"==n)&&s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):("push-down"==n||"push-down-100%"==n)&&(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(_);i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"direction"==n.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=O.find(_+", ."+U),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){O.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,O.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var n=e[o];for(var t in e)if(t!=o)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<q.minBoxesPerFilter&&B().length>0?(M(q.minBoxesPerFilter-e),!0):!1}function k(){var e=O.find(_),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=O.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=O.find("."+U),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(q.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function T(){A++,I()}function S(){A--,0==A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(q.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(q.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){T();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(U).addClass(F),o.hide(),i.push(this))}),O.eveMB("insert",t(i),function(){S(),O.eveMB("layout")})}}function z(e){if(e!=a){var i=O.find("."+F+", ."+U);""==e?i.addClass("search-match"):(i.removeClass("search-match"),O.find(q.searchTarget).each(function(){var a=t(this),i=a.parents("."+F+", ."+U);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function P(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var n=o.parsed?o.el:t(o);return n.attr("data-mfp-src")==a.src?(i=e,!1):void 0}),null!==i&&e.goTo(i)}}else O.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var q=t.extend({},t.fn.collagePlus.defaults,o),O=t(i).addClass("rbs-imges-container"),_=".rbs-img",R=".rbs-img-image",F="rbs-img",U="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==q.overlayEasing&&(q.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(O);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(q.loadMoreClass),q.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),O.data("settings",q),O.css({"margin-left":-q.horizontalSpaceBetweenBoxes}),O.find(_).removeClass(F).addClass(U);var N=t(q.sortContainer).find(q.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);O.append('<div class="rbs-imges-grid-sizer"></div>'),O.eveMB({itemSelector:_,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:q.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+U)[0],v=o.length;for(l=0;v>l;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;v>l;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;v>l;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==q.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(_).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(q.boxesToLoadStart,!0),H.on("click",function(){M(q.boxesToLoad)}),q.lazyLoad&&O.waypoint(function(e){O.hasClass("lazy-load-ready")&&"down"==e&&0==O.hasClass("filtering-isotope")&&(O.removeClass("lazy-load-ready"),M(q.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(q.filterContainer);Y.find(q.filter).on("click",function(e){var i=t(this),o=i.parents(q.filterContainer);o.find(q.filter).removeClass(q.filterContainerSelectClass),i.addClass(q.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(q.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(q.search).val()),t(q.search).on("keyup",function(){var e=t(this).val();z(e)}),t(q.sortContainer).find(q.sort).on("click",function(e){var a=t(this);a.parents(q.sortContainer).find(q.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");O.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),O.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=q.thumbnailOverlay){var i=t(this),o=q.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing):l.stop()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},q.overlaySpeed,q.overlayEasing):r.stop()[j]({"margin-top":0},q.overlaySpeed,q.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},q.overlaySpeed,q.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},q.overlaySpeed,q.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(q.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(q.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1),r=Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4;return r},J=function(e,t){var a,i;switch(e){case 0:q.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:q.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:q.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:q.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(q.considerFilteringInPopup&&(K=_+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+U+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),q.showOnlyLoadedBoxesInPopup&&(K=_+":visible .rbs-lightbox[data-mfp-src]"),q.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:q.alignTop,preload:q.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:q.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){var e="";t(".mfp-title").html(i.attr("mfp-title")==a||q.hideTitle?"":i.attr("mfp-title"));var o=i.attr("data-mfp-src");e="",q.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+o+'" target="_blank"></a>');var n=location.href,r=(location.href.replace(location.hash,""),i.attr("mfp-title")),s=n,d="";q.facebook&&(d+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+s+"'></div>"),q.twitter&&(d+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+s+"' data-title='"+r+"' ></div>"),q.googleplus&&(d+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+s+"'></div>"),q.pinterest&&(d+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+o+"' data-title='"+r+"' data-url='"+s+"' ></div>"),d=d?"<div class='rbs-imges-social-container'>"+d+"</div>":"";var l=t(".mfp-title").html();t(".mfp-title").html(l+d+e)},5),void(q.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){q.deepLinking&&(e.location.hash="#!")}}};t.extend(V,q.lightboxOptions),O.magnificPopup(V)}if(q.deepLinking){var Z=W();Z&&O.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",P,!1):e.attachEvent&&e.attachEvent("onhashchange",P)}var $=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://www.facebook.com/sharer/sharer.php?u="+a,$(a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("title"));a="https://twitter.com/intent/tweet?url="+encodeURIComponent(e.data("url"))+"&text="+i,$(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,$(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this);url="http://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.data("url"))+"&media="+encodeURIComponent(e.data("src"))+"&description="+encodeURIComponent(e.data("title")),$(url)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,jQuery);
includes/frontend/rbs_gallery_class.php CHANGED
@@ -75,6 +75,8 @@ class roboGallery extends roboGalleryUtils{
75
  public $scriptList = array();
76
 
77
  public $thumbClick = 0;
 
 
78
 
79
  function updateCountView(){
80
  if(!$this->id) return ;
@@ -132,27 +134,38 @@ class roboGallery extends roboGalleryUtils{
132
  wp_enqueue_script( 'robo-gallery-evemb', ROBO_GALLERY_URL.'gallery/js/jquery.evemb.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
133
  wp_enqueue_script( 'robo-gallery-utils', ROBO_GALLERY_URL.'gallery/js/jquery.utils.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
134
  wp_enqueue_script( 'robo-gallery-magnific', ROBO_GALLERY_URL.'gallery/js/jquery.magnific.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
 
 
 
 
 
135
  wp_enqueue_script( 'robo-gallery-collage', ROBO_GALLERY_URL.'gallery/js/jquery.collagePlus.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
136
  wp_enqueue_script( 'robo-gallery-script', ROBO_GALLERY_URL.'js/script.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
137
-
138
  } else if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
139
-
140
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/rbjquer.min.js';
141
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.evemb.min.js';
142
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.utils.min.js';
143
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.magnific.min.js';
 
 
 
 
 
144
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.collagePlus.min.js';
145
  $this->scriptList[] = ROBO_GALLERY_URL.'js/alt/script.js';
146
 
147
  } else {
148
-
149
  wp_enqueue_script( 'robo-gallery-rbjquer', ROBO_GALLERY_URL.'gallery/js/alt/rbjquer.min.js', array( ), ROBO_GALLERY_VERSION );
150
  wp_enqueue_script( 'robo-gallery-evemb', ROBO_GALLERY_URL.'gallery/js/alt/jquery.evemb.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
151
  wp_enqueue_script( 'robo-gallery-utils', ROBO_GALLERY_URL.'gallery/js/alt/jquery.utils.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
152
  wp_enqueue_script( 'robo-gallery-magnific', ROBO_GALLERY_URL.'gallery/js/alt/jquery.magnific.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
 
 
 
 
 
153
  wp_enqueue_script( 'robo-gallery-collage', ROBO_GALLERY_URL.'gallery/js/alt/jquery.collagePlus.min.js',array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
154
  wp_enqueue_script( 'robo-gallery-script', ROBO_GALLERY_URL.'js/alt/script.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
155
-
156
  }
157
  }
158
 
@@ -200,6 +213,14 @@ class roboGallery extends roboGalleryUtils{
200
 
201
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
202
 
 
 
 
 
 
 
 
 
203
  $width = 240; $height = 140;
204
 
205
  $size = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'thumb-size-options', true );
@@ -228,6 +249,9 @@ class roboGallery extends roboGalleryUtils{
228
  }
229
  }
230
 
 
 
 
231
  $radius = (int) get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'radius', true );
232
  $this->rbsBoxStyle .= ' -webkit-border-radius: '.$radius.'px; -moz-border-radius: '.$radius.'px; border-radius: '.$radius.'px;';
233
 
75
  public $scriptList = array();
76
 
77
  public $thumbClick = 0;
78
+
79
+ public $touch = 0;
80
 
81
  function updateCountView(){
82
  if(!$this->id) return ;
134
  wp_enqueue_script( 'robo-gallery-evemb', ROBO_GALLERY_URL.'gallery/js/jquery.evemb.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
135
  wp_enqueue_script( 'robo-gallery-utils', ROBO_GALLERY_URL.'gallery/js/jquery.utils.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
136
  wp_enqueue_script( 'robo-gallery-magnific', ROBO_GALLERY_URL.'gallery/js/jquery.magnific.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
137
+
138
+ if($this->touch){
139
+ wp_enqueue_script( 'robo-gallery-touch', ROBO_GALLERY_URL.'gallery/js/jquery.touch.min.js', array( 'robo-gallery-magnific' ), ROBO_GALLERY_VERSION );
140
+ }
141
+
142
  wp_enqueue_script( 'robo-gallery-collage', ROBO_GALLERY_URL.'gallery/js/jquery.collagePlus.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
143
  wp_enqueue_script( 'robo-gallery-script', ROBO_GALLERY_URL.'js/script.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
 
144
  } else if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
 
145
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/rbjquer.min.js';
146
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.evemb.min.js';
147
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.utils.min.js';
148
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.magnific.min.js';
149
+
150
+ if($this->touch){
151
+ $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.touch.min.js';
152
+ }
153
+
154
  $this->scriptList[] = ROBO_GALLERY_URL.'gallery/js/alt/jquery.collagePlus.min.js';
155
  $this->scriptList[] = ROBO_GALLERY_URL.'js/alt/script.js';
156
 
157
  } else {
 
158
  wp_enqueue_script( 'robo-gallery-rbjquer', ROBO_GALLERY_URL.'gallery/js/alt/rbjquer.min.js', array( ), ROBO_GALLERY_VERSION );
159
  wp_enqueue_script( 'robo-gallery-evemb', ROBO_GALLERY_URL.'gallery/js/alt/jquery.evemb.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
160
  wp_enqueue_script( 'robo-gallery-utils', ROBO_GALLERY_URL.'gallery/js/alt/jquery.utils.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
161
  wp_enqueue_script( 'robo-gallery-magnific', ROBO_GALLERY_URL.'gallery/js/alt/jquery.magnific.min.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
162
+
163
+ if($this->touch){
164
+ wp_enqueue_script( 'robo-gallery-touch', ROBO_GALLERY_URL.'gallery/js/alt/jquery.touch.min.js', array( 'robo-gallery-magnific' ), ROBO_GALLERY_VERSION );
165
+ }
166
+
167
  wp_enqueue_script( 'robo-gallery-collage', ROBO_GALLERY_URL.'gallery/js/alt/jquery.collagePlus.min.js',array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
168
  wp_enqueue_script( 'robo-gallery-script', ROBO_GALLERY_URL.'js/alt/script.js', array( 'robo-gallery-rbjquer' ), ROBO_GALLERY_VERSION );
 
169
  }
170
  }
171
 
213
 
214
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
215
 
216
+ /* ver 2 + */
217
+ $this->touch = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxSwipe', true );
218
+ if($this->touch){
219
+ $this->helper->setValue( 'touch', 1, 'raw' );
220
+ }
221
+ /* ver 2 - */
222
+
223
+
224
  $width = 240; $height = 140;
225
 
226
  $size = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'thumb-size-options', true );
249
  }
250
  }
251
 
252
+
253
+
254
+
255
  $radius = (int) get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'radius', true );
256
  $this->rbsBoxStyle .= ' -webkit-border-radius: '.$radius.'px; -moz-border-radius: '.$radius.'px; border-radius: '.$radius.'px;';
257
 
includes/frontend/rbs_gallery_source.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 1.9.14
5
  * By Robosoft
6
  *
7
  * Contact: http://robosoft.co
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 1.0
5
  * By Robosoft
6
  *
7
  * Contact: http://robosoft.co
includes/options/rbs_gallery_options_lightbox.php CHANGED
@@ -114,6 +114,15 @@ $lightbox_group->add_field( array(
114
  'bootstrap_style'=> 1,
115
  ));
116
 
 
 
 
 
 
 
 
 
 
117
  $lightbox_group->add_field( array(
118
  'name' => __('Social Buttons', 'rbs_gallery' ),
119
  'id' => ROBO_GALLERY_PREFIX . 'lightboxSocial',
114
  'bootstrap_style'=> 1,
115
  ));
116
 
117
+ $lightbox_group->add_field( array(
118
+ 'name' => __('Swipe', 'rbs_gallery' ),
119
+ 'id' => ROBO_GALLERY_PREFIX . 'lightboxSwipe',
120
+ 'type' => 'switch',
121
+ 'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
122
+ 'bootstrap_style'=> 1,
123
+ ));
124
+
125
+
126
  $lightbox_group->add_field( array(
127
  'name' => __('Social Buttons', 'rbs_gallery' ),
128
  'id' => ROBO_GALLERY_PREFIX . 'lightboxSocial',
includes/rbs_gallery_settings.php CHANGED
@@ -80,7 +80,7 @@ wp_enqueue_style ( 'toolbox-gallery-about', ROBO_GALLERY_URL.'css/admin/about.c
80
  <th colspan="2"><h2><?php _e('Create Post Settings', 'rbs_gallery'); ?></h2></th>
81
  </tr>
82
  <tr>
83
- <th scope="row"><?php _e('Show Text', 'rbs_gallery'); ?></th>
84
  <td>
85
  <fieldset>
86
  <legend class="screen-reader-text"><span><?php _e('Show Text', 'rbs_gallery'); ?></span></legend>
@@ -102,5 +102,5 @@ wp_enqueue_style ( 'toolbox-gallery-about', ROBO_GALLERY_URL.'css/admin/about.c
102
  </form>
103
  </div>
104
  <?php
105
- echo '<div class="rbs_about_string2">Copyright &copy; 2014 - 2016 RoboSoft '.__('All Rights Reserved', 'rbs_gallery').'.</div>
106
  ';
80
  <th colspan="2"><h2><?php _e('Create Post Settings', 'rbs_gallery'); ?></h2></th>
81
  </tr>
82
  <tr>
83
+ <th scope="row"><?php _e('Text Block', 'rbs_gallery'); ?></th>
84
  <td>
85
  <fieldset>
86
  <legend class="screen-reader-text"><span><?php _e('Show Text', 'rbs_gallery'); ?></span></legend>
102
  </form>
103
  </div>
104
  <?php
105
+ echo '<div class="rbs_about_string2">Copyright &copy; 2014 - 2016 <a href="http://robosoft.co/robogallery">RoboSoft</a> '.__('All Rights Reserved', 'rbs_gallery').'.</div>
106
  ';
js/alt/script.js CHANGED
@@ -17,6 +17,13 @@
17
  //console.log(objectOptions);
18
  var realOptions = rbjQuer.extend({},objectOptions);
19
  var gallery = rbjQuer(this).collagePlus( realOptions );
 
 
 
 
 
 
 
20
  if( roboGalleryDelay != undefined && roboGalleryDelay > 0 ){
21
  setTimeout(function () {
22
  gallery.eveMB('resize');
17
  //console.log(objectOptions);
18
  var realOptions = rbjQuer.extend({},objectOptions);
19
  var gallery = rbjQuer(this).collagePlus( realOptions );
20
+ if(realOptions.touch==1){
21
+ rbjQuer("body").swipe({
22
+ swipeLeft: function(event, direction, distance, duration, fingerCount){ rbjQuer(".mfp-arrow-left").magnificPopup("prev"); },
23
+ swipeRight: function() { rbjQuer(".mfp-arrow-right").magnificPopup("next"); },
24
+ threshold: 50
25
+ });
26
+ }
27
  if( roboGalleryDelay != undefined && roboGalleryDelay > 0 ){
28
  setTimeout(function () {
29
  gallery.eveMB('resize');
js/script.js CHANGED
@@ -16,6 +16,14 @@
16
  var objectOptions = window[ jQuery(this).data('options') ];
17
  var realOptions = jQuery.extend({},objectOptions);
18
  var gallery = jQuery(this).collagePlus( realOptions );
 
 
 
 
 
 
 
 
19
  if( roboGalleryDelay != undefined && roboGalleryDelay > 0 ){
20
  setTimeout(function () {
21
  gallery.eveMB('resize');
16
  var objectOptions = window[ jQuery(this).data('options') ];
17
  var realOptions = jQuery.extend({},objectOptions);
18
  var gallery = jQuery(this).collagePlus( realOptions );
19
+ //console.log(realOptions);
20
+ if(realOptions.touch==1){
21
+ jQuery("body").swipe({
22
+ swipeLeft: function(event, direction, distance, duration, fingerCount){ jQuery(".mfp-arrow-left").magnificPopup("prev"); },
23
+ swipeRight: function() { jQuery(".mfp-arrow-right").magnificPopup("next"); },
24
+ threshold: 50
25
+ });
26
+ }
27
  if( roboGalleryDelay != undefined && roboGalleryDelay > 0 ){
28
  setTimeout(function () {
29
  gallery.eveMB('resize');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.robosoft.co/robogallery
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
- Stable tag: 1.9.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -178,10 +178,6 @@ You don't need do any additional configurations or manual code changes. You can
178
 
179
  == Frequently Asked Questions ==
180
 
181
- = How to define video for some gallery image? =
182
-
183
- Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
184
-
185
  = How many menu buttons styles do you have in gallery menu ? =
186
 
187
  Gallery menu have multiply configuration options. Some of the options changing color of the buttons, some of them changing style of the buttons, which makes buttons for example 3d or with rounded corners
@@ -206,10 +202,6 @@ If you have some conflict in gallery back end you can sort it with new compatibi
206
 
207
  No, we don't have any limits for image size in our gallery.
208
 
209
- = How to change font size of the gallery image description text? =
210
-
211
- In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change size of the text
212
-
213
  = How to use multi-category functionality of the gallery? =
214
 
215
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
@@ -226,26 +218,10 @@ Our gallery is fully responsive and gallery thumbnails size depend of a lot of f
226
 
227
  When you enable border in gallery settings you will see multiply options for customization of the border. One from this options it's border color. You can select color using color selector
228
 
229
- = Is it possible to turn off border of the gallery thumbnails? =
230
-
231
- Yes, in gallery options you can turn on/off border option
232
-
233
  = How to add text before and after gallery? =
234
 
235
  In gallery settings you can find before/after text gallery field. This fields support HTML tags.
236
 
237
- = What can I do if some gallery interface elements in backend do not work properly? =
238
-
239
- If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
240
-
241
- = How to change ordering of the gallery images? =
242
-
243
- When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
244
-
245
- = Which parameters I can change for the gallery thumbnails borders and shadows? =
246
-
247
- You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
248
-
249
  = Do you have some limits for images types in gallery? =
250
 
251
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
@@ -278,10 +254,6 @@ In gallery settings we have few options which makes you able to select amount of
278
 
279
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
280
 
281
- = How to upload images to the gallery? =
282
-
283
- When you create new gallery or open already existent gallery for edit on the right side of the edit gallery section you'll see gallery images manager button. When you open gallery images manager you'll be able there edit all gallery images. Upload, edit or delete. In gallery images manager you can use drag and drop gallery images upload tool.
284
-
285
  = How to change transparency of the gallery thumbnails border? =
286
 
287
  When you enable border in gallery settings you will see multiply options for customization of the border. When you open color selector you can also select some transparency value there
@@ -290,10 +262,6 @@ When you enable border in gallery settings you will see multiply options for cus
290
 
291
  If you wish to make section with gallery without spacing between thumbnails you need just set horizontal and vertical spacing to 0 in gallery thumbnails view options
292
 
293
- = Which tags build in shutter of gallery hover template customization? =
294
-
295
- For now we have build in @@TITLE@@, @@CAPTION@@, @@DESCR@@
296
-
297
  = How to install Gallery plugin? =
298
 
299
  Just install it using regular Wordpress plugins installing mechanism. If you have some questions related with our plugin feel free to contact our support team we happy to help you!
@@ -302,26 +270,10 @@ Just install it using regular Wordpress plugins installing mechanism. If you ha
302
 
303
  In build library of the icons in gallery you can find 533 icons
304
 
305
- = How to change text below image in lightbox ? =
306
-
307
- In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
308
-
309
- = How to set description text below image in the lightbox? =
310
-
311
- In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
312
-
313
  = Is it possible to create target blank links? =
314
 
315
  Yes. When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have target blank field below link field of the gallery image.
316
 
317
- = Is it possible to generate post with gallery inside it ? =
318
-
319
- In gallery settings we create separate section where you can find create new post button. After click on this button you'll see wizard form where you can select all additional parameters for the gallery new post.
320
-
321
- = How to customize border of the gallery thumbnails? =
322
-
323
- In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
324
-
325
  = How to change quality of the gallery thumbnails? =
326
 
327
  Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
@@ -362,18 +314,10 @@ In gallery settings you can find images manager where you can change settings of
362
 
363
  Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block, where you can change color of the gallery lightbox background.
364
 
365
- = Is it possible to create direct link on the front end to the gallery? =
366
-
367
- Yes, you can use generated direct link inside particular gallery settings
368
-
369
  = How I can create custom (grid) layout of the thumbnails? =
370
 
371
  In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
372
 
373
- = How to enable icons on gallery hover shutter? =
374
-
375
- In gallery hover settings we implemented full set of configuration settings of the buttons. You can change icon, style size, colors for static and hovered buttons. You can select icon with build in wizard
376
-
377
  = Where to change settings of the image of the gallery? =
378
 
379
  Settings of the gallery image you can change in images manager. There you can upload, edit or customize already uploaded images to the gallery
@@ -386,14 +330,14 @@ When you open gallery settings you can find there gallery lightbox settings bloc
386
 
387
  In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of
388
 
389
- = How to customize hover effect? =
390
-
391
- In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
392
-
393
  = Where specify description of the gallery images? =
394
 
395
  When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
396
 
 
 
 
 
397
  = How to change font style of the gallery image caption? =
398
 
399
  In gallery settings you can enable custom caption settings where you can customize font style and see results in live preview
@@ -402,14 +346,6 @@ In gallery settings you can enable custom caption settings where you can customi
402
 
403
  When you open gallery settings you can find there gallery lightbox settings block, where you can gallery lightbox text color using color selector.
404
 
405
- = How to customize gallery hover effect shutter layout? =
406
-
407
- In gallery hover settings you can enable template where you can fully customize layout of the shutter content using HTML tags, text and images. In template we have implemented some build in tags which going to help you to build in some gallery images elements into hover
408
-
409
- = How to change font size of the gallery image caption? =
410
-
411
- In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
412
-
413
  = How to customize gallery layouts for different screen resolutions? =
414
 
415
  In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
@@ -422,6 +358,14 @@ When you create gallery in plugin galleries manager you can go to the post or pa
422
 
423
  When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have custom effect field where you can select different hover effect for every image of the gallery.
424
 
 
 
 
 
 
 
 
 
425
  = Is it possible to change transparency of the hover shutter? =
426
 
427
  Yes, it's possible to change transparency in gallery settings
@@ -442,14 +386,18 @@ In gallery settings you can enable custom caption settings where you can customi
442
 
443
  When you open gallery images manager you'll find there image edit mode where you can flip source image
444
 
445
- = Is it possible create gallery in Wordpress post with Gallery? =
446
-
447
- Yes, you can insert gallery into post with shortcode tag
448
-
449
  = How to change style of the gallery thumbnails border? =
450
 
451
  When you enable border in gallery settings you will see multiply options for customization of the border. One of the options it's border style. You can select one value from pre-defined list
452
 
 
 
 
 
 
 
 
 
453
  = Is it possible to change color of the hovered image in gallery? =
454
 
455
  Yes, you can easily change color of the hovered image in gallery in backend. In gallery settings we build-in comfortable color selector which make you able to change color of the gallery interface elements.
@@ -462,9 +410,9 @@ No, we don't have any limits for amount of the images in gallery
462
 
463
  Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
464
 
465
- = Do you have some conflict in gallery back end? =
466
 
467
- If you have some conflict in gallery back end you can sort it with new compatibility option. You can switch between standard and alternative jquery library. This modes implemented to help you to avoid any conflicts with another libraries from wordpress themes or another plugin.
468
 
469
  = How to enable lazy load in gallery options? =
470
 
@@ -474,10 +422,18 @@ In gallery settings you can find option to enable/disable lazy load, also there
474
 
475
  In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
476
 
 
 
 
 
477
  = Is it possible to have different settings for hover and static interface elements? =
478
 
479
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
480
 
 
 
 
 
481
  = How many buttons with icons do you have in gallery? =
482
 
483
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
@@ -486,6 +442,10 @@ In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and li
486
 
487
  When you open gallery images manager you'll find there image edit mode where you can crop source image
488
 
 
 
 
 
489
  = How to change icon on gallery thumbnail button? =
490
 
491
  When you open gallery settings you can see there hover options section where we implemented settings for every hover button. Here you can select icons for buttons and style for this icon
@@ -494,22 +454,62 @@ When you open gallery settings you can see there hover options section where we
494
 
495
  In our gallery implemented options which make you able to make gallery thumbnails looks in Polaroid style, with caption of the image below thumbnail
496
 
 
 
 
 
 
 
 
 
497
  = How to delete title, author, date above the gallery of the gallery post? =
498
 
499
  Actually settings of all this main elements of the gallery post is inherited from the the general Wordpress posts settings. So you can turn in off the same way as it's manage in general posts, not only gallery posts.
500
 
 
 
 
 
501
  = How many thumbnails hover effects gallery has? =
502
 
503
  Gallery have 15 hover animation effects, which could be combined with additional custom options
504
 
 
 
 
 
505
  = Is it possible to change transparency of the gallery lightbox background ? =
506
 
507
  Yes, you can change gallery lightbox background transparency in gallery settings. Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block. When you open color selector for the gallery lightbox background you'll see there additional slider option for transparency value.
508
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  = Which style parameters I can change for the hover button icon? =
510
 
511
  You can select border color, background color and color of the icon, size of the icon
512
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  == Screenshots ==
514
 
515
  1. Gallery Demo 1
@@ -584,6 +584,11 @@ If any problem occurs, please contact us.
584
 
585
  == Changelog ==
586
 
 
 
 
 
 
587
  = 1.9.16 =
588
  * Updated structure of the core files
589
  * Preparation for update to version 2
@@ -1026,6 +1031,9 @@ If any problem occurs, please contact us.
1026
 
1027
  == Upgrade Notice ==
1028
 
 
 
 
1029
  = 1.9.16 =
1030
  Updated structure of the core files, preparation for update to version 2
1031
 
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
+ Stable tag: 2.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
178
 
179
  == Frequently Asked Questions ==
180
 
 
 
 
 
181
  = How many menu buttons styles do you have in gallery menu ? =
182
 
183
  Gallery menu have multiply configuration options. Some of the options changing color of the buttons, some of them changing style of the buttons, which makes buttons for example 3d or with rounded corners
202
 
203
  No, we don't have any limits for image size in our gallery.
204
 
 
 
 
 
205
  = How to use multi-category functionality of the gallery? =
206
 
207
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
218
 
219
  When you enable border in gallery settings you will see multiply options for customization of the border. One from this options it's border color. You can select color using color selector
220
 
 
 
 
 
221
  = How to add text before and after gallery? =
222
 
223
  In gallery settings you can find before/after text gallery field. This fields support HTML tags.
224
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  = Do you have some limits for images types in gallery? =
226
 
227
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
254
 
255
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
256
 
 
 
 
 
257
  = How to change transparency of the gallery thumbnails border? =
258
 
259
  When you enable border in gallery settings you will see multiply options for customization of the border. When you open color selector you can also select some transparency value there
262
 
263
  If you wish to make section with gallery without spacing between thumbnails you need just set horizontal and vertical spacing to 0 in gallery thumbnails view options
264
 
 
 
 
 
265
  = How to install Gallery plugin? =
266
 
267
  Just install it using regular Wordpress plugins installing mechanism. If you have some questions related with our plugin feel free to contact our support team we happy to help you!
270
 
271
  In build library of the icons in gallery you can find 533 icons
272
 
 
 
 
 
 
 
 
 
273
  = Is it possible to create target blank links? =
274
 
275
  Yes. When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have target blank field below link field of the gallery image.
276
 
 
 
 
 
 
 
 
 
277
  = How to change quality of the gallery thumbnails? =
278
 
279
  Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
314
 
315
  Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block, where you can change color of the gallery lightbox background.
316
 
 
 
 
 
317
  = How I can create custom (grid) layout of the thumbnails? =
318
 
319
  In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
320
 
 
 
 
 
321
  = Where to change settings of the image of the gallery? =
322
 
323
  Settings of the gallery image you can change in images manager. There you can upload, edit or customize already uploaded images to the gallery
330
 
331
  In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of
332
 
 
 
 
 
333
  = Where specify description of the gallery images? =
334
 
335
  When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
336
 
337
+ = Which tags build in shutter of gallery hover template customization? =
338
+
339
+ For now we have build in @@TITLE@@, @@CAPTION@@, @@DESCR@@
340
+
341
  = How to change font style of the gallery image caption? =
342
 
343
  In gallery settings you can enable custom caption settings where you can customize font style and see results in live preview
346
 
347
  When you open gallery settings you can find there gallery lightbox settings block, where you can gallery lightbox text color using color selector.
348
 
 
 
 
 
 
 
 
 
349
  = How to customize gallery layouts for different screen resolutions? =
350
 
351
  In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
358
 
359
  When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have custom effect field where you can select different hover effect for every image of the gallery.
360
 
361
+ = How to change text below image in lightbox ? =
362
+
363
+ In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
364
+
365
+ = Is it possible to generate post with gallery inside it ? =
366
+
367
+ In gallery settings we create separate section where you can find create new post button. After click on this button you'll see wizard form where you can select all additional parameters for the gallery new post.
368
+
369
  = Is it possible to change transparency of the hover shutter? =
370
 
371
  Yes, it's possible to change transparency in gallery settings
386
 
387
  When you open gallery images manager you'll find there image edit mode where you can flip source image
388
 
 
 
 
 
389
  = How to change style of the gallery thumbnails border? =
390
 
391
  When you enable border in gallery settings you will see multiply options for customization of the border. One of the options it's border style. You can select one value from pre-defined list
392
 
393
+ = How to enable icons on gallery hover shutter? =
394
+
395
+ In gallery hover settings we implemented full set of configuration settings of the buttons. You can change icon, style size, colors for static and hovered buttons. You can select icon with build in wizard
396
+
397
+ = Which parameters I can change for the gallery thumbnails borders and shadows? =
398
+
399
+ You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
400
+
401
  = Is it possible to change color of the hovered image in gallery? =
402
 
403
  Yes, you can easily change color of the hovered image in gallery in backend. In gallery settings we build-in comfortable color selector which make you able to change color of the gallery interface elements.
410
 
411
  Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
412
 
413
+ = How to set description text below image in the lightbox? =
414
 
415
+ In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
416
 
417
  = How to enable lazy load in gallery options? =
418
 
422
 
423
  In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
424
 
425
+ = Is it possible to turn off border of the gallery thumbnails? =
426
+
427
+ Yes, in gallery options you can turn on/off border option
428
+
429
  = Is it possible to have different settings for hover and static interface elements? =
430
 
431
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
432
 
433
+ = Is it possible create gallery in Wordpress post with Gallery? =
434
+
435
+ Yes, you can insert gallery into post with shortcode tag
436
+
437
  = How many buttons with icons do you have in gallery? =
438
 
439
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
442
 
443
  When you open gallery images manager you'll find there image edit mode where you can crop source image
444
 
445
+ = Is it possible to create direct link on the front end to the gallery? =
446
+
447
+ Yes, you can use generated direct link inside particular gallery settings
448
+
449
  = How to change icon on gallery thumbnail button? =
450
 
451
  When you open gallery settings you can see there hover options section where we implemented settings for every hover button. Here you can select icons for buttons and style for this icon
454
 
455
  In our gallery implemented options which make you able to make gallery thumbnails looks in Polaroid style, with caption of the image below thumbnail
456
 
457
+ = How to define video for some gallery image? =
458
+
459
+ Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
460
+
461
+ = How to customize hover effect? =
462
+
463
+ In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
464
+
465
  = How to delete title, author, date above the gallery of the gallery post? =
466
 
467
  Actually settings of all this main elements of the gallery post is inherited from the the general Wordpress posts settings. So you can turn in off the same way as it's manage in general posts, not only gallery posts.
468
 
469
+ = How to change font size of the gallery image description text? =
470
+
471
+ In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change size of the text
472
+
473
  = How many thumbnails hover effects gallery has? =
474
 
475
  Gallery have 15 hover animation effects, which could be combined with additional custom options
476
 
477
+ = How to change font size of the gallery image caption? =
478
+
479
+ In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
480
+
481
  = Is it possible to change transparency of the gallery lightbox background ? =
482
 
483
  Yes, you can change gallery lightbox background transparency in gallery settings. Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block. When you open color selector for the gallery lightbox background you'll see there additional slider option for transparency value.
484
 
485
+ = What can I do if some gallery interface elements in backend do not work properly? =
486
+
487
+ If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
488
+
489
+ = How to change ordering of the gallery images? =
490
+
491
+ When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
492
+
493
+ = Do you have some conflict in gallery back end? =
494
+
495
+ If you have some conflict in gallery back end you can sort it with new compatibility option. You can switch between standard and alternative jquery library. This modes implemented to help you to avoid any conflicts with another libraries from wordpress themes or another plugin.
496
+
497
  = Which style parameters I can change for the hover button icon? =
498
 
499
  You can select border color, background color and color of the icon, size of the icon
500
 
501
+ = How to customize border of the gallery thumbnails? =
502
+
503
+ In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
504
+
505
+ = How to customize gallery hover effect shutter layout? =
506
+
507
+ In gallery hover settings you can enable template where you can fully customize layout of the shutter content using HTML tags, text and images. In template we have implemented some build in tags which going to help you to build in some gallery images elements into hover
508
+
509
+ = How to upload images to the gallery? =
510
+
511
+ When you create new gallery or open already existent gallery for edit on the right side of the edit gallery section you'll see gallery images manager button. When you open gallery images manager you'll be able there edit all gallery images. Upload, edit or delete. In gallery images manager you can use drag and drop gallery images upload tool.
512
+
513
  == Screenshots ==
514
 
515
  1. Gallery Demo 1
584
 
585
  == Changelog ==
586
 
587
+ = 2.0.0 =
588
+ * Added new algorithm of mobile devices Swipe support
589
+ * Implemented Android devices swipe support
590
+ * Implemented iOS devices swipe support
591
+
592
  = 1.9.16 =
593
  * Updated structure of the core files
594
  * Preparation for update to version 2
1031
 
1032
  == Upgrade Notice ==
1033
 
1034
+ = 2.0.0 =
1035
+ Added new algorithm of mobile devices Swipe support, implemented Android and iOS devices swipe support
1036
+
1037
  = 1.9.16 =
1038
  Updated structure of the core files, preparation for update to version 2
1039
 
robogallery.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
- * Version: 1.9.16
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
@@ -19,7 +19,7 @@
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
- define("ROBO_GALLERY_VERSION", '1.9.16');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25
 
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
+ * Version: 2.0.0
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
+ define("ROBO_GALLERY_VERSION", '2.0.0');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25