Schema & Structured Data for WP & AMP - Version 1.9.100

Version Description

(06 August 2022) = * Added: Compatibility with Ultimate FAQ Pro * Added: Compatibility with Showcase idx plugin * Fixed: Unable to fetch all authors name in person schema. #1710 * Fixed: "FAQ" and "HOW TO" blocks need improvement #1701 * Fixed: Need to update for PHP version 8 #1718

Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Schema & Structured Data for WP & AMP
Version 1.9.100
Comparing to
See all releases

Code changes from version 1.9.99 to 1.9.100

admin_section/common-function.php CHANGED
@@ -3062,6 +3062,7 @@ function saswp_get_field_note($pname){
3062
  'accordionfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/responsive-accordion-and-collapse">Accordion FAQ</a>',
3063
  'webfaq10' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/faq-wd/">10WebFAQ</a>',
3064
  'ultimatefaqs' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/ultimate-faqs/">Ultimate FAQs</a>',
 
3065
  'easyaccordion' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/easy-accordion-free/">Easy Accordion</a>',
3066
  'wpresponsivefaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/sp-faq">WP responsive FAQ with category plugin</a>',
3067
  'arconixfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/arconix-faq/">Arconix FAQ</a>',
@@ -4017,7 +4018,7 @@ function saswp_get_condition_list($condition, $search = '', $saved_data = ''){
4017
 
4018
  case "author_name":
4019
 
4020
- $authors = get_users('role=author&orderby=display_name&order=ASC');
4021
  foreach ($authors as $author) {
4022
  $choices[] = array('id' => $author->ID, 'text' => $author->display_name);
4023
  }
3062
  'accordionfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/responsive-accordion-and-collapse">Accordion FAQ</a>',
3063
  'webfaq10' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/faq-wd/">10WebFAQ</a>',
3064
  'ultimatefaqs' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/ultimate-faqs/">Ultimate FAQs</a>',
3065
+ 'showcaseidx' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/showcase-idx/">Showcaseidx</a>',
3066
  'easyaccordion' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/easy-accordion-free/">Easy Accordion</a>',
3067
  'wpresponsivefaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/sp-faq">WP responsive FAQ with category plugin</a>',
3068
  'arconixfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/arconix-faq/">Arconix FAQ</a>',
4018
 
4019
  case "author_name":
4020
 
4021
+ $authors = get_users('orderby=display_name&order=ASC');
4022
  foreach ($authors as $author) {
4023
  $choices[] = array('id' => $author->ID, 'text' => $author->display_name);
4024
  }
admin_section/js/main-script.js CHANGED
@@ -1933,6 +1933,15 @@ jQuery(document).ready(function($){
1933
  $("#saswp-ultimatefaqs").val(0);
1934
  }
1935
 
 
 
 
 
 
 
 
 
 
1936
  break;
1937
 
1938
  case 'saswp-arconixfaq-checkbox':
1933
  $("#saswp-ultimatefaqs").val(0);
1934
  }
1935
 
1936
+ break;
1937
+ case 'saswp-showcaseidx-checkbox':
1938
+ saswp_compatibliy_notes(current, id);
1939
+ if ($(this).is(':checked')) {
1940
+ $("#saswp-showcaseidx").val(1);
1941
+ }else{
1942
+ $("#saswp-showcaseidx").val(0);
1943
+ }
1944
+
1945
  break;
1946
 
1947
  case 'saswp-arconixfaq-checkbox':
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function($){if($(document).on("click","#saswp_loc_display_on_front",function(){$(this).is(":checked")?$(".saswp-front-location-inst").removeClass("saswp_hide"):$(".saswp-front-location-inst").addClass("saswp_hide")}),$(document).on("change",".saswp-collection-where",function(){$(this);var a,b=$(this).val();b&&(a=b)&&$.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:a,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(a){if(a){var b="";$.each(a,function(c,a){b+='<option value="'+a.id+'">'+a.text+"</option>"}),$(".saswp-collection-where-data").html(""),$(".saswp-collection-where-data").append(b),saswp_select2()}},error:function(a){console.log("Failed Ajax Request"),console.log(a)}})}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?($(".saswp-coll-where").addClass("saswp_hide"),$("#saswp-motivatebox").css("display","block")):($(".saswp-coll-where").removeClass("saswp_hide"),$("#saswp-motivatebox").css("display","none"))}).change(),$(document).on("click",".saswp-dismiss-notices",function(){var b=$(this),a=$(this).attr("notice-type");a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status&&b.parent().parent().hide()},error:function(a){console.log(a)}})}),saswp_select2(),$(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),$(document).on("click",".saswp-attach-reviews",function(){$(".saswp-enable-append-reviews").is(":checked")?(tb_show(saswp_localize_data.translable_txt.attach_review,"#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),$(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),$(".saswp-attached-rv-count").show()):$(".saswp-attached-rv-count").hide()}),$(".close-attached-reviews-popup").on("click",function(){$("#TB_closeWindowButton").trigger("click")}),$("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse($("#saswp_attahced_reviews").val())),$("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse($("#saswp_attached_collection").val())),$(document).on("click",".saswp-attach-rv-checkbox",function(){var a=null;a=parseInt($(this).parent().attr("data-id"));var c=$(this).parent().attr("data-type");$(this).is(":checked")?("review"==c&&saswp_attached_rv.push(a),"collection"==c&&saswp_attached_col.push(a)):("review"==c&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(a),1),"collection"==c&&saswp_attached_col.splice(saswp_attached_col.indexOf(a),1));var d=saswp_attached_rv.length,e=saswp_attached_col.length,b="";d>0&&(b+=d+" Reviews, "),e>0&&(b+=e+" Collection"),b||(b=0),$(".saswp-attached-rv-count").text("Attached "+b),$("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),$("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),$(".saswp-load-more-rv").on("click",function(c){var a=$(this).attr("data-type"),b=$(".saswp-add-rv-loop[data-type="+a+"]").length;$("#saswp-add-rv-automatic .spinner").addClass("is-active"),c.preventDefault(),$.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:b,paged:b/10+1,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){if("t"==b.status){var c="";b.result&&($.each(b.result,function(e,b){var d="";"review"==a&&saswp_attached_rv.includes(parseInt(b.saswp_review_id))&&(d="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(b.saswp_review_id))&&(d="checked"),c+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+b.saswp_review_id+'">',"review"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" ( Rating - "+b.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+b.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" </strong>"),c+="</div>"}),$(".saswp-add-rv-automatic-list[data-type="+a+"]").append(c)),b.message&&($(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),$(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(b.message);$("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),$(".saswp-modify-schema-toggle").click(function(b){b.preventDefault(),$(".saswp-modify-container").slideToggle("300");var a=$("#saswp_enable_custom_field"),c=a.val();a.val("1"===c?"0":"1"),$(".saswp-enable-modify-schema-output").change()}),$(".saswp-enable-itemlist").change(function(){$(this).is(":checked")?($("#saswp_item_list_tags").show(),$(".saspw-item-list-note").show(),"custom"==$("#saswp_item_list_tags").val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()):($(".saspw-item-list-note").hide(),$("#saswp_item_list_tags").hide(),$("#saswp_item_list_custom").hide())}),$("#saswp_item_list_tags").change(function(){"custom"==$(this).val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()}),$(document).on("click",".saswp-add-g-location-btn",function(c){var a="";a=$("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',c.preventDefault();var b="";(b+='<tr><td style="width:12%;"><strong>'+saswp_localize_data.translable_txt.place_id+'</strong></td><td style="width:15%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.language+'</strong></td><td style="width:10%;"><input class="saswp-g-language-field" name="sd_data[saswp_reviews_language_name][]" type="text" value="" placeholder="nl"></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.fetch+'</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&$(".saswp-g-reviews-settings-table").append(b)}),$(document).on("click",".saswp-fetch-g-reviews",function(){var a=$(this),f="free";a.addClass("updating-message");var b=$(this).parent().parent().find(".saswp-g-location-field").val(),g=$(this).parent().parent().find(".saswp-g-language-field").val(),c=$(this).parent().parent().find(".saswp-g-blocks-field").val(),d=$("#saswp_google_place_api_key").val(),e=$("#reviews_addon_license_key").val(),h=$("#reviews_addon_license_key_status").val();if("premium"==(f=$("#saswp_google_place_api_key").length?"free":"premium")){if(!(c>0))return alert(saswp_localize_data.translable_txt.blocks_zero),a.removeClass("updating-message"),!1;if(0!=c%10)return a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),a.removeClass("updating-message"),!1}""!=b&&(e||d)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:h,reviews_api:e,location:b,language:g,blocks:c,g_api:d,premium_status:f,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(b){"t"==b.status?(a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.success),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(a.parent().parent().find(".saswp-rv-fetched-msg").text(b.message),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),a.removeClass("updating-message")},error:function(a){console.log(a)}}):(""==b&&alert(saswp_localize_data.translable_txt.enter_place_id),""==d&&alert(saswp_localize_data.translable_txt.enter_api_key),""==e&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),a.removeClass("updating-message"))}),saswp_localize_data.do_tour){var f,k,g,a="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";a+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="saswp_mc_embed_signup">',a+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',a+='<div id="saswp_mc_embed_signup_scroll">',a+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+='<p id="saswp-news-letter-status"></p>',a+="</div>",a+="</form>",a+="</div>",$(document).on("submit","#saswp-news-letter-form",function(b){b.preventDefault();var a=$(this),c=a.find('input[name="saswp_subscriber_name"]').val(),d=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),$.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:c,email:d,website:website},function(a){a?"Some fields are missing."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid email address."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Already subscribed."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):($("#saswp-news-letter-status").text("You're subscribed!"),$("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var e={content:a,position:{edge:"top",align:"left"}};e=$.extend(e,{buttons:function(a,b){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){b.element.pointer("close")}),button_2.on("click",function(){setTimeout(function(){b.element.pointer("close")},3e3)}),button},close:function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(b,a){a.pointer.css({left:"170px",top:"160px"})}}),g=function(){$(saswp_localize_data.displayID).pointer(e).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},e.position&&e.position.defer_loading?$(window).bind("load.wp-pointers",g):g()}$(".saswp-tabs a").click(function(c){var b=$(this).attr("href"),a=getParameterByName("tab",b);if(a||(a="general"),$(this).siblings().removeClass("nav-tab-active"),$(this).addClass("nav-tab-active"),"premium_features"!=a||"yes"!=jQuery(this).attr("data-extmgr"))return $(".form-wrap").find(".saswp-"+a).siblings().hide(),$(".form-wrap .saswp-"+a).show(),window.history.pushState("","",b),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),$(".saswp-schame-type-select").select2(),$(".saswp-schame-type-select").change(function(b){b.preventDefault(),$(".saswp-custom-fields-table").html("");var a=$(this).val();$(".saswp-option-table-class tr").each(function(a,b){a>0&&$(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($("#saswp_location_meta_box").removeClass("saswp_hide"),$(".saswp-option-table-class tr").eq(1).show(),$(".saswp-business-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&($(".saswp-service-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-item-reivewed-list").change()),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-itemlist-item-type-list").change()):$(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),saswp_enable_rating_automate(),$(".saswp-manual-modification").html(""),$(".saswp-static-container .spinner").addClass("is-active"),$.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-static-container .spinner").removeClass("is-active"),$(".saswp-manual-modification").append(a),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a||"Service"==a?$(".saswp-enable-modify-schema").show():($(".saswp-enable-modify-schema-output").val("automatic"),$(".saswp-enable-modify-schema-output").change(),$(".saswp-enable-modify-schema").hide())}),$("#saswp_business_type").select2(),$(".saswp-local-sub-type-2").select2(),$("#saswp_business_type").change(function(){var b=$(this).val(),a=$(".saswp-schame-type-select").val();$(".saswp-option-table-class tr").each(function(a,b){a>1&&($(this).hide(),$(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($(".saswp-"+b+"-tr").show(),$(".saswp-business-text-field-tr").show(),$(".saswp-"+b+"-tr").find("select").attr("disabled",!1),$("#saswp_location_meta_box").removeClass("saswp_hide")),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)):$(".saswp-schema-modify-section").show(),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review(),saswp_enable_rating_automate()}).change(),$(".saswp-checkbox").change(function(){var a=$(this).attr("id"),b=$(this);switch(a){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-seo-framework").val(1):$("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-seo-press").val(1):$("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-aiosp").val(1):$("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-smart-crawl").val(1):$("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-squirrly-seo").val(1):$("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-recipe-maker").val(1):$("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpzoom-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpzoom").val(1):$("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yotpo").val(1):$("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ryviu").val(1):$("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimate-blocks").val(1):$("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-starsrating").val(1):$("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wptastyrecipe").val(1):$("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-recipress").val(1):$("#saswp-recipress").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-ultimate-recipe").val(1):$("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-zip-recipes").val(1):$("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mediavine-create").val(1):$("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ht-recipes").val(1):$("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpsso-core").val(1):$("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":$(this).is(":checked")?$("#saswp-for-wordpress").val(1):$("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":$(this).is(":checked")?$("#saswp-for-amp").val(1):$("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":$(this).is(":checked")?($("#saswp_kb_contact_1").val(1),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):($("#saswp_kb_contact_1").val(0),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":$(this).is(":checked")?($("#saswp-logo-dimensions").val(1),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):($("#saswp-logo-dimensions").val(0),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":$(this).is(":checked")?($("#saswp_archive_schema").val(1),$(".saswp_archive_schema_type_class").parent().parent().show()):($("#saswp_archive_schema").val(0),$(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":$(this).is(":checked")?($("#saswp_website_schema").val(1),$("#saswp_search_box_schema").parent().parent().show()):($("#saswp_website_schema").val(0),$("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":$(this).is(":checked")?$("#saswp_search_box_schema").val(1):$("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_remove_cat_checkbox":$(this).is(":checked")?$("#saswp_breadcrumb_remove_cat").val(1):$("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":$(this).is(":checked")?($("#saswp_breadcrumb_schema").val(1),$("#saswp_breadcrumb_remove_cat").parent().parent().show()):($("#saswp_breadcrumb_schema").val(0),$("#saswp_breadcrumb_remove_cat").parent().parent().hide());break;case"saswp_comments_schema_checkbox":$(this).is(":checked")?$("#saswp_comments_schema").val(1):$("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":$(this).is(":checked")?$("#saswp-review-module").val(1):$("#saswp-review-module").val(0);break;case"saswp-stars-rating-checkbox":$(this).is(":checked")?($(".saswp-stars-post-table").removeClass("saswp_hide"),$(this).parent().parent().next().removeClass("saswp_hide"),$("#saswp-stars-rating").val(1)):($(this).parent().parent().next().addClass("saswp_hide"),$(".saswp-stars-post-table").addClass("saswp_hide"),$("#saswp-stars-rating").val(0));break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-kk-star-raring").val(1):$("#saswp-kk-star-raring").val(0);break;case"saswp-rmprating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rmprating").val(1):$("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratingform").val(1):$("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpdiscuz").val(1):$("#saswp-wpdiscuz").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yet-another-stars-rating").val(1):$("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simple-author-box").val(1):$("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce").val(1):$("#saswp-woocommerce").val(0);break;case"saswp_woocommerce_archive_checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_woocommerce_archive").val(1):$("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpecommerce").val(1):$("#saswp-wpecommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_default_review").val(1):$("#saswp_default_review").val(0);break;case"saswp-single-price-product-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-single-price-product").val(1),$(".saswp-single-price-opt").parent().parent().show()):($("#saswp-single-price-product").val(0),$(".saswp-single-price-opt").parent().parent().hide());break;case"saswp-extra-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-extra").val(1):$("#saswp-extra").val(0);break;case"saswp-enfold-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-enfold").val(1):$("#saswp-enfold").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-soledad").val(1):$("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-theme-reviews").val(1):$("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-dw-question-answer").val(1):$("#saswp-dw-question-answer").val(0);break;case"saswp-wpqa-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpqa").val(1):$("#saswp-wpqa").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-job-manager").val(1):$("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yoast").val(1):$("#saswp-yoast").val(0);break;case"saswp-polylang-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-polylang").val(1):$("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-autolistings").val(1):$("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpml").val(1):$("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-metatagmanager").val(1):$("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-slimseo").val(1):$("#saswp-slimseo").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rankmath").val(1):$("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-taqyeem").val(1):$("#saswp-taqyeem").val(0);break;case"saswp-video-thumbnails-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-video-thumbnails").val(1):$("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-featured-video-plus").val(1):$("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-product-review").val(1):$("#saswp-wp-product-review").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-events-calendar").val(1):$("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-homeland").val(1):$("#saswp-homeland").val(0);break;case"saswp-ratency-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratency").val(1):$("#saswp-ratency").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresidence").val(1):$("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-myhome").val(1):$("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-5").val(1):$("#saswp-realestate-5").val(0);break;case"saswp-realestate-7-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-7").val(1):$("#saswp-realestate-7").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stamped").val(1):$("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-sabaidiscuss").val(1):$("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-geodirectory").val(1):$("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-classipress").val(1):$("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realhomes").val(1):$("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-press").val(1):$("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wplms").val(1):$("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-dash").val(1):$("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-lifter-lms").val(1):$("#saswp-lifter-lms").val(0);break;case"saswp-senseilms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-senseilms").val(1):$("#saswp-senseilms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-manager").val(1):$("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-manager").val(1):$("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-calendar-wd").val(1):$("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-organiser").val(1):$("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-modern-events-calendar").val(1):$("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking").val(1),$("#saswp-woocommerce-booking-main").val(1)):($("#saswp-woocommerce-booking").val(0),$("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking-main").val(1),$("#saswp-woocommerce-booking").val(1)):($("#saswp-woocommerce-booking-main").val(0),$("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce-membership").val(1):$("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":$(this).is(":checked")?$("#saswp-defragment").val(1):$("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cooked").val(1):$("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-shopper-approved-review").val(1),$(".saswp-s-reviews-settings-table").parent().parent().parent().show()):($("#saswp-shopper-approved-review").val(0),$(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":$(this).is(":checked")?($("#saswp-google-review").val(1),$("#saswp-google-rv-free-checkbox").length?($("#saswp-google-review-free").parent().parent().show(),$("#saswp-google-rv-free-checkbox").is(":checked")?$("#saswp_google_place_api_key").parent().parent().show():$("#saswp_google_place_api_key").parent().parent().hide()):$("#saswp_google_place_api_key").parent().parent().show(),$(".saswp-g-reviews-settings-table").parent().parent().parent().show()):($("#saswp-google-review").val(0),$("#saswp_google_place_api_key").parent().parent().hide(),$(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),$("#saswp-google-rv-free-checkbox").length&&$("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":$("#saswp-google-review-checkbox").is(":checked")&&$(this).is(":checked")?($("#saswp-google-review-free").val(1),$("#saswp_google_place_api_key").parent().parent().show()):($("#saswp-google-review-free").val(0),$("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":$(this).is(":checked")?$("#saswp-markup-footer").val(1):$("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":$(this).is(":checked")?$("#saswp-pretty-print").val(1):$("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wppostratings-raring").val(1):$("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-bbpress").val(1):$("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":$(this).is(":checked")?$("#saswp-microdata-cleanup").val(1):$("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":$(this).is(":checked")?$("#saswp-other-images").val(1):$("#saswp-other-images").val(0);break;case"saswp-full-heading-checkbox":$(this).is(":checked")?$("#saswp-full-heading").val(1):$("#saswp-full-heading").val(0);break;case"saswp-rss-feed-image-checkbox":$(this).is(":checked")?$("#saswp-rss-feed-image").val(1):$("#saswp-rss-feed-image").val(0);break;case"saswp-image-resizing-checkbox":$(this).is(":checked")?$("#saswp-image-resizing").val(1):$("#saswp-image-resizing").val(0);break;case"saswp-multiple-size-image-checkbox":$(this).is(":checked")?$("#saswp-multiple-size-image").val(1):$("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":$(this).is(":checked")?$("#saswp-easy-testimonials").val(1):$("#saswp-easy-testimonials").val(0);break;case"saswp-brb-checkbox":$(this).is(":checked")?$("#saswp-brb").val(1):$("#saswp-brb").val(0);break;case"saswp-testimonial-pro-checkbox":$(this).is(":checked")?$("#saswp-testimonial-pro").val(1):$("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":$(this).is(":checked")?$("#saswp-bne-testimonials").val(1):$("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampforwp").val(1):$("#saswp-ampforwp").val(0);break;case"saswp-wpreviewslider-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewslider").val(1):$("#saswp-wpreviewslider").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampbyautomatic").val(1):$("#saswp-ampbyautomatic").val(0);break;case"saswp-cmp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cmp").val(1):$("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewpro").val(1):$("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webstories").val(1):$("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var c=$("#saswp-resized-image-folder-checkbox");$(this).is(":checked")?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($("#saswp-resized-image-folder").val(1),$("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(c.prop("checked",!1),c.next().text(a.message),c.next().css("color","red"))},error:function(a){c.prop("checked",!1),c.next().text(a),c.next().css("color","red")}}):($("#saswp-resized-image-folder").val(0),$(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-elementor").val(1):$("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rannarecipe").val(1):$("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-jetpackrecipe").val(1):$("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-quickandeasyfaq").val(1):$("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimatefaqs").val(1):$("#saswp-ultimatefaqs").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-arconixfaq").val(1):$("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqconcertina").val(1):$("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobmanager").val(1):$("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simplejobboard").val(1):$("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobopenings").val(1):$("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webfaq10").val(1):$("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpfaqschemamarkup").val(1):$("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqschemaforpost").val(1):$("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-masteraccordion").val(1):$("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyfaqs").val(1):$("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordion").val(1):$("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-html5responsivefaq").val(1):$("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresponsivefaq").val(1):$("#saswp-wpresponsivefaq").val(0);break;case"saswp-ameliabooking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ameliabooking").val(1):$("#saswp-ameliabooking").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyaccordion").val(1):$("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-helpiefaq").val(1):$("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mooberrybm").val(1):$("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-novelist").val(1):$("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordionfaq").val(1):$("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-schemaforfaqs").val(1):$("#saswp-schemaforfaqs").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-customer-reviews").val(1):$("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-total-recipe-generator").val(1):$("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordpress-news").val(1):$("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampwp").val(1):$("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-aggregator").val(1):$("#saswp-wp-event-aggregator").val(0);break;case"saswp-timetable-event-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-timetable-event").val(1):$("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-xo-event-calendar").val(1):$("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-vs-event-list").val(1):$("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-calendarize-it").val(1):$("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-schedule").val(1):$("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woo-event-manager").val(1):$("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stachethemes-event-calendar").val(1):$("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-all-in-one-event-calendar").val(1):$("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-on").val(1):$("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easy-recipe").val(1):$("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-tevolution-events").val(1):$("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-strong-testimonials").val(1):$("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordlift").val(1):$("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-betteramp").val(1):$("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpamp").val(1):$("#saswp-wpamp").val(0)}}).change(),$("#saswp_kb_type").change(function(){var a=$(this).val();$(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==a&&($(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==a&&($(".saswp_org_fields").parent().parent().addClass("saswp_hide"),$(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),$(document).on("click","input[data-id=media]",function(a){a.preventDefault();var b=$(this),c=b.attr("id").replace("_button",""),d=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var a=d.state().get("selection").first().toJSON();$("#"+c).val(a.url),$("input[data-id='"+c+"_id']").val(a.id),$("input[data-id='"+c+"_height']").val(a.height),$("input[data-id='"+c+"_width']").val(a.width),$("input[data-id='"+c+"_thumbnail']").val(a.url),"sd_default_image_button"===b.attr("id")&&($("#sd_default_image_width").val(a.width),$("#sd_default_image_height").val(a.height));var e="";"saswp_image_div_"+c=="saswp_image_div_sd_default_image"&&a.height<1200&&(e='<p class="saswp_warning">Image size is smaller than recommended size</p>'),$(".saswp_image_div_"+c).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+a.url+'"/><a data-id="'+c+'" href="#" class="saswp_prev_close">X</a></div>'+e)}).open()}),$(document).on("click",".saswp_prev_close",function(b){b.preventDefault();var a=$(this).attr("data-id");$(this).parent().remove(),$("#"+a).val(""),$("input[data-id='"+a+"_id']").val(""),$("input[data-id='"+a+"_height']").val(""),$("input[data-id='"+a+"_width']").val(""),$("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&($("#sd_default_image_width").val(""),$("#sd_default_image_height").val(""))}),$(document).on("click",".saswp-modify-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.get(ajaxurl,{action:"saswp_modify_schema_post_enable",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-post-specific-wrapper[data-id="+b+"] .saswp-post-specific-setting").after(a),$(".saswp_modify_this_schema_hidden_"+b).val(1),$(".saswp-ps-toggle[schema-id="+b+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),c.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_item_reviewed_call()})}),$(document).on("click",".saswp-restore-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.post(ajaxurl,{action:"saswp_modify_schema_post_restore",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){c.removeClass("updating-message"),"t"==a.status?($(".saswp_modify_this_schema_hidden_"+b).val(0),$(".saswp-restore-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+b+"]").remove()):alert("Something went wrong")},"json")}),$(document).on("change",".saswp-schema-type-toggle",function(e){var a=$(this).attr("data-schema-id"),c=$(this).attr("data-post-id"),d=$(".saswp_modify_this_schema_hidden_"+a).val();if($(this).is(":checked")){var b=0;$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{$("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==d?($(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):($(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));var b=1}$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:b,schema_id:a,post_id:c,req_from:saswp_localize_data.req_from,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-reset-data",function(a){a.preventDefault(),!0==confirm("Are you sure?")&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){setTimeout(function(){location.reload()},1e3)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("license-status"),a=$(this).attr("add-on"),d=$("#"+a+"_addon_license_key").val();c&&a&&d?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){$("#"+a+"_addon_license_key_status").val(c.status),"active"==c.status&&c.days_remaining<0?($("span.inactive_status_reviews").text("Expired"),$("span.inactive_status_reviews").css({color:"red","font-weight":"400"})):"active"==c.status?($(".saswp-"+a+"-dashicons").addClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").css("color","green"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","inactive"),$(".saswp_license_activation[add-on='"+a+"']").text("Deactivate"),$("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),$(".saswp_license_status_msg[add-on='"+a+"']").text("Activated"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","green"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.inactive_status_"+a).text("Active"),$("span.inactive_status_"+a).css({color:"green","margin-left":"8px","font-weight":"400"}),$("span.inactive_status_"+a).removeClass("inactive_status_"+a).addClass("addon-activated_"+a)):($(".saswp-"+a+"-dashicons").addClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").css("color","red"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","active"),$(".saswp_license_activation[add-on='"+a+"']").text("Activate"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","red"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.addon-activated_"+a).text("Inactive"),$("span.addon-activated_"+a).css("color","#bebfc0"),$("span.addon-activated_"+a).removeClass("addon-activated_"+a).addClass("inactive_status_"+a),$("span.limit_span").css("display","none")),b.removeClass("updating-message")},error:function(a){console.log(a)}}):(alert("Please enter value license key"),b.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(g){var f=jQuery(this);g.preventDefault();var b=f.attr("add-on"),h=f.attr("remaining_days_org"),i=jQuery("#"+b+"_addon_license_key").val();document.getElementById("user_refresh_"+b).classList.add("spin");var c=new Date,a=function(e){for(var c=e+"=",d=document.cookie.split(";"),b=0;b<d.length;b++){for(var a=d[b];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(c))return a.substring(c.length,a.length)}return null}("saswp_addon_refresh_check");a=new Date(a);var d=-1,e=Math.abs(c.getTime()-a.getTime()),d=Math.ceil(e/864e5),e=Math.abs(new Date(h).getTime()-c.getTime());-1==d||d>1||1>Math.ceil(e/864e5)?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){jQuery("#"+b+"_addon_license_key_status").val(a.status),document.getElementById("user_refresh_"+b).classList.remove("spin"),f.removeClass("updating-message")},error:function(a){console.log(a)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),alert("Please try after "+(a=Math.abs(a.getDate()+1)+"/"+Math.abs(a.getMonth()+1)+"/"+a.getFullYear()+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds())))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var b=c.days_remaining;b>=0&&b<=7&&$("span.saswp-addon-alert").text("expiring in "+b+" days ")}else document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),$("span.pro_warning").css("display","none")}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var b=$(this),c=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var d=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?($("span#exp").text("Expired"),location.reload()):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),b.removeClass("updating-message"))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?$("span#exp").text("Expired"):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})}),$(".saswp-send-query").on("click",function(d){d.preventDefault();var b=$("#saswp_query_message").val(),a=$("#saswp_query_email").val(),c=$("#saswp_query_premium_cus").val();""!=$.trim(b)&&c&&""!=$.trim(a)&& !0==saswpIsEmail(a)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:c,message:b,email:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($(".saswp-query-success").show(),$(".saswp-query-error").hide()):($(".saswp-query-success").hide(),$(".saswp-query-error").show())},error:function(a){console.log(a)}}):""==$.trim(b)&&""==c&&""==$.trim(a)?alert("Please enter the message, email and select customer type"):(""==c&&alert("Select Customer type"),""==$.trim(b)&&alert("Please enter the message"),""==$.trim(a)&&alert("Please enter the email"),!1==saswpIsEmail(a)&&alert("Please enter a valid email"))}),$(".saswp-import-plugins").on("click",function(a){a.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("data-id");$.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status?($(b).parent().find(".saswp-imported-message").text(a.message),$(b).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):($(b).parent().find(".saswp-imported-message").addClass("saswp-error"),$(b).parent().find(".saswp-imported-message").text(a.message)),b.removeClass("updating-message")},"json")}),$(".saswp-feedback-no-thanks").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(".saswp-feedback-remindme").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(document).on("change",".saswp-local-business-type-select",function(a){a.preventDefault();var c=$(this),b=$(this).val();$.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(d){if("t"==d.status){$(".saswp-local-business-name-select").parents("tr").remove();var b=c.parents(".saswp-post-specific-wrapper").attr("data-id"),a='<tr><th><label for="saswp_business_name_'+b+'">Sub Business Type</label></th>';a+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+b+'" name="saswp_business_name_'+b+'">',$.each(d.result,function(b,c){a+='<option value="'+b+'">'+c+"</option>"}),a+="</select></td>",a+="</tr>",c.parents(".form-table tr:first").after(a)}else $(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),$(document).on("click",".saswp-add-custom-schema",function(a){a.preventDefault(),$(".saswp-add-custom-schema-field").removeClass("saswp_hide"),$(this).hide()}),$(document).on("click",".saswp-delete-custom-schema",function(a){a.preventDefault(),$("#saswp_custom_schema_field").val(""),$(".saswp-add-custom-schema-field").addClass("saswp_hide"),$(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),$(document).on("click",".saswp-add-more-item",function(b){b.preventDefault();var a='<tr class="saswp-review-item-tr">';a+="<td>Review Item Feature</td>",a+='<td><input type="text" name="saswp-review-item-feature[]"></td>',a+="<td>Rating</td>",a+='<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>',a+='<td><a type="button" class="saswp-remove-review-item button">x</a></td>',a+="</tr>",$(".saswp-review-item-list-table").append(a)}),$(document).on("click",".saswp-remove-review-item",function(a){a.preventDefault(),$(this).parent().parent("tr").remove()}),$(document).on("focusout",".saswp-review-item-tr input[type=number]",function(a){a.preventDefault();var b=0,c=$(".saswp-review-item-tr input[type=number]").length;$(".saswp-review-item-tr input[type=number]").each(function(c,a){""==$(a).val()?b+=parseFloat(0):b+=parseFloat($(a).val())}),$("#saswp-review-item-over-all").val(b/c)}),$("#saswp-review-location").change(function(){var a=$(this).val();$(".saswp-review-shortcode").addClass("saswp_hide"),3==a&&$(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),$("#saswp-review-item-enable").change(function(){$(this).is(":checked")?$(".saswp-review-fields").show():$(".saswp-review-fields").hide()}).change(),$(document).on("click",".saswp-restore-post-schema",function(a){a.preventDefault();var b=$(this);if(b.addClass("updating-message"),$(".saswp-post-specific-schema-ids").val())var c=JSON.parse($(".saswp-post-specific-schema-ids").val());$.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:c,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status||alert(a.msg),setTimeout(function(){location.reload()},1e3),b.removeClass("updating-message")},"json")}),$(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(a){a.preventDefault();var b=$(this).attr("data-id");$(".saswp-post-specific-wrapper").hide(),$("#"+b).show(),$("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),$("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),$(this).addClass("selected"),$(this).parent().addClass("selected"),saswp_enable_rating_review(),saswp_enable_rating_automate()}),$("#saswp-global-tabs a:first").addClass("saswp-global-selected"),$(".saswp-global-container").hide();var h=window.location.hash;if("#saswp-default-container"==h?$(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==h?$(".saswp-global-container:eq(1)").show():$(".saswp-global-container:first").show(),$("#saswp-global-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-global-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-global-container").hide(),$("#"+a).show())}),$("#saswp-review-tabs a:first").addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$(".saswp-review-container:first").show(),$("#saswp-review-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-review-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$("#"+a).show())}),$("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$(".saswp-compatibility-container:first").show(),$("#saswp-compatibility-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$("#"+a).show())}),$('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),$(".saswp-enable-modify-schema-output").on("change",function(){$(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==$(this).val()&&($(".saswp-static-container").removeClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==$(this).val()&&($(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").removeClass("saswp_hide"))}),$(document).on("change",".saswp-custom-fields-name",function(){var b="text",c=$(this).parent().parent("tr"),a=$(this).val();(-1!=a.indexOf("_image")|| -1!=a.indexOf("_logo"))&&(b="image");var d=$(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,b,null,d,a,c)}),$(document).on("click",".saswp-skip-button",function(a){a.preventDefault(),$(this).parent().parent().hide(),$.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){},"json")}),$(document).on("click",".saswp_add_schema_fields_on_fly",function(f){f.preventDefault();var d=$(this);d.addClass("updating-message");var b=$(this).attr("data-id"),e=$(this).attr("fields_type"),c=$(this).attr("div_type"),g=$(this).attr("itemlist_sub_type"),h=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div").length,a=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div:nth-child("+h+")").attr("data-id");(a=++a)||(a=0),saswp_get_post_specific_schema_fields(d,a,e,c,b,e+"_",g)}),$(document).on("click",".saswp-table-close",function(){$(this).parent().remove()}),$(document).on("click",".saswp-rmv-modify_row",function(a){a.preventDefault(),$(this).parent().parent().remove()}),$(document).on("change",".saswp-custom-meta-list",function(){var f=$(this),g=$("select#schema_type option:selected").val(),d=$(this).val(),c=$(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),a="",b=g.toLowerCase()+"_"+c,e="saswp_fixed_image["+c+"]";"manual_text"==d?(a+='<td><textarea cols="35" rows="2" name="saswp_fixed_text['+c+']"></textarea></td>',a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"taxonomy_term"==d?saswp_taxonomy_term.taxonomy?(a+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2()):$.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){b&&(saswp_taxonomy_term.taxonomy=b,a+=saswp_taxonomy_term_html(b,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2())},"json"):"custom_field"==d?(a+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+c+']">',a+="</select></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"fixed_image"==d?(a+="<td>",a+="<fieldset>",a+='<input data-id="media" style="width: 30%;" class="button" id="'+b+'_button" name="'+b+'_button" type="button" value="Upload" />',a+='<input type="hidden" data-id="'+b+'_height" class="upload-height" name="'+e+'[height]" id="'+b+'_height" value="">',a+='<input type="hidden" data-id="'+b+'_width" class="upload-width" name="'+e+'[width]" id="'+b+'_width" value="">',a+='<input type="hidden" data-id="'+b+'_thumbnail" class="upload-thumbnail" name="'+e+'[thumbnail]" id="'+b+'_thumbnail" value="">',a+='<div class="saswp_image_div_'+b+'">',a+="</div>",a+="</fieldset>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):(a+="<td></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2())}),$(document).on("change",".saswp-item-reivewed-list",function(){$(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var a=$(this),b=$("select#schema_type option:selected").val();saswp_item_reviewed_ajax(b,a,"manual")}),$(document).on("click",".saswp-add-custom-fields",function(){var b=$(this);b.addClass("updating-message");var a=$("select#schema_type option:selected").val(),c="",d=null;"Review"==a&&(c=$("select.saswp-item-reivewed-list option:selected").val(),d="saswp_review_name");var e=$("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null):$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:e,schema_type:a,schema_subtype:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){saswp_meta_list_fields[a]=c,saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null)},error:function(a){console.log(a)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),$('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),$(document).on("click",".saswp_coonect_google_place",function(){var a=$("#saswp_google_place_id").val(),b=$("#saswp_language_list").val(),c=$("#saswp_googel_api").val();""!=a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:a,language:b,google_api:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){console.log(a.status)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-add-social-links",function(){$(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),$(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),$(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var b='<div class="saswp-custom-post-tab">';b+='<div style="display:none;" id="saswp-accept-reviews-popup">',b+='<div class="saswp-accept-rv-container">',b+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",b+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',b+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',b+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',b+="</div>",b+="</div>",b+='<h2 class="nav-tab-wrapper">',b+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',b+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',b+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',b+="</h2>",b+="</div>",jQuery(jQuery(".wrap")).prepend(b)}jQuery(document).on("click",".saswp-clear-images",function(a){a.preventDefault();var b=$(this);!0==confirm("Are you sure? It will remove all the resized images")&&(b.addClass("updating-message"),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){b.removeClass("updating-message"),"t"!=a.status&&alert("something went wrong")},error:function(a){console.log(a)}}))}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&$(".saswp-rating-div").rateYo({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(a,b){$(this).next().next().val(a)}}).on("rateyo.change",function(c,a){var b=a.rating;$(this).next().text(b)}),$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var a=$(this);a.parent().find(".saswp-phone-validation").remove();var b=$(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(b)?a.parent().find(".saswp-phone-validation").remove():a.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),$(document).on("click",".saswp-add-rv-btn",function(){$(".saswp-dynamic-platforms").toggle()}),$(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var a="";a+='<div class="saswp-add-dynamic-section">',a+='<div class="saswp-add-dynamic-btn">',a+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',a+="</div>",a+='<div class="saswp-dynamic-platforms" style="display:none;">',a+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",a+="</div>",a+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(a)}}),$(document).on("change","#saswp_dynamic_platforms",function(){var b=$(this).val(),a="";a+='<select id="saswp_dynamic_reviews_list">',a+="</select>",a+='<a class="button button-default saswp-add-single-rv">Add</a>',$("#saswp_dynamic_platforms").nextAll().remove(),$("#saswp_dynamic_platforms").after(a);var c=ajaxurl+"?action=saswp_add_reviews_to_select2&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&platform_id="+b;$("#saswp_dynamic_reviews_list").select2({ajax:{url:c,dataType:"json",processResults:function(a){if(a.status)return{results:a.message}}}})}),$(document).on("click",".saswp-add-single-rv",function(b){b.preventDefault();var a=$("#saswp_dynamic_reviews_list").val(),c=$("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,c,null,a,!0)}),$(document).on("click",".saswp-remove-coll-rv",function(){var c=$(this).attr("data-id"),a=$(this).attr("platform-id");if(a){var b=saswp_collection[a].filter(function(a){return a.saswp_review_id!=c});saswp_collection[a]=b,saswp_on_collection_design_change()}}),$(document).on("click",".saswp-grid-page",function(a){a.preventDefault(),saswp_grid_page=$(this).attr("data-id"),saswp_on_collection_design_change()}),$("#saswp-coll-pagination").change(function(){saswp_grid_page=1,$("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),$(this).is(":checked")&&$("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),$(".saswp-accordion").click(function(){$(this).toggleClass("active"),$(this).next(".saswp-accordion-panel").slideToggle(200)}),$(document).on("click",".saswp-opn-cls-btn",function(){$("#saswp-reviews-cntn").toggle(),$("#saswp-reviews-cntn").is(":visible")?($(".saswp-onclick-show").css("display","flex"),$(".saswp-onclick-hide").hide(),$(".saswp-open-class").css("width","500px")):($(".saswp-onclick-show").css("display","none"),$(".saswp-onclick-hide").show(),$(".saswp-open-class").css("width","300px"))}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?$(".saswp-collection-shortcode").removeClass("saswp_hide"):$(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),$(document).on("click",".saswp-remove-platform",function(a){a.preventDefault();var b=$(this).attr("platform-id");saswp_collection.splice(b,1),$(this).parent().remove(),saswp_on_collection_design_change()}),$(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),$(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var a=$(".saswp-collection-desing").val(),b=$(".saswp-collection-sorting").val();$(".saswp-coll-options").addClass("saswp_hide"),$(".saswp-collection-lp").css("height","auto"),$(".saswp-rmv-coll-rv").hide(),$(".saswp-add-dynamic-section").hide(),"grid"==a&&($(".saswp-grid-options").removeClass("saswp_hide"),$(".saswp-rmv-coll-rv").show(),$(".saswp-add-dynamic-section").show()),"gallery"==a&&$(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==a&&($(".saswp-fomo-options").removeClass("saswp_hide"),$(".saswp-collection-lp").css("height","31px")),"popup"==a&&$(".saswp-collection-lp").css("height","31px"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide"),"recent"==b?($("#saswp_collection_specific_rating").parent().parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")):($("#saswp_collection_specific_rating").parent().parent().addClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")),saswp_on_collection_design_change()}).change(),$(".saswp-add-to-collection").on("click",function(d){d.preventDefault();var a=$(this),b=$("#saswp-plaftorm-list").val(),c=$("#saswp-review-count").val();b&&c>0?(a.addClass("updating-message"),saswp_get_collection_data(c,b,a,null)):alert("Enter Count")});var i=$("#saswp_total_reviews_list").val();i&&saswp_get_collection_data(null,null,null,null,i),(f=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",f.innerHTML="Copied!",document.body.appendChild(f);var j=document.getElementById("saswp-motivatebox");j&&j.addEventListener("mouseup",function(a){var c,d,e,h,b,a=a||event,g=a.target||a.srcElement;"motivate"==g.className&&(c=g,(d=document.createRange()).selectNodeContents(c),(e=window.getSelection()).removeAllRanges(),e.addRange(d),function(){var a;try{a=document.execCommand("copy")}catch(b){a=!1}return a}()&&(b=a||event,clearTimeout(k),f.style.left=b.pageX-10+"px",f.style.top=b.pageY+15+"px",f.style.opacity=1,k=setTimeout(function(){f.style.opacity=0},500)))},!1)})
1
+ var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function($){if($(document).on("click","#saswp_loc_display_on_front",function(){$(this).is(":checked")?$(".saswp-front-location-inst").removeClass("saswp_hide"):$(".saswp-front-location-inst").addClass("saswp_hide")}),$(document).on("change",".saswp-collection-where",function(){$(this);var a,b=$(this).val();b&&(a=b)&&$.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:a,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(a){if(a){var b="";$.each(a,function(c,a){b+='<option value="'+a.id+'">'+a.text+"</option>"}),$(".saswp-collection-where-data").html(""),$(".saswp-collection-where-data").append(b),saswp_select2()}},error:function(a){console.log("Failed Ajax Request"),console.log(a)}})}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?($(".saswp-coll-where").addClass("saswp_hide"),$("#saswp-motivatebox").css("display","block")):($(".saswp-coll-where").removeClass("saswp_hide"),$("#saswp-motivatebox").css("display","none"))}).change(),$(document).on("click",".saswp-dismiss-notices",function(){var b=$(this),a=$(this).attr("notice-type");a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status&&b.parent().parent().hide()},error:function(a){console.log(a)}})}),saswp_select2(),$(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),$(document).on("click",".saswp-attach-reviews",function(){$(".saswp-enable-append-reviews").is(":checked")?(tb_show(saswp_localize_data.translable_txt.attach_review,"#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),$(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),$(".saswp-attached-rv-count").show()):$(".saswp-attached-rv-count").hide()}),$(".close-attached-reviews-popup").on("click",function(){$("#TB_closeWindowButton").trigger("click")}),$("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse($("#saswp_attahced_reviews").val())),$("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse($("#saswp_attached_collection").val())),$(document).on("click",".saswp-attach-rv-checkbox",function(){var a=null;a=parseInt($(this).parent().attr("data-id"));var c=$(this).parent().attr("data-type");$(this).is(":checked")?("review"==c&&saswp_attached_rv.push(a),"collection"==c&&saswp_attached_col.push(a)):("review"==c&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(a),1),"collection"==c&&saswp_attached_col.splice(saswp_attached_col.indexOf(a),1));var d=saswp_attached_rv.length,e=saswp_attached_col.length,b="";d>0&&(b+=d+" Reviews, "),e>0&&(b+=e+" Collection"),b||(b=0),$(".saswp-attached-rv-count").text("Attached "+b),$("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),$("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),$(".saswp-load-more-rv").on("click",function(c){var a=$(this).attr("data-type"),b=$(".saswp-add-rv-loop[data-type="+a+"]").length;$("#saswp-add-rv-automatic .spinner").addClass("is-active"),c.preventDefault(),$.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:b,paged:b/10+1,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){if("t"==b.status){var c="";b.result&&($.each(b.result,function(e,b){var d="";"review"==a&&saswp_attached_rv.includes(parseInt(b.saswp_review_id))&&(d="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(b.saswp_review_id))&&(d="checked"),c+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+b.saswp_review_id+'">',"review"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" ( Rating - "+b.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+b.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" </strong>"),c+="</div>"}),$(".saswp-add-rv-automatic-list[data-type="+a+"]").append(c)),b.message&&($(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),$(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(b.message);$("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),$(".saswp-modify-schema-toggle").click(function(b){b.preventDefault(),$(".saswp-modify-container").slideToggle("300");var a=$("#saswp_enable_custom_field"),c=a.val();a.val("1"===c?"0":"1"),$(".saswp-enable-modify-schema-output").change()}),$(".saswp-enable-itemlist").change(function(){$(this).is(":checked")?($("#saswp_item_list_tags").show(),$(".saspw-item-list-note").show(),"custom"==$("#saswp_item_list_tags").val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()):($(".saspw-item-list-note").hide(),$("#saswp_item_list_tags").hide(),$("#saswp_item_list_custom").hide())}),$("#saswp_item_list_tags").change(function(){"custom"==$(this).val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()}),$(document).on("click",".saswp-add-g-location-btn",function(c){var a="";a=$("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',c.preventDefault();var b="";(b+='<tr><td style="width:12%;"><strong>'+saswp_localize_data.translable_txt.place_id+'</strong></td><td style="width:15%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.language+'</strong></td><td style="width:10%;"><input class="saswp-g-language-field" name="sd_data[saswp_reviews_language_name][]" type="text" value="" placeholder="nl"></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.fetch+'</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&$(".saswp-g-reviews-settings-table").append(b)}),$(document).on("click",".saswp-fetch-g-reviews",function(){var a=$(this),f="free";a.addClass("updating-message");var b=$(this).parent().parent().find(".saswp-g-location-field").val(),g=$(this).parent().parent().find(".saswp-g-language-field").val(),c=$(this).parent().parent().find(".saswp-g-blocks-field").val(),d=$("#saswp_google_place_api_key").val(),e=$("#reviews_addon_license_key").val(),h=$("#reviews_addon_license_key_status").val();if("premium"==(f=$("#saswp_google_place_api_key").length?"free":"premium")){if(!(c>0))return alert(saswp_localize_data.translable_txt.blocks_zero),a.removeClass("updating-message"),!1;if(0!=c%10)return a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),a.removeClass("updating-message"),!1}""!=b&&(e||d)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:h,reviews_api:e,location:b,language:g,blocks:c,g_api:d,premium_status:f,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(b){"t"==b.status?(a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.success),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(a.parent().parent().find(".saswp-rv-fetched-msg").text(b.message),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),a.removeClass("updating-message")},error:function(a){console.log(a)}}):(""==b&&alert(saswp_localize_data.translable_txt.enter_place_id),""==d&&alert(saswp_localize_data.translable_txt.enter_api_key),""==e&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),a.removeClass("updating-message"))}),saswp_localize_data.do_tour){var f,k,g,a="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";a+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="saswp_mc_embed_signup">',a+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',a+='<div id="saswp_mc_embed_signup_scroll">',a+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+='<p id="saswp-news-letter-status"></p>',a+="</div>",a+="</form>",a+="</div>",$(document).on("submit","#saswp-news-letter-form",function(b){b.preventDefault();var a=$(this),c=a.find('input[name="saswp_subscriber_name"]').val(),d=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),$.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:c,email:d,website:website},function(a){a?"Some fields are missing."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid email address."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Already subscribed."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):($("#saswp-news-letter-status").text("You're subscribed!"),$("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var e={content:a,position:{edge:"top",align:"left"}};e=$.extend(e,{buttons:function(a,b){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){b.element.pointer("close")}),button_2.on("click",function(){setTimeout(function(){b.element.pointer("close")},3e3)}),button},close:function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(b,a){a.pointer.css({left:"170px",top:"160px"})}}),g=function(){$(saswp_localize_data.displayID).pointer(e).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},e.position&&e.position.defer_loading?$(window).bind("load.wp-pointers",g):g()}$(".saswp-tabs a").click(function(c){var b=$(this).attr("href"),a=getParameterByName("tab",b);if(a||(a="general"),$(this).siblings().removeClass("nav-tab-active"),$(this).addClass("nav-tab-active"),"premium_features"!=a||"yes"!=jQuery(this).attr("data-extmgr"))return $(".form-wrap").find(".saswp-"+a).siblings().hide(),$(".form-wrap .saswp-"+a).show(),window.history.pushState("","",b),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),$(".saswp-schame-type-select").select2(),$(".saswp-schame-type-select").change(function(b){b.preventDefault(),$(".saswp-custom-fields-table").html("");var a=$(this).val();$(".saswp-option-table-class tr").each(function(a,b){a>0&&$(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($("#saswp_location_meta_box").removeClass("saswp_hide"),$(".saswp-option-table-class tr").eq(1).show(),$(".saswp-business-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&($(".saswp-service-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-item-reivewed-list").change()),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-itemlist-item-type-list").change()):$(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),saswp_enable_rating_automate(),$(".saswp-manual-modification").html(""),$(".saswp-static-container .spinner").addClass("is-active"),$.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-static-container .spinner").removeClass("is-active"),$(".saswp-manual-modification").append(a),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a||"Service"==a?$(".saswp-enable-modify-schema").show():($(".saswp-enable-modify-schema-output").val("automatic"),$(".saswp-enable-modify-schema-output").change(),$(".saswp-enable-modify-schema").hide())}),$("#saswp_business_type").select2(),$(".saswp-local-sub-type-2").select2(),$("#saswp_business_type").change(function(){var b=$(this).val(),a=$(".saswp-schame-type-select").val();$(".saswp-option-table-class tr").each(function(a,b){a>1&&($(this).hide(),$(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($(".saswp-"+b+"-tr").show(),$(".saswp-business-text-field-tr").show(),$(".saswp-"+b+"-tr").find("select").attr("disabled",!1),$("#saswp_location_meta_box").removeClass("saswp_hide")),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)):$(".saswp-schema-modify-section").show(),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review(),saswp_enable_rating_automate()}).change(),$(".saswp-checkbox").change(function(){var a=$(this).attr("id"),b=$(this);switch(a){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-seo-framework").val(1):$("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-seo-press").val(1):$("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-aiosp").val(1):$("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-smart-crawl").val(1):$("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-squirrly-seo").val(1):$("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-recipe-maker").val(1):$("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpzoom-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpzoom").val(1):$("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yotpo").val(1):$("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ryviu").val(1):$("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimate-blocks").val(1):$("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-starsrating").val(1):$("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wptastyrecipe").val(1):$("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-recipress").val(1):$("#saswp-recipress").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-ultimate-recipe").val(1):$("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-zip-recipes").val(1):$("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mediavine-create").val(1):$("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ht-recipes").val(1):$("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpsso-core").val(1):$("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":$(this).is(":checked")?$("#saswp-for-wordpress").val(1):$("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":$(this).is(":checked")?$("#saswp-for-amp").val(1):$("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":$(this).is(":checked")?($("#saswp_kb_contact_1").val(1),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):($("#saswp_kb_contact_1").val(0),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":$(this).is(":checked")?($("#saswp-logo-dimensions").val(1),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):($("#saswp-logo-dimensions").val(0),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":$(this).is(":checked")?($("#saswp_archive_schema").val(1),$(".saswp_archive_schema_type_class").parent().parent().show()):($("#saswp_archive_schema").val(0),$(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":$(this).is(":checked")?($("#saswp_website_schema").val(1),$("#saswp_search_box_schema").parent().parent().show()):($("#saswp_website_schema").val(0),$("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":$(this).is(":checked")?$("#saswp_search_box_schema").val(1):$("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_remove_cat_checkbox":$(this).is(":checked")?$("#saswp_breadcrumb_remove_cat").val(1):$("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":$(this).is(":checked")?($("#saswp_breadcrumb_schema").val(1),$("#saswp_breadcrumb_remove_cat").parent().parent().show()):($("#saswp_breadcrumb_schema").val(0),$("#saswp_breadcrumb_remove_cat").parent().parent().hide());break;case"saswp_comments_schema_checkbox":$(this).is(":checked")?$("#saswp_comments_schema").val(1):$("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":$(this).is(":checked")?$("#saswp-review-module").val(1):$("#saswp-review-module").val(0);break;case"saswp-stars-rating-checkbox":$(this).is(":checked")?($(".saswp-stars-post-table").removeClass("saswp_hide"),$(this).parent().parent().next().removeClass("saswp_hide"),$("#saswp-stars-rating").val(1)):($(this).parent().parent().next().addClass("saswp_hide"),$(".saswp-stars-post-table").addClass("saswp_hide"),$("#saswp-stars-rating").val(0));break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-kk-star-raring").val(1):$("#saswp-kk-star-raring").val(0);break;case"saswp-rmprating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rmprating").val(1):$("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratingform").val(1):$("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpdiscuz").val(1):$("#saswp-wpdiscuz").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yet-another-stars-rating").val(1):$("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simple-author-box").val(1):$("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce").val(1):$("#saswp-woocommerce").val(0);break;case"saswp_woocommerce_archive_checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_woocommerce_archive").val(1):$("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpecommerce").val(1):$("#saswp-wpecommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_default_review").val(1):$("#saswp_default_review").val(0);break;case"saswp-single-price-product-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-single-price-product").val(1),$(".saswp-single-price-opt").parent().parent().show()):($("#saswp-single-price-product").val(0),$(".saswp-single-price-opt").parent().parent().hide());break;case"saswp-extra-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-extra").val(1):$("#saswp-extra").val(0);break;case"saswp-enfold-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-enfold").val(1):$("#saswp-enfold").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-soledad").val(1):$("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-theme-reviews").val(1):$("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-dw-question-answer").val(1):$("#saswp-dw-question-answer").val(0);break;case"saswp-wpqa-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpqa").val(1):$("#saswp-wpqa").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-job-manager").val(1):$("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yoast").val(1):$("#saswp-yoast").val(0);break;case"saswp-polylang-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-polylang").val(1):$("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-autolistings").val(1):$("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpml").val(1):$("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-metatagmanager").val(1):$("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-slimseo").val(1):$("#saswp-slimseo").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rankmath").val(1):$("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-taqyeem").val(1):$("#saswp-taqyeem").val(0);break;case"saswp-video-thumbnails-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-video-thumbnails").val(1):$("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-featured-video-plus").val(1):$("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-product-review").val(1):$("#saswp-wp-product-review").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-events-calendar").val(1):$("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-homeland").val(1):$("#saswp-homeland").val(0);break;case"saswp-ratency-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratency").val(1):$("#saswp-ratency").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresidence").val(1):$("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-myhome").val(1):$("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-5").val(1):$("#saswp-realestate-5").val(0);break;case"saswp-realestate-7-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-7").val(1):$("#saswp-realestate-7").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stamped").val(1):$("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-sabaidiscuss").val(1):$("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-geodirectory").val(1):$("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-classipress").val(1):$("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realhomes").val(1):$("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-press").val(1):$("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wplms").val(1):$("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-dash").val(1):$("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-lifter-lms").val(1):$("#saswp-lifter-lms").val(0);break;case"saswp-senseilms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-senseilms").val(1):$("#saswp-senseilms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-manager").val(1):$("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-manager").val(1):$("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-calendar-wd").val(1):$("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-organiser").val(1):$("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-modern-events-calendar").val(1):$("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking").val(1),$("#saswp-woocommerce-booking-main").val(1)):($("#saswp-woocommerce-booking").val(0),$("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking-main").val(1),$("#saswp-woocommerce-booking").val(1)):($("#saswp-woocommerce-booking-main").val(0),$("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce-membership").val(1):$("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":$(this).is(":checked")?$("#saswp-defragment").val(1):$("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cooked").val(1):$("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-shopper-approved-review").val(1),$(".saswp-s-reviews-settings-table").parent().parent().parent().show()):($("#saswp-shopper-approved-review").val(0),$(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":$(this).is(":checked")?($("#saswp-google-review").val(1),$("#saswp-google-rv-free-checkbox").length?($("#saswp-google-review-free").parent().parent().show(),$("#saswp-google-rv-free-checkbox").is(":checked")?$("#saswp_google_place_api_key").parent().parent().show():$("#saswp_google_place_api_key").parent().parent().hide()):$("#saswp_google_place_api_key").parent().parent().show(),$(".saswp-g-reviews-settings-table").parent().parent().parent().show()):($("#saswp-google-review").val(0),$("#saswp_google_place_api_key").parent().parent().hide(),$(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),$("#saswp-google-rv-free-checkbox").length&&$("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":$("#saswp-google-review-checkbox").is(":checked")&&$(this).is(":checked")?($("#saswp-google-review-free").val(1),$("#saswp_google_place_api_key").parent().parent().show()):($("#saswp-google-review-free").val(0),$("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":$(this).is(":checked")?$("#saswp-markup-footer").val(1):$("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":$(this).is(":checked")?$("#saswp-pretty-print").val(1):$("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wppostratings-raring").val(1):$("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-bbpress").val(1):$("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":$(this).is(":checked")?$("#saswp-microdata-cleanup").val(1):$("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":$(this).is(":checked")?$("#saswp-other-images").val(1):$("#saswp-other-images").val(0);break;case"saswp-full-heading-checkbox":$(this).is(":checked")?$("#saswp-full-heading").val(1):$("#saswp-full-heading").val(0);break;case"saswp-rss-feed-image-checkbox":$(this).is(":checked")?$("#saswp-rss-feed-image").val(1):$("#saswp-rss-feed-image").val(0);break;case"saswp-image-resizing-checkbox":$(this).is(":checked")?$("#saswp-image-resizing").val(1):$("#saswp-image-resizing").val(0);break;case"saswp-multiple-size-image-checkbox":$(this).is(":checked")?$("#saswp-multiple-size-image").val(1):$("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":$(this).is(":checked")?$("#saswp-easy-testimonials").val(1):$("#saswp-easy-testimonials").val(0);break;case"saswp-brb-checkbox":$(this).is(":checked")?$("#saswp-brb").val(1):$("#saswp-brb").val(0);break;case"saswp-testimonial-pro-checkbox":$(this).is(":checked")?$("#saswp-testimonial-pro").val(1):$("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":$(this).is(":checked")?$("#saswp-bne-testimonials").val(1):$("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampforwp").val(1):$("#saswp-ampforwp").val(0);break;case"saswp-wpreviewslider-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewslider").val(1):$("#saswp-wpreviewslider").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampbyautomatic").val(1):$("#saswp-ampbyautomatic").val(0);break;case"saswp-cmp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cmp").val(1):$("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewpro").val(1):$("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webstories").val(1):$("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var c=$("#saswp-resized-image-folder-checkbox");$(this).is(":checked")?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($("#saswp-resized-image-folder").val(1),$("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(c.prop("checked",!1),c.next().text(a.message),c.next().css("color","red"))},error:function(a){c.prop("checked",!1),c.next().text(a),c.next().css("color","red")}}):($("#saswp-resized-image-folder").val(0),$(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-elementor").val(1):$("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rannarecipe").val(1):$("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-jetpackrecipe").val(1):$("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-quickandeasyfaq").val(1):$("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimatefaqs").val(1):$("#saswp-ultimatefaqs").val(0);break;case"saswp-showcaseidx-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-showcaseidx").val(1):$("#saswp-showcaseidx").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-arconixfaq").val(1):$("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqconcertina").val(1):$("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobmanager").val(1):$("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simplejobboard").val(1):$("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobopenings").val(1):$("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webfaq10").val(1):$("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpfaqschemamarkup").val(1):$("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqschemaforpost").val(1):$("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-masteraccordion").val(1):$("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyfaqs").val(1):$("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordion").val(1):$("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-html5responsivefaq").val(1):$("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresponsivefaq").val(1):$("#saswp-wpresponsivefaq").val(0);break;case"saswp-ameliabooking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ameliabooking").val(1):$("#saswp-ameliabooking").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyaccordion").val(1):$("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-helpiefaq").val(1):$("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mooberrybm").val(1):$("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-novelist").val(1):$("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordionfaq").val(1):$("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-schemaforfaqs").val(1):$("#saswp-schemaforfaqs").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-customer-reviews").val(1):$("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-total-recipe-generator").val(1):$("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordpress-news").val(1):$("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampwp").val(1):$("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-aggregator").val(1):$("#saswp-wp-event-aggregator").val(0);break;case"saswp-timetable-event-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-timetable-event").val(1):$("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-xo-event-calendar").val(1):$("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-vs-event-list").val(1):$("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-calendarize-it").val(1):$("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-schedule").val(1):$("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woo-event-manager").val(1):$("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stachethemes-event-calendar").val(1):$("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-all-in-one-event-calendar").val(1):$("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-on").val(1):$("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easy-recipe").val(1):$("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-tevolution-events").val(1):$("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-strong-testimonials").val(1):$("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordlift").val(1):$("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-betteramp").val(1):$("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpamp").val(1):$("#saswp-wpamp").val(0)}}).change(),$("#saswp_kb_type").change(function(){var a=$(this).val();$(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==a&&($(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==a&&($(".saswp_org_fields").parent().parent().addClass("saswp_hide"),$(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),$(document).on("click","input[data-id=media]",function(a){a.preventDefault();var b=$(this),c=b.attr("id").replace("_button",""),d=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var a=d.state().get("selection").first().toJSON();$("#"+c).val(a.url),$("input[data-id='"+c+"_id']").val(a.id),$("input[data-id='"+c+"_height']").val(a.height),$("input[data-id='"+c+"_width']").val(a.width),$("input[data-id='"+c+"_thumbnail']").val(a.url),"sd_default_image_button"===b.attr("id")&&($("#sd_default_image_width").val(a.width),$("#sd_default_image_height").val(a.height));var e="";"saswp_image_div_"+c=="saswp_image_div_sd_default_image"&&a.height<1200&&(e='<p class="saswp_warning">Image size is smaller than recommended size</p>'),$(".saswp_image_div_"+c).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+a.url+'"/><a data-id="'+c+'" href="#" class="saswp_prev_close">X</a></div>'+e)}).open()}),$(document).on("click",".saswp_prev_close",function(b){b.preventDefault();var a=$(this).attr("data-id");$(this).parent().remove(),$("#"+a).val(""),$("input[data-id='"+a+"_id']").val(""),$("input[data-id='"+a+"_height']").val(""),$("input[data-id='"+a+"_width']").val(""),$("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&($("#sd_default_image_width").val(""),$("#sd_default_image_height").val(""))}),$(document).on("click",".saswp-modify-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.get(ajaxurl,{action:"saswp_modify_schema_post_enable",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-post-specific-wrapper[data-id="+b+"] .saswp-post-specific-setting").after(a),$(".saswp_modify_this_schema_hidden_"+b).val(1),$(".saswp-ps-toggle[schema-id="+b+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),c.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_item_reviewed_call()})}),$(document).on("click",".saswp-restore-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.post(ajaxurl,{action:"saswp_modify_schema_post_restore",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){c.removeClass("updating-message"),"t"==a.status?($(".saswp_modify_this_schema_hidden_"+b).val(0),$(".saswp-restore-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+b+"]").remove()):alert("Something went wrong")},"json")}),$(document).on("change",".saswp-schema-type-toggle",function(e){var a=$(this).attr("data-schema-id"),c=$(this).attr("data-post-id"),d=$(".saswp_modify_this_schema_hidden_"+a).val();if($(this).is(":checked")){var b=0;$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{$("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==d?($(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):($(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));var b=1}$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:b,schema_id:a,post_id:c,req_from:saswp_localize_data.req_from,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-reset-data",function(a){a.preventDefault(),!0==confirm("Are you sure?")&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){setTimeout(function(){location.reload()},1e3)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("license-status"),a=$(this).attr("add-on"),d=$("#"+a+"_addon_license_key").val();c&&a&&d?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){$("#"+a+"_addon_license_key_status").val(c.status),"active"==c.status&&c.days_remaining<0?($("span.inactive_status_reviews").text("Expired"),$("span.inactive_status_reviews").css({color:"red","font-weight":"400"})):"active"==c.status?($(".saswp-"+a+"-dashicons").addClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").css("color","green"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","inactive"),$(".saswp_license_activation[add-on='"+a+"']").text("Deactivate"),$("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),$(".saswp_license_status_msg[add-on='"+a+"']").text("Activated"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","green"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.inactive_status_"+a).text("Active"),$("span.inactive_status_"+a).css({color:"green","margin-left":"8px","font-weight":"400"}),$("span.inactive_status_"+a).removeClass("inactive_status_"+a).addClass("addon-activated_"+a)):($(".saswp-"+a+"-dashicons").addClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").css("color","red"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","active"),$(".saswp_license_activation[add-on='"+a+"']").text("Activate"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","red"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.addon-activated_"+a).text("Inactive"),$("span.addon-activated_"+a).css("color","#bebfc0"),$("span.addon-activated_"+a).removeClass("addon-activated_"+a).addClass("inactive_status_"+a),$("span.limit_span").css("display","none")),b.removeClass("updating-message")},error:function(a){console.log(a)}}):(alert("Please enter value license key"),b.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(g){var f=jQuery(this);g.preventDefault();var b=f.attr("add-on"),h=f.attr("remaining_days_org"),i=jQuery("#"+b+"_addon_license_key").val();document.getElementById("user_refresh_"+b).classList.add("spin");var c=new Date,a=function(e){for(var c=e+"=",d=document.cookie.split(";"),b=0;b<d.length;b++){for(var a=d[b];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(c))return a.substring(c.length,a.length)}return null}("saswp_addon_refresh_check");a=new Date(a);var d=-1,e=Math.abs(c.getTime()-a.getTime()),d=Math.ceil(e/864e5),e=Math.abs(new Date(h).getTime()-c.getTime());-1==d||d>1||1>Math.ceil(e/864e5)?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){jQuery("#"+b+"_addon_license_key_status").val(a.status),document.getElementById("user_refresh_"+b).classList.remove("spin"),f.removeClass("updating-message")},error:function(a){console.log(a)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),alert("Please try after "+(a=Math.abs(a.getDate()+1)+"/"+Math.abs(a.getMonth()+1)+"/"+a.getFullYear()+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds())))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var b=c.days_remaining;b>=0&&b<=7&&$("span.saswp-addon-alert").text("expiring in "+b+" days ")}else document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),$("span.pro_warning").css("display","none")}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var b=$(this),c=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var d=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?($("span#exp").text("Expired"),location.reload()):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),b.removeClass("updating-message"))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?$("span#exp").text("Expired"):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})}),$(".saswp-send-query").on("click",function(d){d.preventDefault();var b=$("#saswp_query_message").val(),a=$("#saswp_query_email").val(),c=$("#saswp_query_premium_cus").val();""!=$.trim(b)&&c&&""!=$.trim(a)&& !0==saswpIsEmail(a)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:c,message:b,email:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($(".saswp-query-success").show(),$(".saswp-query-error").hide()):($(".saswp-query-success").hide(),$(".saswp-query-error").show())},error:function(a){console.log(a)}}):""==$.trim(b)&&""==c&&""==$.trim(a)?alert("Please enter the message, email and select customer type"):(""==c&&alert("Select Customer type"),""==$.trim(b)&&alert("Please enter the message"),""==$.trim(a)&&alert("Please enter the email"),!1==saswpIsEmail(a)&&alert("Please enter a valid email"))}),$(".saswp-import-plugins").on("click",function(a){a.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("data-id");$.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status?($(b).parent().find(".saswp-imported-message").text(a.message),$(b).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):($(b).parent().find(".saswp-imported-message").addClass("saswp-error"),$(b).parent().find(".saswp-imported-message").text(a.message)),b.removeClass("updating-message")},"json")}),$(".saswp-feedback-no-thanks").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(".saswp-feedback-remindme").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(document).on("change",".saswp-local-business-type-select",function(a){a.preventDefault();var c=$(this),b=$(this).val();$.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(d){if("t"==d.status){$(".saswp-local-business-name-select").parents("tr").remove();var b=c.parents(".saswp-post-specific-wrapper").attr("data-id"),a='<tr><th><label for="saswp_business_name_'+b+'">Sub Business Type</label></th>';a+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+b+'" name="saswp_business_name_'+b+'">',$.each(d.result,function(b,c){a+='<option value="'+b+'">'+c+"</option>"}),a+="</select></td>",a+="</tr>",c.parents(".form-table tr:first").after(a)}else $(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),$(document).on("click",".saswp-add-custom-schema",function(a){a.preventDefault(),$(".saswp-add-custom-schema-field").removeClass("saswp_hide"),$(this).hide()}),$(document).on("click",".saswp-delete-custom-schema",function(a){a.preventDefault(),$("#saswp_custom_schema_field").val(""),$(".saswp-add-custom-schema-field").addClass("saswp_hide"),$(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),$(document).on("click",".saswp-add-more-item",function(b){b.preventDefault();var a='<tr class="saswp-review-item-tr">';a+="<td>Review Item Feature</td>",a+='<td><input type="text" name="saswp-review-item-feature[]"></td>',a+="<td>Rating</td>",a+='<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>',a+='<td><a type="button" class="saswp-remove-review-item button">x</a></td>',a+="</tr>",$(".saswp-review-item-list-table").append(a)}),$(document).on("click",".saswp-remove-review-item",function(a){a.preventDefault(),$(this).parent().parent("tr").remove()}),$(document).on("focusout",".saswp-review-item-tr input[type=number]",function(a){a.preventDefault();var b=0,c=$(".saswp-review-item-tr input[type=number]").length;$(".saswp-review-item-tr input[type=number]").each(function(c,a){""==$(a).val()?b+=parseFloat(0):b+=parseFloat($(a).val())}),$("#saswp-review-item-over-all").val(b/c)}),$("#saswp-review-location").change(function(){var a=$(this).val();$(".saswp-review-shortcode").addClass("saswp_hide"),3==a&&$(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),$("#saswp-review-item-enable").change(function(){$(this).is(":checked")?$(".saswp-review-fields").show():$(".saswp-review-fields").hide()}).change(),$(document).on("click",".saswp-restore-post-schema",function(a){a.preventDefault();var b=$(this);if(b.addClass("updating-message"),$(".saswp-post-specific-schema-ids").val())var c=JSON.parse($(".saswp-post-specific-schema-ids").val());$.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:c,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status||alert(a.msg),setTimeout(function(){location.reload()},1e3),b.removeClass("updating-message")},"json")}),$(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(a){a.preventDefault();var b=$(this).attr("data-id");$(".saswp-post-specific-wrapper").hide(),$("#"+b).show(),$("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),$("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),$(this).addClass("selected"),$(this).parent().addClass("selected"),saswp_enable_rating_review(),saswp_enable_rating_automate()}),$("#saswp-global-tabs a:first").addClass("saswp-global-selected"),$(".saswp-global-container").hide();var h=window.location.hash;if("#saswp-default-container"==h?$(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==h?$(".saswp-global-container:eq(1)").show():$(".saswp-global-container:first").show(),$("#saswp-global-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-global-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-global-container").hide(),$("#"+a).show())}),$("#saswp-review-tabs a:first").addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$(".saswp-review-container:first").show(),$("#saswp-review-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-review-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$("#"+a).show())}),$("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$(".saswp-compatibility-container:first").show(),$("#saswp-compatibility-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$("#"+a).show())}),$('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),$(".saswp-enable-modify-schema-output").on("change",function(){$(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==$(this).val()&&($(".saswp-static-container").removeClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==$(this).val()&&($(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").removeClass("saswp_hide"))}),$(document).on("change",".saswp-custom-fields-name",function(){var b="text",c=$(this).parent().parent("tr"),a=$(this).val();(-1!=a.indexOf("_image")|| -1!=a.indexOf("_logo"))&&(b="image");var d=$(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,b,null,d,a,c)}),$(document).on("click",".saswp-skip-button",function(a){a.preventDefault(),$(this).parent().parent().hide(),$.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){},"json")}),$(document).on("click",".saswp_add_schema_fields_on_fly",function(f){f.preventDefault();var d=$(this);d.addClass("updating-message");var b=$(this).attr("data-id"),e=$(this).attr("fields_type"),c=$(this).attr("div_type"),g=$(this).attr("itemlist_sub_type"),h=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div").length,a=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div:nth-child("+h+")").attr("data-id");(a=++a)||(a=0),saswp_get_post_specific_schema_fields(d,a,e,c,b,e+"_",g)}),$(document).on("click",".saswp-table-close",function(){$(this).parent().remove()}),$(document).on("click",".saswp-rmv-modify_row",function(a){a.preventDefault(),$(this).parent().parent().remove()}),$(document).on("change",".saswp-custom-meta-list",function(){var f=$(this),g=$("select#schema_type option:selected").val(),d=$(this).val(),c=$(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),a="",b=g.toLowerCase()+"_"+c,e="saswp_fixed_image["+c+"]";"manual_text"==d?(a+='<td><textarea cols="35" rows="2" name="saswp_fixed_text['+c+']"></textarea></td>',a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"taxonomy_term"==d?saswp_taxonomy_term.taxonomy?(a+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2()):$.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){b&&(saswp_taxonomy_term.taxonomy=b,a+=saswp_taxonomy_term_html(b,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2())},"json"):"custom_field"==d?(a+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+c+']">',a+="</select></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"fixed_image"==d?(a+="<td>",a+="<fieldset>",a+='<input data-id="media" style="width: 30%;" class="button" id="'+b+'_button" name="'+b+'_button" type="button" value="Upload" />',a+='<input type="hidden" data-id="'+b+'_height" class="upload-height" name="'+e+'[height]" id="'+b+'_height" value="">',a+='<input type="hidden" data-id="'+b+'_width" class="upload-width" name="'+e+'[width]" id="'+b+'_width" value="">',a+='<input type="hidden" data-id="'+b+'_thumbnail" class="upload-thumbnail" name="'+e+'[thumbnail]" id="'+b+'_thumbnail" value="">',a+='<div class="saswp_image_div_'+b+'">',a+="</div>",a+="</fieldset>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):(a+="<td></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2())}),$(document).on("change",".saswp-item-reivewed-list",function(){$(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var a=$(this),b=$("select#schema_type option:selected").val();saswp_item_reviewed_ajax(b,a,"manual")}),$(document).on("click",".saswp-add-custom-fields",function(){var b=$(this);b.addClass("updating-message");var a=$("select#schema_type option:selected").val(),c="",d=null;"Review"==a&&(c=$("select.saswp-item-reivewed-list option:selected").val(),d="saswp_review_name");var e=$("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null):$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:e,schema_type:a,schema_subtype:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){saswp_meta_list_fields[a]=c,saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null)},error:function(a){console.log(a)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),$('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),$(document).on("click",".saswp_coonect_google_place",function(){var a=$("#saswp_google_place_id").val(),b=$("#saswp_language_list").val(),c=$("#saswp_googel_api").val();""!=a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:a,language:b,google_api:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){console.log(a.status)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-add-social-links",function(){$(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),$(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),$(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var b='<div class="saswp-custom-post-tab">';b+='<div style="display:none;" id="saswp-accept-reviews-popup">',b+='<div class="saswp-accept-rv-container">',b+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",b+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',b+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',b+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',b+="</div>",b+="</div>",b+='<h2 class="nav-tab-wrapper">',b+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',b+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',b+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',b+="</h2>",b+="</div>",jQuery(jQuery(".wrap")).prepend(b)}jQuery(document).on("click",".saswp-clear-images",function(a){a.preventDefault();var b=$(this);!0==confirm("Are you sure? It will remove all the resized images")&&(b.addClass("updating-message"),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){b.removeClass("updating-message"),"t"!=a.status&&alert("something went wrong")},error:function(a){console.log(a)}}))}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&$(".saswp-rating-div").rateYo({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(a,b){$(this).next().next().val(a)}}).on("rateyo.change",function(c,a){var b=a.rating;$(this).next().text(b)}),$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var a=$(this);a.parent().find(".saswp-phone-validation").remove();var b=$(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(b)?a.parent().find(".saswp-phone-validation").remove():a.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),$(document).on("click",".saswp-add-rv-btn",function(){$(".saswp-dynamic-platforms").toggle()}),$(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var a="";a+='<div class="saswp-add-dynamic-section">',a+='<div class="saswp-add-dynamic-btn">',a+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',a+="</div>",a+='<div class="saswp-dynamic-platforms" style="display:none;">',a+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",a+="</div>",a+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(a)}}),$(document).on("change","#saswp_dynamic_platforms",function(){var b=$(this).val(),a="";a+='<select id="saswp_dynamic_reviews_list">',a+="</select>",a+='<a class="button button-default saswp-add-single-rv">Add</a>',$("#saswp_dynamic_platforms").nextAll().remove(),$("#saswp_dynamic_platforms").after(a);var c=ajaxurl+"?action=saswp_add_reviews_to_select2&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&platform_id="+b;$("#saswp_dynamic_reviews_list").select2({ajax:{url:c,dataType:"json",processResults:function(a){if(a.status)return{results:a.message}}}})}),$(document).on("click",".saswp-add-single-rv",function(b){b.preventDefault();var a=$("#saswp_dynamic_reviews_list").val(),c=$("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,c,null,a,!0)}),$(document).on("click",".saswp-remove-coll-rv",function(){var c=$(this).attr("data-id"),a=$(this).attr("platform-id");if(a){var b=saswp_collection[a].filter(function(a){return a.saswp_review_id!=c});saswp_collection[a]=b,saswp_on_collection_design_change()}}),$(document).on("click",".saswp-grid-page",function(a){a.preventDefault(),saswp_grid_page=$(this).attr("data-id"),saswp_on_collection_design_change()}),$("#saswp-coll-pagination").change(function(){saswp_grid_page=1,$("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),$(this).is(":checked")&&$("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),$(".saswp-accordion").click(function(){$(this).toggleClass("active"),$(this).next(".saswp-accordion-panel").slideToggle(200)}),$(document).on("click",".saswp-opn-cls-btn",function(){$("#saswp-reviews-cntn").toggle(),$("#saswp-reviews-cntn").is(":visible")?($(".saswp-onclick-show").css("display","flex"),$(".saswp-onclick-hide").hide(),$(".saswp-open-class").css("width","500px")):($(".saswp-onclick-show").css("display","none"),$(".saswp-onclick-hide").show(),$(".saswp-open-class").css("width","300px"))}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?$(".saswp-collection-shortcode").removeClass("saswp_hide"):$(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),$(document).on("click",".saswp-remove-platform",function(a){a.preventDefault();var b=$(this).attr("platform-id");saswp_collection.splice(b,1),$(this).parent().remove(),saswp_on_collection_design_change()}),$(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),$(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var a=$(".saswp-collection-desing").val(),b=$(".saswp-collection-sorting").val();$(".saswp-coll-options").addClass("saswp_hide"),$(".saswp-collection-lp").css("height","auto"),$(".saswp-rmv-coll-rv").hide(),$(".saswp-add-dynamic-section").hide(),"grid"==a&&($(".saswp-grid-options").removeClass("saswp_hide"),$(".saswp-rmv-coll-rv").show(),$(".saswp-add-dynamic-section").show()),"gallery"==a&&$(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==a&&($(".saswp-fomo-options").removeClass("saswp_hide"),$(".saswp-collection-lp").css("height","31px")),"popup"==a&&$(".saswp-collection-lp").css("height","31px"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide"),"recent"==b?($("#saswp_collection_specific_rating").parent().parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")):($("#saswp_collection_specific_rating").parent().parent().addClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")),saswp_on_collection_design_change()}).change(),$(".saswp-add-to-collection").on("click",function(d){d.preventDefault();var a=$(this),b=$("#saswp-plaftorm-list").val(),c=$("#saswp-review-count").val();b&&c>0?(a.addClass("updating-message"),saswp_get_collection_data(c,b,a,null)):alert("Enter Count")});var i=$("#saswp_total_reviews_list").val();i&&saswp_get_collection_data(null,null,null,null,i),(f=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",f.innerHTML="Copied!",document.body.appendChild(f);var j=document.getElementById("saswp-motivatebox");j&&j.addEventListener("mouseup",function(a){var c,d,e,h,b,a=a||event,g=a.target||a.srcElement;"motivate"==g.className&&(c=g,(d=document.createRange()).selectNodeContents(c),(e=window.getSelection()).removeAllRanges(),e.addRange(d),function(){var a;try{a=document.execCommand("copy")}catch(b){a=!1}return a}()&&(b=a||event,clearTimeout(k),f.style.left=b.pageX-10+"px",f.style.top=b.pageY+15+"px",f.style.opacity=1,k=setTimeout(function(){f.style.opacity=0},500)))},!1)})
admin_section/settings.php CHANGED
@@ -2779,6 +2779,18 @@ function saswp_compatibility_page_callback(){
2779
  'name' => 'sd_data[saswp-ultimatefaqs]',
2780
  )
2781
  );
 
 
 
 
 
 
 
 
 
 
 
 
2782
 
2783
  $arconixfaq = array(
2784
  'label' => 'Arconix FAQ',
@@ -4082,6 +4094,7 @@ function saswp_compatibility_page_callback(){
4082
  $realestate_5['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4083
  $realestate_7['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4084
  $geo_directory['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
 
4085
 
4086
  }
4087
 
@@ -4295,6 +4308,7 @@ function saswp_compatibility_page_callback(){
4295
  $wpjobopenings,
4296
  $accordionfaq,
4297
  $ultimatefaqs,
 
4298
  $arconixfaq,
4299
  $faqconcertina,
4300
  $faqschemaforpost,
2779
  'name' => 'sd_data[saswp-ultimatefaqs]',
2780
  )
2781
  );
2782
+ $showcaseidx = array(
2783
+ 'label' => 'Showcase IDX',
2784
+ 'id' => 'saswp-showcaseidx-checkbox',
2785
+ 'name' => 'saswp-showcaseidx-checkbox',
2786
+ 'type' => 'checkbox',
2787
+ 'class' => 'checkbox saswp-checkbox',
2788
+ 'note' => saswp_get_field_note('showcaseidx'),
2789
+ 'hidden' => array(
2790
+ 'id' => 'saswp-showcaseidx',
2791
+ 'name' => 'sd_data[saswp-showcaseidx]',
2792
+ )
2793
+ );
2794
 
2795
  $arconixfaq = array(
2796
  'label' => 'Arconix FAQ',
4094
  $realestate_5['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4095
  $realestate_7['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4096
  $geo_directory['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4097
+ $showcaseidx['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
4098
 
4099
  }
4100
 
4308
  $wpjobopenings,
4309
  $accordionfaq,
4310
  $ultimatefaqs,
4311
+ $showcaseidx,
4312
  $arconixfaq,
4313
  $faqconcertina,
4314
  $faqschemaforpost,
core/array-list/compatibility-list.php CHANGED
@@ -117,9 +117,16 @@ return array(
117
  'ultimatefaqs' => array(
118
  'name' => 'Ultimate FAQs – WordPress Knowledgebase Plugin',
119
  'free' => 'ultimate-faqs/Main.php',
 
120
  'opt_name' => 'saswp-ultimatefaqs',
121
  'part_in' => 'pro',
122
  ),
 
 
 
 
 
 
123
  'easyaccordion' => array(
124
  'name' => 'Easy Accordion',
125
  'free' => 'easy-accordion-free/plugin-main.php',
117
  'ultimatefaqs' => array(
118
  'name' => 'Ultimate FAQs – WordPress Knowledgebase Plugin',
119
  'free' => 'ultimate-faqs/Main.php',
120
+ 'pro' => 'ultimate-faqs/ultimate-faqs.php',
121
  'opt_name' => 'saswp-ultimatefaqs',
122
  'part_in' => 'pro',
123
  ),
124
+ 'showcaseidx' => array(
125
+ 'name' => 'Showcase IDX Real Estate Search',
126
+ 'free' => 'showcase-idx/showcaseidx.php',
127
+ 'opt_name' => 'saswp-showcaseidx',
128
+ 'part_in' => 'pro',
129
+ ),
130
  'easyaccordion' => array(
131
  'name' => 'Easy Accordion',
132
  'free' => 'easy-accordion-free/plugin-main.php',
modules/gutenberg/assets/blocks/faq.js CHANGED
@@ -38,7 +38,11 @@
38
  toggleList: {
39
  type: 'boolean',
40
  default: false
41
- },
 
 
 
 
42
  items: {
43
  default: [{index: 0, title: "", description: "", imageUrl: "", imageId: null}],
44
  selector: '.saswp-faq-block-data',
@@ -339,12 +343,13 @@
339
  });
340
  }
341
  },
 
342
  el('span',{
343
  className:'saswp-faq-step-number'
344
  },
345
  attributes.toggleList ? '•':
346
  ( parseInt(item.index) + 1) + "."
347
- ),
348
  el( RichText, {
349
  tagName: attributes.headingTag,
350
  className:'saswp-faq-step-title',
@@ -425,6 +430,20 @@
425
  title:'Settings'
426
  },
427
  el(ToggleControl,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
  {
429
  className:'saswp-faq-toggle-list',
430
  checked:attributes.toggleList,
@@ -435,7 +454,7 @@
435
  return (value == true ? 'Showing step item as an unordered list': 'Showing step item as an ordered list');
436
  }
437
  },
438
- ),
439
  el(SelectControl,{
440
  value : attributes.headingTag,
441
  label: __('Heading Tag', 'schema-and-structured-data-for-wp'),
@@ -446,6 +465,8 @@
446
  { label: 'H4', value: 'h4' },
447
  { label: 'H5', value: 'h5' },
448
  { label: 'H6', value: 'h6' },
 
 
449
  ] ,
450
  onChange: function(value){
451
  props.setAttributes( { headingTag: value } );
38
  toggleList: {
39
  type: 'boolean',
40
  default: false
41
+ },
42
+ orderType:{
43
+ type:'boolean',
44
+ default: true
45
+ },
46
  items: {
47
  default: [{index: 0, title: "", description: "", imageUrl: "", imageId: null}],
48
  selector: '.saswp-faq-block-data',
343
  });
344
  }
345
  },
346
+ attributes.orderType?
347
  el('span',{
348
  className:'saswp-faq-step-number'
349
  },
350
  attributes.toggleList ? '•':
351
  ( parseInt(item.index) + 1) + "."
352
+ ):'',
353
  el( RichText, {
354
  tagName: attributes.headingTag,
355
  className:'saswp-faq-step-title',
430
  title:'Settings'
431
  },
432
  el(ToggleControl,
433
+ {
434
+ className:'saswp-faq-toggle-list-type',
435
+ checked:attributes.orderType,
436
+ onChange: function(newContent){
437
+ props.setAttributes( { orderType: newContent } );
438
+ },
439
+ help: function(value){
440
+ return (value == true ? 'select list type below': 'none')
441
+ },
442
+
443
+ },
444
+ ),
445
+ attributes.orderType ?
446
+ el(ToggleControl,
447
  {
448
  className:'saswp-faq-toggle-list',
449
  checked:attributes.toggleList,
454
  return (value == true ? 'Showing step item as an unordered list': 'Showing step item as an ordered list');
455
  }
456
  },
457
+ ):'',
458
  el(SelectControl,{
459
  value : attributes.headingTag,
460
  label: __('Heading Tag', 'schema-and-structured-data-for-wp'),
465
  { label: 'H4', value: 'h4' },
466
  { label: 'H5', value: 'h5' },
467
  { label: 'H6', value: 'h6' },
468
+ { label: 'div',value: 'div'},
469
+ { label: 'p', value: 'p' },
470
  ] ,
471
  onChange: function(value){
472
  props.setAttributes( { headingTag: value } );
modules/gutenberg/assets/blocks/howto.js CHANGED
@@ -35,6 +35,10 @@
35
  type: 'boolean',
36
  default: false
37
  },
 
 
 
 
38
  description: {
39
  type: 'string',
40
  selector: '.saswp-how-to-main-description'
@@ -691,12 +695,13 @@
691
  });
692
  }
693
  },
 
694
  el('span',{
695
  className:'saswp-how-to-step-number'
696
  },
697
  attributes.toggleList ? '•':
698
  ( parseInt(item.index) + 1) + "."
699
- ),
700
  el( RichText, {
701
  tagName: 'p',
702
  className:'saswp-how-to-step-title',
@@ -934,6 +939,20 @@
934
  title:__('Settings', 'schema-and-structured-data-for-wp')
935
  },
936
  el(ToggleControl,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
937
  {
938
  className:'saswp-how-to-toggle-list',
939
  checked:attributes.toggleList,
@@ -944,7 +963,7 @@
944
  return (value == true ? __('Showing step item as an unordered list', 'schema-and-structured-data-for-wp'): __('Showing step item as an ordered list', 'schema-and-structured-data-for-wp'));
945
  }
946
  },
947
- )
948
  )
949
  ),
950
  el(
35
  type: 'boolean',
36
  default: false
37
  },
38
+ orderType:{
39
+ type: 'boolean',
40
+ default: true
41
+ },
42
  description: {
43
  type: 'string',
44
  selector: '.saswp-how-to-main-description'
695
  });
696
  }
697
  },
698
+ attributes.orderType ?
699
  el('span',{
700
  className:'saswp-how-to-step-number'
701
  },
702
  attributes.toggleList ? '•':
703
  ( parseInt(item.index) + 1) + "."
704
+ ):'',
705
  el( RichText, {
706
  tagName: 'p',
707
  className:'saswp-how-to-step-title',
939
  title:__('Settings', 'schema-and-structured-data-for-wp')
940
  },
941
  el(ToggleControl,
942
+ {
943
+ className:'saswp-faq-toggle-list-type',
944
+ checked:attributes.orderType,
945
+ onChange: function(newContent){
946
+ props.setAttributes( { orderType: newContent } );
947
+ },
948
+ help: function(value){
949
+ return (value == true ? 'select list type below': 'none')
950
+ },
951
+
952
+ },
953
+ ),
954
+ attributes.orderType ?
955
+ el(ToggleControl,
956
  {
957
  className:'saswp-how-to-toggle-list',
958
  checked:attributes.toggleList,
963
  return (value == true ? __('Showing step item as an unordered list', 'schema-and-structured-data-for-wp'): __('Showing step item as an ordered list', 'schema-and-structured-data-for-wp'));
964
  }
965
  },
966
+ ):'',
967
  )
968
  ),
969
  el(
modules/gutenberg/includes/class-gutenberg.php CHANGED
@@ -516,7 +516,9 @@ class SASWP_Gutenberg {
516
  $className = 'class="'.esc_attr($attributes['className']).'"';
517
  }
518
 
519
- if(!isset($attributes['toggleList'])){
 
 
520
  echo '<ol '.$className.'>';
521
  }else{
522
  echo '<ul '.$className.'>';
@@ -552,7 +554,14 @@ class SASWP_Gutenberg {
552
  break;
553
  case 'h6':
554
  echo '<h6>'. html_entity_decode(esc_attr($item['title'])).'</h6>';
555
- break;
 
 
 
 
 
 
 
556
 
557
  default:
558
  echo '<h3>'. html_entity_decode(esc_attr($item['title'])).'</h3>';
@@ -655,11 +664,15 @@ class SASWP_Gutenberg {
655
  $className = 'class="'.esc_attr($attributes['className']).'"';
656
  }
657
 
658
- if(!isset($attributes['toggleList'])){
659
- echo '<ol '.$className.'>';
660
- }else{
661
- echo '<ul '.$className.'>';
662
- }
 
 
 
 
663
 
664
  foreach($attributes['items'] as $item){
665
 
516
  $className = 'class="'.esc_attr($attributes['className']).'"';
517
  }
518
 
519
+ if(isset($attributes['orderType'])){
520
+ echo'<ol '.$className.' style="list-style-type:none; margin-left:-41px;">';
521
+ }elseif(!isset($attributes['toggleList'])){
522
  echo '<ol '.$className.'>';
523
  }else{
524
  echo '<ul '.$className.'>';
554
  break;
555
  case 'h6':
556
  echo '<h6>'. html_entity_decode(esc_attr($item['title'])).'</h6>';
557
+ break;
558
+ case 'div':
559
+ echo '<div>'.html_entity_decode(esc_attr($item['title'])).'</div>';
560
+ break;
561
+ case 'p':
562
+ echo '<p>'.html_entity_decode(esc_attr($item['title'])).'</p>';
563
+ break;
564
+
565
 
566
  default:
567
  echo '<h3>'. html_entity_decode(esc_attr($item['title'])).'</h3>';
664
  $className = 'class="'.esc_attr($attributes['className']).'"';
665
  }
666
 
667
+ if(isset($attributes['orderType'])){
668
+ echo'<ol '.$className.' style="list-style-type:none; margin-left:-41px;">';
669
+ } else{
670
+ if(!isset($attributes['toggleList'])){
671
+ echo '<ol '.$className.' style="margin-left:-21px">';
672
+ }else{
673
+ echo '<ul '.$className.' style="margin-left:-21px">';
674
+ }
675
+ }
676
 
677
  foreach($attributes['items'] as $item){
678
 
output/compatibility.php CHANGED
@@ -608,6 +608,9 @@ class saswp_output_compatibility{
608
  public function ultimatefaqs_on_activation(){
609
  $this->saswp_update_option_on_compatibility_activation('saswp-ultimatefaqs');
610
  }
 
 
 
611
  public function easyaccordion_on_activation(){
612
  $this->saswp_update_option_on_compatibility_activation('saswp-easyaccordion');
613
  }
608
  public function ultimatefaqs_on_activation(){
609
  $this->saswp_update_option_on_compatibility_activation('saswp-ultimatefaqs');
610
  }
611
+ public function showcaseidx_on_activation(){
612
+ $this->saswp_update_option_on_compatibility_activation('saswp-showcaseidx');
613
+ }
614
  public function easyaccordion_on_activation(){
615
  $this->saswp_update_option_on_compatibility_activation('saswp-easyaccordion');
616
  }
readme.txt CHANGED
@@ -3,7 +3,8 @@ Contributors: magazine3
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
- Stable tag: 1.9.99
 
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -120,6 +121,14 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
 
 
 
123
  = 1.9.99 (15 July 2022) =
124
 
125
  * Fixed: Need to add the atttribute to the [saswp-breadcrumbs] to remove the post/page title from the displayed breadcrumbs in frontend #1697
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
+ Requires PHP: 5.6.20
7
+ Stable tag: 1.9.100
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.9.100 (06 August 2022) =
125
+ * Added: Compatibility with Ultimate FAQ Pro
126
+ * Added: Compatibility with Showcase idx plugin
127
+ * Fixed: Unable to fetch all authors name in person schema. #1710
128
+ * Fixed: "FAQ" and "HOW TO" blocks need improvement #1701
129
+ * Fixed: Need to update for PHP version 8 #1718
130
+
131
+
132
  = 1.9.99 (15 July 2022) =
133
 
134
  * Fixed: Need to add the atttribute to the [saswp-breadcrumbs] to remove the post/page title from the displayed breadcrumbs in frontend #1697
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
- Version: 1.9.99
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
@@ -13,7 +13,7 @@ License: GPL2
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- define('SASWP_VERSION', '1.9.99');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
+ Version: 1.9.100
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
+ define('SASWP_VERSION', '1.9.100');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));