Learn More `; //jQuery( ".ds-summary" ).replaceWith( summary ); jQuery( ".ds-summary" ).hide(); jQuery('.rating-data').hide(); } return x; } }; jQuery('.ds-comments-more-link').attr("href","#"); }; // ################################ A-Z Listing, Provider Searches hide ratings with error if (jQuery("body").hasClass("page-id-916") || jQuery("body").hasClass("page-id-43840") || jQuery("body").hasClass("search-results")){ window.DS_OPT = { /** * This function will override the default builder function and * will be used to construct the HTML markup for the ds-summary placeholder * * arguments * data : the profile data returned from the api call (see API documentation for more information) * ctx : contains information about the placeholder element and a template helper function */ buildSummaryHTML: function(data, ctx){ // a variable to hold the HTML markup var x; // make sure we have data and it is valid if(data && data.valid){ // grab the profile data var profile = data.profile; if(profile){ // setup the variables that the template will need var templateData = { stars: profile.averageStarRatingStr, rating: profile.averageRatingStr, ratingCnt: profile.reviewcount, ratingCntLabel: profile.reviewCountLabel, commentCnt: profile.bodycount, commentCntLabel: profile.bodyCountLabel, facilityName: profile.name }; var template = [ '