YITH WooCommerce Zoom Magnifier - Version 1.3.16

Version Description

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Zoom Magnifier
Version 1.3.16
Comparing to
See all releases

Code changes from version 1.3.15 to 1.3.16

Files changed (54) hide show
  1. README.txt +9 -2
  2. assets/js/yith_magnifier.js +15 -3
  3. assets/js/yith_magnifier.min.js +1 -1
  4. assets/js/ywzm_frontend.js +8 -6
  5. assets/js/ywzm_frontend.min.js +1 -1
  6. init.php +3 -3
  7. lib/class.yith-woocommerce-zoom-magnifier.php +27 -6
  8. plugin-fw/Gruntfile.js +96 -0
  9. plugin-fw/assets/css/yith-fields.css +91 -87
  10. plugin-fw/assets/fonts/yith-icon.eot +0 -0
  11. plugin-fw/assets/fonts/yith-icon.svg +9 -0
  12. plugin-fw/assets/fonts/yith-icon.ttf +0 -0
  13. plugin-fw/assets/fonts/yith-icon.woff +0 -0
  14. plugin-fw/assets/js/how-to.min.js +1 -1
  15. plugin-fw/assets/js/jquery.colorbox.min.js +5 -32
  16. plugin-fw/assets/js/metabox.js +14 -0
  17. plugin-fw/assets/js/metabox.min.js +1 -1
  18. plugin-fw/assets/js/multisite-updater.js +1 -1
  19. plugin-fw/assets/js/multisite-updater.min.js +1 -8
  20. plugin-fw/assets/js/wp-pages.min.js +1 -1
  21. plugin-fw/assets/js/yit-cpt-unlimited.min.js +1 -2
  22. plugin-fw/assets/js/yit-plugin-panel.js +35 -14
  23. plugin-fw/assets/js/yit-plugin-panel.min.js +1 -1
  24. plugin-fw/assets/js/yit-wp-pointer.min.js +1 -6
  25. plugin-fw/assets/js/yith-dashboard.min.js +1 -2
  26. plugin-fw/assets/js/yith-enhanced-select-wc-2.6.min.js +1 -5
  27. plugin-fw/assets/js/yith-enhanced-select.min.js +1 -10
  28. plugin-fw/assets/js/yith-fields.min.js +1 -30
  29. plugin-fw/assets/js/yith-gutenberg.min.js +1 -6
  30. plugin-fw/assets/js/yith-promo.min.js +1 -1
  31. plugin-fw/assets/js/yith-system-info.min.js +1 -1
  32. plugin-fw/assets/js/yith-update-plugins.min.js +1 -2
  33. plugin-fw/init.php +3 -3
  34. plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
  35. plugin-fw/languages/yith-plugin-fw-el.po +791 -0
  36. plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
  37. plugin-fw/languages/yith-plugin-fw-es_ES.po +709 -560
  38. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  39. plugin-fw/languages/yith-plugin-fw-it_IT.po +699 -555
  40. plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
  41. plugin-fw/languages/yith-plugin-fw-nl_NL.po +1121 -0
  42. plugin-fw/languages/yith-plugin-fw.pot +331 -465
  43. plugin-fw/lib/yit-plugin-gradients.php +6 -6
  44. plugin-fw/lib/yit-plugin-panel-wc.php +24 -20
  45. plugin-fw/lib/yit-plugin-panel.php +18 -9
  46. plugin-fw/lib/yit-pointers.php +2 -2
  47. plugin-fw/lib/yith-system-status.php +45 -39
  48. plugin-fw/package.json +21 -0
  49. plugin-fw/templates/fields/country-select.php +1 -2
  50. plugin-fw/templates/fields/multi-colorpicker.php +3 -3
  51. plugin-fw/templates/fields/multi-select.php +2 -1
  52. plugin-fw/templates/fields/onoff.php +3 -1
  53. plugin-fw/templates/panel/panel-field-container.php +4 -2
  54. plugin-fw/yit-functions.php +23 -2
README.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: yithemes
4
  Tags: zoom, magnifier, slider, carousel, woocommerce
5
  Requires at least: 4.0
6
- Tested up to: 5.3
7
- Stable tag: 1.3.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Documentation: https://docs.yithemes.com/yith-woocommerce-zoom-magnifier/
@@ -52,6 +52,13 @@ YITH WooCommerce Zoom Magnifier will add a new tab called "Zoom Magnifier" in "Y
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
 
55
  = Version 1.3.15 - Released: Dec 23, 2019 =
56
 
57
  * New: support for WooCommerce 3.9
3
  Contributors: yithemes
4
  Tags: zoom, magnifier, slider, carousel, woocommerce
5
  Requires at least: 4.0
6
+ Tested up to: 5.4
7
+ Stable tag: 1.3.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Documentation: https://docs.yithemes.com/yith-woocommerce-zoom-magnifier/
52
 
53
  == Changelog ==
54
 
55
+ = Version 1.3.16 - Released: Mar 27, 2020 =
56
+
57
+ * New: support for WooCommerce 4.0
58
+ * New: support for WordPress 5.4
59
+ * New: compatibility with YITH WooCommerce Color and Label Gallery feature
60
+ * Update: plugin framework
61
+
62
  = Version 1.3.15 - Released: Dec 23, 2019 =
63
 
64
  * New: support for WooCommerce 3.9
assets/js/yith_magnifier.js CHANGED
@@ -330,6 +330,7 @@
330
  var data = {
331
  action : 'yith_wc_zoom_magnifier_get_main_image',
332
  product_id : product_id,
 
333
  }
334
 
335
  $.ajax({
@@ -346,20 +347,31 @@
346
  self.IMG_smallImage = new Image();
347
  self.IMG_smallImage.src = self.zoomImage.attr('src');
348
 
 
 
 
 
 
 
 
 
 
 
 
349
  if ($.browser && $.browser.msie && $.browser.version == 8) {
350
  $(self.IMG_zoomImage).load(function () {
351
-
352
  self._initTrap();
353
  });
354
  } else {
355
 
356
  $([self.IMG_zoomImage, self.IMG_smallImage]).imagesLoaded(function () {
357
-
358
  self._initTrap();
359
  });
360
  }
361
 
362
- $(document).trigger('yith_magnifier_after_init_zoom')
363
 
364
  }
365
  });
330
  var data = {
331
  action : 'yith_wc_zoom_magnifier_get_main_image',
332
  product_id : product_id,
333
+ context : 'frontend'
334
  }
335
 
336
  $.ajax({
347
  self.IMG_smallImage = new Image();
348
  self.IMG_smallImage.src = self.zoomImage.attr('src');
349
 
350
+ // set new gallery
351
+ if( response.gallery ) {
352
+
353
+ if ($('.yith_magnifier_gallery').length)
354
+ $('.yith_magnifier_gallery').closest('.thumbnails').replaceWith( response.gallery );
355
+ else
356
+ $( '.images').append( response.gallery );
357
+
358
+ self.options.elements.gallery = $('.yith_magnifier_gallery li a' );
359
+ }
360
+
361
  if ($.browser && $.browser.msie && $.browser.version == 8) {
362
  $(self.IMG_zoomImage).load(function () {
363
+ self._initGallery();
364
  self._initTrap();
365
  });
366
  } else {
367
 
368
  $([self.IMG_zoomImage, self.IMG_smallImage]).imagesLoaded(function () {
369
+ self._initGallery();
370
  self._initTrap();
371
  });
372
  }
373
 
374
+ $(document).trigger('yith_magnifier_after_init_zoom');
375
 
376
  }
377
  });
assets/js/yith_magnifier.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,d,i){"use strict";var g,p;d.fn.imagesLoaded===i&&(g=jQuery,p="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g.fn.imagesLoaded=function(o){var e=this,n=g.isFunction(g.Deferred)?g.Deferred():0,s=g.isFunction(n.notify),a=e.find("img").add(e.filter("img")),r=[],m=[],h=[];function l(){var t=g(m),i=g(h);n&&(h.length?n.reject(a,t,i):n.resolve(a)),g.isFunction(o)&&o.call(e,a,t,i)}function c(t){u(t.target,"error"===t.type)}function u(t,i){t.src!==p&&-1===g.inArray(t,r)&&(r.push(t),i?h.push(t):m.push(t),g.data(t,"imagesLoaded",{isBroken:i,src:t.src}),s&&n.notifyWith(g(t),[i,a,g(m),g(h)]),a.length===r.length&&(setTimeout(l),a.unbind(".imagesLoaded",c)))}return g.isPlainObject(o)&&g.each(o,function(t,i){"callback"===t?o=i:n&&n[t](i)}),a.length?a.bind("load.imagesLoaded error.imagesLoaded",c).each(function(t,i){var o=i.src,e=g.data(i,"imagesLoaded");e&&e.src===o?u(i,e.isBroken):i.complete&&void 0!==i.naturalWidth?u(i,0===i.naturalWidth||0===i.naturalHeight):(i.readyState||i.complete)&&(i.src=p,i.src=o)}):l(),n?n.promise(e):e}),d.yith_magnifier=function(t,i){this.t=i,this.element=d(i),this._init(t)},d.yith_magnifier.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:!1,tintOpacity:.5,lensOpacity:.5,softFocus:!1,smoothMove:3,showTitle:!0,titleOpacity:.5,adjustX:0,adjustY:0,phoneBehavior:"inside",loadingLabel:"Loading...",enableSlider:!0,slider:"carouFredSel",sliderOptions:{},from_gallery:"no",onLoad:function(){return!1},onEnter:function(){return!1},onLeave:function(){return!1},onMove:function(){return!1},onClick:function(){return!1},elements:{zoom:d(".yith_magnifier_zoom"),zoomImage:d(".yith_magnifier_zoom img").first(),gallery:d(".yith_magnifier_gallery li a")}},d.yith_magnifier.prototype={_init:function(t){var o=this;d(document).trigger("yith_magnifier_before_init"),d.each(d.yith_magnifier.defaults.elements,function(t,i){d.yith_magnifier.defaults.elements[t]=d(i,o)}),o.options=d.extend(!0,{},d.yith_magnifier.defaults,t),o.isPhone=o._isPhone(),o._loading(),o.element.imagesLoaded(function(){o.options.onLoad(),o._initZoom(),o._initGallery()}),d(document).trigger("yith_magnifier_after_init")},_initGallery:function(){var o=this,t=o.options.elements,i=t.gallery,e=t.zoom,n=t.zoomImage;0<i.length?(i.on("click",function(t){t.preventDefault(),o.options.from_gallery="yes";var i=d(this);o.destroy(),e.attr("href",this.href),n.attr("src",i.data("small")).attr("srcset",i.data("small")).attr("src-orig",i.data("small")).attr("title","").attr("title",i.attr("title")),d.data(o.t,"yith_magnifier",new d.yith_magnifier(o.options,o.element))}),o.options.enableSlider&&(i.closest("ul").trigger("yith_magnifier_slider_destroy"),i.closest("ul")[o.options.slider](o.options.sliderOptions))):i.on("click",function(t){return t.preventDefault(),!1})},_loading:function(){if(this.options.disableRightClick&&d(document).on("contextmenu",function(t){return!1}),this.mouseTrap===i){var t=this.options.elements.zoom.width();this.options.loadingLabel&&d('<div class="yith_magnifier_loading">'+this.options.loadingLabel+"</div>").css({width:t,"text-align":"center",opacity:.5}).appendTo(this.options.elements.zoom.parent())}},_initZoom:function(){var i=this;i.zoom=i.options.elements.zoom,i.zoomImage=i.options.elements.zoomImage;var t="yith_magnifier_zoom_wrap";i.options.zoom_wrap_additional_css&&(d("."+t).length||(t+=" "+i.options.zoom_wrap_additional_css)),i.zoom.wrap('<div class="'+t+'"></div>'),i.IMG_zoomImage=new Image;var o=d(".woocommerce-variation-add-to-cart .variation_id").val();if(d.isNumeric(o)&&0!=o&&"no"==i.options.from_gallery){var e={action:"yith_wc_zoom_magnifier_get_main_image",product_id:o};d.ajax({data:e,url:yith_wc_zoom_magnifier_storage_object.ajax_url,type:"post",error:function(t){console.log("ERROR - Yith_WC_Zoom_Magnifier"),console.log(t)},success:function(t){i.IMG_zoomImage.src=t.url,i.IMG_smallImage=new Image,i.IMG_smallImage.src=i.zoomImage.attr("src"),d.browser&&d.browser.msie&&8==d.browser.version?d(i.IMG_zoomImage).load(function(){i._initTrap()}):d([i.IMG_zoomImage,i.IMG_smallImage]).imagesLoaded(function(){i._initTrap()}),d(document).trigger("yith_magnifier_after_init_zoom")}})}else i.IMG_zoomImage.src=i.zoom.attr("href"),i.IMG_smallImage=new Image,i.IMG_smallImage.src=i.zoomImage.attr("src"),d.browser&&d.browser.msie&&8==d.browser.version?d(i.IMG_zoomImage).load(function(){i._initTrap()}):d([i.IMG_zoomImage,i.IMG_smallImage]).imagesLoaded(function(){i._initTrap()}),d(document).trigger("yith_magnifier_after_init_zoom")},_initTrap:function(){var h=this,l=h.IMG_zoomImage;h.IMG_smallImage;h.mx=0,h.my=0,h.controlTimer=0,h.lens=null,h.tint=null,h.softFocus=null,h.zoomDiv=null,h.cw=0,h.ch=0,h.zw=0,h.destU=0,h.destV=0,h.currU=0,h.currV=0,h.mouseTrap=null;var c=h.options.elements.zoom,u=h.options.elements.zoomImage;d(".yith_magnifier_loading").remove(),this.element.find(".yith_magnifier_mousetrap")&&this.element.find(".yith_magnifier_mousetrap").remove(),this.mouseTrap=d('<div class="yith_magnifier_mousetrap" />').css({width:"100%",height:"100%",top:0,left:0}).appendTo(c.parent());var g="ontouchstart"in document.documentElement;this.mouseTrap.on("touchmove mousemove",this,function(t){h.options.onMove(),h.mx=void 0!==t.originalEvent.touches?t.originalEvent.touches[0].pageX:t.pageX,h.my=void 0!==t.originalEvent.touches?t.originalEvent.touches[0].pageY:t.pageY}).on("touchend mouseleave",this,function(t){return clearTimeout(h.controlTimer),h.lens&&h.lens.fadeOut(299),h.tint&&h.tint.fadeOut(299),h.softFocus&&h.softFocus.fadeOut(299),h.zoomDiv.fadeOut(300,function(){h._onLeave()}),!1}).on("touchstart click",this,function(t){h.options.onClick()}).on("touchstart mouseenter",this,function(t){h.options.onEnter(),g&&t.preventDefault(),h.mx=void 0!==t.originalEvent.touches?t.originalEvent.touches[0].pageX:t.pageX,h.my=void 0!==t.originalEvent.touches?t.originalEvent.touches[0].pageY:t.pageY,h.zw=t.data,h.zoomDiv&&(h.zoomDiv.stop(!0,!1),h.zoomDiv.remove());var i=h.options.adjustX,o=h.options.adjustY,e=u.outerWidth(),n=u.outerHeight(),s=h.options.zoomWidth,a=h.options.zoomHeight;"auto"==h.options.zoomWidth&&(s=e),"auto"==h.options.zoomHeight&&(a=n);var r=c.parent();switch(h.options.position){case"top":o-=a;break;case"right":i+=e;break;case"bottom":o+=n;break;case"left":i-=s;break;case"inside":s=e,a=n;break;default:(r=d("#"+h.options.position)).length?(s=r.innerWidth(),a=r.innerHeight()):(r=c,i+=e,o+=n)}h.isPhone&&"inside"==h.options.phoneBehavior&&(s=e,a=n,o=i=0),h.zoomDiv=d('<div class="yith_magnifier_zoom_magnifier" />').css({left:i,top:o,width:s,height:a,"background-repeat":"no-repeat",backgroundImage:"url("+l.src+")"}).appendTo(r),u.attr("title")&&h.options.showTitle&&d('<div class="yith_magnifier_title">'+u.attr("title")+"</div>").appendTo(h.zoomDiv),h.isPhone?"disable"!=h.options.phoneBehavior?h.zoomDiv.fadeIn(500):h.lens.fadeOut(299):h.zoomDiv.fadeIn(500),h.lens&&(h.lens.remove(),h.lens=null),l.width<=1?h.cw=u.outerWidth()/l.naturalWidth*h.zoomDiv.width():h.cw=u.outerWidth()/l.width*h.zoomDiv.width(),l.height<=1?h.ch=u.outerHeight()/l.naturalHeight*h.zoomDiv.height():h.ch=u.outerHeight()/l.height*h.zoomDiv.height(),h.lens=d('<div class="yith_magnifier_lens" />').css({width:h.cw,height:h.ch}).appendTo(c),h.mouseTrap.css("cursor",h.lens.css("cursor"));var m=!1;h.options.tint&&(h.tint=d("<div />").css({display:"none",position:"absolute",left:0,top:0,width:u.outerWidth(),height:u.outerHeight(),backgroundColor:h.options.tint,opacity:h.options.tintOpacity}).appendTo(c),h.lens.append(d("<img />",{src:u.attr("src")})),m=!0,h.tint.fadeIn(500)),h.options.softFocus&&(h.softFocus=d("<div />").css({position:"absolute",display:"none",top:"1px",left:"1px",width:u.outerWidth(),height:u.outerHeight(),opacity:.5}).appendTo(c),h.softFocus.append(d("<img />",{src:u.attr("src")})),0==h.lens.find("img").length&&h.lens.append(d("<img />",{src:u.attr("src")})),m=!0,h.softFocus.fadeIn(500)),m||h.lens.css("opacity",h.options.lensOpacity),"inside"!==h.options.position&&h.lens.fadeIn(500),h.zw._controlLoop()})},_controlLoop:function(){var t=this;if(this.lens){var i=this.mx-this.zoomImage.offset().left-.5*this.cw>>0,o=this.my-this.zoomImage.offset().top-.5*this.ch>>0;i<0?i=0:i>this.zoomImage.outerWidth()-this.cw&&(i=this.zoomImage.outerWidth()-this.cw),o<0?o=0:o>this.zoomImage.outerHeight()-this.ch&&(o=this.zoomImage.outerHeight()-this.ch),this.lens.css({left:i-2,top:o-1}),this.lens.find("img").css({width:this.zoomImage.outerWidth(),height:this.zoomImage.outerHeight(),marginLeft:-i+"px ",marginTop:-o+"px"}),this.IMG_zoomImage.width<=1?this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.naturalWidth>>0:this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.width>>0,this.IMG_zoomImage.height<=1?this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.naturalHeight>>0:this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.height>>0,this.currU+=(this.destU-this.currU)/this.options.smoothMove,this.currV+=(this.destV-this.currV)/this.options.smoothMove,this.zoomDiv.css("background-position",-(this.currU>>0)+"px "+-(this.currV>>0)+"px")}this.controlTimer=setTimeout(function(){t._controlLoop()},30)},_onLeave:function(){this.options.onLeave(),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this._removeElements()},_removeElements:function(){this.lens&&(this.lens.remove(),this.lens=null),this.tint&&(this.tint.remove(),this.tint=null),this.softFocus&&(this.softFocus.remove(),this.softFocus=null),0<this.element.find(".yith_magnifier_loading").length&&this.element.find(".yith_magnifier_loading").remove()},_isPhone:function(){var t=navigator.userAgent.toLowerCase();return t.match(/iphone/i)||t.match(/ipod/i)||t.match(/android/i)},destroy:function(){this.zoom&&this.zoom.unwrap(),this.mouseTrap&&(this.mouseTrap.unbind(),this.mouseTrap.remove(),this.mouseTrap=null),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this.options.disableRightClick&&d(document).unbind(),this._removeElements(),this.options.elements.gallery.unbind(),this.element.removeData("yith_magnifier")}},d.fn.yith_magnifier=function(i){if("string"==typeof i){var o=Array.prototype.slice.call(arguments,1);this.each(function(){var t=d.data(this,"yith_magnifier");t?d.isFunction(t[i])&&"_"!==i.charAt(0)?t[i].apply(t,o):d.error("no such method '"+i+"' for yith_magnifier instance"):d.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+i+"'")})}else this.each(function(){d.data(this,"yith_magnifier")?d.error("yith_magnifier already istantiated."):d.data(this,"yith_magnifier",new d.yith_magnifier(i,this))});return this}}(window,jQuery);
1
+ !function(t,i,o){"use strict";void 0===i.fn.imagesLoaded&&function(t,i){var o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";t.fn.imagesLoaded=function(i){var e=this,n=t.isFunction(t.Deferred)?t.Deferred():0,s=t.isFunction(n.notify),a=e.find("img").add(e.filter("img")),r=[],m=[],h=[];function l(){var o=t(m),s=t(h);n&&(h.length?n.reject(a,o,s):n.resolve(a)),t.isFunction(i)&&i.call(e,a,o,s)}function c(t){g(t.target,"error"===t.type)}function g(i,e){i.src!==o&&-1===t.inArray(i,r)&&(r.push(i),e?h.push(i):m.push(i),t.data(i,"imagesLoaded",{isBroken:e,src:i.src}),s&&n.notifyWith(t(i),[e,a,t(m),t(h)]),a.length===r.length&&(setTimeout(l),a.unbind(".imagesLoaded",c)))}return t.isPlainObject(i)&&t.each(i,function(t,o){"callback"===t?i=o:n&&n[t](o)}),a.length?a.bind("load.imagesLoaded error.imagesLoaded",c).each(function(i,e){var n=e.src,s=t.data(e,"imagesLoaded");s&&s.src===n?g(e,s.isBroken):e.complete&&void 0!==e.naturalWidth?g(e,0===e.naturalWidth||0===e.naturalHeight):(e.readyState||e.complete)&&(e.src=o,e.src=n)}):l(),n?n.promise(e):e}}(jQuery),i.yith_magnifier=function(t,o){this.t=o,this.element=i(o),this._init(t)},i.yith_magnifier.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:!1,tintOpacity:.5,lensOpacity:.5,softFocus:!1,smoothMove:3,showTitle:!0,titleOpacity:.5,adjustX:0,adjustY:0,phoneBehavior:"inside",loadingLabel:"Loading...",enableSlider:!0,slider:"carouFredSel",sliderOptions:{},from_gallery:"no",onLoad:function(){return!1},onEnter:function(){return!1},onLeave:function(){return!1},onMove:function(){return!1},onClick:function(){return!1},elements:{zoom:i(".yith_magnifier_zoom"),zoomImage:i(".yith_magnifier_zoom img").first(),gallery:i(".yith_magnifier_gallery li a")}},i.yith_magnifier.prototype={_init:function(t){var o=this;i(document).trigger("yith_magnifier_before_init"),i.each(i.yith_magnifier.defaults.elements,function(t,e){i.yith_magnifier.defaults.elements[t]=i(e,o)}),o.options=i.extend(!0,{},i.yith_magnifier.defaults,t),o.isPhone=o._isPhone(),o._loading(),o.element.imagesLoaded(function(){o.options.onLoad(),o._initZoom(),o._initGallery()}),i(document).trigger("yith_magnifier_after_init")},_initGallery:function(){var t=this,o=t.options.elements,e=o.gallery,n=o.zoom,s=o.zoomImage;e.length>0?(e.on("click",function(o){o.preventDefault(),t.options.from_gallery="yes";var e=i(this);t.destroy(),n.attr("href",this.href),s.attr("src",e.data("small")).attr("srcset",e.data("small")).attr("src-orig",e.data("small")).attr("title","").attr("title",e.attr("title")),i.data(t.t,"yith_magnifier",new i.yith_magnifier(t.options,t.element))}),t.options.enableSlider&&(e.closest("ul").trigger("yith_magnifier_slider_destroy"),e.closest("ul")[t.options.slider](t.options.sliderOptions))):e.on("click",function(t){return t.preventDefault(),!1})},_loading:function(){if(this.options.disableRightClick&&i(document).on("contextmenu",function(t){return!1}),void 0===this.mouseTrap){var t=this.options.elements.zoom.width();this.options.loadingLabel&&i('<div class="yith_magnifier_loading">'+this.options.loadingLabel+"</div>").css({width:t,"text-align":"center",opacity:.5}).appendTo(this.options.elements.zoom.parent())}},_initZoom:function(){var t=this;t.zoom=t.options.elements.zoom,t.zoomImage=t.options.elements.zoomImage;var o="yith_magnifier_zoom_wrap";t.options.zoom_wrap_additional_css&&(i("."+o).length||(o+=" "+t.options.zoom_wrap_additional_css)),t.zoom.wrap('<div class="'+o+'"></div>'),t.IMG_zoomImage=new Image;var e=i(".woocommerce-variation-add-to-cart .variation_id").val();if(i.isNumeric(e)&&0!=e&&"no"==t.options.from_gallery){var n={action:"yith_wc_zoom_magnifier_get_main_image",product_id:e,context:"frontend"};i.ajax({data:n,url:yith_wc_zoom_magnifier_storage_object.ajax_url,type:"post",error:function(t){console.log("ERROR - Yith_WC_Zoom_Magnifier"),console.log(t)},success:function(o){t.IMG_zoomImage.src=o.url,t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),o.gallery&&(i(".yith_magnifier_gallery").length?i(".yith_magnifier_gallery").closest(".thumbnails").replaceWith(o.gallery):i(".images").append(o.gallery),t.options.elements.gallery=i(".yith_magnifier_gallery li a")),i.browser&&i.browser.msie&&8==i.browser.version?i(t.IMG_zoomImage).load(function(){t._initGallery(),t._initTrap()}):i([t.IMG_zoomImage,t.IMG_smallImage]).imagesLoaded(function(){t._initGallery(),t._initTrap()}),i(document).trigger("yith_magnifier_after_init_zoom")}})}else t.IMG_zoomImage.src=t.zoom.attr("href"),t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),i.browser&&i.browser.msie&&8==i.browser.version?i(t.IMG_zoomImage).load(function(){t._initTrap()}):i([t.IMG_zoomImage,t.IMG_smallImage]).imagesLoaded(function(){t._initTrap()}),i(document).trigger("yith_magnifier_after_init_zoom")},_initTrap:function(){var t=this,o=t.IMG_zoomImage;t.IMG_smallImage;t.mx=0,t.my=0,t.controlTimer=0,t.lens=null,t.tint=null,t.softFocus=null,t.zoomDiv=null,t.cw=0,t.ch=0,t.zw=0,t.destU=0,t.destV=0,t.currU=0,t.currV=0,t.mouseTrap=null;var e=t.options.elements.zoom,n=t.options.elements.zoomImage;i(".yith_magnifier_loading").remove(),this.element.find(".yith_magnifier_mousetrap")&&this.element.find(".yith_magnifier_mousetrap").remove(),this.mouseTrap=i('<div class="yith_magnifier_mousetrap" />').css({width:"100%",height:"100%",top:0,left:0}).appendTo(e.parent());var s="ontouchstart"in document.documentElement;this.mouseTrap.on("touchmove mousemove",this,function(i){t.options.onMove(),t.mx=void 0!==i.originalEvent.touches?i.originalEvent.touches[0].pageX:i.pageX,t.my=void 0!==i.originalEvent.touches?i.originalEvent.touches[0].pageY:i.pageY}).on("touchend mouseleave",this,function(i){return clearTimeout(t.controlTimer),t.lens&&t.lens.fadeOut(299),t.tint&&t.tint.fadeOut(299),t.softFocus&&t.softFocus.fadeOut(299),t.zoomDiv.fadeOut(300,function(){t._onLeave()}),!1}).on("touchstart click",this,function(i){t.options.onClick()}).on("touchstart mouseenter",this,function(a){t.options.onEnter(),s&&a.preventDefault(),t.mx=void 0!==a.originalEvent.touches?a.originalEvent.touches[0].pageX:a.pageX,t.my=void 0!==a.originalEvent.touches?a.originalEvent.touches[0].pageY:a.pageY,t.zw=a.data,t.zoomDiv&&(t.zoomDiv.stop(!0,!1),t.zoomDiv.remove());var r=t.options.adjustX,m=t.options.adjustY,h=n.outerWidth(),l=n.outerHeight(),c=t.options.zoomWidth,g=t.options.zoomHeight;"auto"==t.options.zoomWidth&&(c=h),"auto"==t.options.zoomHeight&&(g=l);var u=e.parent();switch(t.options.position){case"top":m-=g;break;case"right":r+=h;break;case"bottom":m+=l;break;case"left":r-=c;break;case"inside":c=h,g=l;break;default:(u=i("#"+t.options.position)).length?(c=u.innerWidth(),g=u.innerHeight()):(u=e,r+=h,m+=l)}t.isPhone&&"inside"==t.options.phoneBehavior&&(c=h,g=l,r=0,m=0),t.zoomDiv=i('<div class="yith_magnifier_zoom_magnifier" />').css({left:r,top:m,width:c,height:g,"background-repeat":"no-repeat",backgroundImage:"url("+o.src+")"}).appendTo(u),n.attr("title")&&t.options.showTitle&&i('<div class="yith_magnifier_title">'+n.attr("title")+"</div>").appendTo(t.zoomDiv),t.isPhone?"disable"!=t.options.phoneBehavior?t.zoomDiv.fadeIn(500):t.lens.fadeOut(299):t.zoomDiv.fadeIn(500),t.lens&&(t.lens.remove(),t.lens=null),o.width<=1?t.cw=n.outerWidth()/o.naturalWidth*t.zoomDiv.width():t.cw=n.outerWidth()/o.width*t.zoomDiv.width(),o.height<=1?t.ch=n.outerHeight()/o.naturalHeight*t.zoomDiv.height():t.ch=n.outerHeight()/o.height*t.zoomDiv.height(),t.lens=i('<div class="yith_magnifier_lens" />').css({width:t.cw,height:t.ch}).appendTo(e),t.mouseTrap.css("cursor",t.lens.css("cursor"));var d=!1;t.options.tint&&(t.tint=i("<div />").css({display:"none",position:"absolute",left:0,top:0,width:n.outerWidth(),height:n.outerHeight(),backgroundColor:t.options.tint,opacity:t.options.tintOpacity}).appendTo(e),t.lens.append(i("<img />",{src:n.attr("src")})),d=!0,t.tint.fadeIn(500)),t.options.softFocus&&(t.softFocus=i("<div />").css({position:"absolute",display:"none",top:"1px",left:"1px",width:n.outerWidth(),height:n.outerHeight(),opacity:.5}).appendTo(e),t.softFocus.append(i("<img />",{src:n.attr("src")})),0==t.lens.find("img").length&&t.lens.append(i("<img />",{src:n.attr("src")})),d=!0,t.softFocus.fadeIn(500)),d||t.lens.css("opacity",t.options.lensOpacity),"inside"!==t.options.position&&t.lens.fadeIn(500),t.zw._controlLoop()})},_controlLoop:function(){var t=this;if(this.lens){var i=this.mx-this.zoomImage.offset().left-.5*this.cw>>0,o=this.my-this.zoomImage.offset().top-.5*this.ch>>0;i<0?i=0:i>this.zoomImage.outerWidth()-this.cw&&(i=this.zoomImage.outerWidth()-this.cw),o<0?o=0:o>this.zoomImage.outerHeight()-this.ch&&(o=this.zoomImage.outerHeight()-this.ch),this.lens.css({left:i-2,top:o-1}),this.lens.find("img").css({width:this.zoomImage.outerWidth(),height:this.zoomImage.outerHeight(),marginLeft:-i+"px ",marginTop:-o+"px"}),this.IMG_zoomImage.width<=1?this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.naturalWidth>>0:this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.width>>0,this.IMG_zoomImage.height<=1?this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.naturalHeight>>0:this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.height>>0,this.currU+=(this.destU-this.currU)/this.options.smoothMove,this.currV+=(this.destV-this.currV)/this.options.smoothMove,this.zoomDiv.css("background-position",-(this.currU>>0)+"px "+-(this.currV>>0)+"px")}this.controlTimer=setTimeout(function(){t._controlLoop()},30)},_onLeave:function(){this.options.onLeave(),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this._removeElements()},_removeElements:function(){this.lens&&(this.lens.remove(),this.lens=null),this.tint&&(this.tint.remove(),this.tint=null),this.softFocus&&(this.softFocus.remove(),this.softFocus=null),this.element.find(".yith_magnifier_loading").length>0&&this.element.find(".yith_magnifier_loading").remove()},_isPhone:function(){var t=navigator.userAgent.toLowerCase();return t.match(/iphone/i)||t.match(/ipod/i)||t.match(/android/i)},destroy:function(){this.zoom&&this.zoom.unwrap(),this.mouseTrap&&(this.mouseTrap.unbind(),this.mouseTrap.remove(),this.mouseTrap=null),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this.options.disableRightClick&&i(document).unbind(),this._removeElements(),this.options.elements.gallery.unbind(),this.element.removeData("yith_magnifier")}},i.fn.yith_magnifier=function(t){if("string"==typeof t){var o=Array.prototype.slice.call(arguments,1);this.each(function(){var e=i.data(this,"yith_magnifier");e?i.isFunction(e[t])&&"_"!==t.charAt(0)?e[t].apply(e,o):i.error("no such method '"+t+"' for yith_magnifier instance"):i.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){i.data(this,"yith_magnifier")?i.error("yith_magnifier already istantiated."):i.data(this,"yith_magnifier",new i.yith_magnifier(t,this))});return this}}(window,jQuery);
assets/js/ywzm_frontend.js CHANGED
@@ -6,12 +6,12 @@
6
  */
7
  jQuery(document).ready(function ($) {
8
 
9
- var yith_wcmg = $('.images');
10
- var yith_wcmg_zoom = $('.yith_magnifier_zoom');
11
- var yith_wcmg_image = $('.yith_magnifier_zoom img').first();
12
-
13
- var yith_wcmg_default_zoom = yith_wcmg.find('.yith_magnifier_zoom').attr('href');
14
- var yith_wcmg_default_image = yith_wcmg.find('.yith_magnifier_zoom img').attr('src');
15
 
16
  if (typeof yith_magnifier_options == 'undefined') {
17
  return false;
@@ -49,6 +49,8 @@ jQuery(document).ready(function ($) {
49
  yith_wcmg_image.attr('srcset', yith_wcmg_default_image);
50
  yith_wcmg_image.attr('src-orig', yith_wcmg_default_image);
51
 
 
 
52
  if (yith_wcmg.data('yith_magnifier')) {
53
  yith_wcmg.yith_magnifier('destroy');
54
  }
6
  */
7
  jQuery(document).ready(function ($) {
8
 
9
+ var yith_wcmg = $('.images'),
10
+ yith_wcmg_zoom = $('.yith_magnifier_zoom'),
11
+ yith_wcmg_image = $('.yith_magnifier_zoom img').first(),
12
+ yith_wcmg_default_zoom = yith_wcmg.find('.yith_magnifier_zoom').attr('href'),
13
+ yith_wcmg_default_image = yith_wcmg.find('.yith_magnifier_zoom img').attr('src');
14
+ yith_wcmg_default_gallery = yith_wcmg.find('.thumbnails');
15
 
16
  if (typeof yith_magnifier_options == 'undefined') {
17
  return false;
49
  yith_wcmg_image.attr('srcset', yith_wcmg_default_image);
50
  yith_wcmg_image.attr('src-orig', yith_wcmg_default_image);
51
 
52
+ yith_wcmg.find('.thumbnails').replaceWith( yith_wcmg_default_gallery );
53
+
54
  if (yith_wcmg.data('yith_magnifier')) {
55
  yith_wcmg.yith_magnifier('destroy');
56
  }
assets/js/ywzm_frontend.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(a){var b=a(".images"),c=a(".yith_magnifier_zoom"),d=a(".yith_magnifier_zoom img").first(),e=b.find(".yith_magnifier_zoom").attr("href"),f=b.find(".yith_magnifier_zoom img").attr("src");if("undefined"==typeof yith_magnifier_options)return!1;b.yith_magnifier(yith_magnifier_options),a(document).on("found_variation","form.variations_form",function(a,g){var h=g.image_magnifier?g.image_magnifier:e,i=f;ywzm_data.wc_before_3_0?g.image_src&&(i=g.image_src):g.image.src&&(i=g.image.src),c.attr("href",h),d.attr("src",i),d.attr("srcset",i),d.attr("src-orig",i),b.data("yith_magnifier")&&b.yith_magnifier("destroy"),b.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(a){c.attr("href",e),d.attr("src",f),d.attr("srcset",f),d.attr("src-orig",f),b.data("yith_magnifier")&&b.yith_magnifier("destroy"),b.yith_magnifier(yith_magnifier_options)}),a("form.variations_form .variations select").trigger("change")});
1
+ jQuery(document).ready(function(i){var e=i(".images"),n=i(".yith_magnifier_zoom"),m=i(".yith_magnifier_zoom img").first(),_=e.find(".yith_magnifier_zoom").attr("href"),f=e.find(".yith_magnifier_zoom img").attr("src");if(yith_wcmg_default_gallery=e.find(".thumbnails"),"undefined"==typeof yith_magnifier_options)return!1;e.yith_magnifier(yith_magnifier_options),i(document).on("found_variation","form.variations_form",function(i,t){var r=t.image_magnifier?t.image_magnifier:_,a=f;ywzm_data.wc_before_3_0?t.image_src&&(a=t.image_src):t.image.src&&(a=t.image.src),n.attr("href",r),m.attr("src",a),m.attr("srcset",a),m.attr("src-orig",a),e.data("yith_magnifier")&&e.yith_magnifier("destroy"),e.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(i){n.attr("href",_),m.attr("src",f),m.attr("srcset",f),m.attr("src-orig",f),e.find(".thumbnails").replaceWith(yith_wcmg_default_gallery),e.data("yith_magnifier")&&e.yith_magnifier("destroy"),e.yith_magnifier(yith_magnifier_options)}),i("form.variations_form .variations select").trigger("change")});
init.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
5
  * Description: <code><strong>YITH WooCommerce Zoom Magnifier</strong></code> allows you to add a zoom effect to product images and a thumbnail slider for the product image gallery. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 1.3.15
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-zoom-magnifier
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.3.0
12
- * WC tested up to: 3.9
13
  **/
14
 
15
  /* Copyright 2013-2018 Your Inspiration Themes (email : plugins@yithemes.com)
@@ -78,7 +78,7 @@ register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
78
 
79
  defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
80
  defined ( 'YITH_YWZM_SLUG' ) || define ( 'YITH_YWZM_SLUG', 'yith-woocommerce-zoom-magnifier' );
81
- defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.3.15' );
82
  defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
83
  defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
84
  defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
5
  * Description: <code><strong>YITH WooCommerce Zoom Magnifier</strong></code> allows you to add a zoom effect to product images and a thumbnail slider for the product image gallery. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 1.3.16
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-zoom-magnifier
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.3.0
12
+ * WC tested up to: 4.0
13
  **/
14
 
15
  /* Copyright 2013-2018 Your Inspiration Themes (email : plugins@yithemes.com)
78
 
79
  defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
80
  defined ( 'YITH_YWZM_SLUG' ) || define ( 'YITH_YWZM_SLUG', 'yith-woocommerce-zoom-magnifier' );
81
+ defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.3.16' );
82
  defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
83
  defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
84
  defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
lib/class.yith-woocommerce-zoom-magnifier.php CHANGED
@@ -86,14 +86,35 @@ if ( ! class_exists( 'YITH_WooCommerce_Zoom_Magnifier' ) ) {
86
  */
87
  public function yith_wc_zoom_magnifier_get_main_image_call_back(){
88
 
89
- $product_id = ( isset( $_POST[ 'product_id' ] ) ? $_POST[ 'product_id' ] : 0 );
 
90
 
91
- $url = wp_get_attachment_image_src ( get_post_thumbnail_id ( $product_id ), "full" );
 
 
92
 
93
- $response = array(
94
- "url" => $url[ 0 ],
95
- );
96
- wp_send_json( $response );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
  }
99
 
86
  */
87
  public function yith_wc_zoom_magnifier_get_main_image_call_back(){
88
 
89
+ // set the main wp query for the product
90
+ global $post, $product;
91
 
92
+ $product_id = isset( $_POST[ 'product_id' ] ) ? $_POST[ 'product_id' ] : 0;
93
+ $post = get_post( $product_id ); // to fix junk theme compatibility
94
+ $product = wc_get_product( $product_id );
95
 
96
+ if( empty( $product ) ) {
97
+ wp_send_json_error();
98
+ }
99
+
100
+ $url = wp_get_attachment_image_src( get_post_thumbnail_id( $product_id ), "full" );
101
+
102
+ if( function_exists( 'YITH_WCCL_Frontend' ) && function_exists( 'yith_wccl_get_variation_gallery' ) ) {
103
+ $gallery = yith_wccl_get_variation_gallery( $product );
104
+ // filter gallery based on current variation
105
+ if( ! empty( $gallery ) ) {
106
+ add_filter( 'woocommerce_product_variation_get_gallery_image_ids', [ YITH_WCCL_Frontend(), 'filter_gallery_ids' ], 10, 2 );
107
+ }
108
+ }
109
+
110
+ ob_start();
111
+ wc_get_template( 'single-product/product-thumbnails-magnifier.php', [], '', YITH_YWZM_DIR . 'templates/' );
112
+ $gallery_html = ob_get_clean();
113
+
114
+ wp_send_json( [
115
+ 'url' => isset( $url[ 0 ] ) ? $url[ 0 ] : '',
116
+ 'gallery' => $gallery_html
117
+ ] );
118
 
119
  }
120
 
plugin-fw/Gruntfile.js ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * in vagrant ssh, launch:
3
+ * - npm install
4
+ * - grunt (or use npm scripts in package.json)
5
+ */
6
+
7
+ const potInfo = {
8
+ potFilename: 'yith-plugin-fw.pot',
9
+ potHeaders : {
10
+ poedit : true, // Includes common Poedit headers.
11
+ 'x-poedit-keywordslist': true, // Include a list of all possible gettext functions.
12
+ 'report-msgid-bugs-to' : 'YITH <plugins@yithemes.com>',
13
+ 'language-team' : 'YITH <info@yithemes.com>'
14
+ }
15
+ };
16
+
17
+ module.exports = function ( grunt ) {
18
+ 'use strict';
19
+
20
+ grunt.initConfig( {
21
+ dirs: {
22
+ css: 'assets/css',
23
+ js : 'assets/js'
24
+ },
25
+
26
+ uglify: {
27
+ options: {
28
+ ie8 : true,
29
+ parse : {
30
+ strict: false
31
+ },
32
+ output: {
33
+ comments: /@license|@preserve|^!/
34
+ }
35
+ },
36
+ common : {
37
+ files: [{
38
+ expand: true,
39
+ cwd : '<%= dirs.js %>/',
40
+ src : ['*.js', '!*.min.js'],
41
+ dest : '<%= dirs.js %>/',
42
+ rename: function ( dst, src ) {
43
+ // To keep the source js files and make new files as `*.min.js`:
44
+ return dst + '/' + src.replace( '.js', '.min.js' );
45
+ }
46
+ }]
47
+ }
48
+ },
49
+
50
+ jshint: {
51
+ options: {
52
+ jshintrc: '.jshintrc'
53
+ },
54
+ all : [
55
+ '<%= dirs.js %>/*.js',
56
+ '!<%= dirs.js %>/*.min.js'
57
+ ]
58
+ },
59
+
60
+
61
+ makepot: {
62
+ options: {
63
+ type : 'wp-plugin',
64
+ domainPath : 'languages',
65
+ domain : 'yith-plugin-fw',
66
+ potHeaders : potInfo.potHeaders,
67
+ updatePoFiles: true
68
+ },
69
+ dist : {
70
+ options: {
71
+ potFilename: potInfo.potFilename,
72
+ exclude : [
73
+ 'node_modules/.*',
74
+ 'tests/.*',
75
+ 'tmp/.*'
76
+ ]
77
+ }
78
+ }
79
+ }
80
+
81
+ } );
82
+
83
+ // Load NPM tasks to be used here.
84
+ grunt.loadNpmTasks( 'grunt-wp-i18n' );
85
+
86
+ // Use uglify-es (instead of uglify) to uglify also JS for ES6.
87
+ grunt.loadNpmTasks( 'grunt-contrib-uglify-es' );
88
+
89
+ // Register tasks.
90
+ grunt.registerTask( 'js', ['uglify'] );
91
+ grunt.registerTask( 'i18n', ['makepot'] );
92
+ grunt.registerTask( 'default', [
93
+ 'js',
94
+ 'i18n'
95
+ ] );
96
+ };
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -455,11 +455,11 @@ YITH UI
455
  ****************/
456
  @font-face {
457
  font-family : 'yith-icon';
458
- src : url('../fonts/yith-icon.eot?7ik896');
459
- src : url('../fonts/yith-icon.eot?7ik896#iefix') format('embedded-opentype'),
460
- url('../fonts/yith-icon.ttf?7ik896') format('truetype'),
461
- url('../fonts/yith-icon.woff?7ik896') format('woff'),
462
- url('../fonts/yith-icon.svg?7ik896#yith-icon') format('svg');
463
  font-weight : normal;
464
  font-style : normal;
465
  }
@@ -479,138 +479,142 @@ YITH UI
479
  -moz-osx-font-smoothing : grayscale;
480
  }
481
 
482
- .yith-icon-reply:before {
483
- content: "\e91a";
 
 
 
 
 
 
 
484
  color: #757575;
485
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  .yith-icon-calendar_add:before {
487
- content : "\e913";
488
- color : #757575;
489
  }
490
-
491
  .yith-icon-calendar_money:before {
492
- content : "\e914";
493
- color : #757575;
494
  }
495
-
496
  .yith-icon-calendar2:before {
497
- content : "\e915";
498
- color : #757575;
499
  }
500
-
501
  .yith-icon-people:before {
502
- content : "\e916";
503
- color : #757575;
504
  }
505
-
506
  .yith-icon-shield_money:before {
507
- content : "\e917";
508
- color : #757575;
509
  }
510
-
511
  .yith-icon-time_check:before {
512
- content : "\e918";
513
- color : #757575;
514
  }
515
-
516
  .yith-icon-world_settings:before {
517
- content : "\e919";
518
- color : #757575;
519
  }
520
-
521
  .yith-icon-arrow_eye_closed:before {
522
- content : "\e912";
523
- color : #757575;
524
  }
525
-
526
  .yith-icon-arrow_eye:before {
527
- content : "\e911";
528
- color : #757575;
529
  }
530
-
531
  .yith-icon-reset:before {
532
- content : "\e910";
533
- color : #757575;
534
  }
535
-
536
  .yith-icon-drag:before {
537
- content : "\e90f";
538
- color : #757575;
539
  }
540
-
541
  .yith-icon-trash:before {
542
- content : "\e90d";
543
- color : #757575;
544
  }
545
-
546
  .yith-icon-info:before {
547
- content : "\e90e";
548
- color : #757575;
549
  }
550
-
551
  .yith-icon-arrow_down:before {
552
- content : "\e900";
553
- color : #757575;
554
  }
555
-
556
  .yith-icon-arrow_left:before {
557
- content : "\e901";
558
- color : #757575;
559
  }
560
-
561
  .yith-icon-arrow_right:before {
562
- content : "\e902";
563
- color : #757575;
564
  }
565
-
566
  .yith-icon-arrow_up:before {
567
- content : "\e903";
568
- color : #757575;
569
  }
570
-
571
  .yith-icon-calendar:before {
572
- content : "\e904";
573
- color : #757575;
574
  }
575
-
576
  .yith-icon-check:before {
577
- content : "\e905";
578
- color : #757575;
579
  }
580
-
581
  .yith-icon-close:before {
582
- content : "\e906";
583
- color : #757575;
584
  }
585
-
586
  .yith-icon-edit:before {
587
- content : "\e907";
588
- color : #757575;
589
  }
590
-
591
  .yith-icon-magnifier:before {
592
- content : "\e908";
593
- color : #757575;
594
  }
595
-
596
  .yith-icon-pencil:before {
597
- content : "\e909";
598
- color : #757575;
599
  }
600
-
601
  .yith-icon-plus:before {
602
- content : "\e90a";
603
- color : #757575;
604
  }
605
-
606
  .yith-icon-update:before {
607
- content : "\e90b";
608
- color : #757575;
609
  }
610
-
611
  .yith-icon-upload:before {
612
- content : "\e90c";
613
- color : #757575;
 
 
 
614
  }
615
 
616
  .yith-plugin-fw-banner {
@@ -796,7 +800,7 @@ YITH UI
796
  background : #f1f1f1;
797
  font-size : 14px;
798
  font-weight : 700;
799
- width : 40%;
800
  display : block;
801
  padding : 15px;
802
  margin-bottom : 0;
@@ -1401,7 +1405,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
1401
  }
1402
 
1403
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1404
- content : 'OFF';
1405
  width : 14px;
1406
  height : 14px;
1407
  font-size : 13px;
@@ -1427,7 +1431,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
1427
 
1428
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1429
  .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1430
- content : 'ON';
1431
  color : #98aa36;
1432
  width : 14px;
1433
  height : 14px;
455
  ****************/
456
  @font-face {
457
  font-family : 'yith-icon';
458
+ src : url('../fonts/yith-icon.eot?g6bfgy');
459
+ src : url('../fonts/yith-icon.eot?g6bfgy#iefix') format('embedded-opentype'),
460
+ url('../fonts/yith-icon.ttf?g6bfgy') format('truetype'),
461
+ url('../fonts/yith-icon.woff?g6bfgy') format('woff'),
462
+ url('../fonts/yith-icon.svg?g6bfgy#yith-icon') format('svg');
463
  font-weight : normal;
464
  font-style : normal;
465
  }
479
  -moz-osx-font-smoothing : grayscale;
480
  }
481
 
482
+ .yith-icon-paypal-svgrepo-com:before {
483
+ content: "\e91b";
484
+ }
485
+ .yith-icon-check-circle:before {
486
+ content: "\e921";
487
+ color: #757575;
488
+ }
489
+ .yith-icon-info-squared:before {
490
+ content: "\e922";
491
  color: #757575;
492
  }
493
+ .yith-icon-warning-triangle:before {
494
+ content: "\e923";
495
+ color: #757575;
496
+ }
497
+ .yith-icon-bank:before {
498
+ content: "\e91c";
499
+ }
500
+ .yith-icon-accounting:before {
501
+ content: "\e91d";
502
+ }
503
+ .yith-icon-bank-check:before {
504
+ content: "\e91e";
505
+ }
506
+ .yith-icon-cash:before {
507
+ content: "\e91f";
508
+ }
509
+ .yith-icon-credit-card:before {
510
+ content: "\e920";
511
+ }
512
  .yith-icon-calendar_add:before {
513
+ content: "\e913";
514
+ color: #757575;
515
  }
 
516
  .yith-icon-calendar_money:before {
517
+ content: "\e914";
518
+ color: #757575;
519
  }
 
520
  .yith-icon-calendar2:before {
521
+ content: "\e915";
522
+ color: #757575;
523
  }
 
524
  .yith-icon-people:before {
525
+ content: "\e916";
526
+ color: #757575;
527
  }
 
528
  .yith-icon-shield_money:before {
529
+ content: "\e917";
530
+ color: #757575;
531
  }
 
532
  .yith-icon-time_check:before {
533
+ content: "\e918";
534
+ color: #757575;
535
  }
 
536
  .yith-icon-world_settings:before {
537
+ content: "\e919";
538
+ color: #757575;
539
  }
 
540
  .yith-icon-arrow_eye_closed:before {
541
+ content: "\e912";
542
+ color: #757575;
543
  }
 
544
  .yith-icon-arrow_eye:before {
545
+ content: "\e911";
546
+ color: #757575;
547
  }
 
548
  .yith-icon-reset:before {
549
+ content: "\e910";
550
+ color: #757575;
551
  }
 
552
  .yith-icon-drag:before {
553
+ content: "\e90f";
554
+ color: #757575;
555
  }
 
556
  .yith-icon-trash:before {
557
+ content: "\e90d";
558
+ color: #757575;
559
  }
 
560
  .yith-icon-info:before {
561
+ content: "\e90e";
562
+ color: #757575;
563
  }
 
564
  .yith-icon-arrow_down:before {
565
+ content: "\e900";
566
+ color: #757575;
567
  }
 
568
  .yith-icon-arrow_left:before {
569
+ content: "\e901";
570
+ color: #757575;
571
  }
 
572
  .yith-icon-arrow_right:before {
573
+ content: "\e902";
574
+ color: #757575;
575
  }
 
576
  .yith-icon-arrow_up:before {
577
+ content: "\e903";
578
+ color: #757575;
579
  }
 
580
  .yith-icon-calendar:before {
581
+ content: "\e904";
582
+ color: #757575;
583
  }
 
584
  .yith-icon-check:before {
585
+ content: "\e905";
586
+ color: #757575;
587
  }
 
588
  .yith-icon-close:before {
589
+ content: "\e906";
590
+ color: #757575;
591
  }
 
592
  .yith-icon-edit:before {
593
+ content: "\e907";
594
+ color: #757575;
595
  }
 
596
  .yith-icon-magnifier:before {
597
+ content: "\e908";
598
+ color: #757575;
599
  }
 
600
  .yith-icon-pencil:before {
601
+ content: "\e909";
602
+ color: #757575;
603
  }
 
604
  .yith-icon-plus:before {
605
+ content: "\e90a";
606
+ color: #757575;
607
  }
 
608
  .yith-icon-update:before {
609
+ content: "\e90b";
610
+ color: #757575;
611
  }
 
612
  .yith-icon-upload:before {
613
+ content: "\e90c";
614
+ color: #757575;
615
+ }
616
+ .yith-icon-reply:before {
617
+ content: "\e91a";
618
  }
619
 
620
  .yith-plugin-fw-banner {
800
  background : #f1f1f1;
801
  font-size : 14px;
802
  font-weight : 700;
803
+ width : 50%;
804
  display : block;
805
  padding : 15px;
806
  margin-bottom : 0;
1405
  }
1406
 
1407
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1408
+ content : attr(data-text-off);
1409
  width : 14px;
1410
  height : 14px;
1411
  font-size : 13px;
1431
 
1432
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1433
  .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1434
+ content : attr(data-text-on);
1435
  color : #98aa36;
1436
  width : 14px;
1437
  height : 14px;
plugin-fw/assets/fonts/yith-icon.eot CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.svg CHANGED
@@ -34,4 +34,13 @@
34
  <glyph unicode="&#xe918;" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
35
  <glyph unicode="&#xe919;" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
36
  <glyph unicode="&#xe91a;" glyph-name="reply" d="M426 554.667q208-30 321-159t149-311q-154 218-470 218v-174l-298 298 298 298v-170z" />
 
 
 
 
 
 
 
 
 
37
  </font></defs></svg>
34
  <glyph unicode="&#xe918;" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
35
  <glyph unicode="&#xe919;" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
36
  <glyph unicode="&#xe91a;" glyph-name="reply" d="M426 554.667q208-30 321-159t149-311q-154 218-470 218v-174l-298 298 298 298v-170z" />
37
+ <glyph unicode="&#xe91b;" glyph-name="paypal-svgrepo-com" d="M948.695 781.407c41.592-76.275 27.867-166.22 11.486-219.376-88.641-289.544-488.607-273.795-546.47-273.795-57.795 0-71.254-53.893-71.254-53.893l-43.213-188.526c-11.779-66.175-71.793-62.877-71.793-62.877s-78.009 0-130.188 0c-3.273 0-6.328 0.225-9.134 0.631-0.645-12.117 1.079-47.541 44.401-47.541 52.139 0 130.147 0 130.147 0s60.013-3.366 71.834 62.806l43.165 188.519c0 0 13.507 53.897 71.301 53.897 57.767 0 457.829-15.746 546.514 273.808 19.787 64.717 35.874 183.635-46.797 266.347zM259.046 86.911l43.206 188.533c0 0 13.421 53.801 71.301 53.801 57.747 0 457.781-15.664 546.429 273.819 32.437 105.838 54.958 356.92-348.956 356.92h-291.749c0 0-60.641 2.816-75.606-61.659l-190.628-822.715c0 0-8.185-51.555 43.974-51.555 52.207 0 130.233 0 130.233 0s60.013-3.393 71.796 62.857zM369 565.482l38.741 167.179c0 0 12.339 45.462 52.207 52.193 39.827 6.755 107.667-1.201 125.12-4.495 113.299-21.279 89.201-128.478 89.201-128.478-22.433-165.476-280.007-142.514-280.007-142.514-40.383 14.602-25.262 56.115-25.262 56.115z" />
38
+ <glyph unicode="&#xe91c;" glyph-name="bank" d="M511.488 599.723c-8.875 0-16.213 7.168-16.213 16.213 0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363c0-15.189 10.411-27.989 24.576-31.744v-6.315c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v6.315c14.165 3.755 24.576 16.384 24.576 31.744 0 18.091-14.848 32.939-32.939 32.939-8.875 0-16.213 7.168-16.213 16.213 0 8.875 7.168 16.213 16.213 16.213 8.533 0 15.531-6.656 16.213-15.019 0.341-4.608 4.437-8.021 8.875-7.851 4.608 0.341 8.192 4.267 7.851 8.875-1.024 14.336-11.093 25.941-24.576 29.525v6.315c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-6.315c-13.995-3.755-24.576-16.555-24.576-31.744 0-18.091 14.848-32.939 32.939-32.939 8.875 0 16.213-7.168 16.213-16.213s-7.339-16.213-16.213-16.213zM862.72 508.587c0 0.512-0.171 1.195-0.341 1.707s-0.171 1.024-0.341 1.365c-0.171 0.512-0.512 0.853-0.853 1.195-0.341 0.512-0.683 1.024-1.024 1.365-0.171 0.171-0.171 0.171-0.171 0.341l-342.699 283.648c-3.072 2.56-7.68 2.56-10.752 0l-342.187-283.477c-0.171-0.171-0.171-0.171-0.171-0.341-0.512-0.341-0.683-0.853-1.024-1.365-0.341-0.341-0.683-0.853-0.853-1.195-0.171-0.512-0.341-1.024-0.341-1.365-0.171-0.512-0.341-1.195-0.341-1.707 0-0.171 0-0.171 0-0.341v-66.56c0-4.608 3.755-8.363 8.363-8.363h85.504v-258.048h-85.845c-4.608 0-8.363-3.755-8.363-8.363v-55.467c0-1.365 0.341-2.56 0.853-3.584-0.512-1.024-0.853-2.219-0.853-3.584 0-4.608 3.755-8.363 8.363-8.363h678.571c4.608 0 8.363 3.755 8.363 8.363v62.635c0 4.608-3.755 8.363-8.363 8.363h-79.872v257.877h86.016c4.608 0 8.363 3.755 8.363 8.363v66.56c0 0.171 0 0.171 0 0.341zM178.005 450.048v49.835h667.989v-49.835h-667.989zM839.851 158.549v-45.909h-661.845v45.909h661.845zM482.816 175.275v258.048h62.123v-258.048h-62.123zM512 780.971l319.147-264.363h-638.293l319.147 264.363zM271.872 433.323h194.048v-258.048h-115.029v228.352c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-228.352h-62.123v258.048zM751.616 175.275h-189.952v258.048h110.933v-227.499c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v227.499h62.123v-258.048z" />
39
+ <glyph unicode="&#xe91d;" glyph-name="accounting" d="M862.72 432.128c0 0.512-0.171 1.024-0.341 1.536s-0.171 0.853-0.512 1.365c-0.171 0.341-0.512 0.853-0.853 1.195s-0.683 0.853-1.024 1.195c-0.171 0.171-0.171 0.171-0.341 0.341l-30.891 23.893c-2.56 2.048-6.315 2.219-9.045 0.341l-31.061-21.163-33.792 21.163c0 0 0 0 0 0h-0.171c-0.171 0.171-0.512 0.171-0.853 0.341-0.683 0.341-1.195 0.683-2.048 0.683-0.512 0-1.024 0-1.365 0-0.512 0-1.024 0-1.536 0-0.683-0.171-1.365-0.512-1.877-0.853-0.171-0.171-0.512-0.171-0.683-0.341v0c0 0 0 0 0 0l-5.973-4.096-29.184-19.797c-3.413-2.389-4.437-7.168-2.048-10.581 1.536-2.219 3.925-3.413 6.315-3.413 1.536 0 2.901 0.512 4.267 1.365l31.232 21.163 33.963-21.333c2.56-1.707 5.803-1.536 8.363 0.171l30.549 20.821 23.552-18.261v-152.747c0-43.861-35.669-79.701-79.701-79.701-43.861 0-79.701 35.669-79.701 79.701v407.723c0 47.957-35.84 87.723-82.261 94.037-1.024 0.512-2.219 1.024-3.584 1.024h-297.813c-52.395 0-94.891-42.667-94.891-94.891v-27.819h-13.995c-18.773 0-33.963-15.189-33.963-33.963v-468.821c0-18.773 15.189-33.963 33.963-33.963h341.504c18.773 0 33.963 15.189 33.963 33.963v468.651c0 18.773-15.189 33.963-33.963 33.963h-13.995v27.819c0 42.325 33.28 76.971 75.093 79.36 41.813-2.389 75.093-37.035 75.093-79.36v-407.723c0-33.28 17.408-62.635 43.52-79.701h-114.517c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h166.059c52.395 0 94.891 42.667 94.891 94.891v156.501c-0.341 0.341-0.341 0.512-0.341 0.683zM507.563 682.837v-81.749c0-4.267 3.413-7.68 7.68-7.68s7.68 3.413 7.68 7.68v38.571h13.995c10.411 0 18.773-8.363 18.773-18.773v-468.821c0-10.24-8.363-18.773-18.773-18.773h-341.675c-10.24 0-18.773 8.363-18.773 18.773v468.992c0 10.24 8.363 18.773 18.773 18.773h13.995v-38.571c0-4.267 3.413-7.68 7.68-7.68h248.832c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68h-241.152v74.069c0 43.861 35.669 79.701 79.701 79.701h246.784c-26.283-17.237-43.52-46.421-43.52-79.872zM209.237 558.251v-85.333c0-4.267 3.413-7.68 7.68-7.68h298.155c4.267 0 7.68 3.413 7.68 7.68v85.333c0 4.267-3.413 7.68-7.68 7.68h-298.155c-4.096 0-7.68-3.413-7.68-7.68zM224.597 550.571h282.965v-70.144h-282.965v70.144zM290.304 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68zM290.304 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.584 7.68-7.68 7.68zM290.304 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68z" />
40
+ <glyph unicode="&#xe91e;" glyph-name="bank-check" d="M862.72 645.803c-0.171 1.877-1.195 3.755-2.731 4.949l-96.768 75.776c-3.243 2.56-7.851 1.877-10.411-1.195l-274.091-349.184c-0.853-1.024-1.365-2.389-1.536-3.584l-14.677-118.955c-0.341-2.56 0.683-5.12 2.731-6.656 1.365-1.024 2.901-1.536 4.608-1.536 0.853 0 1.707 0.171 2.731 0.512l111.445 43.008c1.195 0.512 2.389 1.195 3.072 2.389l153.259 195.243v-303.957h-564.395l0.512 337.408 347.989-1.536c0 0 0 0 0 0 4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339l-355.328 1.536c-2.219-0.341-3.755-0.683-5.291-2.219-1.365-1.365-2.219-3.243-2.219-5.291l-0.512-351.915c0-3.584 2.56-6.315 5.973-6.997 0.853-0.341 1.877-0.683 2.901-0.683h577.707c4.096 0 7.339 3.243 7.339 7.339v330.24l106.155 135.168c1.195 1.536 1.707 3.584 1.536 5.461zM587.776 315.904l-56.491 44.203c-3.243 2.56-7.851 1.877-10.411-1.195-2.56-3.243-1.877-7.851 1.195-10.411l56.491-44.203-1.877-2.389-98.133-37.888 12.971 104.619 222.208 283.136 61.099-47.957c1.365-1.024 2.901-1.536 4.608-1.536 2.219 0 4.267 1.024 5.803 2.901 2.56 3.243 1.877 7.851-1.195 10.411l-61.099 47.787 37.035 47.104 85.163-66.731-257.365-327.851zM466.261 443.051c0 4.096-3.243 7.339-7.339 7.339h-206.507c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h206.507c3.925 0 7.339 3.243 7.339 7.339zM395.605 351.403c0 4.096-3.243 7.339-7.339 7.339h-136.021c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h136.021c4.096 0 7.339 3.243 7.339 7.339zM252.245 267.264c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h81.92c4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339h-81.92z" />
41
+ <glyph unicode="&#xe91f;" glyph-name="cash" d="M387.072 268.629c1.024-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l138.752 59.733c3.243 1.365 4.779 5.291 3.413 8.533s-5.291 4.779-8.533 3.413l-135.339-58.368-218.795 151.552c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.525-153.429zM852.48 474.453l-131.584-55.125c-3.243-1.365-4.949-5.12-3.413-8.533 1.024-2.56 3.413-3.925 5.973-3.925 0.853 0 1.707 0.171 2.56 0.512l131.584 55.125c3.243 1.365 4.949 5.12 3.413 8.533-1.365 3.243-5.291 4.779-8.533 3.413zM851.285 425.643l-153.771-64.341 2.219 83.285 0.683 0.341c0.341 0.171 0.512 0.171 0.853 0.341l157.696 66.048c2.219 0.853 3.755 2.901 3.925 5.291s-0.853 4.608-2.731 5.973l-221.696 153.6c-1.877 1.195-4.096 1.536-6.144 0.683l-464.213-194.389c-0.171 0-0.341-0.171-0.512-0.341-0.341-0.171-0.683-0.512-1.024-0.683-0.341-0.341-0.683-0.512-1.024-0.853-0.171-0.171-0.341-0.171-0.341-0.341-0.171-0.171-0.171-0.341-0.341-0.683s-0.341-0.853-0.512-1.195c-0.171-0.341-0.171-0.853-0.171-1.195s0-0.853 0-1.195c0-0.512 0.171-0.853 0.341-1.365 0-0.171 0-0.512 0.171-0.683 0-0.171 0.171-0.341 0.341-0.512 0.171-0.341 0.512-0.683 0.683-1.024 0.341-0.341 0.512-0.683 0.853-1.024 0.171-0.171 0.171-0.341 0.341-0.341l221.696-153.6c0 0 0 0 0 0 0.341-0.341 0.853-0.512 1.195-0.683 0.171 0 0.341-0.171 0.512-0.171 0.512-0.171 1.024-0.171 1.365-0.171 0.171 0 0.341 0 0.341 0v0c0 0 0 0 0 0 0.853 0 1.707 0.171 2.56 0.512l158.379 66.389-2.219-83.285-160.427-67.243-218.795 151.723c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.696-153.6c1.195-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l464.213 194.389c3.243 1.365 4.949 5.12 3.413 8.533-1.536 3.072-5.291 4.608-8.533 3.243zM633.685 663.381l209.067-144.896-144.213-60.416-209.067 144.896 144.213 60.416zM392.704 330.069l-209.067 144.896 155.819 65.195 209.067-144.896-155.819-65.195zM566.101 395.264c0 0.171-0.171 0.341-0.171 0.683 0 0.512-0.171 0.853-0.171 1.365-0.171 0.341-0.171 0.853-0.512 1.195-0.171 0.341-0.341 0.683-0.683 1.024s-0.512 0.683-0.853 1.024c-0.171 0.171-0.341 0.341-0.512 0.512l-209.749 145.408 121.515 50.859 211.456-146.603-2.389-94.891-120.32-50.347 2.389 89.771zM391.168 437.76c-1.877 4.779-7.339 7.168-12.117 5.291s-7.168-7.339-5.291-12.117c1.877-4.779 7.339-7.168 12.117-5.291s7.168 7.339 5.291 12.117zM674.133 551.083c4.779 1.877 7.168 7.339 5.291 12.117s-7.339 7.168-12.117 5.291c-4.779-1.877-7.168-7.339-5.291-12.117 1.877-4.949 7.339-7.168 12.117-5.291z" />
42
+ <glyph unicode="&#xe920;" glyph-name="credit-card" d="M813.909 620.544h-645.12c-4.096 0-7.509-3.413-7.509-7.509v-376.832c0-4.096 3.413-7.509 7.509-7.509h645.12c4.096 0 7.509 3.413 7.509 7.509v376.832c0 4.096-3.243 7.509-7.509 7.509zM806.4 243.712h-630.101v361.813h630.101v-361.813zM717.141 378.197c-10.24 0-19.627-3.243-27.477-8.533-8.021 5.461-17.408 8.533-27.307 8.533-26.795 0-48.811-21.845-48.811-48.811s21.845-48.811 48.811-48.811c9.899 0 19.285 3.072 27.307 8.533 7.851-5.461 17.237-8.533 27.477-8.533 26.795 0 48.811 21.845 48.811 48.811s-22.016 48.811-48.811 48.811zM628.736 329.557c0 18.603 15.019 33.621 33.621 33.621 5.803 0 11.264-1.536 16.213-4.267-6.315-8.192-10.069-18.261-10.069-29.355s3.925-21.163 10.069-29.355c-4.949-2.731-10.411-4.267-16.213-4.267-18.603 0-33.621 15.019-33.621 33.621zM717.141 295.936c-18.603 0-33.621 15.019-33.621 33.621s15.019 33.621 33.621 33.621c18.603 0 33.621-15.019 33.621-33.621s-15.019-33.621-33.621-33.621zM224.427 472.064h117.589c4.096 0 7.509 3.413 7.509 7.509v80.555c0 4.096-3.413 7.509-7.509 7.509h-117.589c-4.096 0-7.509-3.413-7.509-7.509v-80.555c0-4.096 3.243-7.509 7.509-7.509zM231.936 552.619h102.571v-65.365h-102.571v65.365zM224.427 417.109h533.845c4.096 0 7.509 3.413 7.509 7.509s-3.413 7.509-7.509 7.509h-533.845c-4.096 0-7.509-3.413-7.509-7.509s3.243-7.509 7.509-7.509zM855.211 667.307h-628.736c-4.096 0-7.509-3.413-7.509-7.509s3.413-7.509 7.509-7.509h621.227v-359.765c0-4.096 3.413-7.509 7.509-7.509s7.509 3.413 7.509 7.509v367.275c0 4.096-3.413 7.509-7.509 7.509z" />
43
+ <glyph unicode="&#xe921;" glyph-name="check-circle" d="M483.499 298.667c-7.509 0-14.848 3.072-20.139 8.363l-99.499 99.669c-11.093 11.093-11.093 29.184 0 40.277s29.184 11.093 40.277 0l77.141-77.141 179.2 224.085c9.728 12.288 27.648 14.336 39.936 4.437 12.288-9.728 14.336-27.648 4.437-39.936l-199.168-249.173c-5.12-6.315-12.629-10.24-20.651-10.581-0.512 0-1.024 0-1.536 0zM512 35.499c-227.499 0-412.501 185.003-412.501 412.501s185.003 412.501 412.501 412.501 412.501-185.003 412.501-412.501-185.003-412.501-412.501-412.501zM512 803.499c-196.096 0-355.499-159.403-355.499-355.499s159.403-355.499 355.499-355.499 355.499 159.573 355.499 355.499-159.403 355.499-355.499 355.499z" />
44
+ <glyph unicode="&#xe922;" glyph-name="info-squared" d="M853.333 35.499h-682.667c-39.253 0-71.168 31.915-71.168 71.168v682.667c0 39.253 31.915 71.168 71.168 71.168h682.667c39.253 0 71.168-31.915 71.168-71.168v-682.667c0-39.253-31.915-71.168-71.168-71.168zM170.667 803.499c-7.851 0-14.165-6.315-14.165-14.165v-682.667c0-7.851 6.315-14.165 14.165-14.165h682.667c7.851 0 14.165 6.315 14.165 14.165v682.667c0 7.851-6.315 14.165-14.165 14.165h-682.667zM504.832 561.835c-19.627 0-35.499 15.872-35.499 35.499s15.872 35.499 35.499 35.499 35.499-15.872 35.499-35.499-15.872-35.499-35.499-35.499zM568.832 291.499h-28.501v199.168c0 15.701-12.8 28.501-28.501 28.501h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501v-170.667h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501h113.835c15.701 0 28.501 12.8 28.501 28.501s-12.629 28.501-28.331 28.501z" />
45
+ <glyph unicode="&#xe923;" glyph-name="warning-triangle" d="M504.832 789.333l384-682.667h-768l384 682.667zM504.832 846.165v0c-20.48 0-39.424-11.093-49.664-29.013l-384-682.667c-9.899-17.579-9.728-39.083 0.512-56.661 10.24-17.408 28.843-28.16 49.152-28.16h768c20.139 0 38.912 10.752 49.152 28.16s10.411 39.083 0.512 56.661l-384 682.667c-10.069 17.92-29.013 29.013-49.664 29.013v0zM504.832 276.48c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667-42.667 19.115-42.667 42.667 19.115 42.667 42.667 42.667zM497.835 334.165c-15.701 0-28.501 12.8-28.501 28.501v227.499c0 15.701 12.8 28.501 28.501 28.501s28.501-12.8 28.501-28.501v-227.499c-0.171-15.701-12.8-28.501-28.501-28.501z" />
46
  </font></defs></svg>
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.woff CHANGED
Binary file
plugin-fw/assets/js/how-to.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a=a("#yith-how-to-premium").parent();"undefined"!=typeof a&&a.prop("target","_blank")})(jQuery);
1
+ !function(r){var t=jQuery("#yith-how-to-premium").parent();void 0!==t&&t.prop("target","_blank")}();
plugin-fw/assets/js/jquery.colorbox.min.js CHANGED
@@ -1,33 +1,6 @@
1
- /*
2
- Colorbox 1.6.3
3
- license: MIT
4
- http://www.jacklmoore.com/colorbox
5
  */
6
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,h,g){b instanceof String&&(b=String(b));for(var d=b.length,r=0;r<d;r++){var C=b[r];if(h.call(g,C,r,b))return{i:r,v:C}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,h,g){b!=Array.prototype&&b!=Object.prototype&&(b[h]=g.value)};
7
- $jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,h,g,d){if(h){g=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var r=b[d];r in g||(g[r]={});g=g[r]}b=b[b.length-1];d=g[b];h=h(d);h!=d&&null!=h&&$jscomp.defineProperty(g,b,{configurable:!0,writable:!0,value:h})}};
8
- $jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,g){return $jscomp.findInternal(this,b,g).v}},"es6","es3");
9
- (function(b,h,g){function d(a,f,H){a=h.createElement(a);f&&(a.id="cbox"+f);H&&(a.style.cssText=H);return b(a)}function r(){return g.innerHeight?g.innerHeight:b(g).height()}function C(a,f){f!==Object(f)&&(f={});this.cache={};this.el=a;this.value=function(a){if(void 0===this.cache[a]){var c=b(this.el).attr("data-cbox-"+a);void 0!==c?this.cache[a]=c:void 0!==f[a]?this.cache[a]=f[a]:void 0!==S[a]&&(this.cache[a]=S[a])}return this.cache[a]};this.get=function(a){a=this.value(a);return b.isFunction(a)?a.call(this.el,
10
- this):a}}function O(a){var c=n.length;a=(p+a)%c;return 0>a?c+a:a}function q(a,b){return Math.round((/%/.test(a)?("x"===b?x.width():r())/100:1)*parseInt(a,10))}function ca(a,b){return a.get("photo")||a.get("photoRegex").test(b)}function da(a,b){return a.get("retinaUrl")&&1<g.devicePixelRatio?b.replace(a.get("photoRegex"),a.get("retinaSuffix")):b}function ea(a){"contains"in k[0]&&!k[0].contains(a.target)&&a.target!==y[0]&&(a.stopPropagation(),k.focus())}function I(a){I.str!==a&&(k.add(y).removeClass(I.str).addClass(a),
11
- I.str=a)}function ja(c){p=0;c&&!1!==c&&"nofollow"!==c?(n=b(".cboxElement").filter(function(){var a=b.data(this,"colorbox");return(new C(this,a)).get("rel")===c}),p=n.index(a.el),-1===p&&(n=n.add(a.el),p=n.length-1)):n=b(a.el)}function E(a){b(h).trigger(a);t.triggerHandler(a)}function P(c){if(!J){var f=b(c).data("colorbox");a=new C(c,f);ja(a.get("rel"));if(!z){z=K=!0;I(a.get("className"));k.css({visibility:"hidden",display:"block",opacity:""});l=d("div","LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");
12
- u.css({width:"",height:""}).append(l);v=T.height()+U.height()+u.outerHeight(!0)-u.height();w=V.width()+W.width()+u.outerWidth(!0)-u.width();A=l.outerHeight(!0);B=l.outerWidth(!0);c=q(a.get("initialWidth"),"x");f=q(a.get("initialHeight"),"y");var H=a.get("maxWidth"),e=a.get("maxHeight");a.w=Math.max((!1!==H?Math.min(c,q(H,"x")):c)-B-w,0);a.h=Math.max((!1!==e?Math.min(f,q(e,"y")):f)-A-v,0);l.css({width:"",height:a.h});m.position();E("cbox_open");a.get("onOpen");X.add(Y).hide();k.focus();a.get("trapFocus")&&
13
- h.addEventListener&&(h.addEventListener("focus",ea,!0),t.one("cbox_closed",function(){h.removeEventListener("focus",ea,!0)}));if(a.get("returnFocus"))t.one("cbox_closed",function(){b(a.el).focus()})}c=parseFloat(a.get("opacity"));y.css({opacity:c===c?c:"",cursor:a.get("overlayClose")?"pointer":"",visibility:"visible"}).show();a.get("closeButton")?Q.html(a.get("close")).appendTo(u):Q.appendTo("<div/>");ka()}}function fa(){k||(Z=!1,x=b(g),k=d("div").attr({id:"colorbox","class":!1===b.support.opacity?
14
- "cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),y=d("div","Overlay").hide(),R=b([d("div","LoadingOverlay")[0],d("div","LoadingGraphic")[0]]),F=d("div","Wrapper"),u=d("div","Content").append(Y=d("div","Title"),aa=d("div","Current"),L=b('<button type="button"/>').attr({id:"cboxPrevious"}),M=b('<button type="button"/>').attr({id:"cboxNext"}),G=d("button","Slideshow"),R),Q=b('<button type="button"/>').attr({id:"cboxClose"}),F.append(d("div").append(d("div","TopLeft"),T=d("div","TopCenter"),d("div","TopRight")),
15
- d("div",!1,"clear:left").append(V=d("div","MiddleLeft"),u,W=d("div","MiddleRight")),d("div",!1,"clear:left").append(d("div","BottomLeft"),U=d("div","BottomCenter"),d("div","BottomRight"))).find("div div").css({"float":"left"}),N=d("div",!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),X=M.add(L).add(aa).add(G));h.body&&!k.parent().length&&b(h.body).append(y,k.append(F,N))}function la(){function c(a){1<a.which||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),
16
- P(this))}if(k){if(!Z)if(Z=!0,M.click(function(){m.next()}),L.click(function(){m.prev()}),Q.click(function(){m.close()}),y.click(function(){a.get("overlayClose")&&m.close()}),b(h).bind("keydown.cbox",function(b){var c=b.keyCode;z&&a.get("escKey")&&27===c&&(b.preventDefault(),m.close());z&&a.get("arrowKey")&&n[1]&&!b.altKey&&(37===c?(b.preventDefault(),L.click()):39===c&&(b.preventDefault(),M.click()))}),b.isFunction(b.fn.on))b(h).on("click.cbox",".cboxElement",c);else b(".cboxElement").live("click.cbox",
17
- c);return!0}return!1}function ka(){var c,f=m.prep,k=++ba;K=!0;e=!1;E("cbox_purge");E("cbox_load");a.get("onLoad");a.h=a.get("height")?q(a.get("height"),"y")-A-v:a.get("innerHeight")&&q(a.get("innerHeight"),"y");a.w=a.get("width")?q(a.get("width"),"x")-B-w:a.get("innerWidth")&&q(a.get("innerWidth"),"x");a.mw=a.w;a.mh=a.h;a.get("maxWidth")&&(a.mw=q(a.get("maxWidth"),"x")-B-w,a.mw=a.w&&a.w<a.mw?a.w:a.mw);a.get("maxHeight")&&(a.mh=q(a.get("maxHeight"),"y")-A-v,a.mh=a.h&&a.h<a.mh?a.h:a.mh);var D=a.get("href");
18
- ha=setTimeout(function(){R.show()},100);if(a.get("inline")){var h=b(D);var l=b("<div>").hide().insertBefore(h);t.one("cbox_purge",function(){l.replaceWith(h)});f(h)}else a.get("iframe")?f(" "):a.get("html")?f(a.get("html")):ca(a,D)?(D=da(a,D),e=a.get("createImg"),b(e).addClass("cboxPhoto").bind("error.cbox",function(){f(d("div","Error").html(a.get("imgError")))}).one("load",function(){k===ba&&setTimeout(function(){a.get("retinaImage")&&1<g.devicePixelRatio&&(e.height/=g.devicePixelRatio,e.width/=
19
- g.devicePixelRatio);if(a.get("scalePhotos")){c=function(){e.height-=e.height*d;e.width-=e.width*d};if(a.mw&&e.width>a.mw){var d=(e.width-a.mw)/e.width;c()}a.mh&&e.height>a.mh&&(d=(e.height-a.mh)/e.height,c())}a.h&&(e.style.marginTop=Math.max(a.mh-e.height,0)/2+"px");n[1]&&(a.get("loop")||n[p+1])&&(e.style.cursor="pointer",b(e).bind("click.cbox",function(){m.next()}));e.style.width=e.width+"px";e.style.height=e.height+"px";f(e)},1)}),e.src=D):D&&N.load(D,a.get("data"),function(c,e){k===ba&&f("error"===
20
- e?d("div","Error").html(a.get("xhrError")):b(this).contents())})}var S={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,
21
- slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/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 b(this).attr("href")},
22
- title:function(){return this.title},createImg:function(){var a=new Image,f=b(this).data("cbox-img-attrs");"object"===typeof f&&b.each(f,function(b,c){a[b]=c});return a},createIframe:function(){var a=h.createElement("iframe"),f=b(this).data("cbox-iframe-attrs");"object"===typeof f&&b.each(f,function(b,c){a[b]=c});"frameBorder"in a&&(a.frameBorder=0);"allowTransparency"in a&&(a.allowTransparency="true");a.name=(new Date).getTime();a.allowFullscreen=!0;return a}},y,k,F,u,T,V,W,U,n,x,l,N,R,Y,aa,G,M,L,
23
- Q,X,t=b("<a/>"),a,v,w,A,B,p,e,z,K,J,ha,ba=0,ia={},Z,ma=function(){function b(){clearTimeout(l)}function f(){if(a.get("loop")||n[p+1])b(),l=setTimeout(m.next,a.get("slideshowSpeed"))}function d(){G.html(a.get("slideshowStop")).unbind("click.cbox").one("click.cbox",e);t.bind("cbox_complete",f).bind("cbox_load",b);k.removeClass("cboxSlideshow_off").addClass("cboxSlideshow_on")}function e(){b();t.unbind("cbox_complete",f).unbind("cbox_load",b);G.html(a.get("slideshowStart")).unbind("click.cbox").one("click.cbox",
24
- function(){m.next();d()});k.removeClass("cboxSlideshow_on").addClass("cboxSlideshow_off")}function h(){g=!1;G.hide();b();t.unbind("cbox_complete",f).unbind("cbox_load",b);k.removeClass("cboxSlideshow_off cboxSlideshow_on")}var g,l;return function(){g?a.get("slideshow")||(t.unbind("cbox_cleanup",h),h()):a.get("slideshow")&&n[1]&&(g=!0,t.one("cbox_cleanup",h),a.get("slideshowAuto")?d():e(),G.show())}}();if(!b.colorbox){b(fa);var m=b.fn.colorbox=b.colorbox=function(a,f){var c=this;a=a||{};b.isFunction(c)&&
25
- (c=b("<a/>"),a.open=!0);if(!c[0])return c;fa();la()&&(f&&(a.onComplete=f),c.each(function(){var c=b.data(this,"colorbox")||{};b.data(this,"colorbox",b.extend(c,a))}).addClass("cboxElement"),f=new C(c[0],a),f.get("open")&&P(c[0]));return c};m.position=function(c,f){function d(){T[0].style.width=U[0].style.width=u[0].style.width=parseInt(k[0].style.width,10)-w+"px";u[0].style.height=V[0].style.height=W[0].style.height=parseInt(k[0].style.height,10)-v+"px"}var e=0,h=0,g=k.offset();x.unbind("resize.cbox");
26
- k.css({top:-9E4,left:-9E4});var l=x.scrollTop();var n=x.scrollLeft();a.get("fixed")?(g.top-=l,g.left-=n,k.css({position:"fixed"})):(e=l,h=n,k.css({position:"absolute"}));h=!1!==a.get("right")?h+Math.max(x.width()-a.w-B-w-q(a.get("right"),"x"),0):!1!==a.get("left")?h+q(a.get("left"),"x"):h+Math.round(Math.max(x.width()-a.w-B-w,0)/2);e=!1!==a.get("bottom")?e+Math.max(r()-a.h-A-v-q(a.get("bottom"),"y"),0):!1!==a.get("top")?e+q(a.get("top"),"y"):e+Math.round(Math.max(r()-a.h-A-v,0)/2);k.css({top:g.top,
27
- left:g.left,visibility:"visible"});F[0].style.width=F[0].style.height="9999px";var p={width:a.w+B+w,height:a.h+A+v,top:e,left:h};if(c){var t=0;b.each(p,function(a){p[a]!==ia[a]&&(t=c)});c=t}ia=p;c||k.css(p);k.dequeue().animate(p,{duration:c||0,complete:function(){d();K=!1;F[0].style.width=a.w+B+w+"px";F[0].style.height=a.h+A+v+"px";a.get("reposition")&&setTimeout(function(){x.bind("resize.cbox",m.position)},1);b.isFunction(f)&&f()},step:d})};m.resize=function(b){if(z){b=b||{};b.width&&(a.w=q(b.width,
28
- "x")-B-w);b.innerWidth&&(a.w=q(b.innerWidth,"x"));l.css({width:a.w});b.height&&(a.h=q(b.height,"y")-A-v);b.innerHeight&&(a.h=q(b.innerHeight,"y"));if(!b.innerHeight&&!b.height){var c=l.scrollTop();l.css({height:"auto"});a.h=l.height()}l.css({height:a.h});c&&l.scrollTop(c);m.position("none"===a.get("transition")?0:a.get("speed"))}};m.prep=function(c){if(z){var f="none"===a.get("transition")?0:a.get("speed");l.remove();l=d("div","LoadedContent").append(c);l.hide().appendTo(N.show()).css({width:function(){a.w=
29
- a.w||l.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.get("scrolling")?"auto":"hidden"}).css({height:function(){a.h=a.h||l.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(u);N.hide();b(e).css({"float":"none"});I(a.get("className"));var g=function(){function c(){!1===b.support.opacity&&k[0].style.removeAttribute("filter")}var d=n.length;if(z){var e=function(){clearTimeout(ha);R.hide();E("cbox_complete");a.get("onComplete")};Y.html(a.get("title")).show();l.show();1<d?("string"===
30
- typeof a.get("current")&&aa.html(a.get("current").replace("{current}",p+1).replace("{total}",d)).show(),M[a.get("loop")||p<d-1?"show":"hide"]().html(a.get("next")),L[a.get("loop")||p?"show":"hide"]().html(a.get("previous")),ma(),a.get("preloading")&&b.each([O(-1),O(1)],function(){var a=n[this];var c=new C(a,b.data(a,"colorbox"));(a=c.get("href"))&&ca(c,a)&&(a=da(c,a),c=h.createElement("img"),c.src=a)})):X.hide();if(a.get("iframe")){var g=a.get("createIframe");a.get("scrolling")||(g.scrolling="no");
31
- b(g).attr({src:a.get("href"),"class":"cboxIframe"}).one("load",e).appendTo(l);t.one("cbox_purge",function(){g.src="//about:blank"});a.get("fastIframe")&&b(g).trigger("load")}else e();"fade"===a.get("transition")?k.fadeTo(f,1,c):c()}};"fade"===a.get("transition")?k.fadeTo(f,0,function(){m.position(0,g)}):m.position(f,g)}};m.next=function(){!K&&n[1]&&(a.get("loop")||n[p+1])&&(p=O(1),P(n[p]))};m.prev=function(){!K&&n[1]&&(a.get("loop")||p)&&(p=O(-1),P(n[p]))};m.close=function(){z&&!J&&(J=!0,z=!1,E("cbox_cleanup"),
32
- a.get("onCleanup"),x.unbind(".cbox"),y.fadeTo(a.get("fadeOut")||0,0),k.stop().fadeTo(a.get("fadeOut")||0,0,function(){k.hide();y.hide();E("cbox_purge");l.remove();setTimeout(function(){J=!1;E("cbox_closed");a.get("onClosed")},1)}))};m.remove=function(){k&&(k.stop(),b.colorbox.close(),k.stop(!1,!0).remove(),y.remove(),J=!1,k=null,b(".cboxElement").removeData("colorbox").removeClass("cboxElement"),b(h).unbind("click.cbox").unbind("keydown.cbox"))};m.element=function(){return b(a.el)};m.settings=S}})(jQuery,
33
- document,window);
1
+ /*!
2
+ Colorbox 1.6.3
3
+ license: MIT
4
+ http://www.jacklmoore.com/colorbox
5
  */
6
+ !function(t,e,i){var n,o,h,r,a,s,l,d,c,g,u,f,p,m,w,v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B={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:undefined,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)((#|\?).*)?$/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},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},O="colorbox",_="cbox",j=_+"Element",D=_+"_open",N=_+"_load",z=_+"_complete",A=_+"_cleanup",U=_+"_closed",$=_+"_purge",q=t("<a/>"),G="div",Q=0,J={};function V(i,n,o){var h=e.createElement(i);return n&&(h.id=_+n),o&&(h.style.cssText=o),t(h)}function X(){return i.innerHeight?i.innerHeight:t(i).height()}function Y(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return this.cache[e]===undefined&&((n=t(this.el).attr("data-cbox-"+e))!==undefined?this.cache[e]=n:i[e]!==undefined?this.cache[e]=i[e]:B[e]!==undefined&&(this.cache[e]=B[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function Z(t){var e=c.length,i=(I+t)%e;return i<0?e+i:i}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?g.width():X())/100:1)*parseInt(t,10))}function et(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function it(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function nt(t){"contains"in o[0]&&!o[0].contains(t.target)&&t.target!==n[0]&&(t.stopPropagation(),o.focus())}function ot(t){ot.str!==t&&(o.add(n).removeClass(ot.str).addClass(t),ot.str=t)}function ht(i){t(e).trigger(i),q.triggerHandler(i)}var rt=function(){var t,e,i=_+"Slideshow_",n="click."+_;function h(){clearTimeout(e)}function r(){(C.get("loop")||c[I+1])&&(h(),e=setTimeout(K.next,C.get("slideshowSpeed")))}function a(){v.html(C.get("slideshowStop")).unbind(n).one(n,s),q.bind(z,r).bind(N,h),o.removeClass(i+"off").addClass(i+"on")}function s(){h(),q.unbind(z,r).unbind(N,h),v.html(C.get("slideshowStart")).unbind(n).one(n,function(){K.next(),a()}),o.removeClass(i+"on").addClass(i+"off")}function l(){t=!1,v.hide(),h(),q.unbind(z,r).unbind(N,h),o.removeClass(i+"off "+i+"on")}return function(){t?C.get("slideshow")||(q.unbind(A,l),l()):C.get("slideshow")&&c[1]&&(t=!0,q.one(A,l),C.get("slideshowAuto")?a():s(),v.show())}}();function at(h){var g,w;if(!R){if(g=t(h).data(O),C=new Y(h,g),w=C.get("rel"),I=0,w&&!1!==w&&"nofollow"!==w?(c=t("."+j).filter(function(){return new Y(this,t.data(this,O)).get("rel")===w}),-1===(I=c.index(C.el))&&(c=c.add(C.el),I=c.length-1)):c=t(C.el),!L){L=F=!0,ot(C.get("className")),o.css({visibility:"hidden",display:"block",opacity:""}),u=V(G,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),r.css({width:"",height:""}).append(u),H=a.height()+d.height()+r.outerHeight(!0)-r.height(),k=s.width()+l.width()+r.outerWidth(!0)-r.width(),W=u.outerHeight(!0),E=u.outerWidth(!0);var v=tt(C.get("initialWidth"),"x"),x=tt(C.get("initialHeight"),"y"),y=C.get("maxWidth"),P=C.get("maxHeight");C.w=Math.max((!1!==y?Math.min(v,tt(y,"x")):v)-E-k,0),C.h=Math.max((!1!==P?Math.min(x,tt(P,"y")):x)-W-H,0),u.css({width:"",height:C.h}),K.position(),ht(D),C.get("onOpen"),T.add(m).hide(),o.focus(),C.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",nt,!0),q.one(U,function(){e.removeEventListener("focus",nt,!0)})),C.get("returnFocus")&&q.one(U,function(){t(C.el).focus()})}var B=parseFloat(C.get("opacity"));n.css({opacity:B==B?B:"",cursor:C.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),C.get("closeButton")?b.html(C.get("close")).appendTo(r):b.appendTo("<div/>"),function(){var e,n,o,h=K.prep,r=++Q;F=!0,M=!1,ht($),ht(N),C.get("onLoad"),C.h=C.get("height")?tt(C.get("height"),"y")-W-H:C.get("innerHeight")&&tt(C.get("innerHeight"),"y"),C.w=C.get("width")?tt(C.get("width"),"x")-E-k:C.get("innerWidth")&&tt(C.get("innerWidth"),"x"),C.mw=C.w,C.mh=C.h,C.get("maxWidth")&&(C.mw=tt(C.get("maxWidth"),"x")-E-k,C.mw=C.w&&C.w<C.mw?C.w:C.mw);C.get("maxHeight")&&(C.mh=tt(C.get("maxHeight"),"y")-W-H,C.mh=C.h&&C.h<C.mh?C.h:C.mh);if(e=C.get("href"),S=setTimeout(function(){p.show()},100),C.get("inline")){var a=t(e);o=t("<div>").hide().insertBefore(a),q.one($,function(){o.replaceWith(a)}),h(a)}else C.get("iframe")?h(" "):C.get("html")?h(C.get("html")):et(C,e)?(e=it(C,e),M=C.get("createImg"),t(M).addClass(_+"Photo").bind("error."+_,function(){h(V(G,"Error").html(C.get("imgError")))}).one("load",function(){r===Q&&setTimeout(function(){var e;C.get("retinaImage")&&i.devicePixelRatio>1&&(M.height=M.height/i.devicePixelRatio,M.width=M.width/i.devicePixelRatio),C.get("scalePhotos")&&(n=function(){M.height-=M.height*e,M.width-=M.width*e},C.mw&&M.width>C.mw&&(e=(M.width-C.mw)/M.width,n()),C.mh&&M.height>C.mh&&(e=(M.height-C.mh)/M.height,n())),C.h&&(M.style.marginTop=Math.max(C.mh-M.height,0)/2+"px"),c[1]&&(C.get("loop")||c[I+1])&&(M.style.cursor="pointer",t(M).bind("click."+_,function(){K.next()})),M.style.width=M.width+"px",M.style.height=M.height+"px",h(M)},1)}),M.src=e):e&&f.load(e,C.get("data"),function(e,i){r===Q&&h("error"===i?V(G,"Error").html(C.get("xhrError")):t(this).contents())})}()}}function st(){o||(P=!1,g=t(i),o=V(G).attr({id:O,"class":!1===t.support.opacity?_+"IE":"",role:"dialog",tabindex:"-1"}).hide(),n=V(G,"Overlay").hide(),p=t([V(G,"LoadingOverlay")[0],V(G,"LoadingGraphic")[0]]),h=V(G,"Wrapper"),r=V(G,"Content").append(m=V(G,"Title"),w=V(G,"Current"),y=t('<button type="button"/>').attr({id:_+"Previous"}),x=t('<button type="button"/>').attr({id:_+"Next"}),v=V("button","Slideshow"),p),b=t('<button type="button"/>').attr({id:_+"Close"}),h.append(V(G).append(V(G,"TopLeft"),a=V(G,"TopCenter"),V(G,"TopRight")),V(G,!1,"clear:left").append(s=V(G,"MiddleLeft"),r,l=V(G,"MiddleRight")),V(G,!1,"clear:left").append(V(G,"BottomLeft"),d=V(G,"BottomCenter"),V(G,"BottomRight"))).find("div div").css({float:"left"}),f=V(G,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),T=x.add(y).add(w).add(v)),e.body&&!o.parent().length&&t(e.body).append(n,o.append(h,f))}function lt(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),at(this))}return!!o&&(P||(P=!0,x.click(function(){K.next()}),y.click(function(){K.prev()}),b.click(function(){K.close()}),n.click(function(){C.get("overlayClose")&&K.close()}),t(e).bind("keydown."+_,function(t){var e=t.keyCode;L&&C.get("escKey")&&27===e&&(t.preventDefault(),K.close()),L&&C.get("arrowKey")&&c[1]&&!t.altKey&&(37===e?(t.preventDefault(),y.click()):39===e&&(t.preventDefault(),x.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+_,"."+j,i):t("."+j).live("click."+_,i)),!0)}t[O]||(t(st),(K=t.fn[O]=t[O]=function(e,i){var n=this;return e=e||{},t.isFunction(n)&&(n=t("<a/>"),e.open=!0),n[0]?(st(),lt()&&(i&&(e.onComplete=i),n.each(function(){var i=t.data(this,O)||{};t.data(this,O,t.extend(i,e))}).addClass(j),new Y(n[0],e).get("open")&&at(n[0])),n):n}).position=function(e,i){var n,c,u,f=0,p=0,m=o.offset();function w(){a[0].style.width=d[0].style.width=r[0].style.width=parseInt(o[0].style.width,10)-k+"px",r[0].style.height=s[0].style.height=l[0].style.height=parseInt(o[0].style.height,10)-H+"px"}if(g.unbind("resize."+_),o.css({top:-9e4,left:-9e4}),c=g.scrollTop(),u=g.scrollLeft(),C.get("fixed")?(m.top-=c,m.left-=u,o.css({position:"fixed"})):(f=c,p=u,o.css({position:"absolute"})),!1!==C.get("right")?p+=Math.max(g.width()-C.w-E-k-tt(C.get("right"),"x"),0):!1!==C.get("left")?p+=tt(C.get("left"),"x"):p+=Math.round(Math.max(g.width()-C.w-E-k,0)/2),!1!==C.get("bottom")?f+=Math.max(X()-C.h-W-H-tt(C.get("bottom"),"y"),0):!1!==C.get("top")?f+=tt(C.get("top"),"y"):f+=Math.round(Math.max(X()-C.h-W-H,0)/2),o.css({top:m.top,left:m.left,visibility:"visible"}),h[0].style.width=h[0].style.height="9999px",n={width:C.w+E+k,height:C.h+W+H,top:f,left:p},e){var v=0;t.each(n,function(t){n[t]===J[t]||(v=e)}),e=v}J=n,e||o.css(n),o.dequeue().animate(n,{duration:e||0,complete:function(){w(),F=!1,h[0].style.width=C.w+E+k+"px",h[0].style.height=C.h+W+H+"px",C.get("reposition")&&setTimeout(function(){g.bind("resize."+_,K.position)},1),t.isFunction(i)&&i()},step:w})},K.resize=function(t){var e;L&&((t=t||{}).width&&(C.w=tt(t.width,"x")-E-k),t.innerWidth&&(C.w=tt(t.innerWidth,"x")),u.css({width:C.w}),t.height&&(C.h=tt(t.height,"y")-W-H),t.innerHeight&&(C.h=tt(t.innerHeight,"y")),t.innerHeight||t.height||(e=u.scrollTop(),u.css({height:"auto"}),C.h=u.height()),u.css({height:C.h}),e&&u.scrollTop(e),K.position("none"===C.get("transition")?0:C.get("speed")))},K.prep=function(i){if(L){var n,h="none"===C.get("transition")?0:C.get("speed");u.remove(),(u=V(G,"LoadedContent").append(i)).hide().appendTo(f.show()).css({width:(C.w=C.w||u.width(),C.w=C.mw&&C.mw<C.w?C.mw:C.w,C.w),overflow:C.get("scrolling")?"auto":"hidden"}).css({height:(C.h=C.h||u.height(),C.h=C.mh&&C.mh<C.h?C.mh:C.h,C.h)}).prependTo(r),f.hide(),t(M).css({float:"none"}),ot(C.get("className")),n=function(){var i,n,r=c.length;function a(){!1===t.support.opacity&&o[0].style.removeAttribute("filter")}L&&(n=function(){clearTimeout(S),p.hide(),ht(z),C.get("onComplete")},m.html(C.get("title")).show(),u.show(),r>1?("string"==typeof C.get("current")&&w.html(C.get("current").replace("{current}",I+1).replace("{total}",r)).show(),x[C.get("loop")||I<r-1?"show":"hide"]().html(C.get("next")),y[C.get("loop")||I?"show":"hide"]().html(C.get("previous")),rt(),C.get("preloading")&&t.each([Z(-1),Z(1)],function(){var i=c[this],n=new Y(i,t.data(i,O)),o=n.get("href");o&&et(n,o)&&(o=it(n,o),e.createElement("img").src=o)})):T.hide(),C.get("iframe")?(i=C.get("createIframe"),C.get("scrolling")||(i.scrolling="no"),t(i).attr({src:C.get("href"),"class":_+"Iframe"}).one("load",n).appendTo(u),q.one($,function(){i.src="//about:blank"}),C.get("fastIframe")&&t(i).trigger("load")):n(),"fade"===C.get("transition")?o.fadeTo(h,1,a):a())},"fade"===C.get("transition")?o.fadeTo(h,0,function(){K.position(0,n)}):K.position(h,n)}},K.next=function(){!F&&c[1]&&(C.get("loop")||c[I+1])&&(I=Z(1),at(c[I]))},K.prev=function(){!F&&c[1]&&(C.get("loop")||I)&&(I=Z(-1),at(c[I]))},K.close=function(){L&&!R&&(R=!0,L=!1,ht(A),C.get("onCleanup"),g.unbind("."+_),n.fadeTo(C.get("fadeOut")||0,0),o.stop().fadeTo(C.get("fadeOut")||0,0,function(){o.hide(),n.hide(),ht($),u.remove(),setTimeout(function(){R=!1,ht(U),C.get("onClosed")},1)}))},K.remove=function(){o&&(o.stop(),t[O].close(),o.stop(!1,!0).remove(),n.remove(),R=!1,o=null,t("."+j).removeData(O).removeClass(j),t(e).unbind("click."+_).unbind("keydown."+_))},K.element=function(){return t(C.el)},K.settings=B)}(jQuery,document,window);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/assets/js/metabox.js CHANGED
@@ -128,6 +128,13 @@
128
  case 'hideme':
129
  $current_field.hide();
130
  break;
 
 
 
 
 
 
 
131
  default:
132
  if( ! $current_container.hasClass('fade-in')){
133
  $current_container.hide();
@@ -148,6 +155,13 @@
148
  case 'hideme':
149
  $current_field.show();
150
  break;
 
 
 
 
 
 
 
151
  default:
152
  $current_container.show();
153
  $current_container.fadeTo("slow" , 1).addClass('fade-in');
128
  case 'hideme':
129
  $current_field.hide();
130
  break;
131
+ case 'fadeInOut':
132
+ case 'fadeOut':
133
+ $current_container.hide( 500 );
134
+ break;
135
+ case 'fadeIn':
136
+ $current_container.hide();
137
+ break;
138
  default:
139
  if( ! $current_container.hasClass('fade-in')){
140
  $current_container.hide();
155
  case 'hideme':
156
  $current_field.show();
157
  break;
158
+ case 'fadeInOut':
159
+ case 'fadeIn':
160
+ $current_container.show( 500 );
161
+ break;
162
+ case 'fadeOut':
163
+ $current_container.show();
164
+ break;
165
  default:
166
  $current_container.show();
167
  $current_container.fadeTo("slow" , 1).addClass('fade-in');
plugin-fw/assets/js/metabox.min.js CHANGED
@@ -1 +1 @@
1
- !function(h){h(".metaboxes-tab").each(function(){h(".tabs-panel",this).hide();var t=wpCookies.get("active_metabox_tab");t=null==t?h("ul.metaboxes-tabs li:first-child a",this).attr("href"):"#"+t,h(t).show(),h(".metaboxes-tabs a",this).click(function(t){if(!h(this).parent().hasClass("tabs")){var e=h(this).attr("href");return h(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),h(this).closest(".metaboxes-tab").find(".tabs-panel").hide(),h(e).show(),!1}t.preventDefault()})});var t=h("#_active_page_options-container").parent().html();function n(t,e,a,i){var s=!0;if("string"==typeof e){":radio"==e.substr(0,6)&&(e+=":checked");var n=h(e).val();if("checkbox"==h(e).attr("type"))n=h(e).is(":checked")?"yes":"no";a=a.split(",");for(var o=0;o<a.length;o++){if(n==a[o]){s=!0;break}s=!1}}var d,r=h(t),c=h(t+"-container").parent(),l=i.split("-");for(d in l){var p=l[d];if(s)switch(p){case"disable":c.removeClass("yith-disabled"),r.attr("disabled",!1);break;case"hideme":r.show();break;default:c.show(),c.fadeTo("slow",1).addClass("fade-in")}else switch(p){case"disable":c.addClass("yith-disabled"),r.attr("disabled",!0);break;case"hideme":r.hide();break;default:c.hasClass("fade-in")?c.fadeTo("slow",0,function(){h(this).hide().removeClass("fade-in")}):(c.hide(),c.css({opacity:"0"}))}}}h("#_active_page_options-container").parent().remove(),h(t).insertAfter("#yit-post-setting .handlediv"),h(t).insertAfter("#yit-page-setting .handlediv"),h("#_active_page_options-container").on("click",function(){h("#_active_page_options").is(":checked")?h("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):h("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click(),h(document.body).on("yith-plugin-fw-metabox-init-deps",function(){h(document.body).trigger("yith-plugin-fw-init-radio"),h(".metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)").each(function(){var t=h(this),e="#"+t.data("dep-target"),a="#"+t.data("dep-id"),i=t.data("dep-value"),s=t.data("dep-type");n(e,a,i.toString(),s),h(a).on("change",function(){n(e,a,i.toString(),s)}).change(),t.addClass("yith-plugin-fw-metabox-deps-initialized")})}).trigger("yith-plugin-fw-metabox-init-deps")}(jQuery);
1
+ !function(e){e(".metaboxes-tab").each(function(){e(".tabs-panel",this).hide();var t=wpCookies.get("active_metabox_tab");t=null==t?e("ul.metaboxes-tabs li:first-child a",this).attr("href"):"#"+t,e(t).show(),e(".metaboxes-tabs a",this).click(function(t){if(!e(this).parent().hasClass("tabs")){var a=e(this).attr("href");return e(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),e(this).closest(".metaboxes-tab").find(".tabs-panel").hide(),e(a).show(),!1}t.preventDefault()})});var t=e("#_active_page_options-container").parent().html();function a(t,a,i,s){var n=!0;if("string"==typeof a){":radio"==a.substr(0,6)&&(a+=":checked");var o=e(a).val();if("checkbox"==e(a).attr("type"))o=e(a).is(":checked")?"yes":"no";i=i.split(",");for(var d=0;d<i.length;d++){if(o==i[d]){n=!0;break}n=!1}}var r,c=e(t),h=e(t+"-container").parent(),b=s.split("-");for(r in b){var l=b[r];if(n)switch(l){case"disable":h.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hideme":c.show();break;case"fadeInOut":case"fadeIn":h.show(500);break;case"fadeOut":h.show();break;default:h.show(),h.fadeTo("slow",1).addClass("fade-in")}else switch(l){case"disable":h.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":h.hide(500);break;case"fadeIn":h.hide();break;default:h.hasClass("fade-in")?h.fadeTo("slow",0,function(){e(this).hide().removeClass("fade-in")}):(h.hide(),h.css({opacity:"0"}))}}}e("#_active_page_options-container").parent().remove(),e(t).insertAfter("#yit-post-setting .handlediv"),e(t).insertAfter("#yit-page-setting .handlediv"),e("#_active_page_options-container").on("click",function(){e("#_active_page_options").is(":checked")?e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click(),e(document.body).on("yith-plugin-fw-metabox-init-deps",function(){e(document.body).trigger("yith-plugin-fw-init-radio"),e(".metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)").each(function(){var t=e(this),i="#"+t.data("dep-target"),s="#"+t.data("dep-id"),n=t.data("dep-value"),o=t.data("dep-type");a(i,s,n.toString(),o),e(s).on("change",function(){a(i,s,n.toString(),o)}).change(),t.addClass("yith-plugin-fw-metabox-deps-initialized")})}).trigger("yith-plugin-fw-metabox-init-deps")}(jQuery);
plugin-fw/assets/js/multisite-updater.js CHANGED
@@ -10,7 +10,7 @@
10
 
11
  var plugins_menu_item = $( '#menu-plugins' ),
12
  update = plugins_menu_item.find( '.update-plugins' ),
13
- count = update.find( ".update-count" ).text(),
14
  registered = plugins.registered,
15
  activated = plugins.activated;
16
 
10
 
11
  var plugins_menu_item = $( '#menu-plugins' ),
12
  update = plugins_menu_item.find( '.update-plugins' ),
13
+ count = update.find( ".plugin-count" ).text(),
14
  registered = plugins.registered,
15
  activated = plugins.activated;
16
 
plugin-fw/assets/js/multisite-updater.min.js CHANGED
@@ -1,8 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,g,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var h=a[e];if(g.call(b,h,e,a))return{i:e,v:h}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,b){a!=Array.prototype&&a!=Object.prototype&&(a[g]=b.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,g,b,d){if(g){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:g})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
4
- (function(a){function g(a,b,d){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var c=0,g=0,f=0,e={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};c=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};numVersion=function(a){return a?isNaN(a)?e[a]||-7:parseInt(a,10):0};a=c(a);b=c(b);g=Math.max(a.length,b.length);for(c=0;c<g;c++)if(a[c]!=b[c])if(a[c]=numVersion(a[c]),b[c]=numVersion(b[c]),
5
- a[c]<b[c]){f=-1;break}else if(a[c]>b[c]){f=1;break}if(!d)return f;switch(d){case ">":case "gt":return 0<f;case ">=":case "ge":return 0<=f;case "<=":case "le":return 0>=f;case "==":case "=":case "eq":return 0===f;case "<>":case "!=":case "ne":return 0!==f;case "":case "<":case "lt":return 0>f;default:return null}}var b=a("#menu-plugins"),d=b.find(".update-plugins").find(".update-count").text(),e=plugins.registered,h=plugins.activated;if(0==d||""==d)d=0,b.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>');
6
- (function(b,d,e,c){for(var h in b){var f=b[h],k;for(k in f)if("slug"!=k&&!g(f[k].Version,f[k].Latest,"=")){e=parseInt(e)+1;a(".plugin-count").empty().html(e);var m=""+f[k].Name,n='*[data-slug="'+m.replace(/ /g,"-").trim().toLowerCase()+'"]';a(n).addClass("update");var l='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt">'+c.strings.new_version.replace("%plugin_name%",m)+'<a class="thickbox open-plugin-details-modal" href="'+
7
- c.details_url[h]+'">'+c.strings.latest.replace("%latest%",f[k].Latest)+"</a>";l="undefined"==typeof d[h]?l+" <em>"+c.strings.unavailable+"</em>"+c.strings.activate.replace("%activate_link%",c.licence_activation_url).replace("%plugin_name%",m):l+'. <a href="'+c.update_url[h]+'">'+c.strings.update_now+"</a>";g(f[k].Version,f[k].Latest,">")&&(l+=c.strings.version_issue.replace("%plugin_name%",m));l+="</div></td></tr>";a(l).insertAfter(n)}}})(e,h,d,plugins);a("body").on("click",".yit-changelog-button",
8
- function(){a("#TB_window").remove()})})(jQuery);
1
+ !function(e){var n=e("#menu-plugins"),a=n.find(".update-plugins").find(".plugin-count").text(),t=plugins.registered,s=plugins.activated;if(0==a||""==a){a=0,n.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>')}function i(e,n,a){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var t,s=0,i=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},l=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]};for(numVersion=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0},e=l(e),n=l(n),t=Math.max(e.length,n.length),s=0;s<t;s++)if(e[s]!=n[s]){if(e[s]=numVersion(e[s]),n[s]=numVersion(n[s]),e[s]<n[s]){i=-1;break}if(e[s]>n[s]){i=1;break}}if(!a)return i;switch(a){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"==":case"=":case"eq":return 0===i;case"<>":case"!=":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}!function(n,a,t,s){for(var r in n){var l=n[r];for(var p in l)if("slug"!=p&&!i(l[p].Version,l[p].Latest,"=")){t=parseInt(t)+1,e(".plugin-count").empty().html(t);var u=new RegExp(" ","g"),c=l[p],g=""+c.Name,o=g.replace(u,"-").trim(),d='*[data-slug="'+o.toLowerCase()+'"]';e(d).addClass("update");var f='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt">'+s.strings.new_version.replace("%plugin_name%",g)+'<a class="thickbox open-plugin-details-modal" href="'+s.details_url[r]+'">'+s.strings.latest.replace("%latest%",l[p].Latest)+"</a>";f="undefined"==typeof a[r]?f+" <em>"+s.strings.unavailable+"</em>"+s.strings.activate.replace("%activate_link%",s.licence_activation_url).replace("%plugin_name%",g):f+'. <a href="'+s.update_url[r]+'">'+s.strings.update_now+"</a>",i(l[p].Version,l[p].Latest,">")&&(f+=s.strings.version_issue.replace("%plugin_name%",g)),e(f+="</div></td></tr>").insertAfter(d)}}}(t,s,a,plugins),e("body").on("click",".yit-changelog-button",function(){e("#TB_window").remove()})}(jQuery);
 
 
 
 
 
 
 
plugin-fw/assets/js/wp-pages.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(a){var b=a(".yith-plugin-fw-wp-page-wrapper"),c=a("div.updated, div.error, div.notice");a(".yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");c.addClass("inline");b.length&&b.prepend(c)});
1
+ jQuery(function(a){var p=a(".yith-plugin-fw-wp-page-wrapper"),e=a("div.updated, div.error, div.notice");a(".yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper"),e.addClass("inline"),p.length&&p.prepend(e)});
plugin-fw/assets/js/yit-cpt-unlimited.min.js CHANGED
@@ -1,2 +1 @@
1
- (function(c){c(".wrap h1, .wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a=c(this),d=!1;a.next("span.spinner").css("display","inline-block");if(!b){var b=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),button:{text:a.data("uploader_button_text")},library:{type:"image"},multiple:!0});b.on("select",function(){var e=[];b.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});console.log(a.data("nonce"));c.post(ajaxurl,
2
- {images:e,post_type:typenow,action:"yit_cptu_multiuploader",_ajax_nonce:a.data("nonce")},function(a){location.reload()});a.next("span.spinner").css("display","inline-block");d=!0});b.on("close",function(){d||a.next("span.spinner").hide()})}b.open()})})(jQuery);
1
+ !function(t){"use strict";t(".wrap h1, .wrap h2").on("click","a.multi-uploader",function(e){e.preventDefault();var n,a=t(this),i=!1;a.next("span.spinner").css("display","inline-block"),n?n.open():((n=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),button:{text:a.data("uploader_button_text")},library:{type:"image"},multiple:!0})).on("select",function(){var e=[];n.state().get("selection").map(function(t){t=t.toJSON(),e.push({id:t.id,url:t.url,title:t.title})}),console.log(a.data("nonce")),t.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader",_ajax_nonce:a.data("nonce")},function(t){location.reload()}),a.next("span.spinner").css("display","inline-block"),i=!0}),n.on("close",function(){i||a.next("span.spinner").hide()}),n.open())})}(jQuery);
 
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -28,7 +28,7 @@ jQuery( function ( $ ) {
28
  function dependencies_handler( id, deps, values, type ) {
29
  var result = true;
30
  //Single dependency
31
- if ( typeof( deps ) == 'string' ) {
32
  if ( deps.substr( 0, 6 ) == ':radio' ) {
33
  deps = deps + ':checked';
34
  }
@@ -39,8 +39,7 @@ jQuery( function ( $ ) {
39
  var thisCheck = $( deps );
40
  if ( thisCheck.is( ':checked' ) ) {
41
  val = 'yes';
42
- }
43
- else {
44
  val = 'no';
45
  }
46
  }
@@ -50,8 +49,7 @@ jQuery( function ( $ ) {
50
  for ( var i = 0; i < values.length; i++ ) {
51
  if ( val != values[ i ] ) {
52
  result = false;
53
- }
54
- else {
55
  result = true;
56
  break;
57
  }
@@ -69,7 +67,7 @@ jQuery( function ( $ ) {
69
  var types = type.split( '-' ), j;
70
  for ( j in types ) {
71
  var current_type = types[ j ];
72
-
73
  if ( !result ) {
74
  switch ( current_type ) {
75
  case 'disable':
@@ -79,14 +77,21 @@ jQuery( function ( $ ) {
79
  case 'hideme':
80
  $current_field.hide();
81
  break;
 
 
 
 
 
 
 
82
  default:
83
- if( ! $current_container.hasClass('fade-in')){
84
  $current_container.hide();
85
- $current_container.css({'opacity':'0'});
86
- }else{
87
- $current_container.fadeTo("slow" , 0, function(){
88
- $(this).hide().removeClass('fade-in');
89
- });
90
  }
91
 
92
  }
@@ -100,9 +105,16 @@ jQuery( function ( $ ) {
100
  case 'hideme':
101
  $current_field.show();
102
  break;
 
 
 
 
 
 
 
103
  default:
104
  $current_container.show();
105
- $current_container.fadeTo("slow" , 1).addClass('fade-in');
106
  }
107
  }
108
  }
@@ -127,7 +139,7 @@ jQuery( function ( $ ) {
127
  value[ $( this ).data( 'list' ) ] = options;
128
  } );
129
 
130
- input.val( (JSON.stringify( value )).replace( /[\\"']/g, '\\$&' ).replace( /\u0000/g, '\\0' ) );
131
  }
132
  } ).disableSelection();
133
  } );
@@ -157,4 +169,13 @@ jQuery( function ( $ ) {
157
  // prevents the WC message for changes when leaving the panel page
158
  $( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
159
 
 
 
 
 
 
 
 
 
 
160
  } );
28
  function dependencies_handler( id, deps, values, type ) {
29
  var result = true;
30
  //Single dependency
31
+ if ( typeof ( deps ) == 'string' ) {
32
  if ( deps.substr( 0, 6 ) == ':radio' ) {
33
  deps = deps + ':checked';
34
  }
39
  var thisCheck = $( deps );
40
  if ( thisCheck.is( ':checked' ) ) {
41
  val = 'yes';
42
+ } else {
 
43
  val = 'no';
44
  }
45
  }
49
  for ( var i = 0; i < values.length; i++ ) {
50
  if ( val != values[ i ] ) {
51
  result = false;
52
+ } else {
 
53
  result = true;
54
  break;
55
  }
67
  var types = type.split( '-' ), j;
68
  for ( j in types ) {
69
  var current_type = types[ j ];
70
+
71
  if ( !result ) {
72
  switch ( current_type ) {
73
  case 'disable':
77
  case 'hideme':
78
  $current_field.hide();
79
  break;
80
+ case 'fadeInOut':
81
+ case 'fadeOut':
82
+ $current_container.hide( 500 );
83
+ break;
84
+ case 'fadeIn':
85
+ $current_container.hide();
86
+ break;
87
  default:
88
+ if ( !$current_container.hasClass( 'fade-in' ) ) {
89
  $current_container.hide();
90
+ $current_container.css( { 'opacity': '0' } );
91
+ } else {
92
+ $current_container.fadeTo( "slow", 0, function () {
93
+ $( this ).hide().removeClass( 'fade-in' );
94
+ } );
95
  }
96
 
97
  }
105
  case 'hideme':
106
  $current_field.show();
107
  break;
108
+ case 'fadeInOut':
109
+ case 'fadeIn':
110
+ $current_container.show( 500 );
111
+ break;
112
+ case 'fadeOut':
113
+ $current_container.show();
114
+ break;
115
  default:
116
  $current_container.show();
117
+ $current_container.fadeTo( "slow", 1 ).addClass( 'fade-in' );
118
  }
119
  }
120
  }
139
  value[ $( this ).data( 'list' ) ] = options;
140
  } );
141
 
142
+ input.val( ( JSON.stringify( value ) ).replace( /[\\"']/g, '\\$&' ).replace( /\u0000/g, '\\0' ) );
143
  }
144
  } ).disableSelection();
145
  } );
169
  // prevents the WC message for changes when leaving the panel page
170
  $( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
171
 
172
+ var wrap = $( '.wrap.yith-plugin-ui' ).first(),
173
+ notices = $( 'div.updated, div.error, div.notice' );
174
+
175
+ // prevent moving notices into the wrapper
176
+ notices.addClass( 'inline' );
177
+ if ( wrap.length ) {
178
+ wrap.prepend( notices );
179
+ }
180
+
181
  } );
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(f){function s(a,e,t,i){var n=!0;if("string"==typeof e){":radio"==e.substr(0,6)&&(e+=":checked");var s=f(e).val();if("checkbox"==f(e).attr("type"))s=f(e).is(":checked")?"yes":"no";t=t.split(",");for(var r=0;r<t.length;r++){if(s==t[r]){n=!0;break}n=!1}}var o=f(a),d=f(a+"-container").closest("tr");d.length<1&&(d=o.closest(".yith-plugin-fw-panel-wc-row"));var c,l=i.split("-");for(c in l){var h=l[c];if(n)switch(h){case"disable":d.removeClass("yith-disabled"),o.attr("disabled",!1);break;case"hideme":o.show();break;default:d.show(),d.fadeTo("slow",1).addClass("fade-in")}else switch(h){case"disable":d.addClass("yith-disabled"),o.attr("disabled",!0);break;case"hideme":o.hide();break;default:d.hasClass("fade-in")?d.fadeTo("slow",0,function(){f(this).hide().removeClass("fade-in")}):(d.hide(),d.css({opacity:"0"}))}}}f("[data-dep-target]").each(function(){var a=f(this),e="#"+a.data("dep-target"),t="#"+a.data("dep-id"),i=a.data("dep-value"),n=a.data("dep-type");s(e,t,i.toString(),n),f(t).on("change",function(){s(e,t,i.toString(),n)}).change()}),f(".rm_connectedlist").each(function(){var i=f(this).find("ul"),n=f(this).find(":hidden");i.sortable({connectWith:i,update:function(a,e){var t={};i.each(function(){var a={};f(this).children().each(function(){a[f(this).data("option")]=f(this).text()}),t[f(this).data("list")]=a}),n.val(JSON.stringify(t).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),f(document).ready(function(){f(".google-analytic-generate").click(function(){var a=f("#"+f(this).data("textarea")).data("codemirrorInstance"),e="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";e+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",e+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",e+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",e+="ga('create', '"+f("#"+f(this).data("input")).val()+"', '"+f(this).data("basename")+"');\n",e+="ga('send', 'pageview');\n",a.replaceRange(e,a.getCursor("start"),a.getCursor("end"))})}),f(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper")});
1
+ jQuery(function(a){function e(e,t,i,n){var s=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var r=a(t).val();if("checkbox"==a(t).attr("type"))r=a(t).is(":checked")?"yes":"no";i=i.split(",");for(var d=0;d<i.length;d++){if(r==i[d]){s=!0;break}s=!1}}var c=a(e),o=a(e+"-container").closest("tr");o.length<1&&(o=c.closest(".yith-plugin-fw-panel-wc-row"));var l,h=n.split("-");for(l in h){var f=h[l];if(s)switch(f){case"disable":o.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hideme":c.show();break;case"fadeInOut":case"fadeIn":o.show(500);break;case"fadeOut":o.show();break;default:o.show(),o.fadeTo("slow",1).addClass("fade-in")}else switch(f){case"disable":o.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":o.hide(500);break;case"fadeIn":o.hide();break;default:o.hasClass("fade-in")?o.fadeTo("slow",0,function(){a(this).hide().removeClass("fade-in")}):(o.hide(),o.css({opacity:"0"}))}}}a("[data-dep-target]").each(function(){var t=a(this),i="#"+t.data("dep-target"),n="#"+t.data("dep-id"),s=t.data("dep-value"),r=t.data("dep-type");e(i,n,s.toString(),r),a(n).on("change",function(){e(i,n,s.toString(),r)}).change()}),a(".rm_connectedlist").each(function(){var e=a(this).find("ul"),t=a(this).find(":hidden");e.sortable({connectWith:e,update:function(i,n){var s={};e.each(function(){var e={};a(this).children().each(function(){e[a(this).data("option")]=a(this).text()}),s[a(this).data("list")]=e}),t.val(JSON.stringify(s).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),a(document).ready(function(){a(".google-analytic-generate").click(function(){var e=a("#"+a(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+a("#"+a(this).data("input")).val()+"', '"+a(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",e.replaceRange(t,e.getCursor("start"),e.getCursor("end"))})}),a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=a(".wrap.yith-plugin-ui").first(),i=a("div.updated, div.error, div.notice");i.addClass("inline"),t.length&&t.prepend(i)});
plugin-fw/assets/js/yit-wp-pointer.min.js CHANGED
@@ -1,6 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,c,b,d){if(c){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
4
- jQuery(document).ready(function(a){var c=custom_pointer.pointers[0],b=c.options,d=a(c.target),e=c.pointer_id;a(d).find(".wp-submenu li a").each(function(){var f=a(this),h=f.attr("href");h=h.replace("admin.php?page=","");if(h==e){var k=f.add(d),g=d.find(c.target.replace("#","."));d.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu");f.pointer({pointerClass:"yit-wp-pointer",content:b.content,position:b.position,open:function(){k.toggleClass("yit-pointer-selected-row");g.addClass("yit-pointer")},
5
- close:function(){d.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu");k.toggleClass("yit-pointer-selected-row");g.removeClass("yit-pointer");a.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:e},success:function(a){}})}}).pointer("open")}else if("yith_default_pointer"==e){k=f.add(d);g=d.find(c.target.replace("#","."));var l=a(c.target);l.addClass("wp-has-current-submenu");g.pointer({pointerClass:"yit-wp-pointer",content:b.content,position:b.position,open:function(){l.addClass("yit-pointer-selected-row")},
6
- close:function(){l.removeClass("yit-pointer-selected-row wp-has-current-submenu");a.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:e},success:function(a){}})}}).pointer("open")}})});
1
+ jQuery(document).ready(function(e){var t=custom_pointer.pointers[0],n=t.options,o=e(t.target),i=t.pointer_id;e(o).find(".wp-submenu li a").each(function(){var s=e(this),r=s.attr("href");if((r=r.replace("admin.php?page=",""))==i){var p=s.add(o),a=o.find(t.target.replace("#","."));o.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu"),s.pointer({pointerClass:"yit-wp-pointer",content:n.content,position:n.position,open:function(){p.toggleClass("yit-pointer-selected-row"),a.addClass("yit-pointer")},close:function(){o.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu"),p.toggleClass("yit-pointer-selected-row"),a.removeClass("yit-pointer"),e.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:i},success:function(e){}})}}).pointer("open")}else if("yith_default_pointer"==i){p=s.add(o),a=o.find(t.target.replace("#","."));var u=e(t.target);u.addClass("wp-has-current-submenu"),a.pointer({pointerClass:"yit-wp-pointer",content:n.content,position:n.position,open:function(){u.addClass("yit-pointer-selected-row")},close:function(){u.removeClass("yit-pointer-selected-row wp-has-current-submenu"),e.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:i},success:function(e){}})}}).pointer("open")}})});
 
 
 
 
 
plugin-fw/assets/js/yith-dashboard.min.js CHANGED
@@ -1,2 +1 @@
1
- (function(a){a(".yith-last-changelog").click(function(b){b.preventDefault();b=a(this).data("changelogid");var c=a("#"+b);b=a(this).data("plugininfo");var d={};d[yith_dashboard.buttons.close]=function(){a(this).dialog("close")};c.dialog({title:b,dialogClass:"wp-dialog",autoOpen:!1,draggable:!1,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},buttons:d,show:{effect:"blind",duration:1E3},open:function(){a(".ui-widget-overlay").bind("click",function(){c.dialog("close")})},
2
- create:function(){a(".ui-dialog-titlebar-close").addClass("ui-button")}});c.dialog("open")})})(jQuery);
1
+ !function(i){i(".yith-last-changelog").click(function(o){o.preventDefault();var t=i(this).data("changelogid"),a=i("#"+t),e=i(this).data("plugininfo"),n={};n[yith_dashboard.buttons.close]=function(){i(this).dialog("close")},a.dialog({title:e,dialogClass:"wp-dialog",autoOpen:!1,draggable:!1,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},buttons:n,show:{effect:"blind",duration:1e3},open:function(){i(".ui-widget-overlay").bind("click",function(){a.dialog("close")})},create:function(){i(".ui-dialog-titlebar-close").addClass("ui-button")}}),a.dialog("open")})}(jQuery);
 
plugin-fw/assets/js/yith-enhanced-select-wc-2.6.min.js CHANGED
@@ -1,5 +1 @@
1
- jQuery(document).ready(function(b){b(document.body).on("yith-framework-enhanced-select-init",function(){b(":input.yith-post-search").filter(":not(.enhanced)").each(function(){var d=b.extend({action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},b(this).data()),c={allowClear:b(this).data("allow_clear")?!0:!1,placeholder:b(this).data("placeholder"),minimumInputLength:b(this).data("minimum_input_length")?b(this).data("minimum_input_length"):
2
- "3",escapeMarkup:function(a){return a},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(a){d.term=a;return d},results:function(a){var c=[];a&&b.each(a,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};!0===b(this).data("multiple")?(c.multiple=!0,c.initSelection=function(a,c){var f=b.parseJSON(a.attr("data-selected")),e=[];b(a.val().split(",")).each(function(a,b){e.push({id:b,text:f[b]})});return c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+
3
- a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){a={id:a.val(),text:a.attr("data-selected")};return b(a)});b(this).select2(c).addClass("enhanced")});b(":input.yith-term-search").filter(":not(.enhanced)").each(function(){var d=b.extend({action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},b(this).data()),c={allowClear:b(this).data("allow_clear")?!0:!1,placeholder:b(this).data("placeholder"),minimumInputLength:b(this).data("minimum_input_length")?
4
- b(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(a){d.term=a;return d},results:function(a){var c=[];a&&b.each(a,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};!0===b(this).data("multiple")?(c.multiple=!0,c.initSelection=function(a,c){var d=b.parseJSON(a.attr("data-selected")),e=[];b(a.val().split(",")).each(function(a,b){e.push({id:b,text:d[b]})});
5
- return c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,b){a={id:a.val(),text:a.attr("data-selected")};return b(a)});b(this).select2(c).addClass("enhanced")})}).trigger("yith-framework-enhanced-select-init")});
1
+ jQuery(document).ready(function(t){"use strict";t(document.body).on("yith-framework-enhanced-select-init",function(){t(":input.yith-post-search").filter(":not(.enhanced)").each(function(){var e={action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a=t.extend(e,t(this).data()),n={allowClear:!!t(this).data("allow_clear"),placeholder:t(this).data("placeholder"),minimumInputLength:t(this).data("minimum_input_length")?t(this).data("minimum_input_length"):"3",escapeMarkup:function(t){return t},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(t){return a.term=t,a},results:function(e){var a=[];return e&&t.each(e,function(t,e){a.push({id:t,text:e})}),{results:a}},cache:!0}};!0===t(this).data("multiple")?(n.multiple=!0,n.initSelection=function(e,a){var n=t.parseJSON(e.attr("data-selected")),i=[];return t(e.val().split(",")).each(function(t,e){i.push({id:e,text:n[e]})}),a(i)},n.formatSelection=function(t){return'<div class="selected-option" data-id="'+t.id+'">'+t.text+"</div>"}):(n.multiple=!1,n.initSelection=function(t,e){return e({id:t.val(),text:t.attr("data-selected")})}),t(this).select2(n).addClass("enhanced")}),t(":input.yith-term-search").filter(":not(.enhanced)").each(function(){var e={action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a=t.extend(e,t(this).data()),n={allowClear:!!t(this).data("allow_clear"),placeholder:t(this).data("placeholder"),minimumInputLength:t(this).data("minimum_input_length")?t(this).data("minimum_input_length"):"3",escapeMarkup:function(t){return t},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(t){return a.term=t,a},results:function(e){var a=[];return e&&t.each(e,function(t,e){a.push({id:t,text:e})}),{results:a}},cache:!0}};!0===t(this).data("multiple")?(n.multiple=!0,n.initSelection=function(e,a){var n=t.parseJSON(e.attr("data-selected")),i=[];return t(e.val().split(",")).each(function(t,e){i.push({id:e,text:n[e]})}),a(i)},n.formatSelection=function(t){return'<div class="selected-option" data-id="'+t.id+'">'+t.text+"</div>"}):(n.multiple=!1,n.initSelection=function(t,e){return e({id:t.val(),text:t.attr("data-selected")})}),t(this).select2(n).addClass("enhanced")})}).trigger("yith-framework-enhanced-select-init")});
 
 
 
 
plugin-fw/assets/js/yith-enhanced-select.min.js CHANGED
@@ -1,10 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var b=a[e];if(f.call(c,b,e,a))return{i:e,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,c){a!=Array.prototype&&a!=Object.prototype&&(a[f]=c.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,c,d){if(f){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];f=f(d);f!=d&&null!=f&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:f})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
4
- jQuery(document).ready(function(a){a(document.body).on("yith-framework-enhanced-select-init",function(){a(".yith-post-search").filter(":not(.enhanced)").each(function(){var f=a.extend({action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):
5
- "3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},f)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(c).addClass("enhanced");if(a(this).data("sortable")){var d=a(this),e=a(this).next(".select2-container").find("ul.select2-selection__rendered");e.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,
6
- items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(e.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id;b=d.find('option[value="'+b+'"]')[0];d.prepend(b)})}})}});a(".yith-customer-search").filter(":not(.enhanced)").each(function(){var f=a.extend({action:"woocommerce_json_search_customers",security:yith_framework_enhanced_select_params.search_customers_nonce},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),
7
- minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},f)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(c).addClass("enhanced");if(a(this).data("sortable")){var d=a(this),e=a(this).next(".select2-container").find("ul.select2-selection__rendered");
8
- e.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(e.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id;b=d.find('option[value="'+b+'"]')[0];d.prepend(b)})}})}});a(".yith-term-search").filter(":not(.enhanced)").each(function(){var f=a.extend({action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,
9
- taxonomy:"category"},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},f)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(c).addClass("enhanced");
10
- if(a(this).data("sortable")){var d=a(this),e=a(this).next(".select2-container").find("ul.select2-selection__rendered");e.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(e.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id;b=d.find('option[value="'+b+'"]')[0];d.prepend(b)})}})}})}).trigger("yith-framework-enhanced-select-init")});
1
+ jQuery(document).ready(function(e){"use strict";e(document.body).on("yith-framework-enhanced-select-init",function(){e(".yith-post-search").filter(":not(.enhanced)").each(function(){var t={action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a=e.extend(t,e(this).data()),n={allowClear:!!e(this).data("allow_clear"),placeholder:e(this).data("placeholder"),minimumInputLength:e(this).data("minimum_input_length")?e(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(t){var n={term:t.term};return e.extend(n,a)},processResults:function(t){var a=[];return t&&e.each(t,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(e(this).select2(n).addClass("enhanced"),e(this).data("sortable")){var i=e(this),c=e(this).next(".select2-container").find("ul.select2-selection__rendered");c.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){e(c.find(".select2-selection__choice").get().reverse()).each(function(){var t=e(this).data("data").id,a=i.find('option[value="'+t+'"]')[0];i.prepend(a)})}})}}),e(".yith-customer-search").filter(":not(.enhanced)").each(function(){var t={action:"woocommerce_json_search_customers",security:yith_framework_enhanced_select_params.search_customers_nonce},a=e.extend(t,e(this).data()),n={allowClear:!!e(this).data("allow_clear"),placeholder:e(this).data("placeholder"),minimumInputLength:e(this).data("minimum_input_length")?e(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(t){var n={term:t.term};return e.extend(n,a)},processResults:function(t){var a=[];return t&&e.each(t,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(e(this).select2(n).addClass("enhanced"),e(this).data("sortable")){var i=e(this),c=e(this).next(".select2-container").find("ul.select2-selection__rendered");c.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){e(c.find(".select2-selection__choice").get().reverse()).each(function(){var t=e(this).data("data").id,a=i.find('option[value="'+t+'"]')[0];i.prepend(a)})}})}}),e(".yith-term-search").filter(":not(.enhanced)").each(function(){var t={action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a=e.extend(t,e(this).data()),n={allowClear:!!e(this).data("allow_clear"),placeholder:e(this).data("placeholder"),minimumInputLength:e(this).data("minimum_input_length")?e(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(t){var n={term:t.term};return e.extend(n,a)},processResults:function(t){var a=[];return t&&e.each(t,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(e(this).select2(n).addClass("enhanced"),e(this).data("sortable")){var i=e(this),c=e(this).next(".select2-container").find("ul.select2-selection__rendered");c.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){e(c.find(".select2-selection__choice").get().reverse()).each(function(){var t=e(this).data("data").id,a=i.find('option[value="'+t+'"]')[0];i.prepend(a)})}})}})}).trigger("yith-framework-enhanced-select-init")});
 
 
 
 
 
 
 
 
 
plugin-fw/assets/js/yith-fields.min.js CHANGED
@@ -1,30 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var g=a[e];if(b.call(c,g,e,a))return{i:e,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
4
- (function(a){a(document).on("yith_fields_init",function(){var b=a(".yith-plugin-fw-datepicker"),c=a(".yith-plugin-fw-colorpicker"),d=a(".yith-plugin-fw-upload-img-url"),e=a(".add_media"),g=a(".yith-plugin-fw .image-gallery ul.slides-wrapper"),h=a(".yith-plugin-fw-sidebar-layout"),k=a(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),l=a(".codemirror"),m=a(".yit-icons-manager-wrapper");a(".yith-plugin-ui td.forminp-checkbox");b.each(function(){var b=a(this).data();b.showAnim=
5
- !1;b.beforeShow=function(a,b){b.dpDiv.addClass("yith-plugin-fw-datepicker-div")};b.onClose=function(a,b){b.dpDiv.removeClass("yith-plugin-fw-datepicker-div")};a(this).datepicker(b)});c.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var b=a(this);b.val(b.data("default-color"));b.change()}});c.each(function(){var b=a(this).data("variations-label"),f=a(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),c=a(this).closest(".yith-single-colorpicker"),d=f.find(".wp-picker-input-wrap"),
6
- e=c.find(".wp-picker-input-wrap");d.length&&f.find("a.wp-color-result").attr("title",b);c.length&&c.find("a.wp-color-result").attr("title",b);d.find(".wp-picker-clear-custom").length||(b=a("<span/>").attr({class:"wp-picker-default-custom"}),d.find(".wp-picker-default").wrap(b));e.find(".wp-picker-clear-custom").length||(b=a("<span/>").attr({class:"wp-picker-default-custom"}),e.find(".wp-picker-default").wrap(b))});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(d.change(function(){var b=
7
- a(this).val(),f=a(this).parent().find(".yith-plugin-fw-upload-img-preview").first();1>f.length&&(f=a(this).parent().parent().find(".yith-plugin-fw-upload-img-preview").first());/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)/.test(b)?f.html('<img src="'+b+'" style="max-width:100px; max-height:100px;" />'):f.html("")}).trigger("change"),a(document).on("click",".yith-plugin-fw-upload-button",function(b){b.preventDefault();var f=a(this).attr("id").replace(/-button$/,"");if(!c){b=
8
- [new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];var c=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:b});c.on("select",function(){var b=c.state().get("selection").first().toJSON();a("#"+f).val(b.url);a("#"+f+"-yith-attachment-id")&&a("#"+f+"-yith-attachment-id").val(b.id);d.trigger("change")})}c.open()}),a(document).on("click",".yith-plugin-fw-upload-button-reset",
9
- function(b){var f=a(this);b=f.attr("id");f=f.attr("id").replace(/-button-reset$/,"");b=a("#"+b).data("default");a("#"+f).val(b);d.trigger("change")}));e.on("click",function(){});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(a(document).on("click",".yith-plugin-fw .image-gallery-button",function(b){var f=a(this);b=f.closest(".image-gallery");var c=b.find(".image_gallery_ids"),d=c.val(),e=b.find("ul.slides-wrapper"),n=wp.media.frames.image_gallery=wp.media({title:f.data("choose"),button:{text:f.data("update")},
10
- states:[new wp.media.controller.Library({title:f.data("choose"),filterable:"all",multiple:!0})]});n.on("select",function(){n.state().get("selection").map(function(a){a=a.toJSON();a.id&&(d=d?d+","+a.id:a.id,e.append('<li class="image" data-attachment_id="'+a.id+'"><img src="'+a.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+f.data("delete")+'">x</a></li></ul></li>'))});c.val(d)});n.open()}),g.each(function(){var b=a(this);b.sortable({items:"li.image",cursor:"move",
11
- scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(c,d){var f="";b.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");f=f+b+","});b.closest(".image-gallery").find(".image_gallery_ids").val(f)}})}),g.on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper");
12
- b=b.find(".image_gallery_ids");var d="";a(this).closest("li.image").remove();c.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");d=d+b+","});b.val(d)}));h.each(function(){a(this).find("img").on("click",function(){var b=a(this).closest(".yith-plugin-fw-sidebar-layout"),c=b.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container");b=b.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container");var d=a(this).data("type");a(this).parent().children(":radio").attr("checked",
13
- !1);a(this).prev(":radio").attr("checked",!0);if("undefined"!=typeof d)switch(d){case "left":c.show();b.hide();break;case "right":b.show();c.hide();break;case "double":c.show();b.show();break;default:c.hide(),b.hide()}})});k.each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),g=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,create:function(){a(this).find(".ui-slider-handle").text(a(this).slider("value"))},slide:function(b,
14
- c){a(this).find("input").val(c.value);a(this).find(".ui-slider-handle").text(c.value);a(this).siblings(".feedback").find("strong").text(c.value+g)}})});l.each(function(b,c){b=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",b)});a(document).on("click",".yith-plugin-fw-select-all",function(){a("#"+a(this).data("select-id")).find("option").prop("selected",!0).trigger("change")});a(document).on("click",".yith-plugin-fw-deselect-all",
15
- function(){a("#"+a(this).data("select-id")).find("option").prop("selected",!1).trigger("change")});m.each(function(){var b=a(this),c=b.find(".yit-icons-manager-icon-preview").first(),d=b.find(".yit-icons-manager-icon-text");b.on("click",".yit-icons-manager-list li",function(e){e=a(e.target).closest("li");var f=e.data("font"),g=e.data("icon"),h=e.data("key"),k=e.data("name");c.attr("data-font",f);c.attr("data-icon",g);c.attr("data-key",h);c.attr("data-name",k);d.val(f+":"+k);b.find(".yit-icons-manager-list li").removeClass("active");
16
- e.addClass("active")});b.on("click",".yit-icons-manager-action-set-default",function(){b.find(".yit-icons-manager-list li.default").trigger("click")})});a(document).on("click",".yith-plugin-fw-select-images__item",function(){var b=a(this),c=b.data("key"),d=b.closest(".yith-plugin-fw-select-images__wrapper"),e=d.find(".yith-plugin-fw-select-images__item");d=d.find("select").first();d.length&&(d.val(c),e.removeClass("yith-plugin-fw-select-images__item--selected"),b.addClass("yith-plugin-fw-select-images__item--selected"))});
17
- a(document.body).trigger("wc-enhanced-select-init");a(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(b,c){b=jQuery(".ui-sortable-handle");var d=[];for(c=0;c<b.length;c++)d[c]=a(b[c]).data("item_key");0<d.length&&a(this).closest(".toggle-element").saveToggleElement(null,d)}});a(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init");a(document).on("click",
18
- ".yith-plugin-fw-onoff-container span",function(){var b=a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()});a.fn.saveToggleElement=function(b,c){var d=a(this),e="yith_plugin_fw_save_toggle_element",g=d.serializeToggleElement(),h=d.find(".yith-toggle_wrapper"),k=h.attr("id"),l=a.urlParam("tab");g.append("security",h.data("nonce"));"undefined"!=typeof c&&0<c.length&&
19
- g.append("yith_toggle_elements_order_keys",c);d.closest(".metaboxes-tab.yith-plugin-ui").length?(e="yith_plugin_fw_save_toggle_element_metabox",post_id=a(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=a(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=a(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+e+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+k+"&metabox_tab="+metabox_tab):
20
- url=yith_framework_fw_fields.admin_url+"?action="+e+"&tab="+l+"&toggle_id="+k;a.ajax({type:"POST",url:url,data:g,contentType:!1,processData:!1,success:function(c){b&&b.removeClass("show");a(document).trigger("yith_save_toggle_element_done",[c,d])}})};a.fn.serializeToggleElement=function(){var b=a(this),c=new FormData;b=a(b).find(":input").serializeArray();a.each(b,function(a,b){el_name=b.name;c.append(b.name,b.value)});return c};a.fn.formatToggleTitle=function(){var b=a(this),c=b.find(":input"),d=
21
- b.find("span.title").data("title_format"),e=b.find(".subtitle").data("subtitle_format"),g=/[^%%]+(?=[%%])/g;if("undefined"!=typeof d)var h=d.match(g);if("undefined"!=typeof e)var k=e.match(g);a.each(c,function(b,c){"undefined"!=typeof a(c).attr("id")&&($field_id=a(c).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=a(c).val(),null!=h&&"undefined"!=typeof h&&-1!==h.indexOf($field_id)&&(d=d.replace("%%"+$field_id+"%%",$field_val)),null!=k&&
22
- "undefined"!=typeof k&&-1!==k.indexOf($field_id)&&(e=e.replace("%%"+$field_id+"%%",$field_val)))});""!==d&&b.find("span.title").html(d);""!==e&&b.find(".subtitle").html(e);a(document).trigger("yith-toggle-element-item-title",[b])};a.urlParam=function(a){a=(new RegExp("[?&]"+a+"=([^&#]*)")).exec(window.location.search);return null!==a?a[1]||0:!1};a(document).on("click",".yith-toggle-title",function(b){b=a(b.target);var c=b.closest(".yith-toggle-row"),d=c.find(".yith-toggle-content");if(b.hasClass("yith-plugin-fw-onoff")||
23
- b.hasClass("yith-icon-drag"))return!1;c.is(".yith-toggle-row-opened")?d.slideUp(400):d.slideDown(400);c.toggleClass("yith-toggle-row-opened")});a(document).on("click",".yith-add-box-button",function(b){b.preventDefault();b=a(this);var c=b.data("box_id"),d=b.data("closed_label"),e=b.data("opened_label"),g=b.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+g);""!==c&&(a("#"+c).html(template({index:"box_id"})).slideToggle(),""!==d&&(b.html()===d?
24
- b.html(e).removeClass("closed"):b.html(d).addClass("closed")),a(document).trigger("yith_fields_init"),a(document).trigger("yith-add-box-button-toggle",[b]))});a(document).on("click",".yith-add-box-buttons .yith-save-button",function(b){b.preventDefault();var c=a(this).parents(".yith-add-box"),d=a(this).closest(".yith-toggle_wrapper").attr("id");b=c.find(".spinner");var e=a(this).parents(".toggle-element"),g=c.find(":input"),h=e.find(".yith-toggle-row").length,k=a('<input type="hidden">');k.val(h);
25
- a(document).trigger("yith-toggle-change-counter",[k,c]);h=k.val();d=wp.template("yith-toggle-element-item-"+d);var l=a(d({index:h}));b.addClass("show");a.each(g,function(b,c){"undefined"!=typeof a(c).attr("id")&&($field_id=a(c).attr("id"),$field_val=a(c).val(),"radio"==a(c).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+h,a(c).is(":checked")&&a(l).find("#"+
26
- $field_id).prop("checked",!0),(a(c).hasClass("yith-post-search")||a(c).hasClass("yith-term-search"))&&a(l).find("#"+$field_id).html(a("#"+a(c).attr("id")).html()),a(l).find("#"+$field_id).val($field_val))});a(l).formatToggleTitle();var m=a('<input type="hidden">').val("yes");a(document).trigger("yith-toggle-element-item-before-add",[c,l,m]);setTimeout(function(){"yes"===m.val()&&(a(e).find(".yith-toggle-elements").append(l),a(c).find(".yith-plugin-fw-datepicker").datepicker("destroy"),a(c).html(""),
27
- a(c).prev(".yith-add-box-button").trigger("click"),e.saveToggleElement(),setTimeout(function(){a(e).find(".highlight").removeClass("highlight")},2E3),a(document).trigger("yith_fields_init"))},1E3)});a(document).on("click",".yith-toggle-row .yith-save-button",function(b){b.preventDefault();b=a(this).closest(".toggle-element");var c=a(this).closest(".yith-toggle-row"),d=c.find(".spinner");c.formatToggleTitle();var e=a('<input type="hidden">').val("yes");a(document).trigger("yith-toggle-element-item-before-update",
28
- [b,c,e]);"yes"===e.val()&&(d.addClass("show"),b.saveToggleElement(d))});a(document).on("click",".yith-toggle-row .yith-delete-button",function(b){b.preventDefault();b=a(this).closest(".toggle-element");a(this).closest(".yith-toggle-row").remove();b.saveToggleElement()});a(document).on("click",".yith-toggle-onoff",function(b){b.preventDefault();a(this).closest(".toggle-element").saveToggleElement()});a(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){a(this).closest(".yith-plugin-fw-radio").val(a(this).val()).trigger("change")});
29
- a(document).on("click",".yith-password-eye",function(){var b=a(this),c=a(this).closest(".yith-password-wrapper").find("input");"password"===c.attr("type")?(c.attr("type","text"),b.addClass("yith-password-eye-closed")):(c.attr("type","password"),b.removeClass("yith-password-eye-closed"))});a(document.body).on("yith-plugin-fw-init-radio",function(){a(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){a(this).val(a(this).attr("value"));a(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio");
30
- a(document).on("select2:open",function(b){a(b.target).closest(".yith-plugin-ui").length&&a(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")})})(jQuery);
1
+ !function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),a={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},l=e(".add_media"),n={sliderWrapper:e(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},o=e(".yith-plugin-fw-sidebar-layout"),r=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),d=e(".codemirror"),s=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),a=e(this).closest(".yith-single-colorpicker"),l=i.find(".wp-picker-input-wrap"),n=a.find(".wp-picker-input-wrap");if(l.length&&i.find("a.wp-color-result").attr("title",t),a.length&&a.find("a.wp-color-result").attr("title",t),!l.find(".wp-picker-clear-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});l.find(".wp-picker-default").wrap(o)}n.find(".wp-picker-clear-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),n.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(a.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),l=e(this).parent().find(a.imgPreviewHandler).first();l.length<1&&(l=e(this).parent().parent().find(a.imgPreviewHandler).first()),i.test(t)?l.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):l.html("")}).trigger("change"),e(document).on("click",a.uploadButtonHandler,function(t){t.preventDefault();var i,l=e(this).attr("id").replace(/-button$/,"");if(i)i.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:n})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+l).val(t.url),e("#"+l+"-yith-attachment-id")&&e("#"+l+"-yith-attachment-id").val(t.id),a.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",a.resetButtonHandler,function(t){var i=e(this),l=i.attr("id"),n=i.attr("id").replace(/-button-reset$/,""),o=e("#"+l).data("default");e("#"+n).val(o),a.imgUrl.trigger("change")}));l.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",n.buttonHandler,function(t){var i=e(this),a=i.closest(".image-gallery"),l=a.find(".image_gallery_ids"),n=l.val(),o=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(n=n?n+","+e.id:e.id,o.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),l.val(n)}),r.open()}),n.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,a){var l="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),t.closest(".image-gallery").find(".image_gallery_ids").val(l)}})}),n.sliderWrapper.on("click","a.delete",function(){var t=e(this).closest(".image-gallery"),i=e(this).closest(".image-gallery ul.slides-wrapper"),a=t.find(".image_gallery_ids"),l="";e(this).closest("li.image").remove(),i.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),a.val(l)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),a=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),l=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==l)switch(l){case"left":i.show(),a.hide();break;case"right":a.show(),i.hide();break;case"double":i.show(),a.show();break;default:i.hide(),a.hide()}})}),r.each(function(){var t=e(this).data("val"),i=e(this).data("min"),a=e(this).data("max"),l=e(this).data("step"),n=e(this).data("labels");e(this).slider({value:t,min:i,max:a,range:"min",step:l,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+n)}})}),d.each(function(t,i){var a=CodeMirror.fromTextArea(i,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});e(i).data("codemirrorInstance",a)}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),s.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),a=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(l){var n=e(l.target).closest("li"),o=n.data("font"),r=n.data("icon"),d=n.data("key"),s=n.data("name");i.attr("data-font",o),i.attr("data-icon",r),i.attr("data-key",d),i.attr("data-name",s),a.val(o+":"+s),t.find(".yit-icons-manager-list li").removeClass("active"),n.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),a=t.closest(".yith-plugin-fw-select-images__wrapper"),l=a.find(".yith-plugin-fw-select-images__item"),n=a.find("select").first();n.length&&(n.val(i),l.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var a=jQuery(".ui-sortable-handle"),l=0,n=new Array;for(l=0;l<a.length;l++)n[l]=e(a[l]).data("item_key");n.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,n)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("checked")?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e.fn.saveToggleElement=function(t,i){var a=e(this),l="yith_plugin_fw_save_toggle_element",n=a.serializeToggleElement(),o=a.find(".yith-toggle_wrapper"),r=o.attr("id"),d=e.urlParam("tab");n.append("security",o.data("nonce")),void 0!==i&&i.length>0&&n.append("yith_toggle_elements_order_keys",i),a.closest(".metaboxes-tab.yith-plugin-ui").length?(l="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+l+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+r+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+l+"&tab="+d+"&toggle_id="+r,e.ajax({type:"POST",url:url,data:n,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,a])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,a=e(t).find(":input").serializeArray();return e.each(a,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),a=t.find("span.title").data("title_format"),l=t.find(".subtitle").data("subtitle_format"),n=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==a)var o=a.match(n);if(void 0!==l)var r=l.match(n);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)),null!=r&&void 0!==r&&-1!==r.indexOf($field_id)&&(l=l.replace("%%"+$field_id+"%%",$field_val)))}),""!==a&&t.find("span.title").html(a),""!==l&&t.find(".subtitle").html(l),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),a=i.closest(".yith-toggle-row"),l=a.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;a.is(".yith-toggle-row-opened")?l.slideUp(400):l.slideDown(400),a.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),a=i.data("box_id"),l=i.data("closed_label"),n=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+o),""!==a&&(e("#"+a).html(template({index:"box_id"})).slideToggle(),""!==l&&(i.html()===l?i.html(n).removeClass("closed"):i.html(l).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),a=e(this).closest(".yith-toggle_wrapper").attr("id"),l=i.find(".spinner"),n=e(this).parents(".toggle-element"),o=i.find(":input"),r=n.find(".yith-toggle-row").length,d=e('<input type="hidden">');d.val(r),e(document).trigger("yith-toggle-change-counter",[d,i]),r=d.val();var s=wp.template("yith-toggle-element-item-"+a),c=e(s({index:r}));l.addClass("show"),e.each(o,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_val=e(i).val(),"radio"==e(i).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+r,e(i).is(":checked")&&e(c).find("#"+$field_id).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+$field_id).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+$field_id).val($field_val))}),e(c).formatToggleTitle();var g=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,g]);setTimeout(function(){if("yes"===g.val()){e(n).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),n.saveToggleElement();setTimeout(function(){e(n).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),a=e(this).closest(".yith-toggle-row"),l=a.find(".spinner");a.formatToggleTitle();var n=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,a,n]),"yes"===n.val()&&(l.addClass("show"),i.saveToggleElement(l))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){e(this).closest(".yith-plugin-fw-radio").val(e(this).val()).trigger("change")}),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).attr("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")})}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/assets/js/yith-gutenberg.min.js CHANGED
@@ -1,6 +1 @@
1
- (function(f){function k(e,a,d){var g="";g="";if("undefined"!=typeof a.callback&&"function"==typeof f[a.callback])g=f[a.callback](e,a);else{var b="["+a.shortcode_name;f.each(e.attributes,function(c,l){"className"!=c&&(b+=" "+c+"=",b=1==a.attributes[c].remove_quotes?b+l:b+('"'+l+'"'))});b+="]";e=md5(b);g='<span class="yith_block_'+e+'">'+b+"</span>";"edit"==d&&0!=a.do_shortcode&&function(c){var a=null;f(document).trigger("yith_plugin_fw_gutenberg_before_do_shortcode",[b,c]);f.ajax({async:!0,url:yith_gutenberg_ajax.ajaxurl,
2
- method:"post",data:{action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:b},success:function(d){a=d;""!=a&&(f(".yith_block_"+c).html(a),f(document).trigger("yith_plugin_fw_gutenberg_success_do_shortcode",[b,c,a]))}});f(document).trigger("yith_plugin_fw_gutenberg_after_do_shortcode",[b,c,a]);return a}(e);g=h(n,null,g)}return g}function m(e,a,d,g){var b={};if("colorpicker"==g||"color"==g)e=e.hex;b[a]=e;d.setAttributes(b);return d}var h=wp.element.createElement,p=wp.element.Fragment,q=wp.blocks.registerBlockType,
3
- r=wp.editor.InspectorControls,n=wp.element.RawHTML,t=wp.components.SelectControl,u=wp.components.ToggleControl,v=wp.components.CheckboxControl,w=wp.components.RangeControl,x=wp.components.ColorPicker,y=wp.components.RadioControl,z=wp.components.TextControl,A=wp.components.TextareaControl,B=h("svg",{width:22,height:22},h("path",{d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));
4
- f.each(yith_gutenberg,function(e,a){q("yith/"+e,{title:a.title,description:a.description,category:a.category,attributes:a.attributes,icon:"undefined"!=typeof a.icon?a.icon:B,keywords:a.keywords,edit:function(d){var g=[];f.each(a.attributes,function(a,c){var b=null,e=c.blocktype;if("undefined"!=typeof e){switch(e){case "select":b=t;break;case "text":b=z;break;case "textarea":b=A;break;case "toggle":b=u;break;case "checkbox":b=v;break;case "number":case "range":b=w;break;case "color":case "colorpicker":b=
5
- x;break;case "radio":b=y}if(null!=b){var f=helpMessageUncheked="";"undefined"!=typeof c.helps&&"undefined"!=typeof c.helps.checked&&"undefined"!=typeof c.helps.unchecked?(f=c.helps.checked,helpMessageUncheked=c.helps.unchecked):"undefined"!=typeof c.help&&(f=helpMessageUncheked=c.help);g.push(h(b,{value:d.attributes[a],options:c.options,label:c.label,checked:d.attributes[a],selected:d.attributes[a],help:d.attributes[a]?f:helpMessageUncheked,disableAlpha:c.disableAlpha,min:c.min,max:c.max,multiple:c.multiple,
6
- onChange:function(b,c){c=void 0===c?a:c;d=m(b,c,d,e)},onChangeComplete:function(c,b){b=void 0===b?a:b;d=m(c,b,d,e)}}))}}});sc=k(d,a,"edit");return[h(p,null,h(r,null,g),sc)]},save:function(d){return k(d,a,"save")}})})})(jQuery);
1
+ !function(e){wp.i18n.__;var t=wp.element.createElement,o=wp.element.Fragment,n=wp.blocks.registerBlockType,c=(wp.editor.RichText,wp.editor.BlockControls,wp.editor.InspectorControls),r=(wp.editor.AlignmentToolbar,wp.components,wp.element.RawHTML),a=wp.components.SelectControl,s=wp.components.ToggleControl,i=wp.components.CheckboxControl,l=wp.components.RangeControl,p=wp.components.ColorPicker,u=wp.components.RadioControl,d=wp.components.TextControl,h=wp.components.TextareaControl;const C=t("svg",{width:22,height:22},t("path",{d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));function g(o,n,c){var a="",s="";if("undefined"!=typeof n.callback&&"function"==typeof e[n.callback])a=e[n.callback](o,n);else{var i="["+n.shortcode_name;e.each(o.attributes,function(e,t){if("className"!=e){i+=" "+e+"=";var o=n.attributes[e].remove_quotes;i+=1==o?t:'"'+t+'"'}}),i+="]";var l=md5(i);s='<span class="yith_block_'+l+'">'+i+"</span>","edit"==c&&0!=n.do_shortcode&&function(t){var o=null;return e(document).trigger("yith_plugin_fw_gutenberg_before_do_shortcode",[i,t]),e.ajax({async:!0,url:yith_gutenberg_ajax.ajaxurl,method:"post",data:{action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:i},success:function(n){""!=(o=n)&&(e(".yith_block_"+t).html(o),e(document).trigger("yith_plugin_fw_gutenberg_success_do_shortcode",[i,t,o]))}}),e(document).trigger("yith_plugin_fw_gutenberg_after_do_shortcode",[i,t,o]),o}(l),a=t(r,null,s)}return a}function b(e,t,o,n){var c={};return"colorpicker"!=n&&"color"!=n||(e=e.hex),c[t]=e,o.setAttributes(c),o}e.each(yith_gutenberg,function(r,f){n("yith/"+r,{title:f.title,description:f.description,category:f.category,attributes:f.attributes,icon:"undefined"!=typeof f.icon?f.icon:C,keywords:f.keywords,edit:function(n){var r=new Array;return e.each(f.attributes,function(e,o){var c=null,C=o.blocktype;if(void 0!==C){switch(C){case"select":c=a;break;case"text":c=d;break;case"textarea":c=h;break;case"toggle":c=s;break;case"checkbox":c=i;break;case"number":case"range":c=l;break;case"color":case"colorpicker":c=p;break;case"radio":c=u}if(null!=c){var g=helpMessageUncheked="";"undefined"!=typeof o.helps&&"undefined"!=typeof o.helps.checked&&"undefined"!=typeof o.helps.unchecked?(g=o.helps.checked,helpMessageUncheked=o.helps.unchecked):"undefined"!=typeof o.help&&(g=helpMessageUncheked=o.help),r.push(t(c,{value:n.attributes[e],options:o.options,label:o.label,checked:n.attributes[e],selected:n.attributes[e],help:n.attributes[e]?g:helpMessageUncheked,disableAlpha:o.disableAlpha,min:o.min,max:o.max,multiple:o.multiple,onChange:function(t,o=e){n=b(t,o,n,C)},onChangeComplete:function(t,o=e){n=b(t,o,n,C)}}))}}}),sc=g(n,f,"edit"),[t(o,null,t(c,null,r),sc)]},save:function(e){return g(e,f,"save")}})})}(jQuery);
 
 
 
 
 
plugin-fw/assets/js/yith-promo.min.js CHANGED
@@ -1 +1 @@
1
- (function(c){c(document).on("click",".notice-dismiss",function(){var a=c(this).parent("div.yith-notice-is-dismissible"),b=a.attr("id");"undefined"!=typeof b&&(b="hide_"+b,a=a.data("expiry"),a=new Date(a),a.setUTCHours(23),a.setUTCMinutes(59),a.setUTCSeconds(59),document.cookie=b+"=yes;expires="+a.toUTCString()+";path=/")})})(jQuery);
1
+ !function(i){i(document).on("click",".notice-dismiss",function(){var e=i(this).parent("div.yith-notice-is-dismissible"),t=e.attr("id");if(void 0!==t){var s="hide_"+t,n=e.data("expiry"),o=new Date(n);o.setUTCHours(23),o.setUTCMinutes(59),o.setUTCSeconds(59),document.cookie=s+"=yes;expires="+o.toUTCString()+";path=/"}})}(jQuery);
plugin-fw/assets/js/yith-system-info.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a(document).on("click",".notice-dismiss",function(){"yith-system-alert"===a(this).parent().attr("id")&&(document.cookie="hide_yith_system_alert=yes;path=/")})})(jQuery);
1
+ !function(t){t(document).on("click",".notice-dismiss",function(){if("yith-system-alert"===t(this).parent().attr("id")){document.cookie="hide_yith_system_alert=yes;path=/"}})}(jQuery);
plugin-fw/assets/js/yith-update-plugins.min.js CHANGED
@@ -1,2 +1 @@
1
- (function(b){b(document).on("click","a.yith-update-link",function(e){var a=b(this),c=a.parent("p");e.preventDefault();b.ajax({type:"POST",url:yith_plugin_fw.ajaxurl,data:{action:"update-plugin",plugin:a.data("plugin"),slug:a.data("slug"),name:a.data("name"),_ajax_nonce:yith_plugin_fw.ajax_nonce},beforeSend:function(){c.text(yith_plugin_fw.l10n.updating.replace("%s",a.data("name")));c.addClass("yith-updating")},success:function(b){c.removeClass("yith-updating").addClass("yith-updated");var d=c.parent("div");
2
- d.removeClass("notice-warning");result_text="";!0===b.success?(d.addClass("notice-success updated-message").removeClass("update-message"),result_text=yith_plugin_fw.l10n.updated):(d.addClass("notice-error"),result_text=yith_plugin_fw.l10n.failed);c.text(result_text.replace("%s",a.data("name")))}})})})(jQuery);
1
+ !function(a){a(document).on("click","a.yith-update-link",function(e){var t=a(this),n=t.parent("p");e.preventDefault(),a.ajax({type:"POST",url:yith_plugin_fw.ajaxurl,data:{action:"update-plugin",plugin:t.data("plugin"),slug:t.data("slug"),name:t.data("name"),_ajax_nonce:yith_plugin_fw.ajax_nonce},beforeSend:function(){n.text(yith_plugin_fw.l10n.updating.replace("%s",t.data("name"))),n.addClass("yith-updating")},success:function(a){n.removeClass("yith-updating").addClass("yith-updated");var e=n.parent("div");e.removeClass("notice-warning"),result_text="",!0===a.success?(e.addClass("notice-success updated-message").removeClass("update-message"),result_text=yith_plugin_fw.l10n.updated):(e.addClass("notice-error"),result_text=yith_plugin_fw.l10n.failed),n.text(result_text.replace("%s",t.data("name")))}})})}(jQuery);
 
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.4.8
5
- * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
- * @version 3.4.8
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.4.14
5
+ * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.4.14
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
plugin-fw/languages/yith-plugin-fw-el.mo ADDED
Binary file
plugin-fw/languages/yith-plugin-fw-el.po ADDED
@@ -0,0 +1,791 @@