Version Description
(30 Apr 2020) =
- Added: CreativeWorkSeries schema #948
- Added: More properties to Person schema #956
- Added: More properties to Organization schema #956
- Added: More properties to Course schema #957
- Fixed: The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering. #839
- Fixed: HowTo Gutenberg block, Image URLs go into the text of the itemListElement #958
- Fixed: HTML comments are rendering in the contentUrl and embedUrl of video object schema #946
- Fixed: Gutenberg comments are not being stripped from article content #949
- Fixed: PHP Notices #965
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.35 |
Comparing to | |
See all releases |
Code changes from version 1.9.34 to 1.9.35
- admin_section/common-function.php +40 -25
- admin_section/js/main-script.js +9 -3
- admin_section/js/main-script.min.js +1 -1
- core/array-list/schema-properties.php +364 -77
- core/array-list/schemas.php +3 -1
- core/global.php +4 -2
- output/function.php +6 -1
- output/gutenberg.php +4 -4
- output/markup.php +157 -10
- output/output.php +68 -0
- output/service.php +145 -13
- readme.txt +14 -1
- structured-data-for-wp.php +2 -2
admin_section/common-function.php
CHANGED
@@ -1879,8 +1879,13 @@ if ( ! defined('ABSPATH') ) exit;
|
|
1879 |
|
1880 |
$img_id = attachment_url_to_postid($url);
|
1881 |
$imageDetail = wp_get_attachment_image_src( $img_id , 'full');
|
1882 |
-
|
1883 |
-
$
|
|
|
|
|
|
|
|
|
|
|
1884 |
|
1885 |
}
|
1886 |
|
@@ -3028,29 +3033,30 @@ function saswp_is_date_field($date_str){
|
|
3028 |
|
3029 |
$response = false;
|
3030 |
|
3031 |
-
|
3032 |
-
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
3036 |
-
|
3037 |
-
|
3038 |
-
|
3039 |
-
|
3040 |
-
|
3041 |
-
|
3042 |
-
|
3043 |
-
|
3044 |
-
|
3045 |
-
|
3046 |
-
|
3047 |
-
|
3048 |
-
|
3049 |
-
|
3050 |
-
|
3051 |
-
|
3052 |
-
|
3053 |
-
|
|
|
3054 |
|
3055 |
return $response;
|
3056 |
|
@@ -3114,4 +3120,13 @@ function saswp_get_video_links(){
|
|
3114 |
|
3115 |
}
|
3116 |
return $response;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3117 |
}
|
1879 |
|
1880 |
$img_id = attachment_url_to_postid($url);
|
1881 |
$imageDetail = wp_get_attachment_image_src( $img_id , 'full');
|
1882 |
+
|
1883 |
+
if($imageDetail && is_array($imageDetail)){
|
1884 |
+
|
1885 |
+
$image_data[0] = $imageDetail[1]; // width
|
1886 |
+
$image_data[1] = $imageDetail[2]; // height
|
1887 |
+
|
1888 |
+
}
|
1889 |
|
1890 |
}
|
1891 |
|
3033 |
|
3034 |
$response = false;
|
3035 |
|
3036 |
+
if (strpos($date_str, 'date_modified') !== false
|
3037 |
+
|| strpos($date_str, 'date_published') !== false
|
3038 |
+
|| strpos($date_str, 'last_reviewed') !== false
|
3039 |
+
|| strpos($date_str, 'date_posted') !== false
|
3040 |
+
|| strpos($date_str, 'date_expires') !== false
|
3041 |
+
|| strpos($date_str, 'published_date') !== false
|
3042 |
+
|| strpos($date_str, 'upload_date') !== false
|
3043 |
+
|| strpos($date_str, 'qa_date_created') !== false
|
3044 |
+
|| strpos($date_str, 'accepted_answer_date_created') !== false
|
3045 |
+
|| strpos($date_str, 'suggested_answer_date_created') !== false
|
3046 |
+
|| strpos($date_str, 'priceValidUntil') !== false
|
3047 |
+
|| strpos($date_str, 'priceValidUntil') !== false
|
3048 |
+
|| strpos($date_str, 'priceValidUntil') !== false
|
3049 |
+
|| strpos($date_str, 'start_date') !== false
|
3050 |
+
|| strpos($date_str, 'end_date') !== false
|
3051 |
+
|| strpos($date_str, 'validfrom') !== false
|
3052 |
+
|| strpos($date_str, 'dateposted') !== false
|
3053 |
+
|| strpos($date_str, 'validthrough') !== false
|
3054 |
+
|| strpos($date_str, 'date_of_birth') !== false
|
3055 |
+
|| strpos($date_str, 'date_created') !== false
|
3056 |
+
|| strpos($date_str, 'created_date') !== false
|
3057 |
+
) {
|
3058 |
+
$response = true;
|
3059 |
+
}
|
3060 |
|
3061 |
return $response;
|
3062 |
|
3120 |
|
3121 |
}
|
3122 |
return $response;
|
3123 |
+
}
|
3124 |
+
function saswp_remove_all_images($content){
|
3125 |
+
|
3126 |
+
if($content){
|
3127 |
+
$content = preg_replace('/<img[^>]+./','', $content);
|
3128 |
+
}
|
3129 |
+
|
3130 |
+
return $content;
|
3131 |
+
|
3132 |
}
|
admin_section/js/main-script.js
CHANGED
@@ -414,6 +414,10 @@ return false;
|
|
414 |
|
415 |
if(schematype == 'Book'
|
416 |
|| schematype == 'Course'
|
|
|
|
|
|
|
|
|
417 |
|| schematype == 'HowTo'
|
418 |
|| schematype == 'MusicPlaylist'
|
419 |
|| schematype == 'MusicAlbum'
|
@@ -423,7 +427,6 @@ return false;
|
|
423 |
|| schematype == 'Event'
|
424 |
|| schematype == 'VideoGame'
|
425 |
|| schematype == 'Service'
|
426 |
-
|
427 |
|| schematype == 'AudioObject'
|
428 |
|| schematype == 'VideoObject'
|
429 |
|| schematype == 'local_business'
|
@@ -518,6 +521,10 @@ return false;
|
|
518 |
|
519 |
if(schematype == 'Book'
|
520 |
|| schematype == 'Course'
|
|
|
|
|
|
|
|
|
521 |
|| schematype == 'HowTo'
|
522 |
|| schematype == 'MusicPlaylist'
|
523 |
|| schematype == 'MusicAlbum'
|
@@ -526,8 +533,7 @@ return false;
|
|
526 |
|| schematype == 'SoftwareApplication'
|
527 |
|| schematype == 'Event'
|
528 |
|| schematype == 'VideoGame'
|
529 |
-
|| schematype == 'Service'
|
530 |
-
|
531 |
|| schematype == 'AudioObject'
|
532 |
|| schematype == 'VideoObject'
|
533 |
|| schematype == 'local_business'
|
414 |
|
415 |
if(schematype == 'Book'
|
416 |
|| schematype == 'Course'
|
417 |
+
|| schematype == 'Organization'
|
418 |
+
|| schematype == 'CreativeWorkSeries'
|
419 |
+
|| schematype == 'MobileApplication'
|
420 |
+
|| schematype == 'ImageObject'
|
421 |
|| schematype == 'HowTo'
|
422 |
|| schematype == 'MusicPlaylist'
|
423 |
|| schematype == 'MusicAlbum'
|
427 |
|| schematype == 'Event'
|
428 |
|| schematype == 'VideoGame'
|
429 |
|| schematype == 'Service'
|
|
|
430 |
|| schematype == 'AudioObject'
|
431 |
|| schematype == 'VideoObject'
|
432 |
|| schematype == 'local_business'
|
521 |
|
522 |
if(schematype == 'Book'
|
523 |
|| schematype == 'Course'
|
524 |
+
|| schematype == 'Organization'
|
525 |
+
|| schematype == 'CreativeWorkSeries'
|
526 |
+
|| schematype == 'MobileApplication'
|
527 |
+
|| schematype == 'ImageObject'
|
528 |
|| schematype == 'HowTo'
|
529 |
|| schematype == 'MusicPlaylist'
|
530 |
|| schematype == 'MusicAlbum'
|
533 |
|| schematype == 'SoftwareApplication'
|
534 |
|| schematype == 'Event'
|
535 |
|| schematype == 'VideoGame'
|
536 |
+
|| schematype == 'Service'
|
|
|
537 |
|| schematype == 'AudioObject'
|
538 |
|| schematype == 'VideoObject'
|
539 |
|| schematype == 'local_business'
|
admin_section/js/main-script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var saswp_attached_rv=[],saswp_attached_col=[];jQuery(document).ready(function(s){if(s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show("Attach reviews to this schema type","#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("data-id"));var a=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==a&&saswp_attached_rv.push(e),"collection"==a&&saswp_attached_col.push(e)):("review"==a&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),"collection"==a&&saswp_attached_col.splice(saswp_attached_col.indexOf(e),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,p="";t>0&&(p+=t+" Reviews, "),i>0&&(p+=i+" Collection"),p||(p=0),s(".saswp-attached-rv-count").text("Attached "+p),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+a+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#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">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>Place Id</strong></td><td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>Reviews</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">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>')&&s(".saswp-g-reviews-settings-table").append(t)}),s(document).on("click",".saswp-fetch-g-reviews",function(){var e=s(this),a="free";e.addClass("updating-message");var t=s(this).parent().parent().find(".saswp-g-location-field").val(),i=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),o=s("#reviews_addon_license_key").val(),c=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),e.removeClass("updating-message"),!1;if(0!=i%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(o||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:c,reviews_api:o,location:t,blocks:i,g_api:p,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(e.parent().parent().find(".saswp-rv-fetched-msg").text(s.message),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),e.removeClass("updating-message")},error:function(s){console.log(s)}}):(""==t&&alert("Please enter place id"),""==p&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,a="<h3>Thanks for using Structured Data!</h3>";a+="<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</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} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[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="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" 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 class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',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+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};e=function(){s(saswp_localize_data.displayID).pointer(t).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(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},(t=s.extend(t,{buttons:function(s,e){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(){e.element.pointer("close")}),button_2.on("click",function(){e.element.pointer("close")}),button},close:function(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(s,e){e.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?s(window).bind("load.wp-pointers",e):e()}if(s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),s(".saswp-schame-type-select").change(function(e){e.preventDefault(),s(".saswp-custom-fields-table").html("");var a=s(this).val();s(".saswp-option-table-class tr").each(function(e,a){e>0&&s(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==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?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-option-table-class tr").eq(1).show(),s(".saswp-business-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),s(".saswp-manual-modification").html(""),s(".saswp-static-container .spinner").addClass("is-active"),s.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(e){s(".saswp-static-container .spinner").removeClass("is-active"),s(".saswp-manual-modification").append(e),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a?s(".saswp-enable-modify-schema").show():(s(".saswp-enable-modify-schema-output").val("automatic"),s(".saswp-enable-modify-schema-output").change(),s(".saswp-enable-modify-schema").hide())}),s("#saswp_business_type").change(function(){var e=s(this).val(),a=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(e,a){e>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==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?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-"+e+"-tr").show(),s(".saswp-business-text-field-tr").show(),s(".saswp-"+e+"-tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review()}).change(),s(".saswp-checkbox").change(function(){var e=s(this).attr("id"),a=s(this);switch(e){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-seo-framework").val(1):s("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-seo-press").val(1):s("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-aiosp").val(1):s("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-smart-crawl").val(1):s("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-squirrly-seo").val(1):s("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-recipe-maker").val(1):s("#saswp-wp-recipe-maker").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-ultimate-recipe").val(1):s("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-zip-recipes").val(1):s("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mediavine-create").val(1):s("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ht-recipes").val(1):s("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_schema").val(1):s("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":s(this).is(":checked")?s("#saswp_comments_schema").val(1):s("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":s(this).is(":checked")?s("#saswp-review-module").val(1):s("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-kk-star-raring").val(1):s("#saswp-kk-star-raring").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_default_review").val(1):s("#saswp_default_review").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-extra").val(1):s("#saswp-extra").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-job-manager").val(1):s("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yoast").val(1):s("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-events-calendar").val(1):s("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-homeland").val(1):s("#saswp-homeland").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-dash").val(1):s("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-manager").val(1):s("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-manager").val(1):s("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-calendar-wd").val(1):s("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-organiser").val(1):s("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-modern-events-calendar").val(1):s("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking").val(1),s("#saswp-woocommerce-booking-main").val(1)):(s("#saswp-woocommerce-booking").val(0),s("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking-main").val(1),s("#saswp-woocommerce-booking").val(1)):(s("#saswp-woocommerce-booking-main").val(0),s("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce-membership").val(1):s("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":s(this).is(":checked")?s("#saswp-defragment").val(1):s("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cooked").val(1):s("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-shopper-approved-review").val(1),s(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-shopper-approved-review").val(0),s(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":s(this).is(":checked")?(s("#saswp-google-review").val(1),s("#saswp-google-rv-free-checkbox").length?(s("#saswp-google-review-free").parent().parent().show(),s("#saswp-google-rv-free-checkbox").is(":checked")?s("#saswp_google_place_api_key").parent().parent().show():s("#saswp_google_place_api_key").parent().parent().hide()):s("#saswp_google_place_api_key").parent().parent().show(),s(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-google-review").val(0),s("#saswp_google_place_api_key").parent().parent().hide(),s(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),s("#saswp-google-rv-free-checkbox").length&&s("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":s("#saswp-google-review-checkbox").is(":checked")&&s(this).is(":checked")?(s("#saswp-google-review-free").val(1),s("#saswp_google_place_api_key").parent().parent().show()):(s("#saswp-google-review-free").val(0),s("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":s(this).is(":checked")?s("#saswp-markup-footer").val(1):s("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":s(this).is(":checked")?s("#saswp-pretty-print").val(1):s("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wppostratings-raring").val(1):s("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-bbpress").val(1):s("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":s(this).is(":checked")?s("#saswp-microdata-cleanup").val(1):s("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":s(this).is(":checked")?s("#saswp-other-images").val(1):s("#saswp-other-images").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-testimonial-pro-checkbox":s(this).is(":checked")?s("#saswp-testimonial-pro").val(1):s("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":s(this).is(":checked")?s("#saswp-bne-testimonials").val(1):s("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampforwp").val(1):s("#saswp-ampforwp").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampbyautomatic").val(1):s("#saswp-ampbyautomatic").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var e=s(this).val();s(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==e&&(s(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==e&&(s(".saswp_org_fields").parent().parent().addClass("saswp_hide"),s(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),s(document).on("click","input[data-id=media]",function(e){e.preventDefault();var a=s(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var e=i.state().get("selection").first().toJSON();s("#"+t).val(e.url),s("input[data-id='"+t+"_id']").val(e.id),s("input[data-id='"+t+"_height']").val(e.height),s("input[data-id='"+t+"_width']").val(e.width),s("input[data-id='"+t+"_thumbnail']").val(e.url),"sd_default_image_button"===a.attr("id")&&(s("#sd_default_image_width").val(e.width),s("#sd_default_image_height").val(e.height));var p="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(p='<p class="saswp_warning">Image size is smaller than recommended size</p>'),s(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+e.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+p)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");s(this).parent().remove(),s("#"+a).val(""),s("input[data-id='"+a+"_id']").val(""),s("input[data-id='"+a+"_height']").val(""),s("input[data-id='"+a+"_width']").val(""),s("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-post-specific-wrapper[data-id="+a+"] .saswp-post-specific-setting").after(e),s(".saswp_modify_this_schema_hidden_"+a).val(1),s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){t.removeClass("updating-message"),"t"==e.status?(s(".saswp_modify_this_schema_hidden_"+a).val(0),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+a).val();if(s(this).is(":checked")){var p=0;s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));p=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:p,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-reset-data",function(e){e.preventDefault(),1==confirm("Are you sure?")&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){setTimeout(function(){location.reload()},1e3)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("license-status"),i=s(this).attr("add-on"),p=s("#"+i+"_addon_license_key").val();t&&i&&p?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:p,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){s("#"+i+"_addon_license_key_status").val(e.status),"active"==e.status?(s(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").css("color","green"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),s(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),s(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)):(s(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").css("color","red"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),s(".saswp_license_activation[add-on='"+i+"']").text("Activate"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),s(".saswp-send-query").on("click",function(e){e.preventDefault();var a=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();console.log(saswpIsEmail(t)),""!=s.trim(a)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:a,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(a)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(a)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id");s.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?(s(a).parent().find(".saswp-imported-message").text(e.message),s(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(a).parent().find(".saswp-imported-message").addClass("saswp-error"),s(a).parent().find(".saswp-imported-message").text(e.message)),a.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(e){e.preventDefault();var a=s(this),t=s(this).val();s.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',s.each(e.result,function(s,e){i+='<option value="'+s+'">'+e+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(e){e.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(e){e.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();s(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),s(document).on("click",".saswp-remove-review-item",function(e){e.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(e){e.preventDefault();var a=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(e,t){""==s(t).val()?a+=parseFloat(0):a+=parseFloat(s(t).val())});var i=a/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var e=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==e&&s(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),s("#saswp-review-item-enable").change(function(){s(this).is(":checked")?s(".saswp-review-fields").show():s(".saswp-review-fields").hide()}).change(),s(document).on("click",".saswp-restore-post-schema",function(e){e.preventDefault();var a=s(this);if(a.addClass("updating-message"),s(".saswp-post-specific-schema-ids").val())var t=JSON.parse(s(".saswp-post-specific-schema-ids").val());s.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?setTimeout(function(){location.reload()},1e3):(alert(s.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(e){e.preventDefault();var a=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+a).show(),s("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),s("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),s(this).addClass("selected"),s(this).parent().addClass("selected"),saswp_enable_rating_review()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?s(".saswp-global-container:eq(2)").show():s(".saswp-global-container:first").show(),s("#saswp-global-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-global-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-global-container").hide(),s("#"+e).show())}),s("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s(".saswp-tools-container:first").show(),s("#saswp-tools-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-tools-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s("#"+e).show())}),s("#saswp-review-tabs a:first").addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s(".saswp-review-container:first").show(),s("#saswp-review-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-review-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s("#"+e).show())}),s("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s(".saswp-compatibility-container:first").show(),s("#saswp-compatibility-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s("#"+e).show())}),s('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),s(".saswp-enable-modify-schema-output").on("change",function(){s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==s(this).val()&&(s(".saswp-static-container").removeClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==s(this).val()&&(s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").removeClass("saswp_hide"))}),s(document).on("change",".saswp-custom-fields-name",function(){var e="text",a=s(this).parent().parent("tr"),t=s(this).val();-1==t.indexOf("_image")&&-1==t.indexOf("_logo")||(e="image");var i=s(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,e,null,i,t,a)}),s(document).on("click",".saswp-skip-button",function(e){e.preventDefault(),s(this).parent().parent().hide(),s.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){},"json")}),s(document).on("click",".saswp_add_schema_fields_on_fly",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id"),i=s(this).attr("fields_type"),p=s(this).attr("div_type"),o=s(this).attr("itemlist_sub_type"),c=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div:nth-child("+c+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,p,t,i+"_",o)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-rmv-modify_row",function(e){e.preventDefault(),s(this).parent().parent().remove()}),s(document).on("change",".saswp-custom-meta-list",function(){var e=s(this),a=s("select#schema_type option:selected").val(),t=s(this).val(),i=s(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),p="",o=a.toLowerCase()+"_"+i,c="saswp_fixed_image["+i+"]";"manual_text"==t?(p+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(p+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2()):s.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s&&(saswp_taxonomy_term.taxonomy=s,p+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2())},"json"):"custom_field"==t?(p+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',p+="</select></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"fixed_image"==t?(p+="<td>",p+="<fieldset>",p+='<input data-id="media" style="width: 30%;" class="button" id="'+o+'_button" name="'+o+'_button" type="button" value="Upload" />',p+='<input type="hidden" data-id="'+o+'_height" class="upload-height" name="'+c+'[height]" id="'+o+'_height" value="">',p+='<input type="hidden" data-id="'+o+'_width" class="upload-width" name="'+c+'[width]" id="'+o+'_width" value="">',p+='<input type="hidden" data-id="'+o+'_thumbnail" class="upload-thumbnail" name="'+c+'[thumbnail]" id="'+o+'_thumbnail" value="">',p+='<div class="saswp_image_div_'+o+'">',p+="</div>",p+="</fieldset>",p+="</td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):(p+="<td></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2())}),s(document).on("change",".saswp-item-reivewed-list",function(){s(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var e=s(this),a=s("select#schema_type option:selected").val();saswp_item_reviewed_ajax(a,e,"manual")}),s(document).on("click",".saswp-add-custom-fields",function(){var e=s(this);e.addClass("updating-message");var a=s("select#schema_type option:selected").val(),t="",i=null;"Review"==a&&(t=s("select.saswp-item-reivewed-list option:selected").val(),i="saswp_review_name");var p=s("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null):s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:p,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){saswp_meta_list_fields[a]=s,saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null)},error:function(s){console.log(s)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),s('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),s(document).on("click",".saswp_coonect_google_place",function(){var e=s("#saswp_google_place_id").val(),a=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:e,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".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>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(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 i='<div class="saswp-custom-post-tab">';i+='<div style="display:none;" id="saswp-accept-reviews-popup">',i+='<div class="saswp-accept-rv-container">',i+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",i+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',i+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton="1"]" type="text" readonly></div>',i+="</div>",i+="</div>",i+='<h2 class="nav-tab-wrapper">',i+="<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>',i+="<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>',i+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',i+="</h2>",i+="</div>",jQuery(jQuery(".wrap")).prepend(i)}"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&&s(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().val(e)}}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var e=s(this);e.parent().find(".saswp-phone-validation").remove();var a=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?e.parent().find(".saswp-phone-validation").remove():e.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-grid-page",function(e){e.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(e){e.preventDefault();var a=s(this).attr("platform-id");saswp_collection.splice(a,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var e=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),"grid"==e&&s(".saswp-grid-options").removeClass("saswp_hide"),"gallery"==e&&s(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==e&&(s(".saswp-fomo-options").removeClass("saswp_hide"),s(".saswp-collection-lp").css("height","31px")),"popup"==e&&s(".saswp-collection-lp").css("height","31px"),saswp_on_collection_design_change()}).change(),s(".saswp-add-to-collection").on("click",function(e){e.preventDefault();var a=s(this),t=s("#saswp-plaftorm-list").val(),i=s("#saswp-review-count").val();t&&i>0?(a.addClass("updating-message"),saswp_get_collection_data(i,t,a)):alert("Enter Count")});var p,o,c=s("#saswp_collection_id").val();c&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if(e.status){var a=e.message;s.each(a,function(s,e){saswp_get_collection_data(e,s,null)})}s(".spinner").removeClass("is-active")},"json")),(p=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",p.innerHTML="Copied!",document.body.appendChild(p);var n=document.getElementById("motivatebox");n&&n.addEventListener("mouseup",function(s){var e=(s=s||event).target||s.srcElement;"motivate"==e.className&&(!function(s){var e=document.createRange();e.selectNodeContents(s);var a=window.getSelection();a.removeAllRanges(),a.addRange(e)}(e),function(){var s;try{s=document.execCommand("copy")}catch(e){s=!1}return s}()&&function(s){var e=s||event;clearTimeout(o),p.style.left=e.pageX-10+"px",p.style.top=e.pageY+15+"px",p.style.opacity=1,o=setTimeout(function(){p.style.opacity=0},500)}(s))},!1)});
|
1 |
+
var saswp_attached_rv=[],saswp_attached_col=[];jQuery(document).ready(function(s){if(s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show("Attach reviews to this schema type","#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("data-id"));var a=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==a&&saswp_attached_rv.push(e),"collection"==a&&saswp_attached_col.push(e)):("review"==a&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),"collection"==a&&saswp_attached_col.splice(saswp_attached_col.indexOf(e),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,p="";t>0&&(p+=t+" Reviews, "),i>0&&(p+=i+" Collection"),p||(p=0),s(".saswp-attached-rv-count").text("Attached "+p),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+a+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#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">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>Place Id</strong></td><td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>Reviews</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">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>')&&s(".saswp-g-reviews-settings-table").append(t)}),s(document).on("click",".saswp-fetch-g-reviews",function(){var e=s(this),a="free";e.addClass("updating-message");var t=s(this).parent().parent().find(".saswp-g-location-field").val(),i=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),o=s("#reviews_addon_license_key").val(),c=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),e.removeClass("updating-message"),!1;if(0!=i%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(o||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:c,reviews_api:o,location:t,blocks:i,g_api:p,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(e.parent().parent().find(".saswp-rv-fetched-msg").text(s.message),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),e.removeClass("updating-message")},error:function(s){console.log(s)}}):(""==t&&alert("Please enter place id"),""==p&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,a="<h3>Thanks for using Structured Data!</h3>";a+="<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</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} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[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="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" 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 class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',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+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};e=function(){s(saswp_localize_data.displayID).pointer(t).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(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},(t=s.extend(t,{buttons:function(s,e){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(){e.element.pointer("close")}),button_2.on("click",function(){e.element.pointer("close")}),button},close:function(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(s,e){e.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?s(window).bind("load.wp-pointers",e):e()}if(s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),s(".saswp-schame-type-select").change(function(e){e.preventDefault(),s(".saswp-custom-fields-table").html("");var a=s(this).val();s(".saswp-option-table-class tr").each(function(e,a){e>0&&s(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".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?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-option-table-class tr").eq(1).show(),s(".saswp-business-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),s(".saswp-manual-modification").html(""),s(".saswp-static-container .spinner").addClass("is-active"),s.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(e){s(".saswp-static-container .spinner").removeClass("is-active"),s(".saswp-manual-modification").append(e),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a?s(".saswp-enable-modify-schema").show():(s(".saswp-enable-modify-schema-output").val("automatic"),s(".saswp-enable-modify-schema-output").change(),s(".saswp-enable-modify-schema").hide())}),s("#saswp_business_type").change(function(){var e=s(this).val(),a=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(e,a){e>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".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?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-"+e+"-tr").show(),s(".saswp-business-text-field-tr").show(),s(".saswp-"+e+"-tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review()}).change(),s(".saswp-checkbox").change(function(){var e=s(this).attr("id"),a=s(this);switch(e){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-seo-framework").val(1):s("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-seo-press").val(1):s("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-aiosp").val(1):s("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-smart-crawl").val(1):s("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-squirrly-seo").val(1):s("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-recipe-maker").val(1):s("#saswp-wp-recipe-maker").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-ultimate-recipe").val(1):s("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-zip-recipes").val(1):s("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mediavine-create").val(1):s("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ht-recipes").val(1):s("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_schema").val(1):s("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":s(this).is(":checked")?s("#saswp_comments_schema").val(1):s("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":s(this).is(":checked")?s("#saswp-review-module").val(1):s("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-kk-star-raring").val(1):s("#saswp-kk-star-raring").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_default_review").val(1):s("#saswp_default_review").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-extra").val(1):s("#saswp-extra").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-job-manager").val(1):s("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yoast").val(1):s("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-events-calendar").val(1):s("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-homeland").val(1):s("#saswp-homeland").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-dash").val(1):s("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-manager").val(1):s("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-manager").val(1):s("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-calendar-wd").val(1):s("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-organiser").val(1):s("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-modern-events-calendar").val(1):s("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking").val(1),s("#saswp-woocommerce-booking-main").val(1)):(s("#saswp-woocommerce-booking").val(0),s("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking-main").val(1),s("#saswp-woocommerce-booking").val(1)):(s("#saswp-woocommerce-booking-main").val(0),s("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce-membership").val(1):s("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":s(this).is(":checked")?s("#saswp-defragment").val(1):s("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cooked").val(1):s("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-shopper-approved-review").val(1),s(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-shopper-approved-review").val(0),s(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":s(this).is(":checked")?(s("#saswp-google-review").val(1),s("#saswp-google-rv-free-checkbox").length?(s("#saswp-google-review-free").parent().parent().show(),s("#saswp-google-rv-free-checkbox").is(":checked")?s("#saswp_google_place_api_key").parent().parent().show():s("#saswp_google_place_api_key").parent().parent().hide()):s("#saswp_google_place_api_key").parent().parent().show(),s(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-google-review").val(0),s("#saswp_google_place_api_key").parent().parent().hide(),s(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),s("#saswp-google-rv-free-checkbox").length&&s("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":s("#saswp-google-review-checkbox").is(":checked")&&s(this).is(":checked")?(s("#saswp-google-review-free").val(1),s("#saswp_google_place_api_key").parent().parent().show()):(s("#saswp-google-review-free").val(0),s("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":s(this).is(":checked")?s("#saswp-markup-footer").val(1):s("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":s(this).is(":checked")?s("#saswp-pretty-print").val(1):s("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wppostratings-raring").val(1):s("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-bbpress").val(1):s("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":s(this).is(":checked")?s("#saswp-microdata-cleanup").val(1):s("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":s(this).is(":checked")?s("#saswp-other-images").val(1):s("#saswp-other-images").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-testimonial-pro-checkbox":s(this).is(":checked")?s("#saswp-testimonial-pro").val(1):s("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":s(this).is(":checked")?s("#saswp-bne-testimonials").val(1):s("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampforwp").val(1):s("#saswp-ampforwp").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampbyautomatic").val(1):s("#saswp-ampbyautomatic").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var e=s(this).val();s(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==e&&(s(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==e&&(s(".saswp_org_fields").parent().parent().addClass("saswp_hide"),s(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),s(document).on("click","input[data-id=media]",function(e){e.preventDefault();var a=s(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var e=i.state().get("selection").first().toJSON();s("#"+t).val(e.url),s("input[data-id='"+t+"_id']").val(e.id),s("input[data-id='"+t+"_height']").val(e.height),s("input[data-id='"+t+"_width']").val(e.width),s("input[data-id='"+t+"_thumbnail']").val(e.url),"sd_default_image_button"===a.attr("id")&&(s("#sd_default_image_width").val(e.width),s("#sd_default_image_height").val(e.height));var p="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(p='<p class="saswp_warning">Image size is smaller than recommended size</p>'),s(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+e.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+p)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");s(this).parent().remove(),s("#"+a).val(""),s("input[data-id='"+a+"_id']").val(""),s("input[data-id='"+a+"_height']").val(""),s("input[data-id='"+a+"_width']").val(""),s("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-post-specific-wrapper[data-id="+a+"] .saswp-post-specific-setting").after(e),s(".saswp_modify_this_schema_hidden_"+a).val(1),s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){t.removeClass("updating-message"),"t"==e.status?(s(".saswp_modify_this_schema_hidden_"+a).val(0),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+a).val();if(s(this).is(":checked")){var p=0;s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));p=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:p,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-reset-data",function(e){e.preventDefault(),1==confirm("Are you sure?")&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){setTimeout(function(){location.reload()},1e3)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("license-status"),i=s(this).attr("add-on"),p=s("#"+i+"_addon_license_key").val();t&&i&&p?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:p,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){s("#"+i+"_addon_license_key_status").val(e.status),"active"==e.status?(s(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").css("color","green"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),s(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),s(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)):(s(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").css("color","red"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),s(".saswp_license_activation[add-on='"+i+"']").text("Activate"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),s(".saswp-send-query").on("click",function(e){e.preventDefault();var a=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();console.log(saswpIsEmail(t)),""!=s.trim(a)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:a,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(a)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(a)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id");s.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?(s(a).parent().find(".saswp-imported-message").text(e.message),s(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(a).parent().find(".saswp-imported-message").addClass("saswp-error"),s(a).parent().find(".saswp-imported-message").text(e.message)),a.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(e){e.preventDefault();var a=s(this),t=s(this).val();s.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',s.each(e.result,function(s,e){i+='<option value="'+s+'">'+e+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(e){e.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(e){e.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();s(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),s(document).on("click",".saswp-remove-review-item",function(e){e.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(e){e.preventDefault();var a=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(e,t){""==s(t).val()?a+=parseFloat(0):a+=parseFloat(s(t).val())});var i=a/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var e=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==e&&s(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),s("#saswp-review-item-enable").change(function(){s(this).is(":checked")?s(".saswp-review-fields").show():s(".saswp-review-fields").hide()}).change(),s(document).on("click",".saswp-restore-post-schema",function(e){e.preventDefault();var a=s(this);if(a.addClass("updating-message"),s(".saswp-post-specific-schema-ids").val())var t=JSON.parse(s(".saswp-post-specific-schema-ids").val());s.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?setTimeout(function(){location.reload()},1e3):(alert(s.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(e){e.preventDefault();var a=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+a).show(),s("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),s("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),s(this).addClass("selected"),s(this).parent().addClass("selected"),saswp_enable_rating_review()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?s(".saswp-global-container:eq(2)").show():s(".saswp-global-container:first").show(),s("#saswp-global-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-global-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-global-container").hide(),s("#"+e).show())}),s("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s(".saswp-tools-container:first").show(),s("#saswp-tools-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-tools-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s("#"+e).show())}),s("#saswp-review-tabs a:first").addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s(".saswp-review-container:first").show(),s("#saswp-review-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-review-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s("#"+e).show())}),s("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s(".saswp-compatibility-container:first").show(),s("#saswp-compatibility-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s("#"+e).show())}),s('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),s(".saswp-enable-modify-schema-output").on("change",function(){s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==s(this).val()&&(s(".saswp-static-container").removeClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==s(this).val()&&(s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").removeClass("saswp_hide"))}),s(document).on("change",".saswp-custom-fields-name",function(){var e="text",a=s(this).parent().parent("tr"),t=s(this).val();-1==t.indexOf("_image")&&-1==t.indexOf("_logo")||(e="image");var i=s(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,e,null,i,t,a)}),s(document).on("click",".saswp-skip-button",function(e){e.preventDefault(),s(this).parent().parent().hide(),s.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){},"json")}),s(document).on("click",".saswp_add_schema_fields_on_fly",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id"),i=s(this).attr("fields_type"),p=s(this).attr("div_type"),o=s(this).attr("itemlist_sub_type"),c=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div:nth-child("+c+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,p,t,i+"_",o)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-rmv-modify_row",function(e){e.preventDefault(),s(this).parent().parent().remove()}),s(document).on("change",".saswp-custom-meta-list",function(){var e=s(this),a=s("select#schema_type option:selected").val(),t=s(this).val(),i=s(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),p="",o=a.toLowerCase()+"_"+i,c="saswp_fixed_image["+i+"]";"manual_text"==t?(p+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(p+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2()):s.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s&&(saswp_taxonomy_term.taxonomy=s,p+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2())},"json"):"custom_field"==t?(p+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',p+="</select></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"fixed_image"==t?(p+="<td>",p+="<fieldset>",p+='<input data-id="media" style="width: 30%;" class="button" id="'+o+'_button" name="'+o+'_button" type="button" value="Upload" />',p+='<input type="hidden" data-id="'+o+'_height" class="upload-height" name="'+c+'[height]" id="'+o+'_height" value="">',p+='<input type="hidden" data-id="'+o+'_width" class="upload-width" name="'+c+'[width]" id="'+o+'_width" value="">',p+='<input type="hidden" data-id="'+o+'_thumbnail" class="upload-thumbnail" name="'+c+'[thumbnail]" id="'+o+'_thumbnail" value="">',p+='<div class="saswp_image_div_'+o+'">',p+="</div>",p+="</fieldset>",p+="</td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):(p+="<td></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2())}),s(document).on("change",".saswp-item-reivewed-list",function(){s(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var e=s(this),a=s("select#schema_type option:selected").val();saswp_item_reviewed_ajax(a,e,"manual")}),s(document).on("click",".saswp-add-custom-fields",function(){var e=s(this);e.addClass("updating-message");var a=s("select#schema_type option:selected").val(),t="",i=null;"Review"==a&&(t=s("select.saswp-item-reivewed-list option:selected").val(),i="saswp_review_name");var p=s("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null):s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:p,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){saswp_meta_list_fields[a]=s,saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null)},error:function(s){console.log(s)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),s('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),s(document).on("click",".saswp_coonect_google_place",function(){var e=s("#saswp_google_place_id").val(),a=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:e,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".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>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(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 i='<div class="saswp-custom-post-tab">';i+='<div style="display:none;" id="saswp-accept-reviews-popup">',i+='<div class="saswp-accept-rv-container">',i+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",i+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',i+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton="1"]" type="text" readonly></div>',i+="</div>",i+="</div>",i+='<h2 class="nav-tab-wrapper">',i+="<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>',i+="<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>',i+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',i+="</h2>",i+="</div>",jQuery(jQuery(".wrap")).prepend(i)}"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&&s(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().val(e)}}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var e=s(this);e.parent().find(".saswp-phone-validation").remove();var a=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?e.parent().find(".saswp-phone-validation").remove():e.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-grid-page",function(e){e.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(e){e.preventDefault();var a=s(this).attr("platform-id");saswp_collection.splice(a,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var e=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),"grid"==e&&s(".saswp-grid-options").removeClass("saswp_hide"),"gallery"==e&&s(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==e&&(s(".saswp-fomo-options").removeClass("saswp_hide"),s(".saswp-collection-lp").css("height","31px")),"popup"==e&&s(".saswp-collection-lp").css("height","31px"),saswp_on_collection_design_change()}).change(),s(".saswp-add-to-collection").on("click",function(e){e.preventDefault();var a=s(this),t=s("#saswp-plaftorm-list").val(),i=s("#saswp-review-count").val();t&&i>0?(a.addClass("updating-message"),saswp_get_collection_data(i,t,a)):alert("Enter Count")});var p,o,c=s("#saswp_collection_id").val();c&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if(e.status){var a=e.message;s.each(a,function(s,e){saswp_get_collection_data(e,s,null)})}s(".spinner").removeClass("is-active")},"json")),(p=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",p.innerHTML="Copied!",document.body.appendChild(p);var n=document.getElementById("motivatebox");n&&n.addEventListener("mouseup",function(s){var e=(s=s||event).target||s.srcElement;"motivate"==e.className&&(!function(s){var e=document.createRange();e.selectNodeContents(s);var a=window.getSelection();a.removeAllRanges(),a.addRange(e)}(e),function(){var s;try{s=document.execCommand("copy")}catch(e){s=!1}return s}()&&function(s){var e=s||event;clearTimeout(o),p.style.left=e.pageX-10+"px",p.style.top=e.pageY+15+"px",p.style.opacity=1,o=setTimeout(function(){p.style.opacity=0},500)}(s))},!1)});
|
core/array-list/schema-properties.php
CHANGED
@@ -1168,61 +1168,96 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1168 |
case 'Course':
|
1169 |
$meta_field = array(
|
1170 |
array(
|
1171 |
-
'label'
|
1172 |
-
'id'
|
1173 |
-
'type'
|
1174 |
'default' => saswp_get_the_title()
|
1175 |
),
|
1176 |
array(
|
1177 |
-
'label'
|
1178 |
-
'id'
|
1179 |
-
'type'
|
1180 |
'default' => is_object($post) ? $post->post_excerpt : ''
|
1181 |
-
)
|
1182 |
array(
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1186 |
'default' => get_permalink()
|
1187 |
),
|
1188 |
array(
|
1189 |
-
'label'
|
1190 |
-
'id'
|
1191 |
-
'type'
|
1192 |
'default' => get_the_date("Y-m-d")
|
1193 |
),
|
1194 |
array(
|
1195 |
-
'label'
|
1196 |
-
'id'
|
1197 |
-
'type'
|
1198 |
'default' => get_the_modified_date("Y-m-d")
|
1199 |
),
|
1200 |
array(
|
1201 |
-
'label'
|
1202 |
-
'id'
|
1203 |
-
'type'
|
1204 |
'default' => get_bloginfo()
|
1205 |
),
|
1206 |
array(
|
1207 |
-
'label'
|
1208 |
-
'id'
|
1209 |
-
'type'
|
1210 |
'default' => get_home_url()
|
1211 |
),
|
1212 |
array(
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
),
|
1217 |
array(
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
),
|
1222 |
array(
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
)
|
1227 |
);
|
1228 |
break;
|
@@ -3479,45 +3514,46 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3479 |
|
3480 |
|
3481 |
);
|
|
|
3482 |
break;
|
3483 |
-
|
3484 |
-
|
3485 |
|
3486 |
-
|
3487 |
-
|
3488 |
-
|
3489 |
-
|
3490 |
-
|
3491 |
-
|
3492 |
-
|
3493 |
-
|
3494 |
-
|
3495 |
-
|
3496 |
-
|
3497 |
-
|
3498 |
-
|
3499 |
-
|
3500 |
-
|
3501 |
-
|
3502 |
-
|
3503 |
-
|
3504 |
-
|
3505 |
-
|
3506 |
-
|
3507 |
-
|
3508 |
-
|
3509 |
-
|
3510 |
-
|
3511 |
-
|
3512 |
-
|
3513 |
-
|
3514 |
-
|
3515 |
-
|
3516 |
-
|
3517 |
-
|
3518 |
-
|
3519 |
-
|
3520 |
-
|
3521 |
case 'Person':
|
3522 |
|
3523 |
$meta_field = array(
|
@@ -3617,11 +3653,198 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3617 |
'label' => 'Website',
|
3618 |
'id' => 'saswp_person_schema_website_'.$schema_id,
|
3619 |
'type' => 'text',
|
3620 |
-
),
|
3621 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3622 |
);
|
3623 |
break;
|
3624 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3625 |
case 'DataFeed':
|
3626 |
|
3627 |
$meta_field = array(
|
@@ -3665,8 +3888,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3665 |
'label' => 'URL',
|
3666 |
'id' => 'saswp_music_playlist_url_'.$schema_id,
|
3667 |
'type' => 'text',
|
3668 |
-
)
|
3669 |
-
|
3670 |
);
|
3671 |
break;
|
3672 |
|
@@ -3863,13 +4085,18 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3863 |
array(
|
3864 |
'label' => 'Description',
|
3865 |
'id' => 'saswp_organization_description_'.$schema_id,
|
3866 |
-
'type' => '
|
3867 |
),
|
3868 |
array(
|
3869 |
'label' => 'URL',
|
3870 |
'id' => 'saswp_organization_url_'.$schema_id,
|
3871 |
'type' => 'text',
|
3872 |
),
|
|
|
|
|
|
|
|
|
|
|
3873 |
array(
|
3874 |
'label' => 'Logo',
|
3875 |
'id' => 'saswp_organization_logo_'.$schema_id,
|
@@ -3900,15 +4127,75 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3900 |
'id' => 'saswp_organization_postal_code_'.$schema_id,
|
3901 |
'type' => 'text',
|
3902 |
),
|
|
|
|
|
|
|
|
|
|
|
3903 |
array(
|
3904 |
'label' => 'Telephone',
|
3905 |
'id' => 'saswp_organization_telephone_'.$schema_id,
|
3906 |
'type' => 'text',
|
3907 |
),
|
3908 |
array(
|
3909 |
-
|
3910 |
-
|
3911 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3912 |
),
|
3913 |
array(
|
3914 |
'label' => 'Rating',
|
1168 |
case 'Course':
|
1169 |
$meta_field = array(
|
1170 |
array(
|
1171 |
+
'label' => 'Name',
|
1172 |
+
'id' => 'saswp_course_name_'.$schema_id,
|
1173 |
+
'type' => 'text',
|
1174 |
'default' => saswp_get_the_title()
|
1175 |
),
|
1176 |
array(
|
1177 |
+
'label' => 'Description',
|
1178 |
+
'id' => 'saswp_course_description_'.$schema_id,
|
1179 |
+
'type' => 'textarea',
|
1180 |
'default' => is_object($post) ? $post->post_excerpt : ''
|
1181 |
+
),
|
1182 |
array(
|
1183 |
+
'label' => 'Duration',
|
1184 |
+
'id' => 'saswp_course_duration_'.$schema_id,
|
1185 |
+
'type' => 'text'
|
1186 |
+
),
|
1187 |
+
array(
|
1188 |
+
'label' => 'Course Code',
|
1189 |
+
'id' => 'saswp_course_code_'.$schema_id,
|
1190 |
+
'type' => 'text'
|
1191 |
+
),
|
1192 |
+
array(
|
1193 |
+
'label' => 'Content Location Name',
|
1194 |
+
'id' => 'saswp_course_content_location_name_'.$schema_id,
|
1195 |
+
'type' => 'text'
|
1196 |
+
),
|
1197 |
+
array(
|
1198 |
+
'label' => 'Content Location Locality',
|
1199 |
+
'id' => 'saswp_course_content_location_locality_'.$schema_id,
|
1200 |
+
'type' => 'text'
|
1201 |
+
),
|
1202 |
+
array(
|
1203 |
+
'label' => 'Content Location Region',
|
1204 |
+
'id' => 'saswp_course_content_location_region_'.$schema_id,
|
1205 |
+
'type' => 'text'
|
1206 |
+
),
|
1207 |
+
array(
|
1208 |
+
'label' => 'Content Location Country',
|
1209 |
+
'id' => 'saswp_course_content_location_country_'.$schema_id,
|
1210 |
+
'type' => 'text'
|
1211 |
+
),
|
1212 |
+
array(
|
1213 |
+
'label' => 'Content Location Postal Code',
|
1214 |
+
'id' => 'saswp_course_content_location_postal_code_'.$schema_id,
|
1215 |
+
'type' => 'text'
|
1216 |
+
),
|
1217 |
+
array(
|
1218 |
+
'label' => 'URL',
|
1219 |
+
'id' => 'saswp_course_url_'.$schema_id,
|
1220 |
+
'type' => 'text',
|
1221 |
'default' => get_permalink()
|
1222 |
),
|
1223 |
array(
|
1224 |
+
'label' => 'Date Published',
|
1225 |
+
'id' => 'saswp_course_date_published_'.$schema_id,
|
1226 |
+
'type' => 'text',
|
1227 |
'default' => get_the_date("Y-m-d")
|
1228 |
),
|
1229 |
array(
|
1230 |
+
'label' => 'Date Modified',
|
1231 |
+
'id' => 'saswp_course_date_modified_'.$schema_id,
|
1232 |
+
'type' => 'text',
|
1233 |
'default' => get_the_modified_date("Y-m-d")
|
1234 |
),
|
1235 |
array(
|
1236 |
+
'label' => 'Provider Name',
|
1237 |
+
'id' => 'saswp_course_provider_name_'.$schema_id,
|
1238 |
+
'type' => 'text',
|
1239 |
'default' => get_bloginfo()
|
1240 |
),
|
1241 |
array(
|
1242 |
+
'label' => 'Provider SameAs',
|
1243 |
+
'id' => 'saswp_course_sameas_'.$schema_id,
|
1244 |
+
'type' => 'text',
|
1245 |
'default' => get_home_url()
|
1246 |
),
|
1247 |
array(
|
1248 |
+
'label' => 'Aggregate Rating',
|
1249 |
+
'id' => 'saswp_course_enable_rating_'.$schema_id,
|
1250 |
+
'type' => 'checkbox',
|
1251 |
),
|
1252 |
array(
|
1253 |
+
'label' => 'Rating',
|
1254 |
+
'id' => 'saswp_course_rating_'.$schema_id,
|
1255 |
+
'type' => 'text',
|
1256 |
),
|
1257 |
array(
|
1258 |
+
'label' => 'Number of Reviews',
|
1259 |
+
'id' => 'saswp_course_review_count_'.$schema_id,
|
1260 |
+
'type' => 'text',
|
1261 |
)
|
1262 |
);
|
1263 |
break;
|
3514 |
|
3515 |
|
3516 |
);
|
3517 |
+
|
3518 |
break;
|
3519 |
+
|
3520 |
+
case 'FAQ':
|
3521 |
|
3522 |
+
$meta_field = array(
|
3523 |
+
array(
|
3524 |
+
'label' => 'Headline',
|
3525 |
+
'id' => 'saswp_faq_headline_'.$schema_id,
|
3526 |
+
'type' => 'text'
|
3527 |
+
),
|
3528 |
+
array(
|
3529 |
+
'label' => 'Tags',
|
3530 |
+
'id' => 'saswp_faq_keywords_'.$schema_id,
|
3531 |
+
'type' => 'text'
|
3532 |
+
),
|
3533 |
+
array(
|
3534 |
+
'label' => 'Author',
|
3535 |
+
'id' => 'saswp_faq_author_'.$schema_id,
|
3536 |
+
'type' => 'text'
|
3537 |
+
),
|
3538 |
+
array(
|
3539 |
+
'label' => 'DateCreated',
|
3540 |
+
'id' => 'saswp_faq_date_created_'.$schema_id,
|
3541 |
+
'type' => 'text'
|
3542 |
+
),
|
3543 |
+
array(
|
3544 |
+
'label' => 'DatePublished',
|
3545 |
+
'id' => 'saswp_faq_date_published_'.$schema_id,
|
3546 |
+
'type' => 'text'
|
3547 |
+
),
|
3548 |
+
array(
|
3549 |
+
'label' => 'DateModified',
|
3550 |
+
'id' => 'saswp_faq_date_modified_'.$schema_id,
|
3551 |
+
'type' => 'text'
|
3552 |
+
)
|
3553 |
+
);
|
3554 |
+
|
3555 |
+
break;
|
3556 |
+
|
3557 |
case 'Person':
|
3558 |
|
3559 |
$meta_field = array(
|
3653 |
'label' => 'Website',
|
3654 |
'id' => 'saswp_person_schema_website_'.$schema_id,
|
3655 |
'type' => 'text',
|
3656 |
+
),
|
3657 |
+
array(
|
3658 |
+
'label' => 'Facebook',
|
3659 |
+
'id' => 'saswp_person_schema_facebook_'.$schema_id,
|
3660 |
+
'type' => 'text',
|
3661 |
+
),
|
3662 |
+
array(
|
3663 |
+
'label' => 'Twitter',
|
3664 |
+
'id' => 'saswp_person_schema_twitter_'.$schema_id,
|
3665 |
+
'type' => 'text',
|
3666 |
+
),
|
3667 |
+
array(
|
3668 |
+
'label' => 'LinkedIn',
|
3669 |
+
'id' => 'saswp_person_schema_linkedin_'.$schema_id,
|
3670 |
+
'type' => 'text',
|
3671 |
+
),
|
3672 |
+
array(
|
3673 |
+
'label' => 'Affiliation',
|
3674 |
+
'id' => 'saswp_person_schema_affiliation_'.$schema_id,
|
3675 |
+
'type' => 'text',
|
3676 |
+
),
|
3677 |
+
array(
|
3678 |
+
'label' => 'Alumni Of',
|
3679 |
+
'id' => 'saswp_person_schema_alumniof_'.$schema_id,
|
3680 |
+
'type' => 'text',
|
3681 |
+
),
|
3682 |
+
array(
|
3683 |
+
'label' => 'Award',
|
3684 |
+
'id' => 'saswp_person_schema_award_'.$schema_id,
|
3685 |
+
'type' => 'text',
|
3686 |
+
),
|
3687 |
+
array(
|
3688 |
+
'label' => 'Brand',
|
3689 |
+
'id' => 'saswp_person_schema_brand_'.$schema_id,
|
3690 |
+
'type' => 'text',
|
3691 |
+
),
|
3692 |
+
array(
|
3693 |
+
'label' => 'Qualifications',
|
3694 |
+
'id' => 'saswp_person_schema_qualifications_'.$schema_id,
|
3695 |
+
'type' => 'text',
|
3696 |
+
),
|
3697 |
+
array(
|
3698 |
+
'label' => 'Occupation Name',
|
3699 |
+
'id' => 'saswp_person_schema_occupation_name_'.$schema_id,
|
3700 |
+
'type' => 'text',
|
3701 |
+
),
|
3702 |
+
array(
|
3703 |
+
'label' => 'Occupation Description',
|
3704 |
+
'id' => 'saswp_person_schema_occupation_description_'.$schema_id,
|
3705 |
+
'type' => 'textarea',
|
3706 |
+
),
|
3707 |
+
array(
|
3708 |
+
'label' => 'Estimated Salary',
|
3709 |
+
'id' => 'saswp_person_schema_estimated_salary_'.$schema_id,
|
3710 |
+
'type' => 'text',
|
3711 |
+
),
|
3712 |
+
array(
|
3713 |
+
'label' => 'Salary Currency',
|
3714 |
+
'id' => 'saswp_person_schema_salary_currency_'.$schema_id,
|
3715 |
+
'type' => 'text',
|
3716 |
+
),
|
3717 |
+
array(
|
3718 |
+
'label' => 'Salary Duration',
|
3719 |
+
'id' => 'saswp_person_schema_salary_duration_'.$schema_id,
|
3720 |
+
'type' => 'text',
|
3721 |
+
),
|
3722 |
+
array(
|
3723 |
+
'label' => 'Salary Median',
|
3724 |
+
'id' => 'saswp_person_schema_salary_median_'.$schema_id,
|
3725 |
+
'type' => 'text',
|
3726 |
+
),
|
3727 |
+
array(
|
3728 |
+
'label' => 'Salary Percentile10',
|
3729 |
+
'id' => 'saswp_person_schema_salary_percentile10_'.$schema_id,
|
3730 |
+
'type' => 'text',
|
3731 |
+
),
|
3732 |
+
array(
|
3733 |
+
'label' => 'Salary Percentile25',
|
3734 |
+
'id' => 'saswp_person_schema_salary_percentile25_'.$schema_id,
|
3735 |
+
'type' => 'text',
|
3736 |
+
),
|
3737 |
+
array(
|
3738 |
+
'label' => 'Salary Percentile75',
|
3739 |
+
'id' => 'saswp_person_schema_salary_percentile75_'.$schema_id,
|
3740 |
+
'type' => 'text',
|
3741 |
+
),
|
3742 |
+
array(
|
3743 |
+
'label' => 'Salary Percentile90',
|
3744 |
+
'id' => 'saswp_person_schema_salary_percentile90_'.$schema_id,
|
3745 |
+
'type' => 'text',
|
3746 |
+
),
|
3747 |
+
array(
|
3748 |
+
'label' => 'Salary Last Reviewed',
|
3749 |
+
'id' => 'saswp_person_schema_salary_last_reviewed_'.$schema_id,
|
3750 |
+
'type' => 'text',
|
3751 |
+
),
|
3752 |
+
array(
|
3753 |
+
'label' => 'Occupation City',
|
3754 |
+
'id' => 'saswp_person_schema_occupation_city_'.$schema_id,
|
3755 |
+
'type' => 'text',
|
3756 |
+
),
|
3757 |
+
array(
|
3758 |
+
'label' => 'Honorific Prefix',
|
3759 |
+
'id' => 'saswp_person_schema_honorific_prefix_'.$schema_id,
|
3760 |
+
'type' => 'text',
|
3761 |
+
),
|
3762 |
+
array(
|
3763 |
+
'label' => 'Honorific Suffix',
|
3764 |
+
'id' => 'saswp_person_schema_honorific_suffix_'.$schema_id,
|
3765 |
+
'type' => 'text',
|
3766 |
+
),
|
3767 |
);
|
3768 |
break;
|
3769 |
+
|
3770 |
+
case 'CreativeWorkSeries':
|
3771 |
+
|
3772 |
+
$meta_field = array(
|
3773 |
+
array(
|
3774 |
+
'label' => 'Name',
|
3775 |
+
'id' => 'saswp_cws_schema_name_'.$schema_id,
|
3776 |
+
'type' => 'text',
|
3777 |
+
),
|
3778 |
+
array(
|
3779 |
+
'label' => 'URL',
|
3780 |
+
'id' => 'saswp_cws_schema_url_'.$schema_id,
|
3781 |
+
'type' => 'text',
|
3782 |
+
),
|
3783 |
+
array(
|
3784 |
+
'label' => 'Description',
|
3785 |
+
'id' => 'saswp_cws_schema_description_'.$schema_id,
|
3786 |
+
'type' => 'text',
|
3787 |
+
),
|
3788 |
+
array(
|
3789 |
+
'label' => 'Keywords',
|
3790 |
+
'id' => 'saswp_cws_schema_keywords_'.$schema_id,
|
3791 |
+
'type' => 'text',
|
3792 |
+
),
|
3793 |
+
array(
|
3794 |
+
'label' => 'Start Date',
|
3795 |
+
'id' => 'saswp_cws_schema_start_date_'.$schema_id,
|
3796 |
+
'type' => 'text',
|
3797 |
+
),
|
3798 |
+
array(
|
3799 |
+
'label' => 'End Date',
|
3800 |
+
'id' => 'saswp_cws_schema_end_date_'.$schema_id,
|
3801 |
+
'type' => 'text',
|
3802 |
+
),
|
3803 |
+
array(
|
3804 |
+
'label' => 'Date Published',
|
3805 |
+
'id' => 'saswp_cws_schema_date_published_'.$schema_id,
|
3806 |
+
'type' => 'text',
|
3807 |
+
'default' => get_the_date("Y-m-d")
|
3808 |
+
),
|
3809 |
+
array(
|
3810 |
+
'label' => 'Date Modified',
|
3811 |
+
'id' => 'saswp_cws_schema_date_modified_'.$schema_id,
|
3812 |
+
'type' => 'text',
|
3813 |
+
'default' => get_the_modified_date("Y-m-d")
|
3814 |
+
),
|
3815 |
+
array(
|
3816 |
+
'label' => 'Author Name',
|
3817 |
+
'id' => 'saswp_cws_schema_author_name_'.$schema_id,
|
3818 |
+
'type' => 'text',
|
3819 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
3820 |
+
),
|
3821 |
+
array(
|
3822 |
+
'label' => 'Author Description',
|
3823 |
+
'id' => 'saswp_cws_schema_author_description_'.$schema_id,
|
3824 |
+
'type' => 'textarea',
|
3825 |
+
'default' => $author_desc
|
3826 |
+
),
|
3827 |
+
array(
|
3828 |
+
'label' => 'Author URL',
|
3829 |
+
'id' => 'saswp_cws_schema_author_url_'.$schema_id,
|
3830 |
+
'type' => 'text',
|
3831 |
+
'default' => $author_url
|
3832 |
+
),
|
3833 |
+
array(
|
3834 |
+
'label' => 'Organization Name',
|
3835 |
+
'id' => 'saswp_cws_schema_organization_name_'.$schema_id,
|
3836 |
+
'type' => 'text',
|
3837 |
+
'default' => saswp_remove_warnings($sd_data, 'sd_name', 'saswp_string')
|
3838 |
+
),
|
3839 |
+
array(
|
3840 |
+
'label' => 'Organization Logo',
|
3841 |
+
'id' => 'saswp_cws_schema_organization_logo_'.$schema_id,
|
3842 |
+
'type' => 'media',
|
3843 |
+
'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url'] : ''
|
3844 |
+
)
|
3845 |
+
);
|
3846 |
+
break;
|
3847 |
+
|
3848 |
case 'DataFeed':
|
3849 |
|
3850 |
$meta_field = array(
|
3888 |
'label' => 'URL',
|
3889 |
'id' => 'saswp_music_playlist_url_'.$schema_id,
|
3890 |
'type' => 'text',
|
3891 |
+
)
|
|
|
3892 |
);
|
3893 |
break;
|
3894 |
|
4085 |
array(
|
4086 |
'label' => 'Description',
|
4087 |
'id' => 'saswp_organization_description_'.$schema_id,
|
4088 |
+
'type' => 'textarea',
|
4089 |
),
|
4090 |
array(
|
4091 |
'label' => 'URL',
|
4092 |
'id' => 'saswp_organization_url_'.$schema_id,
|
4093 |
'type' => 'text',
|
4094 |
),
|
4095 |
+
array(
|
4096 |
+
'label' => 'Image',
|
4097 |
+
'id' => 'saswp_organization_image_'.$schema_id,
|
4098 |
+
'type' => 'media',
|
4099 |
+
),
|
4100 |
array(
|
4101 |
'label' => 'Logo',
|
4102 |
'id' => 'saswp_organization_logo_'.$schema_id,
|
4127 |
'id' => 'saswp_organization_postal_code_'.$schema_id,
|
4128 |
'type' => 'text',
|
4129 |
),
|
4130 |
+
array(
|
4131 |
+
'label' => 'Email',
|
4132 |
+
'id' => 'saswp_organization_email_'.$schema_id,
|
4133 |
+
'type' => 'text',
|
4134 |
+
),
|
4135 |
array(
|
4136 |
'label' => 'Telephone',
|
4137 |
'id' => 'saswp_organization_telephone_'.$schema_id,
|
4138 |
'type' => 'text',
|
4139 |
),
|
4140 |
array(
|
4141 |
+
'label' => 'Website',
|
4142 |
+
'id' => 'saswp_organization_website_'.$schema_id,
|
4143 |
+
'type' => 'text',
|
4144 |
+
),
|
4145 |
+
array(
|
4146 |
+
'label' => 'Facebook',
|
4147 |
+
'id' => 'saswp_organization_facebook_'.$schema_id,
|
4148 |
+
'type' => 'text',
|
4149 |
+
),
|
4150 |
+
array(
|
4151 |
+
'label' => 'Twitter',
|
4152 |
+
'id' => 'saswp_organization_twitter_'.$schema_id,
|
4153 |
+
'type' => 'text',
|
4154 |
+
),
|
4155 |
+
array(
|
4156 |
+
'label' => 'LinkedIn',
|
4157 |
+
'id' => 'saswp_organization_linkedin_'.$schema_id,
|
4158 |
+
'type' => 'text',
|
4159 |
+
),
|
4160 |
+
array(
|
4161 |
+
'label' => 'Founder',
|
4162 |
+
'id' => 'saswp_organization_founder_'.$schema_id,
|
4163 |
+
'type' => 'text',
|
4164 |
+
),
|
4165 |
+
array(
|
4166 |
+
'label' => 'Founding Date',
|
4167 |
+
'id' => 'saswp_organization_founding_date_'.$schema_id,
|
4168 |
+
'type' => 'text',
|
4169 |
+
),
|
4170 |
+
array(
|
4171 |
+
'label' => 'Dun & Bradstreet DUNS',
|
4172 |
+
'id' => 'saswp_organization_duns_'.$schema_id,
|
4173 |
+
'type' => 'text',
|
4174 |
+
),
|
4175 |
+
array(
|
4176 |
+
'label' => 'Qualifications ( Credential Awarded)',
|
4177 |
+
'id' => 'saswp_organization_qualifications_'.$schema_id,
|
4178 |
+
'type' => 'text',
|
4179 |
+
),
|
4180 |
+
array(
|
4181 |
+
'label' => 'Knows About',
|
4182 |
+
'id' => 'saswp_organization_knows_about_'.$schema_id,
|
4183 |
+
'type' => 'text',
|
4184 |
+
),
|
4185 |
+
array(
|
4186 |
+
'label' => 'Member Of',
|
4187 |
+
'id' => 'saswp_organization_member_of_'.$schema_id,
|
4188 |
+
'type' => 'text',
|
4189 |
+
),
|
4190 |
+
array(
|
4191 |
+
'label' => 'Parent Organization',
|
4192 |
+
'id' => 'saswp_organization_parent_organization_'.$schema_id,
|
4193 |
+
'type' => 'text',
|
4194 |
+
),
|
4195 |
+
array(
|
4196 |
+
'label' => 'Aggregate Rating',
|
4197 |
+
'id' => 'saswp_organization_enable_rating_'.$schema_id,
|
4198 |
+
'type' => 'checkbox',
|
4199 |
),
|
4200 |
array(
|
4201 |
'label' => 'Rating',
|
core/array-list/schemas.php
CHANGED
@@ -14,6 +14,7 @@ return array(
|
|
14 |
'BlogPosting' => 'BlogPosting',
|
15 |
'Book' => 'Book',
|
16 |
'Course' => 'Course',
|
|
|
17 |
'DiscussionForumPosting' => 'DiscussionForumPosting',
|
18 |
'DataFeed' => 'DataFeed',
|
19 |
'FAQ' => 'FAQ',
|
@@ -70,6 +71,7 @@ return array(
|
|
70 |
'Mosque' => 'Mosque',
|
71 |
),
|
72 |
'Thing' => array(
|
73 |
-
'Person' => 'Person',
|
|
|
74 |
)
|
75 |
);
|
14 |
'BlogPosting' => 'BlogPosting',
|
15 |
'Book' => 'Book',
|
16 |
'Course' => 'Course',
|
17 |
+
'CreativeWorkSeries' => 'CreativeWorkSeries',
|
18 |
'DiscussionForumPosting' => 'DiscussionForumPosting',
|
19 |
'DataFeed' => 'DataFeed',
|
20 |
'FAQ' => 'FAQ',
|
71 |
'Mosque' => 'Mosque',
|
72 |
),
|
73 |
'Thing' => array(
|
74 |
+
'Person' => 'Person',
|
75 |
+
'Organization' => 'Organization',
|
76 |
)
|
77 |
);
|
core/global.php
CHANGED
@@ -15,14 +15,16 @@ $with_aggregate = array(
|
|
15 |
'Movie',
|
16 |
'Review',
|
17 |
'Recipe',
|
18 |
-
'TVSeries',
|
|
|
19 |
'SoftwareApplication',
|
20 |
'MobileApplication',
|
21 |
'Event',
|
22 |
'VideoGame',
|
23 |
'AudioObject',
|
24 |
'VideoObject',
|
25 |
-
'local_business',
|
|
|
26 |
'Product'
|
27 |
);
|
28 |
$without_aggregate = array(
|
15 |
'Movie',
|
16 |
'Review',
|
17 |
'Recipe',
|
18 |
+
'TVSeries',
|
19 |
+
'CreativeWorkSeries',
|
20 |
'SoftwareApplication',
|
21 |
'MobileApplication',
|
22 |
'Event',
|
23 |
'VideoGame',
|
24 |
'AudioObject',
|
25 |
'VideoObject',
|
26 |
+
'local_business',
|
27 |
+
'Organization',
|
28 |
'Product'
|
29 |
);
|
30 |
$without_aggregate = array(
|
output/function.php
CHANGED
@@ -75,7 +75,12 @@ function saswp_wp_hook_operation(){
|
|
75 |
|
76 |
function saswp_schema_markup_output_in_buffer($content){
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
if($saswp_post_reviews || $saswp_elementor_faq || $saswp_divi_faq || $saswp_elementor_howto){
|
81 |
|
75 |
|
76 |
function saswp_schema_markup_output_in_buffer($content){
|
77 |
|
78 |
+
global $saswp_post_reviews, $saswp_elementor_faq, $saswp_divi_faq, $saswp_elementor_howto;
|
79 |
+
|
80 |
+
if(!$saswp_divi_faq){
|
81 |
+
$regex = "<script type='text/javascript' src='".SASWP_PLUGIN_URL."modules/divi-builder/scripts/frontend-bundle.min.js?ver=1.0.0'></script>";
|
82 |
+
$content = str_replace($regex, '', $content);
|
83 |
+
}
|
84 |
|
85 |
if($saswp_post_reviews || $saswp_elementor_faq || $saswp_divi_faq || $saswp_elementor_howto){
|
86 |
|
output/gutenberg.php
CHANGED
@@ -226,22 +226,22 @@ function saswp_gutenberg_how_to_schema(){
|
|
226 |
if(!empty($step)){
|
227 |
|
228 |
foreach($step as $key => $val){
|
229 |
-
|
230 |
$supply_data = array();
|
231 |
$direction = array();
|
232 |
-
$tip = array();
|
233 |
|
234 |
if($val['title'] || $val['description']){
|
235 |
|
236 |
if($val['description']){
|
237 |
$direction['@type'] = 'HowToDirection';
|
238 |
-
$direction['text'] = $val['description'];
|
239 |
}
|
240 |
|
241 |
if($val['description']){
|
242 |
|
243 |
$tip['@type'] = 'HowToTip';
|
244 |
-
$tip['text'] = $val['description'];
|
245 |
|
246 |
}
|
247 |
|
226 |
if(!empty($step)){
|
227 |
|
228 |
foreach($step as $key => $val){
|
229 |
+
|
230 |
$supply_data = array();
|
231 |
$direction = array();
|
232 |
+
$tip = array();
|
233 |
|
234 |
if($val['title'] || $val['description']){
|
235 |
|
236 |
if($val['description']){
|
237 |
$direction['@type'] = 'HowToDirection';
|
238 |
+
$direction['text'] = saswp_remove_all_images($val['description']);
|
239 |
}
|
240 |
|
241 |
if($val['description']){
|
242 |
|
243 |
$tip['@type'] = 'HowToTip';
|
244 |
+
$tip['text'] = saswp_remove_all_images($val['description']);
|
245 |
|
246 |
}
|
247 |
|
output/markup.php
CHANGED
@@ -467,6 +467,8 @@ function saswp_course_schema_markup($schema_id, $schema_post_id, $all_post_meta)
|
|
467 |
'@id' => trailingslashit(get_permalink()).'#course',
|
468 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
|
469 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
|
|
|
|
|
470 |
'url' => saswp_remove_warnings($all_post_meta, 'saswp_course_url_'.$schema_id, 'saswp_array'),
|
471 |
'datePublished' => isset($all_post_meta['saswp_course_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_course_date_published_'.$schema_id][0], get_post_time('h:i:s')) : '',
|
472 |
'dateModified' => isset($all_post_meta['saswp_course_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_course_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) : '',
|
@@ -477,6 +479,17 @@ function saswp_course_schema_markup($schema_id, $schema_post_id, $all_post_meta)
|
|
477 |
)
|
478 |
);
|
479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
if(isset($all_post_meta['saswp_course_enable_rating_'.$schema_id]) && saswp_remove_warnings($all_post_meta, 'saswp_course_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_course_review_count_'.$schema_id, 'saswp_array')){
|
481 |
|
482 |
$input1['aggregateRating'] = array(
|
@@ -994,13 +1007,35 @@ function saswp_organization_schema_markup($schema_id, $schema_post_id, $all_post
|
|
994 |
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_city_'.$schema_id, 'saswp_array');
|
995 |
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_state_'.$schema_id, 'saswp_array');
|
996 |
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_postal_code_'.$schema_id, 'saswp_array');
|
997 |
-
$input1['telephone']
|
998 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
999 |
if(isset($all_post_meta['saswp_organization_enable_rating_'.$schema_id]) && isset($all_post_meta['saswp_organization_rating_value_'.$schema_id]) && isset($all_post_meta['saswp_organization_rating_count_'.$schema_id])){
|
1000 |
$input1['aggregateRating']['@type'] = 'aggregateRating';
|
1001 |
-
$input1['aggregateRating']['ratingValue'] = $all_post_meta['saswp_organization_rating_value_'.$schema_id];
|
1002 |
-
$input1['aggregateRating']['ratingCount'] = $all_post_meta['saswp_organization_rating_count_'.$schema_id];
|
1003 |
-
}
|
1004 |
|
1005 |
return $input1;
|
1006 |
}
|
@@ -1186,7 +1221,74 @@ function saswp_person_schema_markup($schema_id, $schema_post_id, $all_post_meta)
|
|
1186 |
$input1['image']['width'] = isset($image['height']) ? esc_attr($image['height']) :'';
|
1187 |
|
1188 |
}
|
1189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1190 |
return $input1;
|
1191 |
}
|
1192 |
|
@@ -2222,6 +2324,47 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
|
|
2222 |
|
2223 |
}
|
2224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2225 |
function saswp_audio_object_schema_markup($schema_id, $schema_post_id, $all_post_meta){
|
2226 |
|
2227 |
$input1 = array();
|
@@ -2276,7 +2419,7 @@ function saswp_webpage_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
2276 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
2277 |
'mainEntity' => array(
|
2278 |
'@type' => 'Article',
|
2279 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2280 |
'image' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_image_'.$schema_id, 'saswp_array'),
|
2281 |
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_headline_'.$schema_id, 'saswp_array'),
|
2282 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
@@ -2680,9 +2823,7 @@ function saswp_video_object_schema_markup($schema_id, $schema_post_id, $all_post
|
|
2680 |
'transcript' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_transcript_'.$schema_id, 'saswp_array'),
|
2681 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_name_'.$schema_id, 'saswp_array'),
|
2682 |
'uploadDate' => isset($all_post_meta['saswp_video_object_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_upload_date_'.$schema_id][0])):'',
|
2683 |
-
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_thumbnail_url_'.$schema_id, 'saswp_array'),
|
2684 |
-
'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_content_url_'.$schema_id, 'saswp_array'),
|
2685 |
-
'embedUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_embed_url_'.$schema_id, 'saswp_array'),
|
2686 |
'mainEntity' => array(
|
2687 |
'@type' => 'WebPage',
|
2688 |
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_main_entity_id_'.$schema_id, 'saswp_array'),
|
@@ -2711,6 +2852,12 @@ function saswp_video_object_schema_markup($schema_id, $schema_post_id, $all_post
|
|
2711 |
),
|
2712 |
);
|
2713 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2714 |
|
2715 |
return $input1;
|
2716 |
|
467 |
'@id' => trailingslashit(get_permalink()).'#course',
|
468 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
|
469 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
|
470 |
+
'courseCode' => saswp_remove_warnings($all_post_meta, 'saswp_course_code_'.$schema_id, 'saswp_array'),
|
471 |
+
'timeRequired' => saswp_remove_warnings($all_post_meta, 'saswp_course_duration_'.$schema_id, 'saswp_array'),
|
472 |
'url' => saswp_remove_warnings($all_post_meta, 'saswp_course_url_'.$schema_id, 'saswp_array'),
|
473 |
'datePublished' => isset($all_post_meta['saswp_course_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_course_date_published_'.$schema_id][0], get_post_time('h:i:s')) : '',
|
474 |
'dateModified' => isset($all_post_meta['saswp_course_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_course_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) : '',
|
479 |
)
|
480 |
);
|
481 |
|
482 |
+
if( isset($all_post_meta['saswp_course_content_location_name_'.$schema_id][0]) || isset($all_post_meta['saswp_course_content_location_locality_'.$schema_id][0]) || isset($all_post_meta['saswp_course_content_location_country_'.$schema_id][0]) ){
|
483 |
+
|
484 |
+
$input1['contentLocation']['@type'] = 'Place';
|
485 |
+
$input1['contentLocation']['name'] = $all_post_meta['saswp_course_content_location_name_'.$schema_id][0];
|
486 |
+
$input1['contentLocation']['address']['addressLocality'] = $all_post_meta['saswp_course_content_location_locality_'.$schema_id][0];
|
487 |
+
$input1['contentLocation']['address']['addressRegion'] = $all_post_meta['saswp_course_content_location_region_'.$schema_id][0];
|
488 |
+
$input1['contentLocation']['address']['PostalCode'] = $all_post_meta['saswp_course_content_location_postal_code_'.$schema_id][0];
|
489 |
+
$input1['contentLocation']['address']['addressCountry'] = $all_post_meta['saswp_course_content_location_country_'.$schema_id][0];
|
490 |
+
|
491 |
+
}
|
492 |
+
|
493 |
if(isset($all_post_meta['saswp_course_enable_rating_'.$schema_id]) && saswp_remove_warnings($all_post_meta, 'saswp_course_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_course_review_count_'.$schema_id, 'saswp_array')){
|
494 |
|
495 |
$input1['aggregateRating'] = array(
|
1007 |
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_city_'.$schema_id, 'saswp_array');
|
1008 |
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_state_'.$schema_id, 'saswp_array');
|
1009 |
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_postal_code_'.$schema_id, 'saswp_array');
|
1010 |
+
$input1['address']['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_telephone_'.$schema_id, 'saswp_array');
|
1011 |
+
$input1['address']['email'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_email_'.$schema_id, 'saswp_array');
|
1012 |
+
|
1013 |
+
if( isset($all_post_meta['saswp_organization_duns_'.$schema_id][0]) ){
|
1014 |
+
$input1['duns'] = $all_post_meta['saswp_organization_duns_'.$schema_id][0];
|
1015 |
+
}
|
1016 |
+
if( isset($all_post_meta['saswp_organization_founder_'.$schema_id][0]) ){
|
1017 |
+
$input1['founder'] = $all_post_meta['saswp_organization_founder_'.$schema_id][0];
|
1018 |
+
}
|
1019 |
+
if( isset($all_post_meta['saswp_organization_founding_date_'.$schema_id][0]) ){
|
1020 |
+
$input1['foundingDate'] = saswp_format_date_time($all_post_meta['saswp_organization_founding_date_'.$schema_id][0]);
|
1021 |
+
}
|
1022 |
+
if( isset($all_post_meta['saswp_organization_qualifications_'.$schema_id][0]) ){
|
1023 |
+
$input1['hasCredential'] = $all_post_meta['saswp_organization_qualifications_'.$schema_id][0];
|
1024 |
+
}
|
1025 |
+
if( isset($all_post_meta['saswp_organization_knows_about_'.$schema_id][0]) ){
|
1026 |
+
$input1['knowsAbout'] = $all_post_meta['saswp_organization_knows_about_'.$schema_id][0];
|
1027 |
+
}
|
1028 |
+
if( isset($all_post_meta['saswp_organization_member_of_'.$schema_id][0]) ){
|
1029 |
+
$input1['memberOf'] = $all_post_meta['saswp_organization_member_of_'.$schema_id][0];
|
1030 |
+
}
|
1031 |
+
if( isset($all_post_meta['saswp_organization_parent_organization_'.$schema_id][0]) ){
|
1032 |
+
$input1['parentOrganization'] = $all_post_meta['saswp_organization_parent_organization_'.$schema_id][0];
|
1033 |
+
}
|
1034 |
if(isset($all_post_meta['saswp_organization_enable_rating_'.$schema_id]) && isset($all_post_meta['saswp_organization_rating_value_'.$schema_id]) && isset($all_post_meta['saswp_organization_rating_count_'.$schema_id])){
|
1035 |
$input1['aggregateRating']['@type'] = 'aggregateRating';
|
1036 |
+
$input1['aggregateRating']['ratingValue'] = $all_post_meta['saswp_organization_rating_value_'.$schema_id][0];
|
1037 |
+
$input1['aggregateRating']['ratingCount'] = $all_post_meta['saswp_organization_rating_count_'.$schema_id][0];
|
1038 |
+
}
|
1039 |
|
1040 |
return $input1;
|
1041 |
}
|
1221 |
$input1['image']['width'] = isset($image['height']) ? esc_attr($image['height']) :'';
|
1222 |
|
1223 |
}
|
1224 |
+
|
1225 |
+
if(isset($all_post_meta['saswp_person_schema_award_'.$schema_id][0])){
|
1226 |
+
$input1['award'] = $all_post_meta['saswp_person_schema_award_'.$schema_id][0];
|
1227 |
+
}
|
1228 |
+
if(isset($all_post_meta['saswp_person_schema_brand_'.$schema_id][0])){
|
1229 |
+
$input1['brand'] = $all_post_meta['saswp_person_schema_brand_'.$schema_id][0];
|
1230 |
+
}
|
1231 |
+
if(isset($all_post_meta['saswp_person_schema_honorific_prefix_'.$schema_id][0])){
|
1232 |
+
$input1['honorificPrefix'] = $all_post_meta['saswp_person_schema_honorific_prefix_'.$schema_id][0];
|
1233 |
+
}
|
1234 |
+
if(isset($all_post_meta['saswp_person_schema_honorific_suffix_'.$schema_id][0])){
|
1235 |
+
$input1['honorificSuffix'] = $all_post_meta['saswp_person_schema_honorific_suffix_'.$schema_id][0];
|
1236 |
+
}
|
1237 |
+
if(isset($all_post_meta['saswp_person_schema_qualifications_'.$schema_id][0])){
|
1238 |
+
$input1['hasCredential'] = $all_post_meta['saswp_person_schema_qualifications_'.$schema_id][0];
|
1239 |
+
}
|
1240 |
+
if(isset($all_post_meta['saswp_person_schema_affiliation_'.$schema_id][0])){
|
1241 |
+
$input1['affiliation'] = $all_post_meta['saswp_person_schema_affiliation_'.$schema_id][0];
|
1242 |
+
}
|
1243 |
+
if(isset($all_post_meta['saswp_person_schema_alumniof_'.$schema_id][0])){
|
1244 |
+
$input1['alumniOf'] = $all_post_meta['saswp_person_schema_alumniof_'.$schema_id][0];
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
$sameas = array();
|
1248 |
+
|
1249 |
+
if(isset($all_post_meta['saswp_person_schema_website_'.$schema_id][0])){
|
1250 |
+
$sameas[] = $all_post_meta['saswp_person_schema_website_'.$schema_id][0];
|
1251 |
+
}
|
1252 |
+
if(isset($all_post_meta['saswp_person_schema_facebook_'.$schema_id][0])){
|
1253 |
+
$sameas[] = $all_post_meta['saswp_person_schema_facebook_'.$schema_id][0];
|
1254 |
+
}
|
1255 |
+
if(isset($all_post_meta['saswp_person_schema_twitter_'.$schema_id][0])){
|
1256 |
+
$sameas[] = $all_post_meta['saswp_person_schema_twitter_'.$schema_id][0];
|
1257 |
+
}
|
1258 |
+
if(isset($all_post_meta['saswp_person_schema_linkedin_'.$schema_id][0])){
|
1259 |
+
$sameas[] = $all_post_meta['saswp_person_schema_linkedin_'.$schema_id][0];
|
1260 |
+
}
|
1261 |
+
if($sameas){
|
1262 |
+
$input1['sameAs'] = $sameas;
|
1263 |
+
}
|
1264 |
+
|
1265 |
+
if(isset($all_post_meta['saswp_person_schema_occupation_name_'.$schema_id][0])){
|
1266 |
+
$input1['hasOccupation']['name'] = $all_post_meta['saswp_person_schema_occupation_name_'.$schema_id][0];
|
1267 |
+
}
|
1268 |
+
if(isset($all_post_meta['saswp_person_schema_occupation_description_'.$schema_id][0])){
|
1269 |
+
$input1['hasOccupation']['description'] = $all_post_meta['saswp_person_schema_occupation_description_'.$schema_id][0];
|
1270 |
+
}
|
1271 |
+
if(isset($all_post_meta['saswp_person_schema_occupation_city_'.$schema_id][0])){
|
1272 |
+
$input1['hasOccupation']['occupationLocation']['@type'] = 'City';
|
1273 |
+
$input1['hasOccupation']['occupationLocation']['name'] = $all_post_meta['saswp_person_schema_occupation_city_'.$schema_id][0];
|
1274 |
+
}
|
1275 |
+
if(isset($all_post_meta['saswp_person_schema_estimated_salary_'.$schema_id][0])){
|
1276 |
+
$input1['hasOccupation']['estimatedSalary']['@type'] = 'MonetaryAmountDistribution';
|
1277 |
+
$input1['hasOccupation']['estimatedSalary']['name'] = 'base';
|
1278 |
+
$input1['hasOccupation']['estimatedSalary']['currency'] = $all_post_meta['saswp_person_schema_salary_currency_'.$schema_id][0];
|
1279 |
+
$input1['hasOccupation']['estimatedSalary']['duration'] = $all_post_meta['saswp_person_schema_salary_duration_'.$schema_id][0];
|
1280 |
+
|
1281 |
+
$input1['hasOccupation']['estimatedSalary']['percentile10'] = $all_post_meta['saswp_person_schema_salary_percentile10_'.$schema_id][0];
|
1282 |
+
$input1['hasOccupation']['estimatedSalary']['percentile25'] = $all_post_meta['saswp_person_schema_salary_percentile25_'.$schema_id][0];
|
1283 |
+
$input1['hasOccupation']['estimatedSalary']['median'] = $all_post_meta['saswp_person_schema_salary_median_'.$schema_id][0];
|
1284 |
+
$input1['hasOccupation']['estimatedSalary']['percentile75'] = $all_post_meta['saswp_person_schema_salary_percentile75_'.$schema_id][0];
|
1285 |
+
$input1['hasOccupation']['estimatedSalary']['percentile90'] = $all_post_meta['saswp_person_schema_salary_percentile90_'.$schema_id][0];
|
1286 |
+
}
|
1287 |
+
if(isset($all_post_meta['saswp_person_schema_salary_last_reviewed_'.$schema_id][0])){
|
1288 |
+
$input1['hasOccupation']['mainEntityOfPage']['@type'] = 'WebPage';
|
1289 |
+
$input1['hasOccupation']['mainEntityOfPage']['lastReviewed'] = saswp_format_date_time($all_post_meta['saswp_person_schema_salary_last_reviewed_'.$schema_id][0]);
|
1290 |
+
}
|
1291 |
+
|
1292 |
return $input1;
|
1293 |
}
|
1294 |
|
2324 |
|
2325 |
}
|
2326 |
|
2327 |
+
function saswp_creative_work_series_schema_markup($schema_id, $schema_post_id, $all_post_meta){
|
2328 |
+
|
2329 |
+
$input1 = array();
|
2330 |
+
|
2331 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_cws_schema_organization_logo_'.$schema_id.'_detail',true);
|
2332 |
+
|
2333 |
+
$input1 = array(
|
2334 |
+
'@context' => saswp_context_url(),
|
2335 |
+
'@type' => 'CreativeWorkSeries' ,
|
2336 |
+
'@id' => trailingslashit(get_permalink()).'#CreativeWorkSeries',
|
2337 |
+
'inLanguage' => get_bloginfo('language'),
|
2338 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_description_'.$schema_id, 'saswp_array'),
|
2339 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_keywords_'.$schema_id, 'saswp_array'),
|
2340 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_name_'.$schema_id, 'saswp_array'),
|
2341 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_url_'.$schema_id, 'saswp_array'),
|
2342 |
+
'datePublished' => isset($all_post_meta['saswp_cws_schema_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_cws_schema_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
|
2343 |
+
'dateModified' => isset($all_post_meta['saswp_cws_schema_date_modified_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_cws_schema_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
|
2344 |
+
'startDate' => isset($all_post_meta['saswp_cws_schema_start_date_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_cws_schema_start_date_'.$schema_id][0]) :'',
|
2345 |
+
'endDate' => isset($all_post_meta['saswp_cws_schema_end_date_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_cws_schema_end_date_'.$schema_id][0]) :'',
|
2346 |
+
'author' => array(
|
2347 |
+
'@type' => 'Person',
|
2348 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_author_name_'.$schema_id, 'saswp_array'),
|
2349 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_author_description_'.$schema_id, 'saswp_array'),
|
2350 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_author_url_'.$schema_id, 'saswp_array')
|
2351 |
+
),
|
2352 |
+
'publisher' => array(
|
2353 |
+
'@type' => 'Organization',
|
2354 |
+
'logo' => array(
|
2355 |
+
'@type' => 'ImageObject',
|
2356 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_organization_logo_'.$schema_id, 'saswp_array'),
|
2357 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
2358 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
2359 |
+
),
|
2360 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_organization_name_'.$schema_id, 'saswp_array'),
|
2361 |
+
),
|
2362 |
+
);
|
2363 |
+
|
2364 |
+
return $input1;
|
2365 |
+
|
2366 |
+
}
|
2367 |
+
|
2368 |
function saswp_audio_object_schema_markup($schema_id, $schema_post_id, $all_post_meta){
|
2369 |
|
2370 |
$input1 = array();
|
2419 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
2420 |
'mainEntity' => array(
|
2421 |
'@type' => 'Article',
|
2422 |
+
'mainEntityOfPage' => wp_strip_all_tags(strip_shortcodes(saswp_remove_warnings($all_post_meta, 'saswp_webpage_main_entity_of_page_'.$schema_id, 'saswp_array'))),
|
2423 |
'image' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_image_'.$schema_id, 'saswp_array'),
|
2424 |
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_headline_'.$schema_id, 'saswp_array'),
|
2425 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
2823 |
'transcript' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_transcript_'.$schema_id, 'saswp_array'),
|
2824 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_name_'.$schema_id, 'saswp_array'),
|
2825 |
'uploadDate' => isset($all_post_meta['saswp_video_object_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_upload_date_'.$schema_id][0])):'',
|
2826 |
+
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_thumbnail_url_'.$schema_id, 'saswp_array'),
|
|
|
|
|
2827 |
'mainEntity' => array(
|
2828 |
'@type' => 'WebPage',
|
2829 |
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_main_entity_id_'.$schema_id, 'saswp_array'),
|
2852 |
),
|
2853 |
);
|
2854 |
|
2855 |
+
if(isset($all_post_meta['saswp_video_object_content_url_'.$schema_id][0]) && wp_http_validate_url($all_post_meta['saswp_video_object_content_url_'.$schema_id][0]) ) {
|
2856 |
+
$input1['contentUrl'] = $all_post_meta['saswp_video_object_content_url_'.$schema_id][0];
|
2857 |
+
}
|
2858 |
+
if(isset($all_post_meta['saswp_video_object_embed_url_'.$schema_id][0]) && wp_http_validate_url($all_post_meta['saswp_video_object_embed_url_'.$schema_id][0])){
|
2859 |
+
$input1['embedUrl'] = $all_post_meta['saswp_video_object_embed_url_'.$schema_id][0];
|
2860 |
+
}
|
2861 |
|
2862 |
return $input1;
|
2863 |
|
output/output.php
CHANGED
@@ -819,6 +819,74 @@ function saswp_schema_output() {
|
|
819 |
|
820 |
|
821 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
|
823 |
case 'AudioObject':
|
824 |
|
819 |
|
820 |
|
821 |
break;
|
822 |
+
|
823 |
+
case 'CreativeWorkSeries':
|
824 |
+
|
825 |
+
$input1 = array(
|
826 |
+
'@context' => saswp_context_url(),
|
827 |
+
'@type' => 'CreativeWorkSeries',
|
828 |
+
'@id' => trailingslashit(saswp_get_permalink()).'#BlogPosting',
|
829 |
+
'url' => trailingslashit(saswp_get_permalink()),
|
830 |
+
'inLanguage' => get_bloginfo('language'),
|
831 |
+
'description' => saswp_get_the_excerpt(),
|
832 |
+
'keywords' => saswp_get_the_tags(),
|
833 |
+
'name' => saswp_get_the_title(),
|
834 |
+
'datePublished' => esc_html($date),
|
835 |
+
'dateModified' => esc_html($modified_date),
|
836 |
+
'author' => saswp_get_author_details()
|
837 |
+
);
|
838 |
+
|
839 |
+
if(!empty($publisher)){
|
840 |
+
$input1 = array_merge($input1, $publisher);
|
841 |
+
}
|
842 |
+
if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] == 1){
|
843 |
+
$input1['comment'] = saswp_get_comments(get_the_ID());
|
844 |
+
}
|
845 |
+
|
846 |
+
$input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
|
847 |
+
|
848 |
+
$input1 = apply_filters('saswp_modify_creative_work_series_schema_output', $input1 );
|
849 |
+
|
850 |
+
$input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
|
851 |
+
|
852 |
+
if($modified_schema == 1){
|
853 |
+
|
854 |
+
$input1 = saswp_creative_work_series_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
|
855 |
+
|
856 |
+
}
|
857 |
+
|
858 |
+
|
859 |
+
break;
|
860 |
+
|
861 |
+
case 'Organization':
|
862 |
+
|
863 |
+
$input1 = array(
|
864 |
+
'@context' => saswp_context_url(),
|
865 |
+
'@type' => 'Organization',
|
866 |
+
'@id' => trailingslashit(saswp_get_permalink()).'#Organization',
|
867 |
+
'url' => trailingslashit(saswp_get_permalink()),
|
868 |
+
'description' => saswp_get_the_excerpt(),
|
869 |
+
'name' => saswp_get_the_title(),
|
870 |
+
);
|
871 |
+
|
872 |
+
if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] == 1){
|
873 |
+
$input1['comment'] = saswp_get_comments(get_the_ID());
|
874 |
+
}
|
875 |
+
|
876 |
+
$input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
|
877 |
+
|
878 |
+
$input1 = apply_filters('saswp_modify_organization_schema_output', $input1 );
|
879 |
+
|
880 |
+
$input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
|
881 |
+
|
882 |
+
if($modified_schema == 1){
|
883 |
+
|
884 |
+
$input1 = saswp_organization_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
|
885 |
+
|
886 |
+
}
|
887 |
+
|
888 |
+
|
889 |
+
break;
|
890 |
|
891 |
case 'AudioObject':
|
892 |
|
output/service.php
CHANGED
@@ -131,19 +131,19 @@ Class saswp_output_service{
|
|
131 |
|
132 |
switch ($field) {
|
133 |
case 'blogname':
|
134 |
-
$response
|
135 |
break;
|
136 |
case 'blogdescription':
|
137 |
-
$response
|
138 |
break;
|
139 |
case 'site_url':
|
140 |
$response = get_site_url();
|
141 |
break;
|
142 |
case 'post_title':
|
143 |
-
$response = get_the_title();
|
144 |
break;
|
145 |
case 'post_content':
|
146 |
-
$response = get_the_content();
|
147 |
break;
|
148 |
case 'post_category':
|
149 |
$categories = get_the_category();
|
@@ -585,15 +585,58 @@ Class saswp_output_service{
|
|
585 |
if(isset($custom_fields['saswp_organization_telephone'])){
|
586 |
$input1['address']['telephone'] = $custom_fields['saswp_organization_telephone'];
|
587 |
}
|
|
|
|
|
|
|
588 |
if(isset($custom_fields['saswp_organization_logo'])){
|
589 |
$input1['logo'] = $custom_fields['saswp_organization_logo'];
|
590 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
591 |
if(isset($custom_fields['saswp_organization_rating_value']) && isset($custom_fields['saswp_organization_rating_count'])){
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
$input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_organization_rating_value'];
|
596 |
-
$input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_organization_rating_count'];
|
597 |
}
|
598 |
|
599 |
break;
|
@@ -1087,7 +1130,7 @@ Class saswp_output_service{
|
|
1087 |
}
|
1088 |
|
1089 |
if(isset($custom_fields['saswp_webpage_main_entity_of_page'])){
|
1090 |
-
$input1['mainEntity']['mainEntityOfPage'] = $custom_fields['saswp_webpage_main_entity_of_page'];
|
1091 |
}
|
1092 |
if(isset($custom_fields['saswp_webpage_image'])){
|
1093 |
$input1['mainEntity']['image'] = $custom_fields['saswp_webpage_image'];
|
@@ -1302,6 +1345,15 @@ Class saswp_output_service{
|
|
1302 |
if(isset($custom_fields['saswp_course_date_modified'])){
|
1303 |
$input1['dateModified'] = $custom_fields['saswp_course_date_modified'];
|
1304 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1305 |
if(isset($custom_fields['saswp_course_provider_name'])){
|
1306 |
$input1['provider']['name'] = $custom_fields['saswp_course_provider_name'];
|
1307 |
}
|
@@ -1309,7 +1361,23 @@ Class saswp_output_service{
|
|
1309 |
if(isset($custom_fields['saswp_course_sameas'])){
|
1310 |
$input1['provider']['sameAs'] = $custom_fields['saswp_course_sameas'];
|
1311 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1312 |
|
|
|
|
|
|
|
|
|
|
|
1313 |
break;
|
1314 |
|
1315 |
case 'DiscussionForumPosting':
|
@@ -2054,8 +2122,7 @@ Class saswp_output_service{
|
|
2054 |
}
|
2055 |
if(isset($custom_fields['saswp_person_schema_date_of_birth'])){
|
2056 |
$input1['birthDate'] = $custom_fields['saswp_person_schema_date_of_birth'];
|
2057 |
-
}
|
2058 |
-
|
2059 |
if(isset($custom_fields['saswp_person_schema_nationality'])){
|
2060 |
$input1['nationality'] = $custom_fields['saswp_person_schema_nationality'];
|
2061 |
}
|
@@ -2065,9 +2132,74 @@ Class saswp_output_service{
|
|
2065 |
if(isset($custom_fields['saswp_person_schema_job_title'])){
|
2066 |
$input1['jobTitle'] = $custom_fields['saswp_person_schema_job_title'];
|
2067 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2068 |
|
2069 |
break;
|
2070 |
-
|
2071 |
case 'Apartment':
|
2072 |
|
2073 |
if(isset($custom_fields['saswp_apartment_schema_name'])){
|
131 |
|
132 |
switch ($field) {
|
133 |
case 'blogname':
|
134 |
+
$response = get_bloginfo();
|
135 |
break;
|
136 |
case 'blogdescription':
|
137 |
+
$response = get_bloginfo('description');
|
138 |
break;
|
139 |
case 'site_url':
|
140 |
$response = get_site_url();
|
141 |
break;
|
142 |
case 'post_title':
|
143 |
+
$response = @get_the_title();
|
144 |
break;
|
145 |
case 'post_content':
|
146 |
+
$response = @get_the_content();
|
147 |
break;
|
148 |
case 'post_category':
|
149 |
$categories = get_the_category();
|
585 |
if(isset($custom_fields['saswp_organization_telephone'])){
|
586 |
$input1['address']['telephone'] = $custom_fields['saswp_organization_telephone'];
|
587 |
}
|
588 |
+
if(isset($custom_fields['saswp_organization_email'])){
|
589 |
+
$input1['address']['email'] = $custom_fields['saswp_organization_email'];
|
590 |
+
}
|
591 |
if(isset($custom_fields['saswp_organization_logo'])){
|
592 |
$input1['logo'] = $custom_fields['saswp_organization_logo'];
|
593 |
}
|
594 |
+
if(isset($custom_fields['saswp_organization_image'])){
|
595 |
+
$input1['image'] = $custom_fields['saswp_organization_image'];
|
596 |
+
}
|
597 |
+
if(isset($custom_fields['saswp_organization_duns'])){
|
598 |
+
$input1['duns'] = $custom_fields['saswp_organization_duns'];
|
599 |
+
}
|
600 |
+
if(isset($custom_fields['saswp_organization_founder'])){
|
601 |
+
$input1['founder'] = $custom_fields['saswp_organization_founder'];
|
602 |
+
}
|
603 |
+
if(isset($custom_fields['saswp_organization_founding_date'])){
|
604 |
+
$input1['foundingDate'] = $custom_fields['saswp_organization_founding_date'];
|
605 |
+
}
|
606 |
+
if(isset($custom_fields['saswp_organization_qualifications'])){
|
607 |
+
$input1['hasCredential'] = $custom_fields['saswp_organization_qualifications'];
|
608 |
+
}
|
609 |
+
if(isset($custom_fields['saswp_organization_knows_about'])){
|
610 |
+
$input1['knowsAbout'] = $custom_fields['saswp_organization_knows_about'];
|
611 |
+
}
|
612 |
+
if(isset($custom_fields['saswp_organization_member_of'])){
|
613 |
+
$input1['memberOf'] = $custom_fields['saswp_organization_member_of'];
|
614 |
+
}
|
615 |
+
if(isset($custom_fields['saswp_organization_parent_organization'])){
|
616 |
+
$input1['parentOrganization'] = $custom_fields['saswp_organization_parent_organization'];
|
617 |
+
}
|
618 |
+
|
619 |
+
$sameas = array();
|
620 |
+
if(isset($custom_fields['saswp_organization_website'])){
|
621 |
+
$sameas[] = $custom_fields['saswp_organization_website'];
|
622 |
+
}
|
623 |
+
if(isset($custom_fields['saswp_organization_facebook'])){
|
624 |
+
$sameas[] = $custom_fields['saswp_organization_facebook'];
|
625 |
+
}
|
626 |
+
if(isset($custom_fields['saswp_organization_twitter'])){
|
627 |
+
$sameas[] = $custom_fields['saswp_organization_twitter'];
|
628 |
+
}
|
629 |
+
if(isset($custom_fields['saswp_organization_linkedin'])){
|
630 |
+
$sameas[] = $custom_fields['saswp_organization_linkedin'];
|
631 |
+
}
|
632 |
+
if($sameas){
|
633 |
+
$input1['sameAs'] = $sameas;
|
634 |
+
}
|
635 |
+
|
636 |
if(isset($custom_fields['saswp_organization_rating_value']) && isset($custom_fields['saswp_organization_rating_count'])){
|
637 |
+
$input1['aggregateRating']['@type'] = 'AggregateRating';
|
638 |
+
$input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_organization_rating_value'];
|
639 |
+
$input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_organization_rating_count'];
|
|
|
|
|
640 |
}
|
641 |
|
642 |
break;
|
1130 |
}
|
1131 |
|
1132 |
if(isset($custom_fields['saswp_webpage_main_entity_of_page'])){
|
1133 |
+
$input1['mainEntity']['mainEntityOfPage'] = wp_strip_all_tags(strip_shortcodes($custom_fields['saswp_webpage_main_entity_of_page']));
|
1134 |
}
|
1135 |
if(isset($custom_fields['saswp_webpage_image'])){
|
1136 |
$input1['mainEntity']['image'] = $custom_fields['saswp_webpage_image'];
|
1345 |
if(isset($custom_fields['saswp_course_date_modified'])){
|
1346 |
$input1['dateModified'] = $custom_fields['saswp_course_date_modified'];
|
1347 |
}
|
1348 |
+
|
1349 |
+
if(isset($custom_fields['saswp_course_duration'])){
|
1350 |
+
$input1['timeRequired'] = $custom_fields['saswp_course_duration'];
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
if(isset($custom_fields['saswp_course_code'])){
|
1354 |
+
$input1['courseCode'] = $custom_fields['saswp_course_code'];
|
1355 |
+
}
|
1356 |
+
|
1357 |
if(isset($custom_fields['saswp_course_provider_name'])){
|
1358 |
$input1['provider']['name'] = $custom_fields['saswp_course_provider_name'];
|
1359 |
}
|
1361 |
if(isset($custom_fields['saswp_course_sameas'])){
|
1362 |
$input1['provider']['sameAs'] = $custom_fields['saswp_course_sameas'];
|
1363 |
}
|
1364 |
+
|
1365 |
+
if(isset($custom_fields['saswp_course_content_location_name']) || isset($custom_fields['saswp_course_content_location_locality']) || isset($custom_fields['saswp_course_content_location_country'])){
|
1366 |
+
|
1367 |
+
$input1['contentLocation']['@type'] = 'Place';
|
1368 |
+
$input1['contentLocation']['name'] = $custom_fields['saswp_course_content_location_name'];
|
1369 |
+
$input1['contentLocation']['address']['addressLocality'] = $custom_fields['saswp_course_content_location_locality'];
|
1370 |
+
$input1['contentLocation']['address']['addressRegion'] = $custom_fields['saswp_course_content_location_region'];
|
1371 |
+
$input1['contentLocation']['address']['PostalCode'] = $custom_fields['saswp_course_content_location_postal_code'];
|
1372 |
+
$input1['contentLocation']['address']['addressCountry'] = $custom_fields['saswp_course_content_location_country'];
|
1373 |
+
|
1374 |
+
}
|
1375 |
|
1376 |
+
if(isset($custom_fields['saswp_course_rating']) && isset($custom_fields['saswp_course_review_count'])){
|
1377 |
+
$input1['aggregateRating']['@type'] = 'AggregateRating';
|
1378 |
+
$input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_course_rating'];
|
1379 |
+
$input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_course_review_count'];
|
1380 |
+
}
|
1381 |
break;
|
1382 |
|
1383 |
case 'DiscussionForumPosting':
|
2122 |
}
|
2123 |
if(isset($custom_fields['saswp_person_schema_date_of_birth'])){
|
2124 |
$input1['birthDate'] = $custom_fields['saswp_person_schema_date_of_birth'];
|
2125 |
+
}
|
|
|
2126 |
if(isset($custom_fields['saswp_person_schema_nationality'])){
|
2127 |
$input1['nationality'] = $custom_fields['saswp_person_schema_nationality'];
|
2128 |
}
|
2132 |
if(isset($custom_fields['saswp_person_schema_job_title'])){
|
2133 |
$input1['jobTitle'] = $custom_fields['saswp_person_schema_job_title'];
|
2134 |
}
|
2135 |
+
if(isset($custom_fields['saswp_person_schema_award'])){
|
2136 |
+
$input1['award'] = $custom_fields['saswp_person_schema_award'];
|
2137 |
+
}
|
2138 |
+
if(isset($custom_fields['saswp_person_schema_brand'])){
|
2139 |
+
$input1['brand'] = $custom_fields['saswp_person_schema_brand'];
|
2140 |
+
}
|
2141 |
+
|
2142 |
+
if(isset($custom_fields['saswp_person_schema_honorific_prefix'])){
|
2143 |
+
$input1['honorificPrefix'] = $custom_fields['saswp_person_schema_honorific_prefix'];
|
2144 |
+
}
|
2145 |
+
if(isset($custom_fields['saswp_person_schema_honorific_suffix'])){
|
2146 |
+
$input1['honorificSuffix'] = $custom_fields['saswp_person_schema_honorific_suffix'];
|
2147 |
+
}
|
2148 |
+
if(isset($custom_fields['saswp_person_schema_qualifications'])){
|
2149 |
+
$input1['hasCredential'] = $custom_fields['saswp_person_schema_qualifications'];
|
2150 |
+
}
|
2151 |
+
if(isset($custom_fields['saswp_person_schema_affiliation'])){
|
2152 |
+
$input1['affiliation'] = $custom_fields['saswp_person_schema_affiliation'];
|
2153 |
+
}
|
2154 |
+
if(isset($custom_fields['saswp_person_schema_alumniof'])){
|
2155 |
+
$input1['alumniOf'] = $custom_fields['saswp_person_schema_alumniof'];
|
2156 |
+
}
|
2157 |
+
if(isset($custom_fields['saswp_person_schema_occupation_name'])){
|
2158 |
+
$input1['hasOccupation']['name'] = $custom_fields['saswp_person_schema_occupation_name'];
|
2159 |
+
}
|
2160 |
+
if(isset($custom_fields['saswp_person_schema_occupation_description'])){
|
2161 |
+
$input1['hasOccupation']['description'] = $custom_fields['saswp_person_schema_occupation_description'];
|
2162 |
+
}
|
2163 |
+
if(isset($custom_fields['saswp_person_schema_occupation_city'])){
|
2164 |
+
$input1['hasOccupation']['occupationLocation']['@type'] = 'City';
|
2165 |
+
$input1['hasOccupation']['occupationLocation']['name'] = $custom_fields['saswp_person_schema_occupation_city'];
|
2166 |
+
}
|
2167 |
+
if(isset($custom_fields['saswp_person_schema_estimated_salary'])){
|
2168 |
+
$input1['hasOccupation']['estimatedSalary']['@type'] = 'MonetaryAmountDistribution';
|
2169 |
+
$input1['hasOccupation']['estimatedSalary']['name'] = 'base';
|
2170 |
+
$input1['hasOccupation']['estimatedSalary']['currency'] = $custom_fields['saswp_person_schema_salary_currency'];
|
2171 |
+
$input1['hasOccupation']['estimatedSalary']['duration'] = $custom_fields['saswp_person_schema_salary_duration'];
|
2172 |
+
|
2173 |
+
$input1['hasOccupation']['estimatedSalary']['percentile10'] = $custom_fields['saswp_person_schema_salary_percentile10'];
|
2174 |
+
$input1['hasOccupation']['estimatedSalary']['percentile25'] = $custom_fields['saswp_person_schema_salary_percentile25'];
|
2175 |
+
$input1['hasOccupation']['estimatedSalary']['median'] = $custom_fields['saswp_person_schema_salary_median'];
|
2176 |
+
$input1['hasOccupation']['estimatedSalary']['percentile75'] = $custom_fields['saswp_person_schema_salary_percentile75'];
|
2177 |
+
$input1['hasOccupation']['estimatedSalary']['percentile90'] = $custom_fields['saswp_person_schema_salary_percentile90'];
|
2178 |
+
}
|
2179 |
+
if(isset($custom_fields['saswp_person_schema_salary_last_reviewed'])){
|
2180 |
+
$input1['hasOccupation']['mainEntityOfPage']['@type'] = 'WebPage';
|
2181 |
+
$input1['hasOccupation']['mainEntityOfPage']['lastReviewed'] = $custom_fields['saswp_person_schema_salary_last_reviewed'];
|
2182 |
+
}
|
2183 |
+
|
2184 |
+
$sameas = array();
|
2185 |
+
if(isset($custom_fields['saswp_person_schema_website'])){
|
2186 |
+
$sameas[] = $custom_fields['saswp_person_schema_website'];
|
2187 |
+
}
|
2188 |
+
if(isset($custom_fields['saswp_person_schema_facebook'])){
|
2189 |
+
$sameas[] = $custom_fields['saswp_person_schema_facebook'];
|
2190 |
+
}
|
2191 |
+
if(isset($custom_fields['saswp_person_schema_twitter'])){
|
2192 |
+
$sameas[] = $custom_fields['saswp_person_schema_twitter'];
|
2193 |
+
}
|
2194 |
+
if(isset($custom_fields['saswp_person_schema_linkedin'])){
|
2195 |
+
$sameas[] = $custom_fields['saswp_person_schema_linkedin'];
|
2196 |
+
}
|
2197 |
+
if($sameas){
|
2198 |
+
$input1['sameAs'] = $sameas;
|
2199 |
+
}
|
2200 |
|
2201 |
break;
|
2202 |
+
|
2203 |
case 'Apartment':
|
2204 |
|
2205 |
if(isset($custom_fields['saswp_apartment_schema_name'])){
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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: 5.4
|
6 |
-
Stable tag: 1.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,6 +120,19 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.9.34 (24 Apr 2020) =
|
124 |
|
125 |
* Fixed: Admin scripts enqueued on all screens #950
|
3 |
Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 1.9.35
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 1.9.35 (30 Apr 2020) =
|
124 |
+
|
125 |
+
* Added: CreativeWorkSeries schema #948
|
126 |
+
* Added: More properties to Person schema #956
|
127 |
+
* Added: More properties to Organization schema #956
|
128 |
+
* Added: More properties to Course schema #957
|
129 |
+
* Fixed: The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering. #839
|
130 |
+
* Fixed: HowTo Gutenberg block, Image URLs go into the text of the itemListElement #958
|
131 |
+
* Fixed: HTML comments are rendering in the contentUrl and embedUrl of video object schema #946
|
132 |
+
* Fixed: Gutenberg comments are not being stripped from article content #949
|
133 |
+
* Fixed: PHP Notices #965
|
134 |
+
|
135 |
+
|
136 |
= 1.9.34 (24 Apr 2020) =
|
137 |
|
138 |
* Fixed: Admin scripts enqueued on all screens #950
|
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.
|
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.
|
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.35
|
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.35');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|