WP Image Zoom - Version 1.49

Version Description

  • 11/02/2021
  • Fix: remove the "wc-product-gallery-slider" theme support for themes without a slider
  • Fix: on websites built with Beaver Builder the zoom effect was not shown on the frontend
Download this release

Release Info

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

Code changes from version 1.48 to 1.49

assets/js/image_zoom-init.js CHANGED
@@ -19,7 +19,7 @@ jQuery(document).ready(function( $ ){
19
 
20
  // Is this an Elementor editor iframe.
21
  if ( $('body.elementor-editor-active').length > 0
22
- || $('body.fl-builder').length > 0
23
  || url.indexOf('vc_action=vc_inline') > 0
24
  || url.indexOf('vc_editable=true') > 0
25
  || url.indexOf('et_fb=') > 0 ) {
19
 
20
  // Is this an Elementor editor iframe.
21
  if ( $('body.elementor-editor-active').length > 0
22
+ || $('body.fl-builder-edit').length > 0
23
  || url.indexOf('vc_action=vc_inline') > 0
24
  || url.indexOf('vc_editable=true') > 0
25
  || url.indexOf('et_fb=') > 0 ) {
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.48
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
@@ -26,7 +26,7 @@ if ( ! class_exists( 'ImageZoooom' ) ) :
26
  * @class ImageZoooom
27
  */
28
  final class ImageZoooom {
29
- public $version = '1.48';
30
  public $theme = '';
31
  protected static $_instance = null;
32
 
@@ -107,8 +107,14 @@ if ( ! class_exists( 'ImageZoooom' ) ) :
107
  // remove_theme_support( 'wc-product-gallery-lightbox' );
108
  add_theme_support( 'wc-product-gallery-slider' );
109
 
110
- if ( $this->theme( 'kiddy' ) || ( $this->theme( 'flatsome' ) && ! get_theme_mod( 'product_gallery_woocommerce' ) ) ) {
111
- remove_theme_support( 'wc-product-gallery-slider' );
 
 
 
 
 
 
112
  }
113
 
114
  if ( $this->theme( 'thegem' ) ) {
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.49
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
26
  * @class ImageZoooom
27
  */
28
  final class ImageZoooom {
29
+ public $version = '1.49';
30
  public $theme = '';
31
  protected static $_instance = null;
32
 
107
  // remove_theme_support( 'wc-product-gallery-lightbox' );
108
  add_theme_support( 'wc-product-gallery-slider' );
109
 
110
+ $themes_no_slider = array( 'kiddy', 'oshin', 'startit', 'flatsome', 'retail-therapy', 'woodmart' );
111
+ if ( $this->theme( 'bridge' ) && ! defined( 'QODE_FRAMEWORK_ADMIN_ASSETS_ROOT' ) ) {
112
+ $themes_no_slider[] = 'bridge';
113
+ }
114
+ foreach ( $themes_no_slider as $_t ) {
115
+ if ( $this->theme( $_t ) ) {
116
+ remove_theme_support( 'wc-product-gallery-slider' );
117
+ }
118
  }
119
 
120
  if ( $this->theme( 'thegem' ) ) {
includes/class-iz-compatibilities.php CHANGED
@@ -153,7 +153,7 @@ class IZ_Compatibilities {
153
  }
154
 
155
  if ( defined( 'FL_BUILDER_VERSION' ) ) {
156
- $style .= 'body.fl-builder .zoooom::before' . $zoom_class_in_editor;
157
  }
158
 
159
  if ( defined( 'BRIZY_VERSION' ) ) {
153
  }
154
 
155
  if ( defined( 'FL_BUILDER_VERSION' ) ) {
156
+ $style .= 'body.fl-builder-edit .zoooom::before' . $zoom_class_in_editor;
157
  }
158
 
159
  if ( defined( 'BRIZY_VERSION' ) ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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: 5.9
8
- Stable tag: 1.48
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
@@ -155,6 +155,11 @@ Alternatively you can upgrade to the Pro version, as there the zoom lens is buil
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
158
  = 1.48 =
159
  * 10/14/2021
160
  * Feature: support select-themes.com which add a wrapper on top of the page
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: 5.9
8
+ Stable tag: 1.49
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
155
 
156
  == Changelog ==
157
 
158
+ = 1.49 =
159
+ * 11/02/2021
160
+ * Fix: remove the "wc-product-gallery-slider" theme support for themes without a slider
161
+ * Fix: on websites built with Beaver Builder the zoom effect was not shown on the frontend
162
+
163
  = 1.48 =
164
  * 10/14/2021
165
  * Feature: support select-themes.com which add a wrapper on top of the page