Version Description
- Fix for Facebook sharing images function
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- gallery/js/alt/jquery.collagePlus.min.js +1 -1
- gallery/js/jquery.collagePlus.min.js +1 -1
- includes/rbs_gallery_topblock.php +1 -1
- readme.txt +71 -64
- robogallery.php +3 -3
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(O+", ."+F).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(O).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(O).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(O).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(O).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(O),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(O+":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(O+":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(O);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=q.find(O+", ."+F),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){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.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<P.minBoxesPerFilter&&B().length>0?(M(P.minBoxesPerFilter-e),!0):!1}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=q.find("."+F),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){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(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(F).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+F);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+F);-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 _(){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 q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",F="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(F);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.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("."+F)[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==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).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(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.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(P.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(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.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},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":0},P.overlaySpeed,P.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},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.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},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.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:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+F+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.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="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}t(".mfp-title").html(i.attr("mfp-title")==a||P.hideTitle?"":i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=r;t(".mfp-img").attr("alt",s);var l="";P.facebook&&(l+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(l+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(l+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+d+"'></div>"),P.pinterest&&(l+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(l+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),l=l?"<div class='rbs-imges-social-container'>"+l+"</div>":"";var c=t(".mfp-title").html();t(".mfp-title").append(l),t(".mfp-title").append(e),t(".mfp-title").html(c+l+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&t("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}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.find("div").html()),i=encodeURIComponent(e.data("url"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+i+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());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),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),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,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},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(O+", ."+F).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(O).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(O).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(O).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(O).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(O),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(O+":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(O+":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(O);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=q.find(O+", ."+F),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){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.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<P.minBoxesPerFilter&&B().length>0?(M(P.minBoxesPerFilter-e),!0):!1}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=q.find("."+F),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){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(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(F).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+F);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+F);-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 _(){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 q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",F="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(F);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.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("."+F)[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==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).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(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.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(P.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(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.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},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":0},P.overlaySpeed,P.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},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.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},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.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:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+F+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.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="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}t(".mfp-title").html(i.attr("mfp-title")==a||P.hideTitle?"":i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=r;t(".mfp-img").attr("alt",s);var l="";P.facebook&&(l+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(l+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(l+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+d+"'></div>"),P.pinterest&&(l+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(l+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),l=l?"<div class='rbs-imges-social-container'>"+l+"</div>":"";var c=t(".mfp-title").html();t(".mfp-title").append(l),t(".mfp-title").append(e),t(".mfp-title").html(c+l+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&t("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}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.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());a="https://twitter.com/intent/tweet?url="+a+"&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),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),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,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},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(O+", ."+j).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(O).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;" alt="'+d+'" 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(O).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(O).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(O).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(O),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(O+":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(O+":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(O);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=q.find(O+", ."+j),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){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.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<P.minBoxesPerFilter&&B().length>0?(M(P.minBoxesPerFilter-e),!0):!1}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=q.find("."+j),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){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(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(j).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+j);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+j);-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 _(){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 q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",j="rbs-img-hidden",F=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==F?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(j);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.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("."+j)[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==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).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(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.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(P.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(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.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()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.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()[F]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[F]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[F]({scale:1},200)):(m.css({scale:1}),m[F]({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:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+j+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.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="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}t(".mfp-title").html(i.attr("mfp-title")==a||P.hideTitle?"":i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=r;t(".mfp-img").attr("alt",s);var l="";P.facebook&&(l+="<div class='rbs-imges-facebook fa fa-facebook-square' data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(l+="<div class='rbs-imges-twitter fa fa-twitter-square' data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(l+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-url='"+d+"'></div>"),P.pinterest&&(l+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(l+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),l=l?"<div class='rbs-imges-social-container'>"+l+"</div>":"";t(".mfp-title").html();t(".mfp-title").append(l),t(".mfp-title").append(e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&jQuery("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}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.find("div").html()),i=encodeURIComponent(e.data("url"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+i+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());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),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),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,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},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(O+", ."+j).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(O).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;" alt="'+d+'" 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(O).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(O).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(O).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(O),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(O+":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(O+":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(O);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=q.find(O+", ."+j),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){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.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<P.minBoxesPerFilter&&B().length>0?(M(P.minBoxesPerFilter-e),!0):!1}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return(""==e||e==a)&&(e="*"),e}function B(e){var t=q.find("."+j),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){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(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);e>=a+1&&(o.removeClass(j).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+j);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+j);-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 _(){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 q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",j="rbs-img-hidden",F=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==F?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(j);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.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("."+j)[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==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).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(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.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(P.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(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.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()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.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()[F]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[F]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[F]({scale:1},200)):(m.css({scale:1}),m[F]({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:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+j+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.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="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}t(".mfp-title").html(i.attr("mfp-title")==a||P.hideTitle?"":i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=r;t(".mfp-img").attr("alt",s);var l="";P.facebook&&(l+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(l+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+d+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(l+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+d+"'></div>"),P.pinterest&&(l+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(l+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+d+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),l=l?"<div class='rbs-imges-social-container'>"+l+"</div>":"";t(".mfp-title").html();t(".mfp-title").append(l),t(".mfp-title").append(e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&jQuery("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}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.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());a="https://twitter.com/intent/tweet?url="+a+"&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),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),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,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},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/rbs_gallery_topblock.php
CHANGED
@@ -26,7 +26,7 @@ if(!function_exists('rbs_gallery_topblock')){
|
|
26 |
|
27 |
if( defined('ROBO_GALLERY_SPECIAL') && ROBO_GALLERY_SPECIAL ){
|
28 |
|
29 |
-
if( ( time() - strtotime('2016-11-
|
30 |
if( ROBO_GALLERY_SPECIAL==1 ){
|
31 |
echo '<div class="rbsTopBlockFree rbs_getproversionfree_blank">
|
32 |
<div class="rbsTopSmall"><span class="dashicons dashicons-carrot"></span> '.__( 'Do You wish to get PRO version for FREE ?' , 'rbs_gallery' ).' </div>
|
26 |
|
27 |
if( defined('ROBO_GALLERY_SPECIAL') && ROBO_GALLERY_SPECIAL ){
|
28 |
|
29 |
+
if( ( time() - strtotime('2016-11-10') ) < 48*60*60 ){
|
30 |
if( ROBO_GALLERY_SPECIAL==1 ){
|
31 |
echo '<div class="rbsTopBlockFree rbs_getproversionfree_blank">
|
32 |
<div class="rbsTopSmall"><span class="dashicons dashicons-carrot"></span> '.__( 'Do You wish to get PRO version for FREE ?' , 'rbs_gallery' ).' </div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://robosoft.co/robogallery
|
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 2.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -44,72 +44,73 @@ Gallery modes: photo gallery, images gallery, video gallery, Polaroid gallery, g
|
|
44 |
|
45 |
= Gallery Key Features =
|
46 |
|
47 |
-
* Fully responsive and Mobile features
|
48 |
-
* Fade effects
|
49 |
-
* Batch images upload
|
50 |
-
* Auto-resizing for thumbnails and images
|
51 |
-
* Customizable 15 hover effects
|
52 |
-
* Implemented to avoid AJAX libs conflicts
|
53 |
-
* Polaroid
|
54 |
-
* Advanced Polaroid Styles
|
55 |
-
* Build in colors selector
|
56 |
-
* Social sharing
|
57 |
-
* Build in borders and shadows settings
|
58 |
-
* Font settings
|
59 |
-
* Different resolutions
|
60 |
-
* Implemented in native Wordpress style using native classes
|
61 |
-
* Multi Categories
|
62 |
-
* Classic gallery layout
|
63 |
-
* Advanced pagination function
|
64 |
-
* Work in IE, Firefox, Safari, Opera, Chrome
|
65 |
-
* Lazy loading option
|
66 |
-
* Advanced cache options
|
67 |
-
* Overlay effects
|
68 |
-
* Backend text settings preview
|
69 |
-
* Resizing crop function
|
70 |
-
* Optional mobile touch support
|
71 |
-
* Custom ordering of the images
|
72 |
-
* Ability to insert gallery to the Wordpress post, page, widget
|
73 |
-
* Gallery lightbox social buttons
|
74 |
-
* Gallery lightbox background color
|
75 |
-
* Gallery lightbox background transparency
|
76 |
-
* Gallery lightbox font color
|
77 |
-
* Gallery lightbox font transparency
|
78 |
-
* Advanced Compatibility
|
79 |
-
* Advanced Social Sharing
|
80 |
-
* Click Thumbnails
|
81 |
-
* Gallery alignment
|
82 |
-
* Gallery Padding
|
83 |
-
* Post
|
84 |
-
* Description Panel
|
85 |
-
* Swipe in Lightbox
|
86 |
-
* Advanced Link Button Design
|
87 |
-
|
88 |
-
*
|
89 |
-
* Gallery
|
90 |
-
*
|
91 |
-
*
|
92 |
-
*
|
93 |
-
*
|
94 |
-
*
|
95 |
-
*
|
|
|
96 |
|
97 |
= Gallery Pro Key Features =
|
98 |
|
99 |
-
* Tags for gallery images
|
100 |
-
* Grid layout
|
101 |
-
* Support Videos
|
102 |
-
* Smart Links
|
103 |
-
* Hover layout template
|
104 |
-
* Customizable Grid
|
105 |
-
* Customizable hover icons
|
106 |
-
* Ability to insert gallery to the Wordpress widget
|
107 |
-
* Clone gallery
|
108 |
-
* Custom Thumbnails Shadows
|
109 |
-
* Gallery Statistics
|
110 |
-
* Gallery Backup
|
111 |
-
* Multisite Support
|
112 |
-
* Drag and Drop
|
113 |
|
114 |
|
115 |
= Robo Gallery Advantages =
|
@@ -253,6 +254,9 @@ If any problem occurs, please contact us.
|
|
253 |
|
254 |
== Changelog ==
|
255 |
|
|
|
|
|
|
|
256 |
= 2.5.3 =
|
257 |
* Fixed Facebook sharing in the case of special symbols conflict
|
258 |
* Added VK social sharing option
|
@@ -944,6 +948,9 @@ If any problem occurs, please contact us.
|
|
944 |
|
945 |
== Upgrade Notice ==
|
946 |
|
|
|
|
|
|
|
947 |
= 2.5.3 =
|
948 |
Fixed Facebook sharing in the case of special symbols conflict
|
949 |
Added VK social sharing option
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 2.5.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
44 |
|
45 |
= Gallery Key Features =
|
46 |
|
47 |
+
* **Fully responsive gallery and Mobile features** - advanced responsive gallery. Gallery implemented with advanced settings for different devices screen size.
|
48 |
+
* **Fade effects** - one of the gallery hover animation it's classic fade effect.
|
49 |
+
* **Batch images upload** - gallery have advanced media manager which allow to upload batch of the images by one click. Just drag and drop set of the gallery images and it's upload automatically to the server.
|
50 |
+
* **Auto-resizing for thumbnails and images** - gallery media manager allow you make additional customization of the gallery images, like: rotation, flip, crop, manual resize.
|
51 |
+
* **Customizable 15 hover effects** - all gallery hover effects working in cooperation with gallery interface configuration options. You can easily change style and colors of the hover animation elements.
|
52 |
+
* **Implemented to avoid AJAX libs conflicts** - all gallery code implemented in native Wordpress style as result our gallery don't have any conflicts and work really stable.
|
53 |
+
* **Polaroid gallery** - with our gallery you can create Polaroid gallery just with few clicks.
|
54 |
+
* **Advanced Polaroid Styles** - gallery images Polaroid gallery styles implemented with advanced functionality. Implemented left, right and centre Gallery images titles alignment. Polaroid gallery description panel of the gallery images background color selector. Polaroid gallery description panel text source.
|
55 |
+
* **Build in colors selector** - in gallery you can easily change color of any gallery.
|
56 |
+
* **Social sharing** - gallery lightbox support social sharing in twitter, facebook, google plus and pinterest.
|
57 |
+
* **Build in borders and shadows settings** - gallery borders and shadows have advanced options for configuration design and style of this gallery interface elements.
|
58 |
+
* **Font settings** - gallery have build in advanced text style editor options. With this options you can fully cusyomize title, caption, description of the every gallery image
|
59 |
+
* **Different resolutions** - gallery have implemented advanced size control options where you can define layout or fixed size for the gallery elements on different screen resolutions
|
60 |
+
* **Implemented in native Wordpress style using native classes** - gallery fully native for Wordpress implemented without any hacks and tricks
|
61 |
+
* **Multi Categories** - gallery implemented with multi categories gallery support. You can create your own galleries tree, depend of your needs
|
62 |
+
* **Classic gallery layout** - layout of the gallery could have classic style or grid layout, every gallery on page could have own styles and settings
|
63 |
+
* **Advanced pagination function** - pagination function of the gallery implemented in google load more style
|
64 |
+
* **Work in IE, Firefox, Safari, Opera, Chrome** - gallery work properly in all latest versions of the popular browsers
|
65 |
+
* **Lazy loading option** - in gallery implemented advanced lazy loading options, for the case when you have big sets of the gallery images you can define amount of the galleries images for the first load and for the next steps of the load more option
|
66 |
+
* **Advanced cache options** - in gallery implemented advanced images caching options
|
67 |
+
* **Overlay effects** - all hover effects of the gallery thumbnails are highly customizable and have full set of options
|
68 |
+
* **Backend text settings preview** - all gallery images titles, captions, descriptions are highly customizable also we have life preview of the changes in gallery backend
|
69 |
+
* **Resizing crop function** - in gallery media managed you'll find great set of very useful features for example gallery images crop, and manual resizing
|
70 |
+
* **Optional mobile touch support** - our gallery support mobile devices and you can customize responsive gallery layout settings for different screen sizes
|
71 |
+
* **Custom ordering of the images** - ordering for all gallery images of the gallery could be easily changed manually in media manager or you can find order by options in general gallery settings
|
72 |
+
* **Ability to insert gallery to the Wordpress post, page, widget** - every gallery could be insert in to post, page or widget with build in shortcode tag or using wizard button - shortcode generator in post or page editor
|
73 |
+
* **Gallery lightbox social buttons** - in gallery settings you can turn on/off social buttons
|
74 |
+
* **Gallery lightbox background color** - in gallery lightbox settings you can change color of the background with comfortable color selector
|
75 |
+
* **Gallery lightbox background transparency** - in gallery lightbox settings you can change transparency of the background with comfortable color selector
|
76 |
+
* **Gallery lightbox font color** - in gallery lightbox settings you can change color of the font with comfortable color selector
|
77 |
+
* **Gallery lightbox font transparency** - in gallery lightbox settings you can change transparency of the font with comfortable color selector
|
78 |
+
* **Advanced Compatibility** - in our gallery we implement advanced compatibility options to avoid conflict with libraries of another plugins and theme. You can switch between modes to find properly value for your gallery and your case.
|
79 |
+
* **Advanced Social Sharing** - advanced social sharing functionality in lightbox. Implemented deep linking functionality for the gallery images social sharing services Facebook, Twitter, Pinterest, Google+, VK
|
80 |
+
* **Click Thumbnails** - advanced click functionality. You can use click on buttons or on the gallery thumbnails to enlarge gallery image or open gallery image link. With new functionality you can combine absolutely different features of the gallery clicking functionality.
|
81 |
+
* **Gallery Alignment** - alignment of the photo gallery in post or page depend of your needs. You don't need to use HTML tags or some CSS tricks this function gonna hel pyou to align your images gallery the way you need. Possible to select one from implemented alignment modes: left, right, center for images gallery alignment inside post or page content.
|
82 |
+
* **Gallery Padding** - new padding options. Define custom values in pixels for padding gallery block in post or page content. Is it possible to define padding from left, right, top and bottom side.
|
83 |
+
* **Post Generator** - new function for the automatically post creation with gallery tag inside it. Advanced gallery post manager implemented with additional functions for customization and management all your gallery posts in one place.
|
84 |
+
* **Description Panel** - new gallery image description panel in lightbox, few different themes. Gallery settings make you able to change gallery panel theme styles. In gallery description panel you can define few content source. Gallery image title, gallery image caption or gallery image description.
|
85 |
+
* **Swipe in Lightbox** - gallery lightbox support swipe effect on multiply mobile devices. Swipe properly work in lightbox for all gallery images. Tested for Android and iOS.
|
86 |
+
* **Advanced Link Button Design** - gallery front end interface have link button. This button provide linking functionality on every gallery image thumbnail.
|
87 |
+
This interface gallery button have wide range of the front end interface customization options. You can easily change this gallery button color, border and icon.
|
88 |
+
* **Hover Description Template** - every gallery image contain description field. In additional parameters of the gallery image hover you can define some HTML or tags or build-in tags for customization of the gallery image description.
|
89 |
+
* **Gallery Plugin Compatibility Settings** - in gallery settings you can customize general gallery plugin settings to avoid conflicts with another plugins or wordpress theme.
|
90 |
+
* **Gallery Admin Interface Modes** - in gallery settings you can customize gallery plugin interface settings to avoid conflicts with another plugins.
|
91 |
+
* **Video Gallery Links** - in gallery media manager every image have separate option for video gallery link. Video Gallery links could be specified to to the youtube or vimeo.
|
92 |
+
* **Images Custom Ratio** - in gallery settings you can define custom ratio for every gallery. Every gallery could have personal settings for this option.
|
93 |
+
* **Thumbnails Fade Effect** - in gallery implemented Fade effect for the hover of the gallery thumbnails. With such effect gallery hover animation become more attractive and eye catching.
|
94 |
+
* **Advanced Load more function** - in gallery implemented very attractive navigation mode. Auto pre loading images like endless list of the gallery images. This gallery load more function have alot of customization options to make it work the way you need.
|
95 |
+
* **SEO code optimization** - in gallery implemented few front end code output modes. One simplified mode with all core front end gallery code elements another mode with additional not visible elements. This option have additional modes. This SEO output modes giv you default output mode, thumbnail, thumnails+links mode.
|
96 |
+
* **Gallery Template** - in our gallery we have advanced templating engine for galler images description. Every hover text of gallery image could be edit and customized with buildin templating options.
|
97 |
|
98 |
= Gallery Pro Key Features =
|
99 |
|
100 |
+
* **Tags for gallery images** - every gallery image contain description field. In additional parameters of the gallery image hover you can define some HTML or tags or build-in tags for customization of the gallery image description.
|
101 |
+
* **Grid layout** - in gallery implemented not only classic gallery layout, but also grid layout for the modern style gallery with different size of the gallery thumbnails.
|
102 |
+
* **Support Videos** - every gallery image have option where possible to define video link for every particular gallery image
|
103 |
+
* **Smart Links** - in our gallery implemented smart gallery images links and video links parsing algorithm. Implemented auto detection links with turned off link navigation buttons
|
104 |
+
* **Hover layout template** - gallery hover effects have set of advanced options. For example you can customize layout of the gallery hover effect with build in tags
|
105 |
+
* **Customizable Grid** - every gallery image have additional options for customization of the layout of the gallery, as result you can build fully custom gallery grid, depend of your needs. You can decide which size of the gallery matrix you need on your website
|
106 |
+
* **Customizable hover icons** - all icons of the gallery buttons fully customizable and every icon could be easily changed with build in icons wizard
|
107 |
+
* **Ability to insert gallery to the Wordpress widget** - every gallery could be insert in to post, page or widget with build in shortcode tag or using wizard button - shortcode generator in post or page editor
|
108 |
+
* **Clone gallery** - if you have hundreds of galleries on the website this feature is really useful for you! Clone settings of another gallery to apply it to another galleries. So you can copy styles of the source gallery to as much galleries as you need just by one click.
|
109 |
+
* **Custom Thumbnails Shadows** - shadow it's very stylish element of the thumbnail images on the front end. You can make your gallery looks absolutely different with different styled shadow.
|
110 |
+
* **Gallery Statistics** - every gallery have very useful and simple statistics functionality. You can easily check every gallery views. In gallery settings gallery statistic values could be reset.
|
111 |
+
* **Gallery Backup** - in our gallery implemented multifunctional galleries backup function. With this modes you can easily transfer gallery settings and galleries images from one server to another. Gallery backup functionality have mode to make export only gallery settings or full gallery backup with gallery images and gallery settings.
|
112 |
+
* **Multisite Support** - in gallery implemented multisite support. You can install gallery in admin dashboard and enable plugin for all child blogs.
|
113 |
+
* **Drag and Drop Categories Gallery Manager** - in gallery implemented advanced categories gallery manager with drag and drop functionality. Categories gallery manager with simple and intuitive interface.
|
114 |
|
115 |
|
116 |
= Robo Gallery Advantages =
|
254 |
|
255 |
== Changelog ==
|
256 |
|
257 |
+
= 2.5.4 =
|
258 |
+
* Fix for Facebook sharing images function
|
259 |
+
|
260 |
= 2.5.3 =
|
261 |
* Fixed Facebook sharing in the case of special symbols conflict
|
262 |
* Added VK social sharing option
|
948 |
|
949 |
== Upgrade Notice ==
|
950 |
|
951 |
+
= 2.5.4 =
|
952 |
+
Fix for Facebook sharing images function
|
953 |
+
|
954 |
= 2.5.3 =
|
955 |
Fixed Facebook sharing in the case of special symbols conflict
|
956 |
Added VK social sharing option
|
robogallery.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Robo Gallery
|
|
4 |
Plugin URI: http://robosoft.co/gallery
|
5 |
Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
|
6 |
Author: RoboSoft
|
7 |
-
Version: 2.5.
|
8 |
Author URI: http://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
10 |
*/
|
@@ -13,11 +13,11 @@ if(!defined('WPINC'))die;
|
|
13 |
if(!defined("ABSPATH"))exit;
|
14 |
|
15 |
define("ROBO_GALLERY", 1);
|
16 |
-
define("ROBO_GALLERY_VERSION", '2.5.
|
17 |
|
18 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
19 |
|
20 |
-
define("ROBO_GALLERY_SPECIAL",
|
21 |
|
22 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
23 |
function rbs_gallery_load_textdomain() {
|
4 |
Plugin URI: http://robosoft.co/gallery
|
5 |
Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
|
6 |
Author: RoboSoft
|
7 |
+
Version: 2.5.4
|
8 |
Author URI: http://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
10 |
*/
|
13 |
if(!defined("ABSPATH"))exit;
|
14 |
|
15 |
define("ROBO_GALLERY", 1);
|
16 |
+
define("ROBO_GALLERY_VERSION", '2.5.4');
|
17 |
|
18 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
19 |
|
20 |
+
define("ROBO_GALLERY_SPECIAL", 1);
|
21 |
|
22 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
23 |
function rbs_gallery_load_textdomain() {
|