Version Description
- 08/02/2018
- Fix: on window resize, show zoom on WooCommerce gallery only if the option is enabled (https://wordpress.org/support/topic/disabling-the-zoom-not-working/)
- Fix: if the image's width is set to 0, then there is "division by zero" warning
Download this release
Release Info
Developer | diana_burduja |
Plugin | WP Image Zoom |
Version | 1.23 |
Comparing to | |
See all releases |
Code changes from version 1.22 to 1.23
- assets/js/image_zoom-init.js +3 -1
- image-zoooom.php +7 -3
- includes/image-zoom-admin-general.php +2 -1
- includes/settings.php +10 -1
- readme.txt +6 -1
assets/js/image_zoom-init.js
CHANGED
@@ -60,7 +60,9 @@ jQuery(document).ready(function( $ ){
|
|
60 |
clearTimeout(window.resizeEvt);
|
61 |
window.resizeEvt = setTimeout(function() {
|
62 |
$(".zoomContainer").remove();
|
63 |
-
|
|
|
|
|
64 |
if ( IZ.woo_categories == '1' ) {
|
65 |
$(".tax-product_cat .products img").image_zoom(options);
|
66 |
}
|
60 |
clearTimeout(window.resizeEvt);
|
61 |
window.resizeEvt = setTimeout(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);
|
68 |
}
|
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
|
@@ -12,7 +12,7 @@
|
|
12 |
* Domain Path: /languages/
|
13 |
*
|
14 |
* WC requires at least: 2.3.0
|
15 |
-
* WC tested up to: 3.
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -134,7 +134,11 @@ final class ImageZoooom {
|
|
134 |
return $sources;
|
135 |
}
|
136 |
|
137 |
-
if ( is_array($size_array) && count($size_array) == 2
|
|
|
|
|
|
|
|
|
138 |
$ratio = $size_array[0] * $image_meta['height'] / $size_array[1] / $image_meta['width'];
|
139 |
if ( $ratio > 1.03 || $ratio < 0.97 ) return $sources;
|
140 |
}
|
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.23
|
7 |
* Author: SilkyPress
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
12 |
* Domain Path: /languages/
|
13 |
*
|
14 |
* WC requires at least: 2.3.0
|
15 |
+
* WC tested up to: 3.3.0
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
134 |
return $sources;
|
135 |
}
|
136 |
|
137 |
+
if ( is_array($size_array) && count($size_array) == 2
|
138 |
+
&& isset( $size_array[1] ) && isset($image_meta['height'])
|
139 |
+
&& $size_array[1] > 0
|
140 |
+
&& isset($image_meta['width']) && $image_meta['width'] > 0 ) {
|
141 |
+
|
142 |
$ratio = $size_array[0] * $image_meta['height'] / $size_array[1] / $image_meta['width'];
|
143 |
if ( $ratio > 1.03 || $ratio < 0.97 ) return $sources;
|
144 |
}
|
includes/image-zoom-admin-general.php
CHANGED
@@ -48,6 +48,7 @@ include_once( 'premium-tooltips.php' );
|
|
48 |
</a> plugin)</li>
|
49 |
<li>the <a href="https://www.silkypress.com/i/js-featherlight" target="_blank" rel="nofollow">Featherlight.js</a> lightbox (also used by <a href="https://www.silkypress.com/i/wp-draw-attention" target="_blank" rel="nofollow">Draw Attention</a> plugin)</li>
|
50 |
<li>the lightbox created by the Ultimate Product Catalogue by Etoile Web Design</li>
|
|
|
51 |
</ul>
|
52 |
</p>
|
53 |
</div>
|
@@ -87,7 +88,7 @@ include_once( 'premium-tooltips.php' );
|
|
87 |
<?php
|
88 |
$iz_forms_helper->label_class = 'col-sm-6 control-label';
|
89 |
|
90 |
-
$fields = array('enable_woocommerce', 'exchange_thumbnails', 'woo_cat', 'woo_variations', 'enable_mobile', 'remove_lightbox_thumbnails', 'remove_lightbox', 'force_attachments', 'custom_class', 'flexslider', 'owl', 'huge_it_gallery', 'enable_lightbox_zoom' );
|
91 |
|
92 |
if ( class_exists('woocommerce') && version_compare( WC_VERSION, '3.0', '>') ) {
|
93 |
unset($fields[array_search('exchange_thumbnails', $fields)]);
|
48 |
</a> plugin)</li>
|
49 |
<li>the <a href="https://www.silkypress.com/i/js-featherlight" target="_blank" rel="nofollow">Featherlight.js</a> lightbox (also used by <a href="https://www.silkypress.com/i/wp-draw-attention" target="_blank" rel="nofollow">Draw Attention</a> plugin)</li>
|
50 |
<li>the lightbox created by the Ultimate Product Catalogue by Etoile Web Design</li>
|
51 |
+
<li>the <a href="http://dimsemenov.com/plugins/magnific-popup/" target="_blank" rel="nofollow">Magnific Popup</a> lightbox (also used by <a href="https://www.silkypress.com/i/enfold-theme" target="_blank" rel="nofollow">Enfold</a> portfolio items)</li>
|
52 |
</ul>
|
53 |
</p>
|
54 |
</div>
|
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)]);
|
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.
|
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',
|
@@ -217,6 +217,15 @@ function wp_image_zoooom_settings($type) {
|
|
217 |
'pro' => true,
|
218 |
'description' => __('If the images are in a Owl Carousel gallery, then type in here the class of the div containing the Owl Carousel gallery', $l ),
|
219 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
|
221 |
|
222 |
/*
|
6 |
$l = 'wp-image-zoooom';
|
7 |
|
8 |
$plugin = array(
|
9 |
+
'version' => '1.23',
|
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',
|
217 |
'pro' => true,
|
218 |
'description' => __('If the images are in a Owl Carousel gallery, then type in here the class of the div containing the Owl Carousel gallery', $l ),
|
219 |
),
|
220 |
+
'flickity' => array(
|
221 |
+
'label' => __('<a href="https://flickity.metafizzy.co/" target="_blank">Flickity Carousel</a> container class', $l),
|
222 |
+
'value' => '',
|
223 |
+
'input_form' => 'input_text',
|
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 |
/*
|
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: 4.9
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -144,6 +144,11 @@ Alternatively you can upgrade to the Pro version, as there the zoom lens is buil
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
|
|
|
|
147 |
= 1.22 =
|
148 |
* 30/01/2018
|
149 |
* Fix: on window resize, show zoom on WooCommerce category pages only if the option is enabled (https://wordpress.org/support/topic/disabling-the-zoom-not-working/)
|
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.23
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.23 =
|
148 |
+
* 08/02/2018
|
149 |
+
* Fix: on window resize, show zoom on WooCommerce gallery only if the option is enabled (https://wordpress.org/support/topic/disabling-the-zoom-not-working/)
|
150 |
+
* Fix: if the image's width is set to 0, then there is "division by zero" warning
|
151 |
+
|
152 |
= 1.22 =
|
153 |
* 30/01/2018
|
154 |
* Fix: on window resize, show zoom on WooCommerce category pages only if the option is enabled (https://wordpress.org/support/topic/disabling-the-zoom-not-working/)
|