WP Image Zoom - Version 1.26

Version Description

  • 11/08/2018
  • Fix: add back prettyPhoto for the Sovereign theme
  • Fix: WooCommerce 3.0+ gallery with one image and with a flex gallery on the same page was not working
  • Fix: Flatsome theme with the default WooCommerce gallery, don't remove the gallery-slider support
  • Tweak: update the list of themes that add a whole page wrapper with the z-index higher than the zoom
  • Tweak: change the detectmobilebrowser library from jQuery to pure JS
Download this release

Release Info

Developer diana_burduja
Plugin Icon 128x128 WP Image Zoom
Version 1.26
Comparing to
See all releases

Code changes from version 1.25 to 1.26

assets/js/image_zoom-init.js CHANGED
@@ -1,11 +1,17 @@
1
- ;(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|android|ipad|playbook|silk|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
 
 
 
 
 
 
2
 
3
  !function(a){function b(){var a=document.createElement("p"),b=!1;if(a.addEventListener)a.addEventListener("DOMAttrModified",function(){b=!0},!1);else{if(!a.attachEvent)return!1;a.attachEvent("onDOMAttrModified",function(){b=!0})}return a.setAttribute("id","target"),b}function c(b,c){if(b){var d=this.data("attr-old-value");if(c.attributeName.indexOf("style")>=0){d.style||(d.style={});var e=c.attributeName.split(".");c.attributeName=e[0],c.oldValue=d.style[e[1]],c.newValue=e[1]+":"+this.prop("style")[a.camelCase(e[1])],d.style[e[1]]=c.newValue}else c.oldValue=d[c.attributeName],c.newValue=this.attr(c.attributeName),d[c.attributeName]=c.newValue;this.data("attr-old-value",d)}}var d=window.MutationObserver||window.WebKitMutationObserver;a.fn.attrchange=function(e,f){if("object"==typeof e){var g={trackValues:!1,callback:a.noop};if("function"==typeof e?g.callback=e:a.extend(g,e),g.trackValues&&this.each(function(b,c){for(var d,e={},f=0,g=c.attributes,h=g.length;h>f;f++)d=g.item(f),e[d.nodeName]=d.value;a(this).data("attr-old-value",e)}),d){var h={subtree:!1,attributes:!0,attributeOldValue:g.trackValues},i=new d(function(b){b.forEach(function(b){var c=b.target;g.trackValues&&(b.newValue=a(c).attr(b.attributeName)),"connected"===a(c).data("attrchange-status")&&g.callback.call(c,b)})});return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",i).each(function(){i.observe(this,h)})}return b()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(b){b.originalEvent&&(b=b.originalEvent),b.attributeName=b.attrName,b.oldValue=b.prevValue,"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(b){b.attributeName=window.event.propertyName,c.call(a(this),g.trackValues,b),"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):this}return"string"==typeof e&&a.fn.attrchange.hasOwnProperty("extensions")&&a.fn.attrchange.extensions.hasOwnProperty(e)?a.fn.attrchange.extensions[e].call(this,f):void 0}}(jQuery);
4
 
5
 
6
  jQuery(document).ready(function( $ ){
7
 
8
- if($.browser.mobile && IZ.enable_mobile != '1' ) {
9
  return;
10
  }
11
 
@@ -62,6 +68,8 @@ jQuery(document).ready(function( $ ){
62
  $(".zoomContainer").remove();
63
  if ( IZ.with_woocommerce == '1' ) {
64
  $("img.zoooom, .attachment-shop_single, .attachment-shop_thumbnail.flex-active-slide img").image_zoom(options);
 
 
65
  }
66
  if ( IZ.woo_categories == '1' ) {
67
  $(".tax-product_cat .products img").image_zoom(options);
@@ -170,7 +178,7 @@ jQuery(document).ready(function( $ ){
170
 
171
  var first_img = ".woocommerce-product-gallery__wrapper img";
172
  setTimeout( function() {
173
- if ( $(".flex-viewport").length > 0 ) {
174
  first_img = ".woocommerce-product-gallery__wrapper .flex-active-slide img";
175
  }
176
  $(first_img).first().image_zoom( options );
1
+ ;window.mobilecheck = function() {
2
+ var check = false;
3
+ (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
4
+ return check;
5
+ };
6
+
7
+
8
 
9
  !function(a){function b(){var a=document.createElement("p"),b=!1;if(a.addEventListener)a.addEventListener("DOMAttrModified",function(){b=!0},!1);else{if(!a.attachEvent)return!1;a.attachEvent("onDOMAttrModified",function(){b=!0})}return a.setAttribute("id","target"),b}function c(b,c){if(b){var d=this.data("attr-old-value");if(c.attributeName.indexOf("style")>=0){d.style||(d.style={});var e=c.attributeName.split(".");c.attributeName=e[0],c.oldValue=d.style[e[1]],c.newValue=e[1]+":"+this.prop("style")[a.camelCase(e[1])],d.style[e[1]]=c.newValue}else c.oldValue=d[c.attributeName],c.newValue=this.attr(c.attributeName),d[c.attributeName]=c.newValue;this.data("attr-old-value",d)}}var d=window.MutationObserver||window.WebKitMutationObserver;a.fn.attrchange=function(e,f){if("object"==typeof e){var g={trackValues:!1,callback:a.noop};if("function"==typeof e?g.callback=e:a.extend(g,e),g.trackValues&&this.each(function(b,c){for(var d,e={},f=0,g=c.attributes,h=g.length;h>f;f++)d=g.item(f),e[d.nodeName]=d.value;a(this).data("attr-old-value",e)}),d){var h={subtree:!1,attributes:!0,attributeOldValue:g.trackValues},i=new d(function(b){b.forEach(function(b){var c=b.target;g.trackValues&&(b.newValue=a(c).attr(b.attributeName)),"connected"===a(c).data("attrchange-status")&&g.callback.call(c,b)})});return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",i).each(function(){i.observe(this,h)})}return b()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(b){b.originalEvent&&(b=b.originalEvent),b.attributeName=b.attrName,b.oldValue=b.prevValue,"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(b){b.attributeName=window.event.propertyName,c.call(a(this),g.trackValues,b),"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):this}return"string"==typeof e&&a.fn.attrchange.hasOwnProperty("extensions")&&a.fn.attrchange.extensions.hasOwnProperty(e)?a.fn.attrchange.extensions[e].call(this,f):void 0}}(jQuery);
10
 
11
 
12
  jQuery(document).ready(function( $ ){
13
 
14
+ if(window.mobilecheck() && IZ.enable_mobile != '1' ) {
15
  return;
16
  }
17
 
68
  $(".zoomContainer").remove();
69
  if ( IZ.with_woocommerce == '1' ) {
70
  $("img.zoooom, .attachment-shop_single, .attachment-shop_thumbnail.flex-active-slide img").image_zoom(options);
71
+ } else {
72
+ $("img.zoooom, .zoooom img").image_zoom(options);
73
  }
74
  if ( IZ.woo_categories == '1' ) {
75
  $(".tax-product_cat .products img").image_zoom(options);
178
 
179
  var first_img = ".woocommerce-product-gallery__wrapper img";
180
  setTimeout( function() {
181
+ if ( $(".woocommerce-product-gallery .flex-viewport").length > 0 ) {
182
  first_img = ".woocommerce-product-gallery__wrapper .flex-active-slide img";
183
  }
184
  $(first_img).first().image_zoom( options );
image-zoooom.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Image Zoom
4
  * Plugin URI: https://wordpress.org/plugins/wp-image-zoooom/
5
  * Description: Add zoom effect over the an image, whether it is an image in a post/page or the featured image of a product in a WooCommerce shop
6
- * Version: 1.25
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
@@ -50,14 +50,14 @@ final class ImageZoooom {
50
  * Cloning is forbidden.
51
  */
52
  public function __clone() {
53
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'wp-image-zoooom' ), '1.0' );
54
  }
55
 
56
  /**
57
  * Unserializing instances of this class is forbidden.
58
  */
59
  public function __wakeup() {
60
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'wp-image-zoooom' ), '1.0' );
61
  }
62
 
63
  /**
@@ -101,7 +101,7 @@ final class ImageZoooom {
101
  //remove_theme_support( 'wc-product-gallery-lightbox' );
102
  add_theme_support( 'wc-product-gallery-slider' );
103
 
104
- if ($this->theme('kiddy') || $this->theme('flatsome')) {
105
  remove_theme_support( 'wc-product-gallery-slider' );
106
  }
107
  }
@@ -263,7 +263,7 @@ final class ImageZoooom {
263
  $wrapper_themes = array(
264
  array(
265
  'rule' => '.wrapper { z-index: 40 !important; }',
266
- 'themes' => array('bridge', 'nouveau', 'stockholm', 'tactile', 'vigor', 'homa', 'hudsonwp', ),
267
  ),
268
  array(
269
  'rule' => '.qodef-wrapper { z-index: 200 !important; }',
@@ -285,7 +285,16 @@ final class ImageZoooom {
285
  'rule' => '.sidebar-menu-push { z-index: 40 !important; }',
286
  'themes' => array('artcore'),
287
  ),
 
 
 
 
 
 
 
 
288
  );
 
289
  foreach( $wrapper_themes as $_v ) {
290
  if ( in_array($theme, $_v['themes'] ) ) {
291
  echo '<style type="text/css">' . $_v['rule'] . '</style>'. PHP_EOL;
@@ -322,6 +331,11 @@ final class ImageZoooom {
322
  wp_dequeue_script( 'prettyPhoto' );
323
  wp_dequeue_script( 'prettyPhoto-init' );
324
  }
 
 
 
 
 
325
  }
326
 
327
  function get_localize_vars() {
3
  * Plugin Name: WP Image Zoom
4
  * Plugin URI: https://wordpress.org/plugins/wp-image-zoooom/
5
  * Description: Add zoom effect over the an image, whether it is an image in a post/page or the featured image of a product in a WooCommerce shop
6
+ * Version: 1.26
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
50
  * Cloning is forbidden.
51
  */
52
  public function __clone() {
53
+ _doing_it_wrong( __FUNCTION__, __( 'An error has occurred. Please reload the page and try again.' ), '1.0' );
54
  }
55
 
56
  /**
57
  * Unserializing instances of this class is forbidden.
58
  */
59
  public function __wakeup() {
60
+ _doing_it_wrong( __FUNCTION__, __( 'An error has occurred. Please reload the page and try again.' ), '1.0' );
61
  }
62
 
63
  /**
101
  //remove_theme_support( 'wc-product-gallery-lightbox' );
102
  add_theme_support( 'wc-product-gallery-slider' );
103
 
104
+ if ($this->theme('kiddy') || ($this->theme('flatsome') && get_theme_mod('product_gallery_woocommerce'))) {
105
  remove_theme_support( 'wc-product-gallery-slider' );
106
  }
107
  }
263
  $wrapper_themes = array(
264
  array(
265
  'rule' => '.wrapper { z-index: 40 !important; }',
266
+ 'themes' => array('bridge', 'nouveau', 'stockholm', 'tactile', 'vigor', 'homa', 'hudsonwp', 'borderland', 'moose'),
267
  ),
268
  array(
269
  'rule' => '.qodef-wrapper { z-index: 200 !important; }',
285
  'rule' => '.sidebar-menu-push { z-index: 40 !important; }',
286
  'themes' => array('artcore'),
287
  ),
288
+ array(
289
+ 'rule' => '.eltdf-wrapper { z-index: 40 !important; }',
290
+ 'themes' => array('readanddigest', 'tomasdaisy', 'virtuoso', 'blu', 'superfood', 'ambient', 'koto', 'azaleawp', 'all4home', 'mrseo', 'vibez', 'sweettooth', 'halogen', 'vino', 'ion', 'satine', 'nightshade', 'esmarts', 'makoto', 'mane', 'imogen', 'yvette', 'gourmand', 'sceon', 'calla', 'corretto', 'allston'),
291
+ ),
292
+ array(
293
+ 'rule' => '.eltd-wrapper { z-index: 40 !important; }',
294
+ 'themes' => array('woly', 'averly', 'search-and-go', 'flow', 'kreate', 'allure', 'chandelier', 'malmo', 'minnesota', 'newsroom', 'kendall', 'savory', 'creator', 'awake', 'diorama', 'medipoint', 'audrey', 'findme', 'april', 'bizfinder', 'bjorn', 'trackstore', 'albergo', 'vakker', 'tamashi', 'bonvoyage')
295
+ ),
296
  );
297
+
298
  foreach( $wrapper_themes as $_v ) {
299
  if ( in_array($theme, $_v['themes'] ) ) {
300
  echo '<style type="text/css">' . $_v['rule'] . '</style>'. PHP_EOL;
331
  wp_dequeue_script( 'prettyPhoto' );
332
  wp_dequeue_script( 'prettyPhoto-init' );
333
  }
334
+
335
+ if ( $this->theme('sovereign') ) {
336
+ wp_enqueue_script( 'prettyPhoto' );
337
+ wp_enqueue_script( 'prettyPhoto-init' );
338
+ }
339
  }
340
 
341
  function get_localize_vars() {
includes/image-zoom-admin-general.php CHANGED
@@ -88,7 +88,7 @@ include_once( 'premium-tooltips.php' );
88
  <?php
89
  $iz_forms_helper->label_class = 'col-sm-6 control-label';
90
 
91
- $fields = array('enable_woocommerce', 'exchange_thumbnails', 'woo_cat', 'woo_variations', 'enable_mobile', 'remove_lightbox_thumbnails', 'remove_lightbox', 'force_attachments', 'custom_class', 'flexslider', 'owl', 'flickity', 'huge_it_gallery', 'enable_lightbox_zoom' );
92
 
93
  if ( class_exists('woocommerce') && version_compare( WC_VERSION, '3.0', '>') ) {
94
  unset($fields[array_search('exchange_thumbnails', $fields)]);
88
  <?php
89
  $iz_forms_helper->label_class = 'col-sm-6 control-label';
90
 
91
+ $fields = array('enable_woocommerce', 'exchange_thumbnails', 'woo_cat', 'woo_variations', 'enable_mobile', 'remove_lightbox_thumbnails', 'remove_lightbox', 'force_attachments', 'custom_class', 'flexslider', 'owl', 'flickity', 'slick', 'huge_it_gallery', 'enable_lightbox_zoom' );
92
 
93
  if ( class_exists('woocommerce') && version_compare( WC_VERSION, '3.0', '>') ) {
94
  unset($fields[array_search('exchange_thumbnails', $fields)]);
includes/settings.php CHANGED
@@ -6,7 +6,7 @@ function wp_image_zoooom_settings($type) {
6
  $l = 'wp-image-zoooom';
7
 
8
  $plugin = array(
9
- 'version' => '1.25',
10
  'plugin_name' => 'WP Image Zoom',
11
  'plugin_file' => str_replace('includes/settings.php', 'image-zoooom.php', __FILE__),
12
  'plugin_server' => 'https://www.silkypress.com',
@@ -69,7 +69,7 @@ function wp_image_zoooom_settings($type) {
69
  'label' => __('Fade Time', $l ),
70
  'post_input' => 'sec',
71
  'value' => 0.5,
72
- 'description' => __('The amount of time it takes for the Lens to slowly appear or dissapear', $l),
73
  'input_form' => 'input_text',
74
  ),
75
  'tint' => array(
@@ -224,8 +224,13 @@ function wp_image_zoooom_settings($type) {
224
  'pro' => true,
225
  'description' => __('If the images are in a Flickity Carousel gallery, then type in here the class of the div containing the Flickity Carousel gallery', $l ),
226
  ),
227
-
228
-
 
 
 
 
 
229
 
230
 
231
  /*
6
  $l = 'wp-image-zoooom';
7
 
8
  $plugin = array(
9
+ 'version' => '1.26',
10
  'plugin_name' => 'WP Image Zoom',
11
  'plugin_file' => str_replace('includes/settings.php', 'image-zoooom.php', __FILE__),
12
  'plugin_server' => 'https://www.silkypress.com',
69
  'label' => __('Fade Time', $l ),
70
  'post_input' => 'sec',
71
  'value' => 0.5,
72
+ 'description' => __('The amount of time it takes for the Lens to slowly appear or disappear', $l),
73
  'input_form' => 'input_text',
74
  ),
75
  'tint' => array(
224
  'pro' => true,
225
  'description' => __('If the images are in a Flickity Carousel gallery, then type in here the class of the div containing the Flickity Carousel gallery', $l ),
226
  ),
227
+ 'slick' => array(
228
+ 'label' => __('<a href="https://kenwheeler.github.io/slick/" target="_blank">Slick carousel</a> container class', $l),
229
+ 'value' => '',
230
+ 'input_form' => 'input_text',
231
+ 'description' => __('If the images are in a Slick carousel gallery, then type in here the class of the div containing the Slick carousel gallery', $l ),
232
+ 'pro' => true,
233
+ ),
234
 
235
 
236
  /*
readme.txt CHANGED
@@ -5,9 +5,10 @@ Email: diana@burduja.eu
5
  Tags: e-commerce, featured image, hover over image zoom, image, image zoom, image zoom plugin, image magnification, image magnifier, jquery picture zoom, magnifier, magnify image, magnifying glass, mouse over image zoom, panorama, picture zoom, product image, product zoom, product magnification, product magnifier, responsive, woocommerce product zoom, woocommerce zoom, woocommerce magnifying glass, zoom, zoom image, zoom plugin, woocommerce image zoom, woocommerce product image zoom, woocommerce zoom magnifier
6
  Requires at least: 3.0.1
7
  Tested up to: 4.9
8
- Stable tag: 1.25
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
 
11
 
12
  Awesome image zoom plugin for images in posts/pages and for WooCommerce products.
13
 
@@ -144,6 +145,14 @@ Alternatively you can upgrade to the Pro version, as there the zoom lens is buil
144
 
145
  == Changelog ==
146
 
 
 
 
 
 
 
 
 
147
  = 1.25 =
148
  * 31/03/2018
149
  * Fix: Fatal error for PHP older than 5.5
5
  Tags: e-commerce, featured image, hover over image zoom, image, image zoom, image zoom plugin, image magnification, image magnifier, jquery picture zoom, magnifier, magnify image, magnifying glass, mouse over image zoom, panorama, picture zoom, product image, product zoom, product magnification, product magnifier, responsive, woocommerce product zoom, woocommerce zoom, woocommerce magnifying glass, zoom, zoom image, zoom plugin, woocommerce image zoom, woocommerce product image zoom, woocommerce zoom magnifier
6
  Requires at least: 3.0.1
7
  Tested up to: 4.9
8
+ Stable tag: 1.26
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
+ Requires PHP: 5.2.4
12
 
13
  Awesome image zoom plugin for images in posts/pages and for WooCommerce products.
14
 
145
 
146
  == Changelog ==
147
 
148
+ = 1.26 =
149
+ * 11/08/2018
150
+ * Fix: add back prettyPhoto for the Sovereign theme
151
+ * Fix: WooCommerce 3.0+ gallery with one image and with a flex gallery on the same page was not working
152
+ * Fix: Flatsome theme with the default WooCommerce gallery, don't remove the gallery-slider support
153
+ * Tweak: update the list of themes that add a whole page wrapper with the z-index higher than the zoom
154
+ * Tweak: change the detectmobilebrowser library from jQuery to pure JS
155
+
156
  = 1.25 =
157
  * 31/03/2018
158
  * Fix: Fatal error for PHP older than 5.5