YITH WooCommerce Zoom Magnifier - Version 1.2.14

Version Description

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Zoom Magnifier
Version 1.2.14
Comparing to
See all releases

Code changes from version 1.2.13 to 1.2.14

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.3.1
7
- Stable tag: 1.2.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,10 @@ The size of the Zoom Image is automatically setted. If you want to change these
59
 
60
  == Changelog ==
61
 
 
 
 
 
62
  = Version 1.2.13 - RELEASED: DEC 21, 2015 =
63
 
64
  * Fixed: multiple wrap of zoom element with the div with class yith_magnifier_zoom_wrap
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.14
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.14 - RELEASED: DEC 29, 2015 =
63
+
64
+ * Added: Compatibility with YIT WooCommerce Featured Audio & Video Content
65
+
66
  = Version 1.2.13 - RELEASED: DEC 21, 2015 =
67
 
68
  * Fixed: multiple wrap of zoom element with the div with class yith_magnifier_zoom_wrap
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.13
7
  */
8
  jQuery(document).ready(function ($) {
9
 
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
+ * @version 1.2.14
7
  */
8
  jQuery(document).ready(function ($) {
9
 
class.yith-wcmg-frontend.php CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists ( 'YITH_WCMG_Frontend' ) ) {
41
  }
42
 
43
  public function render () {
44
- if ( yith_wcmg_is_enabled () && ! $this->is_video_featured_enabled () ) {
45
  //change the templates
46
  remove_action ( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
47
  remove_action ( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
@@ -154,21 +154,5 @@ if ( ! class_exists ( 'YITH_WCMG_Frontend' ) ) {
154
  return $data;
155
  }
156
 
157
- /**
158
- * Detect if the featured video is enabled
159
- */
160
- public function is_video_featured_enabled () {
161
- global $post;
162
- if ( ! isset( $post->ID ) ) {
163
- return;
164
- }
165
-
166
- $featured_video = get_post_meta ( $post->ID, '_video_url', true );
167
- if ( ! empty( $featured_video ) ) {
168
- return true;
169
- } else {
170
- return false;
171
- }
172
- }
173
  }
174
  }
41
  }
42
 
43
  public function render () {
44
+ if ( yith_wcmg_is_enabled () && ! apply_filters( 'yith_wczm_featured_video_enabled', false ) ) {
45
  //change the templates
46
  remove_action ( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
47
  remove_action ( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
154
  return $data;
155
  }
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  }
158
  }
class.yith-wcmg.php CHANGED
@@ -22,7 +22,7 @@ if( !class_exists( 'YITH_WCMG' ) ) {
22
  * @var string
23
  * @since 1.0.0
24
  */
25
- public $version = '1.2.13';
26
 
27
  /**
28
  * Plugin object
22
  * @var string
23
  * @since 1.0.0
24
  */
25
+ public $version = '1.2.14';
26
 
27
  /**
28
  * Plugin object
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.13
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.13
15
  */
16
  /* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
@@ -65,7 +65,7 @@ if ( ! defined( 'YITH_YWZM_FREE_INIT' ) ) {
65
  }
66
 
67
  if ( ! defined( 'YITH_YWZM_VERSION' ) ) {
68
- define( 'YITH_YWZM_VERSION', '1.2.13' );
69
  }
70
 
71
  if ( ! defined( 'YITH_YWZM_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.14
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.14
15
  */
16
  /* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
65
  }
66
 
67
  if ( ! defined( 'YITH_YWZM_VERSION' ) ) {
68
+ define( 'YITH_YWZM_VERSION', '1.2.14' );
69
  }
70
 
71
  if ( ! defined( 'YITH_YWZM_FILE' ) ) {
lib/class.yith-woocommerce-zoom-magnifier.php CHANGED
@@ -25,7 +25,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Zoom_Magnifier' ) ) {
25
  * @var string
26
  * @since 1.0.0
27
  */
28
- public $version = '1.2.13';
29
 
30
  /**
31
  * Plugin object
25
  * @var string
26
  * @since 1.0.0
27
  */
28
+ public $version = '1.2.14';
29
 
30
  /**
31
  * Plugin object