FooGallery – Image Gallery WordPress Plugin - Version 1.4.27

Version Description

  • Fix : Justified gallery issues in certain browsers / devices
  • Fix : Portfolio gallery issues in certain browsers / devices
  • Fix : Use of correct rel attribute for better lightbox compatibility and W3 validation
  • Fix : Removed local translations that were incomplete and outdated
  • Update : FooGallery client side 1.0.24
  • Update : language files
Download this release

Release Info

Developer bradvin
Plugin Icon 128x128 FooGallery – Image Gallery WordPress Plugin
Version 1.4.27
Comparing to
See all releases

Code changes from version 1.4.25 to 1.4.27

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bradvin, steveush, fooplugins, freemius
3
Donate link: http://fooplugins.com
4
Tags: gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified image gallery, video gallery, photography, photographer, retina
5
Requires at least: 3.9
6
- Tested up to: 4.9.4
7
Stable tag: trunk
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -150,6 +150,19 @@ Update now to get all the latest features, bug fixes and improvements!
150
151
== Changelog ==
152
153
= 1.4.25 =
154
155
* New : Retina support for albums!
3
Donate link: http://fooplugins.com
4
Tags: gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified image gallery, video gallery, photography, photographer, retina
5
Requires at least: 3.9
6
+ Tested up to: 4.9.5
7
Stable tag: trunk
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
150
151
== Changelog ==
152
153
+ = 1.4.27 =
154
+
155
+ * Fix : Justified gallery issues in certain browsers / devices
156
+ * Fix : Portfolio gallery issues in certain browsers / devices
157
+ * Fix : Use of correct rel attribute for better lightbox compatibility and W3 validation
158
+ * Fix : Removed local translations that were incomplete and outdated
159
+ * Update : FooGallery client side 1.0.24
160
+ * Update : language files
161
+
162
+ = 1.4.26 =
163
+
164
+ * Fix : Filtering introduced an array initialization construct not working for older versions of php
165
+
166
= 1.4.25 =
167
168
* New : Retina support for albums!
extensions/albums/album-stack.php CHANGED
@@ -14,7 +14,7 @@ $pile_angles = foogallery_album_template_setting( 'pile_angles', '2' );
14
if ( !function_exists( 'foogallery_album_all_in_one_stack_render_gallery_attachment' ) ) {
15
function foogallery_album_all_in_one_stack_render_gallery_attachment( $gallery, $attachment, $args, $lightbox ) {
16
echo '<li data-pile="' . esc_attr( $gallery->name ) . '">';
17
- $args['link_attributes']['rel'] = 'gallery[' . $gallery->ID . ']';
18
$args['link_attributes']['class'] = apply_filters( 'foogallery_album_stack_link_class_name', $lightbox );
19
echo $attachment->html( $args, false, false );
20
if ( $attachment->caption ) {
14
if ( !function_exists( 'foogallery_album_all_in_one_stack_render_gallery_attachment' ) ) {
15
function foogallery_album_all_in_one_stack_render_gallery_attachment( $gallery, $attachment, $args, $lightbox ) {
16
echo '<li data-pile="' . esc_attr( $gallery->name ) . '">';
17
+ $args['link_attributes']['rel'] = 'lightbox[' . $gallery->ID . ']';
18
$args['link_attributes']['class'] = apply_filters( 'foogallery_album_stack_link_class_name', $lightbox );
19
echo $attachment->html( $args, false, false );
20
if ( $attachment->caption ) {
extensions/default-templates/shared/js/foogallery.js CHANGED
@@ -6985,7 +6985,8 @@
6985
position: 'absolute',
6986
top: 0,
6987
left: -9999,
6988
- visibility: 'hidden'
6989
}).appendTo('body');
6990
self._items = self.$el.find(self.options.itemSelector).removeAttr("style").removeClass("fg-positioned").map(function(i, el){
6991
var $item = $(el), width = 0, height = 0, ratio;
@@ -7019,7 +7020,7 @@
7019
getContainerWidth: function(){
7020
var self = this, visible = self.$el.is(':visible');
7021
if (!visible){
7022
- return self.$el.parents(':visible:first').width();
7023
}
7024
return self.$el.width();
7025
},
@@ -7231,7 +7232,7 @@
7231
self.justified.layout( true );
7232
},
7233
onReady: function(event, self){
7234
- self.justified.layout();
7235
},
7236
onDestroy: function(event, self){
7237
self.justified.destroy();
@@ -7281,7 +7282,8 @@
7281
position: 'absolute',
7282
top: 0,
7283
left: -9999,
7284
- visibility: 'hidden'
7285
}).appendTo('body');
7286
self._items = self.$el.find(".fg-item").removeAttr("style").removeClass("fg-positioned").map(function(i, el){
7287
var $item = $(el),
@@ -7319,7 +7321,7 @@
7319
getContainerWidth: function(){
7320
var self = this, visible = self.$el.is(':visible');
7321
if (!visible){
7322
- return self.$el.parents(':visible:first').width();
7323
}
7324
return self.$el.width();
7325
},
@@ -7485,7 +7487,7 @@
7485
self.portfolio.layout( true );
7486
},
7487
onReady: function(event, self){
7488
- self.portfolio.layout();
7489
},
7490
onDestroy: function(event, self){
7491
self.portfolio.destroy();
@@ -7810,7 +7812,7 @@
7810
self.$hidden.append(
7811
$("<a/>", {
7812
href: item.href,
7813
- rel: "foobox[" + self.id + "]"
7814
}).attr(item.attr.anchor)
7815
);
7816
}
@@ -7848,11 +7850,11 @@
7848
7849
// this automatically initializes all templates on page load
7850
$(function () {
7851
- $('[id^="foogallery-"]:not(.fg-ready)').foogallery(_.autoDefaults);
7852
});
7853
7854
_utils.ready(function () {
7855
- $('[id^="foogallery-"].fg-ready').foogallery(_.autoDefaults);
7856
});
7857
7858
})(
6985
position: 'absolute',
6986
top: 0,
6987
left: -9999,
6988
+ visibility: 'hidden',
6989
+ maxWidth: self.getContainerWidth()
6990
}).appendTo('body');
6991
self._items = self.$el.find(self.options.itemSelector).removeAttr("style").removeClass("fg-positioned").map(function(i, el){
6992
var $item = $(el), width = 0, height = 0, ratio;
7020
getContainerWidth: function(){
7021
var self = this, visible = self.$el.is(':visible');
7022
if (!visible){
7023
+ return self.$el.parents(':visible:first').innerWidth();
7024
}
7025
return self.$el.width();
7026
},
7232
self.justified.layout( true );
7233
},
7234
onReady: function(event, self){
7235
+ self.justified.layout( true );
7236
},
7237
onDestroy: function(event, self){
7238
self.justified.destroy();
7282
position: 'absolute',
7283
top: 0,
7284
left: -9999,
7285
+ visibility: 'hidden',
7286
+ maxWidth: self.getContainerWidth()
7287
}).appendTo('body');
7288
self._items = self.$el.find(".fg-item").removeAttr("style").removeClass("fg-positioned").map(function(i, el){
7289
var $item = $(el),
7321
getContainerWidth: function(){
7322
var self = this, visible = self.$el.is(':visible');
7323
if (!visible){
7324
+ return self.$el.parents(':visible:first').innerWidth();
7325
}
7326
return self.$el.width();
7327
},
7487
self.portfolio.layout( true );
7488
},
7489
onReady: function(event, self){
7490
+ self.portfolio.layout( true );
7491
},
7492
onDestroy: function(event, self){
7493
self.portfolio.destroy();
7812
self.$hidden.append(
7813
$("<a/>", {
7814
href: item.href,
7815
+ rel: "lightbox[" + self.id + "]"
7816
}).attr(item.attr.anchor)
7817
);
7818
}
7850
7851
// this automatically initializes all templates on page load
7852
$(function () {
7853
+ $('[id^="foogallery-gallery-"]:not(.fg-ready)').foogallery(_.autoDefaults);
7854
});
7855
7856
_utils.ready(function () {
7857
+ $('[id^="foogallery-gallery-"].fg-ready').foogallery(_.autoDefaults);
7858
});
7859
7860
})(
extensions/default-templates/shared/js/foogallery.min.js CHANGED
@@ -1,10 +1,10 @@
1
/*
2
* FooGallery - The Most Intuitive and Extensible Gallery Creation and Management Tool Ever Created for WordPress
3
- * @version 1.0.23
4
* @link
5
* @copyright Steven Usher & Brad Vincent 2015
6
* @license Released under the GPLv3 license.
7
*/
8
9
!function(a,b){b.$=a}(jQuery,window.FooGallery=window.FooGallery||{}),function(a){if(!a)return void console.warn("jQuery must be included in the page prior to the FooGallery.utils library.");var b={$:a,version:"0.0.8"};b.versionCompare=function(a,b){function c(a){for(var b=a.split("."),c=0,d=b.length;c<d;c++)b[c]=parseInt(b[c]),isNaN(b[c])&&(b[c]=0);return b}if(!/[\d.]/.test(a)||!/[\d.]/.test(b))return NaN;for(var d=c(a),e=c(b);d.length<e.length;)d.push(0);for(;e.length<d.length;)e.push(0);for(var f=0;f<d.length;++f){if(e.length==f)return 1;if(d[f]!=e[f])return d[f]>e[f]?1:-1}return d.length!=e.length?-1:0},!function(){try{return!!window.FooGallery.utils}catch(a){return!1}}()?window.FooGallery.utils=b:b.versionCompare(b.version,window.FooGallery.utils.version)>0?(console.warn("An older version of FooGallery.utils ("+window.FooGallery.utils.version+") already exists in the page, version "+b.version+" will override it."),window.FooGallery.utils=b):console.warn("A newer version of FooGallery.utils ("+window.FooGallery.utils.version+") already exists in the page, version "+b.version+" will not register itself.")}(jQuery),function(a,b){"0.0.8"===b.version&&(b.is={},b.is.array=function(a){return"[object Array]"===Object.prototype.toString.call(a)},b.is.boolean=function(a){return"[object Boolean]"===Object.prototype.toString.call(a)},b.is.element=function(a){return"object"==typeof HTMLElement?a instanceof HTMLElement:!!a&&"object"==typeof a&&null!==a&&1===a.nodeType&&"string"==typeof a.nodeName},b.is.empty=function(a){if(b.is.undef(a)||null===a)return!0;if(b.is.number(a)&&0==a)return!0;if(b.is.boolean(a)&&!1===a)return!0;if(b.is.string(a)&&0===a.length)return!0;if(b.is.array(a)&&0===a.length)return!0;if(b.is.jq(a)&&0===a.length)return!0;if(b.is.hash(a)){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0}return!1},b.is.error=function(a){return"[object Error]"===Object.prototype.toString.call(a)},b.is.fn=function(a){return a===window.alert||"[object Function]"===Object.prototype.toString.call(a)},b.is.hash=function(a){return b.is.object(a)&&a.constructor===Object&&!a.nodeType&&!a.setInterval},b.is.jq=function(c){return!b.is.undef(a)&&c instanceof a},b.is.number=function(a){return"[object Number]"===Object.prototype.toString.call(a)&&!isNaN(a)},b.is.object=function(a){return"[object Object]"===Object.prototype.toString.call(a)&&!b.is.undef(a)&&null!==a},b.is.promise=function(a){return b.is.object(a)&&b.is.fn(a.then)&&b.is.fn(a.promise)},b.is.size=function(a){return!!(b.is.string(a)&&!b.is.empty(a)||b.is.number(a))&&/^(auto|none|(?:[\d\.]*)+?(?:%|px|mm|q|cm|in|pt|pc|em|ex|ch|rem|vh|vw|vmin|vmax)?)#x2F;.test(a)},b.is.string=function(a){return"[object String]"===Object.prototype.toString.call(a)},b.is.undef=function(a){return void 0===a})}(FooGallery.utils.$,FooGallery.utils),function(a,b,c){if("0.0.8"===b.version){b.fn={};var d=Function.prototype.toString;b.fn.CONTAINS_SUPER=/xyz/.test(d.call(function(){xyz}))?/\b_super\b/:/.*/,b.fn.addOrOverride=function(a,e,f){if(c.object(a)&&c.string(e)&&!c.empty(e)&&c.fn(f)){var g=a[e],h=c.fn(g)&&b.fn.CONTAINS_SUPER.test(d.call(f));a[e]=h?function(a,b){return function(){var c=this._super;this._super=a;var d=b.apply(this,arguments);return this._super=c,d}}(g,f):f}},b.fn.apply=function(a,b){function d(){return a.apply(this,b)}return b=c.array(b)?b:[],d.prototype=a.prototype,new d},b.fn.arg2arr=function(a){return Array.prototype.slice.call(a)},b.fn.check=function(d,e,f,g){function h(a){return function(){return a.apply(d,arguments)}}return f=c.fn(f)?f:a.noop,d=c.object(d)?d:window,e=c.string(e)?b.fn.fetch(e,g):e,h(c.fn(e)?e:f)},b.fn.fetch=function(b,d){return!c.string(b)||c.empty(b)?null:(d=c.object(d)?d:window,a.each(b.split("."),function(a,b){if(!d[b])return!1;d=d[b]}),c.fn(d)?d:null)},b.fn.enqueue=function(d,e,f,g){function h(a,b){try{return n.push(a),b.apply(a,i)}catch(a){return j.reject(a,n),j}}var i=b.fn.arg2arr(arguments),j=a.Deferred(),k=a.Deferred(),l=k.promise(),m=[],n=[],o=!0;return d=i.shift(),e=i.shift(),a.each(d,function(a,d){c.fn(d[e])&&(l=l.then(function(){if(!o){var a=b.fn.arg2arr(arguments);m.push(a)}return o=!1,h(d,d[e])}))}),l.then(function(){if(!o){var a=b.fn.arg2arr(arguments);m.push(a)}o=!1,j.resolve(m)}),l.fail(function(){var a=b.fn.arg2arr(arguments);a.push(n),j.reject.apply(j,a)}),k.resolve(),j.promise()},b.fn.when=function(b){if(!c.array(b)||c.empty(b))return a.when();for(var d=a.Deferred(),e=[],f=b.length,g=0;g<b.length;g++)b[g].then(function(a){e.push(a)}).always(function(){--f||d.resolve(e)});return d.promise()},b.fn.rejectWith=function(c,d){var e=a.Deferred(),f=b.fn.arg2arr(arguments);return e.reject.apply(e,f).promise()},b.fn.resolveWith=function(c,d){var e=a.Deferred(),f=b.fn.arg2arr(arguments);return e.resolve.apply(e,f).promise()},b.fn.resolved=a.Deferred().resolve().promise(),b.fn.rejected=a.Deferred().reject().promise()}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b){if("0.0.8"===a.version){a.url={};var c=document.createElement("a");a.url.parts=function(a){return c.href=a,{hash:c.hash,host:c.host,hostname:c.hostname,href:c.href,origin:c.origin,pathname:c.pathname,port:c.port,protocol:c.protocol,search:c.search}},a.url.full=function(a){return!b.string(a)||b.empty(a)?null:(c.href=a,c.href)},a.url.param=function(a,c,d){if(!b.string(a)||!b.string(c)||b.empty(c))return a;var e,f,g,h;return b.undef(d)?(e=new RegExp("[?|&]"+c+"=([^&;]+?)(&|#|;|$)"),f=e.exec(a)||[,""],g=f[1].replace(/\+/g,"%20"),b.string(g)&&!b.empty(g)?decodeURIComponent(g):null):(""===d||null===d?(e=new RegExp("^([^#]*?)(([^#]*)&)?"+c+"(=[^&#]*)?(&|#|$)"),g=a.replace(e,"$1$3$5").replace(/^([^#]*)((\?)&|\?(#|$))/,"$1$3$4")):(e=new RegExp("([?&])"+c+"[^&]*"),h=c+"="+encodeURIComponent(d),(g=a.replace(e,"$1"+h))!==a||e.test(g)||(g+=(-1!==g.indexOf("?")?"&":"?")+h)),g)}}}(FooGallery.utils,FooGallery.utils.is),function(a,b,c){"0.0.8"===a.version&&(a.str={},a.str.camel=function(a){return b.empty(a)?a:a.toUpperCase()===a?a.toLowerCase():a.replace(/^([A-Z])|[-\s_]+(\w)/g,function(a,c,d){return b.string(d)?d.toUpperCase():c.toLowerCase()})},a.str.contains=function(a,c,d){return!(!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c))&&(c.length<=a.length&&-1!==(d?a.toUpperCase().indexOf(c.toUpperCase()):a.indexOf(c)))},a.str.containsWord=function(a,c,d){if(!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c)||a.length<c.length)return!1;for(var e=a.split(/\W/),f=0,g=e.length;f<g;f++)if(d?e[f].toUpperCase()==c.toUpperCase():e[f]==c)return!0;return!1},a.str.endsWith=function(a,c){return!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c)?a==c:a.slice(a.length-c.length)==c},a.str.escapeRegExp=function(a){return b.empty(a)?a:a.replace(/[.*+?^${}()|[\]\\]/g,"\\amp;")},a.str.fnv1a=function(a){if(!b.string(a)||b.empty(a))return null;var c,d,e=2166136261;for(c=0,d=a.length;c<d;c++)e^=a.charCodeAt(c),e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24);return e>>>0},a.str.from=function(c,d){return!b.string(c)||b.empty(c)||!b.string(d)||b.empty(d)?null:a.str.contains(c,d)?c.substring(c.indexOf(d)+d.length):null},a.str.join=function(d,e,f){if(!b.string(d)||!b.string(e))return null;var g=c.arg2arr(arguments);d=g.shift();var h,i,j=g.shift();for(h=0,i=g.length;h<i;h++)e=g[h],b.empty(e)||(a.str.endsWith(j,d)&&(j=j.slice(0,j.length-d.length)),a.str.startsWith(e,d)&&(e=e.slice(d.length)),j+=d+e);return j},a.str.startsWith=function(a,c){return!b.empty(a)&&!b.empty(c)&&a.slice(0,c.length)==c},a.str.until=function(c,d){return b.empty(c)||b.empty(d)?c:a.str.contains(c,d)?c.substring(0,c.indexOf(d)):c},a.str.format=function(a,d,e){var f=c.arg2arr(arguments);if(a=f.shift(),b.empty(a)||b.empty(f))return a;1===f.length&&(b.array(f[0])||b.object(f[0]))&&(f=f[0]);for(var g in f)a=a.replace(new RegExp("\\{"+g+"\\}","gi"),f[g]);return a})}(FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c,d,e){if("0.0.8"===b.version){b.obj={};var f=function(){};b.obj.create=function(a){if(!c.object(a))throw TypeError("Argument must be an object");f.prototype=a;var b=new f;return f.prototype=null,b},b.obj.extend=function(e,f,g){e=c.object(e)?e:{};var h=d.arg2arr(arguments);return h.shift(),a.each(h,function(a,c){b.obj.merge(e,c)}),e},b.obj.merge=function(a,d){a=c.hash(a)?a:{},d=c.hash(d)?d:{};for(var e in d)d.hasOwnProperty(e)&&(c.hash(d[e])?(a[e]=c.hash(a[e])?a[e]:{},b.obj.merge(a[e],d[e])):c.array(d[e])?a[e]=d[e].slice():a[e]=d[e]);return a},b.obj.mergeValid=function(d,e,f,g){if(!c.hash(f)||!c.hash(e))return d;e=c.hash(e)?e:{},g=c.hash(g)?g:{};var h,i,j;for(h in e)e.hasOwnProperty(h)&&c.fn(e[h])&&(i=c.array(g[h])?g[h]:c.string(g[h])?[g[h]]:[h],a.each(i,function(a,g){if(j=b.obj.prop(f,g),!c.undef(j))return e[h](j)?(b.obj.prop(d,h,j),!1):void 0}));return d},b.obj.prop=function(b,d,f){if(c.object(b)&&!c.empty(d)){var g,h;if(c.undef(f))return e.contains(d,".")?(g=d.split("."),h=g.length-1,a.each(g,function(a,d){if(a===h)f=b[d];else{if(!c.hash(b[d]))return!1;b=b[d]}})):c.undef(b[d])||(f=b[d]),f;e.contains(d,".")?(g=d.split("."),h=g.length-1,a.each(g,function(a,d){a===h?b[d]=f:b=c.hash(b[d])?b[d]:b[d]={}})):c.undef(b[d])||(b[d]=f)}}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(a,b,c){if("0.0.8"===b.version){b.ready=function(a){function c(){try{a.call(window,b.$)}catch(a){console.error(a)}}(Function("/*@cc_on return true@*/")()?"complete"===document.readyState:"loading"!==document.readyState)?c():document.addEventListener("DOMContentLoaded",c,!1)};var d=0;b.uniqueId=function(a,b){var e=a.attr("id");return c.empty(e)&&(b=c.string(b)&&!c.empty(b)?b:"uid-",e=b+ ++d,a.attr("id",e).data("__uniqueId__",!0)),e},b.removeUniqueId=function(a){a.data("__uniqueId__")&&a.removeAttr("id").removeData("__uniqueId__")}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c){if("0.0.8"===b.version){b.transition={};var d=document.createElement("div");b.transition.supported=function(a){var b=a.style;return c.string(b.transition)||c.string(b.WebkitTransition)||c.string(b.MozTransition)||c.string(b.msTransition)||c.string(b.OTransition)}(d),b.transition.end=function(a){var b=a.style;return c.string(b.transition)?"transitionend":c.string(b.WebkitTransition)?"webkitTransitionEnd":c.string(b.MozTransition)?"transitionend":c.string(b.msTransition)?"msTransitionEnd":c.string(b.OTransition)?"oTransitionEnd":null}(d),b.transition.duration=function(a,b){if(b=c.number(b)?b:0,!c.jq(a))return b;var d=a.css("transition-duration");if(/^([\d\.]*)+?(ms|s)#x2F;i.test(d)){var e=d.match(/^([\d\.]*)+?(ms|s)#x2F;i),f=parseFloat(e[1]);return"s"===e[2].toLowerCase()&&(f*=1e3),f}return b},b.transition.start=function(d,e,f,g){var h=a.Deferred();if(d=d.first(),b.transition.supported){var i=d.data("transition_safety");c.hash(i)&&c.number(i.timer)&&(clearTimeout(i.timer),d.removeData("transition_safety").off(b.transition.end+".utils"),i.deferred.reject()),g=c.number(g)?g:b.transition.duration(d)+50,i={deferred:h,timer:setTimeout(function(){d.removeData("transition_safety").off(b.transition.end+".utils"),h.resolve()},g)},d.data("transition_safety",i),d.on(b.transition.end+".utils",function(a){d.is(a.target)&&(clearTimeout(i.timer),d.removeData("transition_safety").off(b.transition.end+".utils"),h.resolve())})}return setTimeout(function(){c.fn(e)?e.apply(d.get(0),[d]):d.toggleClass(e,f),b.transition.supported||h.resolve()},20),h.promise()}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d,e){"0.0.8"===b.version&&(b.Class=function(){},b.Class.extend=function(a){function f(){if(!c.fn(this.construct))throw new SyntaxError('FooGallery.utils.Class objects must be constructed with the "new" keyword.');this.construct.apply(this,arguments)}a=c.hash(a)?a:{};var g=d.create(this.prototype);for(var h in a)a.hasOwnProperty(h)&&e.addOrOverride(g,h,a[h]);return g.construct=c.fn(g.construct)?g.construct:function(){},f.prototype=g,f.prototype.constructor=c.fn(g.__ctor__)?g.__ctor__:f,f.extend=b.Class.extend,f.override=b.Class.override,f},b.Class.override=function(a,b){e.addOrOverride(this.prototype,a,b)})}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj,FooGallery.utils.fn),function(a,b,c){if("0.0.8"===b.version){b.Bounds=b.Class.extend({construct:function(){var a=this;a.top=0,a.right=0,a.bottom=0,a.left=0,a.width=0,a.height=0},inflate:function(a){var b=this;return c.number(a)&&(b.top-=a,b.right+=a,b.bottom+=a,b.left-=a,b.width+=2*a,b.height+=2*a),b},intersects:function(a){var b=this;return b.left<=a.right&&a.left<=b.right&&b.top<=a.bottom&&a.top<=b.bottom}});var d;b.getViewportBounds=function(c){d||(d=a(window));var e=new b.Bounds;return e.top=d.scrollTop(),e.left=d.scrollLeft(),e.width=d.width(),e.height=d.height(),e.right=e.left+e.width,e.bottom=e.top+e.height,e.inflate(c),e},b.getElementBounds=function(d){c.jq(d)||(d=a(d));var e=new b.Bounds;if(0!==d.length){var f=d.offset();e.top=f.top,e.left=f.left,e.width=d.width(),e.height=d.height()}return e.right=e.left+e.width,e.bottom=e.top+e.height,e}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){"0.0.8"===b.version&&(b.Factory=b.Class.extend({construct:function(){this.registered={}},contains:function(a){return!c.undef(this.registered[a])},load:function(b,e,f){var g,h,i=this,j=d.arg2arr(arguments),k=[],l=[];b=j.shift()||{};for(g in i.registered)if(i.registered.hasOwnProperty(g)){var m=i.registered[g];b.hasOwnProperty(g)&&(h=b[g],c.string(h)&&(h=d.fetch(b[g])),c.fn(h)&&(m={name:g,klass:h,priority:i.registered[g].priority})),k.push(m)}for(g in b)b.hasOwnProperty(g)&&!i.registered.hasOwnProperty(g)&&(h=b[g],c.string(h)&&(h=d.fetch(b[g])),c.fn(h)&&k.push({name:g,klass:h,priority:0}));return k.sort(function(a,b){return b.priority-a.priority}),a.each(k,function(a,b){c.fn(b.klass)&&l.push(d.apply(b.klass,j))}),l},make:function(a,b,e){var f,g=this,h=d.arg2arr(arguments);return a=h.shift(),f=g.registered[a],c.hash(f)&&c.fn(f.klass)?d.apply(f.klass,h):null},names:function(b){b=!!c.boolean(b)&&b;var d,e=[];if(b){var f=[];for(d in this.registered)this.registered.hasOwnProperty(d)&&f.push(this.registered[d]);f.sort(function(a,b){return b.priority-a.priority}),a.each(f,function(a,b){e.push(b.name)})}else for(d in this.registered)this.registered.hasOwnProperty(d)&&e.push(d);return e},register:function(a,b,d){if(!c.string(a)||c.empty(a)||!c.fn(b))return!1;d=c.number(d)?d:0;var e=this.registered[a];return this.registered[a]={name:a,klass:b,priority:c.undef(e)?d:e.priority},!0}}))}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c){if("0.0.8"===a.version){var d=!1;try{d=!!window.localStorage}catch(a){d=!1}a.Debugger=a.Class.extend({construct:function(a){this.key=a,this.enabled=!!d&&!!localStorage.getItem(this.key)},enable:function(){d&&(this.enabled=!0,localStorage.setItem(this.key,this.enabled))},disable:function(){d&&(this.enabled=!1,localStorage.removeItem(this.key))},log:function(a,c){this.enabled&&console.log.apply(console,b.arg2arr(arguments))},logf:function(a,d,e){if(this.enabled){var f=b.arg2arr(arguments);a=f.shift(),d=f.shift(),f.unshift(c.format(a,d)),this.log.apply(this,f)}}})}}(FooGallery.utils,FooGallery.utils.fn,FooGallery.utils.str),function(a,b,c){"0.0.8"===b.version&&(b.Throttle=b.Class.extend({construct:function(a){this.id=null,this.active=!1,this.idle=c.number(a)?a:0},limit:function(a){if(c.fn(a)){this.clear();var b=this;this.active=!0,this.id=setTimeout(function(){b.active=!1,b.id=null,a()},this.idle)}},clear:function(){c.number(this.id)&&(clearTimeout(this.id),this.active=!1,this.id=null)}}))}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d,e){b.debug=new c.Debugger("__FooGallery__"),c.selectify=function(b){if(d.empty(b))return null;if(d.hash(b)){var e,f={};for(var g in b)b.hasOwnProperty(g)&&(e=c.selectify(b[g]))&&(f[g]=e);return f}return d.string(b)||d.array(b)?(d.string(b)&&(b=[b]),a.map(b,function(a){return d.string(a)?"."+a.split(/\s/g).join("."):null}).join(",")):null},b.emptyImage="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b.dataTemplate="__FooGallery__",b.dataItem="__FooGalleryItem__",b.init=function(a,c){return b.template.make(a,c).initialize()},b.initAll=function(c){return e.when(a(".foogallery").map(function(a,d){return b.init(c,d)}).get())},b.parseSrc=function(b,c,e,f,g,h){if(!d.string(b))return null;if(!d.string(f))return b;var i=a.map(f.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(a){return{url:/^\s*(\S*)/.exec(a)[1],w:parseFloat((/\S\s+(\d+)w/.exec(a)||[0,1/0])[1]),h:parseFloat((/\S\s+(\d+)h/.exec(a)||[0,1/0])[1]),x:parseFloat((/\S\s+([\d.]+)x/.exec(a)||[0,1])[1])}});if(!i.length)return b;i.unshift({url:b,w:i[0].w!==1/0&&i[0].h===1/0?c:1/0,h:i[0].h!==1/0&&i[0].w===1/0?e:1/0,x:1});var j,k=window.devicePixelRatio||1,l={w:g*k,h:h*k,x:k};for(j in l)l.hasOwnProperty(j)&&(i=a.grep(i,function(a,b){return function(c){return c[a]>=l[a]||c[a]===b}}(j,Math.max.apply(null,a.map(i,function(a){return a[j]})))));for(j in l)l.hasOwnProperty(j)&&(i=a.grep(i,function(a,b){return function(c){return c[a]===b}}(j,Math.min.apply(null,a.map(i,function(a){return a[j]})))));return i[0].url},a.fn.foogallery=function(c,e){return this.each(function(f,g){if(d.string(c)){var h=a.data(g,b.dataTemplate);if(h instanceof b.Template)switch(c){case"layout":return void h.layout();case"destroy":return void h.destroy()}}else b.template.make(c,g).initialize().then(function(a){d.fn(e)&&e(a)})})}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c,d,e,f){b.TemplateFactory=c.Factory.extend({construct:function(){this.registered={}},register:function(a,b,c,e,f,g){var h=this,i=h._super(a,b,g);if(i){var j=h.registered;j[a].opt=d.hash(c)?c:{},j[a].cls=d.hash(e)?e:{},j[a].il8n=d.hash(f)?f:{}}return i},make:function(b,c){c=d.jq(c)?c:a(c),b=f.extend({},b,c.data("foogallery"));var e=this,g=e.type(b,c);return e.contains(g)?(b=e.options(g,b),e._super(g,b,c)):null},type:function(b,e){e=d.jq(e)?e:a(e);var f=this,g=d.hash(b)&&d.hash(b)&&d.string(b.type)&&f.contains(b.type)?b.type:"core";if("core"===g&&e.length>0)for(var h=f.registered,i=f.names(!0),j=0,k=i.length;j<k;j++)if(h.hasOwnProperty(i[j])){var l=i[j],m=h[l].cls;if(d.string(m.container)){var n=c.selectify(m.container);if(e.is(n)){g=i[j];break}}}return g},configure:function(a,b,c,d){var e=this;if(e.contains(a)){var g=e.registered;f.extend(g[a].opt,b),f.extend(g[a].cls,c),f.extend(g[a].il8n,d)}},options:function(a,c){c=f.extend({type:a},c);var e=this,g=e.registered,h=g.core.opt,i=g.core.cls,j=g.core.il8n;return d.hash(c.cls)||(c.cls={}),d.hash(c.il8n)||(c.il8n={}),d.undef(b.filtering)||(c=b.filtering.merge(c)),d.undef(b.paging)||(c=b.paging.merge(c)),"core"!==a&&e.contains(a)?(c=f.extend({},h,g[a].opt,c),c.cls=f.extend({},i,g[a].cls,c.cls),c.il8n=f.extend({},j,g[a].il8n,c.il8n)):(c=f.extend({},h,c),c.cls=f.extend({},i,c.cls),c.il8n=f.extend({},j,c.il8n)),c}}),b.template=new b.TemplateFactory}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e){a.PagingFactory=b.Factory.extend({construct:function(){this.registered={}},register:function(a,b,d,e,f,g,h){var i=this,j=i._super(a,b,h);if(j){var k=i.registered;k[a].ctrl=c.fn(d)?d:null,k[a].opt=c.hash(e)?e:{},k[a].cls=c.hash(f)?f:{},k[a].il8n=c.hash(g)?g:{}}return j},type:function(a){var b,d=this;return c.hash(a)&&c.hash(b=a.paging)&&c.string(b.type)&&d.contains(b.type)?b.type:null},merge:function(a){a=e.extend({},a);var b=this,d=b.type(a),f=b.registered,g=f.default.opt,h=f.default.cls,i=f.default.il8n,j=c.hash(a.paging)?a.paging:{},k=c.hash(a.cls)&&c.hash(a.cls.paging)?e.extend({},a.cls.paging):{},l=c.hash(a.il8n)&&c.hash(a.il8n.paging)?e.extend({},a.il8n.paging):{};return c.hash(a.cls)||(a.cls={}),c.hash(a.il8n)||(a.il8n={}),"default"!==d&&b.contains(d)?(a.paging=e.extend({},g,f[d].opt,j,{type:d}),a.cls=e.extend(a.cls,{paging:h},{paging:f[d].cls},{paging:k}),a.il8n=e.extend(a.il8n,{paging:i},{paging:f[d].il8n},{paging:l})):(a.paging=e.extend({},g,j,{type:d}),a.cls=e.extend(a.cls,{paging:h},{paging:k}),a.il8n=e.extend(a.il8n,{paging:i},{paging:l})),a},configure:function(a,b,c,d){var f=this;if(f.contains(a)){var g=f.registered;e.extend(g[a].opt,b),e.extend(g[a].cls,c),e.extend(g[a].il8n,d)}},hasCtrl:function(a){var b=this,d=b.registered[a];return c.hash(d)&&c.fn(d.ctrl)},makeCtrl:function(a,b,d,e){var f=this,g=f.registered[a];return c.hash(g)&&c.fn(g.ctrl)?new g.ctrl(b,d,e):null}}),a.paging=new a.PagingFactory}(FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e,f){var g=0;b.Template=c.Class.extend({construct:function(e,f){var h=this;h.namespace=".foogallery-"+ ++g,h.$el=d.jq(f)?f:a(f),h.opt=e,h.template=e.template,h.id=h.$el.prop("id")||e.id,h.cls=e.cls,h.il8n=e.il8n,h.sel=c.selectify(h.cls),h.items=b.components.make("items",h),h.pages=d.undef(b.paging)?null:b.paging.make(e.paging.type,h),h.filter=d.undef(b.filtering)?null:b.filtering.make(e.filtering.type,h),h.state=b.components.make("state",h),h._initialize=null,h.initializing=!1,h.initialized=!1,h.destroying=!1,h.destroyed=!1,h._undo={classes:"",style:"",create:!1,children:!1}},initialize:function(f){var g=this;return d.promise(g._initialize)?g._initialize:(f=d.jq(f)?f:a(f),g._initialize=a.Deferred(function(h){if(g.initializing=!0,0===f.length&&0===g.$el.parent().length)return void h.reject("A parent element is required.");0===g.$el.length&&(g.$el=g.create(),g._undo.create=!0),f.length>0&&g.$el.appendTo(f);var i,j=a.Deferred(),k=j.promise();g.$el.length>0&&(i=g.$el.data(b.dataTemplate))instanceof b.Template?k=k.then(function(){return i.destroy().then(function(){g.$el.data(b.dataTemplate,g)})}):g.$el.data(b.dataTemplate,g),k.then(function(){if(g.destroying)return e.rejectWith("destroy in progress");d.empty(g.opt.on)||g.$el.on(g.opt.on),g._undo.classes=g.$el.attr("class"),g._undo.style=g.$el.attr("style"),g.$el.is(g.sel.container)||g.$el.addClass(g.cls.container);var a=c.selectify(g.opt.classes);return null==a||g.$el.is(a)||g.$el.addClass(g.opt.classes),0==g.$el.children().length&&(g.$el.append(g.createChildren()),g._undo.children=!0),g.raise("pre-init").isDefaultPrevented()?e.rejectWith("pre-init default prevented"):void 0}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):g.opt.delay<=0?e.resolved:a.Deferred(function(a){g._delay=setTimeout(function(){g._delay=null,a.resolve()},g.opt.delay)}).promise()}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):g.raise("init").isDefaultPrevented()?e.rejectWith("init default prevented"):g.items.fetch()}).then(function(){if(g.destroying)return e.rejectWith("destroy in progress");if(g.raise("post-init").isDefaultPrevented())return e.rejectWith("post-init default prevented");var b=g.state.parse();g.state.set(d.empty(b)?g.state.initial():b),a(window).on("scroll"+g.namespace,{self:g},g.throttle(g.onWindowScroll,g.opt.throttle)).on("popstate"+g.namespace,{self:g},g.onWindowPopState)}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):(g.raise("first-load"),g.loadAvailable())}).then(function(){if(g.destroying)return e.rejectWith("destroy in progress");g.initializing=!1,g.initialized=!0,g._check(200),g._check(500),g._check(1e3),g._check(2e3),g._check(5e3),g.raise("ready"),h.resolve(g)}).fail(function(a){h.reject(a)}),j.resolve()}).promise().fail(function(a){console.log("initialize failed",g,a),g.destroy()}))},create:function(){var b=this;return a("<div/>",{id:b.id,class:b.cls.container}).addClass(b.opt.classes)},createChildren:function(){return a()},destroy:function(){var b=this;return b.destroyed?e.resolved:(b.destroying=!0,a.Deferred(function(a){b.initializing&&d.promise(b._initialize)?b._initialize.always(function(){b.destroying=!1,b._destroy(),a.resolve()}):(b.destroying=!1,b._destroy(),a.resolve())}).promise())},_destroy:function(){var c=this;c.destroyed||(c.raise("destroy"),a(window).off(c.namespace),c.state.destroy(),c.filter&&c.filter.destroy(),c.pages&&c.pages.destroy(),c.items.destroy(),d.empty(c.opt.on)||c.$el.off(c.opt.on),c.raise("destroyed"),c.$el.removeData(b.dataTemplate),d.empty(c._undo.classes)?c.$el.removeAttr("class"):c.$el.attr("class",c._undo.classes),d.empty(c._undo.style)?c.$el.removeAttr("style"):c.$el.attr("style",c._undo.style),c._undo.children&&c.$el.empty(),c._undo.create&&c.$el.remove(),c.$el=c.state=c.items=c.pages=null,c.destroyed=!0,c.initializing=!1,c.initialized=!1)},getAvailable:function(){return this.pages?this.pages.available():this.items.available()},loadAvailable:function(){return this.items.load(this.getAvailable())},_check:function(a){a=d.number(a)?a:0;var b=this;setTimeout(function(){!b.initialized||b.destroying&&b.destroyed||b.loadAvailable()},a)},raise:function(c,e){if(!d.string(c)||d.empty(c))return null;e=d.array(e)?e:[];var g=this,h=c.split(".")[0],i=f.camel("on-"+h),j=a.Event(h+".foogallery");return e.unshift(g),g.$el.trigger(j,e),b.debug.logf("{id}|{name}:",{id:g.id,name:h},e),d.fn(g[i])&&(e.unshift(j),g[i].apply(g.$el.get(0),e)),j},layout:function(){var a=this;null!==a._initialize&&a.raise("layout")},throttle:function(a,b){var c=Date.now();return function(){if(c+b-Date.now()<0){var d=e.arg2arr(arguments);a.apply(this,d),c=Date.now()}}},onWindowPopState:function(a){var b=a.data.self,c=a.originalEvent.state;d.empty(c)||c.id!==b.id||(b.state.set(c),b.loadAvailable())},onWindowScroll:function(a){a.data.self.loadAvailable()}}),b.template.register("core",b.Template,{id:null,type:"core",classes:"",on:{},lazy:!0,viewport:200,items:[],delay:100,throttle:50,timeout:6e4,srcset:"data-srcset",src:"data-src",template:{}},{container:"foogallery"},{},-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(a,b){a.Component=b.Class.extend({construct:function(a){this.tmpl=a},destroy:function(){this.tmpl=null}}),a.components=new b.Factory}(FooGallery,FooGallery.utils),function(a,b,c,d){b.State=b.Component.extend({construct:function(a){var b=this;b._super(a),b.apiEnabled=!!window.history&&!!history.replaceState,b.opt=b.tmpl.opt.state,b.enabled=b.opt.enabled,b.pushOrReplace=b.isPushOrReplace(b.opt.pushOrReplace)?b.opt.pushOrReplace:"replace";var c=d.escapeRegExp(b.tmpl.id),e=d.escapeRegExp(b.opt.values),f=d.escapeRegExp(b.opt.pair);b.regex={exists:new RegExp("^#"+c+"\\"+e+".+?"),values:new RegExp("(\\w+)"+f+"([^"+e+"]+)","g")}},destroy:function(){var a=this;a.clear(),a.opt=a.regex={},a._super()},isPushOrReplace:function(b){return-1!==a.inArray(b,["push","replace"])},exists:function(){return this.regex.exists.test(location.hash)&&this.regex.values.test(location.hash)},parse:function(){var b=this,d={};if(b.exists())if(b.enabled){d.id=b.tmpl.id;var e=location.hash.match(b.regex.values);a.each(e,function(e,f){var g=f.split(b.opt.pair);2===g.length&&(d[g[0]]=-1===g[1].indexOf(b.opt.array)?decodeURIComponent(g[1]):a.map(g[1].split(b.opt.array),function(a){return decodeURIComponent(a)}),c.string(d[g[0]])&&!isNaN(d[g[0]])&&(d[g[0]]=parseInt(d[g[0]])))})}else b.apiEnabled?history.replaceState(null,"",location.pathname+location.search):location.hash="#";return d},hashify:function(b){var d=this;if(c.hash(b)){var e=[];return a.each(b,function(b,f){c.empty(f)||"id"===b||(f=c.array(f)?a.map(f,function(a){return encodeURIComponent(a)}).join("+"):encodeURIComponent(f),e.push(b+d.opt.pair+f))}),e.length>0&&e.unshift("#"+d.tmpl.id),e.join(d.opt.values)}return""},replace:function(a){var b=this;if(b.enabled&&b.apiEnabled){a.id=b.tmpl.id;var d=b.hashify(a),e=c.empty(d);history.replaceState(e?null:a,"",e?location.pathname+location.search:d)}},push:function(a){var b=this;if(b.enabled&&b.apiEnabled){a.id=b.tmpl.id;var d=b.hashify(a),e=c.empty(d);history.pushState(e?null:a,"",e?location.pathname+location.search:d)}},update:function(a,b){var c=this;c.enabled&&c.apiEnabled&&(b=c.isPushOrReplace(b)?b:c.pushOrReplace,c[b](a))},clear:function(){this.exists()&&this.replace({})},initial:function(){var a=this,b=a.tmpl,d={};return b.filter&&!c.empty(b.filter.current)&&(d.f=b.filter.current),b.pages&&b.pages.current>1&&(d.p=b.pages.current),d},get:function(a){var d=this,e=d.tmpl,f={};return a instanceof b.Item&&(f.i=a.id),e.filter&&!c.empty(e.filter.current)&&(f.f=e.filter.current),e.pages&&e.pages.isValid(e.pages.current)&&(f.p=e.pages.current),f},set:function(a){var b=this,d=b.tmpl;if(c.hash(a)){d.items.reset();var e=d.items.get(a.i);if(d.filter){d.filter.rebuild();var f=c.empty(a.f)?[]:a.f;d.filter.set(f,!1)}if(d.pages){d.pages.rebuild();var g=d.pages.number(a.p);e&&!d.pages.contains(g,e)&&(g=d.pages.find(e),g=0!==g?g:1),d.pages.set(g,!c.empty(a),!1),e&&d.pages.contains(g,e)&&e.scrollTo()}else d.items.detach(d.items.all()),d.items.create(d.items.available(),!0),e&&e.scrollTo();c.empty(a.i)||(a.i=null,b.replace(a))}}}),b.template.configure("core",{state:{enabled:!1,pushOrReplace:"replace",values:"/",pair:":",array:"+"}}),b.components.register("state",b.State)}(FooGallery.$,FooGallery,FooGallery.utils.is,FooGallery.utils.str),function(a,b,c,d,e,f){b.Item=b.Component.extend({construct:function(a,b){var c=this;c._super(a),c.cls=a.cls.item,c.il8n=a.il8n.item,c.sel=a.sel.item,c.opt=f.extend({},a.opt.item,b),c.isAttached=!1,c.isCreated=!1,c.isLoading=!1,c.isLoaded=!1,c.isError=!1,c.isParsed=!1,c.$el=null,c.$inner=null,c.$anchor=null,c.$image=null,c.$caption=null,c.type=c.opt.type,c.id=c.opt.id,c.href=c.opt.href,c.src=c.opt.src,c.srcset=c.opt.srcset,c.width=c.opt.width,c.height=c.opt.height,c.title=c.opt.title,c.alt=c.opt.alt,c.caption=d.empty(c.opt.caption)?c.title:c.opt.caption,c.description=d.empty(c.opt.description)?c.alt:c.opt.description,c.attr=c.opt.attr,c.tags=c.opt.tags,c.maxWidth=c.opt.maxWidth,c.maxCaptionLength=c.opt.maxCaptionLength,c.maxDescriptionLength=c.opt.maxDescriptionLength,c.showCaptionTitle=c.opt.showCaptionTitle,c.showCaptionDescription=c.opt.showCaptionDescription,c._thumbUrl=null,c._placeholder=null,c._load=null,c._undo={classes:"",style:"",loader:!1,placeholder:!1}},destroy:function(){var a=this;return a.tmpl.raise("destroy-item").isDefaultPrevented()||(a.doDestroyItem(),a._super()),null===a.tmpl},doDestroyItem:function(){var a=this;a.isParsed?(a.append(),d.empty(a._undo.classes)?a.$el.removeAttr("class"):a.$el.attr("class",a._undo.classes),d.empty(a._undo.style)?a.$el.removeAttr("style"):a.$el.attr("style",a._undo.style),a._undo.loader&&a.$el.find(a.sel.loader).remove(),a._undo.placeholder&&a.$image.prop("src")==a._placeholder&&a.$image.removeAttr("src")):a.isCreated&&(a.detach(),a.$el.remove())},parse:function(b){var c=this,d=a(b);return!c.tmpl.raise("parse-item",[c,d]).isDefaultPrevented()&&(c.isCreated=d.is(c.sel.elem))&&(c.isParsed=c.doParseItem(d),c.fix()),c.isParsed&&c.tmpl.raise("parsed-item",[c]),c.isParsed},doParseItem:function(c){var e=this,f=e.tmpl.opt,g=e.cls,h=e.sel;return e._undo.classes=c.attr("class")||"",e._undo.style=c.attr("style")||"",e.$el=c.data(b.dataItem,e),e.$inner=e.$el.find(h.inner),e.$anchor=e.$el.find(h.anchor).on("click.foogallery",{self:e},e.onAnchorClick),e.$image=e.$anchor.find(h.image),e.$caption=e.$el.find(h.caption.elem).on("click.foogallery",{self:e},e.onCaptionClick),e.isAttached=e.$el.parent().length>0,e.isLoading=e.$el.is(h.loading),e.isLoaded=e.$el.is(h.loaded),e.isError=e.$el.is(h.error),e.id=e.$anchor.data("id")||e.id,e.tags=e.$anchor.data("tags")||e.tags,e.href=e.$anchor.attr("href")||e.href,e.src=e.$image.attr(f.src)||e.src,e.srcset=e.$image.attr(f.srcset)||e.srcset,e.width=parseInt(e.$image.attr("width"))||e.width,e.height=parseInt(e.$image.attr("height"))||e.height,e.title=e.$image.attr("title")||e.title,e.alt=e.$image.attr("alt")||e.alt,e.caption=e.$anchor.data("title")||e.$anchor.data("captionTitle")||e.caption||e.title,e.description=e.$anchor.data("description")||e.$anchor.data("captionDesc")||e.description||e.alt,d.empty(e.caption)&&(e.caption=a.trim(e.$caption.find(h.caption.title).html())),
10
- d.empty(e.description)&&(e.description=a.trim(e.$caption.find(h.caption.description).html())),d.number(e.maxCaptionLength)&&e.maxCaptionLength>0&&!d.empty(e.caption)&&d.string(e.caption)&&e.caption.length>e.maxCaptionLength&&e.$caption.find(h.caption.title).html(e.caption.substr(0,e.maxCaptionLength)+"&hellip;"),d.number(e.maxDescriptionLength)&&e.maxDescriptionLength>0&&!d.empty(e.description)&&d.string(e.description)&&e.description.length>e.maxDescriptionLength&&e.$caption.find(h.caption.description).html(e.description.substr(0,e.maxDescriptionLength)+"&hellip;"),0===e.$el.find(h.loader).length&&(e.$el.append(a("<div/>",{class:g.loader})),e._undo.loader=!0),d.empty(e.$image.prop("src"))&&(e._placeholder=e.tmpl.items.placeholder(e.width,e.height),e.$image.prop("src",e._placeholder),e._undo.placeholder=!0),!e.isCreated||!e.isAttached||e.isLoading||e.isLoaded||e.isError||e.$el.addClass(g.idle),!0},create:function(){var a=this;if(!a.isCreated&&d.string(a.href)&&d.string(a.src)&&d.number(a.width)&&d.number(a.height)){a.tmpl.raise("create-item",[a]).isDefaultPrevented()||(a.isCreated=a.doCreateItem()),a.isCreated&&a.tmpl.raise("created-item",[a])}return a.isCreated},doCreateItem:function(){var c=this,e=c.tmpl.opt,f=c.cls,g=c.attr;g.elem.class=f.elem+" "+f.idle,g.inner.class=f.inner,g.anchor.class=f.anchor,g.anchor.href=c.href,g.anchor["data-id"]=c.id,g.anchor["data-title"]=c.caption,g.anchor["data-description"]=c.description,d.empty(c.tags)||(g.anchor["data-tags"]=JSON.stringify(c.tags)),g.image.class=f.image,g.image.src=c.tmpl.items.placeholder(c.width,c.height),g.image[e.src]=c.src,g.image[e.srcset]=c.srcset,g.image.width=c.width,g.image.height=c.height,g.image.title=c.title,g.image.alt=c.alt,c.$el=a("<div/>").attr(g.elem).data(b.dataItem,c),c.$inner=a("<figure/>").attr(g.inner).appendTo(c.$el),c.$anchor=a("<a/>").attr(g.anchor).appendTo(c.$inner).on("click.foogallery",{self:c},c.onAnchorClick),c.$image=a("<img/>").attr(g.image).appendTo(c.$anchor),f=c.cls.caption,g=c.attr.caption,g.elem.class=f.elem,c.$caption=a("<figcaption/>").attr(g.elem).on("click.foogallery",{self:c},c.onCaptionClick);var h=!d.empty(c.caption),i=!d.empty(c.description);if(h||i){g.inner.class=f.inner,g.title.class=f.title,g.description.class=f.description;var j=a("<div/>").attr(g.inner).appendTo(c.$caption);if(h){var k;k=d.number(c.maxCaptionLength)&&c.maxCaptionLength>0&&d.string(c.caption)&&c.caption.length>c.maxCaptionLength?a("<div/>").attr(g.title).html(c.caption.substr(0,c.maxCaptionLength)+"&hellip;"):a("<div/>").attr(g.title).html(c.caption),j.append(k)}if(i){var l;l=d.number(c.maxDescriptionLength)&&c.maxDescriptionLength>0&&d.string(c.description)&&c.description.length>c.maxDescriptionLength?a("<div/>").attr(g.description).html(c.description.substr(0,c.maxDescriptionLength)+"&hellip;"):a("<div/>").attr(g.description).html(c.description),j.append(l)}}return c.$caption.appendTo(c.$inner),0===c.$el.find(c.sel.loader).length&&c.$el.append(a("<div/>",{class:c.cls.loader})),!0},append:function(){var a=this;if(a.isCreated&&!a.isAttached){a.tmpl.raise("append-item",[a]).isDefaultPrevented()||(a.tmpl.$el.append(a.$el),a.fix(),a.isAttached=!0),a.isAttached&&a.tmpl.raise("appended-item",[a])}return a.isAttached},detach:function(){var a=this;if(a.isCreated&&a.isAttached){a.tmpl.raise("detach-item",[a]).isDefaultPrevented()||(a.$el.detach(),a.unfix(),a.isAttached=!1),a.isAttached||a.tmpl.raise("detached-item",[a])}return!a.isAttached},load:function(){var b=this;if(d.promise(b._load))return b._load;if(!b.isCreated||!b.isAttached)return e.rejectWith("not created or attached");if(b.tmpl.raise("load-item",[b]).isDefaultPrevented())return e.rejectWith("default prevented");var c=b.cls,f=b.$image.get(0),g=f.src;return b.isLoading=!0,b.$el.removeClass(c.idle).removeClass(c.loaded).removeClass(c.error).addClass(c.loading),b._load=a.Deferred(function(a){d.undef(window.InstallTrigger)||(f.src=""),f.onload=function(){f.onload=f.onerror=null,b.isLoading=!1,b.isLoaded=!0,b.$el.removeClass(c.loading).addClass(c.loaded),b.unfix(),b.tmpl.raise("loaded-item",[b]),a.resolve(b)},f.onerror=function(){f.onload=f.onerror=null,b.isLoading=!1,b.isError=!0,b.$el.removeClass(c.loading).addClass(c.error),d.string(g)&&b.$image.prop("src",g),b.tmpl.raise("error-item",[b]),a.reject(b)},f.src=b.getThumbUrl()}).promise()},fix:function(){var a=this;if(!a.tmpl.raise("fix-item",[a]).isDefaultPrevented()&&a.isCreated&&!a.isLoading&&!a.isLoaded&&!a.isError){var b=a.width,c=a.height;if(!isNaN(b)&&!isNaN(c)){var e=d.fn(a.maxWidth)?a.maxWidth(a):a.$image.width();e<=0&&(e=b);var f=e/b,g=c*f;a.$image.css({width:e,height:g})}}return a},unfix:function(){var a=this;return!a.tmpl.raise("unfix-item",[a]).isDefaultPrevented()&&a.isCreated&&a.$image.css({width:"",height:""}),a},getThumbUrl:function(a){a=!!d.boolean(a)&&a;var c=this;return!a&&d.string(c._thumbUrl)?c._thumbUrl:c._thumbUrl=b.parseSrc(c.src,c.width,c.height,c.srcset,c.$anchor.innerWidth(),c.$anchor.innerHeight())},scrollTo:function(a){var b=this;if(b.isAttached){var d=b.bounds(),e=c.getViewportBounds();switch(a){case"top":d.left+=d.width/2-e.width/2,d.top-=e.height/5;break;default:d.left+=d.width/2-e.width/2,d.top+=d.height/2-e.height/2}window.scrollTo(d.left,d.top)}return b},bounds:function(){return this.isAttached?c.getElementBounds(this.$el):null},intersects:function(a){return!!this.isAttached&&this.bounds().intersects(a)},onAnchorClick:function(a){var b=a.data.self,c=b.tmpl.state.get(b);b.tmpl.state.update(c)},onCaptionClick:function(b){var c=b.data.self;a(b.target).is(c.sel.caption.all)&&c.$anchor.length>0&&c.$anchor.get(0).click()}}),b.template.configure("core",{item:{type:"item",id:"",href:"",src:"",srcset:"",width:0,height:0,title:"",alt:"",caption:"",description:"",tags:[],maxWidth:null,maxCaptionLength:0,maxDescriptionLength:0,showCaptionTitle:!0,showCaptionDescription:!0,attr:{elem:{},inner:{},anchor:{},image:{},caption:{elem:{},inner:{},title:{},description:{}}}}},{item:{elem:"fg-item",inner:"fg-item-inner",anchor:"fg-thumb",image:"fg-image",loader:"fg-loader",idle:"fg-idle",loading:"fg-loading",loaded:"fg-loaded",error:"fg-error",caption:{elem:"fg-caption",inner:"fg-caption-inner",title:"fg-caption-title",description:"fg-caption-desc"}}},{item:{}}),b.components.register("item",b.Item)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e,f){b.Items=b.Component.extend({construct:function(a){var b=this;b._super(a),b.idMap={},b._fetched=null,b._arr=[],b._available=[],b._canvas=document.createElement("canvas");var d=b.tmpl.cls.item.caption;b.tmpl.sel.item.caption.all=c.selectify([d.elem,d.inner,d.title,d.description])},destroy:function(){var b=this,c=b.all(),d=[];c.length>0&&(b.tmpl.raise("destroy-items",[c]),d=a.map(c,function(a){return a.destroy()?a:null}),d.length>0&&b.tmpl.raise("destroyed-items",[d])),b.idMap={},b._canvas=b._fetched=null,b._arr=[],b._available=[],b._super()},fetch:function(b){var c=this;if(!b&&d.promise(c._fetched))return c._fetched;var e=c.tmpl,f=e.sel,g=e.opt.items,h=a.Deferred(),i=c.make(e.$el.find(f.item.elem));return d.empty(g)?(i.push.apply(i,c.make(window[e.id+"-items"])),h.resolve(i)):d.array(g)?(i.push.apply(i,c.make(g)),h.resolve(i)):d.string(g)?a.get(g).then(function(a){i.push.apply(i,c.make(a)),h.resolve(i)},function(a,b,c){console.log("FooGallery: GET items error.",g,a,b,c),h.resolve(i)}):h.resolve(i),h.then(function(a){c.setAll(a)}),c._fetched=h.promise()},all:function(){return this._arr.slice()},count:function(a){return a?this.all().length:this.available().length},available:function(){return this._available.slice()},get:function(a){return!d.empty(a)&&this.idMap[a]?this.idMap[a]:null},setAll:function(a){this._arr=d.array(a)?a:[],this.idMap=this.createIdMap(a),this._available=this.all()},setAvailable:function(a){this._available=d.array(a)?a:[]},reset:function(){this.setAvailable(this.all())},placeholder:function(a,c){return this._canvas&&this._canvas.toDataURL&&d.number(a)&&d.number(c)?(this._canvas.width=a,this._canvas.height=c,this._canvas.toDataURL()):b.emptyImage},loadable:function(b){var e,f=this,g=f.tmpl.opt;return g.lazy&&(e=c.getViewportBounds(g.viewport)),d.array(b)?a.map(b,function(a){return a.isCreated&&a.isAttached&&!a.isLoading&&!a.isLoaded&&!a.isError&&(!g.lazy||g.lazy&&a.intersects(e))?a:null}):[]},creatable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&!a.isCreated?a:null}):[]},appendable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&a.isCreated&&!a.isAttached?a:null}):[]},detachable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&a.isCreated&&a.isAttached?a:null}):[]},jquerify:function(b){return a(a.map(b,function(a){return a.$el.get()}))},make:function(c){var e=this,g=[];if(d.jq(c)||d.array(c)){var h=[],i=a.makeArray(c);if(0===i.length)return g;e.tmpl.raise("make-items",[i]).isDefaultPrevented()||(g=a.map(i,function(a){var c=e.type(a),g=f.extend(d.hash(a)?a:{},{type:c}),i=b.components.make(c,e.tmpl,g);return d.element(a)?i.parse(a)?(h.push(i),i):null:i})),g.length>0&&e.tmpl.raise("made-items",[g]),h.length>0&&e.tmpl.raise("parsed-items",[h])}return g},type:function(c){var e;return d.hash(c)?e=c.type:d.element(c)&&(e=a(c).find(this.tmpl.sel.item.anchor).data("type")),d.string(e)&&b.components.contains(e)?e:"item"},create:function(b,c){var e=this,f=[],g=e.creatable(b);if(g.length>0){e.tmpl.raise("create-items",[g]).isDefaultPrevented()||(f=a.map(g,function(a){return a.create()?a:null})),f.length>0&&e.tmpl.raise("created-items",[f])}return d.boolean(c)&&c?e.append(b):f},append:function(b){var c=this,d=[],e=c.appendable(b);if(e.length>0){c.tmpl.raise("append-items",[e]).isDefaultPrevented()||(d=a.map(e,function(a){return a.append()?a:null})),d.length>0&&c.tmpl.raise("appended-items",[d])}return d},detach:function(b){var c=this,d=[],e=c.detachable(b);if(e.length>0){c.tmpl.raise("detach-items",[e]).isDefaultPrevented()||(d=a.map(e,function(a){return a.detach()?a:null})),d.length>0&&c.tmpl.raise("detached-items",[d])}return d},load:function(b){var c=this;if(b=c.loadable(b),b.length>0){if(!c.tmpl.raise("load-items",[b]).isDefaultPrevented()){var d=a.map(b,function(a){return a.load()});return e.when(d).done(function(a){c.tmpl.raise("loaded-items",[a])})}}return e.resolveWith([])},createIdMap:function(b){var c={};return a.each(b,function(a,b){d.empty(b.id)&&(b.id=""+(a+1)),c[b.id]=b}),c}}),b.components.register("items",b.Items)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d){b.Paging=b.Component.extend({construct:function(a){var b=this;b._super(a),b.opt=b.tmpl.opt.paging,b.cls=b.tmpl.cls.paging,b.il8n=b.tmpl.il8n.paging,b.sel=b.tmpl.sel.paging,b.pushOrReplace=b.opt.pushOrReplace,b.type=b.opt.type,b.theme=b.opt.theme,b.size=b.opt.size,b.position=b.opt.position,b.scrollToTop=b.opt.scrollToTop,b.current=0,b.total=0,b.ctrls=[],b._arr=[]},destroy:function(){var b=this;b._arr.splice(0,b._arr.length),a.each(b.ctrls.splice(0,b.ctrls.length),function(a,b){b.destroy()}),b._super()},build:function(){var a=this,c=a.tmpl.items.available();a.total=a.size>0&&c.length>0?Math.ceil(c.length/a.size):1;for(var d=0;d<a.total;d++)a._arr.push(c.splice(0,a.size));if(a.total>1&&b.paging.hasCtrl(a.type)){var e,f,g=a.position;"both"!==g&&"top"!==g||(e=b.paging.makeCtrl(a.type,a.tmpl,a,"top"),e.create()&&(e.append(),a.ctrls.push(e))),"both"!==g&&"bottom"!==g||(f=b.paging.makeCtrl(a.type,a.tmpl,a,"bottom"),f.create()&&(f.append(),a.ctrls.push(f)))}},rebuild:function(){var b=this;b.current=0,b.total=0,b._arr.splice(0,b._arr.length),a.each(b.ctrls.splice(0,b.ctrls.length),function(a,b){b.destroy()}),b.build()},all:function(){return this._arr.slice()},available:function(){return this.get(this.current)},controls:function(b){var c=this;c.isValid(b)&&a.each(c.ctrls,function(a,c){c.update(b)})},isValid:function(a){return d.number(a)&&a>0&&a<=this.total},number:function(a){return this.isValid(a)?a:0===this.current?1:this.current},create:function(a,b){var c=this;a=c.number(a);var d=a-1;c.tmpl.items.detach(c.tmpl.items.all()),c.tmpl.items.create(c._arr[d],!0),c.current=a},get:function(a){var b=this;return b.isValid(a)?(a=b.number(a),b._arr[a-1]):[]},set:function(a,b,c,e){var f=this;if(f.isValid(a)){var g,h=f.number(a);if(h!==f.current){var i=f.current,j=function(){if(c=!d.boolean(c)||c,e=!!d.boolean(e)&&e,c&&1===f.current&&!f.tmpl.state.exists()&&(g=f.tmpl.state.get(),f.tmpl.state.update(g,f.pushOrReplace)),f.controls(a),f.create(h,e),c&&(g=f.tmpl.state.get(),f.tmpl.state.update(g,f.pushOrReplace)),f.scrollToTop&&d.boolean(b)&&b){var j=f.get(f.current);j.length>0&&j[0].scrollTo("top")}f.tmpl.raise("after-page-change",[f.current,i,e])};return!f.tmpl.raise("before-page-change",[f.current,h,j,e]).isDefaultPrevented()&&(j(),!0)}}return!1},find:function(b){for(var c=this,d=0,e=c._arr.length;d<e;d++)if(-1!==a.inArray(b,c._arr[d]))return d+1;return 0},contains:function(b,c){var d=this.get(b);return-1!==a.inArray(c,d)},first:function(){this.goto(1)},last:function(){this.goto(this._arr.length)},prev:function(){this.goto(this.current-1)},next:function(){this.goto(this.current+1)},goto:function(a){var b=this;b.set(a,!0)&&b.tmpl.loadAvailable()}}),b.PagingControl=b.Component.extend({construct:function(a,b,c){var d=this;d._super(a),d.pages=b,d.position=c,d.$container=null},create:function(){var b=this;return b.$container=a("<nav/>",{class:b.pages.cls.container}).addClass(b.pages.theme),!0},destroy:function(){var a=this;a.$container.remove(),a.$container=null},append:function(){var a=this;"top"===a.position?a.$container.insertBefore(a.tmpl.$el):a.$container.insertAfter(a.tmpl.$el)},update:function(a){}}),b.paging.register("default",b.Paging,null,{type:"none",theme:"fg-light",size:30,pushOrReplace:"push",position:"none",scrollToTop:!0},{container:"fg-paging-container"},null,-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){b.Dots=b.Paging.extend({}),b.DotsControl=b.PagingControl.extend({construct:function(b,c,d){this._super(b,c,d),this.$container=a(),this.$list=a(),this.$items=a()},create:function(){for(var b,c=this,d=c.pages.cls,e=c.pages.il8n,f=[],g=a("<ul/>",{class:d.list}),h=0,i=c.pages.total;h<i;h++)f.push(b=c.createItem(h+1,e.page)),g.append(b);return c.$list=g,c.$container=a("<nav/>",{class:d.container}).addClass(c.pages.theme).append(g),c.$items=a(a.map(f,function(a){return a.get()})),!0},append:function(){var a=this;"top"===a.position?a.$container.insertBefore(a.tmpl.$el):a.$container.insertAfter(a.tmpl.$el)},destroy:function(){var b=this,c=b.pages.sel;b.$list.find(c.link).off("click.foogallery",b.onLinkClick),b.$container.remove(),b.$container=a(),b.$list=a(),b.$items=a()},update:function(a){this.setSelected(a-1)},setSelected:function(b){var c=this,e=c.pages.cls,f=c.pages.il8n,g=c.pages.sel;c.$items.filter(g.selected).removeClass(e.selected).each(function(b,c){var e=a(c),f=e.data("label"),h=e.find(g.reader);d.string(f)&&0!==h.length&&h.html(f)}),c.$items.eq(b).addClass(e.selected).each(function(b,c){var e=a(c),h=e.find(g.reader),i=h.html();d.string(i)&&0!==h.length&&(e.data("label",i),h.html(f.current))})},createItem:function(b,c,e,f,g){e=d.string(e)?e:b,c=d.string(c)?c:"";var h=this,i=h.pages.opt,j=h.pages.cls,k=a("<a/>",{class:j.link,href:"#page-"+b}).html(e).on("click.foogallery",{self:h,page:b},h.onLinkClick);d.empty(c)||k.attr("title",c.replace(/\{PAGE}/g,b).replace(/\{LIMIT}/g,i.limit+"")),g=d.string(g)?g:c,d.empty(g)||k.prepend(a("<span/>",{class:j.reader,text:g.replace(/\{PAGE}/g,"").replace(/\{LIMIT}/g,i.limit+"")}));var l=a("<li/>",{class:j.item}).append(k);return f=d.string(f)?f:"",d.empty(f)||l.addClass(f),l},onLinkClick:function(b){b.preventDefault();var c=b.data.self,d=b.data.page,e=c.pages.sel;a(this).closest(e.item).is(e.disabled)||(c.pages.set(d,!0),c.tmpl.loadAvailable())}}),b.paging.register("dots",b.Dots,b.DotsControl,{type:"dots",position:"both",pushOrReplace:"push"},{list:"fg-dots",item:"fg-dot-item",link:"fg-dot-link",disabled:"fg-disabled",selected:"fg-selected",visible:"fg-visible",reader:"fg-sr-only"},{current:"Current page",page:"Page {PAGE}"})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.DefaultTemplate=b.Template.extend({}),b.template.register("default",b.DefaultTemplate,null,{container:"foogallery fg-default"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.MasonryTemplate=b.Template.extend({construct:function(a,b){this._super(a,b),this.masonry=null,this.style=null,this.$columnWidth=null},getStylesheet:function(){var a=this;return null===a.style&&(a.style=document.createElement("style"),a.style.appendChild(document.createTextNode("")),document.head.appendChild(a.style)),a.style.sheet},onPreInit:function(b,c){var e=c.sel,f=c.cls;f.layouts=a.map(f.layout,function(a){return a}).join(" ");for(var g=a.map(f.layout,function(a,b){return{key:b,value:a}}),h=0,i=g.length;h<i;h++)if(c.$el.hasClass(g[h].value)){c.template.layout=g[h].key;break}d.string(f.layout[c.template.layout])||(c.template.layout="col4");var j,k,l="fixed"===c.template.layout;if(c.template.isFitWidth=l,c.template.percentPosition=!l,c.template.transitionDuration=0,c.template.itemSelector=e.item.elem,c.$el.removeClass(f.layouts).addClass(f.layout[c.template.layout]),l||(0===c.$el.find(e.gutterWidth).length&&c.$el.prepend(a("<div/>").addClass(f.gutterWidth)),c.template.gutter=e.gutterWidth),0===c.$el.find(e.columnWidth).length&&c.$el.prepend(a("<div/>").addClass(f.columnWidth)),l&&d.number(c.template.columnWidth)){var m=c.$el.find(e.columnWidth).width(c.template.columnWidth);j=c.getStylesheet(),k="#"+c.id+e.container+" "+e.item.elem+" { width: "+m.outerWidth()+"px; }",j.insertRule(k,0)}c.template.columnWidth=e.columnWidth,l&&d.number(c.template.gutter)&&(j=c.getStylesheet(),k="#"+c.id+e.container+" "+e.item.elem+" { margin-bottom: "+c.template.gutter+"px; }",j.insertRule(k,0)),c.masonry=new Masonry(c.$el.get(0),c.template)},onPostInit:function(a,b){b.masonry.layout()},onFirstLoad:function(a,b){b.masonry.layout()},onReady:function(a,b){b.masonry.layout()},onDestroy:function(a,b){b.$el.find(b.sel.columnWidth).remove(),b.$el.find(b.sel.gutterWidth).remove(),b.style&&b.style.parentNode&&b.style.parentNode.removeChild(b.style)},onDestroyed:function(a,b){b.masonry instanceof Masonry&&b.masonry.destroy()},onLayout:function(a,b){b.masonry.layout()},onParsedItems:function(a,b,c){b.masonry.layout()},onAppendedItems:function(a,b,c){c=b.items.jquerify(c),c=b.masonry.addItems(c),b.masonry.layoutItems(c,!0)},onDetachItem:function(a,b,c){a.isDefaultPrevented()||(a.preventDefault(),b.masonry.remove(c.$el),c.isAttached=!1,c.unfix())},onDetachedItems:function(a,b,c){b.masonry.layout()},onLoadedItems:function(a,b,c){b.masonry.layout()}}),b.template.register("masonry",b.MasonryTemplate,{template:{initLayout:!1,isInitLayout:!1,layout:"col4"}},{container:"foogallery fg-masonry",columnWidth:"fg-column-width",gutterWidth:"fg-gutter-width",layout:{fixed:"fg-masonry-fixed",col2:"fg-masonry-2col",col3:"fg-masonry-3col",col4:"fg-masonry-4col",col5:"fg-masonry-5col"}})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){b.Justified=c.Class.extend({construct:function(c,d){this.$el=a(c),this.options=a.extend(!0,{},b.Justified.defaults,d),this._items=[]},init:function(){var b=this;d.string(b.options.maxRowHeight)&&(b.options.maxRowHeight.indexOf("%")?b.options.maxRowHeight=b.options.rowHeight*(parseInt(b.options.maxRowHeight)/100):b.options.maxRowHeight=parseInt(b.options.maxRowHeight)),a(window).on("resize.justified",{self:b},b.onWindowResize)},destroy:function(){a(window).off("resize.justified"),this.$el.removeAttr("style")},parse:function(){var b=this,c=b.$el.is(":visible"),d=a("<div/>",{class:b.$el.attr("class")}).css({position:"absolute",top:0,left:-9999,visibility:"hidden"}).appendTo("body");return b._items=b.$el.find(b.options.itemSelector).removeAttr("style").removeClass("fg-positioned").map(function(e,f){var g,h=a(f),i=0,j=0;if(c)i=h.outerWidth(),j=h.outerHeight();else{var k=h.clone();k.appendTo(d),i=k.outerWidth(),j=k.outerHeight()}return g=b.options.rowHeight/j,{index:e,width:i*g,height:b.options.rowHeight,top:0,left:0,$item:h}}).get(),d.remove(),b._items},round:function(a){return Math.round(a)},getContainerWidth:function(){var a=this;return a.$el.is(":visible")?a.$el.width():a.$el.parents(":visible:first").width()},layout:function(a,b){a=!!d.boolean(a)&&a,b=!d.boolean(b)||b,(a||0===this._items.length)&&this.parse();for(var c,e=this,f=e.getContainerWidth(),g=e.rows(f),h=0,i=0,j=g.length;i<j;i++)c=g[i],h=i===j-1?e.lastRow(c,f,h):e.justify(c,f,h),e.render(c);e.$el.height(h),b&&e.getContainerWidth()<f&&e.layout(!1,!1)},render:function(a){for(var b,c=0,d=a.items.length;c<d;c++)b=a.items[c],a.visible?b.$item.css({width:b.width,height:b.height,top:b.top,left:b.left,display:"",maxHeight:this.options.maxRowHeight>0?this.options.maxRowHeight:""}).addClass("fg-positioned"):b.$item.css("display","none")},lastRow:function(a,b,c){var d=this;switch(d.options.lastRow){case"hide":a.visible=!1;break;case"justify":c=d.justify(a,b,c);break;case"nojustify":c=a.width/b>d.options.justifyThreshold?d.justify(a,b,c):d.position(a,b,c,"left");break;case"right":case"center":case"left":c=d.position(a,b,c,d.options.lastRow);break;default:c=d.position(a,b,c,"left")}return c},justify:function(a,b,c){var d=this,e=0,f=d.options.margins*(a.items.length-1),g=(b-f)/a.width;a.index>0&&(c+=d.options.margins),a.top=c,a.width=d.round(a.width*g),a.height=d.round(a.height*g);for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.width=d.round(h.width*g),h.height=d.round(h.height*g),h.top=c,i>0&&(e+=d.options.margins),h.left=e,e+=h.width;return c+(a.height>d.options.maxRowHeight?d.options.maxRowHeight:a.height)},position:function(a,b,c,d){var e=this,f=a.items[a.items.length-1],g=b-(f.left+f.width);a.index>0&&(c+=e.options.margins),a.top=c;for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.top=c,"center"===d?h.left+=g/2:"right"===d&&(h.left+=g);return c+a.height},items:function(){return a.map(this._items,function(a){return{index:a.index,width:a.width,height:a.height,$item:a.$item,top:a.top,left:a.left}})},rows:function(a){for(var b=this,c=b.items(),d=[],e=c.length>0,f=-1,g=0;e;){f+=1,f>0&&(g+=b.options.margins);for(var h,i,j,k={index:f,visible:!0,top:g,width:0,height:b.options.rowHeight,items:[]},l=[],m=0,n=0,o=c.length;n<o&&(i=c[n],!((h=k.width+i.width)>a&&n>0));n++)h>a&&0==n&&(h=a,j=a/i.width,i.width=b.round(i.width*j),i.height=b.round(i.height*j),k.height=i.height),i.top=k.top,n>0&&(m+=b.options.margins),i.left=m,m+=i.width,k.width=h,k.items.push(i),l.push(n);if(0===l.length){e=!1;break}l.sort(function(a,b){return b-a});for(var p=0,q=l.length;p<q;p++)c.splice(l[p],1);d.push(k),e=c.length>0}return d},onWindowResize:function(a){a.data.self.layout()}}),b.Justified.defaults={itemSelector:".fg-item",rowHeight:150,maxRowHeight:"200%",margins:0,lastRow:"center",justifyThreshold:.5}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.JustifiedTemplate=b.Template.extend({onPreInit:function(a,c){c.justified=new b.Justified(c.$el.get(0),c.template)},onInit:function(a,b){b.justified.init()},onFirstLoad:function(a,b){b.justified.layout(!0)},onReady:function(a,b){b.justified.layout()},onDestroy:function(a,b){b.justified.destroy()},onLayout:function(a,b){b.justified.layout(!0)},onParsedItems:function(a,b,c){b.justified.layout(!0)},onAppendedItems:function(a,b,c){b.justified.layout(!0)},onDetachedItems:function(a,b,c){b.justified.layout(!0)}}),b.template.register("justified",b.JustifiedTemplate,null,{container:"foogallery fg-justified"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.Portfolio=c.Class.extend({construct:function(c,d){this.$el=a(c),this.options=a.extend(!0,{},b.Portfolio.defaults,d),this._items=[]},init:function(){var b=this;a(window).on("resize.portfolio",{self:b},b.onWindowResize)},destroy:function(){a(window).off("resize.portfolio"),this.$el.removeAttr("style")},parse:function(){var b=this,c=b.$el.is(":visible"),d=a("<div/>",{class:b.$el.attr("class")}).css({position:"absolute",top:0,left:-9999,visibility:"hidden"}).appendTo("body");return b._items=b.$el.find(".fg-item").removeAttr("style").removeClass("fg-positioned").map(function(b,e){var f=a(e),g=f.find(".fg-thumb"),h=f.find(".fg-image"),i=0,j=0;if(f.find(".fg-caption").css("max-width",parseFloat(h.attr("width"))),h.css({width:h.attr("width"),height:h.attr("height")}),c)i=f.outerWidth(),j=f.outerHeight();else{var k=f.clone();k.appendTo(d),i=k.outerWidth(),j=k.outerHeight()}return h.css({width:"",height:""}),{index:b,width:i,height:j,top:0,left:0,$item:f,$thumb:g}}).get(),d.remove(),b._items},round:function(a){return Math.round(2*a)/2},getContainerWidth:function(){var a=this;return a.$el.is(":visible")?a.$el.width():a.$el.parents(":visible:first").width()},layout:function(a,b){a=!!d.boolean(a)&&a,b=!d.boolean(b)||b,(a||0===this._items.length)&&this.parse();for(var c,e=this,f=e.getContainerWidth(),g=e.rows(f),h=0,i=0,j=g.length;i<j;i++)c=g[i],h=e.position(c,f,h,e.options.align),e.render(c);e.$el.height(h),b&&e.getContainerWidth()<f&&e.layout(!1,!1)},render:function(a){for(var b,c=0,d=a.items.length;c<d;c++)b=a.items[c],a.visible?b.$item.css({width:b.width,height:a.height,top:b.top,left:b.left,display:""}).addClass("fg-positioned"):b.$item.css("display","none")},position:function(a,b,c,d){var e=this,f=a.items[a.items.length-1],g=b-(f.left+f.width);a.index>0&&(c+=e.options.gutter),a.top=c;for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.top=c,"center"===d?h.left+=g/2:"right"===d&&(h.left+=g);return c+a.height},items:function(){return a.map(this._items,function(a){return{index:a.index,width:a.width,height:a.height,$item:a.$item,$thumb:a.$thumb,top:a.top,left:a.left}})},rows:function(a){for(var b=this,c=b.items(),d=[],e=c.length>0,f=-1,g=0;e;){f+=1,f>0&&(g+=b.options.gutter);for(var h,i,j,k={index:f,visible:!0,top:g,width:0,height:0,items:[]},l=[],m=0,n=0,o=c.length;n<o&&(i=c[n],!((h=k.width+i.width)>a&&n>0));n++)h>a&&0==n&&(h=a,j=a/i.width,i.width=b.round(i.width*j),i.height=b.round(i.height*j),k.height=i.height),i.top=k.top,n>0&&(m+=b.options.gutter),n!==o-1&&(h+=b.options.gutter),i.left=m,m+=i.width,i.height>k.height&&(k.height=i.height),k.width=h,k.items.push(i),l.push(n);if(0===l.length){e=!1;break}l.sort(function(a,b){return b-a});for(var p=0,q=l.length;p<q;p++)c.splice(l[p],1);d.push(k),e=c.length>0}return d},onWindowResize:function(a){a.data.self.layout()}}),b.Portfolio.defaults={gutter:40,align:"center"}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.PortfolioTemplate=b.Template.extend({construct:function(a,b){this._super(a,b),this.portfolio=null},onPreInit:function(a,c){c.portfolio=new b.Portfolio(c.$el.get(0),c.template)},onInit:function(a,b){b.portfolio.init()},onFirstLoad:function(a,b){b.portfolio.layout(!0)},onReady:function(a,b){b.portfolio.layout()},onDestroy:function(a,b){b.portfolio.destroy()},onLayout:function(a,b){b.portfolio.layout(!0)},onParsedItems:function(a,b,c){b.portfolio.layout(!0)},onAppendedItems:function(a,b,c){b.portfolio.layout(!0)},onDetachedItems:function(a,b,c){b.portfolio.layout(!0)}}),b.template.register("simple_portfolio",b.PortfolioTemplate,{gutter:40},{container:"foogallery fg-simple_portfolio"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.ImageViewerTemplate=b.Template.extend({construct:function(b,c){this._super(d.extend({},b,{paging:{pushOrReplace:"replace",theme:"fg-light",type:"default",size:1,position:"none",scrollToTop:!1}}),c),this.$inner=a(),this.$current=a(),this.$total=a(),this.$prev=a(),this.$next=a()},createChildren:function(){var b=this;return a("<div/>",{class:b.cls.inner}).append(a("<div/>",{class:b.cls.innerContainer}),a("<div/>",{class:b.cls.controls}).append(a("<div/>",{class:b.cls.prev}).append(a("<span/>",{text:b.il8n.prev})),a("<label/>",{class:b.cls.count,text:b.il8n.count}).prepend(a("<span/>",{class:b.cls.countCurrent,text:"0"})).append(a("<span/>",{class:b.cls.countTotal,text:"0"})),a("<div/>",{class:b.cls.next}).append(a("<span/>",{text:b.il8n.next}))))},onPreInit:function(a,b){b.$inner=b.$el.find(b.sel.innerContainer),b.$current=b.$el.find(b.sel.countCurrent),b.$total=b.$el.find(b.sel.countTotal),b.$prev=b.$el.find(b.sel.prev),b.$next=b.$el.find(b.sel.next)},onInit:function(a,b){b.template.attachFooBox&&b.$el.on("foobox.previous",{self:b},b.onFooBoxPrev).on("foobox.next",{self:b},b.onFooBoxNext),b.$prev.on("click",{self:b},b.onPrevClick),b.$next.on("click",{self:b},b.onNextClick)},onFirstLoad:function(a,b){b.update()},onDestroy:function(a,b){b.template.attachFooBox&&b.$el.off({"foobox.previous":b.onFooBoxPrev,"foobox.next":b.onFooBoxNext}),b.$prev.off("click",b.onPrevClick),b.$next.off("click",b.onNextClick)},onAppendItem:function(a,b,c){a.preventDefault(),b.$inner.append(c.$el),c.fix(),c.isAttached=!0},onAfterPageChange:function(a,b,c,d,e){e||b.update()},onAfterFilterChange:function(a,b){b.update()},update:function(){this.pages&&(this.$current.text(this.pages.current),this.$total.text(this.pages.total))},prev:function(){this.pages&&(this.template.loop&&1===this.pages.current?this.pages.last():this.pages.prev(),this.update())},next:function(){this.pages&&(this.template.loop&&this.pages.current===this.pages.total?this.pages.first():this.pages.next(),this.update())},onFooBoxPrev:function(a){a.data.self.prev()},onFooBoxNext:function(a){a.data.self.next()},onPrevClick:function(a){a.preventDefault(),a.stopPropagation(),a.data.self.prev()},onNextClick:function(a){a.preventDefault(),a.stopPropagation(),a.data.self.next()}}),b.template.register("image-viewer",b.ImageViewerTemplate,{template:{attachFooBox:!1,loop:!1}},{container:"foogallery fg-image-viewer",inner:"fiv-inner",innerContainer:"fiv-inner-container",controls:"fiv-ctrls",prev:"fiv-prev",next:"fiv-next",count:"fiv-count",countCurrent:"fiv-count-current",countTotal:"fiv-count-total"},{prev:"Prev",next:"Next",count:"of"})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.obj),function(a,b,c){b.ThumbnailTemplate=b.Template.extend({construct:function(b,d){this._super(c.extend({},b,{filtering:{type:"none"},paging:{type:"none"}}),d),this.$hidden=a()},createChildren:function(){var b=this;return b.$hidden=a("<div/>",{class:b.cls.hidden})},onPreInit:function(a,b){b.$hidden=b.$el.find(b.sel.hidden)},onPostInit:function(b,c){for(var d,e=c.items.all().slice(1),f=0,g=e.length;f<g;f++)d=e[f],c.$hidden.append(a("<a/>",{href:d.href,rel:"foobox["+c.id+"]"}).attr(d.attr.anchor));c.items.setAll(c.items.all().slice(0,1))}}),b.template.register("thumbnail",b.ThumbnailTemplate,null,{container:"foogallery fg-thumbnail",hidden:"fg-st-hidden"})}(FooGallery.$,FooGallery,FooGallery.utils.obj),function(a,b,c,d){b.triggerPostLoad=function(b,c,d,e,f){("first-load"===b.type||c.initialized&&("after-page-change"===b.type&&!f||"after-filter-change"===b.type))&&a("body").trigger("post-load")},b.autoDefaults={on:{"first-load.foogallery after-page-change.foogallery after-filter-change.foogallery":b.triggerPostLoad}},b.auto=function(a){b.autoDefaults=d.merge(b.autoDefaults,a)},a(function(){a('[id^="foogallery-"]:not(.fg-ready)').foogallery(b.autoDefaults)}),c.ready(function(){a('[id^="foogallery-"].fg-ready').foogallery(b.autoDefaults)})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.obj);
1
/*
2
* FooGallery - The Most Intuitive and Extensible Gallery Creation and Management Tool Ever Created for WordPress
3
+ * @version 1.0.25
4
* @link
5
* @copyright Steven Usher & Brad Vincent 2015
6
* @license Released under the GPLv3 license.
7
*/
8
9
!function(a,b){b.$=a}(jQuery,window.FooGallery=window.FooGallery||{}),function(a){if(!a)return void console.warn("jQuery must be included in the page prior to the FooGallery.utils library.");var b={$:a,version:"0.0.8"};b.versionCompare=function(a,b){function c(a){for(var b=a.split("."),c=0,d=b.length;c<d;c++)b[c]=parseInt(b[c]),isNaN(b[c])&&(b[c]=0);return b}if(!/[\d.]/.test(a)||!/[\d.]/.test(b))return NaN;for(var d=c(a),e=c(b);d.length<e.length;)d.push(0);for(;e.length<d.length;)e.push(0);for(var f=0;f<d.length;++f){if(e.length==f)return 1;if(d[f]!=e[f])return d[f]>e[f]?1:-1}return d.length!=e.length?-1:0},!function(){try{return!!window.FooGallery.utils}catch(a){return!1}}()?window.FooGallery.utils=b:b.versionCompare(b.version,window.FooGallery.utils.version)>0?(console.warn("An older version of FooGallery.utils ("+window.FooGallery.utils.version+") already exists in the page, version "+b.version+" will override it."),window.FooGallery.utils=b):console.warn("A newer version of FooGallery.utils ("+window.FooGallery.utils.version+") already exists in the page, version "+b.version+" will not register itself.")}(jQuery),function(a,b){"0.0.8"===b.version&&(b.is={},b.is.array=function(a){return"[object Array]"===Object.prototype.toString.call(a)},b.is.boolean=function(a){return"[object Boolean]"===Object.prototype.toString.call(a)},b.is.element=function(a){return"object"==typeof HTMLElement?a instanceof HTMLElement:!!a&&"object"==typeof a&&null!==a&&1===a.nodeType&&"string"==typeof a.nodeName},b.is.empty=function(a){if(b.is.undef(a)||null===a)return!0;if(b.is.number(a)&&0==a)return!0;if(b.is.boolean(a)&&!1===a)return!0;if(b.is.string(a)&&0===a.length)return!0;if(b.is.array(a)&&0===a.length)return!0;if(b.is.jq(a)&&0===a.length)return!0;if(b.is.hash(a)){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0}return!1},b.is.error=function(a){return"[object Error]"===Object.prototype.toString.call(a)},b.is.fn=function(a){return a===window.alert||"[object Function]"===Object.prototype.toString.call(a)},b.is.hash=function(a){return b.is.object(a)&&a.constructor===Object&&!a.nodeType&&!a.setInterval},b.is.jq=function(c){return!b.is.undef(a)&&c instanceof a},b.is.number=function(a){return"[object Number]"===Object.prototype.toString.call(a)&&!isNaN(a)},b.is.object=function(a){return"[object Object]"===Object.prototype.toString.call(a)&&!b.is.undef(a)&&null!==a},b.is.promise=function(a){return b.is.object(a)&&b.is.fn(a.then)&&b.is.fn(a.promise)},b.is.size=function(a){return!!(b.is.string(a)&&!b.is.empty(a)||b.is.number(a))&&/^(auto|none|(?:[\d\.]*)+?(?:%|px|mm|q|cm|in|pt|pc|em|ex|ch|rem|vh|vw|vmin|vmax)?)#x2F;.test(a)},b.is.string=function(a){return"[object String]"===Object.prototype.toString.call(a)},b.is.undef=function(a){return void 0===a})}(FooGallery.utils.$,FooGallery.utils),function(a,b,c){if("0.0.8"===b.version){b.fn={};var d=Function.prototype.toString;b.fn.CONTAINS_SUPER=/xyz/.test(d.call(function(){xyz}))?/\b_super\b/:/.*/,b.fn.addOrOverride=function(a,e,f){if(c.object(a)&&c.string(e)&&!c.empty(e)&&c.fn(f)){var g=a[e],h=c.fn(g)&&b.fn.CONTAINS_SUPER.test(d.call(f));a[e]=h?function(a,b){return function(){var c=this._super;this._super=a;var d=b.apply(this,arguments);return this._super=c,d}}(g,f):f}},b.fn.apply=function(a,b){function d(){return a.apply(this,b)}return b=c.array(b)?b:[],d.prototype=a.prototype,new d},b.fn.arg2arr=function(a){return Array.prototype.slice.call(a)},b.fn.check=function(d,e,f,g){function h(a){return function(){return a.apply(d,arguments)}}return f=c.fn(f)?f:a.noop,d=c.object(d)?d:window,e=c.string(e)?b.fn.fetch(e,g):e,h(c.fn(e)?e:f)},b.fn.fetch=function(b,d){return!c.string(b)||c.empty(b)?null:(d=c.object(d)?d:window,a.each(b.split("."),function(a,b){if(!d[b])return!1;d=d[b]}),c.fn(d)?d:null)},b.fn.enqueue=function(d,e,f,g){function h(a,b){try{return n.push(a),b.apply(a,i)}catch(a){return j.reject(a,n),j}}var i=b.fn.arg2arr(arguments),j=a.Deferred(),k=a.Deferred(),l=k.promise(),m=[],n=[],o=!0;return d=i.shift(),e=i.shift(),a.each(d,function(a,d){c.fn(d[e])&&(l=l.then(function(){if(!o){var a=b.fn.arg2arr(arguments);m.push(a)}return o=!1,h(d,d[e])}))}),l.then(function(){if(!o){var a=b.fn.arg2arr(arguments);m.push(a)}o=!1,j.resolve(m)}),l.fail(function(){var a=b.fn.arg2arr(arguments);a.push(n),j.reject.apply(j,a)}),k.resolve(),j.promise()},b.fn.when=function(b){if(!c.array(b)||c.empty(b))return a.when();for(var d=a.Deferred(),e=[],f=b.length,g=0;g<b.length;g++)b[g].then(function(a){e.push(a)}).always(function(){--f||d.resolve(e)});return d.promise()},b.fn.rejectWith=function(c,d){var e=a.Deferred(),f=b.fn.arg2arr(arguments);return e.reject.apply(e,f).promise()},b.fn.resolveWith=function(c,d){var e=a.Deferred(),f=b.fn.arg2arr(arguments);return e.resolve.apply(e,f).promise()},b.fn.resolved=a.Deferred().resolve().promise(),b.fn.rejected=a.Deferred().reject().promise()}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b){if("0.0.8"===a.version){a.url={};var c=document.createElement("a");a.url.parts=function(a){return c.href=a,{hash:c.hash,host:c.host,hostname:c.hostname,href:c.href,origin:c.origin,pathname:c.pathname,port:c.port,protocol:c.protocol,search:c.search}},a.url.full=function(a){return!b.string(a)||b.empty(a)?null:(c.href=a,c.href)},a.url.param=function(a,c,d){if(!b.string(a)||!b.string(c)||b.empty(c))return a;var e,f,g,h;return b.undef(d)?(e=new RegExp("[?|&]"+c+"=([^&;]+?)(&|#|;|$)"),f=e.exec(a)||[,""],g=f[1].replace(/\+/g,"%20"),b.string(g)&&!b.empty(g)?decodeURIComponent(g):null):(""===d||null===d?(e=new RegExp("^([^#]*?)(([^#]*)&)?"+c+"(=[^&#]*)?(&|#|$)"),g=a.replace(e,"$1$3$5").replace(/^([^#]*)((\?)&|\?(#|$))/,"$1$3$4")):(e=new RegExp("([?&])"+c+"[^&]*"),h=c+"="+encodeURIComponent(d),(g=a.replace(e,"$1"+h))!==a||e.test(g)||(g+=(-1!==g.indexOf("?")?"&":"?")+h)),g)}}}(FooGallery.utils,FooGallery.utils.is),function(a,b,c){"0.0.8"===a.version&&(a.str={},a.str.camel=function(a){return b.empty(a)?a:a.toUpperCase()===a?a.toLowerCase():a.replace(/^([A-Z])|[-\s_]+(\w)/g,function(a,c,d){return b.string(d)?d.toUpperCase():c.toLowerCase()})},a.str.contains=function(a,c,d){return!(!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c))&&(c.length<=a.length&&-1!==(d?a.toUpperCase().indexOf(c.toUpperCase()):a.indexOf(c)))},a.str.containsWord=function(a,c,d){if(!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c)||a.length<c.length)return!1;for(var e=a.split(/\W/),f=0,g=e.length;f<g;f++)if(d?e[f].toUpperCase()==c.toUpperCase():e[f]==c)return!0;return!1},a.str.endsWith=function(a,c){return!b.string(a)||b.empty(a)||!b.string(c)||b.empty(c)?a==c:a.slice(a.length-c.length)==c},a.str.escapeRegExp=function(a){return b.empty(a)?a:a.replace(/[.*+?^${}()|[\]\\]/g,"\\amp;")},a.str.fnv1a=function(a){if(!b.string(a)||b.empty(a))return null;var c,d,e=2166136261;for(c=0,d=a.length;c<d;c++)e^=a.charCodeAt(c),e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24);return e>>>0},a.str.from=function(c,d){return!b.string(c)||b.empty(c)||!b.string(d)||b.empty(d)?null:a.str.contains(c,d)?c.substring(c.indexOf(d)+d.length):null},a.str.join=function(d,e,f){if(!b.string(d)||!b.string(e))return null;var g=c.arg2arr(arguments);d=g.shift();var h,i,j=g.shift();for(h=0,i=g.length;h<i;h++)e=g[h],b.empty(e)||(a.str.endsWith(j,d)&&(j=j.slice(0,j.length-d.length)),a.str.startsWith(e,d)&&(e=e.slice(d.length)),j+=d+e);return j},a.str.startsWith=function(a,c){return!b.empty(a)&&!b.empty(c)&&a.slice(0,c.length)==c},a.str.until=function(c,d){return b.empty(c)||b.empty(d)?c:a.str.contains(c,d)?c.substring(0,c.indexOf(d)):c},a.str.format=function(a,d,e){var f=c.arg2arr(arguments);if(a=f.shift(),b.empty(a)||b.empty(f))return a;1===f.length&&(b.array(f[0])||b.object(f[0]))&&(f=f[0]);for(var g in f)a=a.replace(new RegExp("\\{"+g+"\\}","gi"),f[g]);return a})}(FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c,d,e){if("0.0.8"===b.version){b.obj={};var f=function(){};b.obj.create=function(a){if(!c.object(a))throw TypeError("Argument must be an object");f.prototype=a;var b=new f;return f.prototype=null,b},b.obj.extend=function(e,f,g){e=c.object(e)?e:{};var h=d.arg2arr(arguments);return h.shift(),a.each(h,function(a,c){b.obj.merge(e,c)}),e},b.obj.merge=function(a,d){a=c.hash(a)?a:{},d=c.hash(d)?d:{};for(var e in d)d.hasOwnProperty(e)&&(c.hash(d[e])?(a[e]=c.hash(a[e])?a[e]:{},b.obj.merge(a[e],d[e])):c.array(d[e])?a[e]=d[e].slice():a[e]=d[e]);return a},b.obj.mergeValid=function(d,e,f,g){if(!c.hash(f)||!c.hash(e))return d;e=c.hash(e)?e:{},g=c.hash(g)?g:{};var h,i,j;for(h in e)e.hasOwnProperty(h)&&c.fn(e[h])&&(i=c.array(g[h])?g[h]:c.string(g[h])?[g[h]]:[h],a.each(i,function(a,g){if(j=b.obj.prop(f,g),!c.undef(j))return e[h](j)?(b.obj.prop(d,h,j),!1):void 0}));return d},b.obj.prop=function(b,d,f){if(c.object(b)&&!c.empty(d)){var g,h;if(c.undef(f))return e.contains(d,".")?(g=d.split("."),h=g.length-1,a.each(g,function(a,d){if(a===h)f=b[d];else{if(!c.hash(b[d]))return!1;b=b[d]}})):c.undef(b[d])||(f=b[d]),f;e.contains(d,".")?(g=d.split("."),h=g.length-1,a.each(g,function(a,d){a===h?b[d]=f:b=c.hash(b[d])?b[d]:b[d]={}})):c.undef(b[d])||(b[d]=f)}}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(a,b,c){if("0.0.8"===b.version){b.ready=function(a){function c(){try{a.call(window,b.$)}catch(a){console.error(a)}}(Function("/*@cc_on return true@*/")()?"complete"===document.readyState:"loading"!==document.readyState)?c():document.addEventListener("DOMContentLoaded",c,!1)};var d=0;b.uniqueId=function(a,b){var e=a.attr("id");return c.empty(e)&&(b=c.string(b)&&!c.empty(b)?b:"uid-",e=b+ ++d,a.attr("id",e).data("__uniqueId__",!0)),e},b.removeUniqueId=function(a){a.data("__uniqueId__")&&a.removeAttr("id").removeData("__uniqueId__")}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c){if("0.0.8"===b.version){b.transition={};var d=document.createElement("div");b.transition.supported=function(a){var b=a.style;return c.string(b.transition)||c.string(b.WebkitTransition)||c.string(b.MozTransition)||c.string(b.msTransition)||c.string(b.OTransition)}(d),b.transition.end=function(a){var b=a.style;return c.string(b.transition)?"transitionend":c.string(b.WebkitTransition)?"webkitTransitionEnd":c.string(b.MozTransition)?"transitionend":c.string(b.msTransition)?"msTransitionEnd":c.string(b.OTransition)?"oTransitionEnd":null}(d),b.transition.duration=function(a,b){if(b=c.number(b)?b:0,!c.jq(a))return b;var d=a.css("transition-duration");if(/^([\d\.]*)+?(ms|s)#x2F;i.test(d)){var e=d.match(/^([\d\.]*)+?(ms|s)#x2F;i),f=parseFloat(e[1]);return"s"===e[2].toLowerCase()&&(f*=1e3),f}return b},b.transition.start=function(d,e,f,g){var h=a.Deferred();if(d=d.first(),b.transition.supported){var i=d.data("transition_safety");c.hash(i)&&c.number(i.timer)&&(clearTimeout(i.timer),d.removeData("transition_safety").off(b.transition.end+".utils"),i.deferred.reject()),g=c.number(g)?g:b.transition.duration(d)+50,i={deferred:h,timer:setTimeout(function(){d.removeData("transition_safety").off(b.transition.end+".utils"),h.resolve()},g)},d.data("transition_safety",i),d.on(b.transition.end+".utils",function(a){d.is(a.target)&&(clearTimeout(i.timer),d.removeData("transition_safety").off(b.transition.end+".utils"),h.resolve())})}return setTimeout(function(){c.fn(e)?e.apply(d.get(0),[d]):d.toggleClass(e,f),b.transition.supported||h.resolve()},20),h.promise()}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d,e){"0.0.8"===b.version&&(b.Class=function(){},b.Class.extend=function(a){function f(){if(!c.fn(this.construct))throw new SyntaxError('FooGallery.utils.Class objects must be constructed with the "new" keyword.');this.construct.apply(this,arguments)}a=c.hash(a)?a:{};var g=d.create(this.prototype);for(var h in a)a.hasOwnProperty(h)&&e.addOrOverride(g,h,a[h]);return g.construct=c.fn(g.construct)?g.construct:function(){},f.prototype=g,f.prototype.constructor=c.fn(g.__ctor__)?g.__ctor__:f,f.extend=b.Class.extend,f.override=b.Class.override,f},b.Class.override=function(a,b){e.addOrOverride(this.prototype,a,b)})}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.obj,FooGallery.utils.fn),function(a,b,c){if("0.0.8"===b.version){b.Bounds=b.Class.extend({construct:function(){var a=this;a.top=0,a.right=0,a.bottom=0,a.left=0,a.width=0,a.height=0},inflate:function(a){var b=this;return c.number(a)&&(b.top-=a,b.right+=a,b.bottom+=a,b.left-=a,b.width+=2*a,b.height+=2*a),b},intersects:function(a){var b=this;return b.left<=a.right&&a.left<=b.right&&b.top<=a.bottom&&a.top<=b.bottom}});var d;b.getViewportBounds=function(c){d||(d=a(window));var e=new b.Bounds;return e.top=d.scrollTop(),e.left=d.scrollLeft(),e.width=d.width(),e.height=d.height(),e.right=e.left+e.width,e.bottom=e.top+e.height,e.inflate(c),e},b.getElementBounds=function(d){c.jq(d)||(d=a(d));var e=new b.Bounds;if(0!==d.length){var f=d.offset();e.top=f.top,e.left=f.left,e.width=d.width(),e.height=d.height()}return e.right=e.left+e.width,e.bottom=e.top+e.height,e}}}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){"0.0.8"===b.version&&(b.Factory=b.Class.extend({construct:function(){this.registered={}},contains:function(a){return!c.undef(this.registered[a])},load:function(b,e,f){var g,h,i=this,j=d.arg2arr(arguments),k=[],l=[];b=j.shift()||{};for(g in i.registered)if(i.registered.hasOwnProperty(g)){var m=i.registered[g];b.hasOwnProperty(g)&&(h=b[g],c.string(h)&&(h=d.fetch(b[g])),c.fn(h)&&(m={name:g,klass:h,priority:i.registered[g].priority})),k.push(m)}for(g in b)b.hasOwnProperty(g)&&!i.registered.hasOwnProperty(g)&&(h=b[g],c.string(h)&&(h=d.fetch(b[g])),c.fn(h)&&k.push({name:g,klass:h,priority:0}));return k.sort(function(a,b){return b.priority-a.priority}),a.each(k,function(a,b){c.fn(b.klass)&&l.push(d.apply(b.klass,j))}),l},make:function(a,b,e){var f,g=this,h=d.arg2arr(arguments);return a=h.shift(),f=g.registered[a],c.hash(f)&&c.fn(f.klass)?d.apply(f.klass,h):null},names:function(b){b=!!c.boolean(b)&&b;var d,e=[];if(b){var f=[];for(d in this.registered)this.registered.hasOwnProperty(d)&&f.push(this.registered[d]);f.sort(function(a,b){return b.priority-a.priority}),a.each(f,function(a,b){e.push(b.name)})}else for(d in this.registered)this.registered.hasOwnProperty(d)&&e.push(d);return e},register:function(a,b,d){if(!c.string(a)||c.empty(a)||!c.fn(b))return!1;d=c.number(d)?d:0;var e=this.registered[a];return this.registered[a]={name:a,klass:b,priority:c.undef(e)?d:e.priority},!0}}))}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c){if("0.0.8"===a.version){var d=!1;try{d=!!window.localStorage}catch(a){d=!1}a.Debugger=a.Class.extend({construct:function(a){this.key=a,this.enabled=!!d&&!!localStorage.getItem(this.key)},enable:function(){d&&(this.enabled=!0,localStorage.setItem(this.key,this.enabled))},disable:function(){d&&(this.enabled=!1,localStorage.removeItem(this.key))},log:function(a,c){this.enabled&&console.log.apply(console,b.arg2arr(arguments))},logf:function(a,d,e){if(this.enabled){var f=b.arg2arr(arguments);a=f.shift(),d=f.shift(),f.unshift(c.format(a,d)),this.log.apply(this,f)}}})}}(FooGallery.utils,FooGallery.utils.fn,FooGallery.utils.str),function(a,b,c){"0.0.8"===b.version&&(b.Throttle=b.Class.extend({construct:function(a){this.id=null,this.active=!1,this.idle=c.number(a)?a:0},limit:function(a){if(c.fn(a)){this.clear();var b=this;this.active=!0,this.id=setTimeout(function(){b.active=!1,b.id=null,a()},this.idle)}},clear:function(){c.number(this.id)&&(clearTimeout(this.id),this.active=!1,this.id=null)}}))}(FooGallery.utils.$,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d,e){b.debug=new c.Debugger("__FooGallery__"),c.selectify=function(b){if(d.empty(b))return null;if(d.hash(b)){var e,f={};for(var g in b)b.hasOwnProperty(g)&&(e=c.selectify(b[g]))&&(f[g]=e);return f}return d.string(b)||d.array(b)?(d.string(b)&&(b=[b]),a.map(b,function(a){return d.string(a)?"."+a.split(/\s/g).join("."):null}).join(",")):null},b.emptyImage="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b.dataTemplate="__FooGallery__",b.dataItem="__FooGalleryItem__",b.init=function(a,c){return b.template.make(a,c).initialize()},b.initAll=function(c){return e.when(a(".foogallery").map(function(a,d){return b.init(c,d)}).get())},b.parseSrc=function(b,c,e,f,g,h){if(!d.string(b))return null;if(!d.string(f))return b;var i=a.map(f.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(a){return{url:/^\s*(\S*)/.exec(a)[1],w:parseFloat((/\S\s+(\d+)w/.exec(a)||[0,1/0])[1]),h:parseFloat((/\S\s+(\d+)h/.exec(a)||[0,1/0])[1]),x:parseFloat((/\S\s+([\d.]+)x/.exec(a)||[0,1])[1])}});if(!i.length)return b;i.unshift({url:b,w:i[0].w!==1/0&&i[0].h===1/0?c:1/0,h:i[0].h!==1/0&&i[0].w===1/0?e:1/0,x:1});var j,k=window.devicePixelRatio||1,l={w:g*k,h:h*k,x:k};for(j in l)l.hasOwnProperty(j)&&(i=a.grep(i,function(a,b){return function(c){return c[a]>=l[a]||c[a]===b}}(j,Math.max.apply(null,a.map(i,function(a){return a[j]})))));for(j in l)l.hasOwnProperty(j)&&(i=a.grep(i,function(a,b){return function(c){return c[a]===b}}(j,Math.min.apply(null,a.map(i,function(a){return a[j]})))));return i[0].url},a.fn.foogallery=function(c,e){return this.each(function(f,g){if(d.string(c)){var h=a.data(g,b.dataTemplate);if(h instanceof b.Template)switch(c){case"layout":return void h.layout();case"destroy":return void h.destroy()}}else b.template.make(c,g).initialize().then(function(a){d.fn(e)&&e(a)})})}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn),function(a,b,c,d,e,f){b.TemplateFactory=c.Factory.extend({construct:function(){this.registered={}},register:function(a,b,c,e,f,g){var h=this,i=h._super(a,b,g);if(i){var j=h.registered;j[a].opt=d.hash(c)?c:{},j[a].cls=d.hash(e)?e:{},j[a].il8n=d.hash(f)?f:{}}return i},make:function(b,c){c=d.jq(c)?c:a(c),b=f.extend({},b,c.data("foogallery"));var e=this,g=e.type(b,c);return e.contains(g)?(b=e.options(g,b),e._super(g,b,c)):null},type:function(b,e){e=d.jq(e)?e:a(e);var f=this,g=d.hash(b)&&d.hash(b)&&d.string(b.type)&&f.contains(b.type)?b.type:"core";if("core"===g&&e.length>0)for(var h=f.registered,i=f.names(!0),j=0,k=i.length;j<k;j++)if(h.hasOwnProperty(i[j])){var l=i[j],m=h[l].cls;if(d.string(m.container)){var n=c.selectify(m.container);if(e.is(n)){g=i[j];break}}}return g},configure:function(a,b,c,d){var e=this;if(e.contains(a)){var g=e.registered;f.extend(g[a].opt,b),f.extend(g[a].cls,c),f.extend(g[a].il8n,d)}},options:function(a,c){c=f.extend({type:a},c);var e=this,g=e.registered,h=g.core.opt,i=g.core.cls,j=g.core.il8n;return d.hash(c.cls)||(c.cls={}),d.hash(c.il8n)||(c.il8n={}),d.undef(b.filtering)||(c=b.filtering.merge(c)),d.undef(b.paging)||(c=b.paging.merge(c)),"core"!==a&&e.contains(a)?(c=f.extend({},h,g[a].opt,c),c.cls=f.extend({},i,g[a].cls,c.cls),c.il8n=f.extend({},j,g[a].il8n,c.il8n)):(c=f.extend({},h,c),c.cls=f.extend({},i,c.cls),c.il8n=f.extend({},j,c.il8n)),c}}),b.template=new b.TemplateFactory}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e){a.PagingFactory=b.Factory.extend({construct:function(){this.registered={}},register:function(a,b,d,e,f,g,h){var i=this,j=i._super(a,b,h);if(j){var k=i.registered;k[a].ctrl=c.fn(d)?d:null,k[a].opt=c.hash(e)?e:{},k[a].cls=c.hash(f)?f:{},k[a].il8n=c.hash(g)?g:{}}return j},type:function(a){var b,d=this;return c.hash(a)&&c.hash(b=a.paging)&&c.string(b.type)&&d.contains(b.type)?b.type:null},merge:function(a){a=e.extend({},a);var b=this,d=b.type(a),f=b.registered,g=f.default.opt,h=f.default.cls,i=f.default.il8n,j=c.hash(a.paging)?a.paging:{},k=c.hash(a.cls)&&c.hash(a.cls.paging)?e.extend({},a.cls.paging):{},l=c.hash(a.il8n)&&c.hash(a.il8n.paging)?e.extend({},a.il8n.paging):{};return c.hash(a.cls)||(a.cls={}),c.hash(a.il8n)||(a.il8n={}),"default"!==d&&b.contains(d)?(a.paging=e.extend({},g,f[d].opt,j,{type:d}),a.cls=e.extend(a.cls,{paging:h},{paging:f[d].cls},{paging:k}),a.il8n=e.extend(a.il8n,{paging:i},{paging:f[d].il8n},{paging:l})):(a.paging=e.extend({},g,j,{type:d}),a.cls=e.extend(a.cls,{paging:h},{paging:k}),a.il8n=e.extend(a.il8n,{paging:i},{paging:l})),a},configure:function(a,b,c,d){var f=this;if(f.contains(a)){var g=f.registered;e.extend(g[a].opt,b),e.extend(g[a].cls,c),e.extend(g[a].il8n,d)}},hasCtrl:function(a){var b=this,d=b.registered[a];return c.hash(d)&&c.fn(d.ctrl)},makeCtrl:function(a,b,d,e){var f=this,g=f.registered[a];return c.hash(g)&&c.fn(g.ctrl)?new g.ctrl(b,d,e):null}}),a.paging=new a.PagingFactory}(FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e,f){var g=0;b.Template=c.Class.extend({construct:function(e,f){var h=this;h.namespace=".foogallery-"+ ++g,h.$el=d.jq(f)?f:a(f),h.opt=e,h.template=e.template,h.id=h.$el.prop("id")||e.id,h.cls=e.cls,h.il8n=e.il8n,h.sel=c.selectify(h.cls),h.items=b.components.make("items",h),h.pages=d.undef(b.paging)?null:b.paging.make(e.paging.type,h),h.filter=d.undef(b.filtering)?null:b.filtering.make(e.filtering.type,h),h.state=b.components.make("state",h),h._initialize=null,h.initializing=!1,h.initialized=!1,h.destroying=!1,h.destroyed=!1,h._undo={classes:"",style:"",create:!1,children:!1}},initialize:function(f){var g=this;return d.promise(g._initialize)?g._initialize:(f=d.jq(f)?f:a(f),g._initialize=a.Deferred(function(h){if(g.initializing=!0,0===f.length&&0===g.$el.parent().length)return void h.reject("A parent element is required.");0===g.$el.length&&(g.$el=g.create(),g._undo.create=!0),f.length>0&&g.$el.appendTo(f);var i,j=a.Deferred(),k=j.promise();g.$el.length>0&&(i=g.$el.data(b.dataTemplate))instanceof b.Template?k=k.then(function(){return i.destroy().then(function(){g.$el.data(b.dataTemplate,g)})}):g.$el.data(b.dataTemplate,g),k.then(function(){if(g.destroying)return e.rejectWith("destroy in progress");d.empty(g.opt.on)||g.$el.on(g.opt.on),g._undo.classes=g.$el.attr("class"),g._undo.style=g.$el.attr("style"),g.$el.is(g.sel.container)||g.$el.addClass(g.cls.container);var a=c.selectify(g.opt.classes);return null==a||g.$el.is(a)||g.$el.addClass(g.opt.classes),0==g.$el.children().length&&(g.$el.append(g.createChildren()),g._undo.children=!0),g.raise("pre-init").isDefaultPrevented()?e.rejectWith("pre-init default prevented"):void 0}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):g.opt.delay<=0?e.resolved:a.Deferred(function(a){g._delay=setTimeout(function(){g._delay=null,a.resolve()},g.opt.delay)}).promise()}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):g.raise("init").isDefaultPrevented()?e.rejectWith("init default prevented"):g.items.fetch()}).then(function(){if(g.destroying)return e.rejectWith("destroy in progress");if(g.raise("post-init").isDefaultPrevented())return e.rejectWith("post-init default prevented");var b=g.state.parse();g.state.set(d.empty(b)?g.state.initial():b),a(window).on("scroll"+g.namespace,{self:g},g.throttle(g.onWindowScroll,g.opt.throttle)).on("popstate"+g.namespace,{self:g},g.onWindowPopState)}).then(function(){return g.destroying?e.rejectWith("destroy in progress"):(g.raise("first-load"),g.loadAvailable())}).then(function(){if(g.destroying)return e.rejectWith("destroy in progress");g.initializing=!1,g.initialized=!0,g._check(200),g._check(500),g._check(1e3),g._check(2e3),g._check(5e3),g.raise("ready"),h.resolve(g)}).fail(function(a){h.reject(a)}),j.resolve()}).promise().fail(function(a){console.log("initialize failed",g,a),g.destroy()}))},create:function(){var b=this;return a("<div/>",{id:b.id,class:b.cls.container}).addClass(b.opt.classes)},createChildren:function(){return a()},destroy:function(){var b=this;return b.destroyed?e.resolved:(b.destroying=!0,a.Deferred(function(a){b.initializing&&d.promise(b._initialize)?b._initialize.always(function(){b.destroying=!1,b._destroy(),a.resolve()}):(b.destroying=!1,b._destroy(),a.resolve())}).promise())},_destroy:function(){var c=this;c.destroyed||(c.raise("destroy"),a(window).off(c.namespace),c.state.destroy(),c.filter&&c.filter.destroy(),c.pages&&c.pages.destroy(),c.items.destroy(),d.empty(c.opt.on)||c.$el.off(c.opt.on),c.raise("destroyed"),c.$el.removeData(b.dataTemplate),d.empty(c._undo.classes)?c.$el.removeAttr("class"):c.$el.attr("class",c._undo.classes),d.empty(c._undo.style)?c.$el.removeAttr("style"):c.$el.attr("style",c._undo.style),c._undo.children&&c.$el.empty(),c._undo.create&&c.$el.remove(),c.$el=c.state=c.items=c.pages=null,c.destroyed=!0,c.initializing=!1,c.initialized=!1)},getAvailable:function(){return this.pages?this.pages.available():this.items.available()},loadAvailable:function(){return this.items.load(this.getAvailable())},_check:function(a){a=d.number(a)?a:0;var b=this;setTimeout(function(){!b.initialized||b.destroying&&b.destroyed||b.loadAvailable()},a)},raise:function(c,e){if(!d.string(c)||d.empty(c))return null;e=d.array(e)?e:[];var g=this,h=c.split(".")[0],i=f.camel("on-"+h),j=a.Event(h+".foogallery");return e.unshift(g),g.$el.trigger(j,e),b.debug.logf("{id}|{name}:",{id:g.id,name:h},e),d.fn(g[i])&&(e.unshift(j),g[i].apply(g.$el.get(0),e)),j},layout:function(){var a=this;null!==a._initialize&&a.raise("layout")},throttle:function(a,b){var c=Date.now();return function(){if(c+b-Date.now()<0){var d=e.arg2arr(arguments);a.apply(this,d),c=Date.now()}}},onWindowPopState:function(a){var b=a.data.self,c=a.originalEvent.state;d.empty(c)||c.id!==b.id||(b.state.set(c),b.loadAvailable())},onWindowScroll:function(a){a.data.self.loadAvailable()}}),b.template.register("core",b.Template,{id:null,type:"core",classes:"",on:{},lazy:!0,viewport:200,items:[],delay:100,throttle:50,timeout:6e4,srcset:"data-srcset",src:"data-src",template:{}},{container:"foogallery"},{},-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.str),function(a,b){a.Component=b.Class.extend({construct:function(a){this.tmpl=a},destroy:function(){this.tmpl=null}}),a.components=new b.Factory}(FooGallery,FooGallery.utils),function(a,b,c,d){b.State=b.Component.extend({construct:function(a){var b=this;b._super(a),b.apiEnabled=!!window.history&&!!history.replaceState,b.opt=b.tmpl.opt.state,b.enabled=b.opt.enabled,b.pushOrReplace=b.isPushOrReplace(b.opt.pushOrReplace)?b.opt.pushOrReplace:"replace";var c=d.escapeRegExp(b.tmpl.id),e=d.escapeRegExp(b.opt.values),f=d.escapeRegExp(b.opt.pair);b.regex={exists:new RegExp("^#"+c+"\\"+e+".+?"),values:new RegExp("(\\w+)"+f+"([^"+e+"]+)","g")}},destroy:function(){var a=this;a.clear(),a.opt=a.regex={},a._super()},isPushOrReplace:function(b){return-1!==a.inArray(b,["push","replace"])},exists:function(){return this.regex.exists.test(location.hash)&&this.regex.values.test(location.hash)},parse:function(){var b=this,d={};if(b.exists())if(b.enabled){d.id=b.tmpl.id;var e=location.hash.match(b.regex.values);a.each(e,function(e,f){var g=f.split(b.opt.pair);2===g.length&&(d[g[0]]=-1===g[1].indexOf(b.opt.array)?decodeURIComponent(g[1]):a.map(g[1].split(b.opt.array),function(a){return decodeURIComponent(a)}),c.string(d[g[0]])&&!isNaN(d[g[0]])&&(d[g[0]]=parseInt(d[g[0]])))})}else b.apiEnabled?history.replaceState(null,"",location.pathname+location.search):location.hash="#";return d},hashify:function(b){var d=this;if(c.hash(b)){var e=[];return a.each(b,function(b,f){c.empty(f)||"id"===b||(f=c.array(f)?a.map(f,function(a){return encodeURIComponent(a)}).join("+"):encodeURIComponent(f),e.push(b+d.opt.pair+f))}),e.length>0&&e.unshift("#"+d.tmpl.id),e.join(d.opt.values)}return""},replace:function(a){var b=this;if(b.enabled&&b.apiEnabled){a.id=b.tmpl.id;var d=b.hashify(a),e=c.empty(d);history.replaceState(e?null:a,"",e?location.pathname+location.search:d)}},push:function(a){var b=this;if(b.enabled&&b.apiEnabled){a.id=b.tmpl.id;var d=b.hashify(a),e=c.empty(d);history.pushState(e?null:a,"",e?location.pathname+location.search:d)}},update:function(a,b){var c=this;c.enabled&&c.apiEnabled&&(b=c.isPushOrReplace(b)?b:c.pushOrReplace,c[b](a))},clear:function(){this.exists()&&this.replace({})},initial:function(){var a=this,b=a.tmpl,d={};return b.filter&&!c.empty(b.filter.current)&&(d.f=b.filter.current),b.pages&&b.pages.current>1&&(d.p=b.pages.current),d},get:function(a){var d=this,e=d.tmpl,f={};return a instanceof b.Item&&(f.i=a.id),e.filter&&!c.empty(e.filter.current)&&(f.f=e.filter.current),e.pages&&e.pages.isValid(e.pages.current)&&(f.p=e.pages.current),f},set:function(a){var b=this,d=b.tmpl;if(c.hash(a)){d.items.reset();var e=d.items.get(a.i);if(d.filter){d.filter.rebuild();var f=c.empty(a.f)?[]:a.f;d.filter.set(f,!1)}if(d.pages){d.pages.rebuild();var g=d.pages.number(a.p);e&&!d.pages.contains(g,e)&&(g=d.pages.find(e),g=0!==g?g:1),d.pages.set(g,!c.empty(a),!1),e&&d.pages.contains(g,e)&&e.scrollTo()}else d.items.detach(d.items.all()),d.items.create(d.items.available(),!0),e&&e.scrollTo();c.empty(a.i)||(a.i=null,b.replace(a))}}}),b.template.configure("core",{state:{enabled:!1,pushOrReplace:"replace",values:"/",pair:":",array:"+"}}),b.components.register("state",b.State)}(FooGallery.$,FooGallery,FooGallery.utils.is,FooGallery.utils.str),function(a,b,c,d,e,f){b.Item=b.Component.extend({construct:function(a,b){var c=this;c._super(a),c.cls=a.cls.item,c.il8n=a.il8n.item,c.sel=a.sel.item,c.opt=f.extend({},a.opt.item,b),c.isAttached=!1,c.isCreated=!1,c.isLoading=!1,c.isLoaded=!1,c.isError=!1,c.isParsed=!1,c.$el=null,c.$inner=null,c.$anchor=null,c.$image=null,c.$caption=null,c.type=c.opt.type,c.id=c.opt.id,c.href=c.opt.href,c.src=c.opt.src,c.srcset=c.opt.srcset,c.width=c.opt.width,c.height=c.opt.height,c.title=c.opt.title,c.alt=c.opt.alt,c.caption=d.empty(c.opt.caption)?c.title:c.opt.caption,c.description=d.empty(c.opt.description)?c.alt:c.opt.description,c.attr=c.opt.attr,c.tags=c.opt.tags,c.maxWidth=c.opt.maxWidth,c.maxCaptionLength=c.opt.maxCaptionLength,c.maxDescriptionLength=c.opt.maxDescriptionLength,c.showCaptionTitle=c.opt.showCaptionTitle,c.showCaptionDescription=c.opt.showCaptionDescription,c._thumbUrl=null,c._placeholder=null,c._load=null,c._undo={classes:"",style:"",loader:!1,placeholder:!1}},destroy:function(){var a=this;return a.tmpl.raise("destroy-item").isDefaultPrevented()||(a.doDestroyItem(),a._super()),null===a.tmpl},doDestroyItem:function(){var a=this;a.isParsed?(a.append(),d.empty(a._undo.classes)?a.$el.removeAttr("class"):a.$el.attr("class",a._undo.classes),d.empty(a._undo.style)?a.$el.removeAttr("style"):a.$el.attr("style",a._undo.style),a._undo.loader&&a.$el.find(a.sel.loader).remove(),a._undo.placeholder&&a.$image.prop("src")==a._placeholder&&a.$image.removeAttr("src")):a.isCreated&&(a.detach(),a.$el.remove())},parse:function(b){var c=this,d=a(b);return!c.tmpl.raise("parse-item",[c,d]).isDefaultPrevented()&&(c.isCreated=d.is(c.sel.elem))&&(c.isParsed=c.doParseItem(d),c.fix()),c.isParsed&&c.tmpl.raise("parsed-item",[c]),c.isParsed},doParseItem:function(c){var e=this,f=e.tmpl.opt,g=e.cls,h=e.sel;return e._undo.classes=c.attr("class")||"",e._undo.style=c.attr("style")||"",e.$el=c.data(b.dataItem,e),e.$inner=e.$el.find(h.inner),e.$anchor=e.$el.find(h.anchor).on("click.foogallery",{self:e},e.onAnchorClick),e.$image=e.$anchor.find(h.image),e.$caption=e.$el.find(h.caption.elem).on("click.foogallery",{self:e},e.onCaptionClick),e.isAttached=e.$el.parent().length>0,e.isLoading=e.$el.is(h.loading),e.isLoaded=e.$el.is(h.loaded),e.isError=e.$el.is(h.error),e.id=e.$anchor.data("id")||e.id,e.tags=e.$anchor.data("tags")||e.tags,e.href=e.$anchor.attr("href")||e.href,e.src=e.$image.attr(f.src)||e.src,e.srcset=e.$image.attr(f.srcset)||e.srcset,e.width=parseInt(e.$image.attr("width"))||e.width,e.height=parseInt(e.$image.attr("height"))||e.height,e.title=e.$image.attr("title")||e.title,e.alt=e.$image.attr("alt")||e.alt,e.caption=e.$anchor.data("title")||e.$anchor.data("captionTitle")||e.caption||e.title,e.description=e.$anchor.data("description")||e.$anchor.data("captionDesc")||e.description||e.alt,d.empty(e.caption)&&(e.caption=a.trim(e.$caption.find(h.caption.title).html())),
10
+ d.empty(e.description)&&(e.description=a.trim(e.$caption.find(h.caption.description).html())),d.number(e.maxCaptionLength)&&e.maxCaptionLength>0&&!d.empty(e.caption)&&d.string(e.caption)&&e.caption.length>e.maxCaptionLength&&e.$caption.find(h.caption.title).html(e.caption.substr(0,e.maxCaptionLength)+"&hellip;"),d.number(e.maxDescriptionLength)&&e.maxDescriptionLength>0&&!d.empty(e.description)&&d.string(e.description)&&e.description.length>e.maxDescriptionLength&&e.$caption.find(h.caption.description).html(e.description.substr(0,e.maxDescriptionLength)+"&hellip;"),0===e.$el.find(h.loader).length&&(e.$el.append(a("<div/>",{class:g.loader})),e._undo.loader=!0),d.empty(e.$image.prop("src"))&&(e._placeholder=e.tmpl.items.placeholder(e.width,e.height),e.$image.prop("src",e._placeholder),e._undo.placeholder=!0),!e.isCreated||!e.isAttached||e.isLoading||e.isLoaded||e.isError||e.$el.addClass(g.idle),!0},create:function(){var a=this;if(!a.isCreated&&d.string(a.href)&&d.string(a.src)&&d.number(a.width)&&d.number(a.height)){a.tmpl.raise("create-item",[a]).isDefaultPrevented()||(a.isCreated=a.doCreateItem()),a.isCreated&&a.tmpl.raise("created-item",[a])}return a.isCreated},doCreateItem:function(){var c=this,e=c.tmpl.opt,f=c.cls,g=c.attr;g.elem.class=f.elem+" "+f.idle,g.inner.class=f.inner,g.anchor.class=f.anchor,g.anchor.href=c.href,g.anchor["data-id"]=c.id,g.anchor["data-title"]=c.caption,g.anchor["data-description"]=c.description,d.empty(c.tags)||(g.anchor["data-tags"]=JSON.stringify(c.tags)),g.image.class=f.image,g.image.src=c.tmpl.items.placeholder(c.width,c.height),g.image[e.src]=c.src,g.image[e.srcset]=c.srcset,g.image.width=c.width,g.image.height=c.height,g.image.title=c.title,g.image.alt=c.alt,c.$el=a("<div/>").attr(g.elem).data(b.dataItem,c),c.$inner=a("<figure/>").attr(g.inner).appendTo(c.$el),c.$anchor=a("<a/>").attr(g.anchor).appendTo(c.$inner).on("click.foogallery",{self:c},c.onAnchorClick),c.$image=a("<img/>").attr(g.image).appendTo(c.$anchor),f=c.cls.caption,g=c.attr.caption,g.elem.class=f.elem,c.$caption=a("<figcaption/>").attr(g.elem).on("click.foogallery",{self:c},c.onCaptionClick);var h=!d.empty(c.caption),i=!d.empty(c.description);if(h||i){g.inner.class=f.inner,g.title.class=f.title,g.description.class=f.description;var j=a("<div/>").attr(g.inner).appendTo(c.$caption);if(h){var k;k=d.number(c.maxCaptionLength)&&c.maxCaptionLength>0&&d.string(c.caption)&&c.caption.length>c.maxCaptionLength?a("<div/>").attr(g.title).html(c.caption.substr(0,c.maxCaptionLength)+"&hellip;"):a("<div/>").attr(g.title).html(c.caption),j.append(k)}if(i){var l;l=d.number(c.maxDescriptionLength)&&c.maxDescriptionLength>0&&d.string(c.description)&&c.description.length>c.maxDescriptionLength?a("<div/>").attr(g.description).html(c.description.substr(0,c.maxDescriptionLength)+"&hellip;"):a("<div/>").attr(g.description).html(c.description),j.append(l)}}return c.$caption.appendTo(c.$inner),0===c.$el.find(c.sel.loader).length&&c.$el.append(a("<div/>",{class:c.cls.loader})),!0},append:function(){var a=this;if(a.isCreated&&!a.isAttached){a.tmpl.raise("append-item",[a]).isDefaultPrevented()||(a.tmpl.$el.append(a.$el),a.fix(),a.isAttached=!0),a.isAttached&&a.tmpl.raise("appended-item",[a])}return a.isAttached},detach:function(){var a=this;if(a.isCreated&&a.isAttached){a.tmpl.raise("detach-item",[a]).isDefaultPrevented()||(a.$el.detach(),a.unfix(),a.isAttached=!1),a.isAttached||a.tmpl.raise("detached-item",[a])}return!a.isAttached},load:function(){var b=this;if(d.promise(b._load))return b._load;if(!b.isCreated||!b.isAttached)return e.rejectWith("not created or attached");if(b.tmpl.raise("load-item",[b]).isDefaultPrevented())return e.rejectWith("default prevented");var c=b.cls,f=b.$image.get(0),g=f.src;return b.isLoading=!0,b.$el.removeClass(c.idle).removeClass(c.loaded).removeClass(c.error).addClass(c.loading),b._load=a.Deferred(function(a){d.undef(window.InstallTrigger)||(f.src=""),f.onload=function(){f.onload=f.onerror=null,b.isLoading=!1,b.isLoaded=!0,b.$el.removeClass(c.loading).addClass(c.loaded),b.unfix(),b.tmpl.raise("loaded-item",[b]),a.resolve(b)},f.onerror=function(){f.onload=f.onerror=null,b.isLoading=!1,b.isError=!0,b.$el.removeClass(c.loading).addClass(c.error),d.string(g)&&b.$image.prop("src",g),b.tmpl.raise("error-item",[b]),a.reject(b)},f.src=b.getThumbUrl()}).promise()},fix:function(){var a=this;if(!a.tmpl.raise("fix-item",[a]).isDefaultPrevented()&&a.isCreated&&!a.isLoading&&!a.isLoaded&&!a.isError){var b=a.width,c=a.height;if(!isNaN(b)&&!isNaN(c)){var e=d.fn(a.maxWidth)?a.maxWidth(a):a.$image.width();e<=0&&(e=b);var f=e/b,g=c*f;a.$image.css({width:e,height:g})}}return a},unfix:function(){var a=this;return!a.tmpl.raise("unfix-item",[a]).isDefaultPrevented()&&a.isCreated&&a.$image.css({width:"",height:""}),a},getThumbUrl:function(a){a=!!d.boolean(a)&&a;var c=this;return!a&&d.string(c._thumbUrl)?c._thumbUrl:c._thumbUrl=b.parseSrc(c.src,c.width,c.height,c.srcset,c.$anchor.innerWidth(),c.$anchor.innerHeight())},scrollTo:function(a){var b=this;if(b.isAttached){var d=b.bounds(),e=c.getViewportBounds();switch(a){case"top":d.left+=d.width/2-e.width/2,d.top-=e.height/5;break;default:d.left+=d.width/2-e.width/2,d.top+=d.height/2-e.height/2}window.scrollTo(d.left,d.top)}return b},bounds:function(){return this.isAttached?c.getElementBounds(this.$el):null},intersects:function(a){return!!this.isAttached&&this.bounds().intersects(a)},onAnchorClick:function(a){var b=a.data.self,c=b.tmpl.state.get(b);b.tmpl.state.update(c)},onCaptionClick:function(b){var c=b.data.self;a(b.target).is(c.sel.caption.all)&&c.$anchor.length>0&&c.$anchor.get(0).click()}}),b.template.configure("core",{item:{type:"item",id:"",href:"",src:"",srcset:"",width:0,height:0,title:"",alt:"",caption:"",description:"",tags:[],maxWidth:null,maxCaptionLength:0,maxDescriptionLength:0,showCaptionTitle:!0,showCaptionDescription:!0,attr:{elem:{},inner:{},anchor:{},image:{},caption:{elem:{},inner:{},title:{},description:{}}}}},{item:{elem:"fg-item",inner:"fg-item-inner",anchor:"fg-thumb",image:"fg-image",loader:"fg-loader",idle:"fg-idle",loading:"fg-loading",loaded:"fg-loaded",error:"fg-error",caption:{elem:"fg-caption",inner:"fg-caption-inner",title:"fg-caption-title",description:"fg-caption-desc"}}},{item:{}}),b.components.register("item",b.Item)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d,e,f){b.Items=b.Component.extend({construct:function(a){var b=this;b._super(a),b.idMap={},b._fetched=null,b._arr=[],b._available=[],b._canvas=document.createElement("canvas");var d=b.tmpl.cls.item.caption;b.tmpl.sel.item.caption.all=c.selectify([d.elem,d.inner,d.title,d.description])},destroy:function(){var b=this,c=b.all(),d=[];c.length>0&&(b.tmpl.raise("destroy-items",[c]),d=a.map(c,function(a){return a.destroy()?a:null}),d.length>0&&b.tmpl.raise("destroyed-items",[d])),b.idMap={},b._canvas=b._fetched=null,b._arr=[],b._available=[],b._super()},fetch:function(b){var c=this;if(!b&&d.promise(c._fetched))return c._fetched;var e=c.tmpl,f=e.sel,g=e.opt.items,h=a.Deferred(),i=c.make(e.$el.find(f.item.elem));return d.empty(g)?(i.push.apply(i,c.make(window[e.id+"-items"])),h.resolve(i)):d.array(g)?(i.push.apply(i,c.make(g)),h.resolve(i)):d.string(g)?a.get(g).then(function(a){i.push.apply(i,c.make(a)),h.resolve(i)},function(a,b,c){console.log("FooGallery: GET items error.",g,a,b,c),h.resolve(i)}):h.resolve(i),h.then(function(a){c.setAll(a)}),c._fetched=h.promise()},all:function(){return this._arr.slice()},count:function(a){return a?this.all().length:this.available().length},available:function(){return this._available.slice()},get:function(a){return!d.empty(a)&&this.idMap[a]?this.idMap[a]:null},setAll:function(a){this._arr=d.array(a)?a:[],this.idMap=this.createIdMap(a),this._available=this.all()},setAvailable:function(a){this._available=d.array(a)?a:[]},reset:function(){this.setAvailable(this.all())},placeholder:function(a,c){return this._canvas&&this._canvas.toDataURL&&d.number(a)&&d.number(c)?(this._canvas.width=a,this._canvas.height=c,this._canvas.toDataURL()):b.emptyImage},loadable:function(b){var e,f=this,g=f.tmpl.opt;return g.lazy&&(e=c.getViewportBounds(g.viewport)),d.array(b)?a.map(b,function(a){return a.isCreated&&a.isAttached&&!a.isLoading&&!a.isLoaded&&!a.isError&&(!g.lazy||g.lazy&&a.intersects(e))?a:null}):[]},creatable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&!a.isCreated?a:null}):[]},appendable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&a.isCreated&&!a.isAttached?a:null}):[]},detachable:function(c){return d.array(c)?a.map(c,function(a){return a instanceof b.Item&&a.isCreated&&a.isAttached?a:null}):[]},jquerify:function(b){return a(a.map(b,function(a){return a.$el.get()}))},make:function(c){var e=this,g=[];if(d.jq(c)||d.array(c)){var h=[],i=a.makeArray(c);if(0===i.length)return g;e.tmpl.raise("make-items",[i]).isDefaultPrevented()||(g=a.map(i,function(a){var c=e.type(a),g=f.extend(d.hash(a)?a:{},{type:c}),i=b.components.make(c,e.tmpl,g);return d.element(a)?i.parse(a)?(h.push(i),i):null:i})),g.length>0&&e.tmpl.raise("made-items",[g]),h.length>0&&e.tmpl.raise("parsed-items",[h])}return g},type:function(c){var e;return d.hash(c)?e=c.type:d.element(c)&&(e=a(c).find(this.tmpl.sel.item.anchor).data("type")),d.string(e)&&b.components.contains(e)?e:"item"},create:function(b,c){var e=this,f=[],g=e.creatable(b);if(g.length>0){e.tmpl.raise("create-items",[g]).isDefaultPrevented()||(f=a.map(g,function(a){return a.create()?a:null})),f.length>0&&e.tmpl.raise("created-items",[f])}return d.boolean(c)&&c?e.append(b):f},append:function(b){var c=this,d=[],e=c.appendable(b);if(e.length>0){c.tmpl.raise("append-items",[e]).isDefaultPrevented()||(d=a.map(e,function(a){return a.append()?a:null})),d.length>0&&c.tmpl.raise("appended-items",[d])}return d},detach:function(b){var c=this,d=[],e=c.detachable(b);if(e.length>0){c.tmpl.raise("detach-items",[e]).isDefaultPrevented()||(d=a.map(e,function(a){return a.detach()?a:null})),d.length>0&&c.tmpl.raise("detached-items",[d])}return d},load:function(b){var c=this;if(b=c.loadable(b),b.length>0){if(!c.tmpl.raise("load-items",[b]).isDefaultPrevented()){var d=a.map(b,function(a){return a.load()});return e.when(d).done(function(a){c.tmpl.raise("loaded-items",[a])})}}return e.resolveWith([])},createIdMap:function(b){var c={};return a.each(b,function(a,b){d.empty(b.id)&&(b.id=""+(a+1)),c[b.id]=b}),c}}),b.components.register("items",b.Items)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is,FooGallery.utils.fn,FooGallery.utils.obj),function(a,b,c,d){b.Paging=b.Component.extend({construct:function(a){var b=this;b._super(a),b.opt=b.tmpl.opt.paging,b.cls=b.tmpl.cls.paging,b.il8n=b.tmpl.il8n.paging,b.sel=b.tmpl.sel.paging,b.pushOrReplace=b.opt.pushOrReplace,b.type=b.opt.type,b.theme=b.opt.theme,b.size=b.opt.size,b.position=b.opt.position,b.scrollToTop=b.opt.scrollToTop,b.current=0,b.total=0,b.ctrls=[],b._arr=[]},destroy:function(){var b=this;b._arr.splice(0,b._arr.length),a.each(b.ctrls.splice(0,b.ctrls.length),function(a,b){b.destroy()}),b._super()},build:function(){var a=this,c=a.tmpl.items.available();a.total=a.size>0&&c.length>0?Math.ceil(c.length/a.size):1;for(var d=0;d<a.total;d++)a._arr.push(c.splice(0,a.size));if(a.total>1&&b.paging.hasCtrl(a.type)){var e,f,g=a.position;"both"!==g&&"top"!==g||(e=b.paging.makeCtrl(a.type,a.tmpl,a,"top"),e.create()&&(e.append(),a.ctrls.push(e))),"both"!==g&&"bottom"!==g||(f=b.paging.makeCtrl(a.type,a.tmpl,a,"bottom"),f.create()&&(f.append(),a.ctrls.push(f)))}},rebuild:function(){var b=this;b.current=0,b.total=0,b._arr.splice(0,b._arr.length),a.each(b.ctrls.splice(0,b.ctrls.length),function(a,b){b.destroy()}),b.build()},all:function(){return this._arr.slice()},available:function(){return this.get(this.current)},controls:function(b){var c=this;c.isValid(b)&&a.each(c.ctrls,function(a,c){c.update(b)})},isValid:function(a){return d.number(a)&&a>0&&a<=this.total},number:function(a){return this.isValid(a)?a:0===this.current?1:this.current},create:function(a,b){var c=this;a=c.number(a);var d=a-1;c.tmpl.items.detach(c.tmpl.items.all()),c.tmpl.items.create(c._arr[d],!0),c.current=a},get:function(a){var b=this;return b.isValid(a)?(a=b.number(a),b._arr[a-1]):[]},set:function(a,b,c,e){var f=this;if(f.isValid(a)){var g,h=f.number(a);if(h!==f.current){var i=f.current,j=function(){if(c=!d.boolean(c)||c,e=!!d.boolean(e)&&e,c&&1===f.current&&!f.tmpl.state.exists()&&(g=f.tmpl.state.get(),f.tmpl.state.update(g,f.pushOrReplace)),f.controls(a),f.create(h,e),c&&(g=f.tmpl.state.get(),f.tmpl.state.update(g,f.pushOrReplace)),f.scrollToTop&&d.boolean(b)&&b){var j=f.get(f.current);j.length>0&&j[0].scrollTo("top")}f.tmpl.raise("after-page-change",[f.current,i,e])};return!f.tmpl.raise("before-page-change",[f.current,h,j,e]).isDefaultPrevented()&&(j(),!0)}}return!1},find:function(b){for(var c=this,d=0,e=c._arr.length;d<e;d++)if(-1!==a.inArray(b,c._arr[d]))return d+1;return 0},contains:function(b,c){var d=this.get(b);return-1!==a.inArray(c,d)},first:function(){this.goto(1)},last:function(){this.goto(this._arr.length)},prev:function(){this.goto(this.current-1)},next:function(){this.goto(this.current+1)},goto:function(a){var b=this;b.set(a,!0)&&b.tmpl.loadAvailable()}}),b.PagingControl=b.Component.extend({construct:function(a,b,c){var d=this;d._super(a),d.pages=b,d.position=c,d.$container=null},create:function(){var b=this;return b.$container=a("<nav/>",{class:b.pages.cls.container}).addClass(b.pages.theme),!0},destroy:function(){var a=this;a.$container.remove(),a.$container=null},append:function(){var a=this;"top"===a.position?a.$container.insertBefore(a.tmpl.$el):a.$container.insertAfter(a.tmpl.$el)},update:function(a){}}),b.paging.register("default",b.Paging,null,{type:"none",theme:"fg-light",size:30,pushOrReplace:"push",position:"none",scrollToTop:!0},{container:"fg-paging-container"},null,-100)}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){b.Dots=b.Paging.extend({}),b.DotsControl=b.PagingControl.extend({construct:function(b,c,d){this._super(b,c,d),this.$container=a(),this.$list=a(),this.$items=a()},create:function(){for(var b,c=this,d=c.pages.cls,e=c.pages.il8n,f=[],g=a("<ul/>",{class:d.list}),h=0,i=c.pages.total;h<i;h++)f.push(b=c.createItem(h+1,e.page)),g.append(b);return c.$list=g,c.$container=a("<nav/>",{class:d.container}).addClass(c.pages.theme).append(g),c.$items=a(a.map(f,function(a){return a.get()})),!0},append:function(){var a=this;"top"===a.position?a.$container.insertBefore(a.tmpl.$el):a.$container.insertAfter(a.tmpl.$el)},destroy:function(){var b=this,c=b.pages.sel;b.$list.find(c.link).off("click.foogallery",b.onLinkClick),b.$container.remove(),b.$container=a(),b.$list=a(),b.$items=a()},update:function(a){this.setSelected(a-1)},setSelected:function(b){var c=this,e=c.pages.cls,f=c.pages.il8n,g=c.pages.sel;c.$items.filter(g.selected).removeClass(e.selected).each(function(b,c){var e=a(c),f=e.data("label"),h=e.find(g.reader);d.string(f)&&0!==h.length&&h.html(f)}),c.$items.eq(b).addClass(e.selected).each(function(b,c){var e=a(c),h=e.find(g.reader),i=h.html();d.string(i)&&0!==h.length&&(e.data("label",i),h.html(f.current))})},createItem:function(b,c,e,f,g){e=d.string(e)?e:b,c=d.string(c)?c:"";var h=this,i=h.pages.opt,j=h.pages.cls,k=a("<a/>",{class:j.link,href:"#page-"+b}).html(e).on("click.foogallery",{self:h,page:b},h.onLinkClick);d.empty(c)||k.attr("title",c.replace(/\{PAGE}/g,b).replace(/\{LIMIT}/g,i.limit+"")),g=d.string(g)?g:c,d.empty(g)||k.prepend(a("<span/>",{class:j.reader,text:g.replace(/\{PAGE}/g,"").replace(/\{LIMIT}/g,i.limit+"")}));var l=a("<li/>",{class:j.item}).append(k);return f=d.string(f)?f:"",d.empty(f)||l.addClass(f),l},onLinkClick:function(b){b.preventDefault();var c=b.data.self,d=b.data.page,e=c.pages.sel;a(this).closest(e.item).is(e.disabled)||(c.pages.set(d,!0),c.tmpl.loadAvailable())}}),b.paging.register("dots",b.Dots,b.DotsControl,{type:"dots",position:"both",pushOrReplace:"push"},{list:"fg-dots",item:"fg-dot-item",link:"fg-dot-link",disabled:"fg-disabled",selected:"fg-selected",visible:"fg-visible",reader:"fg-sr-only"},{current:"Current page",page:"Page {PAGE}"})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.DefaultTemplate=b.Template.extend({}),b.template.register("default",b.DefaultTemplate,null,{container:"foogallery fg-default"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.MasonryTemplate=b.Template.extend({construct:function(a,b){this._super(a,b),this.masonry=null,this.style=null,this.$columnWidth=null},getStylesheet:function(){var a=this;return null===a.style&&(a.style=document.createElement("style"),a.style.appendChild(document.createTextNode("")),document.head.appendChild(a.style)),a.style.sheet},onPreInit:function(b,c){var e=c.sel,f=c.cls;f.layouts=a.map(f.layout,function(a){return a}).join(" ");for(var g=a.map(f.layout,function(a,b){return{key:b,value:a}}),h=0,i=g.length;h<i;h++)if(c.$el.hasClass(g[h].value)){c.template.layout=g[h].key;break}d.string(f.layout[c.template.layout])||(c.template.layout="col4");var j,k,l="fixed"===c.template.layout;if(c.template.isFitWidth=l,c.template.percentPosition=!l,c.template.transitionDuration=0,c.template.itemSelector=e.item.elem,c.$el.removeClass(f.layouts).addClass(f.layout[c.template.layout]),l||(0===c.$el.find(e.gutterWidth).length&&c.$el.prepend(a("<div/>").addClass(f.gutterWidth)),c.template.gutter=e.gutterWidth),0===c.$el.find(e.columnWidth).length&&c.$el.prepend(a("<div/>").addClass(f.columnWidth)),l&&d.number(c.template.columnWidth)){var m=c.$el.find(e.columnWidth).width(c.template.columnWidth);j=c.getStylesheet(),k="#"+c.id+e.container+" "+e.item.elem+" { width: "+m.outerWidth()+"px; }",j.insertRule(k,0)}c.template.columnWidth=e.columnWidth,l&&d.number(c.template.gutter)&&(j=c.getStylesheet(),k="#"+c.id+e.container+" "+e.item.elem+" { margin-bottom: "+c.template.gutter+"px; }",j.insertRule(k,0)),c.masonry=new Masonry(c.$el.get(0),c.template)},onPostInit:function(a,b){b.masonry.layout()},onFirstLoad:function(a,b){b.masonry.layout()},onReady:function(a,b){b.masonry.layout()},onDestroy:function(a,b){b.$el.find(b.sel.columnWidth).remove(),b.$el.find(b.sel.gutterWidth).remove(),b.style&&b.style.parentNode&&b.style.parentNode.removeChild(b.style)},onDestroyed:function(a,b){b.masonry instanceof Masonry&&b.masonry.destroy()},onLayout:function(a,b){b.masonry.layout()},onParsedItems:function(a,b,c){b.masonry.layout()},onAppendedItems:function(a,b,c){c=b.items.jquerify(c),c=b.masonry.addItems(c),b.masonry.layoutItems(c,!0)},onDetachItem:function(a,b,c){a.isDefaultPrevented()||(a.preventDefault(),b.masonry.remove(c.$el),c.isAttached=!1,c.unfix())},onDetachedItems:function(a,b,c){b.masonry.layout()},onLoadedItems:function(a,b,c){b.masonry.layout()}}),b.template.register("masonry",b.MasonryTemplate,{template:{initLayout:!1,isInitLayout:!1,layout:"col4"}},{container:"foogallery fg-masonry",columnWidth:"fg-column-width",gutterWidth:"fg-gutter-width",layout:{fixed:"fg-masonry-fixed",col2:"fg-masonry-2col",col3:"fg-masonry-3col",col4:"fg-masonry-4col",col5:"fg-masonry-5col"}})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c,d){b.Justified=c.Class.extend({construct:function(c,d){this.$el=a(c),this.options=a.extend(!0,{},b.Justified.defaults,d),this._items=[]},init:function(){var b=this;d.string(b.options.maxRowHeight)&&(b.options.maxRowHeight.indexOf("%")?b.options.maxRowHeight=b.options.rowHeight*(parseInt(b.options.maxRowHeight)/100):b.options.maxRowHeight=parseInt(b.options.maxRowHeight)),a(window).on("resize.justified",{self:b},b.onWindowResize)},destroy:function(){a(window).off("resize.justified"),this.$el.removeAttr("style")},parse:function(){var b=this,c=b.$el.is(":visible"),d=a("<div/>",{class:b.$el.attr("class")}).css({position:"absolute",top:0,left:-9999,visibility:"hidden",maxWidth:b.getContainerWidth()}).appendTo("body");return b._items=b.$el.find(b.options.itemSelector).removeAttr("style").removeClass("fg-positioned").map(function(e,f){var g,h=a(f),i=0,j=0;if(c)i=h.outerWidth(),j=h.outerHeight();else{var k=h.clone();k.appendTo(d),i=k.outerWidth(),j=k.outerHeight()}return g=b.options.rowHeight/j,{index:e,width:i*g,height:b.options.rowHeight,top:0,left:0,$item:h}}).get(),d.remove(),b._items},round:function(a){return Math.round(a)},getContainerWidth:function(){var a=this;return a.$el.is(":visible")?a.$el.width():a.$el.parents(":visible:first").innerWidth()},layout:function(a,b){a=!!d.boolean(a)&&a,b=!d.boolean(b)||b,(a||0===this._items.length)&&this.parse();for(var c,e=this,f=e.getContainerWidth(),g=e.rows(f),h=0,i=0,j=g.length;i<j;i++)c=g[i],h=i===j-1?e.lastRow(c,f,h):e.justify(c,f,h),e.render(c);e.$el.height(h),b&&e.getContainerWidth()<f&&e.layout(!1,!1)},render:function(a){for(var b,c=0,d=a.items.length;c<d;c++)b=a.items[c],a.visible?b.$item.css({width:b.width,height:b.height,top:b.top,left:b.left,display:"",maxHeight:this.options.maxRowHeight>0?this.options.maxRowHeight:""}).addClass("fg-positioned"):b.$item.css("display","none")},lastRow:function(a,b,c){var d=this;switch(d.options.lastRow){case"hide":a.visible=!1;break;case"justify":c=d.justify(a,b,c);break;case"nojustify":c=a.width/b>d.options.justifyThreshold?d.justify(a,b,c):d.position(a,b,c,"left");break;case"right":case"center":case"left":c=d.position(a,b,c,d.options.lastRow);break;default:c=d.position(a,b,c,"left")}return c},justify:function(a,b,c){var d=this,e=0,f=d.options.margins*(a.items.length-1),g=(b-f)/a.width;a.index>0&&(c+=d.options.margins),a.top=c,a.width=d.round(a.width*g),a.height=d.round(a.height*g);for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.width=d.round(h.width*g),h.height=d.round(h.height*g),h.top=c,i>0&&(e+=d.options.margins),h.left=e,e+=h.width;return c+(a.height>d.options.maxRowHeight?d.options.maxRowHeight:a.height)},position:function(a,b,c,d){var e=this,f=a.items[a.items.length-1],g=b-(f.left+f.width);a.index>0&&(c+=e.options.margins),a.top=c;for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.top=c,"center"===d?h.left+=g/2:"right"===d&&(h.left+=g);return c+a.height},items:function(){return a.map(this._items,function(a){return{index:a.index,width:a.width,height:a.height,$item:a.$item,top:a.top,left:a.left}})},rows:function(a){for(var b=this,c=b.items(),d=[],e=c.length>0,f=-1,g=0;e;){f+=1,f>0&&(g+=b.options.margins);for(var h,i,j,k={index:f,visible:!0,top:g,width:0,height:b.options.rowHeight,items:[]},l=[],m=0,n=0,o=c.length;n<o&&(i=c[n],!((h=k.width+i.width)>a&&n>0));n++)h>a&&0==n&&(h=a,j=a/i.width,i.width=b.round(i.width*j),i.height=b.round(i.height*j),k.height=i.height),i.top=k.top,n>0&&(m+=b.options.margins),i.left=m,m+=i.width,k.width=h,k.items.push(i),l.push(n);if(0===l.length){e=!1;break}l.sort(function(a,b){return b-a});for(var p=0,q=l.length;p<q;p++)c.splice(l[p],1);d.push(k),e=c.length>0}return d},onWindowResize:function(a){a.data.self.layout()}}),b.Justified.defaults={itemSelector:".fg-item",rowHeight:150,maxRowHeight:"200%",margins:0,lastRow:"center",justifyThreshold:.5}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.JustifiedTemplate=b.Template.extend({onPreInit:function(a,c){c.justified=new b.Justified(c.$el.get(0),c.template)},onInit:function(a,b){b.justified.init()},onFirstLoad:function(a,b){b.justified.layout(!0)},onReady:function(a,b){b.justified.layout(!0)},onDestroy:function(a,b){b.justified.destroy()},onLayout:function(a,b){b.justified.layout(!0)},onParsedItems:function(a,b,c){b.justified.layout(!0)},onAppendedItems:function(a,b,c){b.justified.layout(!0)},onDetachedItems:function(a,b,c){b.justified.layout(!0)}}),b.template.register("justified",b.JustifiedTemplate,null,{container:"foogallery fg-justified"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.Portfolio=c.Class.extend({construct:function(c,d){this.$el=a(c),this.options=a.extend(!0,{},b.Portfolio.defaults,d),this._items=[]},init:function(){var b=this;a(window).on("resize.portfolio",{self:b},b.onWindowResize)},destroy:function(){a(window).off("resize.portfolio"),this.$el.removeAttr("style")},parse:function(){var b=this,c=b.$el.is(":visible"),d=a("<div/>",{class:b.$el.attr("class")}).css({position:"absolute",top:0,left:-9999,visibility:"hidden",maxWidth:b.getContainerWidth()}).appendTo("body");return b._items=b.$el.find(".fg-item").removeAttr("style").removeClass("fg-positioned").map(function(b,e){var f=a(e),g=f.find(".fg-thumb"),h=f.find(".fg-image"),i=0,j=0;if(f.find(".fg-caption").css("max-width",parseFloat(h.attr("width"))),h.css({width:h.attr("width"),height:h.attr("height")}),c)i=f.outerWidth(),j=f.outerHeight();else{var k=f.clone();k.appendTo(d),i=k.outerWidth(),j=k.outerHeight()}return h.css({width:"",height:""}),{index:b,width:i,height:j,top:0,left:0,$item:f,$thumb:g}}).get(),d.remove(),b._items},round:function(a){return Math.round(2*a)/2},getContainerWidth:function(){var a=this;return a.$el.is(":visible")?a.$el.width():a.$el.parents(":visible:first").innerWidth()},layout:function(a,b){a=!!d.boolean(a)&&a,b=!d.boolean(b)||b,(a||0===this._items.length)&&this.parse();for(var c,e=this,f=e.getContainerWidth(),g=e.rows(f),h=0,i=0,j=g.length;i<j;i++)c=g[i],h=e.position(c,f,h,e.options.align),e.render(c);e.$el.height(h),b&&e.getContainerWidth()<f&&e.layout(!1,!1)},render:function(a){for(var b,c=0,d=a.items.length;c<d;c++)b=a.items[c],a.visible?b.$item.css({width:b.width,height:a.height,top:b.top,left:b.left,display:""}).addClass("fg-positioned"):b.$item.css("display","none")},position:function(a,b,c,d){var e=this,f=a.items[a.items.length-1],g=b-(f.left+f.width);a.index>0&&(c+=e.options.gutter),a.top=c;for(var h,i=0,j=a.items.length;i<j;i++)h=a.items[i],h.top=c,"center"===d?h.left+=g/2:"right"===d&&(h.left+=g);return c+a.height},items:function(){return a.map(this._items,function(a){return{index:a.index,width:a.width,height:a.height,$item:a.$item,$thumb:a.$thumb,top:a.top,left:a.left}})},rows:function(a){for(var b=this,c=b.items(),d=[],e=c.length>0,f=-1,g=0;e;){f+=1,f>0&&(g+=b.options.gutter);for(var h,i,j,k={index:f,visible:!0,top:g,width:0,height:0,items:[]},l=[],m=0,n=0,o=c.length;n<o&&(i=c[n],!((h=k.width+i.width)>a&&n>0));n++)h>a&&0==n&&(h=a,j=a/i.width,i.width=b.round(i.width*j),i.height=b.round(i.height*j),k.height=i.height),i.top=k.top,n>0&&(m+=b.options.gutter),n!==o-1&&(h+=b.options.gutter),i.left=m,m+=i.width,i.height>k.height&&(k.height=i.height),k.width=h,k.items.push(i),l.push(n);if(0===l.length){e=!1;break}l.sort(function(a,b){return b-a});for(var p=0,q=l.length;p<q;p++)c.splice(l[p],1);d.push(k),e=c.length>0}return d},onWindowResize:function(a){a.data.self.layout()}}),b.Portfolio.defaults={gutter:40,align:"center"}}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.is),function(a,b,c){b.PortfolioTemplate=b.Template.extend({construct:function(a,b){this._super(a,b),this.portfolio=null},onPreInit:function(a,c){c.portfolio=new b.Portfolio(c.$el.get(0),c.template)},onInit:function(a,b){b.portfolio.init()},onFirstLoad:function(a,b){b.portfolio.layout(!0)},onReady:function(a,b){b.portfolio.layout(!0)},onDestroy:function(a,b){b.portfolio.destroy()},onLayout:function(a,b){b.portfolio.layout(!0)},onParsedItems:function(a,b,c){b.portfolio.layout(!0)},onAppendedItems:function(a,b,c){b.portfolio.layout(!0)},onDetachedItems:function(a,b,c){b.portfolio.layout(!0)}}),b.template.register("simple_portfolio",b.PortfolioTemplate,{gutter:40},{container:"foogallery fg-simple_portfolio"})}(FooGallery.$,FooGallery,FooGallery.utils),function(a,b,c,d){b.ImageViewerTemplate=b.Template.extend({construct:function(b,c){this._super(d.extend({},b,{paging:{pushOrReplace:"replace",theme:"fg-light",type:"default",size:1,position:"none",scrollToTop:!1}}),c),this.$inner=a(),this.$current=a(),this.$total=a(),this.$prev=a(),this.$next=a()},createChildren:function(){var b=this;return a("<div/>",{class:b.cls.inner}).append(a("<div/>",{class:b.cls.innerContainer}),a("<div/>",{class:b.cls.controls}).append(a("<div/>",{class:b.cls.prev}).append(a("<span/>",{text:b.il8n.prev})),a("<label/>",{class:b.cls.count,text:b.il8n.count}).prepend(a("<span/>",{class:b.cls.countCurrent,text:"0"})).append(a("<span/>",{class:b.cls.countTotal,text:"0"})),a("<div/>",{class:b.cls.next}).append(a("<span/>",{text:b.il8n.next}))))},onPreInit:function(a,b){b.$inner=b.$el.find(b.sel.innerContainer),b.$current=b.$el.find(b.sel.countCurrent),b.$total=b.$el.find(b.sel.countTotal),b.$prev=b.$el.find(b.sel.prev),b.$next=b.$el.find(b.sel.next)},onInit:function(a,b){b.template.attachFooBox&&b.$el.on("foobox.previous",{self:b},b.onFooBoxPrev).on("foobox.next",{self:b},b.onFooBoxNext),b.$prev.on("click",{self:b},b.onPrevClick),b.$next.on("click",{self:b},b.onNextClick)},onFirstLoad:function(a,b){b.update()},onDestroy:function(a,b){b.template.attachFooBox&&b.$el.off({"foobox.previous":b.onFooBoxPrev,"foobox.next":b.onFooBoxNext}),b.$prev.off("click",b.onPrevClick),b.$next.off("click",b.onNextClick)},onAppendItem:function(a,b,c){a.preventDefault(),b.$inner.append(c.$el),c.fix(),c.isAttached=!0},onAfterPageChange:function(a,b,c,d,e){e||b.update()},onAfterFilterChange:function(a,b){b.update()},update:function(){this.pages&&(this.$current.text(this.pages.current),this.$total.text(this.pages.total))},prev:function(){this.pages&&(this.template.loop&&1===this.pages.current?this.pages.last():this.pages.prev(),this.update())},next:function(){this.pages&&(this.template.loop&&this.pages.current===this.pages.total?this.pages.first():this.pages.next(),this.update())},onFooBoxPrev:function(a){a.data.self.prev()},onFooBoxNext:function(a){a.data.self.next()},onPrevClick:function(a){a.preventDefault(),a.stopPropagation(),a.data.self.prev()},onNextClick:function(a){a.preventDefault(),a.stopPropagation(),a.data.self.next()}}),b.template.register("image-viewer",b.ImageViewerTemplate,{template:{attachFooBox:!1,loop:!1}},{container:"foogallery fg-image-viewer",inner:"fiv-inner",innerContainer:"fiv-inner-container",controls:"fiv-ctrls",prev:"fiv-prev",next:"fiv-next",count:"fiv-count",countCurrent:"fiv-count-current",countTotal:"fiv-count-total"},{prev:"Prev",next:"Next",count:"of"})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.obj),function(a,b,c){b.ThumbnailTemplate=b.Template.extend({construct:function(b,d){this._super(c.extend({},b,{filtering:{type:"none"},paging:{type:"none"}}),d),this.$hidden=a()},createChildren:function(){var b=this;return b.$hidden=a("<div/>",{class:b.cls.hidden})},onPreInit:function(a,b){b.$hidden=b.$el.find(b.sel.hidden)},onPostInit:function(b,c){for(var d,e=c.items.all().slice(1),f=0,g=e.length;f<g;f++)d=e[f],c.$hidden.append(a("<a/>",{href:d.href,rel:"lightbox["+c.id+"]"}).attr(d.attr.anchor));c.items.setAll(c.items.all().slice(0,1))}}),b.template.register("thumbnail",b.ThumbnailTemplate,null,{container:"foogallery fg-thumbnail",hidden:"fg-st-hidden"})}(FooGallery.$,FooGallery,FooGallery.utils.obj),function(a,b,c,d){b.triggerPostLoad=function(b,c,d,e,f){("first-load"===b.type||c.initialized&&("after-page-change"===b.type&&!f||"after-filter-change"===b.type))&&a("body").trigger("post-load")},b.autoDefaults={on:{"first-load.foogallery after-page-change.foogallery after-filter-change.foogallery":b.triggerPostLoad}},b.auto=function(a){b.autoDefaults=d.merge(b.autoDefaults,a)},a(function(){a('[id^="foogallery-gallery-"]:not(.fg-ready)').foogallery(b.autoDefaults)}),c.ready(function(){a('[id^="foogallery-gallery-"].fg-ready').foogallery(b.autoDefaults)})}(FooGallery.$,FooGallery,FooGallery.utils,FooGallery.utils.obj);
extensions/default-templates/thumbnail/gallery-thumbnail.php CHANGED
@@ -25,7 +25,7 @@ if ( foogallery_gallery_template_setting( 'link_custom_url', '' ) == 'on' ) {
25
$args['link'] = 'custom';
26
}
27
$args['link_attributes'] = array(
28
- 'rel' => 'foobox[' . $current_foogallery->ID . ']'
29
);
30
$foogallery_single_thumbnail_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-single-thumbnail', 'foogallery-lightbox-' . $lightbox, $position );
31
$foogallery_single_thumbnail_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_single_thumbnail_classes ) );
25
$args['link'] = 'custom';
26
}
27
$args['link_attributes'] = array(
28
+ 'rel' => 'lightbox[' . $current_foogallery->ID . ']'
29
);
30
$foogallery_single_thumbnail_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-single-thumbnail', 'foogallery-lightbox-' . $lightbox, $position );
31
$foogallery_single_thumbnail_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_single_thumbnail_classes ) );
foogallery.php CHANGED
@@ -3,7 +3,7 @@
3
/*
4
Plugin Name: FooGallery
5
Description: FooGallery is the most intuitive and extensible gallery management tool ever created for WordPress
6
- Version: 1.4.25
7
Author: FooPlugins
8
Plugin URI: https://foo.gallery
9
Author URI: http://fooplugins.com
@@ -23,7 +23,7 @@ if ( !class_exists( 'FooGallery_Plugin' ) ) {
23
define( 'FOOGALLERY_PATH', plugin_dir_path( __FILE__ ) );
24
define( 'FOOGALLERY_URL', plugin_dir_url( __FILE__ ) );
25
define( 'FOOGALLERY_FILE', __FILE__ );
26
- define( 'FOOGALLERY_VERSION', '1.4.25' );
27
define( 'FOOGALLERY_SETTINGS_VERSION', '2' );
28
require_once FOOGALLERY_PATH . 'includes/constants.php';
29
// Create a helper function for easy SDK access.
3
/*
4
Plugin Name: FooGallery
5
Description: FooGallery is the most intuitive and extensible gallery management tool ever created for WordPress
6
+ Version: 1.4.27
7
Author: FooPlugins
8
Plugin URI: https://foo.gallery
9
Author URI: http://fooplugins.com
23
define( 'FOOGALLERY_PATH', plugin_dir_path( __FILE__ ) );
24
define( 'FOOGALLERY_URL', plugin_dir_url( __FILE__ ) );
25
define( 'FOOGALLERY_FILE', __FILE__ );
26
+ define( 'FOOGALLERY_VERSION', '1.4.27' );
27
define( 'FOOGALLERY_SETTINGS_VERSION', '2' );
28
require_once FOOGALLERY_PATH . 'includes/constants.php';
29
// Create a helper function for easy SDK access.
includes/class-thumbnails.php CHANGED
@@ -57,6 +57,10 @@ if ( !class_exists( 'FooGallery_Thumbnails' ) ) {
57
$height = (int)$args['height'];
58
$crop = (bool)$args['crop'];
59
60
//we can force the use of the originally uploaded full-size image
61
$force_use_original_image = isset( $args['force_use_original_image'] ) && true === $args['force_use_original_image'];
62
57
$height = (int)$args['height'];
58
$crop = (bool)$args['crop'];
59
60
+ if ( 0 === $width && 0 === $height ) {
61
+ return $original_image_src;
62
+ }
63
+
64
//we can force the use of the originally uploaded full-size image
65
$force_use_original_image = isset( $args['force_use_original_image'] ) && true === $args['force_use_original_image'];
66
js/admin-foogallery-attachment-autosave.js CHANGED
@@ -58,11 +58,11 @@
58
59
// if you want to sanitize the data being sent back to the server we can override the original
60
// wp.media.model.Attachment#saveCompat function using the below.
61
- var saveCompat = model.Attachment.prototype.saveCompat;
62
- model.Attachment.prototype.saveCompat = function(data){
63
- console.log("saveCompat", data);
64
- return saveCompat.apply(this, arguments);
65
- };
66
})(
67
jQuery,
68
wp.media.view,
58
59
// if you want to sanitize the data being sent back to the server we can override the original
60
// wp.media.model.Attachment#saveCompat function using the below.
61
+ // var saveCompat = model.Attachment.prototype.saveCompat;
62
+ // model.Attachment.prototype.saveCompat = function(data){
63
+ // console.log("saveCompat", data);
64
+ // return saveCompat.apply(this, arguments);
65
+ // };
66
})(
67
jQuery,
68
wp.media.view,
js/foogallery.admin.min.js CHANGED
@@ -1,6 +1,6 @@
1
/*
2
* FooGallery - The Most Intuitive and Extensible Gallery Creation and Management Tool Ever Created for WordPress
3
- * @version 1.0.23
4
* @link
5
* @copyright Steven Usher & Brad Vincent 2015
6
* @license Released under the GPLv3 license.
1
/*
2
* FooGallery - The Most Intuitive and Extensible Gallery Creation and Management Tool Ever Created for WordPress
3
+ * @version 1.0.25
4
* @link
5
* @copyright Steven Usher & Brad Vincent 2015
6
* @license Released under the GPLv3 license.
languages/foogallery-fa_IR.mo DELETED
Binary file
languages/foogallery-fa_IR.po DELETED
@@ -1,2535 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: FooGallery\n"
4
- "POT-Creation-Date: 2015-11-17 16:15+0330\n"
5
- "PO-Revision-Date: 2015-11-22 16:14+0330\n"
6
- "Last-Translator: \n"
7
- "Language-Team: Brad Vincent <brad@fooplugins.com>\n"
8
- "Language: fa_IR\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.6\n"
13
- "X-Poedit-Basepath: ..\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
- "Plural-Forms: nplurals=1; plural=0;\n"
19
- "X-Poedit-SearchPath-0: .\n"
20
-
21
- #: extensions/albums/admin/class-columns.php:19
22
- #: includes/admin/class-columns.php:23
23
- msgid "Template"
24
- msgstr "فرم آماده"
25
-
26
- #: extensions/albums/admin/class-columns.php:20
27
- #: extensions/nextgen-importer/view-importer.php:188
28
- #: includes/class-posttypes.php:26 includes/class-posttypes.php:37
29
- msgid "Galleries"
30
- msgstr "گالری ها"
31
-
32
- #: extensions/albums/admin/class-columns.php:21
33
- #: includes/admin/class-columns.php:25
34
- msgid "Shortcode"
35
- msgstr "کد کوتاه"
36
-
37
- #: extensions/albums/admin/class-columns.php:62
38
- #: extensions/albums/admin/class-metaboxes.php:216
39
- #: includes/admin/class-columns.php:76
40
- #: includes/admin/class-gallery-metaboxes.php:376
41
- msgid "Shortcode copied to clipboard :)"
42
- msgstr "کد کوتاه در کلیپ برد شما ذخیره شد"
43
-
44
- #: extensions/albums/admin/class-metaboxes.php:48
45
- msgid "Galleries - drag n drop to reorder!"
46
- msgstr "گالری ها - مرتب سازی با کشیدن و رها کردن !"
47
-
48
- #: extensions/albums/admin/class-metaboxes.php:57
49
- #: includes/admin/class-admin.php:62 includes/admin/class-menu.php:30
50
- #: includes/foopluginbase/classes/class-foo-plugin-base.php:296
51
- msgid "Settings"
52
- msgstr "تنظیمات"
53
-
54
- #: extensions/albums/admin/class-metaboxes.php:66
55
- #: includes/admin/class-gallery-metaboxes.php:96
56
- msgid "Custom CSS"
57
- msgstr "استایل (CSS) سفارشی"
58
-
59
- #: extensions/albums/admin/class-metaboxes.php:75
60
- msgid "Album Shortcode"
61
- msgstr "کد کوتاه آلبوم"
62
-
63
- #: extensions/albums/admin/class-metaboxes.php:84
64
- msgid "Album Sorting"
65
- msgstr "مرتب کردن آلبوم ها"
66
-
67
- #: extensions/albums/admin/class-metaboxes.php:177
68
- #: extensions/albums/album-default.php:66
69
- #: includes/admin/class-gallery-editor.php:344
70
- #, php-format
71
- msgid "%s #%s"
72
- msgstr "%s #%s"
73
-
74
- #: extensions/albums/admin/class-metaboxes.php:203
75
- msgid "Paste the above shortcode into a post or page to show the album."
76
- msgstr ""
77
- "این کد کوتاه را کپی کنید و در فرم یا پست خود قرار دهید تا آلبوم در آنجا "
78
- "نشان داده شود."
79
-
80
- #: extensions/albums/admin/class-metaboxes.php:230
81
- msgid ""
82
- "Change the way galleries are sorted within your album. By default, they are "
83
- "sorted in the order you see them."
84
- msgstr ""
85
- "روشی که گالری ها در آلبوم ذخیره شده اند را عوض کنید. به صورت پیشفرض آن ها به "
86
- "ترتیبی ذخیره می شوند که شما آن ها را می بینید."
87
-
88
- #: extensions/albums/admin/class-metaboxes.php:257
89
- msgid "Album Template"
90
- msgstr "نمونه آماده آلبوم"
91
-
92
- #: extensions/albums/admin/class-metaboxes.php:269
93
- msgid ""
94
- "The album template that will be used when the album is output to the "
95
- "frontend."
96
- msgstr "نمونه آماده آلبومی که در خروجی شما استفاده خواهد شد."
97
-
98
- #: extensions/albums/admin/class-metaboxes.php:325
99
- #, php-format
100
- msgid "Add any custom CSS to target this specific album. For example %s"
101
- msgstr ""
102
- "هر نوع استایل سفارشی که می خواهید را در اینجا اضافه کنید که فقط برای این "
103
- "آلبوم استفاده شود. برای مثال : %s"
104
-
105
- #: extensions/albums/class-foogallery-album.php:205
106
- msgid "No galleries"
107
- msgstr "گالری موجود نیست"
108
-
109
- #: extensions/albums/class-foogallery-album.php:207
110
- msgid "1 gallery"
111
- msgstr "یک گالری"
112
-
113
- #: extensions/albums/class-foogallery-album.php:209
114
- #, php-format
115
- msgid "%s galleries"
116
- msgstr "%s گالری"
117
-
118
- #: extensions/albums/class-posttypes.php:26
119
- #: extensions/albums/class-posttypes.php:36
120
- #: extensions/albums/class-posttypes.php:37
121
- #: extensions/nextgen-importer/view-importer.php:189
122
- msgid "Albums"
123
- msgstr "آلبوم ها"
124
-
125
- #: extensions/albums/class-posttypes.php:27
126
- msgid "Album"
127
- msgstr "آلبوم"
128
-
129
- #: extensions/albums/class-posttypes.php:28
130
- msgid "Add Album"
131
- msgstr "اضافه کردن آلبوم"
132
-
133
- #: extensions/albums/class-posttypes.php:29
134
- msgid "Add New Album"
135
- msgstr "اضافه کردن آلبوم جدید"
136
-
137
- #: extensions/albums/class-posttypes.php:30
138
- msgid "Edit Album"
139
- msgstr "ویرایش آلبوم"
140
-
141
- #: extensions/albums/class-posttypes.php:31
142
- msgid "New Album"
143
- msgstr "آلبوم جدید"
144
-
145
- #: extensions/albums/class-posttypes.php:32
146
- msgid "View Album"
147
- msgstr "دیدن آلبوم"
148
-
149
- #: extensions/albums/class-posttypes.php:33
150
- msgid "Search Albums"
151
- msgstr "جستجو در میان آلبوم ها"
152
-
153
- #: extensions/albums/class-posttypes.php:34
154
- msgid "No Albums found"
155
- msgstr "آلبومی پیدا نشد"
156
-
157
- #: extensions/albums/class-posttypes.php:35
158
- msgid "No Albums found in Trash"
159
- msgstr "هیچ آلبومی در سطل آشغال نیست"
160
-
161
- #: extensions/albums/class-posttypes.php:68
162
- #: extensions/albums/class-posttypes.php:71
163
- msgid "Album updated."
164
- msgstr "آلبوم به روز شد"
165
-
166
- #: extensions/albums/class-posttypes.php:69
167
- msgid "Album custom field updated."
168
- msgstr "فیلد سفارشی آلبوم به روز شد"
169
-
170
- #: extensions/albums/class-posttypes.php:70
171
- msgid "Album custom field deleted."
172
- msgstr "فیلد سفارشی آلبوم پاک شد"
173
-
174
- #: extensions/albums/class-posttypes.php:72
175
- #, php-format
176
- msgid "Album restored to revision from %s."
177
- msgstr "آلبوم برای بازبینی از %s بازگردانده شد."
178
-
179
- #: extensions/albums/class-posttypes.php:73
180
- msgid "Album published."
181
- msgstr "آلبوم منتشر شد"
182
-
183
- #: extensions/albums/class-posttypes.php:74
184
- msgid "Album saved."
185
- msgstr "آلبوم ذخیره شد"
186
-
187
- #: extensions/albums/class-posttypes.php:75
188
- msgid "Album submitted."
189
- msgstr "آلبوم ارسال شد"
190
-
191
- #: extensions/albums/class-posttypes.php:76
192
- #, php-format
193
- msgid "Album scheduled for: <strong>%1$s</strong>."
194
- msgstr "آلبوم برای <strong>%1$s</strong> زمان بندی شد."
195
-
196
- #: extensions/albums/class-posttypes.php:76 includes/class-posttypes.php:77
197
- msgid "M j, Y @ G:i"
198
- msgstr "M j, Y @ G:i"
199
-
200
- #: extensions/albums/class-posttypes.php:77
201
- msgid "Album draft updated."
202
- msgstr "پیش نویس آلبوم ذخیره شد."
203
-
204
- #: extensions/albums/class-posttypes.php:97
205
- #, php-format
206
- msgid "%s Album updated."
207
- msgid_plural "%s Albums updated."
208
- msgstr[0] " آلبوم %s به روز شد."
209
-
210
- #: extensions/albums/class-posttypes.php:98
211
- #, php-format
212
- msgid "%s Album not updated, somebody is editing it."
213
- msgid_plural "%s Albums not updated, somebody is editing them."
214
- msgstr[0] " آلبوم %s قابل بروز رسانی نیست. کسی در حال ویرایش آن است ."
215
-
216
- #: extensions/albums/class-posttypes.php:99
217
- #, php-format
218
- msgid "%s Album permanently deleted."
219
- msgid_plural "%s Albums permanently deleted."
220
- msgstr[0] "آلبوم %s به شکل دائمی پاک شد."
221
-
222
- #: extensions/albums/class-posttypes.php:100
223
- #, php-format
224
- msgid "%s Album moved to the Trash."
225
- msgid_plural "%s Albums moved to the Trash."
226
- msgstr[0] "آلبوم %s به سطل آشغال فرستاده شد."
227
-
228
- #: extensions/albums/class-posttypes.php:101
229
- #, php-format
230
- msgid "%s Album restored from the Trash."
231
- msgid_plural "%s Albums restored from the Trash."
232
- msgstr[0] "آلبوم %s از سطل آشغال بازگردانده شد."
233
-
234
- #: extensions/albums/functions.php:31
235
- msgid "Responsive Album Layout"
236
- msgstr "شکل ظاهری واکنشگرا برای آلبوم"
237
-
238
- #: extensions/albums/functions.php:35 extensions/albums/functions.php:154
239
- #: extensions/default-templates/class-default-templates-extension.php:222
240
- msgid "Thumbnail Size"
241
- msgstr "اندازه تصویر بند انگشتی"
242
-
243
- #: extensions/albums/functions.php:36
244
- msgid "Choose the size of your gallery thumbnails."
245
- msgstr "اندازه تصاویر بند انگشتی گالری های خود را انتخاب نمایید"
246
-
247
- #: extensions/albums/functions.php:37 extensions/albums/functions.php:49
248
- #: extensions/albums/functions.php:57 extensions/albums/functions.php:65
249
- #: extensions/albums/functions.php:156 extensions/albums/functions.php:168
250
- #: extensions/albums/functions.php:181 extensions/albums/functions.php:190
251
- #: extensions/albums/functions.php:199
252
- #: extensions/default-templates/class-default-templates-extension.php:34
253
- #: extensions/default-templates/class-default-templates-extension.php:45
254
- #: extensions/default-templates/class-default-templates-extension.php:55
255
- #: extensions/default-templates/class-default-templates-extension.php:71
256
- #: extensions/default-templates/class-default-templates-extension.php:87
257
- #: extensions/default-templates/class-default-templates-extension.php:103
258
- #: extensions/default-templates/class-default-templates-extension.php:340
259
- #: extensions/default-templates/class-default-templates-extension.php:352
260
- #: extensions/default-templates/class-default-templates-extension.php:364
261
- msgid "Thumbnail Settings"
262
- msgstr "تنظیمات بند انگشتی"
263
-
264
- #: extensions/albums/functions.php:47
265
- msgid "Title Background Color"
266
- msgstr "رنگ پس زمینه عنوان"
267
-
268
- #: extensions/albums/functions.php:48
269
- msgid "The color of the title that overlays the album thumbnails"
270
- msgstr "رنگ عنوان که روی تصاویر بند انگشتی می نشیند"
271
-
272
- #: extensions/albums/functions.php:55
273
- msgid "Title Text Color"
274
- msgstr "رنگ نوشته عنوان"
275
-
276
- #: extensions/albums/functions.php:56
277
- msgid "The color of the title text that overlays the album thumbnails"
278
- msgstr "رنگ نوشته عنوان که روی تصاویر بند انگشتی می نشیند."
279
-
280
- #: extensions/albums/functions.php:63
281
- #: extensions/default-templates/class-default-templates-extension.php:130
282
- msgid "Alignment"
283
- msgstr "چینش"
284
-
285
- #: extensions/albums/functions.php:64
286
- msgid "The horizontal alignment of the gallery thumbnails inside the album."
287
- msgstr "چینش افقی برای تصاویر بند انگشتی موجود در آلبوم"
288
-
289
- #: extensions/albums/functions.php:69
290
- #: extensions/default-templates/class-default-templates-extension.php:136
291
- msgid "Left"
292
- msgstr "چپ"
293
-
294
- #: extensions/albums/functions.php:70
295
- #: extensions/default-templates/class-default-templates-extension.php:137
296
- msgid "Center"
297
- msgstr "میانه"
298
-
299
- #: extensions/albums/functions.php:71
300
- #: extensions/default-templates/class-default-templates-extension.php:138
301
- msgid "Right"
302
- msgstr "راست"
303
-
304
- #: extensions/albums/functions.php:76
305
- msgid "\"Back To Album\" Text"
306
- msgstr "متن \"بازگشت به آلبوم\""
307
-
308
- #: extensions/albums/functions.php:77
309
- msgid "The text that is shown at the top of the album when a gallery is shown"
310
- msgstr ""
311
- "متنی که در بالای آلبوم و در زمانی که گالری در حال نشان داده شدن است ، نشان "
312
- "داده خواهد شد."
313
-
314
- #: extensions/albums/functions.php:78 extensions/albums/functions.php:86
315
- #: extensions/albums/functions.php:94 extensions/albums/functions.php:102
316
- msgid "Language Settings"
317
- msgstr "تنظیمات زبان"
318
-
319
- #: extensions/albums/functions.php:84
320
- msgid "\"No Images\" Text"
321
- msgstr "متن \"هیچ تصویری نیست\""
322
-
323
- #: extensions/albums/functions.php:85
324
- msgid ""
325
- "The text that is shown on the gallery caption when there are no images in "
326
- "the gallery."
327
- msgstr "متنی که در گالری ، هنگامی که عکسی موجود نباشد ، نشان داده خواهد شد."
328
-
329
- #: extensions/albums/functions.php:92
330
- msgid "\"1 Image\" Text"
331
- msgstr "متن \"1 عکس\""
332
-
333
- #: extensions/albums/functions.php:93
334
- msgid ""
335
- "The text that is shown on the gallery caption when there is a single image "
336
- "in the gallery."
337
- msgstr ""
338
- "متنی که در گالری ، زمانی که تنها یک عکس در آن موجود باشد ، نشان داده می شود."
339
-
340
- #: extensions/albums/functions.php:100
341
- msgid "\"X images\" Text"
342
- msgstr "متن \" X عدد عکس\" "
343
-
344
- #: extensions/albums/functions.php:101
345
- msgid ""
346
- "The text that is shown on the gallery caption when there are many images in "
347
- "the gallery. \"s%\" will be replaced with the actual count."
348
- msgstr ""
349
- "متنی که در زمان وجود چندین عکس در گالری به نمایش در خواهد آمد ، \"%s\" با "
350
- "تعداد واقعی جایگزین خواهد شد."
351
-
352
- #: extensions/albums/functions.php:108
353
- msgid "Gallery Link Format"
354
- msgstr "فرمت لینک گالری"
355
-
356
- #: extensions/albums/functions.php:109
357
- msgid "The format of the URL for each individual gallery in the album."
358
- msgstr "فرمت پیوند یکتا برای هر گالری موجود در آلبوم."
359
-
360
- #: extensions/albums/functions.php:110 extensions/albums/functions.php:121
361
- #: extensions/albums/functions.php:130
362
- msgid "URL Settings"
363
- msgstr "تنظیمات پیوند های یکتا"
364
-
365
- #: extensions/albums/functions.php:113
366
- msgid "Pretty, e.g. "
367
- msgstr "برای مثال : زیبا"
368
-
369
- #: extensions/albums/functions.php:114
370
- msgid "Querystring e.g. "
371
- msgstr "برای مثال : رشته درخواست"
372
-
373
- #: extensions/albums/functions.php:120
374
- msgid "Please Note"
375
- msgstr "لطف توجه کنید"
376
-
377
- #: extensions/albums/functions.php:124
378
- msgid ""
379
- "If you are getting 404's when clicking on the album galleries, then change "
380
- "to the querystring format. To force your rewrite rules to flush, simply "
381
- "deactivate and activate the albums extension again."
382
- msgstr ""
383
- "اگر شما با کلیک کردن روی گالری های یک آلبوم به خطای 404 مواجه می شوید ، فرمت "
384
- "رشته درخواست را عوض کنید. برای مجبور کردن وردپرس به عوض کردن تنظیمات ، "
385
- "اکستنشن آلبوم ها را یک بار غیر فعال و دوباره فعال نمایید."
386
-
387
- #: extensions/albums/functions.php:128 extensions/albums/functions.php:134
388
- msgid "Remember Scroll Position"
389
- msgstr "موقعیت قرار داشتن اسکرول را به یاد داشته باش"
390
-
391
- #: extensions/albums/functions.php:129
392
- msgid ""
393
- "When a gallery is loaded in your album, the page is refreshed which means "
394
- "the scroll position will be lost ."
395
- msgstr ""
396
- "وقتی یک گالری در آلبوم شما بار گذاری شد، صفحه دوباره ریفرش خواهد شد. این "
397
- "بدان معناست که موقعیت کنونی اسکرول از دست خواهد رفت."
398
-
399
- #: extensions/albums/functions.php:133
400
- msgid "Don't Remember"
401
- msgstr "به خاطر نسپار"
402
-
403
- #: extensions/albums/functions.php:143
404
- msgid "All-In-One Stack Album"
405
- msgstr "انبار فراگیر آلبوم ها"
406
-
407
- #: extensions/albums/functions.php:147
408
- #: extensions/default-templates/class-default-templates-extension.php:108
409
- #: extensions/default-templates/class-default-templates-extension.php:202
410
- #: extensions/default-templates/class-default-templates-extension.php:241
411
- #: extensions/default-templates/class-default-templates-extension.php:317
412
- #: extensions/default-templates/class-default-templates-extension.php:419
413
- #: includes/admin/view-extensions-build-your-own.php:135
414
- msgid "Lightbox"
415
- msgstr "قاب عکس (لایت باکس)"
416
-
417
- #: extensions/albums/functions.php:148
418
- msgid "Choose which lightbox you want to use to display images."
419
- msgstr "انتخاب کنید از کدام قاب عکس برای نشان دادن عکس هایتان استفاده شود."
420
-
421
- #: extensions/albums/functions.php:155
422
- msgid "Choose the size of your image stack thumbnails."
423
- msgstr "اندازه بند انگشتی ها در انبار عکس را انتخاب کنید."
424
-
425
- #: extensions/albums/functions.php:167
426
- msgid "Thumbnail Rotation"
427
- msgstr "دوران دادن بند انگشتی ها"
428
-
429
- #: extensions/albums/functions.php:169
430
- msgid ""
431
- "Choose how thumbnails in each gallery are shown when clicking an image stack."
432
- msgstr ""
433
- "انتخاب کنید که هر تصویر بند انگشتی در هر گالری بعد از کلیک کردن روی تصاویر "
434
- "چگونه دیده شوند."
435
-
436
- #: extensions/albums/functions.php:173 extensions/albums/functions.php:205
437
- msgid "Normal"
438
- msgstr "معمولی"
439
-
440
- #: extensions/albums/functions.php:174
441
- msgid "Random Angles"
442
- msgstr "زاویه های تصادفی"
443
-
444
- #: extensions/albums/functions.php:180
445
- msgid "Thumbnail Gutter"
446
- msgstr "قطره قطره شدن بند انگشتی"
447
-
448
- #: extensions/albums/functions.php:182
449
- msgid "The spacing between each image stack."
450
- msgstr "فاصله بندی بین هر پشته تصاویر"
451
-
452
- #: extensions/albums/functions.php:189
453
- msgid "Expand Delay"
454
- msgstr "تاخیر در باز شدن"
455
-
456
- #: extensions/albums/functions.php:191
457
- msgid "The delay between expanding each image on a image stack."
458
- msgstr "فاصله بین باز شدن هر عکس در یک پشته عکس"
459
-
460
- #: extensions/albums/functions.php:198
461
- msgid "Image Stack Angles"
462
- msgstr "زاویه های تصاویر پشته"
463
-
464
- #: extensions/albums/functions.php:200
465
- msgid "The angle of the images behind the thumbnail in each image stack."
466
- msgstr "زاویه عکس پشت تصویر بند انگشتی در هر پشته تصویر."
467
-
468
- #: extensions/albums/functions.php:204
469
- msgid "Low"
470
- msgstr "کم"
471
-
472
- #: extensions/albums/functions.php:206
473
- msgid "More Than Normal"
474
- msgstr "بیش از حالت معمول"
475
-
476
- #: extensions/albums/functions.php:207
477
- msgid "High"
478
- msgstr "زیاد"
479
-
480
- #: extensions/albums/public/class-foogallery-album-template-loader.php:33
481
- msgid "Could not load the album!"
482
- msgstr "آلبوم بار گذاری نشد !"
483
-
484
- #: extensions/albums/public/class-foogallery-album-template-loader.php:91
485
- msgid "No album template found!"
486
- msgstr "هیچ نمونه آماده ای از آلبوم یافت نشد"
487
-
488
- #: extensions/default-templates/class-default-templates-extension.php:26
489
- msgid "Responsive Image Gallery"
490
- msgstr "گالری تصاویر واکنش گرا"
491
-
492
- #: extensions/default-templates/class-default-templates-extension.php:32
493
- #: extensions/default-templates/class-default-templates-extension.php:338
494
- msgid "Size"
495
- msgstr "اندازه"
496
-
497
- #: extensions/default-templates/class-default-templates-extension.php:33
498
- #: extensions/default-templates/class-default-templates-extension.php:223
499
- msgid "Choose the size of your thumbnails."
500
- msgstr "اندازه تصاویر بند انگشتی را انتخاب نمایید"
501
-
502
- #: extensions/default-templates/class-default-templates-extension.php:44
503
- msgid "Link"
504
- msgstr "لینک"
505
-
506
- #: extensions/default-templates/class-default-templates-extension.php:49
507
- msgid ""
508
- "You can choose to link each thumbnail to the full size image, the image's "
509
- "attachment page, a custom URL, or you can choose to not link to anything."
510
- msgstr ""
511
- "شما می توانید لینک هر بند انگشتی به تصویر کامل را انتخاب کنید ، صفحه رسانه "
512
- "عکس ، یک پیوند سفارشی و یا حتی می توانید این بندانگشتی ها را به هیچ چیزی "
513
- "پیوند ندهید."
514
-
515
- #: extensions/default-templates/class-default-templates-extension.php:53
516
- msgid "Border Style"
517
- msgstr "ریخت حاشیه ها و مرز ها"
518
-
519
- #: extensions/default-templates/class-default-templates-extension.php:54
520
- msgid "The border style for each thumbnail in the gallery."
521
- msgstr "ریخت حاشیه هر بند انگشتی در گالری"
522
-
523
- #: extensions/default-templates/class-default-templates-extension.php:59
524
- msgid "Square white border with shadow"
525
- msgstr "حاشیه سفید مربعی شکل به همراه سایه"
526
-
527
- #: extensions/default-templates/class-default-templates-extension.php:60
528
- msgid "Circular white border with shadow"
529
- msgstr "حاشیه سفید دایره ای شکل به همراه سایه"
530
-
531
- #: extensions/default-templates/class-default-templates-extension.php:61
532
- msgid "Square Black"
533
- msgstr "مربع سیاه"
534
-
535
- #: extensions/default-templates/class-default-templates-extension.php:62
536
- msgid "Circular Black"
537
- msgstr "دایره سیاه"
538
-
539
- #: extensions/default-templates/class-default-templates-extension.php:63
540
- msgid "Square Inset"
541
- msgstr "مربع داخلی"
542
-
543
- #: extensions/default-templates/class-default-templates-extension.php:64
544
- msgid "Plain Rounded"
545
- msgstr "تصویر معمولی با حاشیه های گرد"
546
-
547
- #: extensions/default-templates/class-default-templates-extension.php:65
548
- msgid "Plain"
549
- msgstr "تصویر ساده"
550
-
551
- #: extensions/default-templates/class-default-templates-extension.php:70
552
- msgid "Hover Effect Type"
553
- msgstr "نوع جلوه هاور"
554
-
555
- #: extensions/default-templates/class-default-templates-extension.php:75
556
- msgid "Icon"
557
- msgstr "آیکون"
558
-
559
- #: extensions/default-templates/class-default-templates-extension.php:76
560
- msgid "Dark Tint"
561
- msgstr "رنگ تیره"
562
-
563
- #: extensions/default-templates/class-default-templates-extension.php:77
564
- msgid "Colorize"
565
- msgstr "رنگی کردن"
566
-
567
- #: extensions/default-templates/class-default-templates-extension.php:78
568
- #: extensions/default-templates/class-default-templates-extension.php:383
569
- #: includes/admin/class-gallery-metabox-fields.php:256
570
- msgid "None"
571
- msgstr "هیچکدام"
572
-
573
- #: extensions/default-templates/class-default-templates-extension.php:81
574
- msgid "The type of hover effect the thumbnails will use."
575
- msgstr "نوعی از جلوه هاور که بندانگشتی ها استفاده خواهند کرد"
576
-
577
- #: extensions/default-templates/class-default-templates-extension.php:85
578
- msgid "Icon Hover Effect"
579
- msgstr "جلوه هاور آیکون"
580
-
581
- #: extensions/default-templates/class-default-templates-extension.php:86
582
- msgid ""
583
- "When the hover effect type of Icon is chosen, you can choose which icon is "
584
- "shown when you hover over each thumbnail."
585
- msgstr ""
586
- "وقتی نوع جلوه هاور آیکون انتخاب شد ، شما می توانید انتخاب کنید کدام آیکون در "
587
- "هنگام عبور از روی تصویر بند انگشتی نشان داده شود."
588
-
589
- #: extensions/default-templates/class-default-templates-extension.php:91
590
- msgid "Zoom"
591
- msgstr "بزرگ نمایی"
592
-
593
- #: extensions/default-templates/class-default-templates-extension.php:92
594
- msgid "Zoom 2"
595
- msgstr "بزرگنمایی 2"
596
-
597
- #: extensions/default-templates/class-default-templates-extension.php:93
598
- msgid "Zoom 3"
599
- msgstr "بزرگنمایی 3"
600
-
601
- #: extensions/default-templates/class-default-templates-extension.php:94
602
- msgid "Plus"
603
- msgstr "به علاوه"
604
-
605
- #: extensions/default-templates/class-default-templates-extension.php:95
606
- msgid "Cirlce Plus"
607
- msgstr "دایره +"
608
-
609
- #: extensions/default-templates/class-default-templates-extension.php:96
610
- msgid "Eye"
611
- msgstr "چشم"
612
-
613
- #: extensions/default-templates/class-default-templates-extension.php:101
614
- #: includes/admin/view-extensions-popup.php:53
615
- msgid "Preview"
616
- msgstr "پیش نمایش"
617
-
618
- #: extensions/default-templates/class-default-templates-extension.php:102
619
- msgid "This is what your gallery thumbnails will look like."
620
- msgstr "این چیزی است که بیننده از تصاویر بند انگشتی شما خواهد دید"
621
-
622
- #: extensions/default-templates/class-default-templates-extension.php:109
623
- #: extensions/default-templates/class-default-templates-extension.php:118
624
- #: extensions/default-templates/class-default-templates-extension.php:132
625
- #: extensions/default-templates/class-default-templates-extension.php:420
626
- #: includes/admin/class-gallery-metaboxes.php:68
627
- msgid "Gallery Settings"
628
- msgstr "تنظیمات گالری"
629
-
630
- #: extensions/default-templates/class-default-templates-extension.php:110
631
- msgid ""
632
- "Choose which lightbox you want to use. The lightbox will only work if you "
633
- "set the thumbnail link to \"Full Size Image\"."
634
- msgstr ""
635
- "انتخاب کنید می خواهید از کدام قاب عکس(لایت باکس) استفاده کنید. این قالب فقط "
636
- "وقتی نمایان خواهد شد که شما تصاویر بندانگشتی را به \"تصویر کامل\" خودشان "
637
- "لینک کرده باشید."
638
-
639
- #: extensions/default-templates/class-default-templates-extension.php:115
640
- msgid "Spacing"
641
- msgstr "فاصله ها"
642
-
643
- #: extensions/default-templates/class-default-templates-extension.php:116
644
- msgid "The spacing or gap between thumbnails in the gallery."
645
- msgstr "فاصله های بین تصاویر بند انگشتی در گالری"
646
-
647
- #: extensions/default-templates/class-default-templates-extension.php:121
648
- msgid "5 pixels"
649
- msgstr "5 پیکسل"
650
-
651
- #: extensions/default-templates/class-default-templates-extension.php:122
652
- msgid "10 pixels"
653
- msgstr "10 پیکسل"
654
-
655
- #: extensions/default-templates/class-default-templates-extension.php:123
656
- msgid "15 pixels"
657
- msgstr "15 پیکسل"
658
-
659
- #: extensions/default-templates/class-default-templates-extension.php:124
660
- msgid "20 pixels"
661
- msgstr "20 پیکسل"
662
-
663
- #: extensions/default-templates/class-default-templates-extension.php:125
664
- msgid "25 pixels"
665
- msgstr "25 پیکسل"
666
-
667
- #: extensions/default-templates/class-default-templates-extension.php:131
668
- msgid "The horizontal alignment of the thumbnails inside the gallery."
669
- msgstr "چینش افقی برای تصاویر بند انگشتی موجود در گالری"
670
-
671
- #: extensions/default-templates/class-default-templates-extension.php:146
672
- msgid "Masonry Image Gallery"
673
- msgstr "گالری تصاویر به شکل آجرچین"
674
-
675
- #: extensions/default-templates/class-default-templates-extension.php:150
676
- msgid "Thumbnail Width"
677
- msgstr "عرض عکس بند انگشتی"
678
-
679
- #: extensions/default-templates/class-default-templates-extension.php:151
680
- msgid ""
681
- "Choose the width of your thumbnails. Thumbnails will be generated on the fly "
682
- "and cached once generated."
683
- msgstr ""
684
- "عرض تصویر بند انگشتی را انتخاب کنید. این تصاویر بند انگشتی در همین جا تولید، "
685
- "ذخیره و کش خواهند شد."
686
-
687
- #: extensions/default-templates/class-default-templates-extension.php:160
688
- msgid "Gutter Width"
689
- msgstr "عرض شبکه "
690
-
691
- #: extensions/default-templates/class-default-templates-extension.php:161
692
- #: extensions/default-templates/class-default-templates-extension.php:280
693
- msgid "The spacing between your thumbnails."
694
- msgstr "فاصله های بین تصاویر بند انگشتی"
695
-
696
- #: extensions/default-templates/class-default-templates-extension.php:170
697
- msgid "Image Alignment"
698
- msgstr "چینش عکس ها"
699
-
700
- #: extensions/default-templates/class-default-templates-extension.php:171
701
- msgid ""
702
- "You can choose to center align your images or leave them at the default."
703
- msgstr ""
704
- "شما می توانید چینش میانه را برای تصاویر انتخاب کنید با این تنظیمات را "
705
- "رهاکنید تا به مقدار پیشفرض بمانند."
706
-
707
- #: extensions/default-templates/class-default-templates-extension.php:174
708
- msgid "Left Alignment"
709
- msgstr "چپ"
710
-
711
- #: extensions/default-templates/class-default-templates-extension.php:175
712
- msgid "Center Alignment"
713
- msgstr "میانه"
714
-
715
- #: extensions/default-templates/class-default-templates-extension.php:182
716
- msgid "Hover Zoom"
717
- msgstr "جلوه بزرگنمایی در هنگام هاور"
718
-
719
- #: extensions/default-templates/class-default-templates-extension.php:183
720
- msgid ""
721
- "The effect that is applied to images when you move your mouse over them."
722
- msgstr ""
723
- "این جلوه وقتی ایجاد می شود که شما نشانگر موس را از روی تصاویر عبور دهید."
724
-
725
- #: extensions/default-templates/class-default-templates-extension.php:186
726
- msgid "Zoom Slightly"
727
- msgstr "کمی بزرگ نمایی"
728
-
729
- #: extensions/default-templates/class-default-templates-extension.php:187
730
- msgid "No Zoom"
731
- msgstr "بدون بزرگ نمایی"
732
-
733
- #: extensions/default-templates/class-default-templates-extension.php:194
734
- #: extensions/default-templates/class-default-templates-extension.php:233
735
- #: extensions/default-templates/class-default-templates-extension.php:309
736
- msgid "Thumbnail Link"
737
- msgstr "لینک بند انگشتی"
738
-
739
- #: extensions/default-templates/class-default-templates-extension.php:198
740
- #: extensions/default-templates/class-default-templates-extension.php:237
741
- #: extensions/default-templates/class-default-templates-extension.php:313
742
- msgid ""
743
- "You can choose to link each thumbnail to the full size image, or to the "
744
- "image's attachment page, or you can choose to not link to anything."
745
- msgstr ""
746
- "شما می توانید لینک هر بند انگشتی به تصویر کامل را انتخاب کنید ، صفحه رسانه "
747
- "عکس ، یک پیوند سفارشی و یا حتی می توانید این بندانگشتی ها را به هیچ چیزی "
748
- "پیوند ندهید."
749
-
750
- #: extensions/default-templates/class-default-templates-extension.php:203
751
- #: extensions/default-templates/class-default-templates-extension.php:242
752
- #: extensions/default-templates/class-default-templates-extension.php:318
753
- msgid ""
754
- "Choose which lightbox you want to display images with. The lightbox will "
755
- "only work if you set the thumbnail link to \"Full Size Image\"."
756
- msgstr ""
757
- "انتخاب کنید می خواهید از کدام قاب عکس(لایت باکس) استفاده کنید. این قالب فقط "
758
- "وقتی نمایان خواهد شد که شما تصاویر بندانگشتی را به \"تصویر کامل\" خودشان "
759
- "لینک کرده باشید."
760
-
761
- #: extensions/default-templates/class-default-templates-extension.php:211
762
- msgid "Simple Portfolio"
763
- msgstr "این سبد (پرتفولیو) ساده"
764
-
765
- #: extensions/default-templates/class-default-templates-extension.php:215
766
- #: extensions/default-templates/class-default-templates-extension.php:254
767
- msgid "Tip"
768
- msgstr "ترفند"
769
-
770
- #: extensions/default-templates/class-default-templates-extension.php:218
771
- msgid ""
772
- "The Simple Portfolio template works best when you have <strong>captions and "
773
- "descriptions</strong> set for every attachment in the gallery.<br />To "
774
- "change captions and descriptions, simply hover over the thumbnail above and "
775
- "click the \"i\" icon."
776
- msgstr ""
777
- "نمونه آماده \"پورتفولیو ی ساده\" برای زمانی که شما <strong>عنوان ها و "
778
- "توضیحات</strong> جداگانه ای برای هر عکس در گالری دارید بهتر است.<br /> برای "
779
- "عوض کردن عنوان ها و توضیحات به سادگی نشانگر موس را روی بند انگشتی ببرید و "
780
- "روی \"i\" کلیک کنید."
781
-
782
- #: extensions/default-templates/class-default-templates-extension.php:250
783
- msgid "Justified Gallery"
784
- msgstr "گالری تنظیم شده"
785
-
786
- #: extensions/default-templates/class-default-templates-extension.php:257
787
- msgid ""
788
- "The Justified Gallery template uses the popular <a href=\"http://miromannino."
789
- "com/projects/justified-gallery/\" target=\"_blank\">Justified Gallery jQuery "
790
- "Plugin</a> under the hood. You can specify thumbnail captions by setting the "
791
- "alt text for your attachments."
792
- msgstr ""
793
- "نمون آماده \"گالری تنظیم شده\" در پشت صحنه از افزونه محبوب <a href=\"http://"
794
- "miromannino.com/projects/justified-gallery/\" target=\"_blank\">Justified "
795
- "Gallery jQuery Plugin</a> بهره می برد. شما می توانید عناوین بند انگشتی ها را "
796
- "در فیلد متن جایگرین در صفحه رسانه ها تغییر دهید."
797
-
798
- #: extensions/default-templates/class-default-templates-extension.php:261
799
- msgid "Row Height"
800
- msgstr "ارتفاع هر ردیف"
801
-
802
- #: extensions/default-templates/class-default-templates-extension.php:262
803
- msgid ""
804
- "Choose the height of your thumbnails. Thumbnails will be generated on the "
805
- "fly and cached once generated."
806
- msgstr ""
807
- "ارتفاع تصویر بند انگشتی را انتخاب کنید. این تصاویر بند انگشتی در همین جا "
808
- "تولید، ذخیره و کش خواهند شد."
809
-
810
- #: extensions/default-templates/class-default-templates-extension.php:271
811
- msgid "Max Row Height"
812
- msgstr "بیشترین ارتفاع هر ردیف"
813
-
814
- #: extensions/default-templates/class-default-templates-extension.php:272
815
- msgid ""
816
- "A number (e.g 200) which specifies the maximum row height in pixels. A "
817
- "negative value for no limits. Alternatively, use a percentage (e.g. 200% "
818
- "which means that the row height cannot exceed 2 * rowHeight)"
819
- msgstr ""
820
- "یک شماره (مثلا 200) که نشان دهنده حداکثر ارتفاع هر ردیف به پیکسل است. عدد "
821
- "منفی یعنی بدون محدودیت. به جای عدد می توانید از درصد هم استفاده کنید. (مثلا "
822
- "200% به این معناست که حداکثر ارتفاع هر ردیف نمی تواند از دو برابر ارتفاع "
823
- "فعلی بیشتر باشد)"
824
-
825
- #: extensions/default-templates/class-default-templates-extension.php:279
826
- msgid "Margins"
827
- msgstr "حاشیه ها"
828
-
829
- #: extensions/default-templates/class-default-templates-extension.php:289
830
- msgid "Show Captions"
831
- msgstr "عناوین را نشان بده"
832
-
833
- #: extensions/default-templates/class-default-templates-extension.php:290
834
- msgid ""
835
- "Show a caption when hovering over your thumbnails. (Set captions by adding "
836
- "either a title or alt text to an attachment)"
837
- msgstr ""
838
- "وقتی نشان گر موس از روی تصاویر بند انگشتی رد می شود ، عنوان آن ها را نشان "
839
- "بده . (عنوان ها را با قرار دادن توضیحات در قسمت عنوان یا توضیح در صفحه رسانه "
840
- "ای عکس اضافه کنید)"
841
-
842
- #: extensions/default-templates/class-default-templates-extension.php:296
843
- msgid "Caption Source"
844
- msgstr "منبع عناوین"
845
-
846
- #: extensions/default-templates/class-default-templates-extension.php:297
847
- msgid "Pull captions from either the attachment Title, Caption or Alt Text."
848
- msgstr "عنوان را از عنوان پیوست ، عنوان و یا نوشته جایگزین بردار."
849
-
850
- #: extensions/default-templates/class-default-templates-extension.php:302
851
- msgid "Attachment Title"
852
- msgstr "عنوان رسانه پیوست"
853
-
854
- #: extensions/default-templates/class-default-templates-extension.php:303
855
- msgid "Attachment Caption"
856
- msgstr "عنوان رسانه پیوست"
857
-
858
- #: extensions/default-templates/class-default-templates-extension.php:304
859
- msgid "Attachment Alt Text"
860
- msgstr "نوشته جایگزین در رسانه پیوست"
861
-
862
- #: extensions/default-templates/class-default-templates-extension.php:326
863
- msgid "Single Thumbnail Gallery"
864
- msgstr "گالری با یک تصویر بند انگشتی"
865
-
866
- #: extensions/default-templates/class-default-templates-extension.php:334
867
- msgid ""
868
- "This gallery template only shows a single thumbnail, but the true power "
869
- "shines through when the thumbnail is clicked, because then the lightbox "
870
- "takes over and the user can view all the images in the gallery."
871
- msgstr ""
872
- "این یک نمونه آماده از گالری است که تنها یک بند انگشتی دارد ، اما اصل قضیه "
873
- "وقتی است که روی این بند انگشتی کلیک کنید! چون آنوقت قاب عکس باز می شود و شما "
874
- "می توانید کل گالری را جلوی خودتان ببینید!"
875
-
876
- #: extensions/default-templates/class-default-templates-extension.php:339
877
- msgid "Choose the size of your thumbnail."
878
- msgstr "اندازه تصاویر بند انگشتی را انتخاب نمایید"
879
-
880
- #: extensions/default-templates/class-default-templates-extension.php:350
881
- msgid "Position"
882
- msgstr "موقعیت"
883
-
884
- #: extensions/default-templates/class-default-templates-extension.php:351
885
- msgid "The position of the thumbnail related to the content around it."
886
- msgstr "موقعیت تصویر بند انگشتی به محتوای اطرافش بستگی دارد."
887
-
888
- #: extensions/default-templates/class-default-templates-extension.php:356
889
- msgid "Full Width (block)"
890
- msgstr "عرض کامل (بلوک)"
891
-
892
- #: extensions/default-templates/class-default-templates-extension.php:357
893
- msgid "Float Left"
894
- msgstr "شناور چپ"
895
-
896
- #: extensions/default-templates/class-default-templates-extension.php:358
897
- msgid "Float Right"
898
- msgstr "شناور راست"
899
-
900
- #: extensions/default-templates/class-default-templates-extension.php:363
901
- msgid "Link To Custom URL"
902
- msgstr "پیوند به یک پیوند یکتای سفارشی"
903
-
904
- #: extensions/default-templates/class-default-templates-extension.php:367
905
- msgid ""
906
- "You can link your thumbnails to Custom URL's (if they are set on your "
907
- "attachments). Fallback will be to the full size image."
908
- msgstr ""
909
- "شما نمی توانید بند انگشتی ها را به آدرسی سفارشی پیوند بزنید (اگر به رسانه "
910
- "هایتان وصل شده اند)"
911
-
912
- #: extensions/default-templates/class-default-templates-extension.php:371
913
- msgid "Caption Style"
914
- msgstr "ریخت عنوان"
915
-
916
- #: extensions/default-templates/class-default-templates-extension.php:372
917
- #: extensions/default-templates/class-default-templates-extension.php:389
918
- #: extensions/default-templates/class-default-templates-extension.php:398
919
- #: extensions/default-templates/class-default-templates-extension.php:406
920
- #: extensions/default-templates/class-default-templates-extension.php:413
921
- msgid "Caption Settings"
922
- msgstr "تنظیمات عنوان"
923
-
924
- #: extensions/default-templates/class-default-templates-extension.php:373
925
- msgid "Choose which caption style you want to use."
926
- msgstr ""
927
- "انتخاب کنید که می خواهید چه نوع ریختی را برای عنوان عکس به کار گرفته شود."
928
-
929
- #: extensions/default-templates/class-default-templates-extension.php:377
930
- msgid "Simple"
931
- msgstr "ساده"
932
-
933
- #: extensions/default-templates/class-default-templates-extension.php:378
934
- msgid "Slide Up"
935
- msgstr "اسلاید به بابا"
936
-
937
- #: extensions/default-templates/class-default-templates-extension.php:379
938
- msgid "Fall Down"
939
- msgstr "افتادن به پایین"
940
-
941
- #: extensions/default-templates/class-default-templates-extension.php:380
942
- msgid "Fade"
943
- msgstr "محو شدن"
944
-
945
- #: extensions/default-templates/class-default-templates-extension.php:381
946
- msgid "Push From Left"
947
- msgstr "وارد شدن از چپ"
948
-
949
- #: extensions/default-templates/class-default-templates-extension.php:382
950
- msgid "Scale"
951
- msgstr "اندازه"
952
-
953
- #: extensions/default-templates/class-default-templates-extension.php:388
954
- msgid "Caption Background Color"
955
- msgstr "رنگ پس زمینه عنوان"
956
-
957
- #: extensions/default-templates/class-default-templates-extension.php:390
958
- msgid "The color of the caption background."
959
- msgstr "رنگ پس زمینه عنوان."
960
-
961
- #: extensions/default-templates/class-default-templates-extension.php:397
962
- msgid "Caption Text Color"
963
- msgstr "رنگ متن عنوان"
964
-
965
- #: extensions/default-templates/class-default-templates-extension.php:399
966
- msgid "The color of the caption text."
967
- msgstr "رنگ متن عنوان"
968
-
969
- #: extensions/default-templates/class-default-templates-extension.php:405
970
- msgid "Caption Title"
971
- msgstr "تیتر عنوان"
972
-
973
- #: extensions/default-templates/class-default-templates-extension.php:407
974
- msgid "Leave blank if you do not want a caption title."
975
- msgstr ""
976
- "اگر نمی خواهید برای عنوان یک تیتر انتخاب کنید ، این قسمت را خالی بگذارید."
977
-
978
- #: extensions/default-templates/class-default-templates-extension.php:412
979
- msgid "Caption Description"
980
- msgstr "توضیحات عنوان"
981
-
982
- #: extensions/default-templates/class-default-templates-extension.php:414
983
- msgid "Leave blank if you do not want a caption description."
984
- msgstr "اگر نمی خواهید برای عنوان یک توضیح بنویسید ، این قسمت را خالی بگذارید."
985
-
986
- #: extensions/default-templates/class-default-templates-extension.php:421
987
- msgid "Choose which lightbox you want to use."
988
- msgstr "انتخاب کنید از کدام قاب عکس استفاده شود."
989
-
990
- #: extensions/media-categories/class-media-categories-extension.php:29
991
- #: extensions/media-categories/class-media-categories-extension.php:39
992
- #: extensions/media-categories/class-media-categories-extension.php:77
993
- msgid "Categories"
994
- msgstr "دسته بندی ها"
995
-
996
- #: extensions/media-categories/class-media-categories-extension.php:30
997
- msgid "Category"
998
- msgstr "دسته بندی"
999
-
1000
- #: extensions/media-categories/class-media-categories-extension.php:31
1001
- msgid "Search Categories"
1002
- msgstr "جستجو در دسته ها"
1003
-
1004
- #: extensions/media-categories/class-media-categories-extension.php:32
1005
- msgid "All Categories"
1006
- msgstr "همه دسته ها"
1007
-
1008
- #: extensions/media-categories/class-media-categories-extension.php:33
1009
- msgid "Parent Category"
1010
- msgstr "دسته بندی مادر"
1011
-
1012
- #: extensions/media-categories/class-media-categories-extension.php:34
1013
- msgid "Parent Category:"
1014
- msgstr "دسته بندی مادر :"
1015
-
1016
- #: extensions/media-categories/class-media-categories-extension.php:35
1017
- msgid "Edit Category"
1018
- msgstr "ویرایش دسته بندی"
1019
-
1020
- #: extensions/media-categories/class-media-categories-extension.php:36
1021
- msgid "Update Category"
1022
- msgstr "به روز رسانی دسته"
1023
-
1024
- #: extensions/media-categories/class-media-categories-extension.php:37
1025
- msgid "Add New Category"
1026
- msgstr "اضافه کردن دسته جدید"
1027
-
1028
- #: extensions/media-categories/class-media-categories-extension.php:38
1029
- msgid "New Category Name"
1030
- msgstr "نام دسته جدید"
1031
-
1032
- #: extensions/media-categories/class-media-categories-extension.php:79
1033
- msgid "Categorize your attachments"
1034
- msgstr "پیوست هایتان را دسته بندی کنید !"
1035
-
1036
- #: extensions/media-categories/class-media-categories-extension.php:140
1037
- msgid "No Categories Available!"
1038
- msgstr "هیچ دسته بندی در دسترس نیست!"
1039
-
1040
- #: extensions/media-categories/class-media-categories-extension.php:145
1041
- msgid "Manage Categories"
1042
- msgstr "مدیریت دسته ها"
1043
-
1044
- #: extensions/media-categories/class-media-categories-extension.php:179
1045
- msgid "Error saving the categories for the attachment!"
1046
- msgstr "خطا در ذخیره کردن دسته ها برای پیوست ها"
1047
-
1048
- #: extensions/media-categories/class-media-categories-extension.php:195
1049
- msgid "View all categories"
1050
- msgstr "دیدن همه دسته ها"
1051
-
1052
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:43
1053
- msgid "NextGen Importer"
1054
- msgstr "وارد کننده از NextGen گالری"
1055
-
1056
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:157
1057
- msgid "Import Your NextGen Galleries"
1058
- msgstr "گالری های ایجاد شده توسط NextGen را وارد کنید"
1059
-
1060
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:159
1061
- msgid "Import Galleries"
1062
- msgstr "وارد کردن گالری ها"
1063
-
1064
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:163
1065
- #, php-format
1066
- msgid ""
1067
- "Import all your NextGen galleries in a single click, or choose the galleries "
1068
- "you would like to migrate over to %s."
1069
- msgstr ""
1070
- "همه گالری هایی که توسط افزونه NextGen ایجاد کرده اید را با یک کلیک درون ریزی "
1071
- "کنید یا انتخاب کنید دوست دارید کدام گالری ها به %s مهاجرت کنند."
1072
-
1073
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:165
1074
- msgid "Import Images"
1075
- msgstr "وارد کردن تصاویر"
1076
-
1077
- #: extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php:167
1078
- msgid ""
1079
- "NextGen gallery images are imported into your WordPress media library, where "
1080
- "they should be!"
1081
- msgstr ""
1082
- "تصاویر گالری های NextGen به مدیریت رسانه های وردپرس درون ریزی شدند. جایی که "
1083
- "باید می بودند !"
1084
-
1085
- #: extensions/nextgen-importer/class-nextgen-helper.php:245
1086
- msgid "Select All"
1087
- msgstr "انتخاب همه"
1088
-
1089
- #: extensions/nextgen-importer/class-nextgen-helper.php:250
1090
- msgid "NextGen Gallery"
1091
- msgstr "NextGen Gallery"
1092
-
1093
- #: extensions/nextgen-importer/class-nextgen-helper.php:253
1094
- #, php-format
1095
- msgid "%s Name"
1096
- msgstr "نام %s"
1097
-
1098
- #: extensions/nextgen-importer/class-nextgen-helper.php:256
1099
- msgid "Import Progress"
1100
- msgstr "پیشرفت فرآیند درون ریزی"
1101
-
1102
- #: extensions/nextgen-importer/class-nextgen-helper.php:291
1103
- #, php-format
1104
- msgid "(%s images)"
1105
- msgstr "(%s عدد عکس)"
1106
-
1107
- #: extensions/nextgen-importer/class-nextgen-helper.php:320
1108
- msgid "Start Import"
1109
- msgstr "شروع فرآیند درون ریزی"
1110
-
1111
- #: extensions/nextgen-importer/class-nextgen-helper.php:322
1112
- msgid "Resume Import"
1113
- msgstr "ادامه فرآیند درون ریزی"
1114
-
1115
- #: extensions/nextgen-importer/class-nextgen-helper.php:324
1116
- msgid "Stop Import"
1117
- msgstr "توقف فرآیند درون ریزی"
1118
-
1119
- #: extensions/nextgen-importer/class-nextgen-helper.php:328
1120
- msgid "Reset All Gallery Imports"
1121
- msgstr "همه درون ریزی ها را ریست کن"
1122
-
1123
- #: extensions/nextgen-importer/class-nextgen-helper.php:355
1124
- msgid "NextGen Album"
1125
- msgstr "آلبوم NextGen"
1126
-
1127
- #: extensions/nextgen-importer/class-nextgen-helper.php:358
1128
- msgid "Album Name"
1129
- msgstr "نام آلبوم"
1130
-
1131
- #: extensions/nextgen-importer/class-nextgen-helper.php:361
1132
- msgid "NextGen Galleries"
1133
- msgstr "گالری های NextGen"
1134
-
1135
- #: extensions/nextgen-importer/class-nextgen-helper.php:364
1136
- msgid "Import Options"
1137
- msgstr "انتخاب های درون ریزی"
1138
-
1139
- #: extensions/nextgen-importer/class-nextgen-helper.php:408
1140
- msgid "[Album] "
1141
- msgstr "[آلبوم]"
1142
-
1143
- #: extensions/nextgen-importer/class-nextgen-helper.php:413
1144
- msgid "nested albums not supported"
1145
- msgstr "آلبوم های لایه ای (Nested) ساپورت نمی شوند."
1146
-
1147
- #: extensions/nextgen-importer/class-nextgen-helper.php:428
1148
- msgid "imported"
1149
- msgstr "درون ریزی شده"
1150
-
1151
- #: extensions/nextgen-importer/class-nextgen-helper.php:428
1152
- msgid "not imported"
1153
- msgstr "درون ریزی نشده"
1154
-
1155
- #: extensions/nextgen-importer/class-nextgen-helper.php:448
1156
- msgid "All galleries will be linked"
1157
- msgstr "همه گالری ها پیوند زده خواهند شد."
1158
-
1159
- #: extensions/nextgen-importer/class-nextgen-helper.php:450
1160
- #, php-format
1161
- msgid "%d/%d galleries will be linked"
1162
- msgstr "%d / %d گالری ها پیوند زده خواهند شد."
1163
-
1164
- #: extensions/nextgen-importer/class-nextgen-helper.php:452
1165
- msgid "(Only previously imported galleries can be linked)"
1166
- msgstr "(فقط گالری هایی که قبلا درون ریزی شده اند پیوند زده خواهند شد)"
1167
-
1168
- #: extensions/nextgen-importer/class-nextgen-helper.php:455
1169
- msgid "No galleries imported yet!!"
1170
- msgstr "هنوز هیچ گالری درون ریزی نشده است !!"
1171
-
1172
- #: extensions/nextgen-importer/class-nextgen-helper.php:473
1173
- msgid "Reset All Album Imports"
1174
- msgstr "همه درون ریزی ها را ریست کن"
1175
-
1176
- #: extensions/nextgen-importer/class-nextgen-import-progress-album.php:23
1177
- msgid "Album not imported"
1178
- msgstr "آلبوم درون ریزی نشده"
1179
-
1180
- #: extensions/nextgen-importer/class-nextgen-import-progress-album.php:26
1181
- #, php-format
1182
- msgid "Done! %d galleries(s) linked"
1183
- msgstr "تمام ! %d عدد گالری پیوند زده شد."
1184
-
1185
- #: extensions/nextgen-importer/class-nextgen-import-progress-album.php:30
1186
- #: extensions/nextgen-importer/class-nextgen-import-progress.php:59
1187
- msgid "Unknown status!"
1188
- msgstr "وضعیت نامشخص!"
1189
-
1190
- #: extensions/nextgen-importer/class-nextgen-import-progress.php:45
1191
- msgid "Not imported"
1192
- msgstr "درون ریزی نشده"
1193
-
1194
- #: extensions/nextgen-importer/class-nextgen-import-progress.php:48
1195
- msgid "Queued for import"
1196
- msgstr "در صف برای درون ریزی"
1197
-
1198
- #: extensions/nextgen-importer/class-nextgen-import-progress.php:51
1199
- #, php-format
1200
- msgid "Imported %d of %d image(s)"
1201
- msgstr "تعداد %d از %d عکس درون ریزی شده است."
1202
-
1203
- #: extensions/nextgen-importer/class-nextgen-import-progress.php:55
1204
- #, php-format
1205
- msgid "Done! %d image(s) imported"
1206
- msgstr "تمام ! %d عدد عکس درون ریزی شد."
1207
-
1208
- #: extensions/nextgen-importer/view-importer.php:80
1209
- msgid ""
1210
- "Something went wrong with the import and the page will now reload. Once it "
1211
- "has reloaded, click \"Resume Import\" to continue with the import."
1212
- msgstr ""
1213
- "اتفاقی در فرآیند درون ریزی افتاده است و برگه دوباره بارگذاری خواهد شد. وقتی "
1214
- "بارگذاری به اتمام رسید ، روی \"ادامه درون ریزی\" کلیک کنید تا فرآیند ادامه "
1215
- "پیدا کند."
1216
-
1217
- #: extensions/nextgen-importer/view-importer.php:121
1218
- msgid "Are you sure you want to cancel?"
1219
- msgstr "مطمئن هستید که می خواهید کنسل کنید ؟"
1220
-
1221
- #: extensions/nextgen-importer/view-importer.php:128
1222
- msgid ""
1223
- "Are you sure you want to reset all NextGen gallery import data? This may "
1224
- "result in duplicate galleries and media attachments!"
1225
- msgstr ""
1226
- "آیا مطمئن هستید که می خواهید همه داده های درون ریزی شده از NextGen را ریست "
1227
- "کنید ؟ این کار ممکن است باعث ایجاد گالری ها و رسانه های اضافی شود!"
1228
-
1229
- #: extensions/nextgen-importer/view-importer.php:135
1230
- msgid ""
1231
- "Are you sure you want to reset all NextGen album import data? This may "
1232
- "result in duplicate albums if you decide to import again!"
1233
- msgstr ""
1234
- "آیا مطمئن هستید که می خواهید همه داده های وارد شده از NextGen را ریست کنید ؟ "
1235
- "اگر بخواهید دوباره درون ریزی کنید ، ممکن است باعث ایحاد آلبوم های اضافی شود."
1236
-
1237
- #: extensions/nextgen-importer/view-importer.php:165
1238
- msgid "Something went wrong with the import and the page will now reload."
1239
- msgstr "اشتباهی در فرآیند درون ریزی رخ داد. صفحه دوباره بارگذاری خواهد شد."
1240
-
1241
- #: extensions/nextgen-importer/view-importer.php:185
1242
- msgid "NextGen Gallery And Album Importer"
1243
- msgstr "درون ریز NextGen Gallery & Album "
1244
-
1245
- #: extensions/nextgen-importer/view-importer.php:196
1246
- msgid "There are no NextGen galleries to import!"
1247
- msgstr "هیچ گالری NextGen پیدا نشد که درون ریزی شود !"
1248
-
1249
- #: extensions/nextgen-importer/view-importer.php:199
1250
- msgid "Importing galleries is really simple:"
1251
- msgstr "درون ریزی گالری ها خیلی ساده است :"
1252
-
1253
- #: extensions/nextgen-importer/view-importer.php:201
1254
- #, php-format
1255
- msgid ""
1256
- "Choose the NextGen galleries you want to import into %s by checking their "
1257
- "checkboxes."
1258
- msgstr ""
1259
- "هر گالری NextGen که می خواهید در %s درون ریزی کنید را با زدن تیک در محل خودش "
1260
- "مشخص کنید."
1261
-
1262
- #: extensions/nextgen-importer/view-importer.php:202
1263
- msgid "Click the Start Import button to start the import process."
1264
- msgstr "دکمه \"شروع درون ریزی\" را بزنید تا فرآیند درون ریزی شروع شود."
1265
-
1266
- #: extensions/nextgen-importer/view-importer.php:203
1267
- #, php-format
1268
- msgid ""
1269
- "Once a gallery is imported, you can click on the link under the %s Name "
1270
- "column to edit the gallery."
1271
- msgstr ""
1272
- "هر وقت گالری درون ریزی شد. می توانید با کلیک کردن روی پیوند ستون نام %s ، "
1273
- "گالری را ویرایش کنید."
1274
-
1275
- #: extensions/nextgen-importer/view-importer.php:205
1276
- msgid ""
1277
- "Please note: importing large galleries with lots of images can take a while!"
1278
- msgstr ""
1279
- "لطفا توجه کنید : درون ریزی کردن گالری های بزرگ با عکس های زیاد ممکن است مدتی "
1280
- "زمان ببرد !"
1281
-
1282
- #: extensions/nextgen-importer/view-importer.php:217
1283
- msgid "There are no NextGen albums to import!"
1284
- msgstr "هیچ آلبوم NextGen پیدا نشد که درون ریزی شود !"
1285
-
1286
- #: extensions/nextgen-importer/view-importer.php:220
1287
- msgid "Importing albums is also really simple:"
1288
- msgstr "درون ریزی آلبوم ها خیلی ساده است :"
1289
-
1290
- #: extensions/nextgen-importer/view-importer.php:222
1291
- msgid ""
1292
- "For all the albums you wish to import, make sure all the galleries have been "
1293
- "imported FIRST. If not, then go back to the Galleries tab."
1294
- msgstr ""
1295
- "برای تمام آلبوم هایی که دوست دارید درون ریزی کنید ، اطمینان حاصل کنید که "
1296
- "ابتدا همه گالری ها درون ریزی شده اند. اگر نه ، به تب گالری ها برگردید."
1297
-
1298
- #: extensions/nextgen-importer/view-importer.php:223
1299
- msgid ""
1300
- "Click the Import Album button for each album to import the album and link "
1301
- "all the galleries. If you do not see the button, then that means you first "
1302
- "need to import the galleries."
1303
- msgstr ""
1304
- "برای هر آلبومی که می خواهید روی درون ریزی آلبوم کلیک کنید تا آلبوم و همه "
1305
- "گالری های پیوند زده شده به آن درون ریزی شوند. اگر دکمه ای ندیدید به این "
1306
- "معناست که شما ابتدا باید گالری ها را درون ریزی کنید."
1307
-
1308
- #: extensions/nextgen-importer/view-importer.php:224
1309
- msgid ""
1310
- "Once an album is imported, you can click on the link under the Album Name "
1311
- "column to edit the album."
1312
- msgstr ""
1313
- "وقتی یک آلبوم درون ریزی شد ، شما می توانید در پیوند لینک زیر نام آلبوم در "
1314
- "ستون مربوطه کلیک کنید تا آلبوم را ویرایش نمایید."
1315
-
1316
- #: includes/WPThumb/wpthumb.crop-from-position.php:54
1317
- msgid "Crop Position"
1318
- msgstr "مکان برش"
1319
-
1320
- #: includes/WPThumb/wpthumb.php:760
1321
- msgid "WPThumb has detected a problem."
1322
- msgstr "WPThumb یک مشکل پیدا کرده است."
1323
-
1324
- #: includes/WPThumb/wpthumb.php:760
1325
- #, php-format
1326
- msgid "The directory <code>%s</code> is not writable."
1327
- msgstr "پوشه <code>%s</code> غیر قابل نوشتن است ."
1328
-
1329
- #: includes/WPThumb/wpthumb.watermark.php:192
1330
- msgid "Watermark"
1331
- msgstr "واتر مارک"
1332
-
1333
- #: includes/admin/class-admin.php:64 includes/admin/class-menu.php:34
1334
- #: includes/admin/class-settings.php:70 includes/admin/view-help.php:48
1335
- #: includes/admin/view-system-info.php:68
1336
- msgid "Extensions"
1337
- msgstr "اکستنشن ها"
1338
-
1339
- #: includes/admin/class-admin.php:66 includes/admin/class-menu.php:38
1340
- msgid "Help"
1341
- msgstr "کمک"
1342
-
1343
- #: includes/admin/class-attachment-fields.php:19 includes/functions.php:378
1344
- msgid "Default"
1345
- msgstr "پیشفرض"
1346
-
1347
- #: includes/admin/class-attachment-fields.php:20
1348
- msgid "New tab (_blank)"
1349
- msgstr "تب جدید (_blank)"
1350
-
1351
- #: includes/admin/class-attachment-fields.php:21
1352
- msgid "Same tab (_self)"
1353
- msgstr "همین تب (_self)"
1354
-
1355
- #: includes/admin/class-attachment-fields.php:22
1356
- msgid "FooBox"
1357
- msgstr "فوو باکس"
1358
-
1359
- #: includes/admin/class-attachment-fields.php:27
1360
- #, php-format
1361
- msgid "%s Custom URL"
1362
- msgstr "پیوند یکتای سفارشی %s"
1363
-
1364
- #: includes/admin/class-attachment-fields.php:29
1365
- msgid "Point your attachment to a custom URL"
1366
- msgstr "ارسانه پیوست شده خود را به یک پیوند یکتای سفارشی نشانه بگیرید "
1367
-
1368
- #: includes/admin/class-attachment-fields.php:34
1369
- #, php-format
1370
- msgid "%s Custom Target"
1371
- msgstr "هدف سفارشی %s"
1372
-
1373
- #: includes/admin/class-attachment-fields.php:36
1374
- msgid "Set a custom target for your attachment"
1375
- msgstr "یک هدف سفارشی برای رسانه پیوست شده در نظر بگیرید"
1376
-
1377
- #: includes/admin/class-columns.php:24
1378
- msgid "Media"
1379
- msgstr "رسانه"
1380
-
1381
- #: includes/admin/class-extensions.php:86
1382
- msgid "The extensions have been reloaded"
1383
- msgstr "اکستنشن دوباره بارگذاری شد"
1384
-
1385
- #: includes/admin/class-extensions.php:103
1386
- msgid "The extension could not be activated due to an error!"
1387
- msgstr "اکستنشن به دلیل یک خطا قادر به فعال شدن نیست !"
1388
-
1389
- #: includes/admin/class-extensions.php:109
1390
- msgid "Activation Error!"
1391
- msgstr "خطای فعال سازی !"
1392
-
1393
- #: includes/admin/class-gallery-editor.php:43
1394
- #, php-format
1395
- msgid "Add Gallery From %s"
1396
- msgstr "اضافه کردن گالری از %s"
1397
-
1398
- #: includes/admin/class-gallery-editor.php:44
1399
- #, php-format
1400
- msgid "Add %s"
1401
- msgstr "اضافه کردن %s"
1402
-
1403
- #: includes/admin/class-gallery-editor.php:263
1404
- msgid "Choose A Gallery To Insert"
1405
- msgstr "یک گالری برای گذاشتن در محتوا انتخاب کنید"
1406
-
1407
- #: includes/admin/class-gallery-editor.php:266
1408
- #: includes/admin/view-extensions.php:60
1409
- msgid "Reload"
1410
- msgstr "بارگذاری دوباره"
1411
-
1412
- #: includes/admin/class-gallery-editor.php:273
1413
- msgid "Loading galleries. Please wait..."
1414
- msgstr "بارگذاری گالری ها ، لطفا شکیبا باشید ..."
1415
-
1416
- #: includes/admin/class-gallery-editor.php:278
1417
- msgid "Select A Gallery"
1418
- msgstr "یک گالری انتخاب کنید"
1419
-
1420
- #: includes/admin/class-gallery-editor.php:280
1421
- msgid ""
1422
- "Select a gallery by clicking it, and then click the \"Insert Gallery\" "
1423
- "button to insert it into your content."
1424
- msgstr ""
1425
- "گالری را با کلیک روی آن انتخاب کنید، سپس با زدن دکمه \"گذاشتن گالری\" آن را "
1426
- "در محتوا قرار دهید."
1427
-
1428
- #: includes/admin/class-gallery-editor.php:282
1429
- msgid "Add A Gallery"
1430
- msgstr "اضافه کردن گالری"
1431
-
1432
- #: includes/admin/class-gallery-editor.php:284
1433
- msgid ""
1434
- "You can add a new gallery by clicking the \"Add New Gallery\" tile on the "
1435
- "left. It will open in a new window."
1436
- msgstr ""
1437
- "شما می توانید یک گالری جدید را با کلیک کردن روی عنوان \"اضافه کردن گالری جدید"
1438
- "\" در قسمت چپ،اضافه کنید. این صفحه در پنجره ای جدید باز خواهد شد."
1439
-
1440
- #: includes/admin/class-gallery-editor.php:287
1441
- msgid ""
1442
- "Once you have finished adding a gallery, come back to this dialog and click "
1443
- "the \"Reload\" button to see your newly created gallery."
1444
- msgstr ""
1445
- "وقتی که کار اضافه کردن یک گالری به اتمام رسید. به این قسمت برگردید و دکمه "
1446
- "\"بارگذاری دوباره\" را برای دیدن گالری جدیدتان بزنید."
1447
-
1448
- #: includes/admin/class-gallery-editor.php:300
1449
- msgid "Cancel"
1450
- msgstr "کنسل کن"
1451
-
1452
- #: includes/admin/class-gallery-editor.php:304
1453
- msgid "Insert Gallery"
1454
- msgstr "گذاشتن گالری"
1455
-
1456
- #: includes/admin/class-gallery-editor.php:360 includes/class-posttypes.php:29
1457
- msgid "Add New Gallery"
1458
- msgstr "اضافه کردن یک گالری جدید"
1459
-
1460
- #: includes/admin/class-gallery-metabox-fields.php:157
1461
- msgid "Width"
1462
- msgstr "عرض"
1463
-
1464
- #: includes/admin/class-gallery-metabox-fields.php:159
1465
- msgid "Height"
1466
- msgstr "ارتفاع"
1467
-
1468
- #: includes/admin/class-gallery-metabox-fields.php:163
1469
- msgid "Crop thumbnail to exact dimensions"
1470
- msgstr "بند انگشتی را به اندازه های دقیقش ببر"
1471
-
1472
- #: includes/admin/class-gallery-metabox-fields.php:196
1473
- msgid "You have no lightbox extensions activated!"
1474
- msgstr "شما هیچ اکستنشن قاب عکس (لایت باکس) فعالی ندارید !"
1475
-
1476
- #: includes/admin/class-gallery-metabox-fields.php:205
1477
- msgid "Activate FooBox FREE right now!"
1478
- msgstr "FooBox رایگان را همین الان فعال کن !"
1479
-
1480
- #: includes/admin/class-gallery-metabox-fields.php:213
1481
- msgid "Download and activate FooBox FREE"
1482
- msgstr "دانلود و فعال سازی FooBox رایگان"
1483
-
1484
- #: includes/admin/class-gallery-metabox-fields.php:214
1485
- #, php-format
1486
- msgid "%s which works flawlessly with %s."
1487
- msgstr "%s که بدون هیچ ایرادی با %s کار می کند."
1488
-
1489
- #: includes/admin/class-gallery-metabox-fields.php:247
1490
- msgid "Full Size Image"
1491
- msgstr "عکس در اندازه های کامل"
1492
-
1493
- #: includes/admin/class-gallery-metabox-fields.php:248
1494
- msgid "Image Attachment Page"
1495
- msgstr "صفحه رسانه ای عکس"
1496
-
1497
- #: includes/admin/class-gallery-metabox-fields.php:249
1498
- msgid "Custom URL"
1499
- msgstr "پیوند یکتای سفارشی"
1500
-
1501
- #: includes/admin/class-gallery-metabox-fields.php:250
1502
- msgid "Not linked"
1503
- msgstr "پیوند نشده"
1504
-
1505
- #: includes/admin/class-gallery-metaboxes.php:59
1506
- msgid "Gallery Items"
1507
- msgstr "آیتم های گالری"
1508
-
1509
- #: includes/admin/class-gallery-metaboxes.php:77
1510
- msgid "Gallery Shortcode"
1511
- msgstr "کد کوتاه گالری"
1512
-
1513
- #: includes/admin/class-gallery-metaboxes.php:86
1514
- msgid "Gallery Usage"
1515
- msgstr "استفاده از گالری"
1516
-
1517
- #: includes/admin/class-gallery-metaboxes.php:105
1518
- msgid "Gallery Sorting"
1519
- msgstr "مرتب کردن گالری ها"
1520
-
1521
- #: includes/admin/class-gallery-metaboxes.php:214
1522
- #: includes/admin/class-gallery-metaboxes.php:217
1523
- msgid "Add Media To Gallery"
1524
- msgstr "اضافه کردن رسانه به گالری"
1525
-
1526
- #: includes/admin/class-gallery-metaboxes.php:215
1527
- #: includes/admin/class-gallery-metaboxes.php:219
1528
- msgid "Add Media"
1529
- msgstr "اضافه کردن رسانه"
1530
-
1531
- #: includes/admin/class-gallery-metaboxes.php:250
1532
- msgid "Edit Info"
1533
- msgstr "ویرایش اطلاعات"
1534
-
1535
- #: includes/admin/class-gallery-metaboxes.php:253
1536
- msgid "Remove from gallery"
1537
- msgstr "پاک کردن از گالری"
1538
-
1539
- #: includes/admin/class-gallery-metaboxes.php:286
1540
- #: includes/admin/view-extensions-build-your-own.php:134
1541
- msgid "Gallery Template"
1542
- msgstr "نمونه آماده گالری"
1543
-
1544
- #: includes/admin/class-gallery-metaboxes.php:299
1545
- msgid ""
1546
- "The gallery template that will be used when the gallery is output to the "
1547
- "frontend."
1548
- msgstr "نمونه آماده گالری که در خروجی شما استفاده خواهد شد."
1549
-
1550
- #: includes/admin/class-gallery-metaboxes.php:363
1551
- msgid "Paste the above shortcode into a post or page to show the gallery."
1552
- msgstr ""
1553
- "این کد کوتاه را کپی کنید و در فرم یا پست خود قرار دهید تا گالری در آنجا "
1554
- "نشان داده شود."
1555
-
1556
- #: includes/admin/class-gallery-metaboxes.php:391
1557
- msgid "This gallery is used on the following posts or pages:"
1558
- msgstr "گالری در این نوشته ها و یا برگه ها استفاده شده است:"
1559
-
1560
- #: includes/admin/class-gallery-metaboxes.php:397
1561
- msgid "Edit"
1562
- msgstr "ویرایش"
1563
-
1564
- #: includes/admin/class-gallery-metaboxes.php:398
1565
- msgid "View"
1566
- msgstr "دیدن"
1567
-
1568
- #: includes/admin/class-gallery-metaboxes.php:403
1569
- msgid ""
1570
- "This gallery is not used on any pages or pages yet. Quickly create a page:"
1571
- msgstr ""
1572
- "این گالری تا به حال در هیچ جایی استفاده نشده است. به سرعت یک برگه بسازید :"
1573
-
1574
- #: includes/admin/class-gallery-metaboxes.php:406
1575
- msgid "Create Gallery Page"
1576
- msgstr "ساخت برگه گالری"
1577
-
1578
- #: includes/admin/class-gallery-metaboxes.php:411
1579
- msgid ""
1580
- "A draft page will be created which includes the gallery shortcode in the "
1581
- "content. The title of the page will be the same title as the gallery."
1582
- msgstr ""
1583
- "یک صفحه چرک نویس ایجاد خواهد شد که کد کوتاه گالری در آن قرار خواهد داشت. "
1584
- "عنوان صفحه همه عنوان گالری خواهد بود."
1585
-
1586
- #: includes/admin/class-gallery-metaboxes.php:424
1587
- msgid ""
1588
- "Change the way images are sorted within your gallery. By default, they are "
1589
- "sorted in the order you see them."
1590
- msgstr ""
1591
- "روشی که عکس ها در گالری ذخیره شده اند را عوض کنید. به صورت پیش فرض آن ها به "
1592
- "ترتیبی ذخیره می شوند که شما آن ها را می بینید."
1593
-
1594
- #: includes/admin/class-gallery-metaboxes.php:464
1595
- #, php-format
1596
- msgid "Add any custom CSS to target this specific gallery. For example %s"
1597
- msgstr ""
1598
- "هر CSS سفارشی که خواستید را به قصد گالری خاصی قرار دهید. برای مثال : %s"
1599
-
1600
- #: includes/admin/class-menu.php:29
1601
- #, php-format
1602
- msgid "%s Settings"
1603
- msgstr "تنظیمات %s"
1604
-
1605
- #: includes/admin/class-menu.php:33 includes/admin/view-extensions.php:45
1606
- #, php-format
1607
- msgid "%s Extensions"
1608
- msgstr "اکستنشن های %s"
1609
-
1610
- #: includes/admin/class-menu.php:37
1611
- #, php-format
1612
- msgid "%s Help"
1613
- msgstr "کمک %s"
1614
-
1615
- #: includes/admin/class-menu.php:41 includes/admin/view-system-info.php:38
1616
- #, php-format
1617
- msgid "%s System Information"
1618
- msgstr "%s اطلاعات سیستم"
1619
-
1620
- #: includes/admin/class-menu.php:42 includes/admin/view-help.php:55
1621
- msgid "System Info"
1622
- msgstr "اطلاعات سیستم"
1623
-
1624
- #: includes/admin/class-menu.php:64
1625
- #, php-format
1626
- msgid "%s settings updated."
1627
- msgstr "تنظیمات %s به روز رسانی شد."
1628
-
1629
- #: includes/admin/class-settings.php:17
1630
- msgid "General"
1631
- msgstr "عمومی"
1632
-
1633
- #: includes/admin/class-settings.php:27
1634
- msgid "Default Gallery Template"
1635
- msgstr "نمونه آماده پیشفرض برای گالری"
1636
-
1637
- #: includes/admin/class-settings.php:28
1638
- msgid "The default gallery template to use for new galleries"
1639
- msgstr "نمونه آماده پیشفرضی که برای گالری های جدید استفاده می شود"
1640
-
1641
- #: includes/admin/class-settings.php:37
1642
- msgid "Default Gallery Sorting"
1643
- msgstr "مرتب کردن پیشفرض گالری ها"
1644
-
1645
- #: includes/admin/class-settings.php:38
1646
- msgid "The default attachment sorting to use for new galleries"
1647
- msgstr "مرتب کردن پیش فرض پیوست ها برای استفاده در گالری های جدید"
1648
-
1649
- #: includes/admin/class-settings.php:47
1650
- msgid "Hide Gallery Template Help"
1651
- msgstr "گزینه کمک نمونه آماده گالری را پنهان کن"
1652
-
1653
- #: includes/admin/class-settings.php:48
1654
- msgid ""
1655
- "Some gallery templates show helpful tips, which are useful for new users. "
1656
- "You can choose to hide these tips."
1657
- msgstr ""
1658
- "برخی از نمونه های آماده گالری ها ، ترفند های مفیدی را نشان می دهند که برای "
1659
- "کاربران جدید کمک کننده است. می توانید انتخاب کنید که این ترفند ها را ببینید "
1660
- "یا نه ."
1661
-
1662
- #: includes/admin/class-settings.php:61
1663
- msgid "Default Gallery Settings"
1664
- msgstr "تنظیمات پیشفرض گالری"
1665
-
1666
- #: includes/admin/class-settings.php:62
1667
- msgid ""
1668
- "When creating a new gallery, it can use the settings from an existing "
1669
- "gallery as the default settings. This will save you time when creating many "
1670
- "galleries that all have the same look and feel."
1671
- msgstr ""
1672
- "وقتی که گالری جدیدی درست می کنید ، این گالری می تواند از تنظیمات گالری های "
1673
- "پیشین به عنوان پیشفرض استفاده کند. این گزینه وقتی به درد شما می خورد که می "
1674
- "خواهید تعداد زیادی گالری همشکل و هم حس درست کنید."
1675
-
1676
- #: includes/admin/class-settings.php:74
1677
- msgid "Use Beta Endpoint"
1678
- msgstr "از قسمت پایانی بتا استفاده کن"
1679
-
1680
- #: includes/admin/class-settings.php:75
1681
- msgid ""
1682
- "The list of available extensions are pulled from an external URL. You can "
1683
- "also pull from a \"beta\" endpoint which will sometimes contain beta "
1684
- "extensions that are not publicly available."
1685
- msgstr ""
1686
- "لیست اکستنشن های در دسترس از یک پیوند بیرونی بیرون کشیده شده اند. همچنین شما "
1687
- "می توانید این اطلاعات را از نقطه پایانی \"بتا\" که برخی وقت ها نسخه های بتای "
1688
- "اکستنشن ها روی آن قرار می گیرد و عمومی نیست دریافت کنید."
1689
-
1690
- #: includes/admin/class-settings.php:81
1691
- msgid "Thumbnails"
1692
- msgstr "بند انگشتی ها"
1693
-
1694
- #: includes/admin/class-settings.php:85
1695
- msgid "JPEG Quality"
1696
- msgstr "کیفیت فشرده سازی JPEG"
1697
-
1698
- #: includes/admin/class-settings.php:86
1699
- msgid "The image quality to be used when resizing JPEG images."
1700
- msgstr "کیفیت تصویری که در هنگام تغییر اندازه عکس های JPEG در نظر دارید."
1701
-
1702
- #: includes/admin/class-settings.php:94
1703
- msgid "Resize Animated GIFs"
1704
- msgstr "GIF های متحرک را تغییر اندازه بده"
1705
-
1706
- #: includes/admin/class-settings.php:95
1707
- msgid ""
1708
- "Should animated gifs be resized or not. If enabled, only the first frame is "
1709
- "used in the resize."
1710
- msgstr ""
1711
- "آیا می خواهید تصاویر متحرک (GIF) ها تغییر اندازه یابند یا نه ، اگر بله ، "
1712
- "تنها اولین فریم تصویر برای تغییر اندازه استفاده می شود."
1713
-
1714
- #: includes/admin/view-extensions-build-your-own.php:23
1715
- msgid "Please fill in all form fields!"
1716
- msgstr "لطفا همه فیلد های فرم را کامل کنید !"
1717
-
1718
- #: includes/admin/view-extensions-build-your-own.php:30
1719
- msgid "Cool Thing"
1720
- msgstr "یه چیز باحال "
1721
-
1722
- #: includes/admin/view-extensions-build-your-own.php:32
1723
- msgid "A cool description about what your cool thing can do"
1724
- msgstr "یک توضیح باحال در مورد کارهایی که این چیز باحال می تواند انجام دهد"
1725
-
1726
- #: includes/admin/view-extensions-build-your-own.php:95
1727
- msgid "Build Your Own FooGallery Extensions!"
1728
- msgstr "اکستنشن های خودتان را بنویسید"
1729
-
1730
- #: includes/admin/view-extensions-build-your-own.php:97
1731
- msgid ""
1732
- "FooGallery was built with developers in mind. If you can build your own "
1733
- "WordPress plugin, then you will have no problem building your own FooGallery "
1734
- "extension."
1735
- msgstr ""
1736
- "فوو گالری با توجه به توسعه دهندگان نوشته شده است . اگر می توانید پلاگین "
1737
- "وردپرس خودتان را بنویسید ، مطمئن باشید هیچ مشکلی در نوشتن اکستنشن برای "
1738
- "فووگالری نخواهید داشت."
1739
-
1740
- #: includes/admin/view-extensions-build-your-own.php:99
1741
- msgid "Extension Ideas"
1742
- msgstr "ایده هایی برای اکستنشن ها"
1743
-
1744
- #: includes/admin/view-extensions-build-your-own.php:101
1745
- msgid "Build your own unique Gallery Template."
1746
- msgstr "یک نمونه یکتا برای گالری های خودتان بسازید"
1747
-
1748
- #: includes/admin/view-extensions-build-your-own.php:102
1749
- msgid "Adding support for your favourite lightbox."
1750
- msgstr "اضافه کردن حمایت از قاب عکس مورد علاقه شما"
1751
-
1752
- #: includes/admin/view-extensions-build-your-own.php:103
1753
- msgid "Why not white-label FooGallery for your clients?"
1754
- msgstr "فوو گالری بی نام و نشان برای مشتری های شما ، چرا که نه ؟"
1755
-
1756
- #: includes/admin/view-extensions-build-your-own.php:104
1757
- msgid "Add your own options to the settings page?"
1758
- msgstr "انتخاب های خودتان را به صفحه تنظیمات اضافه کنید !"
1759
-
1760
- #: includes/admin/view-extensions-build-your-own.php:106
1761
- msgid ""
1762
- "There is no limit to the number of ways you can change or alter FooGallery!"
1763
- msgstr ""
1764
- "هیچ محدودیتی در راه هایی که می توانی فوو گالری را برای خودتان تغییر دهید و "
1765
- "سفارشی کنید نیست !"
1766
-
1767
- #: includes/admin/view-extensions-build-your-own.php:108
1768
- msgid "Developer Tips"
1769
- msgstr "ترفند هایی برای توسعه دهندگان"
1770
-
1771
- #: includes/admin/view-extensions-build-your-own.php:110
1772
- msgid "An extension is essentially a WordPress plugin."
1773
- msgstr "اکستنشن در واقع یک پلاگین وردپرس است ."
1774
-
1775
- #: includes/admin/view-extensions-build-your-own.php:111
1776
- msgid ""
1777
- "Extension functionality must be wrapped in a PHP class. (This class is "
1778
- "included when the extension is activated)"
1779
- msgstr ""
1780
- "عملکرد های اکستنشن ها باید در یک کلاس PHP پیچیده شود (این کلاس وقتی اکستنشن "
1781
- "فعال می شود فراخوانی می گردد)"
1782
-
1783
- #: includes/admin/view-extensions-build-your-own.php:112
1784
- #, php-format
1785
- msgid ""
1786
- "There are several dozen actions and filters built in for you. (See all %s)"
1787
- msgstr ""
1788
- "چندین ده عدد اقدام و فیلتر هست که برای شما ساخته ایم (همه را %s ببینید)"
1789
-
1790
- #: includes/admin/view-extensions-build-your-own.php:112
1791
- msgid "FooGallery actions and filters"
1792
- msgstr "اقدام ها و فیلتر های فوو گالری"
1793
-
1794
- #: includes/admin/view-extensions-build-your-own.php:113
1795
- #, php-format
1796
- msgid "Read our %s on how to build your own extension in 2\tminutes."
1797
- msgstr "%s ما را بخوانید تا ببینید چگونه می شود در 2 دقیقه یک اکستنشن نوشت."
1798
-
1799
- #: includes/admin/view-extensions-build-your-own.php:113
1800
- msgid "step-by-step tutorial"
1801
- msgstr "آموزش قدم به قدم"
1802
-
1803
- #: includes/admin/view-extensions-build-your-own.php:116
1804
- msgid "Submit Your Extension"
1805
- msgstr "اکستنشن خود را ارسال کنید"
1806
-
1807
- #: includes/admin/view-extensions-build-your-own.php:118
1808
- msgid ""
1809
- "Have you built your own extension that you are proud of? Do you want to "
1810
- "share it with the community of FooGallery\tusers?"
1811
- msgstr ""
1812
- "آیا شما اکستنشن خودتان را نوشته اید و خیلی از این بابت به خودتان می بالید ؟ "
1813
- "می خواهید آن را با جامعه استفاده کنندگان از فوو گالری به اشتراک بگذارید ؟"
1814
-
1815
- #: includes/admin/view-extensions-build-your-own.php:120
1816
- #, php-format
1817
- msgid "%s to get it listed in our extension store."
1818
- msgstr "%s تا آن را در فروشگاه اکستنشن های ما لیست کنید."
1819
-
1820
- #: includes/admin/view-extensions-build-your-own.php:120
1821
- msgid "Follow these simple instructions"
1822
- msgstr "چند دستور ساده را دنبال کنید"
1823
-
1824
- #: includes/admin/view-extensions-build-your-own.php:122
1825
- msgid "Extension Boilerplates"
1826
- msgstr "اجاق های اکستنشن"
1827
-
1828
- #: includes/admin/view-extensions-build-your-own.php:124
1829
- msgid ""
1830
- "We really want to make it easy for you to get started and building your own "
1831
- "extensions. Generate an extension boilerplate in seconds using the provided "
1832
- "form."
1833
- msgstr ""
1834
- "ما واقعا می خواهیم ساختن اکستنشن های جدید برای شما راحت باشد. اکستنشن را در "
1835
- "چند ثانیه و با فرم های اجاق اکستنشن درست کنید."
1836
-
1837
- #: includes/admin/view-extensions-build-your-own.php:129
1838
- msgid "Extension Boilerplate Generator"
1839
- msgstr "تولید کننده اجاق اکستنشن"
1840
-
1841
- #: includes/admin/view-extensions-build-your-own.php:132
1842
- msgid "Type Of Extension"
1843
- msgstr "نوع اکستنشن"
1844
-
1845
- #: includes/admin/view-extensions-build-your-own.php:139
1846
- msgid "Name"
1847
- msgstr "نام"
1848
-
1849
- #: includes/admin/view-extensions-build-your-own.php:143
1850
- msgid "Description"
1851
- msgstr "توضیحات"
1852
-
1853
- #: includes/admin/view-extensions-build-your-own.php:147
1854
- msgid "Author Name"
1855
- msgstr "نام نویسنده"
1856
-
1857
- #: includes/admin/view-extensions-build-your-own.php:151
1858
- msgid "Author URL"
1859
- msgstr "پیوند یکتای نویسنده"
1860
-
1861
- #: includes/admin/view-extensions-build-your-own.php:155
1862
- msgid "Generate &amp; download .zip"
1863
- msgstr "ساخت &amp; دانلود .zip"
1864
-
1865
- #: includes/admin/view-extensions-build-your-own.php:161
1866
- msgid ""
1867
- "Once you have downloaded the zip file, install and activate it like a normal "
1868
- "WordPress plugin so that it shows up in the list of extensions!"
1869
- msgstr ""
1870
- "وقتی که شما فایل زیپ را دانلود کردید و سپس آن را مانند هر افزونه معمولی "
1871
- "وردپرس دیگری نصب و فعال کردید، آن را در لیست اکستنشن ها خواهید دید."
1872
-
1873
- #: includes/admin/view-extensions-popup.php:5
1874
- msgid "Show previous extension"
1875
- msgstr "اکستنشن قبلی را نشان بده"
1876
-
1877
- #: includes/admin/view-extensions-popup.php:6
1878
- msgid "Show next extension"
1879
- msgstr "اکستنشن بعدی را نشان بده"
1880
-
1881
- #: includes/admin/view-extensions-popup.php:7
1882
- msgid "Close overlay"
1883
- msgstr "بستن همپوشانی"
1884
-
1885
- #: includes/admin/view-extensions-popup.php:20
1886
- msgid "Current extension"
1887
- msgstr "اکستنشن جاری"
1888
-
1889
- #: includes/admin/view-extensions-popup.php:22
1890
- #, php-format
1891
- msgid "Version: %s"
1892
- msgstr "نگارش : %s"
1893
-
1894
- #: includes/admin/view-extensions-popup.php:23
1895
- #, php-format
1896
- msgid "By %s"
1897
- msgstr "به وسیله %s"
1898
-
1899
- #: includes/admin/view-extensions-popup.php:27
1900
- msgid "Update Available"
1901
- msgstr "به روز رسانی جدیدی در درسترس است."
1902
-
1903
- #: includes/admin/view-extensions-popup.php:34
1904
- #, php-format
1905
- msgid "This is a child extension of %s."
1906
- msgstr "این یک اکستنشن، کودک %s است ."
1907
-
1908
- #: includes/admin/view-extensions-popup.php:38
1909
- msgid "Tags:"
1910
- msgstr "برچسب ها :"
1911
-
1912
- #: includes/admin/view-extensions-popup.php:45
1913
- msgid "Customize"
1914
- msgstr "سفارشی سازی"
1915
-
1916
- #: includes/admin/view-extensions-popup.php:50
1917
- #: includes/admin/view-extensions.php:133
1918
- msgid "Activate"
1919
- msgstr "فعال سازی"
1920
-
1921
- #: includes/admin/view-extensions-popup.php:52
1922
- msgid "Live Preview"
1923
- msgstr "پیش نمایش زنده"
1924
-
1925
- #: includes/admin/view-extensions-popup.php:57
1926
- msgid "Delete"
1927
- msgstr "پاک کردن"
1928
-
1929
- #: includes/admin/view-extensions.php:15
1930
- #, php-format
1931
- msgid "Extensions make %s even more awesome, without bloating the core plugin."
1932
- msgstr ""
1933
- "اکستنشن ها %s را حتی خیلی باحال تر هم می کنند! بدون این که روی هسته افزونه "
1934
- "تاثیری بگذارند."
1935
-
1936
- #: includes/admin/view-extensions.php:42
1937
- msgid ""
1938
- "There was a problem loading all the public extensions! Only the default "
1939
- "bundled extensions will be shown."
1940
- msgstr ""
1941
- "مشکلی در بارگذاری اکستنشن های عمومی به وجود آمده است ! تنها اکسنشن های "
1942
- "پیشفرض موجود در افزونه نشان داده می شوند."
1943
-
1944
- #: includes/admin/view-extensions.php:57
1945
- msgid "search..."
1946
- msgstr "جستجو ..."
1947
-
1948
- #: includes/admin/view-extensions.php:131
1949
- msgid "Are you sure you want to download this extension?"
1950
- msgstr "آیا مطمئن هستید که می خواهید این اکستنشن را دانلود کنید ؟"
1951
-
1952
- #: includes/admin/view-extensions.php:131
1953
- msgid "Download"
1954
- msgstr "دانلود"
1955
-
1956
- #: includes/admin/view-extensions.php:134
1957
- msgid "Deactivate"
1958
- msgstr "غیر فعال کردن"
1959
-
1960
- #: includes/admin/view-extensions.php:137
1961
- msgid "Activated"
1962
- msgstr "فعال شد"
1963
-
1964
- #: includes/admin/view-extensions.php:139
1965
- msgid "Coming Soon!"
1966
- msgstr "به زودی ...!"
1967
-
1968
- #: includes/admin/view-help.php:4
1969
- #, php-format
1970
- msgid "Welcome to %s %s"
1971
- msgstr "به %s %s خوش آمدید"
1972
-
1973
- #: includes/admin/view-help.php:5
1974
- #, php-format
1975
- msgid ""
1976
- "Thank you for choosing %s, the most intuitive and extensible gallery "
1977
- "creation and management tool ever created for WordPress!"
1978
- msgstr ""
1979
- "از شما برای انتخاب %s ، کاربر پسند ترین و قابل گسترش ترین ابزار تولید و "
1980
- "مدیریت گالری هایی که تا به حال برای وردپرس نوشته شده است سپاس گزاریم !"
1981
-
1982
- #: includes/admin/view-help.php:6
1983
- msgid "Visit our homepage"
1984
- msgstr "صفحه ما را ببینید."
1985
-
1986
- #: includes/admin/view-help.php:45
1987
- msgid "Getting Started"
1988
- msgstr "شروع کار"
1989
-
1990
- #: includes/admin/view-help.php:51
1991
- msgid "Other Plugins"
1992
- msgstr "بقیه افزونه ها"
1993
-
1994
- #: includes/admin/view-help.php:66
1995
- msgid "Creating Your First Gallery"
1996
- msgstr "ساختن اولین گالری خود"
1997
-
1998
- #: includes/admin/view-help.php:68
1999
- #, php-format
2000
- msgid "<a href=\"%s\">Galleries &rarr; Add New</a>"
2001
- msgstr "<a href=\"%s\">اضافه کردن گالری های جدید</a>"
2002
-
2003
- #: includes/admin/view-help.php:69
2004
- msgid ""
2005
- "To create your first gallery, simply click the Add New button or click the "
2006
- "Add Gallery menu link. Then choose images from the media library to include "
2007
- "in your gallery."
2008
- msgstr ""
2009
- "برای ساخت اولین گالری خود ، به سادگی دکمه \"اضاف کردن جدید\" یا \"اضافه کردن "
2010
- "گالری\" را از منو انتخاب کنید. سپس عکس هایتان را از کتابخانه وردپرس انتخاب "
2011
- "کرده و در گالری بریزید."
2012
-
2013
- #: includes/admin/view-help.php:71 includes/admin/view-system-info.php:70
2014
- msgid "Gallery Templates"
2015
- msgstr "نمونه های آماده گالری"
2016
-
2017
- #: includes/admin/view-help.php:72
2018
- msgid ""
2019
- "Choose one of our built-in gallery templates or download one via our "
2020
- "extension library."
2021
- msgstr ""
2022
- "یکی از نمونه های آماده گالری های ما را انتخاب کنید و یا یکی را از کتابخانه "
2023
- "اکستنشن های ما دانلود کنید !"
2024
-
2025
- #: includes/admin/view-help.php:74
2026
- msgid "Lightbox Support"
2027
- msgstr "حمایت از قاب عکس (لایت باکس)"
2028
-
2029
- #: includes/admin/view-help.php:76
2030
- msgid ""
2031
- "FooGallery works out of the box with FooBox, our popular responsive image "
2032
- "lightbox."
2033
- msgstr "فووگالری به خوبی با FooBox - قاب عکس (لایت باکس) محبوب ما - کار می کند"
2034
-
2035
- #: includes/admin/view-help.php:77
2036
- msgid "Purchase FooBox now!"
2037
- msgstr "فوو باکس را همین الان بخر!"
2038
-
2039
- #: includes/admin/view-help.php:79
2040
- msgid "Video Support"
2041
- msgstr "ساپورت ویدیویی"
2042
-
2043
- #: includes/admin/view-help.php:81
2044
- msgid ""
2045
- "FooGallery now supports the creation of video galleries with the FooVideo "
2046
- "premium extension!"
2047
- msgstr ""
2048
- "فووگالری با نصب اکستنشن FooVideo حالا ساخت گالری های ویدیویی را هم پشتیبانی "
2049
- "می کند ! "
2050
-
2051
- #: includes/admin/view-help.php:82
2052
- msgid "Purchase FooVideo now!"
2053
- msgstr "فوو ویدیو را همین الان بخر !"
2054
-
2055
- #: includes/admin/view-help.php:94
2056
- msgid "Show Off Your Gallery"
2057
- msgstr "گالری خود را به نمایش بگذارید"
2058
-
2059
- #: includes/admin/view-help.php:96
2060
- #, php-format
2061
- msgid "The <em>[%s]</em> Short Code"
2062
- msgstr "کد کوتاه <em>[%s]</em>"
2063
-
2064
- #: includes/admin/view-help.php:97
2065
- msgid ""
2066
- "Simply copy the shortcode code from the gallery listing page and paste it "
2067
- "into your posts or pages."
2068
- msgstr ""
2069
- "به سادگی کد کوتاه گالری را از لیست کپی کرده و آن را در صفحه ویرایش برگه یا "
2070
- "نوشته در ویرایشگر دیداری پیست کنید."
2071
-
2072
- #: includes/admin/view-help.php:99
2073
- msgid "Visual Editor Button"
2074
- msgstr "دکمه ویرایشگر دیداری "
2075
-
2076
- #: includes/admin/view-help.php:100
2077
- #, php-format
2078
- msgid ""
2079
- "Or to make life even easier, you can insert a gallery using the Add %s "
2080
- "button inside the WordPress visual editor."
2081
- msgstr ""
2082
- "یا حتی برای راحت تر شدن کار ، می توانید گالری ها را با استفاده از دکمه اضافه "
2083
- "کردن %s در ویرایشگر دیداری وردپرس ، اضافه کنید."
2084
-
2085
- #: includes/admin/view-help.php:102
2086
- msgid "Copy To Clipboard"
2087
- msgstr "کپی در کلیپ بورد"
2088
-
2089
- #: includes/admin/view-help.php:103
2090
- msgid ""
2091
- "We make your life easy! Just click the shortcodes and they get copied to "
2092
- "your clipboard automatically. "
2093
- msgstr ""
2094
- "ما کار شما را راحت کرده ایم. فقط روی کدهای کوتاه کلیک کنید تا به شکل "
2095
- "اتوماتیک روی کلیپ بورد شما کپی شوند."
2096
-
2097
- #: includes/admin/view-help.php:117
2098
- msgid "Create Your Own Extensions"
2099
- msgstr "اکستنشن های خودتان را بنویسید"
2100
-
2101
- #: includes/admin/view-help.php:119
2102
- msgid "Easy To Code"
2103
- msgstr "ساده برای کد نویسی"
2104
-
2105
- #: includes/admin/view-help.php:120
2106
- #, php-format
2107
- msgid ""
2108
- "We have done all the hard work to make your life easier. Creating an "
2109
- "extension for %s can be done in a couple lines of code."
2110
- msgstr ""
2111
- "ما همه کارهای سخت را انجام داده ایم تا زندگی شما را راحت تر کنیم. ساختن یک "
2112
- "اکستنشن برای %s می تواند به سادگی و با چند خط کد انجام شود."
2113
-
2114
- #: includes/admin/view-help.php:122
2115
- msgid "Actions and Filters"
2116
- msgstr "اقدامات و فیلتر ها"
2117
-
2118
- #: includes/admin/view-help.php:123
2119
- #, php-format
2120
- msgid ""
2121
- "We coded %s with extensibility in mind. There are hundreds of actions and "
2122
- "filters and helper functions to change every aspect of the plugin."
2123
- msgstr ""
2124
- "ما %s را با رویکرد قابلیت افزایش نوشته ایم. صدها اقدام و فیلتر هست و نیز "
2125
- "توابع کارگشا برای عوض کردن هر جنبه از افزونه در دسترس شما هست."
2126
-
2127
- #: includes/admin/view-help.php:125
2128
- msgid "Host Anywhere"
2129
- msgstr "هرجایی میزبانی کن"
2130
-
2131
- #: includes/admin/view-help.php:126
2132
- msgid ""
2133
- "Host your extensions on the WordPress.org plugin repo, or GitHub, or even in "
2134
- "your own Amazon S3 bucket. You have the power and choice!"
2135
- msgstr ""
2136
- "اکستنشن هایت را در مخازن وردپرس یا گیت هاب میزبانی کن، حتی آن ها را در "
2137
- "Amazon S3 میزبانی کن. تو قدرت و حق انتخاب داری !"
2138
-
2139
- #: includes/admin/view-system-info.php:39
2140
- #, php-format
2141
- msgid ""
2142
- "Below is some information about your server configuration. You can use this "
2143
- "info to help debug issues you may have with %s."
2144
- msgstr ""
2145
- "در زیر برخی از اطلاعات در مورد پیکربندی سرور میزبان شما آمده است . شما می "
2146
- "توانید از این اطلاعات برای حل مشکلات به وجود آمده در کار با %s استفاده کنید."
2147
-
2148
- #: includes/admin/view-system-info.php:60
2149
- msgid "FooGallery version"
2150
- msgstr "نگارش فووگالری"
2151
-
2152
- #: includes/admin/view-system-info.php:61
2153
- msgid "WordPress version"
2154
- msgstr "نگارش وردپرس"
2155
-
2156
- #: includes/admin/view-system-info.php:62
2157
- msgid "Activated Theme"
2158
- msgstr "قالب فعال"
2159
-
2160
- #: includes/admin/view-system-info.php:63
2161
- msgid "WordPress URL"
2162
- msgstr "آدرس وردپرس نصب شده"
2163
-
2164
- #: includes/admin/view-system-info.php:64
2165
- msgid "PHP version"
2166
- msgstr "نگارش PHP"
2167
-
2168
- #: includes/admin/view-system-info.php:65
2169
- msgid "PHP GD Loaded"
2170
- msgstr "PHP GD در دسترس و بار گذاری شده است."
2171
-
2172
- #: includes/admin/view-system-info.php:65
2173
- msgid "Not found!"
2174
- msgstr "پیدا نشد!"
2175
-
2176
- #: includes/admin/view-system-info.php:66
2177
- msgid "Extensions Endpoint"
2178
- msgstr "نقطه پایانی اکستنشن ها"
2179
-
2180
- #: includes/admin/view-system-info.php:67
2181
- msgid "Extensions Errors"
2182
- msgstr "خطا های اکستنشن ها"
2183
-
2184
- #: includes/admin/view-system-info.php:67
2185
- msgid "Nope, all good"
2186
- msgstr "نه، همه چیز خوبه !"
2187
-
2188
- #: includes/admin/view-system-info.php:69
2189
- msgid "Extensions Active"
2190
- msgstr "اکستنشن های فعال"
2191
-
2192
- #: includes/admin/view-system-info.php:71
2193
- msgid "Lightboxes"
2194
- msgstr "قال عکس ها"
2195
-
2196
- #: includes/admin/view-system-info.php:72
2197
- msgid "Active Plugins"
2198
- msgstr "افزونه های فعال"
2199
-
2200
- #: includes/class-extensions-api.php:235
2201
- msgid "new"
2202
- msgstr "جدید"
2203
-
2204
- #: includes/class-extensions-api.php:320
2205
- msgid "All"
2206
- msgstr "همه"
2207
-
2208
- #: includes/class-extensions-api.php:323
2209
- msgid "Active"
2210
- msgstr "فعال"
2211
-
2212
- #: includes/class-extensions-api.php:342
2213
- msgid "Build Your Own"
2214
- msgstr "خودت بساز"
2215
-
2216
- #: includes/class-extensions-api.php:477
2217
- #, php-format
2218
- msgid "The extension %s could NOT be deactivated!"
2219
- msgstr "اکستنشن %s نمی تواند غیرفعال شود."
2220
-
2221
- #: includes/class-extensions-api.php:502
2222
- #, php-format
2223
- msgid "The extension %s was successfully deactivated"
2224
- msgstr "اکستنشن %s با موفقیت غیر فعال شد."
2225
-
2226
- #: includes/class-extensions-api.php:507 includes/class-extensions-api.php:572
2227
- #: includes/class-extensions-api.php:665
2228
- #, php-format
2229
- msgid "Unknown extension : %s"
2230
- msgstr "اکستنشن ناشناس : %s"
2231
-
2232
- #: includes/class-extensions-api.php:537
2233
- #, php-format
2234
- msgid "Requires %s version %s"
2235
- msgstr "نیاز به %s نگارش %s"
2236
-
2237
- #: includes/class-extensions-api.php:539
2238
- #, php-format
2239
- msgid ""
2240
- "The extension %s could not be activated, because you are using an outdated "
2241
- "version! Please update %s to at least version %s."
2242
- msgstr ""
2243
- "اکستنشن %s قادر به فعالیت نیست. این بدین دلیل است که شما از نگارشی قدیمی "
2244
- "استفاده می کنید ! لطفا %s را به آخرین نسخه اش یعنی %s بروز رسانی کنید."
2245
-
2246
- #: includes/class-extensions-api.php:549
2247
- #, php-format
2248
- msgid "The extension %s could NOT be activated!"
2249
- msgstr "اکستنشن %s نمی تواند فعال شود."
2250
-
2251
- #: includes/class-extensions-api.php:567
2252
- #, php-format
2253
- msgid "The extension %s was successfully activated"
2254
- msgstr "اکستنشن %s با موفقیت فعال شد."
2255
-
2256
- #: includes/class-extensions-api.php:619
2257
- #, php-format
2258
- msgid ""
2259
- "Unable to connect to the WordPress.org plugin API to download %s. Full error "
2260
- "log: %s"
2261
- msgstr ""
2262
- "عدم توانایی در اتصال به API های Wordpress.org برای دانلود %s . لاگ خطای "
2263
- "کامل :%s"
2264
-
2265
- #: includes/class-extensions-api.php:633
2266
- #, php-format
2267
- msgid "The extension %s has no download link!"
2268
- msgstr "اکستنشن %s هیچ پیوند دانلود مشخصی ندارد!"
2269
-
2270
- #: includes/class-extensions-api.php:648
2271
- #, php-format
2272
- msgid "The extension %s could NOT be downloaded!"
2273
- msgstr "نتوانستیم اکستنشن %s را دانلود کنیم !"
2274
-
2275
- #: includes/class-extensions-api.php:655
2276
- #, php-format
2277
- msgid ""
2278
- "The extension %s was successfully downloaded and can now be activated. %s"
2279
- msgstr "اکستنشن %s با موفقیت دانلود شد و حالا می تواند فعال شود . %s"
2280
-
2281
- #: includes/class-extensions-api.php:659
2282
- msgid "Activate immediately"
2283
- msgstr "بی درنگ فعال کن"
2284
-
2285
- #: includes/class-extensions-api.php:715
2286
- msgid "Error loading extension!"
2287
- msgstr "خطا در بارگذاری اکستنشن"
2288
-
2289
- #: includes/class-foogallery.php:306
2290
- msgid "No images"
2291
- msgstr "بدون عکس"
2292
-
2293
- #: includes/class-foogallery.php:308
2294
- msgid "1 image"
2295
- msgstr "1 عکس"
2296
-
2297
- #: includes/class-foogallery.php:310
2298
- #, php-format
2299
- msgid "%s images"
2300
- msgstr "%s عدد عکس"
2301
-
2302
- #: includes/class-posttypes.php:27
2303
- msgid "Gallery"
2304
- msgstr "گالری"
2305
-
2306
- #: includes/class-posttypes.php:28
2307
- msgid "Add Gallery"
2308
- msgstr "اضافه کردن گالری"
2309
-
2310
- #: includes/class-posttypes.php:30
2311
- msgid "Edit Gallery"
2312
- msgstr "ویرایش گالری"
2313
-
2314
- #: includes/class-posttypes.php:31
2315
- msgid "New Gallery"
2316
- msgstr "گالری جدید"
2317
-
2318
- #: includes/class-posttypes.php:32
2319
- msgid "View Gallery"
2320
- msgstr "دیدن گالری"
2321
-
2322
- #: includes/class-posttypes.php:33
2323
- msgid "Search Galleries"
2324
- msgstr "جستجو در میان گالری ها"
2325
-
2326
- #: includes/class-posttypes.php:34
2327
- msgid "No Galleries found"
2328
- msgstr "هیچ گالری پیدا نشد."
2329
-
2330
- #: includes/class-posttypes.php:35
2331
- msgid "No Galleries found in Trash"
2332
- msgstr "هیچ گالری در سطل آشغال نیست"
2333
-
2334
- #: includes/class-posttypes.php:69 includes/class-posttypes.php:72
2335
- msgid "Gallery updated."
2336
- msgstr "گالری به روز رسانی شد."
2337
-
2338
- #: includes/class-posttypes.php:70
2339
- msgid "Gallery custom field updated."
2340
- msgstr "فیلد سفارشی گالری به روز شد"
2341
-
2342
- #: includes/class-posttypes.php:71
2343
- msgid "Gallery custom field deleted."
2344
- msgstr "فیلد سفارشی گالری پاک شد"
2345
-
2346
- #: includes/class-posttypes.php:73
2347
- #, php-format
2348
- msgid "Gallery restored to revision from %s."
2349
- msgstr "گالری برای بازبینی از %s بازگردانده شد."
2350
-
2351
- #: includes/class-posttypes.php:74
2352
- msgid "Gallery published."
2353
- msgstr "گالری منتشر شد"
2354
-
2355
- #: includes/class-posttypes.php:75
2356
- msgid "Gallery saved."
2357
- msgstr "گالری ذخیره شد"
2358
-
2359
- #: includes/class-posttypes.php:76
2360
- msgid "Gallery submitted."
2361
- msgstr "گالری ارسال شد"
2362
-
2363
- #: includes/class-posttypes.php:77
2364
- #, php-format
2365
- msgid "Gallery scheduled for: <strong>%1$s</strong>."
2366
- msgstr "گالری برای <strong>%1$s</strong> زمان بندی شد."
2367
-
2368
- #: includes/class-posttypes.php:78
2369
- msgid "Gallery draft updated."
2370
- msgstr "چک نویس گالری