YITH WooCommerce Ajax Product Filter - Version 2.7.7

Version Description

  • Added: Trigger window scroll event after ajax call
  • Fixed: The page scroll down after filter has been applied in mobile
  • Fixed: Duplicated query in Filter by categories
  • Fixed: generated 404 link with in stock/on sale filter
  • Fixed: YITH WooCommerce Product Slider Carousel doesn't work after a filter was applied
  • Fixed: Widget doesn't work with multiple hierarchical terms
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Product Filter
Version 2.7.7
Comparing to
See all releases

Code changes from version 2.7.6 to 2.7.7

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
Requires at least: 4.0
6
Tested up to: 4.4.1
7
- Stable tag: 2.7.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -159,6 +159,15 @@ If you want to see a demonstration version of the premium plugin, you can see it
159
160
== Changelog ==
161
162
= 2.7.6 =
163
164
* Added: Suppoort to quantity input in loop
4
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
Requires at least: 4.0
6
Tested up to: 4.4.1
7
+ Stable tag: 2.7.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
159
160
== Changelog ==
161
162
+ = 2.7.7 =
163
+
164
+ * Added: Trigger window scroll event after ajax call
165
+ * Fixed: The page scroll down after filter has been applied in mobile
166
+ * Fixed: Duplicated query in Filter by categories
167
+ * Fixed: generated 404 link with in stock/on sale filter
168
+ * Fixed: YITH WooCommerce Product Slider Carousel doesn't work after a filter was applied
169
+ * Fixed: Widget doesn't work with multiple hierarchical terms
170
+
171
= 2.7.6 =
172
173
* Added: Suppoort to quantity input in loop
assets/js/yith-wcan-frontend.js CHANGED
@@ -143,11 +143,15 @@ jQuery(function ($) {
143
}
144
145
//loading
146
- $(yith_wcan.container).html('').addClass('yith-wcan-loading');
147
$(document).trigger("yith-wcan-ajax-loading");
148
149
if (typeof yith_wcan_frontend != 'undefined') {
150
- $(yith_wcan.container).css('backgroundImage', 'url(' + yith_wcan_frontend.loader_url + ')');
151
}
152
153
$(yith_wcan.pagination).hide();
@@ -162,11 +166,11 @@ jQuery(function ($) {
162
url : href,
163
success: function (response) {
164
ajax_call = false;
165
- $(yith_wcan.container).removeClass('yith-wcan-loading');
166
167
//container
168
- if ($(response).find(yith_wcan.container).length > 0) {
169
- $('.yit-wcan-container').html($(response).find(yith_wcan.container));
170
} else {
171
$('.yit-wcan-container').html($(response).find('.woocommerce-info'));
172
}
@@ -175,7 +179,7 @@ jQuery(function ($) {
175
if ($(response).find(yith_wcan.pagination).length > 0) {
176
//se non esiste lo creo
177
if ($(yith_wcan.pagination).length == 0) {
178
- $.jseldom(yith_wcan.pagination).insertAfter($(yith_wcan.container));
179
}
180
181
$(yith_wcan.pagination)
@@ -221,6 +225,7 @@ jQuery(function ($) {
221
//trigger ready event
222
$(document).trigger("ready");
223
$(document).trigger("yith-wcan-ajax-filtered");
224
if( is_reset ){
225
var min_price = parseInt( $( yith_wcan.wc_price_slider.min_price ).data( 'min' ) ),
226
max_price = parseInt( $( yith_wcan.wc_price_slider.max_price ).data( 'max' ) );
@@ -233,8 +238,8 @@ jQuery(function ($) {
233
};
234
235
//wrap the container
236
- $(yith_wcan.container).wrap('<div class="yit-wcan-container"></div>');
237
- $('.woocommerce-info').wrap('<div class="yit-wcan-container"></div>');
238
239
$(document).trigger( 'yith-wcan-wrapped' );
240
143
}
144
145
//loading
146
+ $(yith_wcan.container).not('.ywcps-products').html('').addClass('yith-wcan-loading');
147
$(document).trigger("yith-wcan-ajax-loading");
148
149
if (typeof yith_wcan_frontend != 'undefined') {
150
+ $(yith_wcan.container).not('.ywcps-products').css('backgroundImage', 'url(' + yith_wcan_frontend.loader_url + ')');
151
+ }
152
+
153
+ if( yith_wcan.is_mobile == 1 ){
154
+ $('body').scrollTop( $(yith_wcan.scroll_top).offset().top );
155
}
156
157
$(yith_wcan.pagination).hide();
166
url : href,
167
success: function (response) {
168
ajax_call = false;
169
+ $(yith_wcan.container).not('.ywcps-products').removeClass('yith-wcan-loading');
170
171
//container
172
+ if ($(response).find(yith_wcan.container).not('.ywcps-products').length > 0) {
173
+ $('.yit-wcan-container').html($(response).find(yith_wcan.container).not('.ywcps-products'));
174
} else {
175
$('.yit-wcan-container').html($(response).find('.woocommerce-info'));
176
}
179
if ($(response).find(yith_wcan.pagination).length > 0) {
180
//se non esiste lo creo
181
if ($(yith_wcan.pagination).length == 0) {
182
+ $.jseldom(yith_wcan.pagination).insertAfter($(yith_wcan.container).not('.ywcps-products'));
183
}
184
185
$(yith_wcan.pagination)
225
//trigger ready event
226
$(document).trigger("ready");
227
$(document).trigger("yith-wcan-ajax-filtered");
228
+ $(window).trigger("scroll");
229
if( is_reset ){
230
var min_price = parseInt( $( yith_wcan.wc_price_slider.min_price ).data( 'min' ) ),
231
max_price = parseInt( $( yith_wcan.wc_price_slider.max_price ).data( 'max' ) );
238
};
239
240
//wrap the container
241
+ $(yith_wcan.container).not('.ywcps-products').wrap('<div class="yit-wcan-container"></div>');
242
+ $(yith_wcan.container).not('.ywcps-products').wrap('<div class="yit-wcan-container"></div>');
243
244
$(document).trigger( 'yith-wcan-wrapped' );
245
assets/js/yith-wcan-frontend.min.js CHANGED
@@ -5,10 +5,10 @@ a.isArray(n.id)&&(n.id=n.id[0].substr(1));n.tag||(n.tag="div");n.vars=[];for(b=0
5
if(b[c].vars)for(q=0;q<b[c].vars.length;q++)console.log(b[c].tag,b[c].vars[q]),e.setAttribute(b[c].vars[q][0],b[c].vars[q][1]);b[c].id&&(e.id=b[c].id);b[c].className&&(e.className=b[c].className);b[c].text&&e.appendChild(document.createTextNode(b[c].text));k[m]=f[m];f[m]=f[m]?f[m].appendChild(e):e}l++||Array.prototype.push.apply(d,f)}n=a.merge(n,f)}return a(d)},w=function(h,p,b){for(var d=h.match(/%[^%]*%/g)||[],f=[],k=0;k<p.length;k++){for(var g=h,l=0;l<d.length;l++)var c=d[l].substr(1,d[l].length-
6
2),g=g.replace(d[l],p[k][c]);f=a.merge(f,v(g,b))}return a(f)};a.jseldom=function(h){if(2==arguments.length&&a.isPlainObject(arguments[1]))return w.apply(this,[arguments[0],[arguments[1]]]);if(1==arguments.length||2==arguments.length&&!a.isArray(arguments[1]))return v.apply(this,arguments);if(2==arguments.length)return w.apply(this,arguments)};var r=!1;a.fn.yith_wcan_ajax_filters=function(h,p){h.preventDefault();var b=p.href,d=a(p),f=d.hasClass("yith-wcan-reset-navigation");if("undefined"==typeof b&&
7
d.parents().hasClass("price_slider_wrapper")){d.parents("form");var k=window.location,g=k.origin+k.pathname,l=g!=k.href,c=a(".price_slider_amount #min_price").val(),m=a(".price_slider_amount #max_price").val(),b=k.href;1==l&&(b=u(b,"min_price"),b=u(b,"max_price"));b=b+(g==b?"?":"&")+a.param({min_price:c,max_price:m})}"select"==d.data("type")&&(d.parents("div.yith-woo-ajax-navigation").find("a.yit-wcan-select-open").removeClass("active"),d.parent().find("div.yith-wcan-select-wrapper").animate({visibility:"hidden",
8
- opacity:0},300));a(yith_wcan.container).html("").addClass("yith-wcan-loading");a(document).trigger("yith-wcan-ajax-loading");"undefined"!=typeof yith_wcan_frontend&&a(yith_wcan.container).css("backgroundImage","url("+yith_wcan_frontend.loader_url+")");a(yith_wcan.pagination).hide();a(yith_wcan.result_count).hide();0!=r&&(r.abort(),r=!1);r=a.ajax({url:b,success:function(c){r=!1;a(yith_wcan.container).removeClass("yith-wcan-loading");0<a(c).find(yith_wcan.container).length?a(".yit-wcan-container").html(a(c).find(yith_wcan.container)):
9
- a(".yit-wcan-container").html(a(c).find(".woocommerce-info"));0<a(c).find(yith_wcan.pagination).length?(0==a(yith_wcan.pagination).length&&a.jseldom(yith_wcan.pagination).insertAfter(a(yith_wcan.container)),a(yith_wcan.pagination).html(a(c).find(yith_wcan.pagination).html()).show()):a(yith_wcan.pagination).empty();a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />');
10
- 0<a(c).find(yith_wcan.result_count).length&&a(yith_wcan.result_count).html(a(c).find(yith_wcan.result_count).html()).show();a(".yith-woo-ajax-navigation").add(".yith-wcan-sort-by").add(".yith-wcan-stock-on-sale").add(".yith-wcan-list-price-filter").each(function(){var b=a(this),d=b.attr("id");b.html(a(c).find("#"+d).html());""==b.text()?b.hide():b.show()});navigator.userAgent.match(/msie/i)||window.history.pushState({pageTitle:c.pageTitle},"",b);a(document).trigger("ready");a(document).trigger("yith-wcan-ajax-filtered");
11
- if(f){var d=parseInt(a(yith_wcan.wc_price_slider.min_price).data("min")),g=parseInt(a(yith_wcan.wc_price_slider.max_price).data("max"));a(yith_wcan.wc_price_slider.wrapper).slider("values",[d,g]);a(document.body).trigger("price_slider_slide",[d,g]);a(document).trigger("yith-wcan-ajax-reset-filtered")}}})};a(yith_wcan.container).wrap('<div class="yit-wcan-container"></div>');a(".woocommerce-info").wrap('<div class="yit-wcan-container"></div>');a(document).trigger("yith-wcan-wrapped");a(document).on("click",
12
- ".yith-wcan a",function(h){a(this).yith_wcan_ajax_filters(h,this)});var t=function(){a("div.yith-wcan-select-wrapper").animate({visibility:"hidden",opacity:0},0);a("a.yit-wcan-select-open").removeClass("active")};a(document).on("click","a.yit-wcan-select-open.active",function(h){h.preventDefault();a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","-1").animate({visibility:"hidden",opacity:0},300);a(this).parent().find("a.yit-wcan-select-open").removeClass("active")});a(document).on("click",
13
- "a.yit-wcan-select-open:not(.active)",function(h){h.preventDefault();a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","1").animate({visibility:"visible",opacity:1},300);a(this).parent().find("a.yit-wcan-select-open").addClass("active")});a(document).on("ready yith-wcan-ajax-filtered",function(){a("div.yith-wcan-select-wrapper ul.yith-wcan-select li.chosen");t();a("div.yith-wcan-select-wrapper").each(function(){var h="";a(this).find("ul.yith-wcan-select li.chosen").each(function(){h+=
14
- a(this).text()+", "});h=h.substring(0,h.length-2);""!=h&&a(this).parent().find("a.yit-wcan-select-open").text(h)})});a(document).on("ready",t);a("body").on("click",function(h){a(h.target).hasClass("yit-wcan-select-open")||t()})});
5
if(b[c].vars)for(q=0;q<b[c].vars.length;q++)console.log(b[c].tag,b[c].vars[q]),e.setAttribute(b[c].vars[q][0],b[c].vars[q][1]);b[c].id&&(e.id=b[c].id);b[c].className&&(e.className=b[c].className);b[c].text&&e.appendChild(document.createTextNode(b[c].text));k[m]=f[m];f[m]=f[m]?f[m].appendChild(e):e}l++||Array.prototype.push.apply(d,f)}n=a.merge(n,f)}return a(d)},w=function(h,p,b){for(var d=h.match(/%[^%]*%/g)||[],f=[],k=0;k<p.length;k++){for(var g=h,l=0;l<d.length;l++)var c=d[l].substr(1,d[l].length-
6
2),g=g.replace(d[l],p[k][c]);f=a.merge(f,v(g,b))}return a(f)};a.jseldom=function(h){if(2==arguments.length&&a.isPlainObject(arguments[1]))return w.apply(this,[arguments[0],[arguments[1]]]);if(1==arguments.length||2==arguments.length&&!a.isArray(arguments[1]))return v.apply(this,arguments);if(2==arguments.length)return w.apply(this,arguments)};var r=!1;a.fn.yith_wcan_ajax_filters=function(h,p){h.preventDefault();var b=p.href,d=a(p),f=d.hasClass("yith-wcan-reset-navigation");if("undefined"==typeof b&&
7
d.parents().hasClass("price_slider_wrapper")){d.parents("form");var k=window.location,g=k.origin+k.pathname,l=g!=k.href,c=a(".price_slider_amount #min_price").val(),m=a(".price_slider_amount #max_price").val(),b=k.href;1==l&&(b=u(b,"min_price"),b=u(b,"max_price"));b=b+(g==b?"?":"&")+a.param({min_price:c,max_price:m})}"select"==d.data("type")&&(d.parents("div.yith-woo-ajax-navigation").find("a.yit-wcan-select-open").removeClass("active"),d.parent().find("div.yith-wcan-select-wrapper").animate({visibility:"hidden",
8
+ opacity:0},300));a(yith_wcan.container).not(".ywcps-products").html("").addClass("yith-wcan-loading");a(document).trigger("yith-wcan-ajax-loading");"undefined"!=typeof yith_wcan_frontend&&a(yith_wcan.container).not(".ywcps-products").css("backgroundImage","url("+yith_wcan_frontend.loader_url+")");1==yith_wcan.is_mobile&&a("body").scrollTop(a(yith_wcan.scroll_top).offset().top);a(yith_wcan.pagination).hide();a(yith_wcan.result_count).hide();0!=r&&(r.abort(),r=!1);r=a.ajax({url:b,success:function(c){r=
9
+ !1;a(yith_wcan.container).not(".ywcps-products").removeClass("yith-wcan-loading");0<a(c).find(yith_wcan.container).not(".ywcps-products").length?a(".yit-wcan-container").html(a(c).find(yith_wcan.container).not(".ywcps-products")):a(".yit-wcan-container").html(a(c).find(".woocommerce-info"));0<a(c).find(yith_wcan.pagination).length?(0==a(yith_wcan.pagination).length&&a.jseldom(yith_wcan.pagination).insertAfter(a(yith_wcan.container).not(".ywcps-products")),a(yith_wcan.pagination).html(a(c).find(yith_wcan.pagination).html()).show()):
10
+ a(yith_wcan.pagination).empty();a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />');0<a(c).find(yith_wcan.result_count).length&&a(yith_wcan.result_count).html(a(c).find(yith_wcan.result_count).html()).show();a(".yith-woo-ajax-navigation").add(".yith-wcan-sort-by").add(".yith-wcan-stock-on-sale").add(".yith-wcan-list-price-filter").each(function(){var b=
11
+ a(this),d=b.attr("id");b.html(a(c).find("#"+d).html());""==b.text()?b.hide():b.show()});navigator.userAgent.match(/msie/i)||window.history.pushState({pageTitle:c.pageTitle},"",b);a(document).trigger("ready");a(document).trigger("yith-wcan-ajax-filtered");a(window).trigger("scroll");if(f){var d=parseInt(a(yith_wcan.wc_price_slider.min_price).data("min")),g=parseInt(a(yith_wcan.wc_price_slider.max_price).data("max"));a(yith_wcan.wc_price_slider.wrapper).slider("values",[d,g]);a(document.body).trigger("price_slider_slide",
12
+ [d,g]);a(document).trigger("yith-wcan-ajax-reset-filtered")}}})};a(yith_wcan.container).not(".ywcps-products").wrap('<div class="yit-wcan-container"></div>');a(yith_wcan.container).not(".ywcps-products").wrap('<div class="yit-wcan-container"></div>');a(document).trigger("yith-wcan-wrapped");a(document).on("click",".yith-wcan a",function(h){a(this).yith_wcan_ajax_filters(h,this)});var t=function(){a("div.yith-wcan-select-wrapper").animate({visibility:"hidden",opacity:0},0);a("a.yit-wcan-select-open").removeClass("active")};
13
+ a(document).on("click","a.yit-wcan-select-open.active",function(h){h.preventDefault();a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","-1").animate({visibility:"hidden",opacity:0},300);a(this).parent().find("a.yit-wcan-select-open").removeClass("active")});a(document).on("click","a.yit-wcan-select-open:not(.active)",function(h){h.preventDefault();a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","1").animate({visibility:"visible",opacity:1},300);a(this).parent().find("a.yit-wcan-select-open").addClass("active")});
14
+ a(document).on("ready yith-wcan-ajax-filtered",function(){a("div.yith-wcan-select-wrapper ul.yith-wcan-select li.chosen");t();a("div.yith-wcan-select-wrapper").each(function(){var h="";a(this).find("ul.yith-wcan-select li.chosen").each(function(){h+=a(this).text()+", "});h=h.substring(0,h.length-2);""!=h&&a(this).parent().find("a.yit-wcan-select-open").text(h)})});a(document).on("ready",t);a("body").on("click",function(h){a(h.target).hasClass("yit-wcan-select-open")||t()})});
includes/class.yith-wcan-frontend.php CHANGED
@@ -66,14 +66,16 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
66
! empty( $custom_style ) && wp_add_inline_style( 'yith-wcan-frontend', sanitize_text_field( $custom_style ) );
67
68
$args = apply_filters( 'yith_wcan_ajax_frontend_classes', array(
69
- 'container' => yith_wcan_get_option( 'yith_wcan_ajax_shop_container', '.products' ),
70
- 'pagination' => yith_wcan_get_option( 'yith_wcan_ajax_shop_pagination', 'nav.woocommerce-pagination' ),
71
- 'result_count' => yith_wcan_get_option( 'yith_wcan_ajax_shop_result_container', '.woocommerce-result-count' ),
72
- 'wc_price_slider' => array(
73
'wrapper' => '.price_slider',
74
'min_price' => '.price_slider_amount #min_price',
75
'max_price' => '.price_slider_amount #max_price',
76
- )
77
)
78
);
79
66
! empty( $custom_style ) && wp_add_inline_style( 'yith-wcan-frontend', sanitize_text_field( $custom_style ) );
67
68
$args = apply_filters( 'yith_wcan_ajax_frontend_classes', array(
69
+ 'container' => yith_wcan_get_option( 'yith_wcan_ajax_shop_container', '.products' ),
70
+ 'pagination' => yith_wcan_get_option( 'yith_wcan_ajax_shop_pagination', 'nav.woocommerce-pagination' ),
71
+ 'result_count' => yith_wcan_get_option( 'yith_wcan_ajax_shop_result_container', '.woocommerce-result-count' ),
72
+ 'wc_price_slider' => array(
73
'wrapper' => '.price_slider',
74
'min_price' => '.price_slider_amount #min_price',
75
'max_price' => '.price_slider_amount #max_price',
76
+ ),
77
+ 'is_mobile' => wp_is_mobile(),
78
+ 'scroll_top' => yith_wcan_get_option( 'yith_wcan_ajax_scroll_top_class', '.yit-wcan-container' ),
79
)
80
);
81
includes/functions.yith-wcan.php CHANGED
@@ -166,7 +166,7 @@ if ( ! function_exists( 'yit_reorder_terms_by_parent' ) ) {
166
* @return mixed!array
167
* @since 1.3.1
168
*/
169
- function yit_reorder_terms_by_parent( $terms ) {
170
171
/* Extract Child Terms */
172
$child_terms = array();
@@ -177,11 +177,23 @@ if ( ! function_exists( 'yit_reorder_terms_by_parent' ) ) {
177
178
if ( $term->parent != 0 ) {
179
180
- if ( isset( $child_terms[$term->parent] ) && $child_terms[$term->parent] != null ) {
181
- $child_terms[$term->parent] = array_merge( $child_terms[$term->parent], array( $term ) );
182
}
183
else {
184
- $child_terms[$term->parent] = array( $term );
185
}
186
187
}
@@ -247,7 +259,7 @@ if ( ! function_exists( 'yit_get_terms' ) ) {
247
case 'hierarchical':
248
$terms = get_terms( $taxonomy, array( 'hide_empty' => true, 'exclude' => $exclude ) );
249
if( ! in_array( $instance['type'], apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
250
- $terms = yit_reorder_terms_by_parent( $terms );
251
$reordered = true;
252
}
253
break;
@@ -266,7 +278,7 @@ if ( ! function_exists( 'yit_get_terms' ) ) {
266
267
if ( 'hierarchical' == $instance['display'] ) {
268
if( ! in_array( $instance['type'], apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
269
- $terms = yit_reorder_terms_by_parent( $terms );
270
$reordered = true;
271
}
272
}
166
* @return mixed!array
167
* @since 1.3.1
168
*/
169
+ function yit_reorder_terms_by_parent( $terms, $taxonomy ) {
170
171
/* Extract Child Terms */
172
$child_terms = array();
177
178
if ( $term->parent != 0 ) {
179
180
+ $term_parent = $term->parent;
181
+ while( true ){
182
+ $temp_parent_term = get_term_by( 'id', $term_parent, $taxonomy );
183
+ if( $temp_parent_term->parent != 0 ){
184
+ $term_parent = $temp_parent_term->parent;
185
+ }
186
+
187
+ else {
188
+ break;
189
+ }
190
+ }
191
+
192
+ if ( isset( $child_terms[$term_parent] ) && $child_terms[$term_parent] != null ) {
193
+ $child_terms[$term_parent] = array_merge( $child_terms[$term_parent], array( $term ) );
194
}
195
else {
196
+ $child_terms[$term_parent] = array( $term );
197
}
198
199
}
259
case 'hierarchical':
260
$terms = get_terms( $taxonomy, array( 'hide_empty' => true, 'exclude' => $exclude ) );
261
if( ! in_array( $instance['type'], apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
262
+ $terms = yit_reorder_terms_by_parent( $terms, $taxonomy );
263
$reordered = true;
264
}
265
break;
278
279
if ( 'hierarchical' == $instance['display'] ) {
280
if( ! in_array( $instance['type'], apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
281
+ $terms = yit_reorder_terms_by_parent( $terms, $taxonomy );
282
$reordered = true;
283
}
284
}
init.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: YITH WooCommerce Ajax Product Filter
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
- * Version: 2.7.6
7
* Author: yithemes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith_wc_ajxnav
@@ -64,7 +64,7 @@ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plug
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
- ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.7.6' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
3
* Plugin Name: YITH WooCommerce Ajax Product Filter
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
+ * Version: 2.7.7
7
* Author: yithemes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith_wc_ajxnav
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
+ ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.7.7' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
languages/yith-woocommerce-ajax-navigation-it_IT.mo CHANGED
Binary file
languages/yith-woocommerce-ajax-navigation-it_IT.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-01-27 11:00+0100\n"
6
- "PO-Revision-Date: 2016-01-27 11:00+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: it_IT\n"
@@ -58,7 +58,7 @@ msgstr "Proprietà"
58
59
# @ yit
60
#: includes/functions.yith-wcan.php:57
61
- #: widgets/class.yith-wcan-navigation-widget.php:861
62
msgid "Color"
63
msgstr "Colore"
64
@@ -149,6 +149,14 @@ msgstr ""
149
"Inserisci qui la classe CSS o l'ID per il contenitore del conteggio dei "
150
"prodotti"
151
152
#: templates/admin/premium.php:203 templates/admin/premium.php:377
153
#, php-format
154
msgid ""
@@ -329,68 +337,68 @@ msgctxt "Admin: Widget Title"
329
msgid "YITH WooCommerce Ajax Product Filter"
330
msgstr "YITH WooCommerce Filtro Prodotti Ajax"
331
332
- #: widgets/class.yith-wcan-navigation-widget.php:297
333
msgid "Filters:"
334
msgstr "Filtri:"
335
336
# @ yit
337
- #: widgets/class.yith-wcan-navigation-widget.php:860
338
msgid "List"
339
msgstr "Lista"
340
341
# @ yit
342
- #: widgets/class.yith-wcan-navigation-widget.php:862
343
msgid "Label"
344
msgstr "Etichetta"
345
346
- #: widgets/class.yith-wcan-navigation-widget.php:863
347
msgid "Dropdown"
348
msgstr "Menu a tendina"
349
350
# @ yit
351
- #: widgets/class.yith-wcan-navigation-widget.php:870
352
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
353
msgid "Title"
354
msgstr "Titolo"
355
356
# @ yit
357
- #: widgets/class.yith-wcan-navigation-widget.php:876
358
msgid "Type:"
359
msgstr "Tipo:"
360
361
# @ yit
362
- #: widgets/class.yith-wcan-navigation-widget.php:887
363
msgid "Query Type:"
364
msgstr "Tipo Query:"
365
366
# @ yit
367
- #: widgets/class.yith-wcan-navigation-widget.php:889
368
msgid "AND"
369
msgstr "E"
370
371
# @ yit
372
- #: widgets/class.yith-wcan-navigation-widget.php:890
373
msgid "OR"
374
msgstr "O"
375
376
# @ yit
377
- #: widgets/class.yith-wcan-navigation-widget.php:896
378
msgid "Attribute:"
379
msgstr "Attributo:"
380
381
- #: widgets/class.yith-wcan-navigation-widget.php:903
382
msgid "Display (default All):"
383
msgstr "Visualizza (default Tutti)"
384
385
- #: widgets/class.yith-wcan-navigation-widget.php:905
386
msgid "All (no hierarchical)"
387
msgstr "Tutti (non gerarchico)"
388
389
- #: widgets/class.yith-wcan-navigation-widget.php:906
390
msgid "All (hierarchical)"
391
msgstr "Tutti (gerarchico)"
392
393
- #: widgets/class.yith-wcan-navigation-widget.php:907
394
msgid "Only Parent"
395
msgstr "Solo Principali"
396
2
msgstr ""
3
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-02-19 16:23+0100\n"
6
+ "PO-Revision-Date: 2016-02-19 16:23+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: it_IT\n"
58
59
# @ yit
60
#: includes/functions.yith-wcan.php:57
61
+ #: widgets/class.yith-wcan-navigation-widget.php:864
62
msgid "Color"
63
msgstr "Colore"
64
149
"Inserisci qui la classe CSS o l'ID per il contenitore del conteggio dei "
150
"prodotti"
151
152
+ #: settings/frontend-options.php:57
153
+ msgid "Scroll top anchor"
154
+ msgstr ""
155
+
156
+ #: settings/frontend-options.php:58
157
+ msgid "Put here the HTML tag for the scroll top in mobile"
158
+ msgstr ""
159
+
160
#: templates/admin/premium.php:203 templates/admin/premium.php:377
161
#, php-format
162
msgid ""
337
msgid "YITH WooCommerce Ajax Product Filter"
338
msgstr "YITH WooCommerce Filtro Prodotti Ajax"
339
340
+ #: widgets/class.yith-wcan-navigation-widget.php:300
341
msgid "Filters:"
342
msgstr "Filtri:"
343
344
# @ yit
345
+ #: widgets/class.yith-wcan-navigation-widget.php:863
346
msgid "List"
347
msgstr "Lista"
348
349
# @ yit
350
+ #: widgets/class.yith-wcan-navigation-widget.php:865
351
msgid "Label"
352
msgstr "Etichetta"
353
354
+ #: widgets/class.yith-wcan-navigation-widget.php:866
355
msgid "Dropdown"
356
msgstr "Menu a tendina"
357
358
# @ yit
359
+ #: widgets/class.yith-wcan-navigation-widget.php:873
360
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
361
msgid "Title"
362
msgstr "Titolo"
363
364
# @ yit
365
+ #: widgets/class.yith-wcan-navigation-widget.php:879
366
msgid "Type:"
367
msgstr "Tipo:"
368
369
# @ yit
370
+ #: widgets/class.yith-wcan-navigation-widget.php:890
371
msgid "Query Type:"
372
msgstr "Tipo Query:"
373
374
# @ yit
375
+ #: widgets/class.yith-wcan-navigation-widget.php:892
376
msgid "AND"
377
msgstr "E"
378
379
# @ yit
380
+ #: widgets/class.yith-wcan-navigation-widget.php:893
381
msgid "OR"
382
msgstr "O"
383
384
# @ yit
385
+ #: widgets/class.yith-wcan-navigation-widget.php:899
386
msgid "Attribute:"
387
msgstr "Attributo:"
388
389
+ #: widgets/class.yith-wcan-navigation-widget.php:906
390
msgid "Display (default All):"
391
msgstr "Visualizza (default Tutti)"
392
393
+ #: widgets/class.yith-wcan-navigation-widget.php:908
394
msgid "All (no hierarchical)"
395
msgstr "Tutti (non gerarchico)"
396
397
+ #: widgets/class.yith-wcan-navigation-widget.php:909
398
msgid "All (hierarchical)"
399
msgstr "Tutti (gerarchico)"
400
401
+ #: widgets/class.yith-wcan-navigation-widget.php:910
402
msgid "Only Parent"
403
msgstr "Solo Principali"
404
languages/yith-woocommerce-ajax-navigation-tr_TR.mo CHANGED
Binary file
languages/yith-woocommerce-ajax-navigation-tr_TR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-01-27 11:00+0100\n"
6
- "PO-Revision-Date: 2016-01-27 11:00+0100\n"
7
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
"Language: tr\n"
@@ -58,7 +58,7 @@ msgstr "Terim"
58
59
# @ yit
60
#: includes/functions.yith-wcan.php:57
61
- #: widgets/class.yith-wcan-navigation-widget.php:861
62
msgid "Color"
63
msgstr "Renk"
64
@@ -517,18 +517,18 @@ msgid "Unable to contact the remote server, please try again later. Thanks!"
517
msgstr ""
518
519
#: plugin-fw/licence/lib/yit-licence.php:185
520
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:90
521
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:168
522
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:199
523
#: plugin-fw/templates/metaboxes/types/contactform.php:148
524
#: plugin-fw/templates/metaboxes/types/contactform.php:340
525
msgid "Email"
526
msgstr ""
527
528
#: plugin-fw/licence/lib/yit-licence.php:186
529
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:91
530
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:169
531
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:200
532
msgid "License Key"
533
msgstr ""
534
@@ -623,80 +623,80 @@ msgstr ""
623
msgid "Yithemes License Activation"
624
msgstr ""
625
626
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:29
627
msgid ""
628
"Have you updated your licenses? Have you asked for an extension? Update "
629
"information concerning your products."
630
msgstr ""
631
632
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:31
633
msgid "Update license information"
634
msgstr ""
635
636
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:44
637
msgid "Product to activate"
638
msgid_plural "Products to activate"
639
msgstr[0] ""
640
msgstr[1] ""
641
642
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:63
643
msgid "Activate"
644
msgstr ""
645
646
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:82
647
msgid "Activated"
648
msgstr ""
649
650
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:88
651
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:166
652
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:196
653
msgid "Product Name"
654
msgstr ""
655
656
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:94
657
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:203
658
msgid "Expires"
659
msgstr ""
660
661
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:97
662
msgid "Remaining"
663
msgstr ""
664
665
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:99
666
msgid "Membership"
667
msgstr ""
668
669
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:103
670
msgid "License Actions"
671
msgstr ""
672
673
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:128
674
#, php-format
675
msgid "%1s out of %2s"
676
msgstr ""
677
678
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:144
679
msgid "Deactivate"
680
msgstr ""
681
682
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:149
683
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:206
684
msgid "Renew"
685
msgstr ""
686
687
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:162
688
msgid "Banned"
689
msgstr ""
690
691
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:192
692
msgid "Expired"
693
msgstr ""
694
695
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:228
696
msgid "Order again"
697
msgstr ""
698
699
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:230
700
msgid "Renew license"
701
msgstr ""
702
@@ -1125,6 +1125,14 @@ msgstr ""
1125
msgid "Put here the CSS class or id for the result count container"
1126
msgstr ""
1127
1128
#: templates/admin/premium.php:203 templates/admin/premium.php:377
1129
#, php-format
1130
msgid ""
@@ -1277,68 +1285,68 @@ msgctxt "Admin: Widget Title"
1277
msgid "YITH WooCommerce Ajax Product Filter"
1278
msgstr ""
1279
1280
- #: widgets/class.yith-wcan-navigation-widget.php:297
1281
msgid "Filters:"
1282
msgstr ""
1283
1284
# @ yit
1285
- #: widgets/class.yith-wcan-navigation-widget.php:860
1286
msgid "List"
1287
msgstr "Liste"
1288
1289
# @ yit
1290
- #: widgets/class.yith-wcan-navigation-widget.php:862
1291
msgid "Label"
1292
msgstr "Etiket"
1293
1294
- #: widgets/class.yith-wcan-navigation-widget.php:863
1295
msgid "Dropdown"
1296
msgstr "Açılır Menü"
1297
1298
# @ yit
1299
- #: widgets/class.yith-wcan-navigation-widget.php:870
1300
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
1301
msgid "Title"
1302
msgstr "Başlık"
1303
1304
# @ yit
1305
- #: widgets/class.yith-wcan-navigation-widget.php:876
1306
msgid "Type:"
1307
msgstr "Tür:"
1308
1309
# @ yit
1310
- #: widgets/class.yith-wcan-navigation-widget.php:887
1311
msgid "Query Type:"
1312
msgstr "Sorgu Tipi:"
1313
1314
# @ yit
1315
- #: widgets/class.yith-wcan-navigation-widget.php:889
1316
msgid "AND"
1317
msgstr "VE"
1318
1319
# @ yit
1320
- #: widgets/class.yith-wcan-navigation-widget.php:890
1321
msgid "OR"
1322
msgstr "VEYA"
1323
1324
# @ yit
1325
- #: widgets/class.yith-wcan-navigation-widget.php:896
1326
msgid "Attribute:"
1327
msgstr "Özellikler:"
1328
1329
- #: widgets/class.yith-wcan-navigation-widget.php:903
1330
msgid "Display (default All):"
1331
msgstr "Görüntüleme (Varsayılan tümü):"
1332
1333
- #: widgets/class.yith-wcan-navigation-widget.php:905
1334
msgid "All (no hierarchical)"
1335
msgstr "Tümü"
1336
1337
- #: widgets/class.yith-wcan-navigation-widget.php:906
1338
msgid "All (hierarchical)"
1339
msgstr ""
1340
1341
- #: widgets/class.yith-wcan-navigation-widget.php:907
1342
msgid "Only Parent"
1343
msgstr "Sadece Ebeveyn"
1344
2
msgstr ""
3
"Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-02-19 16:23+0100\n"
6
+ "PO-Revision-Date: 2016-02-19 16:23+0100\n"
7
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
"Language: tr\n"
58
59
# @ yit
60
#: includes/functions.yith-wcan.php:57
61
+ #: widgets/class.yith-wcan-navigation-widget.php:864
62
msgid "Color"
63
msgstr "Renk"
64
517
msgstr ""
518
519
#: plugin-fw/licence/lib/yit-licence.php:185
520
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:88
521
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:166
522
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:197
523
#: plugin-fw/templates/metaboxes/types/contactform.php:148
524
#: plugin-fw/templates/metaboxes/types/contactform.php:340
525
msgid "Email"
526
msgstr ""
527
528
#: plugin-fw/licence/lib/yit-licence.php:186
529
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:89
530
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:167
531
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:198
532
msgid "License Key"
533
msgstr ""
534
623
msgid "Yithemes License Activation"
624
msgstr ""
625
626
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:27
627
msgid ""
628
"Have you updated your licenses? Have you asked for an extension? Update "
629
"information concerning your products."
630
msgstr ""
631
632
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:29
633
msgid "Update license information"
634
msgstr ""
635
636
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:42
637
msgid "Product to activate"
638
msgid_plural "Products to activate"
639
msgstr[0] ""
640
msgstr[1] ""
641
642
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:61
643
msgid "Activate"
644
msgstr ""
645
646
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:80
647
msgid "Activated"
648
msgstr ""
649
650
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:86
651
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:164
652
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:194
653
msgid "Product Name"
654
msgstr ""
655
656
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:92
657
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:201
658
msgid "Expires"
659
msgstr ""
660
661
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:95
662
msgid "Remaining"
663
msgstr ""
664
665
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:97
666
msgid "Membership"
667
msgstr ""
668
669
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:101
670
msgid "License Actions"
671
msgstr ""
672
673
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:126
674
#, php-format
675
msgid "%1s out of %2s"
676
msgstr ""
677
678
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:142
679
msgid "Deactivate"
680
msgstr ""
681
682
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:147
683
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:204
684
msgid "Renew"
685
msgstr ""
686
687
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:160
688
msgid "Banned"
689
msgstr ""
690
691
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:190
692
msgid "Expired"
693
msgstr ""
694
695
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:226
696
msgid "Order again"
697
msgstr ""
698
699
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:228
700
msgid "Renew license"
701
msgstr ""
702
1125
msgid "Put here the CSS class or id for the result count container"
1126
msgstr ""
1127
1128
+ #: settings/frontend-options.php:57
1129
+ msgid "Scroll top anchor"
1130
+ msgstr ""
1131
+
1132
+ #: settings/frontend-options.php:58
1133
+ msgid "Put here the HTML tag for the scroll top in mobile"
1134
+ msgstr ""
1135
+
1136
#: templates/admin/premium.php:203 templates/admin/premium.php:377
1137
#, php-format
1138
msgid ""
1285
msgid "YITH WooCommerce Ajax Product Filter"
1286
msgstr ""
1287
1288
+ #: widgets/class.yith-wcan-navigation-widget.php:300
1289
msgid "Filters:"
1290
msgstr ""
1291
1292
# @ yit
1293
+ #: widgets/class.yith-wcan-navigation-widget.php:863
1294
msgid "List"
1295
msgstr "Liste"
1296
1297
# @ yit
1298
+ #: widgets/class.yith-wcan-navigation-widget.php:865
1299
msgid "Label"
1300
msgstr "Etiket"
1301
1302
+ #: widgets/class.yith-wcan-navigation-widget.php:866
1303
msgid "Dropdown"
1304
msgstr "Açılır Menü"
1305
1306
# @ yit
1307
+ #: widgets/class.yith-wcan-navigation-widget.php:873
1308
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
1309
msgid "Title"
1310
msgstr "Başlık"
1311
1312
# @ yit
1313
+ #: widgets/class.yith-wcan-navigation-widget.php:879
1314
msgid "Type:"
1315
msgstr "Tür:"
1316
1317
# @ yit
1318
+ #: widgets/class.yith-wcan-navigation-widget.php:890
1319
msgid "Query Type:"
1320
msgstr "Sorgu Tipi:"
1321
1322
# @ yit
1323
+ #: widgets/class.yith-wcan-navigation-widget.php:892
1324
msgid "AND"
1325
msgstr "VE"
1326
1327
# @ yit
1328
+ #: widgets/class.yith-wcan-navigation-widget.php:893
1329
msgid "OR"
1330
msgstr "VEYA"
1331
1332
# @ yit
1333
+ #: widgets/class.yith-wcan-navigation-widget.php:899
1334
msgid "Attribute:"
1335
msgstr "Özellikler:"
1336
1337
+ #: widgets/class.yith-wcan-navigation-widget.php:906
1338
msgid "Display (default All):"
1339
msgstr "Görüntüleme (Varsayılan tümü):"
1340
1341
+ #: widgets/class.yith-wcan-navigation-widget.php:908
1342
msgid "All (no hierarchical)"
1343
msgstr "Tümü"
1344
1345
+ #: widgets/class.yith-wcan-navigation-widget.php:909
1346
msgid "All (hierarchical)"
1347
msgstr ""
1348
1349
+ #: widgets/class.yith-wcan-navigation-widget.php:910
1350
msgid "Only Parent"
1351
msgstr "Sadece Ebeveyn"
1352
languages/yith-woocommerce-ajax-navigation.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
msgstr ""
4
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
"Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2016-01-27 11:00+0100\n"
7
"PO-Revision-Date: 2015-06-19 13:59+0100\n"
8
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
9
"Language-Team: \n"
@@ -59,7 +59,7 @@ msgid "Term"
59
msgstr ""
60
61
#: includes/functions.yith-wcan.php:57
62
- #: widgets/class.yith-wcan-navigation-widget.php:861
63
msgid "Color"
64
msgstr ""
65
@@ -527,18 +527,18 @@ msgid ""
527
msgstr ""
528
529
#: plugin-fw/licence/lib/yit-licence.php:185
530
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:90
531
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:168
532
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:199
533
#: plugin-fw/templates/metaboxes/types/contactform.php:148
534
#: plugin-fw/templates/metaboxes/types/contactform.php:340
535
msgid "Email"
536
msgstr ""
537
538
#: plugin-fw/licence/lib/yit-licence.php:186
539
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:91
540
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:169
541
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:200
542
msgid "License Key"
543
msgstr ""
544
@@ -634,80 +634,80 @@ msgstr ""
634
msgid "Yithemes License Activation"
635
msgstr ""
636
637
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:29
638
msgid ""
639
"Have you updated your licenses? Have you asked for an extension? "
640
"Update information concerning your products."
641
msgstr ""
642
643
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:31
644
msgid "Update license information"
645
msgstr ""
646
647
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:44
648
msgid "Product to activate"
649
msgid_plural "Products to activate"
650
msgstr[0] ""
651
msgstr[1] ""
652
653
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:63
654
msgid "Activate"
655
msgstr ""
656
657
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:82
658
msgid "Activated"
659
msgstr ""
660
661
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:88
662
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:166
663
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:196
664
msgid "Product Name"
665
msgstr ""
666
667
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:94
668
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:203
669
msgid "Expires"
670
msgstr ""
671
672
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:97
673
msgid "Remaining"
674
msgstr ""
675
676
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:99
677
msgid "Membership"
678
msgstr ""
679
680
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:103
681
msgid "License Actions"
682
msgstr ""
683
684
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:128
685
#, php-format
686
msgid "%1s out of %2s"
687
msgstr ""
688
689
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:144
690
msgid "Deactivate"
691
msgstr ""
692
693
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:149
694
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:206
695
msgid "Renew"
696
msgstr ""
697
698
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:162
699
msgid "Banned"
700
msgstr ""
701
702
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:192
703
msgid "Expired"
704
msgstr ""
705
706
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:228
707
msgid "Order again"
708
msgstr ""
709
710
- #: plugin-fw/licence/templates/panel/activation/activation-panel.php:230
711
msgid "Renew license"
712
msgstr ""
713
@@ -1128,6 +1128,14 @@ msgstr ""
1128
msgid "Put here the CSS class or id for the result count container"
1129
msgstr ""
1130
1131
#: templates/admin/premium.php:203 templates/admin/premium.php:377
1132
#, php-format
1133
msgid ""
@@ -1284,60 +1292,60 @@ msgctxt "Admin: Widget Title"
1284
msgid "YITH WooCommerce Ajax Product Filter"
1285
msgstr ""
1286
1287
- #: widgets/class.yith-wcan-navigation-widget.php:297
1288
msgid "Filters:"
1289
msgstr ""
1290
1291
- #: widgets/class.yith-wcan-navigation-widget.php:860
1292
msgid "List"
1293
msgstr ""
1294
1295
- #: widgets/class.yith-wcan-navigation-widget.php:862
1296
msgid "Label"
1297
msgstr ""
1298
1299
- #: widgets/class.yith-wcan-navigation-widget.php:863
1300
msgid "Dropdown"
1301
msgstr ""
1302
1303
- #: widgets/class.yith-wcan-navigation-widget.php:870
1304
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
1305
msgid "Title"
1306
msgstr ""
1307
1308
- #: widgets/class.yith-wcan-navigation-widget.php:876
1309
msgid "Type:"
1310
msgstr ""
1311
1312
- #: widgets/class.yith-wcan-navigation-widget.php:887
1313
msgid "Query Type:"
1314
msgstr ""
1315
1316
- #: widgets/class.yith-wcan-navigation-widget.php:889
1317
msgid "AND"
1318
msgstr ""
1319
1320
- #: widgets/class.yith-wcan-navigation-widget.php:890
1321
msgid "OR"
1322
msgstr ""
1323
1324
- #: widgets/class.yith-wcan-navigation-widget.php:896
1325
msgid "Attribute:"
1326
msgstr ""
1327
1328
- #: widgets/class.yith-wcan-navigation-widget.php:903
1329
msgid "Display (default All):"
1330
msgstr ""
1331
1332
- #: widgets/class.yith-wcan-navigation-widget.php:905
1333
msgid "All (no hierarchical)"
1334
msgstr ""
1335
1336
- #: widgets/class.yith-wcan-navigation-widget.php:906
1337
msgid "All (hierarchical)"
1338
msgstr ""
1339
1340
- #: widgets/class.yith-wcan-navigation-widget.php:907
1341
msgid "Only Parent"
1342
msgstr ""
1343
3
msgstr ""
4
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
"Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2016-02-19 16:23+0100\n"
7
"PO-Revision-Date: 2015-06-19 13:59+0100\n"
8
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
9
"Language-Team: \n"
59
msgstr ""
60
61
#: includes/functions.yith-wcan.php:57
62
+ #: widgets/class.yith-wcan-navigation-widget.php:864
63
msgid "Color"
64
msgstr ""
65
527
msgstr ""
528
529
#: plugin-fw/licence/lib/yit-licence.php:185
530
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:88
531
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:166
532
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:197
533
#: plugin-fw/templates/metaboxes/types/contactform.php:148
534
#: plugin-fw/templates/metaboxes/types/contactform.php:340
535
msgid "Email"
536
msgstr ""
537
538
#: plugin-fw/licence/lib/yit-licence.php:186
539
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:89
540
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:167
541
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:198
542
msgid "License Key"
543
msgstr ""
544
634
msgid "Yithemes License Activation"
635
msgstr ""
636
637
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:27
638
msgid ""
639
"Have you updated your licenses? Have you asked for an extension? "
640
"Update information concerning your products."
641
msgstr ""
642
643
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:29
644
msgid "Update license information"
645
msgstr ""
646
647
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:42
648
msgid "Product to activate"
649
msgid_plural "Products to activate"
650
msgstr[0] ""
651
msgstr[1] ""
652
653
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:61
654
msgid "Activate"
655
msgstr ""
656
657
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:80
658
msgid "Activated"
659
msgstr ""
660
661
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:86
662
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:164
663
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:194
664
msgid "Product Name"
665
msgstr ""
666
667
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:92
668
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:201
669
msgid "Expires"
670
msgstr ""
671
672
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:95
673
msgid "Remaining"
674
msgstr ""
675
676
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:97
677
msgid "Membership"
678
msgstr ""
679
680
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:101
681
msgid "License Actions"
682
msgstr ""
683
684
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:126
685
#, php-format
686
msgid "%1s out of %2s"
687
msgstr ""
688
689
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:142
690
msgid "Deactivate"
691
msgstr ""
692
693
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:147
694
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:204
695
msgid "Renew"
696
msgstr ""
697
698
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:160
699
msgid "Banned"
700
msgstr ""
701
702
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:190
703
msgid "Expired"
704
msgstr ""
705
706
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:226
707
msgid "Order again"
708
msgstr ""
709
710
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:228
711
msgid "Renew license"
712
msgstr ""
713
1128
msgid "Put here the CSS class or id for the result count container"
1129
msgstr ""
1130
1131
+ #: settings/frontend-options.php:57
1132
+ msgid "Scroll top anchor"
1133
+ msgstr ""
1134
+
1135
+ #: settings/frontend-options.php:58
1136
+ msgid "Put here the HTML tag for the scroll top in mobile"
1137
+ msgstr ""
1138
+
1139
#: templates/admin/premium.php:203 templates/admin/premium.php:377
1140
#, php-format
1141
msgid ""
1292
msgid "YITH WooCommerce Ajax Product Filter"
1293
msgstr ""
1294
1295
+ #: widgets/class.yith-wcan-navigation-widget.php:300
1296
msgid "Filters:"
1297
msgstr ""
1298
1299
+ #: widgets/class.yith-wcan-navigation-widget.php:863
1300
msgid "List"
1301
msgstr ""
1302
1303
+ #: widgets/class.yith-wcan-navigation-widget.php:865
1304
msgid "Label"
1305
msgstr ""
1306
1307
+ #: widgets/class.yith-wcan-navigation-widget.php:866
1308
msgid "Dropdown"
1309
msgstr ""
1310
1311
+ #: widgets/class.yith-wcan-navigation-widget.php:873
1312
#: widgets/class.yith-wcan-reset-navigation-widget.php:100
1313
msgid "Title"
1314
msgstr ""
1315
1316
+ #: widgets/class.yith-wcan-navigation-widget.php:879
1317
msgid "Type:"
1318
msgstr ""
1319
1320
+ #: widgets/class.yith-wcan-navigation-widget.php:890
1321
msgid "Query Type:"
1322
msgstr ""
1323
1324
+ #: widgets/class.yith-wcan-navigation-widget.php:892
1325
msgid "AND"
1326
msgstr ""
1327
1328
+ #: widgets/class.yith-wcan-navigation-widget.php:893
1329
msgid "OR"
1330
msgstr ""
1331
1332
+ #: widgets/class.yith-wcan-navigation-widget.php:899
1333
msgid "Attribute:"
1334
msgstr ""
1335
1336
+ #: widgets/class.yith-wcan-navigation-widget.php:906
1337
msgid "Display (default All):"
1338
msgstr ""
1339
1340
+ #: widgets/class.yith-wcan-navigation-widget.php:908
1341
msgid "All (no hierarchical)"
1342
msgstr ""
1343
1344
+ #: widgets/class.yith-wcan-navigation-widget.php:909
1345
msgid "All (hierarchical)"
1346
msgstr ""
1347
1348
+ #: widgets/class.yith-wcan-navigation-widget.php:910
1349
msgid "Only Parent"
1350
msgstr ""
1351
settings/frontend-options.php CHANGED
@@ -53,6 +53,14 @@ $frontend = array(
53
'std' => '.woocommerce-result-count'
54
),
55
56
array( 'type' => 'close' ),
57
),
58
)
53
'std' => '.woocommerce-result-count'
54
),
55
56
+ array(
57
+ 'name' => __( 'Scroll top anchor', 'yith-woocommerce-ajax-navigation' ),
58
+ 'desc' => __( 'Put here the HTML tag for the scroll top in mobile', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>.yit-wcan-container</strong>)',
59
+ 'id' => 'yith_wcan_ajax_scroll_top_class',
60
+ 'type' => 'text',
61
+ 'std' => '.yit-wcan-container'
62
+ ),
63
+
64
array( 'type' => 'close' ),
65
),
66
)
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -65,7 +65,9 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
65
$display_type = isset( $instance['type'] ) ? $instance['type'] : 'list';
66
$is_child_class = 'yit-wcan-child-terms';
67
$is_chosen_class = 'chosen';
68
- $terms_type_list = ( isset( $instance['display'] ) && ( $display_type == 'list' || $display_type == 'select' ) ) ? $instance['display'] : 'all';
69
70
$instance['attribute'] = empty( $instance['attribute'] ) ? '' : $instance['attribute'];
71
@@ -86,6 +88,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
86
87
$terms = yit_get_terms( $terms_type_list, $taxonomy, $instance );
88
89
if ( count( $terms ) > 0 ) {
90
ob_start();
91
65
$display_type = isset( $instance['type'] ) ? $instance['type'] : 'list';
66
$is_child_class = 'yit-wcan-child-terms';
67
$is_chosen_class = 'chosen';
68
+ //TODO: Filtrare da premium
69
+ //$terms_type_list = ( isset( $instance['display'] ) && ( $display_type == 'list' || $display_type == 'select' ) ) ? $instance['display'] : 'all';
70
+ $terms_type_list = ( isset( $instance['display'] ) ) ? $instance['display'] : 'all';
71
72
$instance['attribute'] = empty( $instance['attribute'] ) ? '' : $instance['attribute'];
73
88
89
$terms = yit_get_terms( $terms_type_list, $taxonomy, $instance );
90
91
+
92
if ( count( $terms ) > 0 ) {
93
ob_start();
94