YITH WooCommerce Ajax Product Filter - Version 3.1.2

Version Description

  • Released: 17 January, 2017 =

  • Tweak: Support for YITH WooCommerce Brands add-on FREE

  • Fix: Product image disappears after filter with lazy load option enabled

  • Fix: Empty li tag with query type OR in categories filter

  • Fix: Reset widget doesn't works with categories

  • Fix: Order by doesn't works with filter type list, label and dropdown

  • Dev: yith_wcan_brands_enabled hook

Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

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.7
7
- Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -143,7 +143,7 @@ You can get more features with the premium version of YITH WooCommerce Ajax Prod
143
  = How can I try the full-featured plugin? =
144
 
145
  If you want to see a demonstration version of the premium plugin, you can see it installed on two different WooCommerce sites, either in [this page]( http://plugins.yithemes.com/yith-woocommerce-ajax-product-filter/?preview) or in [this page](http://preview.yithemes.com/bazar/shop/). Browse it and try all options available so that you can see how your plugin looks like.
146
-
147
  == Screenshots ==
148
 
149
  1. Admin - Appearance -> Widget: WooCommerce Filter Widget List Style
@@ -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
  = 3.1.1 - Released: 28 December, 2016 =
163
 
164
  * Added: yit_get_terms_args hook
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.7
7
+ Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
143
  = How can I try the full-featured plugin? =
144
 
145
  If you want to see a demonstration version of the premium plugin, you can see it installed on two different WooCommerce sites, either in [this page]( http://plugins.yithemes.com/yith-woocommerce-ajax-product-filter/?preview) or in [this page](http://preview.yithemes.com/bazar/shop/). Browse it and try all options available so that you can see how your plugin looks like.
146
+
147
  == Screenshots ==
148
 
149
  1. Admin - Appearance -> Widget: WooCommerce Filter Widget List Style
159
 
160
  == Changelog ==
161
 
162
+ = 3.1.2 - Released: 17 January, 2017 =
163
+
164
+ * Tweak: Support for YITH WooCommerce Brands add-on FREE
165
+ * Fix: Product image disappears after filter with lazy load option enabled
166
+ * Fix: Empty li tag with query type OR in categories filter
167
+ * Fix: Reset widget doesn't works with categories
168
+ * Fix: Order by doesn't works with filter type list, label and dropdown
169
+ * Dev: yith_wcan_brands_enabled hook
170
+
171
  = 3.1.1 - Released: 28 December, 2016 =
172
 
173
  * Added: yit_get_terms_args hook
assets/js/yith-wcan-frontend.js CHANGED
@@ -267,7 +267,7 @@ jQuery(function ($) {
267
 
268
  //trigger ready event
269
  $(document).trigger("ready");
270
- $(document).trigger("yith-wcan-ajax-filtered");
271
  $(window).trigger("scroll");
272
  if( is_reset ){
273
  if( typeof $.fn.slider != 'undefined' ){
@@ -298,8 +298,6 @@ jQuery(function ($) {
298
  $(this).yith_wcan_ajax_filters(e, this);
299
  });
300
 
301
-
302
-
303
  /*AJAX NAVIGATION DROPDOWN STYLE*/
304
  function yit_open_select_dropdown(element) {
305
 
@@ -388,4 +386,26 @@ jQuery(function ($) {
388
  .replace(new RegExp('[?&]' + parameter + '=[^&#]*(#.*)?$'), '$1')
389
  .replace(new RegExp('([?&])' + parameter + '=[^&]*&'), '$1');
390
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
  });
267
 
268
  //trigger ready event
269
  $(document).trigger("ready");
270
+ $(document).trigger("yith-wcan-ajax-filtered", [response]);
271
  $(window).trigger("scroll");
272
  if( is_reset ){
273
  if( typeof $.fn.slider != 'undefined' ){
298
  $(this).yith_wcan_ajax_filters(e, this);
299
  });
300
 
 
 
301
  /*AJAX NAVIGATION DROPDOWN STYLE*/
302
  function yit_open_select_dropdown(element) {
303
 
386
  .replace(new RegExp('[?&]' + parameter + '=[^&#]*(#.*)?$'), '$1')
387
  .replace(new RegExp('([?&])' + parameter + '=[^&]*&'), '$1');
388
  }
389
+
390
+ /* === Flatsome Theme Support === */
391
+ if( yith_wcan.flatsome.is_enabled == 1 && yith_wcan.flatsome.lazy_load_enabled == 1 ) {
392
+ $( document ).on('yith-wcan-ajax-filtered', function(event, response){
393
+ //Lazy Load
394
+ var context = $(document);
395
+ jQuery('.lazy-load', context).each(function (index, element) {
396
+ var $element = jQuery(element);
397
+ var waypoint = $element.waypoint(function (direction) {
398
+ if($element.hasClass('lazy-load-active')) return;
399
+ var src = $element.data('src');
400
+ var srcset = $element.data('srcset');
401
+ if(src) $element.attr('src', src);
402
+ if(srcset) $element.attr('srcset', srcset);
403
+ $element.imagesLoaded( function() {
404
+ $element.addClass('lazy-load-active').removeClass('lazy-load');
405
+ });
406
+ //this.destroy();
407
+ }, { offset: '140%' });
408
+ });
409
+ });
410
+ }
411
  });
assets/js/yith-wcan-frontend.min.js CHANGED
@@ -1,16 +1,16 @@
1
- jQuery(function(a){function u(a,p){return a.replace(new RegExp("[?&]"+p+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+p+"=[^&]*&"),"$1")}var y=/(?!(\[))(\.)[^.#[]*/g,z=/(#)[^.#[]*/,A=/^[\w]+/,B=/^[\w]+$/,v=function(k,p){var b;if(B.test(k))b=[{tag:k}];else{b=k;for(var e={sel:[],val:[]},n=[],c=!1,h="",m=[],l=0,f=b.length;l<f;l++){var d=b.charAt(l);if(c)if("\\"===d&&l+1<b.length)m.push(b.charAt(++l));else if(h===d)h="",m.push(d);else if(("'"===d||'"'===d)&&""===h)h=d,m.push(d);else if("]"===d&&
2
- ""===h)e.val.push(m.join("")),m=[],c=!1;else{if("]"!==d||""!==h)""===h&&","===d?(e.val.push(m.join("")),m=[]):m.push(d)}else"\\"===d&&l+1<b.length?c&&m.push(b.charAt(++l)):"["===d&&""===h?c=!0:" "===d||"+"===d?(e.sel=e.sel.join(""),n.push(e),"+"===d&&n.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(""),n.push(e);for(l=0;l<n.length;l++){e=n[l].sel;if("+"===e)g.tag=e;else{var g=[];g.tag=A.exec(e);g.id=z.exec(e);g.id&&a.isArray(g.id)&&
3
- (g.id=g.id[0].substr(1));g.tag||(g.tag="div");g.vars=[];for(b=0;b<n[l].val.length;b++)h=n[l].val[b].indexOf("="),c=n[l].val[b].substr(0,h),h=n[l].val[b].substr(h+1),h=h.replace(/^[\s]*[\"\']*|[\"\']*[\s]*$/g,""),"text"===c?g.text=h:g.vars.push([c,h]);e=e.match(y);c=[];if(e){for(b=0;b<e.length;b++)c.push(e[b].substr(1));g.className=c.join(" ")}}n[l]=g}b=n}e=[];"undefined"===typeof p&&(p=1);n=[];c=[];h=[];m=document.createElement("div");for(f=l=0;f<b.length;f++){if("+"==b[f].tag)c=h.slice(),--l;else{for(d=
4
- 0;d<p;d++)if("input"==b[f].tag){g=[];g.push("<"+b[f].tag);b[f].id&&g.push("id='"+b[f].id+"'");b[f].className&&(g.push("class='"+b[f].className),f+1===b.length&&g.push(lastClass),g.push("'"));if(b[f].vars)for(var q=0;q<b[f].vars.length;q++)g.push(b[f].vars[q][0]+"='"+b[f].vars[q][1]+"'");b[f].text&&g.push("value='"+b[f].text+"'");g.push("/>");h[d]=c[d];c[d]?(c[d].innerHTML+=g.join(" "),c[d]=c[d].lastChild):(m.innerHTML=g.join(" "),c[d]=m.removeChild(m.firstChild))}else{g=document.createElement(b[f].tag);
5
- if(b[f].vars)for(q=0;q<b[f].vars.length;q++)console.log(b[f].tag,b[f].vars[q]),g.setAttribute(b[f].vars[q][0],b[f].vars[q][1]);b[f].id&&(g.id=b[f].id);b[f].className&&(g.className=b[f].className);b[f].text&&g.appendChild(document.createTextNode(b[f].text));h[d]=c[d];c[d]=c[d]?c[d].appendChild(g):g}l++||Array.prototype.push.apply(n,c)}e=a.merge(e,c)}return a(n)},w=function(k,p,b){for(var e=k.match(/%[^%]*%/g)||[],n=[],c=0;c<p.length;c++){for(var h=k,m=0;m<e.length;m++)var l=e[m].substr(1,e[m].length-
6
- 2),h=h.replace(e[m],p[c][l]);n=a.merge(n,v(h,b))}return a(n)};a.jseldom=function(k){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,x=function(){var k=a("#yith-wcan-reset-all-categories").find("a.yith-wcan-reset-categories-link"),p=a("#yith-wcan-reset-all-tags").find("a.yith-wcan-reset-tags-link");
7
- k.add(p).on("click",function(b){a(this).yith_wcan_ajax_filters(b,this)})};a.fn.yith_wcan_ajax_filters=function(k,p){k.preventDefault();var b=p.href,e=a(p),n=e.hasClass("yith-wcan-reset-navigation");if("undefined"==typeof b&&e.parents().hasClass("price_slider_wrapper")){e.parents("form");var c=window.location,h=c.origin+c.pathname,m=h!=c.href,l=a(".price_slider_amount #min_price").val(),f=a(".price_slider_amount #max_price").val(),b=c.href;1==m&&(b=u(b,"min_price"),b=u(b,"max_price"));b=b+(h==b?"?":
8
- "&")+a.param({min_price:l,max_price:f})}"select"==e.data("type")&&(e.parents("div.yith-woo-ajax-navigation").find("a.yit-wcan-select-open").removeClass("active"),e.parent().find("div.yith-wcan-select-wrapper").css("z-index","-1").animate({visibility:"hidden",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",
9
- "url("+yith_wcan_frontend.loader_url+")");c=!1;"both"==yith_wcan.scroll_top_mode?c=!0:"mobile"==yith_wcan.scroll_top_mode&&1==yith_wcan.is_mobile?c=!0:"desktop"==yith_wcan.scroll_top_mode&&1!=yith_wcan.is_mobile&&(c=!0);1==c&&a(window).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(d){r=!1;a(yith_wcan.container).not(".ywcps-products").removeClass("yith-wcan-loading");0<a(d).find(yith_wcan.container).not(".ywcps-products").length?
10
- a(".yit-wcan-container").html(a(d).find(yith_wcan.container).not(".ywcps-products")):a(".yit-wcan-container").html(a(d).find(".woocommerce-info"));0<a(d).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(d).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" />');
11
- 0<a(d).find(yith_wcan.result_count).length&&a(yith_wcan.result_count).html(a(d).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),c=b.attr("id"),c=a(d).find("#"+c);0==c.length?b.hide():(b.html(c.html()),b.show())});if(1==yith_wcan.avada.is_enabled){var c=a(yith_wcan.avada.sort_count);c.html(a(d).find(yith_wcan.avada.sort_count).html());""==e.text()?c.hide():
12
- c.show()}1!=yith_wcan.change_browser_url||navigator.userAgent.match(/msie/i)||window.history.pushState({pageTitle:d.pageTitle},"",b);a(document).trigger("ready");a(document).trigger("yith-wcan-ajax-filtered");a(window).trigger("scroll");if(n){if("undefined"!=typeof a.fn.slider){var c=parseInt(a(yith_wcan.wc_price_slider.min_price).data("min")),f=parseInt(a(yith_wcan.wc_price_slider.max_price).data("max"));a(yith_wcan.wc_price_slider.wrapper).slider("values",[c,f]);a(document.body).trigger("price_slider_slide",
13
- [c,f])}a(document).trigger("yith-wcan-ajax-reset-filtered")}x()}})};a(yith_wcan.container).not(".ywcps-products").wrap('<div class="yit-wcan-container"></div>');a(document).on("yith-wcan-wrapped",function(){x()});a(document).trigger("yith-wcan-wrapped");a(document).on("click",".yith-wcan a",function(k){a(this).yith_wcan_ajax_filters(k,this)});var t=function(){a("div.yith-wcan-select-wrapper").css("z-index","-1").animate({visibility:"hidden",opacity:0},0);a("a.yit-wcan-select-open").removeClass("active")};
14
- a(document).on("click","a.yit-wcan-select-open.active",function(k){k.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(k){k.preventDefault();a("a.yit-wcan-select-open.active").trigger("click");a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","1").animate({visibility:"visible",
15
- 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 k="";a(this).find("ul.yith-wcan-select li.chosen").each(function(){k+=a(this).text()+", "});k=k.substring(0,k.length-2);""!=k&&a(this).parent().find("a.yit-wcan-select-open").text(k)})});a(document).on("ready",t);a("body").on("click",function(k){a(k.target).hasClass("yit-wcan-select-open")||
16
- t()})});
1
+ jQuery(function(a){function u(a,p){return a.replace(new RegExp("[?&]"+p+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+p+"=[^&]*&"),"$1")}var y=/(?!(\[))(\.)[^.#[]*/g,z=/(#)[^.#[]*/,A=/^[\w]+/,B=/^[\w]+$/,v=function(h,p){var b;if(B.test(h))b=[{tag:h}];else{b=h;for(var d={sel:[],val:[]},n=[],c=!1,k="",m=[],l=0,g=b.length;l<g;l++){var f=b.charAt(l);if(c)if("\\"===f&&l+1<b.length)m.push(b.charAt(++l));else if(k===f)k="",m.push(f);else if(("'"===f||'"'===f)&&""===k)k=f,m.push(f);else if("]"===f&&
2
+ ""===k)d.val.push(m.join("")),m=[],c=!1;else{if("]"!==f||""!==k)""===k&&","===f?(d.val.push(m.join("")),m=[]):m.push(f)}else"\\"===f&&l+1<b.length?c&&m.push(b.charAt(++l)):"["===f&&""===k?c=!0:" "===f||"+"===f?(d.sel=d.sel.join(""),n.push(d),"+"===f&&n.push({sel:"+",val:""}),d={sel:[],val:[]}):" "!==f&&"]"!==f&&d.sel.push(f)}if(0!=d.sel.length||0!=d.val.length)d.sel=d.sel.join(""),n.push(d);for(l=0;l<n.length;l++){d=n[l].sel;if("+"===d)e.tag=d;else{var e=[];e.tag=A.exec(d);e.id=z.exec(d);e.id&&a.isArray(e.id)&&
3
+ (e.id=e.id[0].substr(1));e.tag||(e.tag="div");e.vars=[];for(b=0;b<n[l].val.length;b++)k=n[l].val[b].indexOf("="),c=n[l].val[b].substr(0,k),k=n[l].val[b].substr(k+1),k=k.replace(/^[\s]*[\"\']*|[\"\']*[\s]*$/g,""),"text"===c?e.text=k:e.vars.push([c,k]);d=d.match(y);c=[];if(d){for(b=0;b<d.length;b++)c.push(d[b].substr(1));e.className=c.join(" ")}}n[l]=e}b=n}d=[];"undefined"===typeof p&&(p=1);n=[];c=[];k=[];m=document.createElement("div");for(g=l=0;g<b.length;g++){if("+"==b[g].tag)c=k.slice(),--l;else{for(f=
4
+ 0;f<p;f++)if("input"==b[g].tag){e=[];e.push("<"+b[g].tag);b[g].id&&e.push("id='"+b[g].id+"'");b[g].className&&(e.push("class='"+b[g].className),g+1===b.length&&e.push(lastClass),e.push("'"));if(b[g].vars)for(var q=0;q<b[g].vars.length;q++)e.push(b[g].vars[q][0]+"='"+b[g].vars[q][1]+"'");b[g].text&&e.push("value='"+b[g].text+"'");e.push("/>");k[f]=c[f];c[f]?(c[f].innerHTML+=e.join(" "),c[f]=c[f].lastChild):(m.innerHTML=e.join(" "),c[f]=m.removeChild(m.firstChild))}else{e=document.createElement(b[g].tag);
5
+ if(b[g].vars)for(q=0;q<b[g].vars.length;q++)console.log(b[g].tag,b[g].vars[q]),e.setAttribute(b[g].vars[q][0],b[g].vars[q][1]);b[g].id&&(e.id=b[g].id);b[g].className&&(e.className=b[g].className);b[g].text&&e.appendChild(document.createTextNode(b[g].text));k[f]=c[f];c[f]=c[f]?c[f].appendChild(e):e}l++||Array.prototype.push.apply(n,c)}d=a.merge(d,c)}return a(n)},w=function(h,p,b){for(var d=h.match(/%[^%]*%/g)||[],n=[],c=0;c<p.length;c++){for(var k=h,m=0;m<d.length;m++)var l=d[m].substr(1,d[m].length-
6
+ 2),k=k.replace(d[m],p[c][l]);n=a.merge(n,v(k,b))}return a(n)};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,x=function(){var h=a("#yith-wcan-reset-all-categories").find("a.yith-wcan-reset-categories-link"),p=a("#yith-wcan-reset-all-tags").find("a.yith-wcan-reset-tags-link");
7
+ h.add(p).on("click",function(b){a(this).yith_wcan_ajax_filters(b,this)})};a.fn.yith_wcan_ajax_filters=function(h,p){h.preventDefault();var b=p.href,d=a(p),n=d.hasClass("yith-wcan-reset-navigation");if("undefined"==typeof b&&d.parents().hasClass("price_slider_wrapper")){d.parents("form");var c=window.location,k=c.origin+c.pathname,m=k!=c.href,l=a(".price_slider_amount #min_price").val(),g=a(".price_slider_amount #max_price").val(),b=c.href;1==m&&(b=u(b,"min_price"),b=u(b,"max_price"));b=b+(k==b?"?":
8
+ "&")+a.param({min_price:l,max_price:g})}"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").css("z-index","-1").animate({visibility:"hidden",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",
9
+ "url("+yith_wcan_frontend.loader_url+")");c=!1;"both"==yith_wcan.scroll_top_mode?c=!0:"mobile"==yith_wcan.scroll_top_mode&&1==yith_wcan.is_mobile?c=!0:"desktop"==yith_wcan.scroll_top_mode&&1!=yith_wcan.is_mobile&&(c=!0);1==c&&a(window).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=!1;a(yith_wcan.container).not(".ywcps-products").removeClass("yith-wcan-loading");0<a(c).find(yith_wcan.container).not(".ywcps-products").length?
10
+ 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()):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" />');
11
+ 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"),d=a(c).find("#"+d);0==d.length?b.hide():(b.html(d.html()),b.show())});if(1==yith_wcan.avada.is_enabled){var e=a(yith_wcan.avada.sort_count);e.html(a(c).find(yith_wcan.avada.sort_count).html());""==d.text()?e.hide():
12
+ e.show()}1!=yith_wcan.change_browser_url||navigator.userAgent.match(/msie/i)||window.history.pushState({pageTitle:c.pageTitle},"",b);a(document).trigger("ready");a(document).trigger("yith-wcan-ajax-filtered",[c]);a(window).trigger("scroll");if(n){if("undefined"!=typeof a.fn.slider){var e=parseInt(a(yith_wcan.wc_price_slider.min_price).data("min")),f=parseInt(a(yith_wcan.wc_price_slider.max_price).data("max"));a(yith_wcan.wc_price_slider.wrapper).slider("values",[e,f]);a(document.body).trigger("price_slider_slide",
13
+ [e,f])}a(document).trigger("yith-wcan-ajax-reset-filtered")}x()}})};a(yith_wcan.container).not(".ywcps-products").wrap('<div class="yit-wcan-container"></div>');a(document).on("yith-wcan-wrapped",function(){x()});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").css("z-index","-1").animate({visibility:"hidden",opacity:0},0);a("a.yit-wcan-select-open").removeClass("active")};
14
+ 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("a.yit-wcan-select-open.active").trigger("click");a(this).parent().find("div.yith-wcan-select-wrapper").css("z-index","1").animate({visibility:"visible",
15
+ 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+=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")||
16
+ t()});if(1==yith_wcan.flatsome.is_enabled&&1==yith_wcan.flatsome.lazy_load_enabled)a(document).on("yith-wcan-ajax-filtered",function(h,p){var b=a(document);jQuery(".lazy-load",b).each(function(a,b){var c=jQuery(b);c.waypoint(function(a){if(!c.hasClass("lazy-load-active")){a=c.data("src");var b=c.data("srcset");a&&c.attr("src",a);b&&c.attr("srcset",b);c.imagesLoaded(function(){c.addClass("lazy-load-active").removeClass("lazy-load")})}},{offset:"140%"})})})});
includes/class.yith-wcan-frontend.php CHANGED
@@ -225,6 +225,11 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
225
  'is_enabled' => class_exists( 'Avada' ),
226
  'sort_count' => 'ul.sort-count.order-dropdown'
227
  ),
 
 
 
 
 
228
  )
229
  );
230
 
225
  'is_enabled' => class_exists( 'Avada' ),
226
  'sort_count' => 'ul.sort-count.order-dropdown'
227
  ),
228
+ /* Flatsome Theme Support */
229
+ 'flatsome' => array(
230
+ 'is_enabled' => function_exists( 'flatsome_option' ),
231
+ 'lazy_load_enabled' => get_theme_mod( 'lazy_load_images' )
232
+ ),
233
  )
234
  );
235
 
includes/functions.yith-wcan.php CHANGED
@@ -202,11 +202,7 @@ if ( ! function_exists( 'yit_reorder_terms_by_parent' ) ) {
202
  $terms_count ++;
203
  }
204
 
205
- if( 'product' == yith_wcan_get_option( 'yith_wcan_ajax_shop_terms_order', 'alphabetical' ) && ! is_wp_error( $parent_terms ) ){
206
- usort( $parent_terms, 'yit_terms_sort' );
207
- }
208
-
209
- /* Reorder Therms */
210
  $terms_count = 0;
211
  $terms = array();
212
 
@@ -221,6 +217,10 @@ if ( ! function_exists( 'yit_reorder_terms_by_parent' ) ) {
221
  usort( $child_terms[$term->term_id], 'yit_terms_sort' );
222
  }
223
 
 
 
 
 
224
  foreach ( $child_terms[$term->term_id] as $child_term ) {
225
  $terms_count ++;
226
  $terms[$terms_count] = $child_term;
@@ -229,6 +229,14 @@ if ( ! function_exists( 'yit_reorder_terms_by_parent' ) ) {
229
  $terms_count ++;
230
  }
231
 
 
 
 
 
 
 
 
 
232
  return $terms;
233
  }
234
  }
@@ -294,7 +302,12 @@ if ( ! function_exists( 'yit_get_terms' ) ) {
294
  break;
295
  }
296
 
297
- if( apply_filters( 'yith_wcan_skip_shop_term_order', true, $taxonomy, $instance ) &&'product' == yith_wcan_get_option( 'yith_wcan_ajax_shop_terms_order', 'alphabetical' ) && 'hierarchical' != $instance['display'] && ! is_wp_error( $terms ) && ! $reordered ){
 
 
 
 
 
298
  usort( $terms, 'yit_terms_sort' );
299
  }
300
 
@@ -394,7 +407,7 @@ if ( ! function_exists( 'yit_get_filter_args' ) ) {
394
  $regexs = array( '/^filter_[a-zA-Z0-9]/', '/^query_type_[a-zA-Z0-9]/', '/product_tag/' );
395
 
396
  /* Support to YITH WooCommerce Brands */
397
- if ( defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ) {
398
  $brands_taxonomy = YITH_WCBR::$brands_taxonomy;
399
  $regexs[] = "/{$brands_taxonomy}/";
400
  }
@@ -486,13 +499,14 @@ if ( ! function_exists( 'yit_get_woocommerce_layered_nav_link' ) ) {
486
  $taxonomy = get_query_var( 'taxonomy' );
487
  $brands_taxonomy = yit_get_brands_taxonomy();
488
  $return = get_post_type_archive_link( 'product' );
489
- if( ! empty( $brands_taxonomy ) && $brands_taxonomy == $taxonomy ){
490
- $return = add_query_arg( array( $taxonomy => get_query_var( 'term' ) ), $return );
491
- }
 
492
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
493
  }
494
 
495
- elseif ( is_product_category() ) {
496
  $return = get_term_link( get_queried_object()->slug, 'product_cat' );
497
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
498
  }
@@ -503,14 +517,13 @@ if ( ! function_exists( 'yit_get_woocommerce_layered_nav_link' ) ) {
503
  $term = $queried_object instanceof WP_Term ? $queried_object : get_query_var( 'term' );
504
  $brands_taxonomy = yit_get_brands_taxonomy();
505
 
506
- if( ! empty( $brands_taxonomy ) && $brands_taxonomy == $taxonomy ){
507
- $return = add_query_arg( array( $taxonomy => $term ), get_post_type_archive_link( 'product' ) );
508
- }
509
 
510
- else {
511
  $return = get_term_link( yith_wcan_is_product_attribute() && is_numeric( $term ) ? intval( $term ) : $term, $taxonomy );
 
512
  }
513
-
514
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
515
  }
516
 
@@ -575,6 +588,13 @@ if( ! function_exists( 'yit_terms_sort' ) ){
575
  }
576
  }
577
 
 
 
 
 
 
 
 
578
  if( ! function_exists( 'yit_get_brands_taxonomy' ) ){
579
  /**
580
  * Get the product brands taxonomy name
@@ -588,7 +608,7 @@ if( ! function_exists( 'yit_get_brands_taxonomy' ) ){
588
  $taxonomy = '';
589
 
590
  //Support to YITH WooCommerce Brands Add-on
591
- if( defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ){
592
  $taxonomy = YITH_WCBR::$brands_taxonomy;
593
  }
594
 
@@ -665,7 +685,6 @@ if( ! function_exists( 'yit_is_filtered_uri' ) ){
665
  function yit_is_filtered_uri(){
666
  $_chosen_attributes = YITH_WCAN()->get_layered_nav_chosen_attributes();
667
  $brands = yit_get_brands_taxonomy();
668
- $show_all_categories_link_enabled = 'yes' == yith_wcan_get_option( 'yith_wcan_enable_see_all_categories_link', 'no' );
669
  //check if current page is filtered
670
  $is_filtered_uri = isset( $_GET['product_cat'] ) || count( $_chosen_attributes ) > 0 || isset( $_GET['min_price'] ) || isset( $_GET['max_price'] ) || isset( $_GET['orderby'] ) || isset( $_GET['instock_filter'] ) || isset( $_GET['onsale_filter'] ) || isset( $_GET['product_tag'] ) || isset( $_GET[ $brands ] );
671
 
@@ -732,4 +751,15 @@ if( ! function_exists( 'yith_wcan_wp_get_terms' ) ) {
732
  return get_terms( $args );
733
  }
734
  }
 
 
 
 
 
 
 
 
 
 
 
735
  }
202
  $terms_count ++;
203
  }
204
 
205
+ /* Reorder Terms */
 
 
 
 
206
  $terms_count = 0;
207
  $terms = array();
208
 
217
  usort( $child_terms[$term->term_id], 'yit_terms_sort' );
218
  }
219
 
220
+ else{
221
+ usort( $child_terms[$term->term_id], 'yit_alphabetical_terms_sort' );
222
+ }
223
+
224
  foreach ( $child_terms[$term->term_id] as $child_term ) {
225
  $terms_count ++;
226
  $terms[$terms_count] = $child_term;
229
  $terms_count ++;
230
  }
231
 
232
+ if( 'product' == yith_wcan_get_option( 'yith_wcan_ajax_shop_terms_order', 'alphabetical' ) && ! is_wp_error( $parent_terms ) ){
233
+ usort( $terms, 'yit_terms_sort' );
234
+ }
235
+
236
+ else{
237
+ usort( $terms, 'yit_alphabetical_terms_sort' );
238
+ }
239
+
240
  return $terms;
241
  }
242
  }
302
  break;
303
  }
304
 
305
+ if( ! $reordered ){
306
+ $terms = yit_reorder_terms_by_parent( $terms, $taxonomy );
307
+ $reordered = true;
308
+ }
309
+
310
+ if( apply_filters( 'yith_wcan_skip_shop_term_order', true, $taxonomy, $instance ) && 'product' == yith_wcan_get_option( 'yith_wcan_ajax_shop_terms_order', 'alphabetical' ) && 'hierarchical' != $instance['display'] && ! is_wp_error( $terms ) && ! $reordered ){
311
  usort( $terms, 'yit_terms_sort' );
312
  }
313
 
407
  $regexs = array( '/^filter_[a-zA-Z0-9]/', '/^query_type_[a-zA-Z0-9]/', '/product_tag/' );
408
 
409
  /* Support to YITH WooCommerce Brands */
410
+ if ( yith_wcan_brands_enabled() ) {
411
  $brands_taxonomy = YITH_WCBR::$brands_taxonomy;
412
  $regexs[] = "/{$brands_taxonomy}/";
413
  }
499
  $taxonomy = get_query_var( 'taxonomy' );
500
  $brands_taxonomy = yit_get_brands_taxonomy();
501
  $return = get_post_type_archive_link( 'product' );
502
+
503
+ // if( ! empty( $brands_taxonomy ) && $brands_taxonomy == $taxonomy ){
504
+ // $return = add_query_arg( array( $taxonomy => get_query_var( 'term' ) ), $return );
505
+ // }
506
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
507
  }
508
 
509
+ elseif ( ! is_shop() && is_product_category() ) {
510
  $return = get_term_link( get_queried_object()->slug, 'product_cat' );
511
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
512
  }
517
  $term = $queried_object instanceof WP_Term ? $queried_object : get_query_var( 'term' );
518
  $brands_taxonomy = yit_get_brands_taxonomy();
519
 
520
+ $check_for_brands = ! empty( $brands_taxonomy ) && $brands_taxonomy == $taxonomy;
 
 
521
 
522
+ if( ! $check_for_brands ){
523
  $return = get_term_link( yith_wcan_is_product_attribute() && is_numeric( $term ) ? intval( $term ) : $term, $taxonomy );
524
+
525
  }
526
+
527
  return apply_filters( 'yith_wcan_untrailingslashit', true ) && is_string( $return ) ? untrailingslashit( $return ) : $return;
528
  }
529
 
588
  }
589
  }
590
 
591
+ if( ! function_exists( 'yit_alphabetical_terms_sort' ) ){
592
+
593
+ function yit_alphabetical_terms_sort( $a, $b ){
594
+ return strnatcmp ( $a->name, $b->name );
595
+ }
596
+ }
597
+
598
  if( ! function_exists( 'yit_get_brands_taxonomy' ) ){
599
  /**
600
  * Get the product brands taxonomy name
608
  $taxonomy = '';
609
 
610
  //Support to YITH WooCommerce Brands Add-on
611
+ if( yith_wcan_brands_enabled() ){
612
  $taxonomy = YITH_WCBR::$brands_taxonomy;
613
  }
614
 
685
  function yit_is_filtered_uri(){
686
  $_chosen_attributes = YITH_WCAN()->get_layered_nav_chosen_attributes();
687
  $brands = yit_get_brands_taxonomy();
 
688
  //check if current page is filtered
689
  $is_filtered_uri = isset( $_GET['product_cat'] ) || count( $_chosen_attributes ) > 0 || isset( $_GET['min_price'] ) || isset( $_GET['max_price'] ) || isset( $_GET['orderby'] ) || isset( $_GET['instock_filter'] ) || isset( $_GET['onsale_filter'] ) || isset( $_GET['product_tag'] ) || isset( $_GET[ $brands ] );
690
 
751
  return get_terms( $args );
752
  }
753
  }
754
+ }
755
+
756
+ if( ! function_exists( 'yith_wcan_brands_enabled' ) ){
757
+ /**
758
+ * check if brands add-on premium is enabled
759
+ *
760
+ * @return bool
761
+ */
762
+ function yith_wcan_brands_enabled() {
763
+ return apply_filters( 'yith_wcan_brands_enabled', defined( 'YITH_WCBR' ) && YITH_WCBR );
764
+ }
765
  }
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: 3.1.1
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
@@ -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', '3.1.1' );
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: 3.1.2
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
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', '3.1.2' );
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-09-02 17:56+0200\n"
6
- "PO-Revision-Date: 2016-09-02 17:56+0200\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Poedit 1.8.8\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
@@ -58,7 +58,7 @@ msgstr "Termine"
58
 
59
  # @ yit
60
  #: includes/functions.yith-wcan.php:57
61
- #: widgets/class.yith-wcan-navigation-widget.php:706
62
  msgid "Color"
63
  msgstr "Colore"
64
 
@@ -152,10 +152,10 @@ msgid "Scroll top anchor"
152
  msgstr "Torna su"
153
 
154
  #: settings/frontend-options.php:58
155
- msgid "Enter here the HTML tag for the scroll to top feature on mobiles"
156
- msgstr "Inserisci qui il tag HTML per la funzionalità \"Torna su\" su mobile"
157
 
158
- #: templates/admin/premium.php:203 templates/admin/premium.php:425
159
  #, php-format
160
  msgid ""
161
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
@@ -164,11 +164,11 @@ msgstr ""
164
  "Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Ajax Product "
165
  "Filter%2$s per usufruire di tutte le sue funzionalità!"
166
 
167
- #: templates/admin/premium.php:206 templates/admin/premium.php:428
168
  msgid "UPGRADE"
169
  msgstr "AGGIORNA"
170
 
171
- #: templates/admin/premium.php:207 templates/admin/premium.php:429
172
  msgid "to the premium version"
173
  msgstr "alla versione premium"
174
 
@@ -399,6 +399,17 @@ msgstr ""
399
  "altri due per ripristinare la visualizzazione principale di categorie e/o "
400
  "tag."
401
 
 
 
 
 
 
 
 
 
 
 
 
402
  #: widgets/class.yith-wcan-navigation-widget.php:36
403
  msgid "Filter the list of products without reloading the page"
404
  msgstr "Filtra la lista dei prodotti senza dover ricaricare la pagina"
@@ -408,72 +419,72 @@ msgctxt "Admin: Widget Title"
408
  msgid "YITH WooCommerce Ajax Product Filter"
409
  msgstr "YITH WooCommerce Filtro Prodotti Ajax"
410
 
411
- #: widgets/class.yith-wcan-navigation-widget.php:140
412
  msgid "Filters:"
413
  msgstr "Filtri:"
414
 
415
  # @ yit
416
- #: widgets/class.yith-wcan-navigation-widget.php:705
417
  msgid "List"
418
  msgstr "Elenco"
419
 
420
  # @ yit
421
- #: widgets/class.yith-wcan-navigation-widget.php:707
422
  msgid "Label"
423
  msgstr "Etichetta"
424
 
425
- #: widgets/class.yith-wcan-navigation-widget.php:708
426
  msgid "Dropdown"
427
  msgstr "Menu a tendina"
428
 
429
  # @ yit
430
- #: widgets/class.yith-wcan-navigation-widget.php:715
431
- #: widgets/class.yith-wcan-reset-navigation-widget.php:99
432
  msgid "Title"
433
  msgstr "Titolo"
434
 
435
  # @ yit
436
- #: widgets/class.yith-wcan-navigation-widget.php:721
437
  msgid "Type:"
438
  msgstr "Tipo:"
439
 
440
  # @ yit
441
- #: widgets/class.yith-wcan-navigation-widget.php:732
442
  msgid "Query Type:"
443
  msgstr "Tipo Query:"
444
 
445
  # @ yit
446
- #: widgets/class.yith-wcan-navigation-widget.php:734
447
  msgid "AND"
448
  msgstr "E"
449
 
450
  # @ yit
451
- #: widgets/class.yith-wcan-navigation-widget.php:735
452
  msgid "OR"
453
  msgstr "O"
454
 
455
  # @ yit
456
- #: widgets/class.yith-wcan-navigation-widget.php:741
457
  msgid "Attribute:"
458
  msgstr "Attributo:"
459
 
460
- #: widgets/class.yith-wcan-navigation-widget.php:748
461
  msgid "Display (default All):"
462
  msgstr "Visualizza (predefinito: tutti)"
463
 
464
- #: widgets/class.yith-wcan-navigation-widget.php:750
465
  msgid "All (no hierarchical)"
466
  msgstr "Tutti (non gerarchico)"
467
 
468
- #: widgets/class.yith-wcan-navigation-widget.php:751
469
  msgid "All (hierarchical)"
470
  msgstr "Tutti (gerarchico)"
471
 
472
- #: widgets/class.yith-wcan-navigation-widget.php:752
473
  msgid "Only Parent"
474
  msgstr "Solo Principali"
475
 
476
- #: widgets/class.yith-wcan-navigation-widget.php:759
477
  msgid "CSS custom class"
478
  msgstr "Classe CSS custom"
479
 
@@ -486,14 +497,18 @@ msgstr ""
486
  msgid "YITH WooCommerce Ajax Reset Filter"
487
  msgstr "YITH WooCommerce Filtro Ajax Reset"
488
 
489
- #: widgets/class.yith-wcan-reset-navigation-widget.php:92
490
  msgid "Reset All Filters"
491
  msgstr "Resetta tutti i filtri"
492
 
493
- #: widgets/class.yith-wcan-reset-navigation-widget.php:105
494
  msgid "Button Label"
495
  msgstr "Etichetta Pulsante"
496
 
 
 
 
 
497
  #~ msgid "Settings"
498
  #~ msgstr "Impostazioni"
499
 
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-01-17 14:07+0100\n"
6
+ "PO-Revision-Date: 2017-01-17 14:07+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 1.8.9\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
58
 
59
  # @ yit
60
  #: includes/functions.yith-wcan.php:57
61
+ #: widgets/class.yith-wcan-navigation-widget.php:716
62
  msgid "Color"
63
  msgstr "Colore"
64
 
152
  msgstr "Torna su"
153
 
154
  #: settings/frontend-options.php:58
155
+ msgid "Enter here the HTML tag for the scroll to top feature"
156
+ msgstr ""
157
 
158
+ #: templates/admin/premium.php:203 templates/admin/premium.php:441
159
  #, php-format
160
  msgid ""
161
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
164
  "Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Ajax Product "
165
  "Filter%2$s per usufruire di tutte le sue funzionalità!"
166
 
167
+ #: templates/admin/premium.php:206 templates/admin/premium.php:444
168
  msgid "UPGRADE"
169
  msgstr "AGGIORNA"
170
 
171
+ #: templates/admin/premium.php:207 templates/admin/premium.php:445
172
  msgid "to the premium version"
173
  msgstr "alla versione premium"
174
 
399
  "altri due per ripristinare la visualizzazione principale di categorie e/o "
400
  "tag."
401
 
402
+ #: templates/admin/premium.php:426
403
+ msgid "Scroll to top"
404
+ msgstr ""
405
+
406
+ #: templates/admin/premium.php:429
407
+ msgid ""
408
+ "Scroll to top is a feature to improve user experience on your site. Soon "
409
+ "after filtering the product list, the page will be automatically scrolled to "
410
+ "the top so the user can immediately see the filtered list. "
411
+ msgstr ""
412
+
413
  #: widgets/class.yith-wcan-navigation-widget.php:36
414
  msgid "Filter the list of products without reloading the page"
415
  msgstr "Filtra la lista dei prodotti senza dover ricaricare la pagina"
419
  msgid "YITH WooCommerce Ajax Product Filter"
420
  msgstr "YITH WooCommerce Filtro Prodotti Ajax"
421
 
422
+ #: widgets/class.yith-wcan-navigation-widget.php:150
423
  msgid "Filters:"
424
  msgstr "Filtri:"
425
 
426
  # @ yit
427
+ #: widgets/class.yith-wcan-navigation-widget.php:715
428
  msgid "List"
429
  msgstr "Elenco"
430
 
431
  # @ yit
432
+ #: widgets/class.yith-wcan-navigation-widget.php:717
433
  msgid "Label"
434
  msgstr "Etichetta"
435
 
436
+ #: widgets/class.yith-wcan-navigation-widget.php:718
437
  msgid "Dropdown"
438
  msgstr "Menu a tendina"
439
 
440
  # @ yit
441
+ #: widgets/class.yith-wcan-navigation-widget.php:725
442
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:102
443
  msgid "Title"
444
  msgstr "Titolo"
445
 
446
  # @ yit
447
+ #: widgets/class.yith-wcan-navigation-widget.php:731
448
  msgid "Type:"
449
  msgstr "Tipo:"
450
 
451
  # @ yit
452
+ #: widgets/class.yith-wcan-navigation-widget.php:742
453
  msgid "Query Type:"
454
  msgstr "Tipo Query:"
455
 
456
  # @ yit
457
+ #: widgets/class.yith-wcan-navigation-widget.php:744
458
  msgid "AND"
459
  msgstr "E"
460
 
461
  # @ yit
462
+ #: widgets/class.yith-wcan-navigation-widget.php:745
463
  msgid "OR"
464
  msgstr "O"
465
 
466
  # @ yit
467
+ #: widgets/class.yith-wcan-navigation-widget.php:751
468
  msgid "Attribute:"
469
  msgstr "Attributo:"
470
 
471
+ #: widgets/class.yith-wcan-navigation-widget.php:758
472
  msgid "Display (default All):"
473
  msgstr "Visualizza (predefinito: tutti)"
474
 
475
+ #: widgets/class.yith-wcan-navigation-widget.php:760
476
  msgid "All (no hierarchical)"
477
  msgstr "Tutti (non gerarchico)"
478
 
479
+ #: widgets/class.yith-wcan-navigation-widget.php:761
480
  msgid "All (hierarchical)"
481
  msgstr "Tutti (gerarchico)"
482
 
483
+ #: widgets/class.yith-wcan-navigation-widget.php:762
484
  msgid "Only Parent"
485
  msgstr "Solo Principali"
486
 
487
+ #: widgets/class.yith-wcan-navigation-widget.php:769
488
  msgid "CSS custom class"
489
  msgstr "Classe CSS custom"
490
 
497
  msgid "YITH WooCommerce Ajax Reset Filter"
498
  msgstr "YITH WooCommerce Filtro Ajax Reset"
499
 
500
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:95
501
  msgid "Reset All Filters"
502
  msgstr "Resetta tutti i filtri"
503
 
504
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:108
505
  msgid "Button Label"
506
  msgstr "Etichetta Pulsante"
507
 
508
+ #~ msgid "Enter here the HTML tag for the scroll to top feature on mobiles"
509
+ #~ msgstr ""
510
+ #~ "Inserisci qui il tag HTML per la funzionalità \"Torna su\" su mobile"
511
+
512
  #~ msgid "Settings"
513
  #~ msgstr "Impostazioni"
514
 
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-06-13 16:11+0200\n"
6
- "PO-Revision-Date: 2016-06-13 16:11+0200\n"
7
  "Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
  "Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
  "Language: tr\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Poedit 1.8.4\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\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:706
62
  msgid "Color"
63
  msgstr "Renk"
64
 
@@ -142,21 +142,21 @@ msgid "Scroll top anchor"
142
  msgstr ""
143
 
144
  #: settings/frontend-options.php:58
145
- msgid "Enter here the HTML tag for the scroll to top feature on mobiles"
146
  msgstr ""
147
 
148
- #: templates/admin/premium.php:203 templates/admin/premium.php:425
149
  #, php-format
150
  msgid ""
151
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
152
  "Filter%2$s to benefit from all features!"
153
  msgstr ""
154
 
155
- #: templates/admin/premium.php:206 templates/admin/premium.php:428
156
  msgid "UPGRADE"
157
  msgstr ""
158
 
159
- #: templates/admin/premium.php:207 templates/admin/premium.php:429
160
  msgid "to the premium version"
161
  msgstr ""
162
 
@@ -324,6 +324,17 @@ msgid ""
324
  "two which refresh the main view of categories and/or tags."
325
  msgstr ""
326
 
 
 
 
 
 
 
 
 
 
 
 
327
  #: widgets/class.yith-wcan-navigation-widget.php:36
328
  msgid "Filter the list of products without reloading the page"
329
  msgstr ""
@@ -333,72 +344,72 @@ msgctxt "Admin: Widget Title"
333
  msgid "YITH WooCommerce Ajax Product Filter"
334
  msgstr ""
335
 
336
- #: widgets/class.yith-wcan-navigation-widget.php:139
337
  msgid "Filters:"
338
  msgstr ""
339
 
340
  # @ yit
341
- #: widgets/class.yith-wcan-navigation-widget.php:705
342
  msgid "List"
343
  msgstr "Liste"
344
 
345
  # @ yit
346
- #: widgets/class.yith-wcan-navigation-widget.php:707
347
  msgid "Label"
348
  msgstr "Etiket"
349
 
350
- #: widgets/class.yith-wcan-navigation-widget.php:708
351
  msgid "Dropdown"
352
  msgstr "Açılır Menü"
353
 
354
  # @ yit
355
- #: widgets/class.yith-wcan-navigation-widget.php:715
356
- #: widgets/class.yith-wcan-reset-navigation-widget.php:99
357
  msgid "Title"
358
  msgstr "Başlık"
359
 
360
  # @ yit
361
- #: widgets/class.yith-wcan-navigation-widget.php:721
362
  msgid "Type:"
363
  msgstr "Tür:"
364
 
365
  # @ yit
366
- #: widgets/class.yith-wcan-navigation-widget.php:732
367
  msgid "Query Type:"
368
  msgstr "Sorgu Tipi:"
369
 
370
  # @ yit
371
- #: widgets/class.yith-wcan-navigation-widget.php:734
372
  msgid "AND"
373
  msgstr "VE"
374
 
375
  # @ yit
376
- #: widgets/class.yith-wcan-navigation-widget.php:735
377
  msgid "OR"
378
  msgstr "VEYA"
379
 
380
  # @ yit
381
- #: widgets/class.yith-wcan-navigation-widget.php:741
382
  msgid "Attribute:"
383
  msgstr "Özellikler:"
384
 
385
- #: widgets/class.yith-wcan-navigation-widget.php:748
386
  msgid "Display (default All):"
387
  msgstr "Görüntüleme (Varsayılan tümü):"
388
 
389
- #: widgets/class.yith-wcan-navigation-widget.php:750
390
  msgid "All (no hierarchical)"
391
  msgstr "Tümü"
392
 
393
- #: widgets/class.yith-wcan-navigation-widget.php:751
394
  msgid "All (hierarchical)"
395
  msgstr ""
396
 
397
- #: widgets/class.yith-wcan-navigation-widget.php:752
398
  msgid "Only Parent"
399
  msgstr "Sadece Ebeveyn"
400
 
401
- #: widgets/class.yith-wcan-navigation-widget.php:759
402
  msgid "CSS custom class"
403
  msgstr ""
404
 
@@ -410,11 +421,11 @@ msgstr ""
410
  msgid "YITH WooCommerce Ajax Reset Filter"
411
  msgstr ""
412
 
413
- #: widgets/class.yith-wcan-reset-navigation-widget.php:92
414
  msgid "Reset All Filters"
415
  msgstr "Tüm Filtreleri Sıfırla"
416
 
417
- #: widgets/class.yith-wcan-reset-navigation-widget.php:105
418
  msgid "Button Label"
419
  msgstr "Buton Metni"
420
 
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-01-17 14:07+0100\n"
6
+ "PO-Revision-Date: 2017-01-17 14:07+0100\n"
7
  "Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
  "Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
  "Language: tr\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 1.8.9\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
58
 
59
  # @ yit
60
  #: includes/functions.yith-wcan.php:57
61
+ #: widgets/class.yith-wcan-navigation-widget.php:716
62
  msgid "Color"
63
  msgstr "Renk"
64
 
142
  msgstr ""
143
 
144
  #: settings/frontend-options.php:58
145
+ msgid "Enter here the HTML tag for the scroll to top feature"
146
  msgstr ""
147
 
148
+ #: templates/admin/premium.php:203 templates/admin/premium.php:441
149
  #, php-format
150
  msgid ""
151
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
152
  "Filter%2$s to benefit from all features!"
153
  msgstr ""
154
 
155
+ #: templates/admin/premium.php:206 templates/admin/premium.php:444
156
  msgid "UPGRADE"
157
  msgstr ""
158
 
159
+ #: templates/admin/premium.php:207 templates/admin/premium.php:445
160
  msgid "to the premium version"
161
  msgstr ""
162
 
324
  "two which refresh the main view of categories and/or tags."
325
  msgstr ""
326
 
327
+ #: templates/admin/premium.php:426
328
+ msgid "Scroll to top"
329
+ msgstr ""
330
+
331
+ #: templates/admin/premium.php:429
332
+ msgid ""
333
+ "Scroll to top is a feature to improve user experience on your site. Soon "
334
+ "after filtering the product list, the page will be automatically scrolled to "
335
+ "the top so the user can immediately see the filtered list. "
336
+ msgstr ""
337
+
338
  #: widgets/class.yith-wcan-navigation-widget.php:36
339
  msgid "Filter the list of products without reloading the page"
340
  msgstr ""
344
  msgid "YITH WooCommerce Ajax Product Filter"
345
  msgstr ""
346
 
347
+ #: widgets/class.yith-wcan-navigation-widget.php:150
348
  msgid "Filters:"
349
  msgstr ""
350
 
351
  # @ yit
352
+ #: widgets/class.yith-wcan-navigation-widget.php:715
353
  msgid "List"
354
  msgstr "Liste"
355
 
356
  # @ yit
357
+ #: widgets/class.yith-wcan-navigation-widget.php:717
358
  msgid "Label"
359
  msgstr "Etiket"
360
 
361
+ #: widgets/class.yith-wcan-navigation-widget.php:718
362
  msgid "Dropdown"
363
  msgstr "Açılır Menü"
364
 
365
  # @ yit
366
+ #: widgets/class.yith-wcan-navigation-widget.php:725
367
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:102
368
  msgid "Title"
369
  msgstr "Başlık"
370
 
371
  # @ yit
372
+ #: widgets/class.yith-wcan-navigation-widget.php:731
373
  msgid "Type:"
374
  msgstr "Tür:"
375
 
376
  # @ yit
377
+ #: widgets/class.yith-wcan-navigation-widget.php:742
378
  msgid "Query Type:"
379
  msgstr "Sorgu Tipi:"
380
 
381
  # @ yit
382
+ #: widgets/class.yith-wcan-navigation-widget.php:744
383
  msgid "AND"
384
  msgstr "VE"
385
 
386
  # @ yit
387
+ #: widgets/class.yith-wcan-navigation-widget.php:745
388
  msgid "OR"
389
  msgstr "VEYA"
390
 
391
  # @ yit
392
+ #: widgets/class.yith-wcan-navigation-widget.php:751
393
  msgid "Attribute:"
394
  msgstr "Özellikler:"
395
 
396
+ #: widgets/class.yith-wcan-navigation-widget.php:758
397
  msgid "Display (default All):"
398
  msgstr "Görüntüleme (Varsayılan tümü):"
399
 
400
+ #: widgets/class.yith-wcan-navigation-widget.php:760
401
  msgid "All (no hierarchical)"
402
  msgstr "Tümü"
403
 
404
+ #: widgets/class.yith-wcan-navigation-widget.php:761
405
  msgid "All (hierarchical)"
406
  msgstr ""
407
 
408
+ #: widgets/class.yith-wcan-navigation-widget.php:762
409
  msgid "Only Parent"
410
  msgstr "Sadece Ebeveyn"
411
 
412
+ #: widgets/class.yith-wcan-navigation-widget.php:769
413
  msgid "CSS custom class"
414
  msgstr ""
415
 
421
  msgid "YITH WooCommerce Ajax Reset Filter"
422
  msgstr ""
423
 
424
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:95
425
  msgid "Reset All Filters"
426
  msgstr "Tüm Filtreleri Sıfırla"
427
 
428
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:108
429
  msgid "Button Label"
430
  msgstr "Buton Metni"
431
 
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-06-13 16:11+0200\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"
@@ -12,7 +12,7 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
- "X-Generator: Poedit 1.8.4\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
18
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\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:706
63
  msgid "Color"
64
  msgstr ""
65
 
@@ -142,21 +142,21 @@ msgid "Scroll top anchor"
142
  msgstr ""
143
 
144
  #: settings/frontend-options.php:58
145
- msgid "Enter here the HTML tag for the scroll to top feature on mobiles"
146
  msgstr ""
147
 
148
- #: templates/admin/premium.php:203 templates/admin/premium.php:425
149
  #, php-format
150
  msgid ""
151
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax "
152
  "Product Filter%2$s to benefit from all features!"
153
  msgstr ""
154
 
155
- #: templates/admin/premium.php:206 templates/admin/premium.php:428
156
  msgid "UPGRADE"
157
  msgstr ""
158
 
159
- #: templates/admin/premium.php:207 templates/admin/premium.php:429
160
  msgid "to the premium version"
161
  msgstr ""
162
 
@@ -329,6 +329,17 @@ msgid ""
329
  "categories and/or tags."
330
  msgstr ""
331
 
 
 
 
 
 
 
 
 
 
 
 
332
  #: widgets/class.yith-wcan-navigation-widget.php:36
333
  msgid "Filter the list of products without reloading the page"
334
  msgstr ""
@@ -338,64 +349,64 @@ msgctxt "Admin: Widget Title"
338
  msgid "YITH WooCommerce Ajax Product Filter"
339
  msgstr ""
340
 
341
- #: widgets/class.yith-wcan-navigation-widget.php:139
342
  msgid "Filters:"
343
  msgstr ""
344
 
345
- #: widgets/class.yith-wcan-navigation-widget.php:705
346
  msgid "List"
347
  msgstr ""
348
 
349
- #: widgets/class.yith-wcan-navigation-widget.php:707
350
  msgid "Label"
351
  msgstr ""
352
 
353
- #: widgets/class.yith-wcan-navigation-widget.php:708
354
  msgid "Dropdown"
355
  msgstr ""
356
 
357
- #: widgets/class.yith-wcan-navigation-widget.php:715
358
- #: widgets/class.yith-wcan-reset-navigation-widget.php:99
359
  msgid "Title"
360
  msgstr ""
361
 
362
- #: widgets/class.yith-wcan-navigation-widget.php:721
363
  msgid "Type:"
364
  msgstr ""
365
 
366
- #: widgets/class.yith-wcan-navigation-widget.php:732
367
  msgid "Query Type:"
368
  msgstr ""
369
 
370
- #: widgets/class.yith-wcan-navigation-widget.php:734
371
  msgid "AND"
372
  msgstr ""
373
 
374
- #: widgets/class.yith-wcan-navigation-widget.php:735
375
  msgid "OR"
376
  msgstr ""
377
 
378
- #: widgets/class.yith-wcan-navigation-widget.php:741
379
  msgid "Attribute:"
380
  msgstr ""
381
 
382
- #: widgets/class.yith-wcan-navigation-widget.php:748
383
  msgid "Display (default All):"
384
  msgstr ""
385
 
386
- #: widgets/class.yith-wcan-navigation-widget.php:750
387
  msgid "All (no hierarchical)"
388
  msgstr ""
389
 
390
- #: widgets/class.yith-wcan-navigation-widget.php:751
391
  msgid "All (hierarchical)"
392
  msgstr ""
393
 
394
- #: widgets/class.yith-wcan-navigation-widget.php:752
395
  msgid "Only Parent"
396
  msgstr ""
397
 
398
- #: widgets/class.yith-wcan-navigation-widget.php:759
399
  msgid "CSS custom class"
400
  msgstr ""
401
 
@@ -407,10 +418,10 @@ msgstr ""
407
  msgid "YITH WooCommerce Ajax Reset Filter"
408
  msgstr ""
409
 
410
- #: widgets/class.yith-wcan-reset-navigation-widget.php:92
411
  msgid "Reset All Filters"
412
  msgstr ""
413
 
414
- #: widgets/class.yith-wcan-reset-navigation-widget.php:105
415
  msgid "Button Label"
416
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2017-01-17 14:07+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"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Generator: Poedit 1.8.9\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
18
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
59
  msgstr ""
60
 
61
  #: includes/functions.yith-wcan.php:57
62
+ #: widgets/class.yith-wcan-navigation-widget.php:716
63
  msgid "Color"
64
  msgstr ""
65
 
142
  msgstr ""
143
 
144
  #: settings/frontend-options.php:58
145
+ msgid "Enter here the HTML tag for the scroll to top feature"
146
  msgstr ""
147
 
148
+ #: templates/admin/premium.php:203 templates/admin/premium.php:441
149
  #, php-format
150
  msgid ""
151
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax "
152
  "Product Filter%2$s to benefit from all features!"
153
  msgstr ""
154
 
155
+ #: templates/admin/premium.php:206 templates/admin/premium.php:444
156
  msgid "UPGRADE"
157
  msgstr ""
158
 
159
+ #: templates/admin/premium.php:207 templates/admin/premium.php:445
160
  msgid "to the premium version"
161
  msgstr ""
162
 
329
  "categories and/or tags."
330
  msgstr ""
331
 
332
+ #: templates/admin/premium.php:426
333
+ msgid "Scroll to top"
334
+ msgstr ""
335
+
336
+ #: templates/admin/premium.php:429
337
+ msgid ""
338
+ "Scroll to top is a feature to improve user experience on your site. "
339
+ "Soon after filtering the product list, the page will be automatically "
340
+ "scrolled to the top so the user can immediately see the filtered list. "
341
+ msgstr ""
342
+
343
  #: widgets/class.yith-wcan-navigation-widget.php:36
344
  msgid "Filter the list of products without reloading the page"
345
  msgstr ""
349
  msgid "YITH WooCommerce Ajax Product Filter"
350
  msgstr ""
351
 
352
+ #: widgets/class.yith-wcan-navigation-widget.php:150
353
  msgid "Filters:"
354
  msgstr ""
355
 
356
+ #: widgets/class.yith-wcan-navigation-widget.php:715
357
  msgid "List"
358
  msgstr ""
359
 
360
+ #: widgets/class.yith-wcan-navigation-widget.php:717
361
  msgid "Label"
362
  msgstr ""
363
 
364
+ #: widgets/class.yith-wcan-navigation-widget.php:718
365
  msgid "Dropdown"
366
  msgstr ""
367
 
368
+ #: widgets/class.yith-wcan-navigation-widget.php:725
369
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:102
370
  msgid "Title"
371
  msgstr ""
372
 
373
+ #: widgets/class.yith-wcan-navigation-widget.php:731
374
  msgid "Type:"
375
  msgstr ""
376
 
377
+ #: widgets/class.yith-wcan-navigation-widget.php:742
378
  msgid "Query Type:"
379
  msgstr ""
380
 
381
+ #: widgets/class.yith-wcan-navigation-widget.php:744
382
  msgid "AND"
383
  msgstr ""
384
 
385
+ #: widgets/class.yith-wcan-navigation-widget.php:745
386
  msgid "OR"
387
  msgstr ""
388
 
389
+ #: widgets/class.yith-wcan-navigation-widget.php:751
390
  msgid "Attribute:"
391
  msgstr ""
392
 
393
+ #: widgets/class.yith-wcan-navigation-widget.php:758
394
  msgid "Display (default All):"
395
  msgstr ""
396
 
397
+ #: widgets/class.yith-wcan-navigation-widget.php:760
398
  msgid "All (no hierarchical)"
399
  msgstr ""
400
 
401
+ #: widgets/class.yith-wcan-navigation-widget.php:761
402
  msgid "All (hierarchical)"
403
  msgstr ""
404
 
405
+ #: widgets/class.yith-wcan-navigation-widget.php:762
406
  msgid "Only Parent"
407
  msgstr ""
408
 
409
+ #: widgets/class.yith-wcan-navigation-widget.php:769
410
  msgid "CSS custom class"
411
  msgstr ""
412
 
418
  msgid "YITH WooCommerce Ajax Reset Filter"
419
  msgstr ""
420
 
421
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:95
422
  msgid "Reset All Filters"
423
  msgstr ""
424
 
425
+ #: widgets/class.yith-wcan-reset-navigation-widget.php:108
426
  msgid "Button Label"
427
  msgstr ""
plugin-fw/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 2.9.40
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.41
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
@@ -138,8 +138,8 @@ class YIT_CPT_Unlimited {
138
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_assets' ) );
139
 
140
  // metaboxes
141
- add_action( 'after_setup_theme', array( $this, 'add_metabox_cptu' ), 2 );
142
- add_action( 'after_setup_theme', array( $this, 'add_metabox_item_fields' ), 2 );
143
 
144
  // multiuploader
145
  if ( $this->_args['add_multiuploader'] ) {
138
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_assets' ) );
139
 
140
  // metaboxes
141
+ add_action( 'add_meta_boxes', array( $this, 'add_metabox_cptu' ), 2 );
142
+ add_action( 'add_meta_boxes', array( $this, 'add_metabox_item_fields' ), 2 );
143
 
144
  // multiuploader
145
  if ( $this->_args['add_multiuploader'] ) {
plugin-fw/lib/yit-metabox.php CHANGED
@@ -133,7 +133,7 @@ if (!class_exists('YIT_Metabox')) {
133
  $this->set_tabs();
134
 
135
 
136
- add_action('add_meta_boxes', array($this, 'register_metabox'));
137
  add_action('save_post', array($this, 'save_postdata'));
138
  add_action('admin_enqueue_scripts', array($this, 'enqueue'), 15);
139
 
@@ -414,6 +414,7 @@ if (!class_exists('YIT_Metabox')) {
414
  */
415
  public function register_metabox($post_type)
416
  {
 
417
  if (in_array($post_type, (array)$this->options['pages'])) {
418
  add_meta_box($this->id, $this->options['label'], array($this, 'show'), $post_type, $this->options['context'], $this->options['priority']);
419
  }
@@ -476,12 +477,31 @@ if (!class_exists('YIT_Metabox')) {
476
  }
477
  }
478
 
479
- if (!in_array($post_type, (array)$this->options['pages'])) {
480
  return $post_id;
481
- }
482
 
483
  $this->reorder_tabs();
484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
 
486
  foreach ($this->tabs as $tab) {
487
 
@@ -501,8 +521,7 @@ if (!class_exists('YIT_Metabox')) {
501
  }
502
  }
503
  }
504
-
505
-
506
  }
507
 
508
  /**
133
  $this->set_tabs();
134
 
135
 
136
+ add_action('add_meta_boxes', array($this, 'register_metabox'),99);
137
  add_action('save_post', array($this, 'save_postdata'));
138
  add_action('admin_enqueue_scripts', array($this, 'enqueue'), 15);
139
 
414
  */
415
  public function register_metabox($post_type)
416
  {
417
+
418
  if (in_array($post_type, (array)$this->options['pages'])) {
419
  add_meta_box($this->id, $this->options['label'], array($this, 'show'), $post_type, $this->options['context'], $this->options['priority']);
420
  }
477
  }
478
  }
479
 
480
+ /*if (!in_array($post_type, (array)$this->options['pages'])) {
481
  return $post_id;
482
+ }*/
483
 
484
  $this->reorder_tabs();
485
 
486
+ if(isset($_POST['yit_metaboxes'])) {
487
+ $yit_metabox_data = $_POST['yit_metaboxes'];
488
+
489
+ if(is_array($yit_metabox_data)) {
490
+
491
+ foreach ($yit_metabox_data as $field_name => $field_value) {
492
+
493
+ if(! add_post_meta($post_id, $field_name, $field_value, true) )
494
+ {
495
+ update_post_meta($post_id, $field_name, $field_value);
496
+ }
497
+
498
+
499
+ }
500
+
501
+ }
502
+
503
+
504
+ }
505
 
506
  foreach ($this->tabs as $tab) {
507
 
521
  }
522
  }
523
  }
524
+
 
525
  }
526
 
527
  /**
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -54,7 +54,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
54
  return;
55
  }
56
 
57
- if( defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ) {
58
  $this->brand_taxonomy = YITH_WCBR::$brands_taxonomy;
59
  }
60
 
@@ -110,6 +110,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
110
  }
111
 
112
  if ( in_array( $display_type, apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
 
113
  $ancestors = yith_wcan_wp_get_terms(
114
  array(
115
  'taxonomy' => $taxonomy,
@@ -119,7 +120,16 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
119
  )
120
  );
121
 
122
- if( ! empty( $ancestors ) ){
 
 
 
 
 
 
 
 
 
123
  foreach( $ancestors as $ancestor ){
124
  $tree[ $ancestor->term_id ] = yit_reorder_hierachical_categories( $ancestor->term_id, $taxonomy );
125
  }
@@ -971,12 +981,13 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
971
 
972
  if (isset($_GET[$this->brand_taxonomy])) {
973
  $brands = is_array( $_GET[$this->brand_taxonomy] ) ? array() : get_term_by('slug', $_GET[$this->brand_taxonomy], $this->brand_taxonomy);
974
- if ( $brands instanceof WP_Term && $brands->term_id != $term->term_id) {
975
  $link = add_query_arg($this->brand_taxonomy, urlencode($brands->slug), $link);
976
  }
977
- }
978
 
979
 
 
 
980
  if (isset($_GET['product_cat'])) {
981
  $categories_filter_operator = 'and' == $query_type ? '+' : ',';
982
  $_chosen_categories = explode($categories_filter_operator, urlencode($_GET['product_cat']));
54
  return;
55
  }
56
 
57
+ if( yith_wcan_brands_enabled() ) {
58
  $this->brand_taxonomy = YITH_WCBR::$brands_taxonomy;
59
  }
60
 
110
  }
111
 
112
  if ( in_array( $display_type, apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
113
+
114
  $ancestors = yith_wcan_wp_get_terms(
115
  array(
116
  'taxonomy' => $taxonomy,
120
  )
121
  );
122
 
123
+ if( ! empty( $ancestors ) && ! is_wp_error( $ancestors ) ){
124
+
125
+ if( 'product' == yith_wcan_get_option( 'yith_wcan_ajax_shop_terms_order', 'alphabetical' ) ){
126
+ usort( $ancestors, 'yit_terms_sort' );
127
+ }
128
+
129
+ else{
130
+ usort( $ancestors, 'yit_alphabetical_terms_sort' );
131
+ }
132
+
133
  foreach( $ancestors as $ancestor ){
134
  $tree[ $ancestor->term_id ] = yit_reorder_hierachical_categories( $ancestor->term_id, $taxonomy );
135
  }
981
 
982
  if (isset($_GET[$this->brand_taxonomy])) {
983
  $brands = is_array( $_GET[$this->brand_taxonomy] ) ? array() : get_term_by('slug', $_GET[$this->brand_taxonomy], $this->brand_taxonomy);
984
+ if ( $brands instanceof WP_Term && $brands->term_id != $term->term_id ) {
985
  $link = add_query_arg($this->brand_taxonomy, urlencode($brands->slug), $link);
986
  }
 
987
 
988
 
989
+ }
990
+
991
  if (isset($_GET['product_cat'])) {
992
  $categories_filter_operator = 'and' == $query_type ? '+' : ',';
993
  $_chosen_categories = explode($categories_filter_operator, urlencode($_GET['product_cat']));
widgets/class.yith-wcan-reset-navigation-widget.php CHANGED
@@ -55,7 +55,7 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
55
  //clean the url
56
  if( ! isset( $_GET['source_id'] ) ){
57
  //$link = yit_curPageURL();
58
- $link = yit_get_woocommerce_layered_nav_link();
59
  foreach ( (array) $_chosen_attributes as $taxonomy => $data ) {
60
  $taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
61
  $link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );
55
  //clean the url
56
  if( ! isset( $_GET['source_id'] ) ){
57
  //$link = yit_curPageURL();
58
+ $link = get_post_type_archive_link( 'product' );//yit_get_woocommerce_layered_nav_link();
59
  foreach ( (array) $_chosen_attributes as $taxonomy => $data ) {
60
  $taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
61
  $link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );