YITH WooCommerce Compare - Version 1.0.3

Version Description

  • Minor bugs fixes
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: woocommerce, compare, compare products, product compare, widget
5
Requires at least: 3.5.1
6
Tested up to: 3.5.1
7
- Stable tag: 1.0.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -79,6 +79,10 @@ Yes, you can sort the fields in the compare table. You can do it in Woocommerce
79
80
== Changelog ==
81
82
= 1.0.2 =
83
84
* Improved: trigger in javascript file for add to compare event
4
Tags: woocommerce, compare, compare products, product compare, widget
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
79
80
== Changelog ==
81
82
+ = 1.0.3 =
83
+
84
+ * Minor bugs fixes
85
+
86
= 1.0.2 =
87
88
* Improved: trigger in javascript file for add to compare event
class.yith-woocompare-admin.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Magnifier
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Magnifier
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare-frontend.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare-helper.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Compare
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
class.yith-woocompare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
functions.yith-woocompare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
init.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: YITH Woocommerce Compare
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
- * Version: 1.0.2
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 Compare
14
- * @version 1.0.2
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
@@ -44,7 +44,7 @@ function yith_woocompare_constructor() {
44
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
45
46
define( 'YITH_WOOCOMPARE', true );
47
- define( 'YITH_WOOCOMPARE_VERSION', '1.0.2' );
48
define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
49
define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
50
3
* Plugin Name: YITH Woocommerce Compare
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
+ * Version: 1.0.3
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 Compare
14
+ * @version 1.0.3
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
44
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
45
46
define( 'YITH_WOOCOMPARE', true );
47
+ define( 'YITH_WOOCOMPARE_VERSION', '1.0.3' );
48
define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
49
define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
50
templates/compare.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.0.2
8
*/
9
10
global $product;
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
global $product;
widgets/class.yith-woocompare-widget.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
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'] ) ) {
yith-woocompare-options.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
- * @version 1.0.2
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH Woocommerce Compare
7
+ * @version 1.0.3
8
*/
9
10
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly