YITH WooCommerce Zoom Magnifier - Version 1.0.4

Version Description

  • Minor bugs fixes
Download this release

Release Info

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

Code changes from version 1.0.3 to 1.0.4

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: zoom, magnifier, woocommerce, products, themes, yit, e-commerce, shop
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -69,6 +69,10 @@ The size of the Zoom Image is automatically setted. If you want to change these
69
 
70
  == Changelog ==
71
 
 
 
 
 
72
  = 1.0.3 =
73
 
74
  * Added ability to load the plugin even when WooCommerce is installed in a different folder
4
  Tags: zoom, magnifier, woocommerce, products, themes, yit, e-commerce, shop
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
69
 
70
  == Changelog ==
71
 
72
+ = 1.0.4 =
73
+
74
+ * Minor bugs fixes
75
+
76
  = 1.0.3 =
77
 
78
  * Added ability to load the plugin even when WooCommerce is installed in a different folder
assets/js/frontend.js CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
- * @version 1.0.3
7
  */
8
  jQuery(document).ready(function($){
9
 
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
+ * @version 1.0.4
7
  */
8
  jQuery(document).ready(function($){
9
 
assets/js/frontend.min.js CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
- * @version 1.0.3
7
  */
8
  jQuery(document).ready(function(b){var a=b(".images"),d=b(".yith_magnifier_zoom"),f=b(".yith_magnifier_zoom img"),e=a.find(".yith_magnifier_zoom").attr("href"),g=a.find(".yith_magnifier_zoom img").attr("src");a.yith_magnifier(yith_magnifier_options);b("form.variations_form").on("found_variation",function(b,c){var h=c.image_src?c.image_src:g;d.attr("href",c.image_magnifier?c.image_magnifier:e);f.attr("src",h);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)}).on("reset_image",
9
  function(){d.attr("href",e);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)});b("form.variations_form .variations select").trigger("change")});
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
+ * @version 1.0.4
7
  */
8
  jQuery(document).ready(function(b){var a=b(".images"),d=b(".yith_magnifier_zoom"),f=b(".yith_magnifier_zoom img"),e=a.find(".yith_magnifier_zoom").attr("href"),g=a.find(".yith_magnifier_zoom img").attr("src");a.yith_magnifier(yith_magnifier_options);b("form.variations_form").on("found_variation",function(b,c){var h=c.image_src?c.image_src:g;d.attr("href",c.image_magnifier?c.image_magnifier:e);f.attr("src",h);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)}).on("reset_image",
9
  function(){d.attr("href",e);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)});b("form.variations_form .variations select").trigger("change")});
class.yith-wcmg-admin.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
- * @version 1.0.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
+ * @version 1.0.4
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
class.yith-wcmg-frontend.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
- * @version 1.0.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
+ * @version 1.0.4
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
class.yith-wcmg.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
- * @version 1.0.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
@@ -22,7 +22,7 @@ if( !class_exists( 'YITH_WCMG' ) ) {
22
  * @var string
23
  * @since 1.0.0
24
  */
25
- public $version = '1.0.3';
26
 
27
  /**
28
  * Plugin object
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
+ * @version 1.0.4
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
22
  * @var string
23
  * @since 1.0.0
24
  */
25
+ public $version = '1.0.4';
26
 
27
  /**
28
  * Plugin object
functions.yith-wcmg.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
- * @version 1.0.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
+ * @version 1.0.4
8
  */
9
 
10
  if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images.
6
- * Version: 1.0.3
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
@@ -11,7 +11,7 @@
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Magnifier
14
- * @version 1.0.3
15
  */
16
  /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images.
6
+ * Version: 1.0.4
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Magnifier
14
+ * @version 1.0.4
15
  */
16
  /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
uninstall.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
- * @version 1.0.3
8
  */
9
 
10
  // If uninstall not called from WordPress exit
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Zoom Magnifier
7
+ * @version 1.0.4
8
  */
9
 
10
  // If uninstall not called from WordPress exit
yit-common/assets/css/yith-panel.css CHANGED
@@ -63,13 +63,13 @@
63
  font-size: 12px!important;
64
  line-height: 6px;
65
  margin: -16px 0px 0px -105px;
66
- padding: 3px 8px;
67
  position: absolute;
68
  text-shadow: rgba(255, 255, 255, 1) 0 1px 0;
69
  text-decoration: none;
70
  top: 50%;
71
  left: 50%;
72
- width: 108px;
73
  height: 18px;
74
  }
75
  .typography_container button.refresh img {
63
  font-size: 12px!important;
64
  line-height: 6px;
65
  margin: -16px 0px 0px -105px;
66
+ padding: 3px 19px;
67
  position: absolute;
68
  text-shadow: rgba(255, 255, 255, 1) 0 1px 0;
69
  text-decoration: none;
70
  top: 50%;
71
  left: 50%;
72
+ width: auto;
73
  height: 18px;
74
  }
75
  .typography_container button.refresh img {
yit-common/assets/js/yith-panel.js CHANGED
@@ -42,6 +42,12 @@ jQuery(document).ready(function($){
42
  numberOfMonths: 2,
43
  minDate: 0
44
  });
 
 
 
 
 
 
45
  });
46
 
47
  // typography
42
  numberOfMonths: 2,
43
  minDate: 0
44
  });
45
+
46
+ //skin
47
+ $('select.skin').on('change', function(){
48
+ var img_path = $(this).data('path');
49
+ $(this).siblings('.skin-preview').html('<img src="'+ img_path + $(this).val() + '.jpg' +'" alt="preview" />');
50
+ }).change();
51
  });
52
 
53
  // typography
yit-common/yit-functions.php CHANGED
@@ -110,7 +110,7 @@ if( ! function_exists('yit_get_options_from_prefix') ) {
110
  $return[$option] = get_option( $option );
111
  }
112
 
113
- return yit_debug($return);
114
  }
115
  }
116
 
110
  $return[$option] = get_option( $option );
111
  }
112
 
113
+ return $return;
114
  }
115
  }
116
 
yit-common/yith-panel.php CHANGED
@@ -360,6 +360,16 @@ if( !class_exists('YITH_Panel') ) {
360
  }
361
  break;
362
 
 
 
 
 
 
 
 
 
 
 
363
  case 'number':
364
  $mms = '';
365
  if( isset( $field['min'] ) ) {
360
  }
361
  break;
362
 
363
+ case 'skin': $echo = "<select name='{$name}' id='{$id}' class='skin' data-path='{$field['path']}'>";
364
+ foreach( $field['options'] as $v=>$label ) {
365
+ $echo .= "<option value='{$v}'". selected($value, $v, false) .">{$label}</option>";
366
+ }
367
+ $echo .= "</select>";
368
+ if( isset($field['description']) && $field['description'] != '' ) {
369
+ $echo .= "<p class='description'>{$field['description']}</p><div class='skin-preview'></div>";
370
+ }
371
+ break;
372
+
373
  case 'number':
374
  $mms = '';
375
  if( isset( $field['min'] ) ) {