Version Description
- Minor bugs fixes
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- README.txt +5 -1
- assets/js/yith-wcan-admin.js +1 -1
- assets/js/yith-wcan-frontend.js +1 -1
- assets/js/yith-wcan-frontend.min.js +1 -1
- class.yith-wcan-admin.php +1 -1
- class.yith-wcan-frontend.php +1 -1
- class.yith-wcan-helper.php +1 -1
- class.yith-wcan.php +1 -1
- functions.yith-wcan.php +1 -1
- init.php +3 -3
- widgets/class.yith-wcan-navigation-widget.php +1 -1
- widgets/class.yith-wcan-reset-navigation-widget.php +1 -1
- yit-common/assets/css/yith-panel.css +2 -2
- yit-common/assets/js/yith-panel.js +6 -0
- yit-common/yit-functions.php +1 -1
- yit-common/yith-panel.php +10 -0
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -64,6 +64,10 @@ In order to display the widget you need to assign it to the sidebar in the Shop
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
67 |
= 1.1.0 =
|
68 |
|
69 |
* Added new widget YITH WooCommerce Ajax Reset Navigation
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.1.1 =
|
68 |
+
|
69 |
+
* Minor bugs fixes
|
70 |
+
|
71 |
= 1.1.0 =
|
72 |
|
73 |
* Added new widget YITH WooCommerce Ajax Reset Navigation
|
assets/js/yith-wcan-admin.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
-
* @version 1.1.
|
7 |
*/
|
8 |
jQuery(function($){
|
9 |
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
+
* @version 1.1.1
|
7 |
*/
|
8 |
jQuery(function($){
|
9 |
|
assets/js/yith-wcan-frontend.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
-
* @version 1.1.
|
7 |
*/
|
8 |
jQuery(function($){
|
9 |
/**
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
+
* @version 1.1.1
|
7 |
*/
|
8 |
jQuery(function($){
|
9 |
/**
|
assets/js/yith-wcan-frontend.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
-
* @version 1.1.
|
7 |
*/
|
8 |
jQuery(function(c){var t=/(?!(\[))(\.)[^.#[]*/g,u=/(#)[^.#[]*/,v=/^[\w]+/,w=/^[\w]+$/,r=function(p,q){var a=[];if(w.test(p))a=[{tag:p}];else{for(var a=p,e={sel:[],val:[]},f=[],h=!1,g="",k=[],b=0,l=a.length;b<l;b++){var d=a.charAt(b);if(h)if("\\"===d&&b+1<a.length)k.push(a.charAt(++b));else if(g===d)g="",k.push(d);else if(("'"===d||'"'===d)&&""===g)g=d,k.push(d);else if("]"===d&&""===g)e.val.push(k.join("")),k=[],h=!1;else{if("]"!==d||""!==g)""===g&&","===d?(e.val.push(k.join("")),k=[]):k.push(d)}else"\\"===
|
9 |
d&&b+1<a.length?h&&k.push(a.charAt(++b)):"["===d&&""===g?h=!0:" "===d||"+"===d?(e.sel=e.sel.join(""),f.push(e),"+"===d&&f.push({sel:"+",val:""}),e={sel:[],val:[]}):" "!==d&&"]"!==d&&e.sel.push(d)}if(0!=e.sel.length||0!=e.val.length)e.sel=e.sel.join(""),f.push(e);for(b=0;b<f.length;b++){e=f[b].sel;if("+"===e)m.tag=e;else{var m=[];m.tag=v.exec(e);m.id=u.exec(e);m.id&&c.isArray(m.id)&&(m.id=m.id[0].substr(1));m.tag||(m.tag="div");m.vars=[];for(a=0;a<f[b].val.length;a++)g=f[b].val[a].indexOf("="),h=f[b].val[a].substr(0,
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Ajax Navigation
|
6 |
+
* @version 1.1.1
|
7 |
*/
|
8 |
jQuery(function(c){var t=/(?!(\[))(\.)[^.#[]*/g,u=/(#)[^.#[]*/,v=/^[\w]+/,w=/^[\w]+$/,r=function(p,q){var a=[];if(w.test(p))a=[{tag:p}];else{for(var a=p,e={sel:[],val:[]},f=[],h=!1,g="",k=[],b=0,l=a.length;b<l;b++){var d=a.charAt(b);if(h)if("\\"===d&&b+1<a.length)k.push(a.charAt(++b));else if(g===d)g="",k.push(d);else if(("'"===d||'"'===d)&&""===g)g=d,k.push(d);else if("]"===d&&""===g)e.val.push(k.join("")),k=[],h=!1;else{if("]"!==d||""!==g)""===g&&","===d?(e.val.push(k.join("")),k=[]):k.push(d)}else"\\"===
|
9 |
d&&b+1<a.length?h&&k.push(a.charAt(++b)):"["===d&&""===g?h=!0:" "===d||"+"===d?(e.sel=e.sel.join(""),f.push(e),"+"===d&&f.push({sel:"+",val:""}),e={sel:[],val:[]}):" "!==d&&"]"!==d&&e.sel.push(d)}if(0!=e.sel.length||0!=e.val.length)e.sel=e.sel.join(""),f.push(e);for(b=0;b<f.length;b++){e=f[b].sel;if("+"===e)m.tag=e;else{var m=[];m.tag=v.exec(e);m.id=u.exec(e);m.id&&c.isArray(m.id)&&(m.id=m.id[0].substr(1));m.tag||(m.tag="div");m.vars=[];for(a=0;a<f[b].val.length;a++)g=f[b].val[a].indexOf("="),h=f[b].val[a].substr(0,
|
class.yith-wcan-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
class.yith-wcan-frontend.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
class.yith-wcan-helper.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
class.yith-wcan.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
functions.yith-wcan.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Navigation
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Navigation allows user to filter products in Shop page without reloading the page.
|
6 |
-
* Version: 1.1.
|
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 Ajax Navigation
|
14 |
-
* @version 1.1.
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -46,7 +46,7 @@ function yith_wcan_constructor() {
|
|
46 |
define( 'YITH_WCAN', true );
|
47 |
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
48 |
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
49 |
-
define( 'YITH_WCAN_VERSION', '1.1.
|
50 |
|
51 |
// Load required classes and functions
|
52 |
require_once('functions.yith-wcan.php');
|
3 |
* Plugin Name: YITH WooCommerce Ajax Navigation
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Navigation allows user to filter products in Shop page without reloading the page.
|
6 |
+
* Version: 1.1.1
|
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 Ajax Navigation
|
14 |
+
* @version 1.1.1
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
46 |
define( 'YITH_WCAN', true );
|
47 |
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
48 |
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
49 |
+
define( 'YITH_WCAN_VERSION', '1.1.1' );
|
50 |
|
51 |
// Load required classes and functions
|
52 |
require_once('functions.yith-wcan.php');
|
widgets/class.yith-wcan-navigation-widget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
widgets/class.yith-wcan-reset-navigation-widget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCAN' ) ) { 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
|
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:
|
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
|
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'] ) ) {
|