YITH WooCommerce Compare - Version 1.1.4

Version Description

  • Fixed: Horizontal scroll bar issue: show at the end of iframe
  • Updated: Colorbox Library Version 1.5.10
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: woocommerce, compare, compare products, product compare, widget
5
Requires at least: 3.5.1
6
Tested up to: 3.9.1
7
- Stable tag: 1.1.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -83,6 +83,11 @@ Yes, you can sort the fields in the compare table. You can do it in Woocommerce
83
84
== Changelog ==
85
86
= 1.1.3 =
87
88
* Added: RTL Support
4
Tags: woocommerce, compare, compare products, product compare, widget
5
Requires at least: 3.5.1
6
Tested up to: 3.9.1
7
+ Stable tag: 1.1.4
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
83
84
== Changelog ==
85
86
+ = 1.1.4 =
87
+
88
+ * Fixed: Horizontal scroll bar issue: show at the end of iframe
89
+ * Updated: Colorbox Library Version 1.5.10
90
+
91
= 1.1.3 =
92
93
* Added: RTL Support
assets/js/jquery.colorbox-min.js CHANGED
@@ -1,191 +1,7 @@
1
/*!
2
- jQuery Colorbox v1.4.21 - 2013-06-06
3
- (c) 2013 Jack Moore - jacklmoore.com/colorbox
4
- license: http://www.opensource.org/licenses/mit-license.php
5
- */
6
- (function (t, e, i) {
7
- function o(i, o, n) {
8
- var r = e.createElement(i);
9
- return o && (r.id = te + o), n && (r.style.cssText = n), t(r)
10
- }
11
-
12
- function n() {
13
- return i.innerHeight ? i.innerHeight : t(i).height()
14
- }
15
-
16
- function r(t) {
17
- var e = E.length, i = (j + t) % e;
18
- return 0 > i ? e + i : i
19
- }
20
-
21
- function h(t, e) {
22
- return Math.round((/%/.test(t) ? ("x" === e ? H.width() : n()) / 100 : 1) * parseInt(t, 10))
23
- }
24
-
25
- function l(t, e) {
26
- return t.photo || t.photoRegex.test(e)
27
- }
28
-
29
- function s(t, e) {
30
- return t.retinaUrl && i.devicePixelRatio > 1 ? e.replace(t.photoRegex, t.retinaSuffix) : e
31
- }
32
-
33
- function a(t) {
34
- "contains"in y[0] && !y[0].contains(t.target) && (t.stopPropagation(), y.focus())
35
- }
36
-
37
- function d() {
38
- var e, i = t.data(A, Z);
39
- null == i ? (_ = t.extend({}, Y), console && console.log && console.log("Error: cboxElement missing settings object")) : _ = t.extend({}, i);
40
- for (e in _)t.isFunction(_[e]) && "on" !== e.slice(0, 2) && (_[e] = _[e].call(A));
41
- _.rel = _.rel || A.rel || t(A).data("rel") || "nofollow", _.href = _.href || t(A).attr("href"), _.title = _.title || A.title, "string" == typeof _.href && (_.href = t.trim(_.href))
42
- }
43
-
44
- function c(i, o) {
45
- t(e).trigger(i), se.trigger(i), t.isFunction(o) && o.call(A)
46
- }
47
-
48
- function u() {
49
- var t, e, i, o, n, r = te + "Slideshow_", h = "click." + te;
50
- _.slideshow && E[1] ? (e = function () {
51
- clearTimeout(t)
52
- }, i = function () {
53
- (_.loop || E[j + 1]) && (t = setTimeout(J.next, _.slideshowSpeed))
54
- }, o = function () {
55
- R.html(_.slideshowStop).unbind(h).one(h, n), se.bind(ne, i).bind(oe, e).bind(re, n), y.removeClass(r + "off").addClass(r + "on")
56
- }, n = function () {
57
- e(), se.unbind(ne, i).unbind(oe, e).unbind(re, n), R.html(_.slideshowStart).unbind(h).one(h, function () {
58
- J.next(), o()
59
- }), y.removeClass(r + "on").addClass(r + "off")
60
- }, _.slideshowAuto ? o() : n()) : y.removeClass(r + "off " + r + "on")
61
- }
62
-
63
- function f(i) {
64
- G || (A = i, d(), E = t(A), j = 0, "nofollow" !== _.rel && (E = t("." + ee).filter(function () {
65
- var e, i = t.data(this, Z);
66
- return i && (e = t(this).data("rel") || i.rel || this.rel), e === _.rel
67
- }), j = E.index(A), -1 === j && (E = E.add(A), j = E.length - 1)), g.css({opacity: parseFloat(_.opacity), cursor: _.overlayClose ? "pointer" : "auto", visibility: "visible"}).show(), V && y.add(g).removeClass(V), _.className && y.add(g).addClass(_.className), V = _.className, P.html(_.close).show(), $ || ($ = q = !0, y.css({visibility: "hidden", display: "block"}), W = o(ae, "LoadedContent", "width:0; height:0; overflow:hidden").appendTo(v), D = b.height() + k.height() + v.outerHeight(!0) - v.height(), B = T.width() + C.width() + v.outerWidth(!0) - v.width(), N = W.outerHeight(!0), z = W.outerWidth(!0), _.w = h(_.initialWidth, "x"), _.h = h(_.initialHeight, "y"), J.position(), u(), c(ie, _.onOpen), O.add(S).hide(), y.focus(), _.trapFocus && e.addEventListener && (e.addEventListener("focus", a, !0), se.one(he, function () {
68
- e.removeEventListener("focus", a, !0)
69
- })), _.returnFocus && se.one(he, function () {
70
- t(A).focus()
71
- })), w())
72
- }
73
-
74
- function p() {
75
- !y && e.body && (X = !1, H = t(i), y = o(ae).attr({id: Z, "class": t.support.opacity === !1 ? te + "IE" : "", role: "dialog", tabindex: "-1"}).hide(), g = o(ae, "Overlay").hide(), L = o(ae, "LoadingOverlay").add(o(ae, "LoadingGraphic")), x = o(ae, "Wrapper"), v = o(ae, "Content").append(S = o(ae, "Title"), M = o(ae, "Current"), K = t('<button type="button"/>').attr({id: te + "Previous"}), I = t('<button type="button"/>').attr({id: te + "Next"}), R = o("button", "Slideshow"), L, P = t('<button type="button"/>').attr({id: te + "Close"})), x.append(o(ae).append(o(ae, "TopLeft"), b = o(ae, "TopCenter"), o(ae, "TopRight")), o(ae, !1, "clear:left").append(T = o(ae, "MiddleLeft"), v, C = o(ae, "MiddleRight")), o(ae, !1, "clear:left").append(o(ae, "BottomLeft"), k = o(ae, "BottomCenter"), o(ae, "BottomRight"))).find("div div").css({"float": "left"}), F = o(ae, !1, "position:absolute; width:9999px; visibility:hidden; display:none"), O = I.add(K).add(M).add(R), t(e.body).append(g, y.append(x, F)))
76
- }
77
-
78
- function m() {
79
- function i(t) {
80
- t.which > 1 || t.shiftKey || t.altKey || t.metaKey || t.ctrlKey || (t.preventDefault(), f(this))
81
- }
82
-
83
- return y ? (X || (X = !0, I.click(function () {
84
- J.next()
85
- }), K.click(function () {
86
- J.prev()
87
- }), P.click(function () {
88
- J.close()
89
- }), g.click(function () {
90
- _.overlayClose && J.close()
91
- }), t(e).bind("keydown." + te, function (t) {
92
- var e = t.keyCode;
93
- $ && _.escKey && 27 === e && (t.preventDefault(), J.close()), $ && _.arrowKey && E[1] && !t.altKey && (37 === e ? (t.preventDefault(), K.click()) : 39 === e && (t.preventDefault(), I.click()))
94
- }), t.isFunction(t.fn.on) ? t(e).on("click." + te, "." + ee, i) : t("." + ee).live("click." + te, i)), !0) : !1
95
- }
96
-
97
- function w() {
98
- var n, r, a, u = J.prep, f = ++de;
99
- q = !0, U = !1, A = E[j], d(), c(le), c(oe, _.onLoad), _.h = _.height ? h(_.height, "y") - N - D : _.innerHeight && h(_.innerHeight, "y"), _.w = _.width ? h(_.width, "x") - z - B : _.innerWidth && h(_.innerWidth, "x"), _.mw = _.w, _.mh = _.h, _.maxWidth && (_.mw = h(_.maxWidth, "x") - z - B, _.mw = _.w && _.w < _.mw ? _.w : _.mw), _.maxHeight && (_.mh = h(_.maxHeight, "y") - N - D, _.mh = _.h && _.h < _.mh ? _.h : _.mh), n = _.href, Q = setTimeout(function () {
100
- L.show()
101
- }, 100), _.inline ? (a = o(ae).hide().insertBefore(t(n)[0]), se.one(le, function () {
102
- a.replaceWith(W.children())
103
- }), u(t(n))) : _.iframe ? u(" ") : _.html ? u(_.html) : l(_, n) ? (n = s(_, n), U = e.createElement("img"), t(U).addClass(te + "Photo").bind("error",function () {
104
- _.title = !1, u(o(ae, "Error").html(_.imgError))
105
- }).one("load", function () {
106
- var e;
107
- f === de && (U.alt = t(A).attr("alt") || t(A).attr("data-alt") || "", _.retinaImage && i.devicePixelRatio > 1 && (U.height = U.height / i.devicePixelRatio, U.width = U.width / i.devicePixelRatio), _.scalePhotos && (r = function () {
108
- U.height -= U.height * e, U.width -= U.width * e
109
- }, _.mw && U.width > _.mw && (e = (U.width - _.mw) / U.width, r()), _.mh && U.height > _.mh && (e = (U.height - _.mh) / U.height, r())), _.h && (U.style.marginTop = Math.max(_.mh - U.height, 0) / 2 + "px"), E[1] && (_.loop || E[j + 1]) && (U.style.cursor = "pointer", U.onclick = function () {
110
- J.next()
111
- }), U.style.width = U.width + "px", U.style.height = U.height + "px", setTimeout(function () {
112
- u(U)
113
- }, 1))
114
- }), setTimeout(function () {
115
- U.src = n
116
- }, 1)) : n && F.load(n, _.data, function (e, i) {
117
- f === de && u("error" === i ? o(ae, "Error").html(_.xhrError) : t(this).contents())
118
- })
119
- }
120
-
121
- var g, y, x, v, b, T, C, k, E, H, W, F, L, S, M, R, I, K, P, O, _, D, B, N, z, A, j, U, $, q, G, Q, J, V, X, Y = {transition: "elastic", speed: 300, fadeOut: 300, width: !1, initialWidth: "600", innerWidth: !1, maxWidth: !1, height: !1, initialHeight: "450", innerHeight: !1, maxHeight: !1, scalePhotos: !0, scrolling: !0, inline: !1, html: !1, iframe: !1, fastIframe: !0, photo: !1, href: !1, title: !1, rel: !1, opacity: .9, preloading: !0, className: !1, retinaImage: !1, retinaUrl: !1, retinaSuffix: "@2x.$1", current: "image {current} of {total}", previous: "previous", next: "next", close: "close", xhrError: "This content failed to load.", imgError: "This image failed to load.", open: !1, returnFocus: !0, trapFocus: !0, reposition: !0, loop: !0, slideshow: !1, slideshowAuto: !0, slideshowSpeed: 2500, slideshowStart: "start slideshow", slideshowStop: "stop slideshow", photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?#x2F;i, onOpen: !1, onLoad: !1, onComplete: !1, onCleanup: !1, onClosed: !1, overlayClose: !0, escKey: !0, arrowKey: !0, top: !1, bottom: !1, left: !1, right: !1, fixed: !1, data: void 0}, Z = "colorbox", te = "cbox", ee = te + "Element", ie = te + "_open", oe = te + "_load", ne = te + "_complete", re = te + "_cleanup", he = te + "_closed", le = te + "_purge", se = t("<a/>"), ae = "div", de = 0;
122
- t.colorbox || (t(p), J = t.fn[Z] = t[Z] = function (e, i) {
123
- var o = this;
124
- if (e = e || {}, p(), m()) {
125
- if (t.isFunction(o))o = t("<a/>"), e.open = !0; else if (!o[0])return o;
126
- i && (e.onComplete = i), o.each(function () {
127
- t.data(this, Z, t.extend({}, t.data(this, Z) || Y, e))
128
- }).addClass(ee), (t.isFunction(e.open) && e.open.call(o) || e.open) && f(o[0])
129
- }
130
- return o
131
- }, J.position = function (t, e) {
132
- function i(t) {
133
- b[0].style.width = k[0].style.width = v[0].style.width = parseInt(t.style.width, 10) - B + "px", v[0].style.height = T[0].style.height = C[0].style.height = parseInt(t.style.height, 10) - D + "px"
134
- }
135
-
136
- var o, r, l, s = 0, a = 0, d = y.offset();
137
- H.unbind("resize." + te), y.css({top: -9e4, left: -9e4}), r = H.scrollTop(), l = H.scrollLeft(), _.fixed ? (d.top -= r, d.left -= l, y.css({position: "fixed"})) : (s = r, a = l, y.css({position: "absolute"})), a += _.right !== !1 ? Math.max(H.width() - _.w - z - B - h(_.right, "x"), 0) : _.left !== !1 ? h(_.left, "x") : Math.round(Math.max(H.width() - _.w - z - B, 0) / 2), s += _.bottom !== !1 ? Math.max(n() - _.h - N - D - h(_.bottom, "y"), 0) : _.top !== !1 ? h(_.top, "y") : Math.round(Math.max(n() - _.h - N - D, 0) / 2), y.css({top: d.top, left: d.left, visibility: "visible"}), t = y.width() === _.w + z && y.height() === _.h + N ? 0 : t || 0, x[0].style.width = x[0].style.height = "9999px", o = {width: _.w + z + B, height: _.h + N + D, top: s, left: a}, 0 === t && y.css(o), y.dequeue().animate(o, {duration: t, complete: function () {
138
- i(this), q = !1, x[0].style.width = _.w + z + B + "px", x[0].style.height = _.h + N + D + "px", _.reposition && setTimeout(function () {
139
- H.bind("resize." + te, J.position)
140
- }, 1), e && e()
141
- }, step : function () {
142
- i(this)
143
- }})
144
- }, J.resize = function (t) {
145
- var e;
146
- $ && (t = t || {}, t.width && (_.w = h(t.width, "x") - z - B), t.innerWidth && (_.w = h(t.innerWidth, "x")), W.css({width: _.w}), t.height && (_.h = h(t.height, "y") - N - D), t.innerHeight && (_.h = h(t.innerHeight, "y")), t.innerHeight || t.height || (e = W.scrollTop(), W.css({height: "auto"}), _.h = W.height()), W.css({height: _.h}), e && W.scrollTop(e), J.position("none" === _.transition ? 0 : _.speed))
147
- }, J.prep = function (i) {
148
- function n() {
149
- return _.w = _.w || W.width(), _.w = _.mw && _.mw < _.w ? _.mw : _.w, _.w
150
- }
151
-
152
- function h() {
153
- return _.h = _.h || W.height(), _.h = _.mh && _.mh < _.h ? _.mh : _.h, _.h
154
- }
155
-
156
- if ($) {
157
- var a, d = "none" === _.transition ? 0 : _.speed;
158
- W.empty().remove(), W = o(ae, "LoadedContent").append(i), W.hide().appendTo(F.show()).css({width: n(), overflow: _.scrolling ? "auto" : "hidden"}).css({height: h()}).prependTo(v), F.hide(), t(U).css({"float": "none"}), a = function () {
159
- function i() {
160
- t.support.opacity === !1 && y[0].style.removeAttribute("filter")
161
- }
162
-
163
- var n, h, a = E.length, u = "frameBorder", f = "allowTransparency";
164
- $ && (h = function () {
165
- clearTimeout(Q), L.hide(), c(ne, _.onComplete)
166
- }, S.html(_.title).add(W).show(), a > 1 ? ("string" == typeof _.current && M.html(_.current.replace("{current}", j + 1).replace("{total}", a)).show(), I[_.loop || a - 1 > j ? "show" : "hide"]().html(_.next), K[_.loop || j ? "show" : "hide"]().html(_.previous), _.slideshow && R.show(), _.preloading && t.each([r(-1), r(1)], function () {
167
- var i, o, n = E[this], r = t.data(n, Z);
168
- r && r.href ? (i = r.href, t.isFunction(i) && (i = i.call(n))) : i = t(n).attr("href"), i && l(r, i) && (i = s(r, i), o = e.createElement("img"), o.src = i)
169
- })) : O.hide(), _.iframe ? (n = o("iframe")[0], u in n && (n[u] = 0), f in n && (n[f] = "true"), _.scrolling || (n.scrolling = "no"), t(n).attr({src: _.href, name: (new Date).getTime(), "class": te + "Iframe", allowFullScreen: !0, webkitAllowFullScreen: !0, mozallowfullscreen: !0}).one("load", h).appendTo(W), se.one(le, function () {
170
- n.src = "//about:blank"
171
- }), _.fastIframe && t(n).trigger("load")) : h(), "fade" === _.transition ? y.fadeTo(d, 1, i) : i())
172
- }, "fade" === _.transition ? y.fadeTo(d, 0, function () {
173
- J.position(0, a)
174
- }) : J.position(d, a)
175
- }
176
- }, J.next = function () {
177
- !q && E[1] && (_.loop || E[j + 1]) && (j = r(1), f(E[j]))
178
- }, J.prev = function () {
179
- !q && E[1] && (_.loop || j) && (j = r(-1), f(E[j]))
180
- }, J.close = function () {
181
- $ && !G && (G = !0, $ = !1, c(re, _.onCleanup), H.unbind("." + te), g.fadeTo(_.fadeOut || 0, 0), y.stop().fadeTo(_.fadeOut || 0, 0, function () {
182
- y.add(g).css({opacity: 1, cursor: "auto"}).hide(), c(le), W.empty().remove(), setTimeout(function () {
183
- G = !1, c(he, _.onClosed)
184
- }, 1)
185
- }))
186
- }, J.remove = function () {
187
- y && (y.stop(), t.colorbox.close(), y.stop().remove(), g.remove(), G = !1, y = null, t("." + ee).removeData(Z).removeClass(ee), t(e).unbind("click." + te))
188
- }, J.element = function () {
189
- return t(A)
190
- }, J.settings = Y)
191
- })(jQuery, document, window);
1
/*!
2
+ Colorbox v1.5.10 - 2014-06-26
3
+ jQuery lightbox and modal window plugin
4
+ (c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
5
+ license: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(z+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){z=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),z=W.index(_.el),-1===z&&(W=W.add(_.el),z=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),L=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(L),D=T.height()+k.height()+b.outerHeight(!0)-b.height(),j=C.width()+H.width()+b.outerWidth(!0)-b.width(),A=L.outerHeight(!0),N=L.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-N-j,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-A-D,L.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(I).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}v.css({opacity:parseFloat(_.get("opacity"))||"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){!y&&e.body&&(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),S=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(I=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),F=n("button","Slideshow"),S),B=t('<button type="button"/>').attr({id:Z+"Close"}),x.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(F),t(e.body).append(v,y.append(x,M)))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return y?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;amp;&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),amp;&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-A-D:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-N-j:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-N-j,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-A-D,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){S.show()},100),_.get("inline")){var c=t(e);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=new Image,t(U).addClass(Z+"Photo").bind("error",function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;t.each(["alt","longdesc","aria-describedby"],function(e,i){var n=t(_.el).attr(i)||t(_.el).attr("data-"+i);n&&U.setAttribute(i,n)}),_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[z+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,y,x,b,T,C,H,k,W,E,L,M,S,I,R,F,K,P,B,O,_,D,j,A,N,z,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?#x2F;i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[z+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){F.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),y.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),F.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),y.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,F.hide(),t(),ae.unbind(ne,e).unbind(ie,t),y.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),F.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;if(e=e||{},t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;return o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-j+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(y[0].style.height,10)-D+"px"}var r,h,s,l=0,d=0,c=y.offset();if(E.unbind("resize."+Z),y.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,y.css({position:"fixed"})):(l=h,d=s,y.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-N-j-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-N-j,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-A-D-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-A-D,0)/2),y.css({top:c.top,left:c.left,visibility:"visible"}),x[0].style.width=x[0].style.height="9999px",r={width:_.w+N+j,height:_.h+A+D,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||y.css(r),y.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,x[0].style.width=_.w+N+j+"px",x[0].style.height=_.h+A+D+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),i&&i()},step:n})},J.resize=function(t){var e;amp;&(t=t||{},t.width&&(_.w=a(t.width,"x")-N-j),t.innerWidth&&(_.w=a(t.innerWidth,"x")),L.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-A-D),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=L.scrollTop(),L.css({height:"auto"}),_.h=L.height()),L.css({height:_.h}),e&&L.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||L.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||L.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");L.remove(),L=n(se,"LoadedContent").append(i),L.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&y[0].style.removeAttribute("filter")}var n,o,a=W.length;amp;&(o=function(){clearTimeout(Q),S.hide(),u(ne),_.get("onComplete")},I.html(_.get("title")).show(),L.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",z+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>z?"show":"hide"]().html(_.get("next")),P[_.get("loop")||z?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=e.createElement("iframe"),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0}).one("load",o).appendTo(L),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?y.fadeTo(g,1,i):i())},"fade"===_.get("transition")?y.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[z+1])&&(z=h(1),f(W[z]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||z)&&(z=h(-1),f(W[z]))},J.close=function(){amp;&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),y.stop().fadeTo(_.get("fadeOut")||0,0,function(){y.hide(),v.hide(),u(he),L.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){y&&(y.stop(),t[Y].close(),y.stop(!1,!0).remove(),v.remove(),G=!1,y=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
class.yith-woocompare-admin.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Magnifier
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Magnifier
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare-frontend.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare-helper.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Compare
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
functions.yith-woocompare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
init.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: YITH Woocommerce Compare
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
- * Version: 1.1.2
7
* Author: Your Inspiration Themes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
@@ -11,7 +11,7 @@
11
*
12
* @author Your Inspiration Themes
13
* @package YITH Woocommerce Compare
14
- * @version 1.1.2
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
3
* Plugin Name: YITH Woocommerce Compare
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
+ * Version: 1.1.4
7
* Author: Your Inspiration Themes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
11
*
12
* @author Your Inspiration Themes
13
* @package YITH Woocommerce Compare
14
+ * @version 1.1.4
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
templates/compare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.1.3
8
*/
9
10
global $product;
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
global $product;
widgets/class.yith-woocompare-widget.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
yith-woocompare-options.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.1.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.1.4
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly