Version Description
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Zoom Magnifier |
Version | 1.2.16 |
Comparing to | |
See all releases |
Code changes from version 1.2.15 to 1.2.16
- README.txt +8 -2
- assets/js/frontend.js +1 -1
- assets/js/frontend.min.js +1 -1
- assets/js/yith_magnifier.js +10 -2
- assets/js/yith_magnifier.min.js +1 -1
- init.php +4 -3
- lib/class.yith-ywzm-plugin-fw-loader.php +1 -1
- plugin-fw/assets/css/overcast/jquery-ui-1.8.9.custom.css +308 -52
- plugin-fw/init.php +1 -1
- plugin-fw/lib/yit-plugin-panel-wc.php +1 -1
- plugin-fw/lib/yit-plugin-panel.php +1 -2
- plugin-fw/lib/yit-upgrade.php +23 -14
- plugin-fw/licence/assets/js/yit-licence.min.js +7 -4
- templates/single-product/product-image-magnifier.php +37 -34
README.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, woocommerce, product image, themes, yit, e-commerce, shop, thumbnail, thumbnail slider, zoom image, carousel, image carousel
|
5 |
Requires at least: 3.5.1
|
6 |
-
Tested up to: 4.4
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -59,6 +59,12 @@ The size of the Zoom Image is automatically setted. If you want to change these
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= Version 1.2.15 - RELEASED: JAN 04, 2016 =
|
63 |
|
64 |
* Fixed: Cannot redeclare yith_ywzm_install_woocommerce_admin_notice() when the plugin is loaded from YITH Essential Kit
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, woocommerce, product image, themes, yit, e-commerce, shop, thumbnail, thumbnail slider, zoom image, carousel, image carousel
|
5 |
Requires at least: 3.5.1
|
6 |
+
Tested up to: 4.4.1
|
7 |
+
Stable tag: 1.2.16
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= Version 1.2.16 - RELEASED: JAN 18, 2016 =
|
63 |
+
|
64 |
+
* Updated: YITH Plugin FW loading remove unused YIT constant
|
65 |
+
* Added: filter yith_ywzm_zoom_wrap_additional_css for customizing CSS class for the wrapping div
|
66 |
+
* Updated: plugin ready for WooCommerce 2.5
|
67 |
+
|
68 |
= Version 1.2.15 - RELEASED: JAN 04, 2016 =
|
69 |
|
70 |
* Fixed: Cannot redeclare yith_ywzm_install_woocommerce_admin_notice() when the plugin is loaded from YITH Essential Kit
|
assets/js/frontend.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
-
* @version 1.2.
|
7 |
*/
|
8 |
jQuery(document).ready(function ($) {
|
9 |
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
+
* @version 1.2.16
|
7 |
*/
|
8 |
jQuery(document).ready(function ($) {
|
9 |
|
assets/js/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(i){var t=i(".images"),r=i(".yith_magnifier_zoom"),a=i(".yith_magnifier_zoom img"),e=t.find(".yith_magnifier_zoom").attr("href"),n=t.find(".yith_magnifier_zoom img").attr("src");return"undefined"==typeof yith_magnifier_options?!1:(t.yith_magnifier(yith_magnifier_options),void i(document).on("found_variation","form.variations_form",function(i,o){var m=o.image_magnifier?o.image_magnifier:e,f=o.image_src?o.image_src:n;r.attr("href",m),a.attr("src",f),a.attr("srcset",f),a.attr("src-orig",f),t.data("yith_magnifier")&&t.yith_magnifier("destroy"),t.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(){r.attr("href",e),a.attr("src",n),a.attr("srcset",n),a.attr("src-orig",n),t.data("yith_magnifier")&&t.yith_magnifier("destroy"),t.yith_magnifier(yith_magnifier_options)}))});
|
1 |
+
jQuery(document).ready(function(i){var t=i(".images"),r=i(".yith_magnifier_zoom"),a=i(".yith_magnifier_zoom img"),e=t.find(".yith_magnifier_zoom").attr("href"),n=t.find(".yith_magnifier_zoom img").attr("src");return"undefined"==typeof yith_magnifier_options?!1:(t.yith_magnifier(yith_magnifier_options),void i(document).on("found_variation","form.variations_form",function(i,o){var m=o.image_magnifier?o.image_magnifier:e,f=o.image_src?o.image_src:n;r.attr("href",m),a.attr("src",f),a.attr("srcset",f),a.attr("src-orig",f),t.data("yith_magnifier")&&t.yith_magnifier("destroy"),t.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(i){r.attr("href",e),a.attr("src",n),a.attr("srcset",n),a.attr("src-orig",n),t.data("yith_magnifier")&&t.yith_magnifier("destroy"),t.yith_magnifier(yith_magnifier_options)}))});
|
assets/js/yith_magnifier.js
CHANGED
@@ -306,10 +306,18 @@
|
|
306 |
self.zoomImage = self.options.elements.zoomImage;
|
307 |
|
308 |
//wrap the zoom image with a div
|
309 |
-
|
310 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
}
|
312 |
|
|
|
|
|
313 |
self.IMG_zoomImage = new Image();
|
314 |
self.IMG_zoomImage.src = self.zoom.attr('href');
|
315 |
|
306 |
self.zoomImage = self.options.elements.zoomImage;
|
307 |
|
308 |
//wrap the zoom image with a div
|
309 |
+
var zoom_wrap_css_class = "yith_magnifier_zoom_wrap";
|
310 |
+
|
311 |
+
|
312 |
+
if (self.options.zoom_wrap_additional_css) {
|
313 |
+
if ( !$('.' + zoom_wrap_css_class).length ) {
|
314 |
+
|
315 |
+
zoom_wrap_css_class += " " + self.options.zoom_wrap_additional_css;
|
316 |
+
}
|
317 |
}
|
318 |
|
319 |
+
self.zoom.wrap('<div class="' + zoom_wrap_css_class + '"></div>');
|
320 |
+
|
321 |
self.IMG_zoomImage = new Image();
|
322 |
self.IMG_zoomImage.src = self.zoom.attr('href');
|
323 |
|
assets/js/yith_magnifier.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,i,e){"use strict";i.fn.imagesLoaded===e&&!function(t,i){var e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";t.fn.imagesLoaded=function(o){function n(){var i=t(c),e=t(d);h&&(d.length?h.reject(l,i,e):h.resolve(l)),t.isFunction(o)&&o.call(r,l,i,e)}function s(t){a(t.target,"error"===t.type)}function a(i,o){i.src!==e&&-1===t.inArray(i,u)&&(u.push(i),o?d.push(i):c.push(i),t.data(i,"imagesLoaded",{isBroken:o,src:i.src}),m&&h.notifyWith(t(i),[o,l,t(c),t(d)]),l.length===u.length&&(setTimeout(n),l.unbind(".imagesLoaded",s)))}var r=this,h=t.isFunction(t.Deferred)?t.Deferred():0,m=t.isFunction(h.notify),l=r.find("img").add(r.filter("img")),u=[],c=[],d=[];return t.isPlainObject(o)&&t.each(o,function(t,i){"callback"===t?o=i:h&&h[t](i)}),l.length?l.bind("load.imagesLoaded error.imagesLoaded",s).each(function(o,n){var s=n.src,r=t.data(n,"imagesLoaded");return r&&r.src===s?void a(n,r.isBroken):n.complete&&n.naturalWidth!==i?void a(n,0===n.naturalWidth||0===n.naturalHeight):void((n.readyState||n.complete)&&(n.src=e,n.src=s))}):n(),h?h.promise(r):r}}(jQuery),i.yith_magnifier=function(t,e){this.t=e,this.element=i(e),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:{},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"),gallery:i(".yith_magnifier_gallery li a")}},i.yith_magnifier.prototype={_init:function(t){var e=this;i(document).trigger("yith_magnifier_before_init"),i.each(i.yith_magnifier.defaults.elements,function(t,o){var n=i.yith_magnifier.defaults.elements;n[t]=i(o,e)}),e.options=i.extend(!0,{},i.yith_magnifier.defaults,t),e.isPhone=e._isPhone(),e._loading(),e.element.imagesLoaded(function(){e.options.onLoad(),e._initZoom(),e._initGallery()}),i(document).trigger("yith_magnifier_after_init")},_initGallery:function(){var t=this,e=t.options.elements,o=e.gallery,n=e.zoom,s=e.zoomImage;o.length>0?(o.on("click",function(e){e.preventDefault();var o=i(this);t.destroy(),n.attr("href",this.href),s.attr("src",o.data("small")).attr("srcset",o.data("small")).attr("src-orig",o.data("small")).attr("title","").attr("title",o.attr("title")),i.data(t.t,"yith_magnifier",new i.yith_magnifier(t.options,t.element))}),t.options.enableSlider&&(o.closest("ul").trigger("yith_magnifier_slider_destroy"),o.closest("ul")[t.options.slider](t.options.sliderOptions))):o.on("click",function(t){return t.preventDefault(),!1})},_loading:function(){if(this.options.disableRightClick&&i(document).on("contextmenu",function(){return!1}),this.mouseTrap===e){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,t.zoom.wrap('<div class="yith_magnifier_zoom_wrap"></div>'),t.IMG_zoomImage=new Image,t.IMG_zoomImage.src=t.zoom.attr("href"),t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),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,e=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 o=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(o.parent());var s="ontouchstart"in document.documentElement?!0:!1,a="touchmove mousemove",r="touchend mouseleave",h="touchstart mouseenter",m="touchstart click";this.mouseTrap.on(a,this,function(i){t.options.onMove(),t.mx="undefined"!=typeof i.originalEvent.touches?i.originalEvent.touches[0].pageX:i.pageX,t.my="undefined"!=typeof i.originalEvent.touches?i.originalEvent.touches[0].pageY:i.pageY}).on(r,this,function(){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(m,this,function(){t.options.onClick()}).on(h,this,function(a){t.options.onEnter(),s&&a.preventDefault(),t.mx="undefined"!=typeof a.originalEvent.touches?a.originalEvent.touches[0].pageX:a.pageX,t.my="undefined"!=typeof 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,h=t.options.adjustY,m=n.outerWidth(),l=n.outerHeight(),u=t.options.zoomWidth,c=t.options.zoomHeight;"auto"==t.options.zoomWidth&&(u=m),"auto"==t.options.zoomHeight&&(c=l);var d=o.parent();switch(t.options.position){case"top":h-=c;break;case"right":r+=m;break;case"bottom":h+=l;break;case"left":r-=u;break;case"inside":u=m,c=l;break;default:d=i("#"+t.options.position),d.length?(u=d.innerWidth(),c=d.innerHeight()):(d=o,r+=m,h+=l)}t.isPhone&&"inside"==t.options.phoneBehavior&&(u=m,c=l,r=0,h=0),t.zoomDiv=i('<div class="yith_magnifier_zoom_magnifier" />').css({left:r,top:h,width:u,height:c,"background-repeat":"no-repeat",backgroundImage:"url("+e.src+")"}).appendTo(d),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),t.cw=e.width<=1?n.outerWidth()/e.naturalWidth*t.zoomDiv.width():n.outerWidth()/e.width*t.zoomDiv.width(),t.ch=e.height<=1?n.outerHeight()/e.naturalHeight*t.zoomDiv.height():n.outerHeight()/e.height*t.zoomDiv.height(),t.lens=i('<div class="yith_magnifier_lens" />').css({width:t.cw,height:t.ch}).appendTo(o),t.mouseTrap.css("cursor",t.lens.css("cursor"));var g=!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(o),t.lens.append(i("<img />",{src:n.attr("src")})),g=!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(o),t.softFocus.append(i("<img />",{src:n.attr("src")})),0==t.lens.find("img").length&&t.lens.append(i("<img />",{src:n.attr("src")})),g=!0,t.softFocus.fadeIn(500)),g||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,e=this.my-this.zoomImage.offset().top-.5*this.ch>>0;0>i?i=0:i>this.zoomImage.outerWidth()-this.cw&&(i=this.zoomImage.outerWidth()-this.cw),0>e?e=0:e>this.zoomImage.outerHeight()-this.ch&&(e=this.zoomImage.outerHeight()-this.ch),this.lens.css({left:i-2,top:e-1}),this.lens.find("img").css({width:this.zoomImage.outerWidth(),height:this.zoomImage.outerHeight(),marginLeft:-i+"px ",marginTop:-e+"px"}),this.destU=this.IMG_zoomImage.width<=1?i/this.zoomImage.outerWidth()*this.IMG_zoomImage.naturalWidth>>0:i/this.zoomImage.outerWidth()*this.IMG_zoomImage.width>>0,this.destV=this.IMG_zoomImage.height<=1?e/this.zoomImage.outerHeight()*this.IMG_zoomImage.naturalHeight>>0:e/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 e=Array.prototype.slice.call(arguments,1);this.each(function(){var o=i.data(this,"yith_magnifier");return o?i.isFunction(o[t])&&"_"!==t.charAt(0)?void o[t].apply(o,e):void i.error("no such method '"+t+"' for yith_magnifier instance"):void i.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var e=i.data(this,"yith_magnifier");e?i.error("yith_magnifier already istantiated."):i.data(this,"yith_magnifier",new i.yith_magnifier(t,this))});return this}}(window,jQuery);
|
1 |
+
!function(t,i,o){"use strict";i.fn.imagesLoaded===o&&!function(t,i){var o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";t.fn.imagesLoaded=function(e){function n(){var i=t(c),o=t(d);h&&(d.length?h.reject(l,i,o):h.resolve(l)),t.isFunction(e)&&e.call(r,l,i,o)}function s(t){a(t.target,"error"===t.type)}function a(i,e){i.src!==o&&-1===t.inArray(i,u)&&(u.push(i),e?d.push(i):c.push(i),t.data(i,"imagesLoaded",{isBroken:e,src:i.src}),m&&h.notifyWith(t(i),[e,l,t(c),t(d)]),l.length===u.length&&(setTimeout(n),l.unbind(".imagesLoaded",s)))}var r=this,h=t.isFunction(t.Deferred)?t.Deferred():0,m=t.isFunction(h.notify),l=r.find("img").add(r.filter("img")),u=[],c=[],d=[];return t.isPlainObject(e)&&t.each(e,function(t,i){"callback"===t?e=i:h&&h[t](i)}),l.length?l.bind("load.imagesLoaded error.imagesLoaded",s).each(function(e,n){var s=n.src,r=t.data(n,"imagesLoaded");return r&&r.src===s?void a(n,r.isBroken):n.complete&&n.naturalWidth!==i?void a(n,0===n.naturalWidth||0===n.naturalHeight):void((n.readyState||n.complete)&&(n.src=o,n.src=s))}):n(),h?h.promise(r):r}}(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:{},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"),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){var n=i.yith_magnifier.defaults.elements;n[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();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}),this.mouseTrap===o){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,t.IMG_zoomImage.src=t.zoom.attr("href"),t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),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?!0:!1,a="touchmove mousemove",r="touchend mouseleave",h="touchstart mouseenter",m="touchstart click";this.mouseTrap.on(a,this,function(i){t.options.onMove(),t.mx="undefined"!=typeof i.originalEvent.touches?i.originalEvent.touches[0].pageX:i.pageX,t.my="undefined"!=typeof i.originalEvent.touches?i.originalEvent.touches[0].pageY:i.pageY}).on(r,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(m,this,function(i){t.options.onClick()}).on(h,this,function(a){t.options.onEnter(),s&&a.preventDefault(),t.mx="undefined"!=typeof a.originalEvent.touches?a.originalEvent.touches[0].pageX:a.pageX,t.my="undefined"!=typeof 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,h=t.options.adjustY,m=n.outerWidth(),l=n.outerHeight(),u=t.options.zoomWidth,c=t.options.zoomHeight;"auto"==t.options.zoomWidth&&(u=m),"auto"==t.options.zoomHeight&&(c=l);var d=e.parent();switch(t.options.position){case"top":h-=c;break;case"right":r+=m;break;case"bottom":h+=l;break;case"left":r-=u;break;case"inside":u=m,c=l;break;default:d=i("#"+t.options.position),d.length?(u=d.innerWidth(),c=d.innerHeight()):(d=e,r+=m,h+=l)}t.isPhone&&"inside"==t.options.phoneBehavior&&(u=m,c=l,r=0,h=0),t.zoomDiv=i('<div class="yith_magnifier_zoom_magnifier" />').css({left:r,top:h,width:u,height:c,"background-repeat":"no-repeat",backgroundImage:"url("+o.src+")"}).appendTo(d),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 g=!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")})),g=!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")})),g=!0,t.softFocus.fadeIn(500)),g||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;0>i?i=0:i>this.zoomImage.outerWidth()-this.cw&&(i=this.zoomImage.outerWidth()-this.cw),0>o?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");return e?i.isFunction(e[t])&&"_"!==t.charAt(0)?void e[t].apply(e,o):void i.error("no such method '"+t+"' for yith_magnifier instance"):void i.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var o=i.data(this,"yith_magnifier");o?i.error("yith_magnifier already istantiated."):i.data(this,"yith_magnifier",new i.yith_magnifier(t,this))});return this}}(window,jQuery);
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH WooCommerce Magnifier
|
14 |
-
* @version 1.2.
|
15 |
*/
|
16 |
/* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -72,10 +72,11 @@ if ( ! function_exists ( 'yith_ywzm_install_free_admin_notice' ) ) {
|
|
72 |
if ( ! function_exists ( 'yith_plugin_registration_hook' ) ) {
|
73 |
require_once 'plugin-fw/yit-plugin-registration-hook.php';
|
74 |
}
|
|
|
75 |
register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
|
76 |
|
77 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
78 |
-
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.2.
|
79 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
80 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
81 |
defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
|
6 |
+
* Version: 1.2.16
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH WooCommerce Magnifier
|
14 |
+
* @version 1.2.16
|
15 |
*/
|
16 |
/* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
72 |
if ( ! function_exists ( 'yith_plugin_registration_hook' ) ) {
|
73 |
require_once 'plugin-fw/yit-plugin-registration-hook.php';
|
74 |
}
|
75 |
+
|
76 |
register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
|
77 |
|
78 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
79 |
+
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.2.16' );
|
80 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
81 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
82 |
defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
|
lib/class.yith-ywzm-plugin-fw-loader.php
CHANGED
@@ -101,7 +101,7 @@ if ( ! class_exists( 'YITH_YWZM_Plugin_FW_Loader' ) ) {
|
|
101 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
102 |
*/
|
103 |
public function plugin_fw_loader() {
|
104 |
-
if ( ! defined( '
|
105 |
require_once( YITH_YWZM_DIR . 'plugin-fw/yit-plugin.php' );
|
106 |
}
|
107 |
}
|
101 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
102 |
*/
|
103 |
public function plugin_fw_loader() {
|
104 |
+
if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
|
105 |
require_once( YITH_YWZM_DIR . 'plugin-fw/yit-plugin.php' );
|
106 |
}
|
107 |
}
|
plugin-fw/assets/css/overcast/jquery-ui-1.8.9.custom.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
-
* jQuery UI CSS Framework 1.8.
|
3 |
*
|
4 |
-
* Copyright
|
5 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
* http://jquery.org/license
|
7 |
*
|
@@ -42,65 +42,64 @@
|
|
42 |
|
43 |
|
44 |
/*
|
45 |
-
* jQuery UI CSS Framework 1.8.
|
46 |
*
|
47 |
-
* Copyright
|
48 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
49 |
* http://jquery.org/license
|
50 |
*
|
51 |
* http://docs.jquery.com/UI/Theming/API
|
52 |
*
|
53 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%
|
54 |
*/
|
55 |
|
56 |
|
57 |
/* Component containers
|
58 |
----------------------------------*/
|
59 |
-
.ui-widget { font-family: Trebuchet MS,
|
60 |
.ui-widget .ui-widget { font-size: 1em; }
|
61 |
-
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS,
|
62 |
-
.ui-widget-content { border: 1px solid #
|
63 |
.ui-widget-content a { color: #333333; }
|
64 |
-
.ui-widget-header { border: 1px solid #
|
65 |
-
.ui-widget-header a { color: #
|
66 |
|
67 |
/* Interaction states
|
68 |
----------------------------------*/
|
69 |
-
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #
|
70 |
-
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #
|
71 |
-
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #
|
72 |
-
.ui-state-hover a, .ui-state-hover a:hover { color: #
|
73 |
-
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #
|
74 |
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #
|
75 |
.ui-widget :active { outline: none; }
|
76 |
|
77 |
/* Interaction Cues
|
78 |
----------------------------------*/
|
79 |
-
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #
|
80 |
-
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #
|
81 |
-
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #
|
82 |
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
|
83 |
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
|
84 |
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
85 |
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
86 |
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
87 |
-
.ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; }
|
88 |
-
.ui-sortable-placeholder * { visibility: hidden; }
|
89 |
|
90 |
/* Icons
|
91 |
----------------------------------*/
|
92 |
|
93 |
/* states and images */
|
94 |
-
|
95 |
-
.ui-widget-
|
96 |
-
.ui-
|
97 |
-
|
98 |
-
.ui-state-
|
99 |
-
.ui-state-
|
100 |
-
.ui-state-
|
|
|
101 |
|
102 |
/* positioning */
|
103 |
-
|
104 |
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
105 |
.ui-icon-carat-1-e { background-position: -32px 0; }
|
106 |
.ui-icon-carat-1-se { background-position: -48px 0; }
|
@@ -204,11 +203,11 @@
|
|
204 |
.ui-icon-heart { background-position: -208px -112px; }
|
205 |
.ui-icon-star { background-position: -224px -112px; }
|
206 |
.ui-icon-link { background-position: -240px -112px; }
|
207 |
-
.ui-icon-cancel { background-position: 0 -128px; }
|
208 |
-
.ui-icon-plus { background-position: -16px -128px; }
|
|
|
209 |
.ui-icon-minus { background-position: -48px -128px; }
|
210 |
.ui-icon-minusthick { background-position: -64px -128px; }
|
211 |
-
/*.ui-icon-plusthick { background-position: -32px -128px; }
|
212 |
.ui-icon-close { background-position: -80px -128px; }
|
213 |
.ui-icon-closethick { background-position: -96px -128px; }
|
214 |
.ui-icon-key { background-position: -112px -128px; }
|
@@ -235,9 +234,9 @@
|
|
235 |
.ui-icon-seek-next { background-position: -32px -160px; }
|
236 |
.ui-icon-seek-prev { background-position: -48px -160px; }
|
237 |
.ui-icon-seek-end { background-position: -64px -160px; }
|
238 |
-
.ui-icon-seek-start { background-position: -80px -160px; }
|
239 |
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
240 |
-
|
241 |
.ui-icon-stop { background-position: -96px -160px; }
|
242 |
.ui-icon-eject { background-position: -112px -160px; }
|
243 |
.ui-icon-volume-off { background-position: -128px -160px; }
|
@@ -274,40 +273,202 @@
|
|
274 |
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
275 |
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
276 |
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
277 |
-
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
278 |
|
279 |
|
280 |
/* Misc visuals
|
281 |
----------------------------------*/
|
282 |
|
283 |
/* Corner radius */
|
284 |
-
.ui-corner-tl { -moz-border-radius-topleft:
|
285 |
-
.ui-corner-tr { -moz-border-radius-topright:
|
286 |
-
.ui-corner-bl { -moz-border-radius-bottomleft:
|
287 |
-
.ui-corner-br { -moz-border-radius-bottomright:
|
288 |
-
.ui-corner-top { -moz-border-radius-topleft:
|
289 |
-
.ui-corner-bottom { -moz-border-radius-bottomleft:
|
290 |
-
.ui-corner-right { -moz-border-radius-topright:
|
291 |
-
.ui-corner-left { -moz-border-radius-topleft:
|
292 |
-
.ui-corner-all { -moz-border-radius:
|
293 |
|
294 |
/* Overlays */
|
295 |
-
.ui-widget-overlay { background: #
|
296 |
-
.ui-widget-shadow { margin: -
|
297 |
-
* jQuery UI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
*
|
299 |
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
300 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
301 |
* http://jquery.org/license
|
302 |
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
* http://docs.jquery.com/UI/Slider#theming
|
304 |
*/
|
305 |
-
.ui-slider { position: relative; text-align: left;
|
306 |
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
307 |
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
308 |
-
.ui-slider .minCaption { float: left }
|
309 |
-
.ui-slider .maxCaption { float: right }
|
310 |
-
.ui-slider .feedback { text-align:center; width:100%; display:block }
|
311 |
|
312 |
.ui-slider-horizontal { height: .8em; }
|
313 |
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
@@ -319,4 +480,99 @@
|
|
319 |
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
320 |
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
321 |
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
322 |
-
.ui-slider-vertical .ui-slider-range-max { top: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
+
* jQuery UI CSS Framework 1.8.13
|
3 |
*
|
4 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
* http://jquery.org/license
|
7 |
*
|
42 |
|
43 |
|
44 |
/*
|
45 |
+
* jQuery UI CSS Framework 1.8.13
|
46 |
*
|
47 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
48 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
49 |
* http://jquery.org/license
|
50 |
*
|
51 |
* http://docs.jquery.com/UI/Theming/API
|
52 |
*
|
53 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
54 |
*/
|
55 |
|
56 |
|
57 |
/* Component containers
|
58 |
----------------------------------*/
|
59 |
+
.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
|
60 |
.ui-widget .ui-widget { font-size: 1em; }
|
61 |
+
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
|
62 |
+
.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(../images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
|
63 |
.ui-widget-content a { color: #333333; }
|
64 |
+
.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(../images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
|
65 |
+
.ui-widget-header a { color: #ffffff; }
|
66 |
|
67 |
/* Interaction states
|
68 |
----------------------------------*/
|
69 |
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(../images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
|
70 |
+
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
|
71 |
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(../images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
|
72 |
+
.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
|
73 |
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(../images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
|
74 |
+
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
|
75 |
.ui-widget :active { outline: none; }
|
76 |
|
77 |
/* Interaction Cues
|
78 |
----------------------------------*/
|
79 |
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(../images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
|
80 |
+
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
81 |
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(../images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
|
82 |
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
|
83 |
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
|
84 |
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
85 |
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
86 |
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
|
|
|
|
87 |
|
88 |
/* Icons
|
89 |
----------------------------------*/
|
90 |
|
91 |
/* states and images */
|
92 |
+
.ui-icon { width: 16px; height: 16px; background-image: url(../images/jquery_ui/ui-icons_222222_256x240.png); }
|
93 |
+
.ui-widget-content .ui-icon {background-image: url(../images/jquery_ui/ui-icons_222222_256x240.png); }
|
94 |
+
.ui-widget-header .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ffffff_256x240.png); }
|
95 |
+
.ui-state-default .ui-icon { background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
96 |
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
97 |
+
.ui-state-active .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
98 |
+
.ui-state-highlight .ui-icon {background-image: url(../images/jquery_ui/ui-icons_228ef1_256x240.png); }
|
99 |
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ffd27a_256x240.png); }
|
100 |
|
101 |
/* positioning */
|
102 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
103 |
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
104 |
.ui-icon-carat-1-e { background-position: -32px 0; }
|
105 |
.ui-icon-carat-1-se { background-position: -48px 0; }
|
203 |
.ui-icon-heart { background-position: -208px -112px; }
|
204 |
.ui-icon-star { background-position: -224px -112px; }
|
205 |
.ui-icon-link { background-position: -240px -112px; }
|
206 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
207 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
208 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
209 |
.ui-icon-minus { background-position: -48px -128px; }
|
210 |
.ui-icon-minusthick { background-position: -64px -128px; }
|
|
|
211 |
.ui-icon-close { background-position: -80px -128px; }
|
212 |
.ui-icon-closethick { background-position: -96px -128px; }
|
213 |
.ui-icon-key { background-position: -112px -128px; }
|
234 |
.ui-icon-seek-next { background-position: -32px -160px; }
|
235 |
.ui-icon-seek-prev { background-position: -48px -160px; }
|
236 |
.ui-icon-seek-end { background-position: -64px -160px; }
|
237 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
238 |
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
239 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
240 |
.ui-icon-stop { background-position: -96px -160px; }
|
241 |
.ui-icon-eject { background-position: -112px -160px; }
|
242 |
.ui-icon-volume-off { background-position: -128px -160px; }
|
273 |
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
274 |
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
275 |
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
276 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
277 |
|
278 |
|
279 |
/* Misc visuals
|
280 |
----------------------------------*/
|
281 |
|
282 |
/* Corner radius */
|
283 |
+
.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
|
284 |
+
.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
285 |
+
.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
286 |
+
.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
287 |
+
.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
288 |
+
.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
289 |
+
.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
290 |
+
.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
291 |
+
.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
|
292 |
|
293 |
/* Overlays */
|
294 |
+
.ui-widget-overlay { background: #666666 url(../images/jquery_ui/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
|
295 |
+
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(../images/jquery_ui/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
|
296 |
+
* jQuery UI Resizable 1.8.13
|
297 |
+
*
|
298 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
299 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
300 |
+
* http://jquery.org/license
|
301 |
+
*
|
302 |
+
* http://docs.jquery.com/UI/Resizable#theming
|
303 |
+
*/
|
304 |
+
.ui-resizable { position: relative;}
|
305 |
+
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
|
306 |
+
/* http://bugs.jqueryui.com/ticket/7233
|
307 |
+
- Resizable: resizable handles fail to work in IE if transparent and content overlaps
|
308 |
+
*/
|
309 |
+
background-image:url(data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=);
|
310 |
+
}
|
311 |
+
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
312 |
+
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
313 |
+
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
314 |
+
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
315 |
+
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
316 |
+
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
317 |
+
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
318 |
+
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
319 |
+
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
|
320 |
+
* jQuery UI Selectable 1.8.13
|
321 |
+
*
|
322 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
323 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
324 |
+
* http://jquery.org/license
|
325 |
+
*
|
326 |
+
* http://docs.jquery.com/UI/Selectable#theming
|
327 |
+
*/
|
328 |
+
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
329 |
+
/*
|
330 |
+
* jQuery UI Accordion 1.8.13
|
331 |
+
*
|
332 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
333 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
334 |
+
* http://jquery.org/license
|
335 |
+
*
|
336 |
+
* http://docs.jquery.com/UI/Accordion#theming
|
337 |
+
*/
|
338 |
+
/* IE/Win - Fix animation bug - #4615 */
|
339 |
+
.ui-accordion { width: 100%; }
|
340 |
+
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
341 |
+
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
342 |
+
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
343 |
+
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
344 |
+
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
345 |
+
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
346 |
+
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
347 |
+
.ui-accordion .ui-accordion-content-active { display: block; }
|
348 |
+
/*
|
349 |
+
* jQuery UI Autocomplete 1.8.13
|
350 |
+
*
|
351 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
352 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
353 |
+
* http://jquery.org/license
|
354 |
+
*
|
355 |
+
* http://docs.jquery.com/UI/Autocomplete#theming
|
356 |
+
*/
|
357 |
+
.ui-autocomplete { position: absolute; cursor: default; }
|
358 |
+
|
359 |
+
/* workarounds */
|
360 |
+
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
361 |
+
|
362 |
+
/*
|
363 |
+
* jQuery UI Menu 1.8.13
|
364 |
*
|
365 |
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
366 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
367 |
* http://jquery.org/license
|
368 |
*
|
369 |
+
* http://docs.jquery.com/UI/Menu#theming
|
370 |
+
*/
|
371 |
+
.ui-menu {
|
372 |
+
list-style:none;
|
373 |
+
padding: 2px;
|
374 |
+
margin: 0;
|
375 |
+
display:block;
|
376 |
+
float: left;
|
377 |
+
}
|
378 |
+
.ui-menu .ui-menu {
|
379 |
+
margin-top: -3px;
|
380 |
+
}
|
381 |
+
.ui-menu .ui-menu-item {
|
382 |
+
margin:0;
|
383 |
+
padding: 0;
|
384 |
+
zoom: 1;
|
385 |
+
float: left;
|
386 |
+
clear: left;
|
387 |
+
width: 100%;
|
388 |
+
}
|
389 |
+
.ui-menu .ui-menu-item a {
|
390 |
+
text-decoration:none;
|
391 |
+
display:block;
|
392 |
+
padding:.2em .4em;
|
393 |
+
line-height:1.5;
|
394 |
+
zoom:1;
|
395 |
+
}
|
396 |
+
.ui-menu .ui-menu-item a.ui-state-hover,
|
397 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
398 |
+
font-weight: normal;
|
399 |
+
margin: -1px;
|
400 |
+
}
|
401 |
+
/*
|
402 |
+
* jQuery UI Button 1.8.13
|
403 |
+
*
|
404 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
405 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
406 |
+
* http://jquery.org/license
|
407 |
+
*
|
408 |
+
* http://docs.jquery.com/UI/Button#theming
|
409 |
+
*/
|
410 |
+
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
411 |
+
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
412 |
+
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
413 |
+
.ui-button-icons-only { width: 3.4em; }
|
414 |
+
button.ui-button-icons-only { width: 3.7em; }
|
415 |
+
|
416 |
+
/*button text element */
|
417 |
+
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
418 |
+
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
419 |
+
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
420 |
+
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
421 |
+
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
422 |
+
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
423 |
+
/* no icon support for input elements, provide padding by default */
|
424 |
+
input.ui-button { padding: .4em 1em; }
|
425 |
+
|
426 |
+
/*button icon element(s) */
|
427 |
+
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
428 |
+
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
429 |
+
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
430 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
431 |
+
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
432 |
+
|
433 |
+
/*button sets*/
|
434 |
+
.ui-buttonset { margin-right: 7px; }
|
435 |
+
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
436 |
+
|
437 |
+
/* workarounds */
|
438 |
+
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
439 |
+
/*
|
440 |
+
* jQuery UI Dialog 1.8.13
|
441 |
+
*
|
442 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
443 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
444 |
+
* http://jquery.org/license
|
445 |
+
*
|
446 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
447 |
+
*/
|
448 |
+
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
449 |
+
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
450 |
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
451 |
+
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
452 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
453 |
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
454 |
+
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
455 |
+
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
456 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
457 |
+
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
458 |
+
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
459 |
+
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
460 |
+
/*
|
461 |
+
* jQuery UI Slider 1.8.13
|
462 |
+
*
|
463 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
464 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
465 |
+
* http://jquery.org/license
|
466 |
+
*
|
467 |
* http://docs.jquery.com/UI/Slider#theming
|
468 |
*/
|
469 |
+
.ui-slider { position: relative; text-align: left; }
|
470 |
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
471 |
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
|
|
|
|
|
|
472 |
|
473 |
.ui-slider-horizontal { height: .8em; }
|
474 |
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
480 |
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
481 |
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
482 |
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
483 |
+
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
|
484 |
+
* jQuery UI Tabs 1.8.13
|
485 |
+
*
|
486 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
487 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
488 |
+
* http://jquery.org/license
|
489 |
+
*
|
490 |
+
* http://docs.jquery.com/UI/Tabs#theming
|
491 |
+
*/
|
492 |
+
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
493 |
+
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
494 |
+
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
495 |
+
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
496 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
497 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
498 |
+
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
499 |
+
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
500 |
+
.ui-tabs .ui-tabs-hide { display: none !important; }
|
501 |
+
/*
|
502 |
+
* jQuery UI Datepicker 1.8.13
|
503 |
+
*
|
504 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
505 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
506 |
+
* http://jquery.org/license
|
507 |
+
*
|
508 |
+
* http://docs.jquery.com/UI/Datepicker#theming
|
509 |
+
*/
|
510 |
+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
511 |
+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
512 |
+
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
513 |
+
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
514 |
+
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
515 |
+
.ui-datepicker .ui-datepicker-next { right:2px; }
|
516 |
+
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
517 |
+
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
518 |
+
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
519 |
+
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
520 |
+
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
521 |
+
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
522 |
+
.ui-datepicker select.ui-datepicker-month,
|
523 |
+
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
524 |
+
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
525 |
+
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
526 |
+
.ui-datepicker td { border: 0; padding: 1px; }
|
527 |
+
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
528 |
+
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
529 |
+
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
530 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
531 |
+
|
532 |
+
/* with multiple calendars */
|
533 |
+
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
534 |
+
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
535 |
+
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
536 |
+
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
537 |
+
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
538 |
+
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
539 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
540 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
541 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
542 |
+
.ui-datepicker-row-break { clear:both; width:100%; }
|
543 |
+
|
544 |
+
/* RTL support */
|
545 |
+
.ui-datepicker-rtl { direction: rtl; }
|
546 |
+
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
547 |
+
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
548 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
549 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
550 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
551 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
552 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
553 |
+
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
554 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
555 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
556 |
+
|
557 |
+
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
558 |
+
.ui-datepicker-cover {
|
559 |
+
display: none; /*sorry for IE5*/
|
560 |
+
display/**/: block; /*sorry for IE5*/
|
561 |
+
position: absolute; /*must have*/
|
562 |
+
z-index: -1; /*must have*/
|
563 |
+
filter: mask(); /*must have*/
|
564 |
+
top: -4px; /*must have*/
|
565 |
+
left: -4px; /*must have*/
|
566 |
+
width: 200px; /*must have*/
|
567 |
+
height: 200px; /*must have*/
|
568 |
+
}/*
|
569 |
+
* jQuery UI Progressbar 1.8.13
|
570 |
+
*
|
571 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
572 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
573 |
+
* http://jquery.org/license
|
574 |
+
*
|
575 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
576 |
+
*/
|
577 |
+
.ui-progressbar { height:2em; text-align: left; }
|
578 |
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
plugin-fw/init.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 2.9.
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 2.9.9
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -280,7 +280,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
280 |
|
281 |
foreach($_POST as $name => $value) {
|
282 |
|
283 |
-
// Check if current POST var
|
284 |
$attachment_id_needle = "-yith-attachment-id";
|
285 |
$is_hidden_input = (($temp = strlen($name) - strlen($attachment_id_needle)) >= 0 && strpos($name, $attachment_id_needle, $temp) !== FALSE);
|
286 |
if ($is_hidden_input){
|
280 |
|
281 |
foreach($_POST as $name => $value) {
|
282 |
|
283 |
+
// Check if current POST var name ends with a specific needle and make some stuff here
|
284 |
$attachment_id_needle = "-yith-attachment-id";
|
285 |
$is_hidden_input = (($temp = strlen($name) - strlen($attachment_id_needle)) >= 0 && strpos($name, $attachment_id_needle, $temp) !== FALSE);
|
286 |
if ($is_hidden_input){
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -146,9 +146,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
146 |
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
147 |
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
|
148 |
wp_enqueue_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
149 |
-
|
150 |
|
151 |
-
if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yit-plugins_page' ) !== false ){
|
152 |
wp_enqueue_style( 'yit-plugin-style' );
|
153 |
wp_enqueue_script( 'yit-plugin-panel' );
|
154 |
}
|
146 |
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
147 |
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
|
148 |
wp_enqueue_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
|
|
149 |
|
150 |
+
if( ( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yit-plugins_page' ) !== false ) || apply_filters( 'yit_plugin_panel_asset_loading', false ) ){
|
151 |
wp_enqueue_style( 'yit-plugin-style' );
|
152 |
wp_enqueue_script( 'yit-plugin-panel' );
|
153 |
}
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -97,15 +97,27 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
97 |
add_action( 'admin_init', array( $this, 'remove_wp_plugin_update_row' ), 15 );
|
98 |
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
99 |
} else if( is_multisite() && current_user_can( 'update_plugins' ) ) {
|
100 |
-
$
|
101 |
-
|
102 |
-
|
103 |
-
if( ! is_wp_error( $remote_xml ) && isset( $remote_xml['response']['code'] ) && '200' == $remote_xml['response']['code'] ) {
|
104 |
-
$plugin_remote_info = new SimpleXmlElement( $remote_xml['body'] );
|
105 |
-
$this->_plugins[ $plugin_init ]['info']['Latest'] = (string) $plugin_remote_info->latest;
|
106 |
-
$this->_plugins[ $plugin_init ]['info']['changelog'] = (string) $plugin_remote_info->changelog;
|
107 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'multisite_updater_script' ) );
|
108 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
110 |
}
|
111 |
|
@@ -119,8 +131,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
119 |
*/
|
120 |
public function multisite_updater_script(){
|
121 |
|
122 |
-
$update_url = array();
|
123 |
-
$changelogs = array();
|
124 |
$strings = array(
|
125 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yith-plugin-fw' ),
|
126 |
'latest' => __( 'View version %latest% details.', 'yith-plugin-fw' ),
|
@@ -131,8 +142,6 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
131 |
);
|
132 |
|
133 |
foreach( $this->_plugins as $init => $info ){
|
134 |
-
YIT_Plugin_Licence()->check( $init, false );
|
135 |
-
|
136 |
$update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
|
137 |
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
|
138 |
$details_url[ $init ] = '#TB_inline' . esc_url( add_query_arg( array( 'width' => 722, 'height' => 914, 'inlineId' => $changelog_id ) , '' ) );
|
@@ -149,8 +158,8 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
149 |
'strings' => $strings,
|
150 |
'changelogs' => $changelogs
|
151 |
);
|
152 |
-
|
153 |
-
yit_enqueue_script( 'yit-multisite-updater', YIT_CORE_PLUGIN_URL . '/assets/js/multisite-updater.
|
154 |
|
155 |
wp_localize_script( 'yit-multisite-updater', 'plugins', $localize_script_args );
|
156 |
}
|
97 |
add_action( 'admin_init', array( $this, 'remove_wp_plugin_update_row' ), 15 );
|
98 |
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
|
99 |
} else if( is_multisite() && current_user_can( 'update_plugins' ) ) {
|
100 |
+
$transient = 'yith_register_' . md5( $plugin_slug );
|
101 |
+
if( apply_filters( 'yith_register_delete_transient', false ) ){
|
102 |
+
delete_transient( $transient );
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
+
$info = get_transient( $transient );
|
105 |
+
if( false === $info || apply_filters( 'yith_register_delete_transient', false ) ){
|
106 |
+
$xml = str_replace( '%plugin_slug%', $plugin_slug, $this->_xml );
|
107 |
+
$remote_xml = wp_remote_get( $xml );
|
108 |
+
|
109 |
+
if( ! is_wp_error( $remote_xml ) && isset( $remote_xml['response']['code'] ) && '200' == $remote_xml['response']['code'] ) {
|
110 |
+
$plugin_remote_info = new SimpleXmlElement( $remote_xml['body'] );
|
111 |
+
$info['Latest'] = (string) $plugin_remote_info->latest;
|
112 |
+
$info['changelog'] = (string) $plugin_remote_info->changelog;
|
113 |
+
YIT_Plugin_Licence()->check( $plugin_slug, false );
|
114 |
+
set_transient( $transient, $info, DAY_IN_SECONDS );
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
$this->_plugins[ $plugin_init ]['info']['Latest'] = $info['Latest'];
|
119 |
+
$this->_plugins[ $plugin_init ]['info']['changelog'] = $info['changelog'];
|
120 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'multisite_updater_script' ) );
|
121 |
}
|
122 |
}
|
123 |
|
131 |
*/
|
132 |
public function multisite_updater_script(){
|
133 |
|
134 |
+
$update_url = $changelogs = $details_url = array();
|
|
|
135 |
$strings = array(
|
136 |
'new_version' => __( 'There is a new version of %plugin_name% available.', 'yith-plugin-fw' ),
|
137 |
'latest' => __( 'View version %latest% details.', 'yith-plugin-fw' ),
|
142 |
);
|
143 |
|
144 |
foreach( $this->_plugins as $init => $info ){
|
|
|
|
|
145 |
$update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
|
146 |
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
|
147 |
$details_url[ $init ] = '#TB_inline' . esc_url( add_query_arg( array( 'width' => 722, 'height' => 914, 'inlineId' => $changelog_id ) , '' ) );
|
158 |
'strings' => $strings,
|
159 |
'changelogs' => $changelogs
|
160 |
);
|
161 |
+
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
162 |
+
yit_enqueue_script( 'yit-multisite-updater', YIT_CORE_PLUGIN_URL . '/assets/js/multisite-updater' . $suffix . '.js', array( 'jquery' ), false, true );
|
163 |
|
164 |
wp_localize_script( 'yit-multisite-updater', 'plugins', $localize_script_args );
|
165 |
}
|
plugin-fw/licence/assets/js/yit-licence.min.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
(function(b){var
|
2 |
-
|
3 |
-
|
4 |
-
k()}})})},
|
|
|
|
|
|
1 |
+
(function(b){var k=function(a){a.on("click",function(v,e){v.preventDefault();var a=b(this),c=a.data("formid"),d=b("#"+c),f=d.serialize(),h=b(d).find(".message"),g=b(d).find(".message-wrapper"),m=d.find(".user-email"),u=d.find(".licence-key"),k=d.find(".user-email").val(),t=d.find(".licence-key").val(),n=!1,c=[],p=d.find(".product-row"),q=b(".licence-activation"),r=b("#products-to-active").find(".spinner");h.empty();g.removeClass("visible");m.removeClass("require");u.removeClass("require");p.removeClass("error");
|
2 |
+
r.addClass("show");a.add(q).prop("disabled",!0).addClass("clicked");""==k&&(n=!0,c[c.length]=licence_message.email,m.addClass("require"));""==t&&(n=!0,c[c.length]=licence_message.license_key,u.addClass("require"));if(0==n)jQuery.ajax({type:"POST",url:ajaxurl,data:f,success:function(c){r.removeClass("show");a.add(q).prop("disabled",!1).removeClass("clicked");1==c.activated?(b(".product-licence-activation").empty().replaceWith(c.template),l()):(0!=c?h.text(c.error):h.text(licence_message.server),g.addClass("visible"),
|
3 |
+
p.addClass("error"))}});else{if(1==c.length)h.text(licence_message.error.replace("%field%",c[0]));else{d=licence_message.errors;for(f=0;f<c.length;f++)d=d.replace("%field_"+(f+1)+"%",c[f]),g.addClass("visible");h.text(d)}g.addClass("visible");p.addClass("error");r.removeClass("show");a.add(q).prop("disabled",!1).removeClass("clicked")}})},t=function(a){a.on("click",function(a){a.preventDefault();a=b(this);var e=b("#licence-check-update"),k=e.serialize();a.prop("disabled",!0).addClass("clicked");e.find("div.spinner").addClass("show");
|
4 |
+
jQuery.ajax({type:"POST",url:ajaxurl,data:k,success:function(c){b(".product-licence-activation").empty().replaceWith(c.template);l()}})})},w=function(a){a.on("click",function(a){a.preventDefault();if(1==(1==script_info.is_debug?!0:confirm(licence_message.are_you_sure))){var e=b(this);a=e.data("licence-key");var k=e.data("licence-email"),c=e.data("product-init"),d=e.data("action"),f=b(".licence-renew"),h=b(".licence-deactive"),g=b("#yith-licence-notice"),m=b(".activated-table");e.add(f).add(h).prop("disabled",
|
5 |
+
!0).addClass("clicked");b("#activated-products").find(".spinner").addClass("show");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:d,licence_key:a,email:k,product_init:c},success:function(a){g.css("maxWidth",m.width());0==a.activated&&"undefined"==typeof a.error&&(b(".product-licence-activation").empty().replaceWith(a.template),l());0==a.activated&&"undefined"!=typeof a.error?(g.find("p.yith-licence-notice-message").html(a.error),g.removeClass("notice-success").addClass("notice-error visible"),
|
6 |
+
e.add(f).add(h).add(f).prop("disabled",!1).removeClass("clicked"),b("#activated-products").find(".spinner").removeClass("show")):0==a&&(g.find("p.yith-licence-notice-message").html(licence_message.server),g.removeClass("notice-success").addClass("notice-error visible"),e.add(f).add(h).add(f).prop("disabled",!1).removeClass("clicked"),b("#activated-products").find(".spinner").removeClass("show"))}})}})},l=function(){var a=b(".licence-activation"),l=b(".licence-check"),e=b(".licence-deactive");k(a);
|
7 |
+
t(l);w(e)};l();b("body").on("click",".yit-changelog-button",function(a){b("#TB_window").remove()})})(jQuery);
|
templates/single-product/product-image-magnifier.php
CHANGED
@@ -3,43 +3,43 @@
|
|
3 |
* Single Product Image
|
4 |
*
|
5 |
* @author YIThemes
|
6 |
-
* @package
|
7 |
-
* @version
|
8 |
*/
|
9 |
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
|
12 |
} // Exit if accessed directly
|
13 |
|
14 |
global $post, $woocommerce, $product, $is_IE;
|
15 |
|
16 |
-
$enable_slider = get_option( 'yith_wcmg_enableslider' ) == 'yes' ? true : false;
|
17 |
-
$placeholder = function_exists( 'wc_placeholder_img_src' ) ? wc_placeholder_img_src() : woocommerce_placeholder_img_src();
|
18 |
|
19 |
-
$slider_items = get_option( 'yith_wcmg_slider_items', 3 );
|
20 |
if ( ! isset( $slider_items ) || ( $slider_items == null ) ) {
|
21 |
-
|
22 |
}
|
23 |
|
24 |
?>
|
25 |
<div class="images<?php if ( $is_IE ): ?> ie<?php endif ?>">
|
26 |
|
27 |
-
|
28 |
-
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
|
44 |
</div>
|
45 |
|
@@ -49,11 +49,11 @@ if ( ! isset( $slider_items ) || ( $slider_items == null ) ) {
|
|
49 |
|
50 |
enableSlider: <?php echo $enable_slider ? 'true' : 'false' ?>,
|
51 |
|
52 |
-
<?php if( $enable_slider ): ?>
|
53 |
sliderOptions: {
|
54 |
-
responsive: <?php echo get_option('yith_wcmg_slider_responsive') == 'yes' ? 'true' : 'false' ?>,
|
55 |
-
circular: <?php echo get_option('yith_wcmg_slider_circular') == 'yes' ? 'true' : 'false' ?>,
|
56 |
-
infinite: <?php echo get_option('yith_wcmg_slider_infinite') == 'yes' ? 'true' : 'false' ?>,
|
57 |
direction: 'left',
|
58 |
debug: false,
|
59 |
auto: false,
|
@@ -66,31 +66,34 @@ if ( ! isset( $slider_items ) || ( $slider_items == null ) ) {
|
|
66 |
button: "#slider-next",
|
67 |
key: "right"
|
68 |
},
|
69 |
-
//width : <?php echo yit_shop_single_w() + 18 ?>,
|
70 |
scroll: {
|
71 |
items: 1,
|
72 |
pauseOnHover: true
|
73 |
},
|
74 |
items: {
|
75 |
-
//width: <?php echo yit_shop_thumbnail_w() + 4 ?>,
|
76 |
-
visible: <?php echo apply_filters( 'woocommerce_product_thumbnails_columns', $slider_items ) ?>
|
77 |
}
|
78 |
},
|
79 |
|
80 |
<?php endif ?>
|
81 |
|
82 |
showTitle: false,
|
83 |
-
zoomWidth: '<?php echo get_option('yith_wcmg_zoom_width') ?>',
|
84 |
-
zoomHeight: '<?php echo get_option('yith_wcmg_zoom_height') ?>',
|
85 |
-
position: '<?php echo get_option('yith_wcmg_zoom_position') ?>',
|
86 |
//tint: <?php //echo get_option('yith_wcmg_tint') == '' ? 'false' : "'".get_option('yith_wcmg_tint')."'" ?>,
|
87 |
//tintOpacity: <?php //echo get_option('yith_wcmg_tint_opacity') ?>,
|
88 |
-
lensOpacity: <?php echo get_option('yith_wcmg_lens_opacity') ?>,
|
89 |
-
softFocus: <?php echo get_option('yith_wcmg_softfocus') == 'yes' ? 'true' : 'false' ?>,
|
90 |
//smoothMove: <?php //echo get_option('yith_wcmg_smooth') ?>,
|
91 |
adjustY: 0,
|
92 |
disableRightClick: false,
|
93 |
-
phoneBehavior: '<?php echo get_option('yith_wcmg_zoom_mobile_position') ?>',
|
94 |
-
loadingLabel: '<?php echo stripslashes(get_option('yith_wcmg_loading_label')) ?>'
|
|
|
95 |
};
|
|
|
|
|
96 |
</script>
|
3 |
* Single Product Image
|
4 |
*
|
5 |
* @author YIThemes
|
6 |
+
* @package YITH_Magnifier/Templates
|
7 |
+
* @version 1.1.2
|
8 |
*/
|
9 |
|
10 |
+
if ( ! defined ( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
} // Exit if accessed directly
|
13 |
|
14 |
global $post, $woocommerce, $product, $is_IE;
|
15 |
|
16 |
+
$enable_slider = get_option ( 'yith_wcmg_enableslider' ) == 'yes' ? true : false;
|
17 |
+
$placeholder = function_exists ( 'wc_placeholder_img_src' ) ? wc_placeholder_img_src () : woocommerce_placeholder_img_src ();
|
18 |
|
19 |
+
$slider_items = get_option ( 'yith_wcmg_slider_items', 3 );
|
20 |
if ( ! isset( $slider_items ) || ( $slider_items == null ) ) {
|
21 |
+
$slider_items = 3;
|
22 |
}
|
23 |
|
24 |
?>
|
25 |
<div class="images<?php if ( $is_IE ): ?> ie<?php endif ?>">
|
26 |
|
27 |
+
<?php
|
28 |
+
if ( has_post_thumbnail () ) {
|
29 |
|
30 |
+
$image = get_the_post_thumbnail ( $post->ID, apply_filters ( 'single_product_large_thumbnail_size', 'shop_single' ) );
|
31 |
+
$image_title = esc_attr ( get_the_title ( get_post_thumbnail_id () ) );
|
32 |
+
$image_link = wp_get_attachment_url ( get_post_thumbnail_id () );
|
33 |
+
list( $magnifier_url, $magnifier_width, $magnifier_height ) = wp_get_attachment_image_src ( get_post_thumbnail_id (), "shop_magnifier" );
|
34 |
|
35 |
+
echo apply_filters ( 'woocommerce_single_product_image_html', sprintf ( '<a href="%s" itemprop="image" class="yith_magnifier_zoom woocommerce-main-image" title="%s">%s</a>', $magnifier_url, $image_title, $image ), $post->ID );
|
36 |
|
37 |
+
} else {
|
38 |
+
echo apply_filters ( 'woocommerce_single_product_image_html', sprintf ( '<a href="%s" itemprop="image" class="yith_magnifier_zoom woocommerce-main-image"><img src="%s" alt="Placeholder" /></a>', $placeholder, $placeholder ), $post->ID );
|
39 |
+
}
|
40 |
+
?>
|
41 |
|
42 |
+
<?php do_action ( 'woocommerce_product_thumbnails' ); ?>
|
43 |
|
44 |
</div>
|
45 |
|
49 |
|
50 |
enableSlider: <?php echo $enable_slider ? 'true' : 'false' ?>,
|
51 |
|
52 |
+
<?php if ( $enable_slider ): ?>
|
53 |
sliderOptions: {
|
54 |
+
responsive: <?php echo get_option ( 'yith_wcmg_slider_responsive' ) == 'yes' ? 'true' : 'false' ?>,
|
55 |
+
circular: <?php echo get_option ( 'yith_wcmg_slider_circular' ) == 'yes' ? 'true' : 'false' ?>,
|
56 |
+
infinite: <?php echo get_option ( 'yith_wcmg_slider_infinite' ) == 'yes' ? 'true' : 'false' ?>,
|
57 |
direction: 'left',
|
58 |
debug: false,
|
59 |
auto: false,
|
66 |
button: "#slider-next",
|
67 |
key: "right"
|
68 |
},
|
69 |
+
//width : <?php echo yit_shop_single_w () + 18 ?>,
|
70 |
scroll: {
|
71 |
items: 1,
|
72 |
pauseOnHover: true
|
73 |
},
|
74 |
items: {
|
75 |
+
//width: <?php echo yit_shop_thumbnail_w () + 4 ?>,
|
76 |
+
visible: <?php echo apply_filters ( 'woocommerce_product_thumbnails_columns', $slider_items ) ?>
|
77 |
}
|
78 |
},
|
79 |
|
80 |
<?php endif ?>
|
81 |
|
82 |
showTitle: false,
|
83 |
+
zoomWidth: '<?php echo get_option ( 'yith_wcmg_zoom_width' ) ?>',
|
84 |
+
zoomHeight: '<?php echo get_option ( 'yith_wcmg_zoom_height' ) ?>',
|
85 |
+
position: '<?php echo get_option ( 'yith_wcmg_zoom_position' ) ?>',
|
86 |
//tint: <?php //echo get_option('yith_wcmg_tint') == '' ? 'false' : "'".get_option('yith_wcmg_tint')."'" ?>,
|
87 |
//tintOpacity: <?php //echo get_option('yith_wcmg_tint_opacity') ?>,
|
88 |
+
lensOpacity: <?php echo get_option ( 'yith_wcmg_lens_opacity' ) ?>,
|
89 |
+
softFocus: <?php echo get_option ( 'yith_wcmg_softfocus' ) == 'yes' ? 'true' : 'false' ?>,
|
90 |
//smoothMove: <?php //echo get_option('yith_wcmg_smooth') ?>,
|
91 |
adjustY: 0,
|
92 |
disableRightClick: false,
|
93 |
+
phoneBehavior: '<?php echo get_option ( 'yith_wcmg_zoom_mobile_position' ) ?>',
|
94 |
+
loadingLabel: '<?php echo stripslashes ( get_option ( 'yith_wcmg_loading_label' ) ) ?>',
|
95 |
+
zoom_wrap_additional_css: '<?php echo apply_filters ( 'yith_ywzm_zoom_wrap_additional_css', '', $post->ID ); ?>',
|
96 |
};
|
97 |
+
|
98 |
+
|
99 |
</script>
|