Version Description
- 09/07/2019
- Fix: Elementor lightbox skewed if zoom applied on it (https://wordpress.org/support/topic/elementor-lightbox-2/)
- Fix: zoom wasn't initiating when some lazy load plugins are installed on the website
- Add notice about the WooCommerce product gallery from the Avada theme
Download this release
Release Info
Developer | diana_burduja |
Plugin | WP Image Zoom |
Version | 1.36 |
Comparing to | |
See all releases |
Code changes from version 1.35 to 1.36
- assets/js/image_zoom-init.js +6 -0
- image-zoooom.php +5 -2
- includes/admin-side.php +11 -0
- readme.txt +7 -1
assets/js/image_zoom-init.js
CHANGED
@@ -22,6 +22,12 @@ jQuery(document).ready(function( $ ){
|
|
22 |
$(this).attr('data-zoom-image', $(this).data('lazy-src'));
|
23 |
});
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
// Add "zoooom" for the "is-style-zoooom" images added with Gutenberg
|
26 |
$(".is-style-zoooom").each(function(){
|
27 |
$(this).addClass('zoooom');
|
22 |
$(this).attr('data-zoom-image', $(this).data('lazy-src'));
|
23 |
});
|
24 |
|
25 |
+
// Fix for the lazy load functionality from the SG Optimizer plugin
|
26 |
+
$("img[data-src].lazyload").each(function() {
|
27 |
+
$(this).attr('data-zoom-image', $(this).data('src'));
|
28 |
+
});
|
29 |
+
|
30 |
+
|
31 |
// Add "zoooom" for the "is-style-zoooom" images added with Gutenberg
|
32 |
$(".is-style-zoooom").each(function(){
|
33 |
$(this).addClass('zoooom');
|
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.
|
7 |
* Author: SilkyPress
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
@@ -27,7 +27,7 @@ if ( ! class_exists( 'ImageZoooom' ) ) :
|
|
27 |
*/
|
28 |
final class ImageZoooom {
|
29 |
public $plugin;
|
30 |
-
public $version = '1.
|
31 |
public $theme = '';
|
32 |
protected static $_instance = null;
|
33 |
|
@@ -345,6 +345,9 @@ final class ImageZoooom {
|
|
345 |
if (class_exists('WP_Image_Hotspot') ) {
|
346 |
echo '<style type="text/css">.point_style.ihotspot_tooltop_html {z-index: 1003}</style>';
|
347 |
}
|
|
|
|
|
|
|
348 |
|
349 |
}
|
350 |
|
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.36
|
7 |
* Author: SilkyPress
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
27 |
*/
|
28 |
final class ImageZoooom {
|
29 |
public $plugin;
|
30 |
+
public $version = '1.36';
|
31 |
public $theme = '';
|
32 |
protected static $_instance = null;
|
33 |
|
345 |
if (class_exists('WP_Image_Hotspot') ) {
|
346 |
echo '<style type="text/css">.point_style.ihotspot_tooltop_html {z-index: 1003}</style>';
|
347 |
}
|
348 |
+
if ( defined('ELEMENTOR_VERSION')) {
|
349 |
+
echo '<style type="text/css">.dialog-lightbox-widget-content[style] { top: 0 !important; left: 0 !important;}</style>' . PHP_EOL;
|
350 |
+
}
|
351 |
|
352 |
}
|
353 |
|
includes/admin-side.php
CHANGED
@@ -494,6 +494,7 @@ class ImageZoooom_Admin {
|
|
494 |
'iz_dismiss_shopkeeper',
|
495 |
'iz_dismiss_bridge',
|
496 |
'iz_dismiss_wooswipe',
|
|
|
497 |
);
|
498 |
|
499 |
$w = new SilkyPress_Warnings($allowed_actions);
|
@@ -552,6 +553,16 @@ class ImageZoooom_Admin {
|
|
552 |
$w->add_notice( 'iz_dismiss_wooswipe', $message );
|
553 |
}
|
554 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
$w->show_warnings();
|
556 |
}
|
557 |
|
494 |
'iz_dismiss_shopkeeper',
|
495 |
'iz_dismiss_bridge',
|
496 |
'iz_dismiss_wooswipe',
|
497 |
+
'iz_dismiss_avada_woo_gallery',
|
498 |
);
|
499 |
|
500 |
$w = new SilkyPress_Warnings($allowed_actions);
|
553 |
$w->add_notice( 'iz_dismiss_wooswipe', $message );
|
554 |
}
|
555 |
|
556 |
+
|
557 |
+
// Check if the Avada theme is active and the WooCommerce plugin installed
|
558 |
+
if ( strpos( strtolower(get_template()), 'avada') !== false && is_plugin_active('woocommerce/woocommerce.php')) {
|
559 |
+
$avada_options = get_option('fusion_options');
|
560 |
+
if ( isset($avada_options['disable_woo_gallery']) && $avada_options['disable_woo_gallery'] == '1') {
|
561 |
+
$message = __( '<b>The zoom will work</b> on the WooCommerce products images only when having the <b>"Avada\'s WooCommerce Product Gallery Slider"</b> option <b>turned off</b> on the <a href="'.admin_url('themes.php?page=avada_options').'">WP Admin -> Avada -> Theme Options -> WooCommerce -> General WooCommerce</a> page');
|
562 |
+
$w->add_notice( 'iz_dismiss_avada_woo_gallery', $message );
|
563 |
+
}
|
564 |
+
}
|
565 |
+
|
566 |
$w->show_warnings();
|
567 |
}
|
568 |
|
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.2
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Requires PHP: 5.2.4
|
@@ -152,6 +152,12 @@ Alternatively you can upgrade to the Pro version, as there the zoom lens is buil
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 1.35 =
|
156 |
* 07/19/2019
|
157 |
* Add "with Zoom" style to the Gutenberg image block
|
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.2
|
8 |
+
Stable tag: 1.36
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Requires PHP: 5.2.4
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 1.36 =
|
156 |
+
* 09/07/2019
|
157 |
+
* Fix: Elementor lightbox skewed if zoom applied on it (https://wordpress.org/support/topic/elementor-lightbox-2/)
|
158 |
+
* Fix: zoom wasn't initiating when some lazy load plugins are installed on the website
|
159 |
+
* Add notice about the WooCommerce product gallery from the Avada theme
|
160 |
+
|
161 |
= 1.35 =
|
162 |
* 07/19/2019
|
163 |
* Add "with Zoom" style to the Gutenberg image block
|