jQuery(document).ready(function(c){function y(){jQuery("#installs-slider").slider().on("slideStop",function(a){d.addNumericRefinement("installs",">=",a.value[0]).search();d.addNumericRefinement("installs","<=",a.value[1]).search()});jQuery("#sales-slider").slider().on("slideStop",function(a){d.addNumericRefinement("sales",">=",a.value[0]).search();d.addNumericRefinement("sales","<=",a.value[1]).search()});jQuery("#downloaded-slider").slider().on("slideStop",function(a){d.addNumericRefinement("downloaded", ">=",a.value[0]).search();d.addNumericRefinement("downloaded","<=",a.value[1]).search()});jQuery("#num_ratings-slider").slider().on("slideStop",function(a){d.addNumericRefinement("num_ratings",">=",a.value[0]).search();d.addNumericRefinement("num_ratings","<=",a.value[1]).search()});jQuery("#rating-slider").slider().on("slideStop",function(a){d.addNumericRefinement("rating",">=",a.value[0]).search();d.addNumericRefinement("rating","<=",a.value[1]).search()});jQuery("#price-slider").slider().on("slideStop", function(a){d.addNumericRefinement("price",">=",a.value[0]).search();d.addNumericRefinement("price","<=",a.value[1]).search()});jQuery('input[type="checkbox"]').checkbox()}function n(a){return 1E9<=a?(a/1E9).toFixed(0)+"G":1E6<=a?(a/1E6).toFixed(0)+"M":1E3<=a?(a/1E3).toFixed(0)+"K":a}var u=function(){var a={};a.width=Math.round(.8*c(window).width());a.height=Math.round(.8*c(window).height());return a}(),q=["awpp",""+document.location.hostname+""],p=[{name:"plugin_class",title:"Plugin Type",disjunctive:!0, sortFunction:v,topListIfRefined:!0},{name:"installs",title:"Installs",disjunctive:!0,type:"slider"},{name:"num_ratings",title:"Votes",disjunctive:!0,type:"slider"},{name:"rating",title:"Rating",disjunctive:!0,type:"slider"},{name:"last_update_range",title:"Last update",disjunctive:!0,sortFunction:r,topListIfRefined:!0}],z=app_awpp_vars.plugins_installed,m=c("#q"),A=c("#hits"),B=c("#stats"),w=c("#facets"),x=c("#pagination"),C=Hogan.compile(c("#hit-template").text()),D=Hogan.compile(c("#stats-template").text()), E=Hogan.compile(c("#facet-template").text()),F=Hogan.compile(c("#slider-template").text()),G=Hogan.compile(c("#pagination-template").text()),r=algoliasearch("A2MUMFS8E7","f19539e6bf454ef32acbb339fd6307df"),q={hitsPerPage:10,maxValuesPerFacet:10,facets:c.map(p,function(a){return a.disjunctive?null:a.name}),disjunctiveFacets:c.map(p,function(a){return a.disjunctive?a.name:null}),analyticsTags:q,ignorePlurals:!0},d=algoliasearchHelper(r,"wp_plugins",q);m.on("keyup change",function(){var a=m.val();a.trim()? (c("#input-loop").removeClass("glyphicon-flash"),c("#input-loop").addClass("glyphicon-remove")):(c("#input-loop").addClass("glyphicon-flash"),c("#input-loop").removeClass("glyphicon-remove"));d.setQuery(a).search()}).focus();d.on("change",function(a){var c;c="#q="+encodeURIComponent(a.query);c+="&page="+(a.page+1);for(var b in a.facetsRefinements)c+="&"+encodeURIComponent(b)+"="+encodeURIComponent(a.facetsRefinements[b]);for(var d in a.disjunctiveFacetsRefinements)for(var e in a.disjunctiveFacetsRefinements[d])c+= "&"+encodeURIComponent(d)+"="+encodeURIComponent(a.disjunctiveFacetsRefinements[d][e]);location.replace(c)});d.on("error",function(a){"AlgoliaSearchError"==a.name&&alert("Oops, something is not quite right.\nThis might be due to an outdated version of the plugin, in that case you must simply update the Addendio Plugin.\nOtherwise we will be happy to help, just get in touch at support@addendio.com")});d.on("error",function(a){"Error: Too many requests"==a&&alert("Wow, you are doing plenty of searches... are you human? If you are, get in touch here: info@addendio.com and let's see if we can help you...")}); d.on("result",function(a,c){var b=a.nbHits,g;g=",";b=(b+"").split(".");b[0]=b[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+g);g={nbHits:b.join("."),processingTimeMS:a.processingTimeMS,nbHits_plural:1!==a.nbHits};B.html(D.render(g));g="";for(b=0;ba.hits[b].rating&&(a.hits[b].rating_label_color="danger");a.hits[b].installs_label_color="info";1E3>a.hits[b].installs_label_color&&(a.hits[b].installs_label_color="info");a.hits[b].num_ratings_label_color= "success";10>a.hits[b].num_ratings&&(a.hits[b].num_ratings_label_color="danger");for(var e=a.hits[b],f=a.hits[b].rating,h="",l=0;l';e.star_rating=h;a.hits[b].last_update_label_color="info";"> 2 years"==a.hits[b].last_update_range&&(a.hits[b].last_update_label_color="danger");a.hits[b].donate_link_flag=!0;t.test(a.hits[b].donate_link)||(a.hits[b].donate_link_flag=!1);a.hits[b].homepage_flag=!0;t.test(a.hits[b].homepage)|| (a.hits[b].homepage_flag=!1);a.hits[b].page_width=u.width;a.hits[b].page_height=u.height;a.hits[b].tags_flag=!0;"None"===a.hits[b].tags&&(a.hits[b].tags_flag=!1);a.hits[b].author_href_flag=!0;t.test(a.hits[b].author_href)||(a.hits[b].author_href_flag=!1);a.hits[b].author_flag=!0;"null"==a.hits[b].author&&(a.hits[b].author_flag=!1);e=jQuery.inArray(a.hits[b].slug,z);a.hits[b].plugin_installed_flag=!1;-1!=e&&(a.hits[b].plugin_installed_flag=!0);a.hits[b].source_wp_flag=!0;a.hits[b].source_envato_flag= !1;"envato"==a.hits[b].source&&(a.hits[b].source_wp_flag=!1,a.hits[b].source_envato_flag=!0);a.hits[b].thumb_flag=!0;"None"===a.hits[b].img_thumb&&(a.hits[b].thumb_flag=!1);a.hits[b].downloaded=n(a.hits[b].downloaded);a.hits[b].installs=n(a.hits[b].installs);g+=C.render(a.hits[b])}0===a.hits.length&&(g='

Try and change your parameters...

if you think this is a bug you can reach us here support@addendio.com

');A.html(g);if(0===a.hits.length)w.empty();else{g=[]; for(b=0;b=")||h.stats.min,h=c.getNumericRefinement(e.name,"<=")||h.stats.max,l=Math.min(f.max,Math.max(f.min,l)),h=Math.min(f.max,Math.max(f.min,h)),f.values=[l,h],f.label_values=[l,n(h)],f.label_max=n(h),f.label_min=n(l);else{var l=[],k;for(k in h.data)l.push({label:k,value:k,count:h.data[k],refined:d.isRefined(e.name, k)});h=e.sortFunction||v;e.topListIfRefined&&(h=H(h));l.sort(h);f.values=l.slice(0,10);f.has_other_values=10g|| g>=a.nbPages||k.push({current:a.page===g,number:g+1});a.page+5