Schema & Structured Data for WP & AMP - Version 1.9.103

Version Description

(21 Oct 2022) =

  • Added: Add the JobTitle field in author schema. #1685
  • Added: Need to Include parent category if only child category is marked. #1703
  • Added: Need to make functionality by default disable FAQ on all pages. #1681
  • Fixed: Option to modify "Author image URL" schema output manually in blogposting schema #1669
  • Fixed: Need to make the feature for enabling/disabling the image for the review collection. #1621
  • Added: Need to add option to edit ID in schema #1609
  • Fixed: Need to add the Attribute "DirectApply" to the JobPosting-schema #1599
  • Fixed: Add the option to edit editor URL manually in article schema. #1690
  • Added: Video object schema is automatically adding without even have videos in them #1754
  • Fixed: Getting PHP error messages after the update #1756
  • Fixed: Conflict issue with web stories(user specific issue) #1746
  • Added: Need to add additional fields in Article Schema #1752
  • Added: Add the "Heading-Tag" selection option in How To block schema. #1712
  • Fixed: Missing fields in the video object schema. #1758
  • Fixed: facing issue on Google Either \"contentUrl\" or \"embedUrl\" should be specified This is a non-critical issue. #1759
  • Added: PHP Notice: Undefined index #1760
  • Added: Warnings are appearing in the article schema if it is modified. #1762
Download this release

Release Info

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

Code changes from version 1.9.102.1 to 1.9.103

admin_section/common-function.php CHANGED
@@ -3619,8 +3619,8 @@ function saswp_get_video_metadata($content = ''){
3619
 
3620
  }
3621
  }
3622
-
3623
- $result = unique_multidim_array($response,'thumbnail_url');
3624
 
3625
  return $result;
3626
  }
@@ -3629,14 +3629,17 @@ function unique_multidim_array($array, $key) {
3629
  $temp_array = array();
3630
  $i = 0;
3631
  $key_array = array();
3632
-
3633
- foreach($array as $val) {
3634
- if (!in_array($val[$key], $key_array)) {
3635
- $key_array[$i] = $val[$key];
3636
- $temp_array[$i] = $val;
 
 
 
 
3637
  }
3638
- $i++;
3639
- }
3640
  return $temp_array;
3641
  }
3642
 
3619
 
3620
  }
3621
  }
3622
+
3623
+ $result = unique_multidim_array($response,'video_url');
3624
 
3625
  return $result;
3626
  }
3629
  $temp_array = array();
3630
  $i = 0;
3631
  $key_array = array();
3632
+ if(!empty($array) && !empty($key)){
3633
+ foreach($array as $val) {
3634
+ if(isset($val[$key])){
3635
+ if (!in_array($val[$key], $key_array)) {
3636
+ $key_array[$i] = $val[$key];
3637
+ $temp_array[$i] = $val;
3638
+ }
3639
+ $i++;
3640
+ }
3641
  }
3642
+ }
 
3643
  return $temp_array;
3644
  }
3645
 
admin_section/css/main-style.css CHANGED
@@ -720,6 +720,9 @@ Compatibility tab css ends
720
  .saswp-knowledge-label label[for="saswp_breadcrumb_remove_cat_checkbox"] {
721
  padding-left: 10px;
722
  }
 
 
 
723
  .saswp-knowledge-label label[for="saswp-woocommerce-booking-checkbox"] {
724
  padding-left: 10px;
725
  }
@@ -1640,7 +1643,7 @@ Collection css starts here
1640
  }
1641
  .saswp-rc-nm{
1642
  width:100%;
1643
- margin-left:10px;
1644
  text-align: initial;
1645
  }
1646
  .saswp_reviewer_image .saswp-rv-img span{
@@ -1701,6 +1704,7 @@ Collection css starts here
1701
  align-items: center;
1702
  color:#666;
1703
  padding-bottom: 8px;
 
1704
  }
1705
  .saswp-dp-dtm{
1706
  margin-top:13px;
720
  .saswp-knowledge-label label[for="saswp_breadcrumb_remove_cat_checkbox"] {
721
  padding-left: 10px;
722
  }
723
+ .saswp-knowledge-label label[for="saswp_breadcrumb_include_parent_cat_checkbox"] {
724
+ padding-left: 10px;
725
+ }
726
  .saswp-knowledge-label label[for="saswp-woocommerce-booking-checkbox"] {
727
  padding-left: 10px;
728
  }
1643
  }
1644
  .saswp-rc-nm{
1645
  width:100%;
1646
+ margin-left:0px;
1647
  text-align: initial;
1648
  }
1649
  .saswp_reviewer_image .saswp-rv-img span{
1704
  align-items: center;
1705
  color:#666;
1706
  padding-bottom: 8px;
1707
+ margin-top: 10px;
1708
  }
1709
  .saswp-dp-dtm{
1710
  margin-top:13px;
admin_section/css/main-style.min.css CHANGED
@@ -1 +1 @@
1
- .saswp-features-blocks li a,.saswp-feedback-panel a,.saswp-r5 a,.saswp-rd3-warp li a,.saswp-settings-second-div a,.saswp-tab-links{text-decoration:none}#saswp-default-rating{width:100px!important}.saswp-settings-container .nav-tab-wrapper,.saswp-social-fileds li{display:flex}.saswp_review_form_toggle_check{margin:10px!important}.saswp-show-form-on-tab{padding:5px;display:inline-block;width:100%}.saswp-show-form-on-tab strong{display:inline-block;width:30%}.saswp-show-form-on-tab input{width:45%;text-align:center}.saswp-disable-btn-container{float:right;padding:10px}.saswp-disable-label{padding:10px;color:#999}.saswp-setup-schema-btn{margin:5px!important}.saswp-static-container .spinner{padding:5px;float:none;margin:0 auto;display:block}.saswp-enable-modify-schema{padding-top:10px;padding-left:10px}.saswp-enable-modify-schema strong,.saswp-r4-b .saswp-r4-str,.updated.notice .dashicons-thumbs-up{margin-right:10px}.saswp-item-list-div{display:flex;width:100%;align-items:center}#saswp_item_list_custom,#saswp_item_list_tags,.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp_warning{color:#ef6c00!important}.hideoldclosebtn,.saswp-display-none,.saswp_hide_imp{display:none!important}#saswp-reviews-cntn,.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide,.saswp-dp-dsg.saswp_hide,.saswp-hide,.saswp-onclick-show,.saswp-sts-active-main.reviews_addon span.saswp-license-tenure,.saswp_hide,a#saswp_license_activation_,a#saswp_license_deactivation_internal,a#saswp_license_deactivationbtn,a.button.button-default.saswp_license_activation.reviews,input.license_key_input_inactive.reviews_addon_inactive{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-amp table,.saswp-general table,.saswp-help table,.saswp-knowledge table,.saswp-schema table,.saswp-settings-form p.submit,.saswp-sts-deactive-main.reviews_addon,.saswp-tools table{margin-top:0}.saswp-amp table td,.saswp-general table td,.saswp-help table td,.saswp-knowledge table td,.saswp-schema table td,.saswp-table-create-onajax table td,.saswp-table-create-onajax table th,.saswp-tools table td{padding:5px}.saswp-amp table th,.saswp-compatibility table th,.saswp-email_schema table th,.saswp-help table th,.saswp-knowledge table th,.saswp-premium_features table th,.saswp-review table th,.saswp-schema table th,.saswp-services table th,.saswp-support table th,.saswp-tools table th{width:auto;padding:0}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-ps-text span,.saswp-settings-list li div label{font-weight:600}.saswp-general h2,.saswp-heading h2,.saswp-help h2,.saswp-knowledge h2,.saswp-schema h2{margin-bottom:0}.saswp-enable-review-on-post label,.saswp_qanda_p{font-weight:500}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent}.saswp-knowledge-base .saswp-knowledge-label,.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-about-contact-page,.saswp-knowledge-base .saswp-knowledge-field,.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-settings-first-div{width:75%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:0;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-facebook-share,.twitter-share-button{box-shadow:0 0 0 #1b95e0!important;color:#fff!important;height:21px!important;border-radius:3px;line-height:20px!important}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-amp .saswp-knowledge-field,.saswp-archive-div .saswp-knowledge-field,.saswp-compatibility .saswp-knowledge-field,.saswp-compativility-div .saswp-knowledge-field,.saswp-email_schema .saswp-knowledge-field,.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-about-contact-page-tooltip,.saswp-amp .saswp-knowledge-label,.saswp-archive-div .saswp-knowledge-label,.saswp-compatibility .saswp-knowledge-label,.saswp-compativility-div .saswp-knowledge-label,.saswp-email_schema .saswp-knowledge-label,.saswp-review .saswp-knowledge-label,.saswp-seller-div .saswp-knowledge-label,.saswp-tools .saswp-knowledge-label{float:left;clear:both}label[for=saswp-single-price-type],label[for=saswp_archive_schema_type]{padding-left:10px}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}#saswp-add-rv-manual,.option-table-class tr td,.saswp-add-rv-title,.saswp-custom-fields-table tr td,.saswp-post-specific-wrapper,.saswp-ps-toggle{padding:10px}.saswp-tab a.selected{color:#555;background-color:#fff}.saswp-tab-links{display:block;padding:12px 14px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:100%;overflow:hidden;box-shadow:none;line-height:20px!important;border-bottom:1px solid #eee}.carousel-preview,.saswp-panel h3,.saswp-r2-strs,.saswp-rvw-ov{text-align:center}#post_specific .inside{padding:0;margin:0}#saswp-compatibility-tabs a,#saswp-global-tabs a,#saswp-review-tabs a,#saswp-tools-tabs a,.saswp-load-more-rv,.saswp-star-rating,.saswp-table-close-new-td,.user_refresh_single_addon,a.saswp-feedback-no-thanks,a.saswp-feedback-remindme,i#user_refresh_expired_addon{cursor:pointer}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn,.option-table-class,.saswp-collection-preview-table,.saswp-collection-settings ul li input,.saswp-custom-fields-table,.saswp-custom-fields-table input,.saswp-g-reviews-settings-table input,.saswp-input-fields select,.saswp-option-table-class input[type=text],.saswp-option-table-class select,.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select,.saswp-post-specific-wrapper select,.saswp-review-content-table input,.saswp-review-content-table select,.saswp-review-content-table textarea,.saswp-review-tables,.saswp-rvw tbody,.saswp-s-reviews-settings-table input,.saswp-social-links-table,.saswp-social-links-table input,.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description,.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-add-collection-loop,.saswp-add-rv-loop,.saswp-add-rv-note,.saswp-enable-review-on-post,.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=number],#sasw-review input[type=text]{width:180px}#saswp-review-item-enable{width:10px}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:30px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp-license-label{display:inline-block;width:400px}.saswp-add-single-rv,.saswp-clear-images{margin-left:10px!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name,.saswp-custom-fields-table tr td:nth-child(3n+3) input,.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:30px;height:16px;border:20px}.saswp-slider,.saswp-slider:before{transition:.4s;border-radius:20px;position:absolute}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#b5b5b5}.saswp-slider:before{content:"";height:10px;width:10px;left:2px;bottom:3px;background-color:#fff}input:checked+.saswp-slider{background-color:#00a0d2;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav{background-color:#f9f9f9;margin-top:0}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}.saswp-tab-nav .selected{width:100.5%;z-index:9999}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.option-table-class tr>td,.saswp-collection-preview-table td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-add-on-plugin label,.saswp-ele-tlt p,.saswp-g-review-header div,.saswp-input-fields a.button-primary,.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox],.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox],.saswp-knowledge-label label[for=saswp_breadcrumb_remove_cat_checkbox],.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox],.saswp-nav-menu-list label{padding-left:10px}.saswp-global-selected{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000;font-weight:500;margin-bottom:-1px}#saswp-global-tabs,#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px}.saswp-athr,.saswp-r5-rng .saswp-rvw-str,.saswp-str{display:inline-block;vertical-align:middle}.saswp-str{width:100%}.saswp-r5-rng .saswp-rvw-str{padding-left:10px;width:auto}.saswp-rv-img img{border-radius:100%}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px;width:70px;margin-right:20px;height:70px;float:left}.saswp-ele-ic img{width:80%;left:10%;position:relative;top:9%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-sts-btn{box-sizing:border-box;margin-top:20px;padding:6px 12px;border:1px solid #e5e5e5;border-radius:3px;display:block;align-items:center;justify-content:space-between}.saswp-pc-wrap,.saswp-rvw-str{display:inline-flex;width:100%}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;float:right;margin-top:-31px}.form-wrap .saswp-sts-txt,.saswp-sts-txt,label.saswp-sts-txt{font-size:14px;color:#000}.saswp-active-input,.saswp-quick-setup,.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul,.saswp-rc-cnt p,.saswp-si .saswp-rc-cnt,.thepros_main_section_outer h3{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rev-btn a,a.saswp-revws-lnk{background:#0085ba;text-decoration:none}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{margin-top:5px}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;margin:10px 0 20px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:25px;height:25px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0}.saswp-rv-img img{max-width:100px}.saswp-r1-aimg img,.saswp-rc-a>img{max-width:56px;min-height:56px;max-height:56px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:100%;box-sizing:border-box}.saswp-upgrade-pro ul li:before{content:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-product_reviews-section-main,.thepros_main_section_outer{background:#f5f5f5;border:1px solid #ccc;padding:20px}.saswp-product_cons-table-div,.saswp-product_pros-table-div{border:none!important}.saswp-table-close,.saswp-table-close-new{color:#000;background:#dddd;padding:4px 6px;border-radius:80px;font-family:sans-serif;font-size:12px;line-height:20px;height:20px;display:inline-block;width:16px;text-align:center}.saswp-product_cons-section-main{margin-top:30px}.saswp-table-close-new:hover,.saswp-table-close:hover{color:#fff!important;background:#000}.saswp-table-close{margin:10px 0 0;float:right;cursor:pointer}.saswp-dynamic-properties{margin-top:0;margin-bottom:30px}.saswp-table-create-onajax select{width:98%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none;box-sizing:border-box}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rd2-warp .saswp-rc,.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;border-radius:5px;color:#fff;font-weight:600;font-size:18px}.saswp-modify-schema-on-taxonomy #saswp_specific_custom textarea,.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.updated.notice p{width:100%;align-items:center}a.saswp-revws-lnk{display:inline-block;padding:12px 20px;color:#fff;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6;cursor:pointer}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-update-notice-btns ul{list-style:inside;margin:0 10px 20px 20px}.saswp-notice-p{font-size:16px;color:#28672d}.saswp-update-notice-btns li a{text-decoration:underline}.saswp-update-notice-btns li{font-size:14px;font-weight:700;line-height:20px}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}.saswp-custom-fields-table .saswp_image_prev{max-width:62px!important}.saswp-custom-fields-table .saswp_prev_close{font-size:15px}.saswp-review-content-table td:nth-child(2){width:50%;float:left}.saswp-add-social-links{margin:3px!important}.saswp-social-links-table td{padding-left:0!important}.saswp-add-dynamic-section,.saswp-collection-preview{padding:0 30px}.saswp-add-dynamic-btn{text-align:center;margin-bottom:10px}.saswp-dynamic-platforms{display:flex;width:100%}.saswp-dynamic-platforms select{margin-right:10px;width:40%}.saswp-add-rv-btn{font-size:25px;margin-left:-8px;padding-top:15px;cursor:pointer}.saswp-remove-coll-rv{position:absolute;top:0;right:0}.saswp-rmv-coll-rv{padding:3px;cursor:pointer}.saswp-collection-placement-post{width:-webkit-fill-available}.saswp-collection-placement-post td{vertical-align:top;width:-webkit-fill-available}.saswp-grid-pagination{display:inline-block;padding:20px}.saswp-grid-pagination a{color:#000;float:left;padding:8px 16px;text-decoration:none}.saswp-grid-pagination a.active{background-color:#4caf50;color:#fff}.saswp-grid-pagination a:hover:not(.active){background-color:#ddd}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap}.saswp-collection-lp{flex:1 0 68%;margin-right:20px;width:68%;background:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);padding-bottom:22px}.saswp-collection-settings{flex:1 0 27%;height:100%;width:28%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-platform-added-list{display:inline-block;width:100%;margin-top:10px}.saswp-collection-title input{width:96%;padding:3px 8px;font-size:15px;line-height:2;height:1.7em;outline:0;margin:0 0 3px;background-color:#fff;color:#32373c}.saswp-collection-title{margin-bottom:10px;padding:10px;background:#f5f5f5;border-bottom:1px solid #ddd}.saswp-r1{margin-bottom:50px;text-align:center}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative}.saswp-r1 .saswp-rc-lg{position:absolute;right:-5px}.saswp-r1-aimg img{float:left;border-radius:100px}.saswp-rc-a>img{margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:25px;height:25px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%;text-align:left}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-dp-dsg,.saswp-r3-lg{align-items:center;width:100%}.saswp-rc-nm{width:100%;margin-left:10px;text-align:initial}.saswp_reviewer_image .saswp-rv-img span{vertical-align:top}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-accordion-panel,.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-collection-settings ul{margin:0;padding:0}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;grid-gap:0px 5px;color:#666;padding-bottom:8px}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px;max-height:30px;max-width:100%}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:.5s ease-in-out;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:180px 57px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden}.saswp-collection-settings a.saswp-add-to-collection{text-align:center;height:30px;font-weight:400;position:relative;top:1px;line-height:27px}.wp-core-ui a.button.saswp-remove-platform{background:0 0;border:none;padding:0;margin-left:6px;min-height:0}.wp-core-ui a.button.saswp-remove-platform:hover{color:#c00}.wp-core-ui a.button.saswp-remove-platform:after{content:"\f153";display:block;font:16px/20px dashicons}.cancel-btn{margin-right:10px;margin-bottom:5px;float:left;display:inline-flex}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:20px/1 dashicons;speak:none;display:block;position:absolute;color:#72777c;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-sv-btn{background:#f5f5f5;padding:8px 10px;text-align:right;width:100%;box-sizing:border-box}.saswp-collection-settings .button-primary{width:89px;margin:0;display:inline-block;padding:2px 0}.saswp-collection-shortcode{color:#555;margin-top:10px;padding:4px;background:#f1f1f1;display:inline-block;border:1px solid #ddd;margin-left:75px}.saswp-rd3-warp ul{padding:0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-rd3-warp li{box-shadow:0 2px 5px 0 rgba(0,0,0,.26);margin:0}.saswp-r3-lg{background:#ededed;display:flex;justify-content:center;padding:6px 8px;box-sizing:border-box}.saswp-r3-lg span img{width:18px;height:18px;margin-right:10px}.saswp-lg,.saswp-r3-lg span,span.saswp-mines{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-r3-rtng{padding:13px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:10px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-rd3-warp .saswp-rvw-str .df-clr,.saswp-rd3-warp .saswp-rvw-str .half-str,.saswp-rd3-warp .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r5{position:fixed;bottom:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:.3s ease-in;display:none}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r .saswp-r5-rng .saswp-rvw-str{padding-left:0;margin-bottom:3px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px}.saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;max-height:40px;left:20PX;border-radius:10px 0 0 10px;top:2px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:5px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-rng span.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0}.saswp-open-class.saswp-popup-btn{width:300px}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show,.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt h3{margin:10px 0 8px!important;font-size:18px;color:#333;font-weight:500}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px;color:#666}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:5px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial;height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before,.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative}.saswp-r2-b{padding:20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9;position:relative;top:10px}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:11px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(-45deg);position:relative;top:11px;right:-9px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-slider-dots .saswp-dot{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-slider-dots .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:40%}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-slider-dots{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro a{padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px;background:#43a047}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block;margin:0}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f;border-radius:8px}.saswp-upgrade-pro.promo-cpn h2{color:#2e7d32;font-size:24px;text-align:center;margin:0 0 20px}.saswp-upgrade-pro.promo-cpn span{text-align:center;font-size:14px;display:inline-block;color:#777;padding:0 20px;box-sizing:border-box;line-height:1.4;font-weight:400}.saswp-promo{font-size:20px;margin-top:15px;width:100%;text-align:center}.saswp-upgrade-pro.promo-cpn .prm-txt{display:block;line-height:1}.saswp-upgrade-pro.promo-cpn .saswp-promo .prm-cpn{border:1px dashed #1b5e20;border-radius:100px;margin-top:5px;color:#388e3c;font-size:20px;padding:2px 15px}.saswp-upgrade-pro{border-radius:8px}.saswp-thick-box-container{width:580px}#saswp-add-rv-automatic,#saswp-add-rv-collection{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.close-attached-reviews-popup{float:right;margin-right:20px!important}.saswp-accept-rv-container{margin-right:20px}.saswp-post-specific-setting{border-bottom:1px solid #eee;text-align:center;padding-bottom:10px}.saswp-ps-text{padding:20px 5px}.saswp-stars-post-table td{padding:2px}.saswp-modify-schema-on-taxonomy td{background:#fff}.saswp-modify-schema-on-taxonomy .form-table th{width:auto!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=text]{width:75%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=button]{width:24%!important}.activated-plugins{position:relative;display:inline-block;color:#222;font-size:14px;letter-spacing:0;right:5px;margin-left:4px}.saswppro_icon:before{content:"\f147";background:#388e3c;border-radius:40px;color:#fff;position:relative;left:1px;padding:1px 1px 0 0;top:1px;margin:0;font-size:14px}.pro_icon{margin:1px 0 0 3px;font-size:16px;right:5px}.expiredinner_span,.lifetime_{color:green}i.dashicons-before.dashicons-admin-generic{color:#666}#exp,.expire_msg,span.one_of_expired{color:red}.dashicons-no{background:red;color:#fff;border-radius:10px;position:relative;font-size:15px}.dashicons-no:before{content:"\f158";top:3px;position:relative;left:0}.saswp-addon-alert{color:red;font-size:14px;letter-spacing:0;cursor:default}.dashicons-alert::before{content:"\f534";background:#ffb900;border-radius:40px;color:#fff;padding:4px 3px 4px 4px;top:0;right:9px;margin:0;position:relative}a.renewal-license{margin-left:5px;font-size:12px!important;padding:4px 10px 5px;letter-spacing:.1px;border-radius:60px;margin-right:0;background:#388e3c;color:#fff;box-shadow:0 .15em .65em 0 rgb(0 0 0 / 25%);text-decoration:none}.ext_settings_url,a.ext_url{text-decoration:unset}.sasfwp_key_user_name{font-weight:700}.before_msg_active,.saswp_addon_inactive{margin-left:3px}.ext_settings_url{margin-left:8px}.sasfwp-main{float:right;background-color:#fff;border:8px solid #fff;border-radius:21px;padding:1px 0 0 7px}.sasfwp-main .activated-plugins{color:#222}span#saswp-addon-dashicons-yes{top:20px;left:60px;position:relative;margin:0;font-size:16px}p.saswp_license_status_msg{display:inline-block;margin:0 0 0 7px;position:relative;bottom:10px}span#saswp-addon-dashicons-no{display:none;position:relative;top:22px;left:59px}.saswp-d-btn-1,.saswp-d-btn-2,.saswp-d-btn-3{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;display:inline-block}.saswp-reviews-dashicons{float:right;left:-163px}.license_key_input_inactive{display:inline-block;bottom:8px;position:relative}.saswp-addon-no{position:relative;display:block}span.saswp_addon_icon.dashicons.dashicons-yes.pro_icon{top:0;position:relative}p#enter_key_reviews,p#enter_key_woocommerce{position:relative;top:20px}p.enter_key_Reviews{position:relative;top:8px}input.license_key_input_active::placeholder{color:#000}.saswp-sts-active-main,.saswp-sts-deactive-main{margin-top:-21px;padding:6px 15px}span.addon-activated{color:green;padding-left:5px}.saswp-deactive-input.woocommerce_addon{margin:-49px 0 0}.saswp-addon-sub-inactive.woocommerce{margin:29px 0 0}.saswp-sts-deactive-main.woocommerce_addon{margin-top:0;padding:1px 15px}.saswp-active-inputbtn.woocommerce_addon{position:relative;bottom:20px}.saswp-woocommerce-dashicons{float:right;top:20px;left:14px;position:relative;margin:0;font-size:16px}span.saswp-woocommerce-addondashicon-yes{position:relative;right:51px}.saswp-addon-sub-inactive.reviews{margin-top:-20px}.saswp-active-inputbtn.reviews_addon{bottom:18px;position:relative}input.reviewslicense_key_input_inactive.reviews_addon_inactive{margin:0 0 0 10px}span.limit_span{font-weight:400;color:#646970}.license_key_input_inactive{top:0}span.inactive_status_reviews,span.reviews_inactive{padding-left:5px;font-weight:400}.form-wrap label{padding:8px 0;display:block}.saswp-sts-active-main.reviews_addon{margin:-7px 0 0 -1em}input.license_key_input_active,input.license_key_input_inactive{margin-left:10px}.saswp-sts-active-main.woocommerce_addon{margin-top:-4px}label.saswp-sts-txt.inactive{padding:10px 0 6px 16px}.inner_span_expiring{color:red;margin-right:2px}.pro_warning,.saswppro_alert{color:#ffb229;position:relative}i#refresh_expired_addon,i#refresh_license_icon_top{cursor:pointer;display:none}.dashicons.spin{animation:2s linear infinite dashicons-spin}@keyframes dashicons-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}span#lic_exp{color:red;margin-left:4px}.pro_warning{right:3px;bottom:1px}.saswppro_alert{top:2px;right:1px}#lic_active{color:green;margin-left:8px}.lic_is_active{color:#000}#lic_inactive{color:#bebfc0;margin-left:8px}.less_than_zero{color:red;cursor:default}.saswp_pro_alert,.single_addon_warning{color:#ffb229}.saswp-license-tenure{display:inline-block;margin-top:8px}.before_msg{margin-left:4px;cursor:default}span.renew-lic{font-size:14px}.saswp_inactive_key{color:#bebfc0;padding-left:5px}label.saswp-sts-txt.active{font-weight:400}span.inactive_Reviews{font-weight:400;font-size:14px;color:#000}
1
+ .saswp-features-blocks li a,.saswp-feedback-panel a,.saswp-r5 a,.saswp-rd3-warp li a,.saswp-settings-second-div a,.saswp-tab-links{text-decoration:none}#saswp-default-rating{width:100px!important}.saswp-settings-container .nav-tab-wrapper,.saswp-social-fileds li{display:flex}.saswp_review_form_toggle_check{margin:10px!important}.saswp-show-form-on-tab{padding:5px;display:inline-block;width:100%}.saswp-show-form-on-tab strong{display:inline-block;width:30%}.saswp-show-form-on-tab input{width:45%;text-align:center}.saswp-disable-btn-container{float:right;padding:10px}.saswp-disable-label{padding:10px;color:#999}.saswp-setup-schema-btn{margin:5px!important}.saswp-static-container .spinner{padding:5px;float:none;margin:0 auto;display:block}.saswp-enable-modify-schema{padding-top:10px;padding-left:10px}.saswp-enable-modify-schema strong,.saswp-r4-b .saswp-r4-str,.updated.notice .dashicons-thumbs-up{margin-right:10px}.saswp-item-list-div{display:flex;width:100%;align-items:center}#saswp_item_list_custom,#saswp_item_list_tags,.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp_warning{color:#ef6c00!important}.hideoldclosebtn,.saswp-display-none,.saswp_hide_imp{display:none!important}#saswp-reviews-cntn,.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide,.saswp-dp-dsg.saswp_hide,.saswp-hide,.saswp-onclick-show,.saswp-sts-active-main.reviews_addon span.saswp-license-tenure,.saswp_hide,a#saswp_license_activation_,a#saswp_license_deactivation_internal,a#saswp_license_deactivationbtn,a.button.button-default.saswp_license_activation.reviews,input.license_key_input_inactive.reviews_addon_inactive{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-amp table,.saswp-general table,.saswp-help table,.saswp-knowledge table,.saswp-schema table,.saswp-settings-form p.submit,.saswp-sts-deactive-main.reviews_addon,.saswp-tools table{margin-top:0}.saswp-amp table td,.saswp-general table td,.saswp-help table td,.saswp-knowledge table td,.saswp-schema table td,.saswp-table-create-onajax table td,.saswp-table-create-onajax table th,.saswp-tools table td{padding:5px}.saswp-amp table th,.saswp-compatibility table th,.saswp-email_schema table th,.saswp-help table th,.saswp-knowledge table th,.saswp-premium_features table th,.saswp-review table th,.saswp-schema table th,.saswp-services table th,.saswp-support table th,.saswp-tools table th{width:auto;padding:0}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-ps-text span,.saswp-settings-list li div label{font-weight:600}.saswp-general h2,.saswp-heading h2,.saswp-help h2,.saswp-knowledge h2,.saswp-schema h2{margin-bottom:0}.saswp-enable-review-on-post label,.saswp_qanda_p{font-weight:500}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent}.saswp-knowledge-base .saswp-knowledge-label,.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-about-contact-page,.saswp-knowledge-base .saswp-knowledge-field,.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-settings-first-div{width:75%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:0;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-facebook-share,.twitter-share-button{box-shadow:0 0 0 #1b95e0!important;color:#fff!important;height:21px!important;border-radius:3px;line-height:20px!important}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-amp .saswp-knowledge-field,.saswp-archive-div .saswp-knowledge-field,.saswp-compatibility .saswp-knowledge-field,.saswp-compativility-div .saswp-knowledge-field,.saswp-email_schema .saswp-knowledge-field,.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-about-contact-page-tooltip,.saswp-amp .saswp-knowledge-label,.saswp-archive-div .saswp-knowledge-label,.saswp-compatibility .saswp-knowledge-label,.saswp-compativility-div .saswp-knowledge-label,.saswp-email_schema .saswp-knowledge-label,.saswp-review .saswp-knowledge-label,.saswp-seller-div .saswp-knowledge-label,.saswp-tools .saswp-knowledge-label{float:left;clear:both}label[for=saswp-single-price-type],label[for=saswp_archive_schema_type]{padding-left:10px}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}#saswp-add-rv-manual,.option-table-class tr td,.saswp-add-rv-title,.saswp-custom-fields-table tr td,.saswp-post-specific-wrapper,.saswp-ps-toggle{padding:10px}.saswp-tab a.selected{color:#555;background-color:#fff}.saswp-tab-links{display:block;padding:12px 14px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:100%;overflow:hidden;box-shadow:none;line-height:20px!important;border-bottom:1px solid #eee}.carousel-preview,.saswp-panel h3,.saswp-r2-strs,.saswp-rvw-ov{text-align:center}#post_specific .inside{padding:0;margin:0}#saswp-compatibility-tabs a,#saswp-global-tabs a,#saswp-review-tabs a,#saswp-tools-tabs a,.saswp-load-more-rv,.saswp-star-rating,.saswp-table-close-new-td,.user_refresh_single_addon,a.saswp-feedback-no-thanks,a.saswp-feedback-remindme,i#user_refresh_expired_addon{cursor:pointer}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn,.option-table-class,.saswp-collection-preview-table,.saswp-collection-settings ul li input,.saswp-custom-fields-table,.saswp-custom-fields-table input,.saswp-g-reviews-settings-table input,.saswp-input-fields select,.saswp-option-table-class input[type=text],.saswp-option-table-class select,.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select,.saswp-post-specific-wrapper select,.saswp-review-content-table input,.saswp-review-content-table select,.saswp-review-content-table textarea,.saswp-review-tables,.saswp-rvw tbody,.saswp-s-reviews-settings-table input,.saswp-social-links-table,.saswp-social-links-table input,.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description,.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-add-collection-loop,.saswp-add-rv-loop,.saswp-add-rv-note,.saswp-enable-review-on-post,.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=number],#sasw-review input[type=text]{width:180px}#saswp-review-item-enable{width:10px}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:30px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp-license-label{display:inline-block;width:400px}.saswp-add-single-rv,.saswp-clear-images{margin-left:10px!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name,.saswp-custom-fields-table tr td:nth-child(3n+3) input,.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:30px;height:16px;border:20px}.saswp-slider,.saswp-slider:before{transition:.4s;border-radius:20px;position:absolute}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#b5b5b5}.saswp-slider:before{content:"";height:10px;width:10px;left:2px;bottom:3px;background-color:#fff}input:checked+.saswp-slider{background-color:#00a0d2;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav{background-color:#f9f9f9;margin-top:0}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}.saswp-tab-nav .selected{width:100.5%;z-index:9999}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.option-table-class tr>td,.saswp-collection-preview-table td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-add-on-plugin label,.saswp-ele-tlt p,.saswp-g-review-header div,.saswp-input-fields a.button-primary,.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox],.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox],.saswp-knowledge-label label[for=saswp_breadcrumb_include_parent_cat_checkbox],.saswp-knowledge-label label[for=saswp_breadcrumb_remove_cat_checkbox],.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox],.saswp-nav-menu-list label{padding-left:10px}.saswp-global-selected{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000;font-weight:500;margin-bottom:-1px}#saswp-global-tabs,#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px}.saswp-athr,.saswp-r5-rng .saswp-rvw-str,.saswp-str{display:inline-block;vertical-align:middle}.saswp-str{width:100%}.saswp-r5-rng .saswp-rvw-str{padding-left:10px;width:auto}.saswp-rv-img img{border-radius:100%}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px;width:70px;margin-right:20px;height:70px;float:left}.saswp-ele-ic img{width:80%;left:10%;position:relative;top:9%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-sts-btn{box-sizing:border-box;margin-top:20px;padding:6px 12px;border:1px solid #e5e5e5;border-radius:3px;display:block;align-items:center;justify-content:space-between}.saswp-pc-wrap,.saswp-rvw-str{display:inline-flex;width:100%}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;float:right;margin-top:-31px}.form-wrap .saswp-sts-txt,.saswp-sts-txt,label.saswp-sts-txt{font-size:14px;color:#000}.saswp-active-input,.saswp-quick-setup,.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul,.saswp-rc-cnt p,.saswp-si .saswp-rc-cnt,.thepros_main_section_outer h3{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rev-btn a,a.saswp-revws-lnk{background:#0085ba;text-decoration:none}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{margin-top:5px}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;margin:10px 0 20px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:25px;height:25px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0}.saswp-rv-img img{max-width:100px}.saswp-r1-aimg img,.saswp-rc-a>img{max-width:56px;min-height:56px;max-height:56px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:100%;box-sizing:border-box}.saswp-upgrade-pro ul li:before{content:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-product_reviews-section-main,.thepros_main_section_outer{background:#f5f5f5;border:1px solid #ccc;padding:20px}.saswp-product_cons-table-div,.saswp-product_pros-table-div{border:none!important}.saswp-table-close,.saswp-table-close-new{color:#000;background:#dddd;padding:4px 6px;border-radius:80px;font-family:sans-serif;font-size:12px;line-height:20px;height:20px;display:inline-block;width:16px;text-align:center}.saswp-product_cons-section-main{margin-top:30px}.saswp-table-close-new:hover,.saswp-table-close:hover{color:#fff!important;background:#000}.saswp-table-close{margin:10px 0 0;float:right;cursor:pointer}.saswp-dynamic-properties{margin-top:0;margin-bottom:30px}.saswp-table-create-onajax select{width:98%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none;box-sizing:border-box}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rd2-warp .saswp-rc,.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;border-radius:5px;color:#fff;font-weight:600;font-size:18px}.saswp-modify-schema-on-taxonomy #saswp_specific_custom textarea,.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.updated.notice p{width:100%;align-items:center}a.saswp-revws-lnk{display:inline-block;padding:12px 20px;color:#fff;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6;cursor:pointer}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-update-notice-btns ul{list-style:inside;margin:0 10px 20px 20px}.saswp-notice-p{font-size:16px;color:#28672d}.saswp-update-notice-btns li a{text-decoration:underline}.saswp-update-notice-btns li{font-size:14px;font-weight:700;line-height:20px}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}.saswp-custom-fields-table .saswp_image_prev{max-width:62px!important}.saswp-custom-fields-table .saswp_prev_close{font-size:15px}.saswp-review-content-table td:nth-child(2){width:50%;float:left}.saswp-add-social-links{margin:3px!important}.saswp-social-links-table td{padding-left:0!important}.saswp-add-dynamic-section,.saswp-collection-preview{padding:0 30px}.saswp-add-dynamic-btn{text-align:center;margin-bottom:10px}.saswp-dynamic-platforms{display:flex;width:100%}.saswp-dynamic-platforms select{margin-right:10px;width:40%}.saswp-add-rv-btn{font-size:25px;margin-left:-8px;padding-top:15px;cursor:pointer}.saswp-remove-coll-rv{position:absolute;top:0;right:0}.saswp-rmv-coll-rv{padding:3px;cursor:pointer}.saswp-collection-placement-post{width:-webkit-fill-available}.saswp-collection-placement-post td{vertical-align:top;width:-webkit-fill-available}.saswp-grid-pagination{display:inline-block;padding:20px}.saswp-grid-pagination a{color:#000;float:left;padding:8px 16px;text-decoration:none}.saswp-grid-pagination a.active{background-color:#4caf50;color:#fff}.saswp-grid-pagination a:hover:not(.active){background-color:#ddd}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap}.saswp-collection-lp{flex:1 0 68%;margin-right:20px;width:68%;background:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);padding-bottom:22px}.saswp-collection-settings{flex:1 0 27%;height:100%;width:28%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-platform-added-list{display:inline-block;width:100%;margin-top:10px}.saswp-collection-title input{width:96%;padding:3px 8px;font-size:15px;line-height:2;height:1.7em;outline:0;margin:0 0 3px;background-color:#fff;color:#32373c}.saswp-collection-title{margin-bottom:10px;padding:10px;background:#f5f5f5;border-bottom:1px solid #ddd}.saswp-r1{margin-bottom:50px;text-align:center}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative}.saswp-r1 .saswp-rc-lg{position:absolute;right:-5px}.saswp-r1-aimg img{float:left;border-radius:100px}.saswp-rc-a>img{margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:25px;height:25px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%;text-align:left}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-dp-dsg,.saswp-r3-lg{align-items:center;width:100%}.saswp-rc-nm{width:100%;margin-left:0;text-align:initial}.saswp_reviewer_image .saswp-rv-img span{vertical-align:top}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-accordion-panel,.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-collection-settings ul{margin:0;padding:0}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;grid-gap:0px 5px;color:#666;padding-bottom:8px;margin-top:10px}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px;max-height:30px;max-width:100%}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:.5s ease-in-out;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:180px 57px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden}.saswp-collection-settings a.saswp-add-to-collection{text-align:center;height:30px;font-weight:400;position:relative;top:1px;line-height:27px}.wp-core-ui a.button.saswp-remove-platform{background:0 0;border:none;padding:0;margin-left:6px;min-height:0}.wp-core-ui a.button.saswp-remove-platform:hover{color:#c00}.wp-core-ui a.button.saswp-remove-platform:after{content:"\f153";display:block;font:16px/20px dashicons}.cancel-btn{margin-right:10px;margin-bottom:5px;float:left;display:inline-flex}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:20px/1 dashicons;speak:none;display:block;position:absolute;color:#72777c;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-sv-btn{background:#f5f5f5;padding:8px 10px;text-align:right;width:100%;box-sizing:border-box}.saswp-collection-settings .button-primary{width:89px;margin:0;display:inline-block;padding:2px 0}.saswp-collection-shortcode{color:#555;margin-top:10px;padding:4px;background:#f1f1f1;display:inline-block;border:1px solid #ddd;margin-left:75px}.saswp-rd3-warp ul{padding:0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-rd3-warp li{box-shadow:0 2px 5px 0 rgba(0,0,0,.26);margin:0}.saswp-r3-lg{background:#ededed;display:flex;justify-content:center;padding:6px 8px;box-sizing:border-box}.saswp-r3-lg span img{width:18px;height:18px;margin-right:10px}.saswp-lg,.saswp-r3-lg span,span.saswp-mines{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-r3-rtng{padding:13px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:10px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-rd3-warp .saswp-rvw-str .df-clr,.saswp-rd3-warp .saswp-rvw-str .half-str,.saswp-rd3-warp .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r5{position:fixed;bottom:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:.3s ease-in;display:none}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r .saswp-r5-rng .saswp-rvw-str{padding-left:0;margin-bottom:3px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px}.saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;max-height:40px;left:20PX;border-radius:10px 0 0 10px;top:2px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:5px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-rng span.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0}.saswp-open-class.saswp-popup-btn{width:300px}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show,.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt h3{margin:10px 0 8px!important;font-size:18px;color:#333;font-weight:500}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px;color:#666}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:5px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial;height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before,.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative}.saswp-r2-b{padding:20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9;position:relative;top:10px}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:11px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(-45deg);position:relative;top:11px;right:-9px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-slider-dots .saswp-dot{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-slider-dots .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:40%}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-slider-dots{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro a{padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px;background:#43a047}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block;margin:0}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f;border-radius:8px}.saswp-upgrade-pro.promo-cpn h2{color:#2e7d32;font-size:24px;text-align:center;margin:0 0 20px}.saswp-upgrade-pro.promo-cpn span{text-align:center;font-size:14px;display:inline-block;color:#777;padding:0 20px;box-sizing:border-box;line-height:1.4;font-weight:400}.saswp-promo{font-size:20px;margin-top:15px;width:100%;text-align:center}.saswp-upgrade-pro.promo-cpn .prm-txt{display:block;line-height:1}.saswp-upgrade-pro.promo-cpn .saswp-promo .prm-cpn{border:1px dashed #1b5e20;border-radius:100px;margin-top:5px;color:#388e3c;font-size:20px;padding:2px 15px}.saswp-upgrade-pro{border-radius:8px}.saswp-thick-box-container{width:580px}#saswp-add-rv-automatic,#saswp-add-rv-collection{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.close-attached-reviews-popup{float:right;margin-right:20px!important}.saswp-accept-rv-container{margin-right:20px}.saswp-post-specific-setting{border-bottom:1px solid #eee;text-align:center;padding-bottom:10px}.saswp-ps-text{padding:20px 5px}.saswp-stars-post-table td{padding:2px}.saswp-modify-schema-on-taxonomy td{background:#fff}.saswp-modify-schema-on-taxonomy .form-table th{width:auto!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=text]{width:75%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=button]{width:24%!important}.activated-plugins{position:relative;display:inline-block;color:#222;font-size:14px;letter-spacing:0;right:5px;margin-left:4px}.saswppro_icon:before{content:"\f147";background:#388e3c;border-radius:40px;color:#fff;position:relative;left:1px;padding:1px 1px 0 0;top:1px;margin:0;font-size:14px}.pro_icon{margin:1px 0 0 3px;font-size:16px;right:5px}.expiredinner_span,.lifetime_{color:green}i.dashicons-before.dashicons-admin-generic{color:#666}#exp,.expire_msg,span.one_of_expired{color:red}.dashicons-no{background:red;color:#fff;border-radius:10px;position:relative;font-size:15px}.dashicons-no:before{content:"\f158";top:3px;position:relative;left:0}.saswp-addon-alert{color:red;font-size:14px;letter-spacing:0;cursor:default}.dashicons-alert::before{content:"\f534";background:#ffb900;border-radius:40px;color:#fff;padding:4px 3px 4px 4px;top:0;right:9px;margin:0;position:relative}a.renewal-license{margin-left:5px;font-size:12px!important;padding:4px 10px 5px;letter-spacing:.1px;border-radius:60px;margin-right:0;background:#388e3c;color:#fff;box-shadow:0 .15em .65em 0 rgb(0 0 0 / 25%);text-decoration:none}.ext_settings_url,a.ext_url{text-decoration:unset}.sasfwp_key_user_name{font-weight:700}.before_msg_active,.saswp_addon_inactive{margin-left:3px}.ext_settings_url{margin-left:8px}.sasfwp-main{float:right;background-color:#fff;border:8px solid #fff;border-radius:21px;padding:1px 0 0 7px}.sasfwp-main .activated-plugins{color:#222}span#saswp-addon-dashicons-yes{top:20px;left:60px;position:relative;margin:0;font-size:16px}p.saswp_license_status_msg{display:inline-block;margin:0 0 0 7px;position:relative;bottom:10px}span#saswp-addon-dashicons-no{display:none;position:relative;top:22px;left:59px}.saswp-d-btn-1,.saswp-d-btn-2,.saswp-d-btn-3{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;display:inline-block}.saswp-reviews-dashicons{float:right;left:-163px}.license_key_input_inactive{display:inline-block;bottom:8px;position:relative}.saswp-addon-no{position:relative;display:block}span.saswp_addon_icon.dashicons.dashicons-yes.pro_icon{top:0;position:relative}p#enter_key_reviews,p#enter_key_woocommerce{position:relative;top:20px}p.enter_key_Reviews{position:relative;top:8px}input.license_key_input_active::placeholder{color:#000}.saswp-sts-active-main,.saswp-sts-deactive-main{margin-top:-21px;padding:6px 15px}span.addon-activated{color:green;padding-left:5px}.saswp-deactive-input.woocommerce_addon{margin:-49px 0 0}.saswp-addon-sub-inactive.woocommerce{margin:29px 0 0}.saswp-sts-deactive-main.woocommerce_addon{margin-top:0;padding:1px 15px}.saswp-active-inputbtn.woocommerce_addon{position:relative;bottom:20px}.saswp-woocommerce-dashicons{float:right;top:20px;left:14px;position:relative;margin:0;font-size:16px}span.saswp-woocommerce-addondashicon-yes{position:relative;right:51px}.saswp-addon-sub-inactive.reviews{margin-top:-20px}.saswp-active-inputbtn.reviews_addon{bottom:18px;position:relative}input.reviewslicense_key_input_inactive.reviews_addon_inactive{margin:0 0 0 10px}span.limit_span{font-weight:400;color:#646970}.license_key_input_inactive{top:0}span.inactive_status_reviews,span.reviews_inactive{padding-left:5px;font-weight:400}.form-wrap label{padding:8px 0;display:block}.saswp-sts-active-main.reviews_addon{margin:-7px 0 0 -1em}input.license_key_input_active,input.license_key_input_inactive{margin-left:10px}.saswp-sts-active-main.woocommerce_addon{margin-top:-4px}label.saswp-sts-txt.inactive{padding:10px 0 6px 16px}.inner_span_expiring{color:red;margin-right:2px}.pro_warning,.saswppro_alert{color:#ffb229;position:relative}i#refresh_expired_addon,i#refresh_license_icon_top{cursor:pointer;display:none}.dashicons.spin{animation:2s linear infinite dashicons-spin}@keyframes dashicons-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}span#lic_exp{color:red;margin-left:4px}.pro_warning{right:3px;bottom:1px}.saswppro_alert{top:2px;right:1px}#lic_active{color:green;margin-left:8px}.lic_is_active{color:#000}#lic_inactive{color:#bebfc0;margin-left:8px}.less_than_zero{color:red;cursor:default}.saswp_pro_alert,.single_addon_warning{color:#ffb229}.saswp-license-tenure{display:inline-block;margin-top:8px}.before_msg{margin-left:4px;cursor:default}span.renew-lic{font-size:14px}.saswp_inactive_key{color:#bebfc0;padding-left:5px}label.saswp-sts-txt.active{font-weight:400}span.inactive_Reviews{font-weight:400;font-size:14px;color:#000}
admin_section/js/functions-list.js CHANGED
@@ -801,7 +801,7 @@
801
 
802
  }
803
 
804
- function saswp_review_desing_for_slider(value){
805
 
806
  var date_str = saswp_convert_datetostring(value.saswp_review_date);
807
  if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
@@ -827,7 +827,9 @@
827
  html += '</div>';
828
  html += '<div class="saswp-rc">';
829
  html += '<div class="saswp-rc-a">';
830
- html += '<img src="'+value.saswp_reviewer_image+'"/>';
 
 
831
  html += '<div class="saswp-rc-nm">';
832
  html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
833
  html += '<span class="saswp-rc-dt">'+date_str.date+'</span>';
@@ -843,7 +845,7 @@
843
 
844
  }
845
 
846
- function saswp_create_collection_slider(slider, arrow, dots){
847
 
848
  var html = '';
849
  if(saswp_total_collection.length > 0){
@@ -863,7 +865,7 @@
863
 
864
  html += '<div class="saswp-si">';
865
 
866
- html += saswp_review_desing_for_slider(value);
867
 
868
  html += '</div>';
869
 
@@ -883,7 +885,7 @@
883
 
884
  jQuery.each(p_value, function(index, value){
885
 
886
- html += saswp_review_desing_for_slider(value);
887
 
888
  });
889
 
@@ -1233,7 +1235,7 @@
1233
  }
1234
 
1235
 
1236
- function saswp_create_collection_grid(cols, pagination, perpage, offset, nextpage){
1237
 
1238
  var html = '';
1239
  var grid_cols = '';
@@ -1274,9 +1276,11 @@
1274
  html += '<li>';
1275
  html += '<div class="saswp-rc">';
1276
  html += '<div class="saswp-rc-a">';
1277
- html += '<div class="saswp-r1-aimg">';
1278
- html += '<img src="'+value.saswp_reviewer_image+'" width="56" height="56"/>';
1279
- html += '</div>';
 
 
1280
  html += '<div class="saswp-rc-nm">';
1281
  html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
1282
  html += saswp_create_rating_html_by_value(value.saswp_review_rating);
@@ -1349,19 +1353,19 @@
1349
 
1350
  }
1351
 
1352
- function saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_visibility, pagination, perpage, offset, nextpage){
1353
 
1354
  switch(design) {
1355
 
1356
  case "grid":
1357
 
1358
- saswp_create_collection_grid(cols, pagination, perpage, offset, nextpage);
1359
 
1360
  break;
1361
 
1362
  case 'gallery':
1363
 
1364
- saswp_create_collection_slider(slider, arrow, dots);
1365
 
1366
  break;
1367
 
@@ -1402,7 +1406,15 @@
1402
  var offset = 0;
1403
  var nextpage = perpage;
1404
  var s_rating_enable = false;
 
 
1405
 
 
 
 
 
 
 
1406
  if(jQuery("#saswp-coll-pagination").is(":checked")){
1407
  pagination = true;
1408
  var data_id = saswp_grid_page;
@@ -1434,7 +1446,7 @@
1434
  saswp_create_total_collection( s_rating_enable, s_rating_val );
1435
  saswp_collection_sorting(sorting);
1436
  saswp_collection_total_reviews_id();
1437
- saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_inverval, pagination, perpage, offset, nextpage);
1438
 
1439
  }
1440
 
801
 
802
  }
803
 
804
+ function saswp_review_desing_for_slider(value, saswp_collection_gallery_img_hide){
805
 
806
  var date_str = saswp_convert_datetostring(value.saswp_review_date);
807
  if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
827
  html += '</div>';
828
  html += '<div class="saswp-rc">';
829
  html += '<div class="saswp-rc-a">';
830
+ if(saswp_collection_gallery_img_hide !=1){
831
+ html += '<img src="'+value.saswp_reviewer_image+'"/>';
832
+ }
833
  html += '<div class="saswp-rc-nm">';
834
  html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
835
  html += '<span class="saswp-rc-dt">'+date_str.date+'</span>';
845
 
846
  }
847
 
848
+ function saswp_create_collection_slider(slider, arrow, dots, saswp_collection_gallery_img_hide){
849
 
850
  var html = '';
851
  if(saswp_total_collection.length > 0){
865
 
866
  html += '<div class="saswp-si">';
867
 
868
+ html += saswp_review_desing_for_slider(value, saswp_collection_gallery_img_hide);
869
 
870
  html += '</div>';
871
 
885
 
886
  jQuery.each(p_value, function(index, value){
887
 
888
+ html += saswp_review_desing_for_slider(value, saswp_collection_gallery_img_hide);
889
 
890
  });
891
 
1235
  }
1236
 
1237
 
1238
+ function saswp_create_collection_grid(cols, pagination, perpage, offset, nextpage, saswp_coll_hide_col_r_img){
1239
 
1240
  var html = '';
1241
  var grid_cols = '';
1276
  html += '<li>';
1277
  html += '<div class="saswp-rc">';
1278
  html += '<div class="saswp-rc-a">';
1279
+ if(saswp_coll_hide_col_r_img != 1){
1280
+ html += '<div class="saswp-r1-aimg">';
1281
+ html += '<img src="'+value.saswp_reviewer_image+'" width="56" height="56"/>';
1282
+ html += '</div>';
1283
+ }
1284
  html += '<div class="saswp-rc-nm">';
1285
  html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
1286
  html += saswp_create_rating_html_by_value(value.saswp_review_rating);
1353
 
1354
  }
1355
 
1356
+ function saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_visibility, pagination, perpage, offset, nextpage, saswp_coll_hide_col_r_img, saswp_collection_gallery_img_hide){
1357
 
1358
  switch(design) {
1359
 
1360
  case "grid":
1361
 
1362
+ saswp_create_collection_grid(cols, pagination, perpage, offset, nextpage, saswp_coll_hide_col_r_img);
1363
 
1364
  break;
1365
 
1366
  case 'gallery':
1367
 
1368
+ saswp_create_collection_slider(slider, arrow, dots, saswp_collection_gallery_img_hide);
1369
 
1370
  break;
1371
 
1406
  var offset = 0;
1407
  var nextpage = perpage;
1408
  var s_rating_enable = false;
1409
+ var saswp_coll_hide_col_r_img = false;
1410
+ var saswp_collection_gallery_img_hide = false;
1411
 
1412
+ if(jQuery("#saswp-coll-hide_col_r_img").is(":checked")){
1413
+ saswp_coll_hide_col_r_img = 1;
1414
+ }
1415
+ if(jQuery("#saswp_collection_gallery_img_hide").is(":checked")){
1416
+ saswp_collection_gallery_img_hide = 1;
1417
+ }
1418
  if(jQuery("#saswp-coll-pagination").is(":checked")){
1419
  pagination = true;
1420
  var data_id = saswp_grid_page;
1446
  saswp_create_total_collection( s_rating_enable, s_rating_val );
1447
  saswp_collection_sorting(sorting);
1448
  saswp_collection_total_reviews_id();
1449
+ saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_inverval, pagination, perpage, offset, nextpage, saswp_coll_hide_col_r_img, saswp_collection_gallery_img_hide);
1450
 
1451
  }
1452
 
admin_section/js/functions-list.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var a={};if(s){var e=new Date(s),t=e.getDate(),n=e.getMonth();n+=1;var p=e.getFullYear(),l=e.toLocaleDateString(),c=jQuery(".saswp-collection-date-format").val();c&&"Y-m-d"==c&&(l=p+"-"+n+"-"+t),c&&"d-m-Y"==c&&(l=t+"-"+n+"-"+p),c&&"days"==c&&(l=saswp_get_day_ago(e)),a={time:e.toLocaleTimeString(),date:l}}else a={time:"",date:""};return a}function saswp_get_day_ago(s){"object"!=typeof s&&(s=new Date(s));var a,e=Math.floor((new Date-s)/1e3),t=Math.floor(e/31536e3);return t>=1?a="year":(t=Math.floor(e/2592e3))>=1?a="month":(t=Math.floor(e/86400))>=1?a="day":(t=Math.floor(e/3600))>=1?a="hour":(t=Math.floor(e/60))>=1?a="minute":(t=e,a="second"),(t>1||0===t)&&(a+="s"),t+" "+a+" ago"}function saswp_taxonomy_term_html(s,a){var e="";return e+="<td>",e+='<select name="saswp_taxonomy_term['+a+']">',jQuery.each(s,function(s,a){e+='<option value="'+s+'">'+a+"</option>"}),e+="</select>",e+="</td>",e+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&(jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide(),saswp_enable_rating_automate()}).change(),jQuery("#saswp_schema_type_product_pros_enable_pros").change(function(){jQuery(this).is(":checked")?jQuery(".thepros_main_section_outer").show():jQuery(".thepros_main_section_outer").hide()}).change())}function saswp_enable_rating_automate(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-automate-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")&&jQuery(this).is(":visible")?(jQuery(this).parent().parent().next().show(),jQuery(this).parent().parent().next().next().hide(),jQuery(this).parent().parent().next().next().next().hide()):(jQuery(this).parent().parent().next().hide(),jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).is(":checked")&&(jQuery(this).parent().parent().next().next().show(),jQuery(this).parent().parent().next().next().next().show()))}).change()}function getParameterByName(s,a){a||(a=window.location.href);var e=RegExp("[?&]"+(s=s.replace(/[\[\]]/g,"\\$&"))+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){("saswp"==saswp_localize_data.post_type||"saswp"==saswp_localize_data.page_now)&&"saswp_page_structured_data_options"!=saswp_localize_data.page_now&&jQuery(".saswp-custom-fields-select2").length&&jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,a,e=null){var t=a.val(),n=saswp_localize_data.post_id,p=jQuery(a).attr("data-id"),l=jQuery(a).attr("post-specific"),c=jQuery(".saswp_modify_this_schema_hidden_"+p).val();append_id=null==e?jQuery("#saswp_specific_"+p):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:c,schema_type:s,schema_id:p,post_specific:l,item:t,post_id:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(append_id).find(".saswp-table-create-onajax").remove();var a=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(a,function(s,a){0!=s&&jQuery(this).remove()}),jQuery(append_id).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var a="";jQuery("select#schema_type option:selected").val()&&(a=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(a=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===a&&saswp_item_reviewed_ajax(a,jQuery(this))}).change()}function saswp_compatibliy_notes(s,a){var e=a.replace("-checkbox",""),t=jQuery("#"+e).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+e).next("p").removeClass("saswp_hide"):1==jQuery("#"+e).next("p").attr("data-id")?jQuery("#"+e).next("p").text("This feature is only available in pro version"):jQuery("#"+e).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,a,e,t,n,p){var l=t;null==l&&(l=Object.keys(e)[0]);var c="";if(c+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+l+']">',jQuery.each(a,function(s,a){c+='<optgroup label="'+a.label+'">',jQuery.each(a["meta-list"],function(s,a){c+='<option value="'+s+'">'+a+"</option>"}),c+="</optgroup>"}),c+="</select>",e){var o=jQuery("select#schema_type option:selected").val(),r="";"Review"==o&&(r=jQuery("select.saswp-item-reivewed-list option:selected").val());var w="<tr>";w+="<td>",w+='<select class="saswp-custom-fields-name">',"Review"==o&&(w+='<optgroup label="Review">',w+='<option value="saswp_review_name">Review Name</option>',w+='<option value="saswp_review_description">Review Description</option>',w+='<option value="saswp_review_body">Review Body</option>',w+='<option value="saswp_review_author">Review Author</option>',w+='<option value="saswp_review_author_url">Review Author Profile URL</option>',w+='<option value="saswp_review_publisher">Review Publisher</option>',w+='<option value="saswp_review_publisher_url">Review Publisher URL</option>',w+='<option value="saswp_review_rating_value">Review Rating Value</option>',w+='<option value="saswp_review_date_published">Review Published Date</option>',w+='<option value="saswp_review_date_modified">Review Modified Date</option>',w+='<option value="saswp_review_url">Review URL</option>',w+="</optgroup>"),"Review"==o&&(w+='<optgroup label="'+r+'">'),jQuery.each(e,function(s,a){w+='<option value="'+s+'">'+a+"</option>"}),"Review"==o&&(w+="</optgroup>"),w+="</select>",w+="</td>",w+="<td>",w+=c,w+="</td>",w+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',w+="</tr>",jQuery(".saswp-custom-fields-table").append(w),null!=s&&s.removeClass("updating-message")}else jQuery(n).html(c),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,a,e,t,n,p){saswp_meta_list[a]?saswp_meta_list_html(s,saswp_meta_list[a],e,n,t,p):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){saswp_meta_list[a]=l[a],saswp_meta_list_html(s,saswp_meta_list[a],e,n,t,p)},"json")}function saswp_get_post_specific_schema_fields(s,a,e,t,n,p,l){if(saswp_meta_fields[p]){var c=saswp_fields_html_generator(a,n,p,t,saswp_meta_fields[p]);c&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(c),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",schema_id:n,schema_type:l,meta_name:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){saswp_meta_fields[p]=e;var l=saswp_fields_html_generator(a,n,p,t,e);l&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(l),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,a,e,t,n){$newclosebtn="",otherRepeatorClose="",$reviewtitle=s+1,"product_pros_"==e||"product_cons_"==e?$newclosebtn='<td class="saswp-table-close-new-td"><a class="saswp-table-close-new">X</a></td>':otherRepeatorClose='<a class="saswp-table-close">X</a>',$addRevewTitle="","product_reviews_"==e&&($addRevewTitle='<h3 style="float: left;">Review '+$reviewtitle+"</h3>");var p="";return p+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'">'+$addRevewTitle+otherRepeatorClose+'<table class="form-table saswp-'+t+'-table">',jQuery.each(n,function(t,n){var l="";switch((n.name.indexOf("published_date")>-1||n.name.indexOf("date_created")>-1||n.name.indexOf("created_date")>-1||n.name.indexOf("modified_date")>-1||n.name.indexOf("date_published")>-1||n.name.indexOf("date_modified")>-1)&&(l="saswp-datepicker-picker"),n.type){case"number":case"text":p+="<tr><th>"+n.label+'</th><td><input class="'+l+'" style="width:100%" type="'+n.type+'" id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']"></td>'+$newclosebtn+"</tr>";break;case"textarea":p+="<tr><th>"+n.label+'</th><td><textarea style="width: 100%" id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']" rows="5"></textarea></td></tr>';break;case"select":var c="";jQuery.each(n.options,function(s,a){c+='<option value="'+s+'">'+a+"</option>"}),p+="<tr><th>"+n.label+'</th><td><select id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']">'+c+"</select></td></tr>";break;case"media":p+="<tr><th>"+n.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+n.name+"_"+s+"_"+a+'" name="'+n.name+"_"+s+"_"+a+'"><input type="hidden" data-id="'+n.name+"_"+s+"_"+a+'_id" name="'+e+a+"["+s+"]["+n.name+'_id]" id="'+n.name+"_"+s+"_"+a+'_id"><input data-id="media" style="width: 19%" class="button" id="'+n.name+"_"+s+"_"+a+'_button" name="'+n.name+"_"+s+"_"+a+'_button" type="button" value="Upload"><div class="saswp_image_div_'+n.name+"_"+s+"_"+a+'"></div></fieldset></td></tr>'}}),p+="</table></div>"}function saswp_create_total_collection(s,a){var e="";for(var t in saswp_total_collection=[],saswp_collection)saswp_collection[t]&&(jQuery.each(saswp_collection[t],function(e,t){rmv_boolean?t.is_remove=!0:t.is_remove=!1,s?t.saswp_review_rating>=a&&saswp_total_collection.push(t):saswp_total_collection.push(t)}),e+=saswp_function_added_platform(t,saswp_collection[t].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(e)}function saswp_create_rating_html_by_value(s){var a="";a+='<div class="saswp-rvw-str">';for(var e=0;e<5;e++)if(s>e){var t=s.split(".");t[1]?e<t[0]?a+='<span class="str-ic"></span>':a+='<span class="half-str"></span>':a+='<span class="str-ic"></span>'}else a+='<span class="df-clr"></span>';return a+"</div>"}function saswpChunkArray(s,a){for(var e=JSON.parse(JSON.stringify(s)),t=[];e.length;)t.push(e.splice(0,a));return t}function saswp_function_added_platform(s,a){var e="";return a>0&&(e+='<div class="cancel-btn">',e+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+a+")</span>",e+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+a+'">',e+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',e+="</div>"),e}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),a=s.find(".saswp-sic");function e(){var s=0;jQuery(a).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),a.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=a.find(".saswp-si.saswp-active").offset().left,e=a.offset().left;a.css({transform:"translate( -"+(s-e)+"px, 0px)"})}}0==a.find(".saswp-si.saswp-active").length&&a.find(".saswp-si").first().addClass("saswp-active"),e(),t(),function e(){var t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length;for(i=0;i<n;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active")}(),jQuery(document).ready(function(){e(),t()}),jQuery(window).resize(function(){e(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(e){var t,n,p,l,c,o;e.preventDefault(),t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length,p=0,p=t+1>n-1?0:t+1,l=a.find(".saswp-si").eq(p),c=a.offset().left,o=l.offset().left-c,a.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),a.css({transform:"translate( -"+o+"px, 0px)"})}),p.on("click",function(e){var t,n,p,l,c,o;e.preventDefault(),t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length,p=0,p=t-1<0?n-1:t-1,l=a.find(".saswp-si").eq(p),c=a.offset().left,o=l.offset().left-c,a.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),a.css({transform:"translate( -"+o+"px, 0px)"})}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(e){var t=jQuery(this).index(),n=a.find(".saswp-si").eq(t).offset().left-a.offset().left;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),a.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),a.css({transform:"translate( -"+n+"px, 0px)"})})})}function saswp_review_desing_for_slider(s){var a=saswp_convert_datetostring(s.saswp_review_date);""!=s.saswp_is_date_in_days&&"days"==s.saswp_is_date_in_days&&(a.date=s.saswp_review_date);var e="";return e+='<div class="saswp-r2-sli">',e+='<div class="saswp-r2-b">',e+='<div class="saswp-r2-q">',e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',e+="</div>",e+='<div class="saswp-rc-cnt">',e+="<p>",e+=s.saswp_review_text,e+="</p>",e+="</div>",e+='<div class="saswp-r2-strs">',e+='<span class="saswp-r2-s">',e+=saswp_create_rating_html_by_value(s.saswp_review_rating),e+="</span>",e+="</div>",e+="</div>",e+='<div class="saswp-rc">',e+='<div class="saswp-rc-a">',e+='<img src="'+s.saswp_reviewer_image+'"/>',e+='<div class="saswp-rc-nm">',e+='<a href="#">'+s.saswp_reviewer_name+"</a>",e+='<span class="saswp-rc-dt">'+a.date+"</span>",e+="</div>",e+='<div class="saswp-rc-lg">',e+='<img src="'+s.saswp_review_platform_icon+'"/>',e+="</div>",e+="</div>",e+="</div>",e+="</div>"}function saswp_create_collection_slider(s,a,e){var t="";if(saswp_total_collection.length>0){if("slider"==s?t+='<div class="saswp-cst">':t+='<div class="saswp-cct">',t+='<div class="saswp-cs">',t+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,a){t+='<div class="saswp-si">',t+=saswp_review_desing_for_slider(a),t+="</div>"}),"carousel"==s){var n=saswpChunkArray(saswp_total_collection,3);n&&jQuery.each(n,function(s,a){t+='<div class="saswp-si">',jQuery.each(a,function(s,a){t+=saswp_review_desing_for_slider(a)}),t+="</div>"})}t+="</div>",a&&(t+='<div class="saswp-slider-controls">',t+='<a href="#" class="saswp-slider-prev-btn"></a>',t+='<a href="#" class="saswp-slider-next-btn"></a>',t+="</div>"),e&&(t+='<div class="saswp-slider-dots">',t+="</div>"),t+="</div>",t+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(t),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var a in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var e="",t="",n=0,p=0,l=1,c="";jQuery.each(saswp_collection[a],function(s,a){c=a.saswp_review_location_id,e=a.saswp_review_platform_icon,"Self"==(t=a.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),p+=parseFloat(a.saswp_review_rating),n++}),p>0&&(l=p/n),saswp_collection[a]&&(s+="<li>",s+='<a target="_blank" href="'+c+'">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+e+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=l.toFixed(1),s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(l.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+=saswp_localize_data.trans_based_on+" "+n+" "+saswp_localize_data.trans_reviews,s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",a="";if(saswp_total_collection.length>0){var e=0,t=0,n=1;jQuery.each(saswp_total_collection,function(s,n){platform_icon=n.saswp_review_platform_icon,t+=parseFloat(n.saswp_review_rating),e++;var p=saswp_convert_datetostring(n.saswp_review_date);""!=n.saswp_is_date_in_days&&"days"==n.saswp_is_date_in_days&&(p.date=n.saswp_review_date),a+="<li>",a+='<div class="saswp-r4-b">',a+='<span class="saswp-r4-str">',a+=saswp_create_rating_html_by_value(n.saswp_review_rating),a+="</span>",a+='<span class="saswp-r4-tx">'+p.date+"</span>",a+="</div>",a+='<div class="saswp-r4-cnt">',a+="<h3>"+n.saswp_reviewer_name+"</h3>",a+="<p>"+n.saswp_review_text+"</p>",a+="</div>",a+="</li>"}),t>0&&(n=t/e),e>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+e+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+e+" reviews</span>",s+="</li>",s+=a,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,a){var e="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,a){var t=saswp_convert_datetostring(a.saswp_review_date);""!=a.saswp_is_date_in_days&&"days"==a.saswp_is_date_in_days&&(t.date=a.saswp_review_date),e+='<div id="'+s+'" class="saswp-r5">',e+='<div class="saswp-r5-r">',e+='<div class="saswp-r5-lg">',e+="<span>",e+='<img height="70" width="70" src="'+a.saswp_review_platform_icon+'"/>',e+="</span>",e+="</div>",e+='<div class="saswp-r5-rng">',e+=saswp_create_rating_html_by_value(a.saswp_review_rating),e+='<div class="saswp-r5-txrng">',e+="<span>"+a.saswp_review_rating+" Stars</span>",e+="<span>by</span>",e+="<span>"+a.saswp_reviewer_name+"</span>",e+="</div>",e+='<span class="saswp-r5-dt">'+t.date+"</span>",e+="</div>",e+="</div>",e+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(e),saswp_fomo_slide(s,a)}function saswp_fomo_slide(s,a){var e=jQuery(".saswp-collection-preview .saswp-r5"),t=e.length,n=0;!function s(){e.eq(n%t).fadeIn(6e3,function(){e.eq(n%t).fadeOut(3e3,s),n++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,a){return s.saswp_review_rating-a.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,a){return s.saswp_review_rating-a.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,a){var e=new Date(s.saswp_review_date),t=new Date(a.saswp_review_date);return e-t}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,a){var e=new Date(s.saswp_review_date),t=new Date(a.saswp_review_date);return e-t});break;case"random":saswp_total_collection.sort(function(s,a){return .5-Math.random()})}}function saswp_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,a){saswp_total_reviews.push(a.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,a,e,t,n){var p="",l="",c=0;if(saswp_total_collection.length>0){c=Math.ceil(saswp_total_collection.length/e),p+='<div class="saswp-r1">';for(var o=1;o<=s;o++)l+=" 1fr";if(s.length>3?p+='<ul style="grid-template-columns:'+l+';overflow-y: scroll;">':p+='<ul style="grid-template-columns:'+l+';overflow-y:hidden;">',saswp_total_collection){var r=saswp_total_collection;a&&e>0&&(r=r.slice(t,n)),jQuery.each(r,function(s,a){var e=saswp_convert_datetostring(a.saswp_review_date);p+="<li>",p+='<div class="saswp-rc">',p+='<div class="saswp-rc-a">',p+='<div class="saswp-r1-aimg">',p+='<img src="'+a.saswp_reviewer_image+'" width="56" height="56"/>',p+="</div>",p+='<div class="saswp-rc-nm">',p+='<a href="#">'+a.saswp_reviewer_name+"</a>",p+=saswp_create_rating_html_by_value(a.saswp_review_rating),e.date&&(p+='<span class="saswp-rc-dt">'+e.date+"</span>"),p+="</div>",p+="</div>",p+='<div class="saswp-rc-lg">',p+='<img src="'+a.saswp_review_platform_icon+'"/>',p+="</div>",p+="</div>",p+='<div class="saswp-rc-cnt">',p+="<p>"+a.saswp_review_text+"</p>",p+="</div>",a.is_remove&&(p+='<span platform-id="'+a.saswp_review_platform+'" data-id="'+a.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),p+="</li>"})}if(p+="</ul>",c>0&&a){p+='<div class="saswp-grid-pagination">',p+='<a class="saswp-grid-page" data-id="1" href="#">&laquo;</a>';for(var w=parseInt(saswp_grid_page)-3,d=parseInt(saswp_grid_page)+3,o=1;o<=c;o++){var v="saswp_hide";o>w&&o<d&&(v=""),o==saswp_grid_page?p+='<a class="active saswp-grid-page '+v+'" data-id="'+o+'" href="#">'+o+"</a>":p+='<a class="saswp-grid-page '+v+'" data-id="'+o+'" href="#">'+o+"</a>"}p+='<a class="saswp-grid-page" data-id="'+c+'" href="#">&raquo;</a>',p+="</div>"}p+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(p)}function saswp_create_collection_by_design(s,a,e,t,n,p,l,c,o,r,w){switch(s){case"grid":saswp_create_collection_grid(a,c,o,r,w);break;case"gallery":saswp_create_collection_slider(e,t,n);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(p,l)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),a=jQuery("#saswp_collection_specific_rating_sel").val(),e=jQuery(".saswp-collection-desing").val(),t=jQuery("#saswp-collection-cols").val(),n=jQuery(".saswp-slider-type").val(),p=jQuery("#saswp_fomo_interval").val(),l=parseInt(jQuery("#saswp-coll-per-page").val()),c=!1,o=0,r=l,w=!1;if(jQuery("#saswp-coll-pagination").is(":checked")){c=!0;var d=saswp_grid_page;d>0&&(r=d*l),o=r-l}if(jQuery("#saswp_collection_specific_rating").is(":checked")&&(w=!0),jQuery("#saswp_gallery_arrow").is(":checked"))var v=!0;else var v=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var f=!0;else var f=!1;saswp_create_total_collection(w,a),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(e,t,n,v,f,p,p,c,l,o,r)}function saswp_get_collection_data(s,a,e=null,t=null,n=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:n,review_id:t,platform_id:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,a){var e=JSON.parse(a.saswp_review_platform),t=[];if(t.push(a),void 0===saswp_collection[e])saswp_collection[e]=t;else{var n=[...new Set([...saswp_collection[e],...t])];saswp_collection[e]=n}}),saswp_on_collection_design_change()),e&&e.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,a){var e=jQuery(this),t=jQuery("option[value]:not([selected])",e),n=[];t.each(function(){var s=jQuery(this);n.push({id:s.attr("value"),text:s.text()})});var p=e.attr("data-type"),l=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+p;e.select2({ajax:{url:l,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:n})})}
1
+ var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s),t=a.getDate(),n=a.getMonth();n+=1;var p=a.getFullYear(),l=a.toLocaleDateString(),c=jQuery(".saswp-collection-date-format").val();c&&"Y-m-d"==c&&(l=p+"-"+n+"-"+t),c&&"d-m-Y"==c&&(l=t+"-"+n+"-"+p),c&&"days"==c&&(l=saswp_get_day_ago(a)),e={time:a.toLocaleTimeString(),date:l}}else e={time:"",date:""};return e}function saswp_get_day_ago(s){"object"!=typeof s&&(s=new Date(s));var e,a=Math.floor((new Date-s)/1e3),t=Math.floor(a/31536e3);return t>=1?e="year":(t=Math.floor(a/2592e3))>=1?e="month":(t=Math.floor(a/86400))>=1?e="day":(t=Math.floor(a/3600))>=1?e="hour":(t=Math.floor(a/60))>=1?e="minute":(t=a,e="second"),(t>1||0===t)&&(e+="s"),t+" "+e+" ago"}function saswp_taxonomy_term_html(s,e){var a="";return a+="<td>",a+='<select name="saswp_taxonomy_term['+e+']">',jQuery.each(s,function(s,e){a+='<option value="'+s+'">'+e+"</option>"}),a+="</select>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&(jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide(),saswp_enable_rating_automate()}).change(),jQuery("#saswp_schema_type_product_pros_enable_pros").change(function(){jQuery(this).is(":checked")?jQuery(".thepros_main_section_outer").show():jQuery(".thepros_main_section_outer").hide()}).change())}function saswp_enable_rating_automate(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-automate-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")&&jQuery(this).is(":visible")?(jQuery(this).parent().parent().next().show(),jQuery(this).parent().parent().next().next().hide(),jQuery(this).parent().parent().next().next().next().hide()):(jQuery(this).parent().parent().next().hide(),jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).is(":checked")&&(jQuery(this).parent().parent().next().next().show(),jQuery(this).parent().parent().next().next().next().show()))}).change()}function getParameterByName(s,e){e||(e=window.location.href);var a=RegExp("[?&]"+(s=s.replace(/[\[\]]/g,"\\$&"))+"(=([^&#]*)|&|#|$)").exec(e);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){("saswp"==saswp_localize_data.post_type||"saswp"==saswp_localize_data.page_now)&&"saswp_page_structured_data_options"!=saswp_localize_data.page_now&&jQuery(".saswp-custom-fields-select2").length&&jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,e,a=null){var t=e.val(),n=saswp_localize_data.post_id,p=jQuery(e).attr("data-id"),l=jQuery(e).attr("post-specific"),c=jQuery(".saswp_modify_this_schema_hidden_"+p).val();append_id=null==a?jQuery("#saswp_specific_"+p):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:c,schema_type:s,schema_id:p,post_specific:l,item:t,post_id:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(append_id).find(".saswp-table-create-onajax").remove();var e=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(append_id).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var e="";jQuery("select#schema_type option:selected").val()&&(e=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(e=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===e&&saswp_item_reviewed_ajax(e,jQuery(this))}).change()}function saswp_compatibliy_notes(s,e){var a=e.replace("-checkbox",""),t=jQuery("#"+a).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+a).next("p").removeClass("saswp_hide"):1==jQuery("#"+a).next("p").attr("data-id")?jQuery("#"+a).next("p").text("This feature is only available in pro version"):jQuery("#"+a).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,e,a,t,n,p){var l=t;null==l&&(l=Object.keys(a)[0]);var c="";if(c+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+l+']">',jQuery.each(e,function(s,e){c+='<optgroup label="'+e.label+'">',jQuery.each(e["meta-list"],function(s,e){c+='<option value="'+s+'">'+e+"</option>"}),c+="</optgroup>"}),c+="</select>",a){var o=jQuery("select#schema_type option:selected").val(),r="";"Review"==o&&(r=jQuery("select.saswp-item-reivewed-list option:selected").val());var w="<tr>";w+="<td>",w+='<select class="saswp-custom-fields-name">',"Review"==o&&(w+='<optgroup label="Review">',w+='<option value="saswp_review_name">Review Name</option>',w+='<option value="saswp_review_description">Review Description</option>',w+='<option value="saswp_review_body">Review Body</option>',w+='<option value="saswp_review_author">Review Author</option>',w+='<option value="saswp_review_author_url">Review Author Profile URL</option>',w+='<option value="saswp_review_publisher">Review Publisher</option>',w+='<option value="saswp_review_publisher_url">Review Publisher URL</option>',w+='<option value="saswp_review_rating_value">Review Rating Value</option>',w+='<option value="saswp_review_date_published">Review Published Date</option>',w+='<option value="saswp_review_date_modified">Review Modified Date</option>',w+='<option value="saswp_review_url">Review URL</option>',w+="</optgroup>"),"Review"==o&&(w+='<optgroup label="'+r+'">'),jQuery.each(a,function(s,e){w+='<option value="'+s+'">'+e+"</option>"}),"Review"==o&&(w+="</optgroup>"),w+="</select>",w+="</td>",w+="<td>",w+=c,w+="</td>",w+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',w+="</tr>",jQuery(".saswp-custom-fields-table").append(w),null!=s&&s.removeClass("updating-message")}else jQuery(n).html(c),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,e,a,t,n,p){saswp_meta_list[e]?saswp_meta_list_html(s,saswp_meta_list[e],a,n,t,p):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){saswp_meta_list[e]=l[e],saswp_meta_list_html(s,saswp_meta_list[e],a,n,t,p)},"json")}function saswp_get_post_specific_schema_fields(s,e,a,t,n,p,l){if(saswp_meta_fields[p]){var c=saswp_fields_html_generator(e,n,p,t,saswp_meta_fields[p]);c&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(c),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",schema_id:n,schema_type:l,meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[p]=a;var l=saswp_fields_html_generator(e,n,p,t,a);l&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(l),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,e,a,t,n){$newclosebtn="",otherRepeatorClose="",$reviewtitle=s+1,"product_pros_"==a||"product_cons_"==a?$newclosebtn='<td class="saswp-table-close-new-td"><a class="saswp-table-close-new">X</a></td>':otherRepeatorClose='<a class="saswp-table-close">X</a>',$addRevewTitle="","product_reviews_"==a&&($addRevewTitle='<h3 style="float: left;">Review '+$reviewtitle+"</h3>");var p="";return p+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'">'+$addRevewTitle+otherRepeatorClose+'<table class="form-table saswp-'+t+'-table">',jQuery.each(n,function(t,n){var l="";switch((n.name.indexOf("published_date")>-1||n.name.indexOf("date_created")>-1||n.name.indexOf("created_date")>-1||n.name.indexOf("modified_date")>-1||n.name.indexOf("date_published")>-1||n.name.indexOf("date_modified")>-1)&&(l="saswp-datepicker-picker"),n.type){case"number":case"text":p+="<tr><th>"+n.label+'</th><td><input class="'+l+'" style="width:100%" type="'+n.type+'" id="'+n.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+n.name+']"></td>'+$newclosebtn+"</tr>";break;case"textarea":p+="<tr><th>"+n.label+'</th><td><textarea style="width: 100%" id="'+n.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+n.name+']" rows="5"></textarea></td></tr>';break;case"select":var c="";jQuery.each(n.options,function(s,e){c+='<option value="'+s+'">'+e+"</option>"}),p+="<tr><th>"+n.label+'</th><td><select id="'+n.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+n.name+']">'+c+"</select></td></tr>";break;case"media":p+="<tr><th>"+n.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+n.name+"_"+s+"_"+e+'" name="'+n.name+"_"+s+"_"+e+'"><input type="hidden" data-id="'+n.name+"_"+s+"_"+e+'_id" name="'+a+e+"["+s+"]["+n.name+'_id]" id="'+n.name+"_"+s+"_"+e+'_id"><input data-id="media" style="width: 19%" class="button" id="'+n.name+"_"+s+"_"+e+'_button" name="'+n.name+"_"+s+"_"+e+'_button" type="button" value="Upload"><div class="saswp_image_div_'+n.name+"_"+s+"_"+e+'"></div></fieldset></td></tr>'}}),p+="</table></div>"}function saswp_create_total_collection(s,e){var a="";for(var t in saswp_total_collection=[],saswp_collection)saswp_collection[t]&&(jQuery.each(saswp_collection[t],function(a,t){rmv_boolean?t.is_remove=!0:t.is_remove=!1,s?t.saswp_review_rating>=e&&saswp_total_collection.push(t):saswp_total_collection.push(t)}),a+=saswp_function_added_platform(t,saswp_collection[t].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(a)}function saswp_create_rating_html_by_value(s){var e="";e+='<div class="saswp-rvw-str">';for(var a=0;a<5;a++)if(s>a){var t=s.split(".");t[1]?a<t[0]?e+='<span class="str-ic"></span>':e+='<span class="half-str"></span>':e+='<span class="str-ic"></span>'}else e+='<span class="df-clr"></span>';return e+"</div>"}function saswpChunkArray(s,e){for(var a=JSON.parse(JSON.stringify(s)),t=[];a.length;)t.push(a.splice(0,e));return t}function saswp_function_added_platform(s,e){var a="";return e>0&&(a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+e+")</span>",a+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+e+'">',a+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',a+="</div>"),a}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),e=s.find(".saswp-sic");function a(){var s=0;jQuery(e).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),e.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=e.find(".saswp-si.saswp-active").offset().left,a=e.offset().left;e.css({transform:"translate( -"+(s-a)+"px, 0px)"})}}0==e.find(".saswp-si.saswp-active").length&&e.find(".saswp-si").first().addClass("saswp-active"),a(),t(),function a(){var t=e.find(".saswp-si.saswp-active").index(),n=e.find(".saswp-si").length;for(i=0;i<n;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active")}(),jQuery(document).ready(function(){a(),t()}),jQuery(window).resize(function(){a(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(a){var t,n,p,l,c,o;a.preventDefault(),t=e.find(".saswp-si.saswp-active").index(),n=e.find(".saswp-si").length,p=0,p=t+1>n-1?0:t+1,l=e.find(".saswp-si").eq(p),c=e.offset().left,o=l.offset().left-c,e.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),e.css({transform:"translate( -"+o+"px, 0px)"})}),p.on("click",function(a){var t,n,p,l,c,o;a.preventDefault(),t=e.find(".saswp-si.saswp-active").index(),n=e.find(".saswp-si").length,p=0,p=t-1<0?n-1:t-1,l=e.find(".saswp-si").eq(p),c=e.offset().left,o=l.offset().left-c,e.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),e.css({transform:"translate( -"+o+"px, 0px)"})}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(a){var t=jQuery(this).index(),n=e.find(".saswp-si").eq(t).offset().left-e.offset().left;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),e.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),e.css({transform:"translate( -"+n+"px, 0px)"})})})}function saswp_review_desing_for_slider(s,e){var a=saswp_convert_datetostring(s.saswp_review_date);""!=s.saswp_is_date_in_days&&"days"==s.saswp_is_date_in_days&&(a.date=s.saswp_review_date);var t="";return t+='<div class="saswp-r2-sli">',t+='<div class="saswp-r2-b">',t+='<div class="saswp-r2-q">',t+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',t+="</div>",t+='<div class="saswp-rc-cnt">',t+="<p>",t+=s.saswp_review_text,t+="</p>",t+="</div>",t+='<div class="saswp-r2-strs">',t+='<span class="saswp-r2-s">',t+=saswp_create_rating_html_by_value(s.saswp_review_rating),t+="</span>",t+="</div>",t+="</div>",t+='<div class="saswp-rc">',t+='<div class="saswp-rc-a">',1!=e&&(t+='<img src="'+s.saswp_reviewer_image+'"/>'),t+='<div class="saswp-rc-nm">',t+='<a href="#">'+s.saswp_reviewer_name+"</a>",t+='<span class="saswp-rc-dt">'+a.date+"</span>",t+="</div>",t+='<div class="saswp-rc-lg">',t+='<img src="'+s.saswp_review_platform_icon+'"/>',t+="</div>",t+="</div>",t+="</div>",t+="</div>"}function saswp_create_collection_slider(s,e,a,t){var n="";if(saswp_total_collection.length>0){if("slider"==s?n+='<div class="saswp-cst">':n+='<div class="saswp-cct">',n+='<div class="saswp-cs">',n+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,e){n+='<div class="saswp-si">',n+=saswp_review_desing_for_slider(e,t),n+="</div>"}),"carousel"==s){var p=saswpChunkArray(saswp_total_collection,3);p&&jQuery.each(p,function(s,e){n+='<div class="saswp-si">',jQuery.each(e,function(s,e){n+=saswp_review_desing_for_slider(e,t)}),n+="</div>"})}n+="</div>",e&&(n+='<div class="saswp-slider-controls">',n+='<a href="#" class="saswp-slider-prev-btn"></a>',n+='<a href="#" class="saswp-slider-next-btn"></a>',n+="</div>"),a&&(n+='<div class="saswp-slider-dots">',n+="</div>"),n+="</div>",n+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(n),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var e in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var a="",t="",n=0,p=0,l=1,c="";jQuery.each(saswp_collection[e],function(s,e){c=e.saswp_review_location_id,a=e.saswp_review_platform_icon,"Self"==(t=e.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),p+=parseFloat(e.saswp_review_rating),n++}),p>0&&(l=p/n),saswp_collection[e]&&(s+="<li>",s+='<a target="_blank" href="'+c+'">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+a+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=l.toFixed(1),s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(l.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+=saswp_localize_data.trans_based_on+" "+n+" "+saswp_localize_data.trans_reviews,s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",e="";if(saswp_total_collection.length>0){var a=0,t=0,n=1;jQuery.each(saswp_total_collection,function(s,n){platform_icon=n.saswp_review_platform_icon,t+=parseFloat(n.saswp_review_rating),a++;var p=saswp_convert_datetostring(n.saswp_review_date);""!=n.saswp_is_date_in_days&&"days"==n.saswp_is_date_in_days&&(p.date=n.saswp_review_date),e+="<li>",e+='<div class="saswp-r4-b">',e+='<span class="saswp-r4-str">',e+=saswp_create_rating_html_by_value(n.saswp_review_rating),e+="</span>",e+='<span class="saswp-r4-tx">'+p.date+"</span>",e+="</div>",e+='<div class="saswp-r4-cnt">',e+="<h3>"+n.saswp_reviewer_name+"</h3>",e+="<p>"+n.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),t>0&&(n=t/a),a>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+a+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+a+" reviews</span>",s+="</li>",s+=e,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,e){var a="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,e){var t=saswp_convert_datetostring(e.saswp_review_date);""!=e.saswp_is_date_in_days&&"days"==e.saswp_is_date_in_days&&(t.date=e.saswp_review_date),a+='<div id="'+s+'" class="saswp-r5">',a+='<div class="saswp-r5-r">',a+='<div class="saswp-r5-lg">',a+="<span>",a+='<img height="70" width="70" src="'+e.saswp_review_platform_icon+'"/>',a+="</span>",a+="</div>",a+='<div class="saswp-r5-rng">',a+=saswp_create_rating_html_by_value(e.saswp_review_rating),a+='<div class="saswp-r5-txrng">',a+="<span>"+e.saswp_review_rating+" Stars</span>",a+="<span>by</span>",a+="<span>"+e.saswp_reviewer_name+"</span>",a+="</div>",a+='<span class="saswp-r5-dt">'+t.date+"</span>",a+="</div>",a+="</div>",a+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(a),saswp_fomo_slide(s,e)}function saswp_fomo_slide(s,e){var a=jQuery(".saswp-collection-preview .saswp-r5"),t=a.length,n=0;!function s(){a.eq(n%t).fadeIn(6e3,function(){a.eq(n%t).fadeOut(3e3,s),n++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,e){var a=new Date(s.saswp_review_date),t=new Date(e.saswp_review_date);return a-t}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,e){var a=new Date(s.saswp_review_date),t=new Date(e.saswp_review_date);return a-t});break;case"random":saswp_total_collection.sort(function(s,e){return .5-Math.random()})}}function saswp_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,e){saswp_total_reviews.push(e.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,e,a,t,n,p){var l="",c="",o=0;if(saswp_total_collection.length>0){o=Math.ceil(saswp_total_collection.length/a),l+='<div class="saswp-r1">';for(var r=1;r<=s;r++)c+=" 1fr";if(s.length>3?l+='<ul style="grid-template-columns:'+c+';overflow-y: scroll;">':l+='<ul style="grid-template-columns:'+c+';overflow-y:hidden;">',saswp_total_collection){var w=saswp_total_collection;e&&a>0&&(w=w.slice(t,n)),jQuery.each(w,function(s,e){var a=saswp_convert_datetostring(e.saswp_review_date);l+="<li>",l+='<div class="saswp-rc">',l+='<div class="saswp-rc-a">',1!=p&&(l+='<div class="saswp-r1-aimg">',l+='<img src="'+e.saswp_reviewer_image+'" width="56" height="56"/>',l+="</div>"),l+='<div class="saswp-rc-nm">',l+='<a href="#">'+e.saswp_reviewer_name+"</a>",l+=saswp_create_rating_html_by_value(e.saswp_review_rating),a.date&&(l+='<span class="saswp-rc-dt">'+a.date+"</span>"),l+="</div>",l+="</div>",l+='<div class="saswp-rc-lg">',l+='<img src="'+e.saswp_review_platform_icon+'"/>',l+="</div>",l+="</div>",l+='<div class="saswp-rc-cnt">',l+="<p>"+e.saswp_review_text+"</p>",l+="</div>",e.is_remove&&(l+='<span platform-id="'+e.saswp_review_platform+'" data-id="'+e.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),l+="</li>"})}if(l+="</ul>",o>0&&e){l+='<div class="saswp-grid-pagination">',l+='<a class="saswp-grid-page" data-id="1" href="#">&laquo;</a>';for(var d=parseInt(saswp_grid_page)-3,v=parseInt(saswp_grid_page)+3,r=1;r<=o;r++){var f="saswp_hide";r>d&&r<v&&(f=""),r==saswp_grid_page?l+='<a class="active saswp-grid-page '+f+'" data-id="'+r+'" href="#">'+r+"</a>":l+='<a class="saswp-grid-page '+f+'" data-id="'+r+'" href="#">'+r+"</a>"}l+='<a class="saswp-grid-page" data-id="'+o+'" href="#">&raquo;</a>',l+="</div>"}l+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(l)}function saswp_create_collection_by_design(s,e,a,t,n,p,l,c,o,r,w,d,v){switch(s){case"grid":saswp_create_collection_grid(e,c,o,r,w,d);break;case"gallery":saswp_create_collection_slider(a,t,n,v);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(p,l)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),e=jQuery("#saswp_collection_specific_rating_sel").val(),a=jQuery(".saswp-collection-desing").val(),t=jQuery("#saswp-collection-cols").val(),n=jQuery(".saswp-slider-type").val(),p=jQuery("#saswp_fomo_interval").val(),l=parseInt(jQuery("#saswp-coll-per-page").val()),c=!1,o=0,r=l,w=!1,d=!1,v=!1;if(jQuery("#saswp-coll-hide_col_r_img").is(":checked")&&(d=1),jQuery("#saswp_collection_gallery_img_hide").is(":checked")&&(v=1),jQuery("#saswp-coll-pagination").is(":checked")){c=!0;var f=saswp_grid_page;f>0&&(r=f*l),o=r-l}if(jQuery("#saswp_collection_specific_rating").is(":checked")&&(w=!0),jQuery("#saswp_gallery_arrow").is(":checked"))var m=!0;else var m=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var u=!0;else var u=!1;saswp_create_total_collection(w,e),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(a,t,n,m,u,p,p,c,l,o,r,d,v)}function saswp_get_collection_data(s,e,a=null,t=null,n=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:n,review_id:t,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,e){var a=JSON.parse(e.saswp_review_platform),t=[];if(t.push(e),void 0===saswp_collection[a])saswp_collection[a]=t;else{var n=[...new Set([...saswp_collection[a],...t])];saswp_collection[a]=n}}),saswp_on_collection_design_change()),a&&a.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,e){var a=jQuery(this),t=jQuery("option[value]:not([selected])",a),n=[];t.each(function(){var s=jQuery(this);n.push({id:s.attr("value"),text:s.text()})});var p=a.attr("data-type"),l=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+p;a.select2({ajax:{url:l,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:n})})}
admin_section/js/main-script.js CHANGED
@@ -1009,15 +1009,26 @@ jQuery(document).ready(function($){
1009
  $("#saswp_breadcrumb_remove_cat").val(0);
1010
  }
1011
  break;
 
 
 
 
 
 
 
 
 
1012
 
1013
  case 'saswp_breadcrumb_schema_checkbox':
1014
 
1015
  if ($(this).is(':checked')) {
1016
  $("#saswp_breadcrumb_schema").val(1);
1017
- $("#saswp_breadcrumb_remove_cat").parent().parent().show();
 
1018
  }else{
1019
  $("#saswp_breadcrumb_schema").val(0);
1020
  $("#saswp_breadcrumb_remove_cat").parent().parent().hide();
 
1021
  }
1022
 
1023
  break;
1009
  $("#saswp_breadcrumb_remove_cat").val(0);
1010
  }
1011
  break;
1012
+
1013
+ case 'saswp_breadcrumb_include_parent_cat_checkbox':
1014
+
1015
+ if ($(this).is(':checked')) {
1016
+ $("#saswp_breadcrumb_include_parent_cat").val(1);
1017
+ }else{
1018
+ $("#saswp_breadcrumb_include_parent_cat").val(0);
1019
+ }
1020
+ break;
1021
 
1022
  case 'saswp_breadcrumb_schema_checkbox':
1023
 
1024
  if ($(this).is(':checked')) {
1025
  $("#saswp_breadcrumb_schema").val(1);
1026
+ $("#saswp_breadcrumb_remove_cat").parent().parent().show();
1027
+ $("#saswp_breadcrumb_include_parent_cat").parent().parent().show();
1028
  }else{
1029
  $("#saswp_breadcrumb_schema").val(0);
1030
  $("#saswp_breadcrumb_remove_cat").parent().parent().hide();
1031
+ $("#saswp_breadcrumb_include_parent_cat").parent().parent().hide();
1032
  }
1033
 
1034
  break;
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function(s){if(s(document).on("click","#saswp_loc_display_on_front",function(){s(this).is(":checked")?s(".saswp-front-location-inst").removeClass("saswp_hide"):s(".saswp-front-location-inst").addClass("saswp_hide")}),s(document).on("change",".saswp-collection-where",function(){s(this);var e,a=s(this).val();a&&(e=a)&&s.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:e,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(e){if(e){var a="";s.each(e,function(s,e){a+='<option value="'+e.id+'">'+e.text+"</option>"}),s(".saswp-collection-where-data").html(""),s(".saswp-collection-where-data").append(a),saswp_select2()}},error:function(s){console.log("Failed Ajax Request"),console.log(s)}})}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?(s(".saswp-coll-where").addClass("saswp_hide"),s("#saswp-motivatebox").css("display","block")):(s(".saswp-coll-where").removeClass("saswp_hide"),s("#saswp-motivatebox").css("display","none"))}).change(),s(document).on("click",".saswp-dismiss-notices",function(){var e=s(this),a=s(this).attr("notice-type");a&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status&&e.parent().parent().hide()},error:function(s){console.log(s)}})}),saswp_select2(),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(saswp_localize_data.translable_txt.attach_review,"#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=null;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,c="";t>0&&(c+=t+" Reviews, "),i>0&&(c+=i+" Collection"),c||(c=0),s(".saswp-attached-rv-count").text("Attached "+c),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)),i>=10&&s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"),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>'+saswp_localize_data.translable_txt.place_id+'</strong></td><td style="width:15%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.language+'</strong></td><td style="width:10%;"><input class="saswp-g-language-field" name="sd_data[saswp_reviews_language_name][]" type="text" value="" placeholder="nl"></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.fetch+'</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&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-language-field").val(),c=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),n=s("#reviews_addon_license_key").val(),o=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(c>0))return alert(saswp_localize_data.translable_txt.blocks_zero),e.removeClass("updating-message"),!1;if(0!=c%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(n||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:o,reviews_api:n,location:t,language:i,blocks:c,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(saswp_localize_data.translable_txt.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(saswp_localize_data.translable_txt.enter_place_id),""==p&&alert(saswp_localize_data.translable_txt.enter_api_key),""==n&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,a,t,i="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";i+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",i+='<style type="text/css">',i+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",i+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",i+="</style>",i+='<div id="saswp_mc_embed_signup">',i+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',i+='<div id="saswp_mc_embed_signup_scroll">',i+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',i+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',i+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',i+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',i+='<input type="hidden" name="ml-submit" value="1" />',i+="</div>",i+='<div id="mce-responses">',i+="</div>",i+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',i+='<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;">',i+='<p id="saswp-news-letter-status"></p>',i+="</div>",i+="</form>",i+="</div>",s(document).on("submit","#saswp-news-letter-form",function(e){e.preventDefault();var a=s(this),t=a.find('input[name="saswp_subscriber_name"]').val(),i=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),s.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:t,email:i,website:website},function(e){e?"Some fields are missing."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid email address."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Already subscribed."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):(s("#saswp-news-letter-status").text("You're subscribed!"),s("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var c={content:i,position:{edge:"top",align:"left"}};c=s.extend(c,{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(){setTimeout(function(){e.element.pointer("close")},3e3)}),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"})}}),t=function(){s(saswp_localize_data.displayID).pointer(c).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"})}))},c.position&&c.position.defer_loading?s(window).bind("load.wp-pointers",t):t()}s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);if(t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),"premium_features"!=t||"yes"!=jQuery(this).attr("data-extmgr"))return s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),s(".saswp-schame-type-select").select2(),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(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&(s("#saswp_location_meta_box").removeClass("saswp_hide"),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(),saswp_enable_rating_automate(),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||"Service"==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").select2(),s(".saswp-local-sub-type-2").select2(),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(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_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),s("#saswp_location_meta_box").removeClass("saswp_hide")),"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(),saswp_enable_rating_automate()}).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-wpzoom-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpzoom").val(1):s("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yotpo").val(1):s("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ryviu").val(1):s("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimate-blocks").val(1):s("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-starsrating").val(1):s("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wptastyrecipe").val(1):s("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-recipress").val(1):s("#saswp-recipress").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_remove_cat_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_remove_cat").val(1):s("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?(s("#saswp_breadcrumb_schema").val(1),s("#saswp_breadcrumb_remove_cat").parent().parent().show()):(s("#saswp_breadcrumb_schema").val(0),s("#saswp_breadcrumb_remove_cat").parent().parent().hide());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_remove_version_tag_checkbox":s(this).is(":checked")?s("#saswp_remove_version_tag").val(1):s("#saswp_remove_version_tag").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-stars-rating-checkbox":s(this).is(":checked")?(s(".saswp-stars-post-table").removeClass("saswp_hide"),s(this).parent().parent().next().removeClass("saswp_hide"),s("#saswp-stars-rating").val(1)):(s(this).parent().parent().next().addClass("saswp_hide"),s(".saswp-stars-post-table").addClass("saswp_hide"),s("#saswp-stars-rating").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-rmprating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rmprating").val(1):s("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratingform").val(1):s("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpdiscuz").val(1):s("#saswp-wpdiscuz").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_woocommerce_archive_checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_woocommerce_archive").val(1):s("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpecommerce").val(1):s("#saswp-wpecommerce").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-single-price-product-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-single-price-product").val(1),s(".saswp-single-price-opt").parent().parent().show()):(s("#saswp-single-price-product").val(0),s(".saswp-single-price-opt").parent().parent().hide());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-enfold-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-enfold").val(1):s("#saswp-enfold").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-wpqa-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpqa").val(1):s("#saswp-wpqa").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-polylang-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-polylang").val(1):s("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-autolistings").val(1):s("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpml").val(1):s("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-metatagmanager").val(1):s("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-slimseo").val(1):s("#saswp-slimseo").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-video-thumbnails-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-video-thumbnails").val(1):s("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-featured-video-plus").val(1):s("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-product-review").val(1):s("#saswp-wp-product-review").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-ratency-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratency").val(1):s("#saswp-ratency").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-myhome-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-myhome").val(1):s("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-5").val(1):s("#saswp-realestate-5").val(0);break;case"saswp-realestate-7-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-7").val(1):s("#saswp-realestate-7").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stamped").val(1):s("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-sabaidiscuss").val(1):s("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-geodirectory").val(1):s("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-classipress").val(1):s("#saswp-classipress").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-wplms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wplms").val(1):s("#saswp-wplms").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-senseilms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-senseilms").val(1):s("#saswp-senseilms").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-full-heading-checkbox":s(this).is(":checked")?s("#saswp-full-heading").val(1):s("#saswp-full-heading").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-image-resizing-checkbox":s(this).is(":checked")?s("#saswp-image-resizing").val(1):s("#saswp-image-resizing").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-brb-checkbox":s(this).is(":checked")?s("#saswp-brb").val(1):s("#saswp-brb").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-wpreviewslider-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewslider").val(1):s("#saswp-wpreviewslider").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-cmp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cmp").val(1):s("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewpro").val(1):s("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webstories").val(1):s("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var t=s("#saswp-resized-image-folder-checkbox");s(this).is(":checked")?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s("#saswp-resized-image-folder").val(1),s("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(t.prop("checked",!1),t.next().text(e.message),t.next().css("color","red"))},error:function(s){t.prop("checked",!1),t.next().text(s),t.next().css("color","red")}}):(s("#saswp-resized-image-folder").val(0),s(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-elementor").val(1):s("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rannarecipe").val(1):s("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-jetpackrecipe").val(1):s("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-quickandeasyfaq").val(1):s("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimatefaqs").val(1):s("#saswp-ultimatefaqs").val(0);break;case"saswp-ultimatemember-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimatemember").val(1):s("#saswp-ultimatemember").val(0);break;case"saswp-showcaseidx-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-showcaseidx").val(1):s("#saswp-showcaseidx").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-arconixfaq").val(1):s("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqconcertina").val(1):s("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobmanager").val(1):s("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simplejobboard").val(1):s("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobopenings").val(1):s("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webfaq10").val(1):s("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpfaqschemamarkup").val(1):s("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqschemaforpost").val(1):s("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-masteraccordion").val(1):s("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyfaqs").val(1):s("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordion").val(1):s("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-html5responsivefaq").val(1):s("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresponsivefaq").val(1):s("#saswp-wpresponsivefaq").val(0);break;case"saswp-ameliabooking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ameliabooking").val(1):s("#saswp-ameliabooking").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyaccordion").val(1):s("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-helpiefaq").val(1):s("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mooberrybm").val(1):s("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-novelist").val(1):s("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordionfaq").val(1):s("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-schemaforfaqs").val(1):s("#saswp-schemaforfaqs").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-timetable-event-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-timetable-event").val(1):s("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-xo-event-calendar").val(1):s("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-vs-event-list").val(1):s("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-calendarize-it").val(1):s("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-schedule").val(1):s("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woo-event-manager").val(1):s("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stachethemes-event-calendar").val(1):s("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-all-in-one-event-calendar").val(1):s("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-on").val(1):s("#saswp-event-on").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 c="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(c='<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>'+c)}).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",tag_ID:saswp_localize_data.tag_ID,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_enable_rating_automate(),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",tag_ID:saswp_localize_data.tag_ID,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 c=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"));var c=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:c,schema_id:a,post_id:t,req_from:saswp_localize_data.req_from,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(),!0==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"),c=s("#"+i+"_addon_license_key").val();t&&i&&c?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,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&&e.days_remaining<0?(s("span.inactive_status_reviews").text("Expired"),s("span.inactive_status_reviews").css({color:"red","font-weight":"400"})):"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("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),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("span.inactive_status_"+i).text("Active"),s("span.inactive_status_"+i).css({color:"green","margin-left":"8px","font-weight":"400"}),s("span.inactive_status_"+i).removeClass("inactive_status_"+i).addClass("addon-activated_"+i)):(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),s("span.addon-activated_"+i).text("Inactive"),s("span.addon-activated_"+i).css("color","#bebfc0"),s("span.addon-activated_"+i).removeClass("addon-activated_"+i).addClass("inactive_status_"+i),s("span.limit_span").css("display","none")),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(s){var e=jQuery(this);s.preventDefault();var a=e.attr("add-on"),t=e.attr("remaining_days_org"),i=jQuery("#"+a+"_addon_license_key").val();document.getElementById("user_refresh_"+a).classList.add("spin");var c=new Date,p=function s(e){for(var a=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){for(var c=t[i];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(a))return c.substring(a.length,c.length)}return null}("saswp_addon_refresh_check");p=new Date(p);var n=-1,o=Math.abs(c.getTime()-p.getTime()),n=Math.ceil(o/864e5),o=Math.abs(new Date(t).getTime()-c.getTime()),r=Math.ceil(o/864e5);-1==n||n>1||r<1?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){jQuery("#"+a+"_addon_license_key_status").val(s.status),document.getElementById("user_refresh_"+a).classList.remove("spin"),e.removeClass("updating-message")},error:function(s){console.log(s)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),alert("Please try after "+(p=Math.abs(p.getDate()+1)+"/"+Math.abs(p.getMonth()+1)+"/"+p.getFullYear()+" "+p.getHours()+":"+p.getMinutes()+":"+p.getSeconds())))});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");n>=0&&n<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var a=e.days_remaining;a>=0&&a<=7&&s("span.saswp-addon-alert").text("expiring in "+a+" days ")}else document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),s("span.pro_warning").css("display","none")}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");n>=0&&n<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?(s("span#exp").text("Expired"),location.reload()):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message"))});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?s("span#exp").text("Expired"):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})}),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();""!=s.trim(a)&&i&&""!=s.trim(t)&&!0==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"),!1==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();var a='<tr class="saswp-review-item-tr">';a+="<td>Review Item Feature</td>",a+='<td><input type="text" name="saswp-review-item-feature[]"></td>',a+="<td>Rating</td>",a+='<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>',a+='<td><a type="button" class="saswp-remove-review-item button">x</a></td>',a+="</tr>",s(".saswp-review-item-list-table").append(a)}),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||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(),saswp_enable_rating_automate()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide();var o=window.location.hash;if("#saswp-default-container"==o?s(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==o?s(".saswp-global-container:eq(1)").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-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"),c=s(this).attr("div_type"),p=s(this).attr("itemlist_sub_type"),n=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div").length,o=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div:nth-child("+n+")").attr("data-id");(o=++o)||(o=0),saswp_get_post_specific_schema_fields(a,o,i,c,t,i+"_",p)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-table-close-new",function(){s(this).closest(".saswp-dynamic-properties").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(),c="",p=a.toLowerCase()+"_"+i,n="saswp_fixed_image["+i+"]";"manual_text"==t?(c+='<td><textarea cols="35" rows="2" name="saswp_fixed_text['+i+']"></textarea></td>',c+='<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(c),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(c+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),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,c+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),saswpCustomSelect2())},"json"):"custom_field"==t?(c+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',c+="</select></td>",c+='<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(c),saswpCustomSelect2()):"fixed_image"==t?(c+="<td>",c+="<fieldset>",c+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',c+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+n+'[height]" id="'+p+'_height" value="">',c+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+n+'[width]" id="'+p+'_width" value="">',c+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+n+'[thumbnail]" id="'+p+'_thumbnail" value="">',c+='<div class="saswp_image_div_'+p+'">',c+="</div>",c+="</fieldset>",c+="</td>",c+='<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(c),saswpCustomSelect2()):(c+="<td></td>",c+='<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(c),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 c=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:c,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(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),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 r='<div class="saswp-custom-post-tab">';r+='<div style="display:none;" id="saswp-accept-reviews-popup">',r+='<div class="saswp-accept-rv-container">',r+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",r+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',r+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',r+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',r+="</div>",r+="</div>",r+='<h2 class="nav-tab-wrapper">',r+="<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>',r+="<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>',r+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',r+="</h2>",r+="</div>",jQuery(jQuery(".wrap")).prepend(r)}jQuery(document).on("click",".saswp-clear-images",function(e){e.preventDefault();var a=s(this);!0==confirm("Are you sure? It will remove all the resized images")&&(a.addClass("updating-message"),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){a.removeClass("updating-message"),"t"!=s.status&&alert("something went wrong")},error:function(s){console.log(s)}}))}),"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({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().next().val(e)}}).on("rateyo.change",function(e,a){var t=a.rating;s(this).next().text(t)}),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-add-rv-btn",function(){s(".saswp-dynamic-platforms").toggle()}),s(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var s="";s+='<div class="saswp-add-dynamic-section">',s+='<div class="saswp-add-dynamic-btn">',s+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',s+="</div>",s+='<div class="saswp-dynamic-platforms" style="display:none;">',s+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",s+="</div>",s+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(s)}}),s(document).on("change","#saswp_dynamic_platforms",function(){var e=s(this).val(),a="";a+='<select id="saswp_dynamic_reviews_list">',a+="</select>",a+='<a class="button button-default saswp-add-single-rv">Add</a>',s("#saswp_dynamic_platforms").nextAll().remove(),s("#saswp_dynamic_platforms").after(a);var t=ajaxurl+"?action=saswp_add_reviews_to_select2&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&platform_id="+e;s("#saswp_dynamic_reviews_list").select2({ajax:{url:t,dataType:"json",processResults:function(s){if(s.status)return{results:s.message}}}})}),s(document).on("click",".saswp-add-single-rv",function(e){e.preventDefault();var a=s("#saswp_dynamic_reviews_list").val(),t=s("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,t,null,a,!0)}),s(document).on("click",".saswp-remove-coll-rv",function(){var e=s(this).attr("data-id"),a=s(this).attr("platform-id");if(a){var t=saswp_collection[a].filter(function(s){return s.saswp_review_id!=e});saswp_collection[a]=t,saswp_on_collection_design_change()}}),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(),a=s(".saswp-collection-sorting").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),s(".saswp-rmv-coll-rv").hide(),s(".saswp-add-dynamic-section").hide(),"grid"==e&&(s(".saswp-grid-options").removeClass("saswp_hide"),s(".saswp-rmv-coll-rv").show(),s(".saswp-add-dynamic-section").show()),"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"),s("#saswp_collection_specific_rating").is(":checked")?s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide"),"recent"==a?(s("#saswp_collection_specific_rating").parent().parent().removeClass("saswp_hide"),s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"),s("#saswp_collection_specific_rating").is(":checked")?s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")):(s("#saswp_collection_specific_rating").parent().parent().addClass("saswp_hide"),s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")),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,null)):alert("Enter Count")});var l=s("#saswp_total_reviews_list").val();l&&saswp_get_collection_data(null,null,null,null,l),(e=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",e.innerHTML="Copied!",document.body.appendChild(e);var d=document.getElementById("saswp-motivatebox");d&&d.addEventListener("mouseup",function(s){var t,i,c,p,n,s=s||event,o=s.target||s.srcElement;"motivate"==o.className&&(t=o,(i=document.createRange()).selectNodeContents(t),(c=window.getSelection()).removeAllRanges(),c.addRange(i),function s(){var e;try{e=document.execCommand("copy")}catch(a){e=!1}return e}()&&(n=(p=s)||event,clearTimeout(a),e.style.left=n.pageX-10+"px",e.style.top=n.pageY+15+"px",e.style.opacity=1,a=setTimeout(function(){e.style.opacity=0},500)))},!1)});
1
+ var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function(s){if(s(document).on("click","#saswp_loc_display_on_front",function(){s(this).is(":checked")?s(".saswp-front-location-inst").removeClass("saswp_hide"):s(".saswp-front-location-inst").addClass("saswp_hide")}),s(document).on("change",".saswp-collection-where",function(){s(this);var e,a=s(this).val();a&&(e=a)&&s.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:e,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(e){if(e){var a="";s.each(e,function(s,e){a+='<option value="'+e.id+'">'+e.text+"</option>"}),s(".saswp-collection-where-data").html(""),s(".saswp-collection-where-data").append(a),saswp_select2()}},error:function(s){console.log("Failed Ajax Request"),console.log(s)}})}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?(s(".saswp-coll-where").addClass("saswp_hide"),s("#saswp-motivatebox").css("display","block")):(s(".saswp-coll-where").removeClass("saswp_hide"),s("#saswp-motivatebox").css("display","none"))}).change(),s(document).on("click",".saswp-dismiss-notices",function(){var e=s(this),a=s(this).attr("notice-type");a&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status&&e.parent().parent().hide()},error:function(s){console.log(s)}})}),saswp_select2(),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(saswp_localize_data.translable_txt.attach_review,"#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=null;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,c="";t>0&&(c+=t+" Reviews, "),i>0&&(c+=i+" Collection"),c||(c=0),s(".saswp-attached-rv-count").text("Attached "+c),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)),i>=10&&s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"),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>'+saswp_localize_data.translable_txt.place_id+'</strong></td><td style="width:15%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.language+'</strong></td><td style="width:10%;"><input class="saswp-g-language-field" name="sd_data[saswp_reviews_language_name][]" type="text" value="" placeholder="nl"></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.fetch+'</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&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-language-field").val(),c=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),n=s("#reviews_addon_license_key").val(),o=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(c>0))return alert(saswp_localize_data.translable_txt.blocks_zero),e.removeClass("updating-message"),!1;if(0!=c%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(n||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:o,reviews_api:n,location:t,language:i,blocks:c,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(saswp_localize_data.translable_txt.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(saswp_localize_data.translable_txt.enter_place_id),""==p&&alert(saswp_localize_data.translable_txt.enter_api_key),""==n&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,a,t,i="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";i+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",i+='<style type="text/css">',i+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",i+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",i+="</style>",i+='<div id="saswp_mc_embed_signup">',i+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',i+='<div id="saswp_mc_embed_signup_scroll">',i+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',i+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',i+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',i+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',i+='<input type="hidden" name="ml-submit" value="1" />',i+="</div>",i+='<div id="mce-responses">',i+="</div>",i+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',i+='<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;">',i+='<p id="saswp-news-letter-status"></p>',i+="</div>",i+="</form>",i+="</div>",s(document).on("submit","#saswp-news-letter-form",function(e){e.preventDefault();var a=s(this),t=a.find('input[name="saswp_subscriber_name"]').val(),i=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),s.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:t,email:i,website:website},function(e){e?"Some fields are missing."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid email address."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Already subscribed."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):(s("#saswp-news-letter-status").text("You're subscribed!"),s("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var c={content:i,position:{edge:"top",align:"left"}};c=s.extend(c,{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(){setTimeout(function(){e.element.pointer("close")},3e3)}),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"})}}),t=function(){s(saswp_localize_data.displayID).pointer(c).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"})}))},c.position&&c.position.defer_loading?s(window).bind("load.wp-pointers",t):t()}s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);if(t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),"premium_features"!=t||"yes"!=jQuery(this).attr("data-extmgr"))return s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),s(".saswp-schame-type-select").select2(),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(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&(s("#saswp_location_meta_box").removeClass("saswp_hide"),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(),saswp_enable_rating_automate(),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||"Service"==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").select2(),s(".saswp-local-sub-type-2").select2(),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(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_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),s("#saswp_location_meta_box").removeClass("saswp_hide")),"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(),saswp_enable_rating_automate()}).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-wpzoom-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpzoom").val(1):s("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yotpo").val(1):s("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ryviu").val(1):s("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimate-blocks").val(1):s("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-starsrating").val(1):s("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wptastyrecipe").val(1):s("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-recipress").val(1):s("#saswp-recipress").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_remove_cat_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_remove_cat").val(1):s("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_include_parent_cat_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_include_parent_cat").val(1):s("#saswp_breadcrumb_include_parent_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?(s("#saswp_breadcrumb_schema").val(1),s("#saswp_breadcrumb_remove_cat").parent().parent().show(),s("#saswp_breadcrumb_include_parent_cat").parent().parent().show()):(s("#saswp_breadcrumb_schema").val(0),s("#saswp_breadcrumb_remove_cat").parent().parent().hide(),s("#saswp_breadcrumb_include_parent_cat").parent().parent().hide());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_remove_version_tag_checkbox":s(this).is(":checked")?s("#saswp_remove_version_tag").val(1):s("#saswp_remove_version_tag").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-stars-rating-checkbox":s(this).is(":checked")?(s(".saswp-stars-post-table").removeClass("saswp_hide"),s(this).parent().parent().next().removeClass("saswp_hide"),s("#saswp-stars-rating").val(1)):(s(this).parent().parent().next().addClass("saswp_hide"),s(".saswp-stars-post-table").addClass("saswp_hide"),s("#saswp-stars-rating").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-rmprating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rmprating").val(1):s("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratingform").val(1):s("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpdiscuz").val(1):s("#saswp-wpdiscuz").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_woocommerce_archive_checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_woocommerce_archive").val(1):s("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpecommerce").val(1):s("#saswp-wpecommerce").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-single-price-product-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-single-price-product").val(1),s(".saswp-single-price-opt").parent().parent().show()):(s("#saswp-single-price-product").val(0),s(".saswp-single-price-opt").parent().parent().hide());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-enfold-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-enfold").val(1):s("#saswp-enfold").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-wpqa-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpqa").val(1):s("#saswp-wpqa").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-polylang-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-polylang").val(1):s("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-autolistings").val(1):s("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpml").val(1):s("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-metatagmanager").val(1):s("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-slimseo").val(1):s("#saswp-slimseo").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-video-thumbnails-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-video-thumbnails").val(1):s("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-featured-video-plus").val(1):s("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-product-review").val(1):s("#saswp-wp-product-review").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-ratency-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratency").val(1):s("#saswp-ratency").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-myhome-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-myhome").val(1):s("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-5").val(1):s("#saswp-realestate-5").val(0);break;case"saswp-realestate-7-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-7").val(1):s("#saswp-realestate-7").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stamped").val(1):s("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-sabaidiscuss").val(1):s("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-geodirectory").val(1):s("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-classipress").val(1):s("#saswp-classipress").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-wplms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wplms").val(1):s("#saswp-wplms").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-senseilms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-senseilms").val(1):s("#saswp-senseilms").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-full-heading-checkbox":s(this).is(":checked")?s("#saswp-full-heading").val(1):s("#saswp-full-heading").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-image-resizing-checkbox":s(this).is(":checked")?s("#saswp-image-resizing").val(1):s("#saswp-image-resizing").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-brb-checkbox":s(this).is(":checked")?s("#saswp-brb").val(1):s("#saswp-brb").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-wpreviewslider-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewslider").val(1):s("#saswp-wpreviewslider").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-cmp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cmp").val(1):s("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewpro").val(1):s("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webstories").val(1):s("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var t=s("#saswp-resized-image-folder-checkbox");s(this).is(":checked")?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s("#saswp-resized-image-folder").val(1),s("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(t.prop("checked",!1),t.next().text(e.message),t.next().css("color","red"))},error:function(s){t.prop("checked",!1),t.next().text(s),t.next().css("color","red")}}):(s("#saswp-resized-image-folder").val(0),s(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-elementor").val(1):s("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rannarecipe").val(1):s("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-jetpackrecipe").val(1):s("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-quickandeasyfaq").val(1):s("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimatefaqs").val(1):s("#saswp-ultimatefaqs").val(0);break;case"saswp-ultimatemember-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimatemember").val(1):s("#saswp-ultimatemember").val(0);break;case"saswp-showcaseidx-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-showcaseidx").val(1):s("#saswp-showcaseidx").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-arconixfaq").val(1):s("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqconcertina").val(1):s("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobmanager").val(1):s("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simplejobboard").val(1):s("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobopenings").val(1):s("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webfaq10").val(1):s("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpfaqschemamarkup").val(1):s("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqschemaforpost").val(1):s("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-masteraccordion").val(1):s("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyfaqs").val(1):s("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordion").val(1):s("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-html5responsivefaq").val(1):s("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresponsivefaq").val(1):s("#saswp-wpresponsivefaq").val(0);break;case"saswp-ameliabooking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ameliabooking").val(1):s("#saswp-ameliabooking").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyaccordion").val(1):s("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-helpiefaq").val(1):s("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mooberrybm").val(1):s("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-novelist").val(1):s("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordionfaq").val(1):s("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-schemaforfaqs").val(1):s("#saswp-schemaforfaqs").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-timetable-event-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-timetable-event").val(1):s("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-xo-event-calendar").val(1):s("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-vs-event-list").val(1):s("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-calendarize-it").val(1):s("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-schedule").val(1):s("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woo-event-manager").val(1):s("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stachethemes-event-calendar").val(1):s("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-all-in-one-event-calendar").val(1):s("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-on").val(1):s("#saswp-event-on").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 c="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(c='<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>'+c)}).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",tag_ID:saswp_localize_data.tag_ID,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_enable_rating_automate(),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",tag_ID:saswp_localize_data.tag_ID,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 c=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"));var c=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:c,schema_id:a,post_id:t,req_from:saswp_localize_data.req_from,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(),!0==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"),c=s("#"+i+"_addon_license_key").val();t&&i&&c?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,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&&e.days_remaining<0?(s("span.inactive_status_reviews").text("Expired"),s("span.inactive_status_reviews").css({color:"red","font-weight":"400"})):"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("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),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("span.inactive_status_"+i).text("Active"),s("span.inactive_status_"+i).css({color:"green","margin-left":"8px","font-weight":"400"}),s("span.inactive_status_"+i).removeClass("inactive_status_"+i).addClass("addon-activated_"+i)):(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),s("span.addon-activated_"+i).text("Inactive"),s("span.addon-activated_"+i).css("color","#bebfc0"),s("span.addon-activated_"+i).removeClass("addon-activated_"+i).addClass("inactive_status_"+i),s("span.limit_span").css("display","none")),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(s){var e=jQuery(this);s.preventDefault();var a=e.attr("add-on"),t=e.attr("remaining_days_org"),i=jQuery("#"+a+"_addon_license_key").val();document.getElementById("user_refresh_"+a).classList.add("spin");var c=new Date,p=function s(e){for(var a=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){for(var c=t[i];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(a))return c.substring(a.length,c.length)}return null}("saswp_addon_refresh_check");p=new Date(p);var n=-1,o=Math.abs(c.getTime()-p.getTime()),n=Math.ceil(o/864e5),o=Math.abs(new Date(t).getTime()-c.getTime()),r=Math.ceil(o/864e5);-1==n||n>1||r<1?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){jQuery("#"+a+"_addon_license_key_status").val(s.status),document.getElementById("user_refresh_"+a).classList.remove("spin"),e.removeClass("updating-message")},error:function(s){console.log(s)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),alert("Please try after "+(p=Math.abs(p.getDate()+1)+"/"+Math.abs(p.getMonth()+1)+"/"+p.getFullYear()+" "+p.getHours()+":"+p.getMinutes()+":"+p.getSeconds())))});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");n>=0&&n<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var a=e.days_remaining;a>=0&&a<=7&&s("span.saswp-addon-alert").text("expiring in "+a+" days ")}else document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),s("span.pro_warning").css("display","none")}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");n>=0&&n<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?(s("span#exp").text("Expired"),location.reload()):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message"))});var p=document.getElementById("activated-plugins-days_remaining");if(p)var n=p.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on");s(this).attr("data-attr"),s(this).attr("add-onname");var c=s("#"+i+"_addon_license_key").val();i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?s("span#exp").text("Expired"):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})}),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();""!=s.trim(a)&&i&&""!=s.trim(t)&&!0==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"),!1==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();var a='<tr class="saswp-review-item-tr">';a+="<td>Review Item Feature</td>",a+='<td><input type="text" name="saswp-review-item-feature[]"></td>',a+="<td>Rating</td>",a+='<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>',a+='<td><a type="button" class="saswp-remove-review-item button">x</a></td>',a+="</tr>",s(".saswp-review-item-list-table").append(a)}),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||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(),saswp_enable_rating_automate()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide();var o=window.location.hash;if("#saswp-default-container"==o?s(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==o?s(".saswp-global-container:eq(1)").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-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"),c=s(this).attr("div_type"),p=s(this).attr("itemlist_sub_type"),n=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div").length,o=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div:nth-child("+n+")").attr("data-id");(o=++o)||(o=0),saswp_get_post_specific_schema_fields(a,o,i,c,t,i+"_",p)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-table-close-new",function(){s(this).closest(".saswp-dynamic-properties").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(),c="",p=a.toLowerCase()+"_"+i,n="saswp_fixed_image["+i+"]";"manual_text"==t?(c+='<td><textarea cols="35" rows="2" name="saswp_fixed_text['+i+']"></textarea></td>',c+='<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(c),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(c+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),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,c+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),saswpCustomSelect2())},"json"):"custom_field"==t?(c+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',c+="</select></td>",c+='<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(c),saswpCustomSelect2()):"fixed_image"==t?(c+="<td>",c+="<fieldset>",c+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',c+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+n+'[height]" id="'+p+'_height" value="">',c+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+n+'[width]" id="'+p+'_width" value="">',c+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+n+'[thumbnail]" id="'+p+'_thumbnail" value="">',c+='<div class="saswp_image_div_'+p+'">',c+="</div>",c+="</fieldset>",c+="</td>",c+='<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(c),saswpCustomSelect2()):(c+="<td></td>",c+='<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(c),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 c=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:c,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(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),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 r='<div class="saswp-custom-post-tab">';r+='<div style="display:none;" id="saswp-accept-reviews-popup">',r+='<div class="saswp-accept-rv-container">',r+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",r+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',r+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',r+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',r+="</div>",r+="</div>",r+='<h2 class="nav-tab-wrapper">',r+="<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>',r+="<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>',r+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',r+="</h2>",r+="</div>",jQuery(jQuery(".wrap")).prepend(r)}jQuery(document).on("click",".saswp-clear-images",function(e){e.preventDefault();var a=s(this);!0==confirm("Are you sure? It will remove all the resized images")&&(a.addClass("updating-message"),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){a.removeClass("updating-message"),"t"!=s.status&&alert("something went wrong")},error:function(s){console.log(s)}}))}),"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({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().next().val(e)}}).on("rateyo.change",function(e,a){var t=a.rating;s(this).next().text(t)}),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-add-rv-btn",function(){s(".saswp-dynamic-platforms").toggle()}),s(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var s="";s+='<div class="saswp-add-dynamic-section">',s+='<div class="saswp-add-dynamic-btn">',s+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',s+="</div>",s+='<div class="saswp-dynamic-platforms" style="display:none;">',s+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",s+="</div>",s+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(s)}}),s(document).on("change","#saswp_dynamic_platforms",function(){var e=s(this).val(),a="";a+='<select id="saswp_dynamic_reviews_list">',a+="</select>",a+='<a class="button button-default saswp-add-single-rv">Add</a>',s("#saswp_dynamic_platforms").nextAll().remove(),s("#saswp_dynamic_platforms").after(a);var t=ajaxurl+"?action=saswp_add_reviews_to_select2&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&platform_id="+e;s("#saswp_dynamic_reviews_list").select2({ajax:{url:t,dataType:"json",processResults:function(s){if(s.status)return{results:s.message}}}})}),s(document).on("click",".saswp-add-single-rv",function(e){e.preventDefault();var a=s("#saswp_dynamic_reviews_list").val(),t=s("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,t,null,a,!0)}),s(document).on("click",".saswp-remove-coll-rv",function(){var e=s(this).attr("data-id"),a=s(this).attr("platform-id");if(a){var t=saswp_collection[a].filter(function(s){return s.saswp_review_id!=e});saswp_collection[a]=t,saswp_on_collection_design_change()}}),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(),a=s(".saswp-collection-sorting").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),s(".saswp-rmv-coll-rv").hide(),s(".saswp-add-dynamic-section").hide(),"grid"==e&&(s(".saswp-grid-options").removeClass("saswp_hide"),s(".saswp-rmv-coll-rv").show(),s(".saswp-add-dynamic-section").show()),"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"),s("#saswp_collection_specific_rating").is(":checked")?s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide"),"recent"==a?(s("#saswp_collection_specific_rating").parent().parent().removeClass("saswp_hide"),s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"),s("#saswp_collection_specific_rating").is(":checked")?s("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")):(s("#saswp_collection_specific_rating").parent().parent().addClass("saswp_hide"),s("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")),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,null)):alert("Enter Count")});var l=s("#saswp_total_reviews_list").val();l&&saswp_get_collection_data(null,null,null,null,l),(e=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",e.innerHTML="Copied!",document.body.appendChild(e);var d=document.getElementById("saswp-motivatebox");d&&d.addEventListener("mouseup",function(s){var t,i,c,p,n,s=s||event,o=s.target||s.srcElement;"motivate"==o.className&&(t=o,(i=document.createRange()).selectNodeContents(t),(c=window.getSelection()).removeAllRanges(),c.addRange(i),function s(){var e;try{e=document.execCommand("copy")}catch(a){e=!1}return e}()&&(n=(p=s)||event,clearTimeout(a),e.style.left=n.pageX-10+"px",e.style.top=n.pageY+15+"px",e.style.opacity=1,a=setTimeout(function(){e.style.opacity=0},500)))},!1)});
admin_section/settings.php CHANGED
@@ -1050,6 +1050,17 @@ function saswp_general_page_callback(){
1050
  'name' => 'sd_data[saswp_breadcrumb_remove_cat]',
1051
  )
1052
  );
 
 
 
 
 
 
 
 
 
 
 
1053
 
1054
  $meta_fields_default[] = array(
1055
  'label' => 'Comments',
1050
  'name' => 'sd_data[saswp_breadcrumb_remove_cat]',
1051
  )
1052
  );
1053
+ $meta_fields_default[] = array(
1054
+ 'label' => 'Include Parent Category',
1055
+ 'id' => 'saswp_breadcrumb_include_parent_cat_checkbox',
1056
+ 'name' => 'saswp_breadcrumb_include_parent_cat_checkbox',
1057
+ 'type' => 'checkbox',
1058
+ 'class' => 'checkbox saswp-checkbox',
1059
+ 'hidden' => array(
1060
+ 'id' => 'saswp_breadcrumb_include_parent_cat',
1061
+ 'name' => 'sd_data[saswp_breadcrumb_include_parent_cat]',
1062
+ )
1063
+ );
1064
 
1065
  $meta_fields_default[] = array(
1066
  'label' => 'Comments',
admin_section/structure_admin.php CHANGED
@@ -1242,6 +1242,31 @@ function saswp_custom_breadcrumbs() {
1242
  }
1243
 
1244
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1245
 
1246
  if( !isset($sd_data['saswp_breadcrumb_remove_cat']) || (isset($sd_data['saswp_breadcrumb_remove_cat']) && $sd_data['saswp_breadcrumb_remove_cat'] == 0 ) ){
1247
 
1242
  }
1243
 
1244
  }
1245
+
1246
+ if(isset($sd_data['saswp_breadcrumb_include_parent_cat']) && $sd_data['saswp_breadcrumb_include_parent_cat'] == 1){
1247
+ // Get post parent category info
1248
+ $category = get_the_category();
1249
+ if(!empty($category)) {
1250
+ $category_values = array_values( $category );
1251
+ foreach ($category_values as $category_value) {
1252
+ $category_name = get_category($category_value);
1253
+
1254
+ if(is_object($category_name)){
1255
+ $child = get_category($category_name->term_id);
1256
+ $parent = $child->parent;
1257
+ $parent_name = get_category($parent);
1258
+ $parent_name = $parent_name->name;
1259
+ $variables1_titles[] = $parent_name;
1260
+ $variables2_links[] = get_category_link( $parent );
1261
+ $breadcrumb_url = get_category_link( $parent );
1262
+ }
1263
+ }
1264
+
1265
+ $sd_data['titles'] = $variables1_titles;
1266
+ $sd_data['links'] = $variables2_links;
1267
+ $sd_data['breadcrumb_url'] = $breadcrumb_url;
1268
+ }
1269
+ }
1270
 
1271
  if( !isset($sd_data['saswp_breadcrumb_remove_cat']) || (isset($sd_data['saswp_breadcrumb_remove_cat']) && $sd_data['saswp_breadcrumb_remove_cat'] == 0 ) ){
1272
 
core/array-list/schema-properties.php CHANGED
@@ -327,6 +327,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
327
  case 'Blogposting':
328
  case 'BlogPosting':
329
  $meta_field = array(
 
 
 
 
 
 
330
  array(
331
  'label' => 'Main Entity Of Page',
332
  'id' => 'saswp_blogposting_main_entity_of_page_'.$schema_id,
@@ -427,11 +433,27 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
427
  'type' => 'text',
428
  'default' => $author_url
429
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
  array(
431
  'label' => 'ReviewedBy Type',
432
  'id' => 'saswp_blogposting_reviewedby_type_'.$schema_id,
433
  'type' => 'select',
434
  'options' => array(
 
435
  'Person' => 'Person',
436
  'Organization' => 'Organization',
437
  )
@@ -462,6 +484,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
462
  'type' => 'text',
463
  'default' => $author_url
464
  ),
 
 
 
 
 
 
 
 
 
 
 
465
  array(
466
  'label' => 'Editor Name',
467
  'id' => 'saswp_blogposting_editor_name_'.$schema_id,
@@ -476,6 +509,26 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
476
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
477
  ),
478
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
  array(
480
  'label' => 'Organization Name',
481
  'id' => 'saswp_blogposting_organization_name_'.$schema_id,
@@ -505,15 +558,6 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
505
  'default' => '',
506
  'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )'
507
  ),
508
- array(
509
- 'label' => 'ReviewedBy',
510
- 'id' => 'saswp_blogposting_reviewedby_'.$schema_id,
511
- 'type' => 'select',
512
- 'options' => array(
513
- 'Person' => 'Person',
514
- 'Organization' => 'Organization',
515
- )
516
- ),
517
  array(
518
  'label' => 'Speakable',
519
  'id' => 'saswp_blogposting_speakable_'.$schema_id,
@@ -536,6 +580,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
536
  $word_count = saswp_reading_time_and_word_count();
537
 
538
  $meta_field = array(
 
 
 
 
 
 
539
  array(
540
  'label' => 'Main Entity Of Page',
541
  'id' => 'saswp_newsarticle_main_entity_of_page_'.$schema_id,
@@ -663,12 +713,50 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
663
  'type' => 'media',
664
  'default' => isset($author_details['url']) ? $author_details['url']: ''
665
  ),
 
 
 
 
 
 
 
 
 
 
 
666
  array(
667
  'label' => 'Editor Name',
668
  'id' => 'saswp_newsarticle_editor_name_'.$schema_id,
669
  'type' => 'text',
670
  'default' => is_object($current_user) ? $current_user->display_name : ''
671
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
672
  array(
673
  'label' => 'Organization Name',
674
  'id' => 'saswp_newsarticle_organization_name_'.$schema_id,
@@ -692,6 +780,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
692
 
693
  case 'WebPage':
694
  $meta_field = array(
 
 
 
 
 
 
695
  array(
696
  'label' => 'Name',
697
  'id' => 'saswp_webpage_name_'.$schema_id,
@@ -817,8 +911,141 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
817
  );
818
  break;
819
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
  case 'Photograph':
821
  $meta_field = array(
 
 
 
 
 
 
822
  array(
823
  'label' => 'Headline',
824
  'id' => 'saswp_photograph_headline_'.$schema_id,
@@ -894,12 +1121,72 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
894
  'id' => 'saswp_photograph_author_url_'.$schema_id,
895
  'type' => 'text',
896
  'default' => $author_url
897
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
898
  array(
899
  'label' => 'ReviewedBy Type',
900
  'id' => 'saswp_photograph_reviewedby_type_'.$schema_id,
901
  'type' => 'select',
902
  'options' => array(
 
903
  'Person' => 'Person',
904
  'Organization' => 'Organization',
905
  )
@@ -973,6 +1260,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
973
 
974
  case 'Article':
975
  $meta_field = array(
 
 
 
 
 
 
976
  array(
977
  'label' => 'Main Entity Of Page',
978
  'id' => 'saswp_article_main_entity_of_page_'.$schema_id,
@@ -1073,11 +1366,27 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1073
  'type' => 'text',
1074
  'default' => $author_url
1075
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1076
  array(
1077
  'label' => 'ReviewedBy Type',
1078
  'id' => 'saswp_article_reviewedby_type_'.$schema_id,
1079
  'type' => 'select',
1080
  'options' => array(
 
1081
  'Person' => 'Person',
1082
  'Organization' => 'Organization',
1083
  )
@@ -1108,6 +1417,16 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1108
  'type' => 'text',
1109
  'default' => $author_url
1110
  ),
 
 
 
 
 
 
 
 
 
 
1111
  array(
1112
  'label' => 'Editor Name',
1113
  'id' => 'saswp_article_editor_name_'.$schema_id,
@@ -1121,7 +1440,25 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1121
  'attributes' => array(
1122
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
1123
  ),
1124
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1125
  array(
1126
  'label' => 'Organization Name',
1127
  'id' => 'saswp_article_organization_name_'.$schema_id,
@@ -1163,7 +1500,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1163
  break;
1164
 
1165
  case 'VisualArtwork':
1166
- $meta_field = array(
 
 
 
 
 
 
1167
  array(
1168
  'label' => 'URL',
1169
  'id' => 'saswp_visualartwork_url_'.$schema_id,
@@ -1267,7 +1610,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1267
  break;
1268
 
1269
  case 'EducationalOccupationalProgram':
1270
- $meta_field = array(
 
 
 
 
 
 
1271
  array(
1272
  'label' => 'Name',
1273
  'id' => 'saswp_eop_name_'.$schema_id,
@@ -1513,6 +1862,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1513
 
1514
  case 'CreativeWork':
1515
  $meta_field = array(
 
 
 
 
 
 
1516
  array(
1517
  'label' => 'Main Entity Of Page',
1518
  'id' => 'saswp_creativework_main_entity_of_page_'.$schema_id,
@@ -1613,11 +1968,27 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1613
  'type' => 'text',
1614
  'default' => $author_url
1615
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1616
  array(
1617
  'label' => 'ReviewedBy Type',
1618
  'id' => 'saswp_creativework_reviewedby_type_'.$schema_id,
1619
  'type' => 'select',
1620
  'options' => array(
 
1621
  'Person' => 'Person',
1622
  'Organization' => 'Organization',
1623
  )
@@ -1648,6 +2019,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1648
  'type' => 'text',
1649
  'default' => $author_url
1650
  ),
 
 
 
 
 
 
 
 
 
 
 
1651
  array(
1652
  'label' => 'Editor Name',
1653
  'id' => 'saswp_creativework_editor_name_'.$schema_id,
@@ -1662,6 +2044,25 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1662
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
1663
  ),
1664
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1665
  array(
1666
  'label' => 'Organization Name',
1667
  'id' => 'saswp_creativework_organization_name_'.$schema_id,
@@ -1710,6 +2111,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1710
  }
1711
 
1712
  $meta_field = array(
 
 
 
 
 
 
1713
  array(
1714
  'label' => 'Name',
1715
  'id' => 'saswp_special_announcement_name_'.$schema_id,
@@ -2128,6 +2535,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2128
 
2129
  case 'TechArticle':
2130
  $meta_field = array(
 
 
 
 
 
 
2131
  array(
2132
  'label' => 'Main Entity Of Page',
2133
  'id' => 'saswp_tech_article_main_entity_of_page_'.$schema_id,
@@ -2210,11 +2623,27 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2210
  'type' => 'text',
2211
  'default' => $author_url
2212
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2213
  array(
2214
  'label' => 'ReviewedBy Type',
2215
  'id' => 'saswp_tech_article_reviewedby_type_'.$schema_id,
2216
  'type' => 'select',
2217
  'options' => array(
 
2218
  'Person' => 'Person',
2219
  'Organization' => 'Organization',
2220
  )
@@ -2244,7 +2673,17 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2244
  'id' => 'saswp_tech_article_reviewedby_url_'.$schema_id,
2245
  'type' => 'text',
2246
  'default' => $author_url
2247
- ),
 
 
 
 
 
 
 
 
 
 
2248
  array(
2249
  'label' => 'Editor Name',
2250
  'id' => 'saswp_tech_article_editor_name_'.$schema_id,
@@ -2259,6 +2698,24 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2259
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
2260
  ),
2261
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2262
  array(
2263
  'label' => 'Organization Name',
2264
  'id' => 'saswp_tech_article_organization_name_'.$schema_id,
@@ -2298,6 +2755,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2298
 
2299
  case 'Course':
2300
  $meta_field = array(
 
 
 
 
 
 
2301
  array(
2302
  'label' => 'Name',
2303
  'id' => 'saswp_course_name_'.$schema_id,
@@ -2395,6 +2858,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2395
 
2396
  case 'DiscussionForumPosting':
2397
  $meta_field = array(
 
 
 
 
 
 
2398
  array(
2399
  'label' => 'mainEntityOfPage',
2400
  'id' => 'saswp_dfp_main_entity_of_page_'.$schema_id,
@@ -2481,6 +2950,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2481
 
2482
  case 'Recipe':
2483
  $meta_field = array(
 
 
 
 
 
 
2484
  array(
2485
  'label' => 'URL',
2486
  'id' => 'saswp_recipe_url_'.$schema_id,
@@ -2813,6 +3288,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2813
  case 'PsychologicalTreatment':
2814
 
2815
  $meta_field = array(
 
 
 
 
 
 
2816
  array(
2817
  'label' => 'Name',
2818
  'id' => 'saswp_psychological_treatment_name_'.$schema_id,
@@ -2886,6 +3367,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2886
  case 'RealEstateListing':
2887
 
2888
  $meta_field = array(
 
 
 
 
 
 
2889
  array(
2890
  'label' => 'Date Posted',
2891
  'id' => 'saswp_real_estate_listing_date_posted_'.$schema_id,
@@ -2984,6 +3471,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
2984
  case 'RentAction':
2985
 
2986
  $meta_field = array(
 
 
 
 
 
 
2987
  array(
2988
  'label' => 'Agent Name',
2989
  'id' => 'saswp_rent_action_agent_name_'.$schema_id,
@@ -3007,6 +3500,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3007
  case 'Audiobook':
3008
 
3009
  $meta_field = array(
 
 
 
 
 
 
3010
  array(
3011
  'label' => 'Name',
3012
  'id' => 'saswp_audiobook_name_'.$schema_id,
@@ -3120,8 +3619,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3120
  break;
3121
 
3122
  case 'HotelRoom':
3123
-
3124
  $meta_field = array(
 
 
 
 
 
 
3125
  array(
3126
  'label' => 'Hotel Name',
3127
  'id' => 'saswp_hotelroom_hotel_name_'.$schema_id,
@@ -3223,6 +3728,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3223
  case 'PodcastEpisode':
3224
 
3225
  $meta_field = array(
 
 
 
 
 
 
3226
  array(
3227
  'label' => 'Name',
3228
  'id' => 'saswp_podcast_episode_name_'.$schema_id,
@@ -3282,6 +3793,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3282
  case 'PodcastSeason':
3283
 
3284
  $meta_field = array(
 
 
 
 
 
 
3285
  array(
3286
  'label' => 'Name',
3287
  'id' => 'saswp_podcast_season_name_'.$schema_id,
@@ -3341,6 +3858,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3341
  case 'EducationalOccupationalCredential':
3342
 
3343
  $meta_field = array(
 
 
 
 
 
 
3344
  array(
3345
  'label' => 'Additional Type',
3346
  'id' => 'saswp_eoc_additional_type_'.$schema_id,
@@ -3417,7 +3940,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3417
  case 'ApartmentComplex':
3418
 
3419
  $meta_field = array(
3420
-
 
 
 
 
 
3421
  array(
3422
  'label' => 'Name',
3423
  'id' => 'saswp_apartment_complex_name_'.$schema_id,
@@ -3508,7 +4036,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3508
  $product_details = $service->saswp_woocommerce_product_details($post_id);
3509
 
3510
  }
3511
-
3512
  $meta_field = array(
3513
  array(
3514
  'label' => 'Name',
@@ -3701,6 +4229,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3701
  case 'Service':
3702
 
3703
  $meta_field = array(
 
 
 
 
 
 
3704
  array(
3705
  'label' => 'Name',
3706
  'id' => 'saswp_service_schema_name_'.$schema_id,
@@ -3827,6 +4361,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
3827
  case 'TaxiService':
3828
 
3829
  $meta_field = array(
 
 
 
 
 
 
3830
  array(
3831
  'label' => 'Name',
3832
  'id' => 'saswp_taxi_service_schema_name_'.$schema_id,
@@ -4040,9 +4580,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4040
  break;
4041
 
4042
  case 'AudioObject':
4043
-
4044
  $meta_field = array(
4045
-
 
 
 
 
 
4046
  array(
4047
  'label' => 'Name',
4048
  'id' => 'saswp_audio_schema_name_'.$schema_id,
@@ -4116,7 +4661,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4116
  case 'SoftwareApplication':
4117
 
4118
  $meta_field = array(
4119
-
 
 
 
 
 
4120
  array(
4121
  'label' => 'Name',
4122
  'id' => 'saswp_software_schema_name_'.$schema_id,
@@ -4185,6 +4735,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4185
  case 'MobileApplication':
4186
 
4187
  $meta_field = array(
 
 
 
 
 
 
4188
 
4189
  array(
4190
  'label' => 'Name',
@@ -4256,6 +4812,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4256
  $video_links = saswp_get_video_metadata();
4257
 
4258
  $meta_field = array(
 
 
 
 
 
 
4259
  array(
4260
  'label' => 'URL',
4261
  'id' => 'saswp_video_object_url_'.$schema_id,
@@ -4687,6 +5249,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4687
  case 'MedicalCondition':
4688
 
4689
  $meta_field = array(
 
 
 
 
 
 
4690
  array(
4691
  'label' => 'Name',
4692
  'id' => 'saswp_mc_schema_name_'.$schema_id,
@@ -4777,6 +5345,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4777
  case 'VideoGame':
4778
 
4779
  $meta_field = array(
 
 
 
 
 
 
4780
  array(
4781
  'label' => 'Name',
4782
  'id' => 'saswp_vg_schema_name_'.$schema_id,
@@ -4924,6 +5498,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4924
  case 'TVSeries':
4925
 
4926
  $meta_field = array(
 
 
 
 
 
 
4927
  array(
4928
  'label' => 'Name',
4929
  'id' => 'saswp_tvseries_schema_name_'.$schema_id,
@@ -4966,6 +5546,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
4966
  case 'Apartment':
4967
 
4968
  $meta_field = array(
 
 
 
 
 
 
4969
  array(
4970
  'label' => 'Name',
4971
  'id' => 'saswp_apartment_schema_name_'.$schema_id,
@@ -5058,6 +5644,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5058
  case 'House':
5059
 
5060
  $meta_field = array(
 
 
 
 
 
 
5061
  array(
5062
  'label' => 'Name',
5063
  'id' => 'saswp_house_schema_name_'.$schema_id,
@@ -5140,6 +5732,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5140
  case 'SingleFamilyResidence':
5141
 
5142
  $meta_field = array(
 
 
 
 
 
 
5143
  array(
5144
  'label' => 'Name',
5145
  'id' => 'saswp_sfr_schema_name_'.$schema_id,
@@ -5231,6 +5829,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5231
  case 'TouristAttraction':
5232
 
5233
  $meta_field = array(
 
 
 
 
 
 
5234
  array(
5235
  'label' => 'Name',
5236
  'id' => 'saswp_ta_schema_name_'.$schema_id,
@@ -5302,8 +5906,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5302
  break;
5303
 
5304
  case 'TouristDestination':
5305
-
5306
  $meta_field = array(
 
 
 
 
 
 
5307
  array(
5308
  'label' => 'Name',
5309
  'id' => 'saswp_td_schema_name_'.$schema_id,
@@ -5368,6 +5978,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5368
  case 'LandmarksOrHistoricalBuildings':
5369
 
5370
  $meta_field = array(
 
 
 
 
 
 
5371
  array(
5372
  'label' => 'Name',
5373
  'id' => 'saswp_lorh_schema_name_'.$schema_id,
@@ -5451,6 +6067,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5451
  case 'HinduTemple':
5452
 
5453
  $meta_field = array(
 
 
 
 
 
 
5454
  array(
5455
  'label' => 'Name',
5456
  'id' => 'saswp_hindutemple_schema_name_'.$schema_id,
@@ -5534,6 +6156,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5534
  case 'BuddhistTemple':
5535
 
5536
  $meta_field = array(
 
 
 
 
 
 
5537
  array(
5538
  'label' => 'Name',
5539
  'id' => 'saswp_buddhisttemple_schema_name_'.$schema_id,
@@ -5617,6 +6245,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5617
  case 'Church':
5618
 
5619
  $meta_field = array(
 
 
 
 
 
 
5620
  array(
5621
  'label' => 'Name',
5622
  'id' => 'saswp_church_schema_name_'.$schema_id,
@@ -5700,6 +6334,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5700
  case 'Mosque':
5701
 
5702
  $meta_field = array(
 
 
 
 
 
 
5703
  array(
5704
  'label' => 'Name',
5705
  'id' => 'saswp_mosque_schema_name_'.$schema_id,
@@ -5783,6 +6423,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5783
  case 'JobPosting':
5784
 
5785
  $meta_field = array(
 
 
 
 
 
 
5786
  array(
5787
  'label' => 'Title',
5788
  'id' => 'saswp_jobposting_schema_title_'.$schema_id,
@@ -5810,6 +6456,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5810
  'id' => 'saswp_jobposting_schema_dateposted_'.$schema_id,
5811
  'type' => 'text',
5812
  ),
 
 
 
 
 
 
5813
  array(
5814
  'label' => 'Valid Through',
5815
  'id' => 'saswp_jobposting_schema_validthrough_'.$schema_id,
@@ -5996,7 +6648,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5996
 
5997
  case 'Trip':
5998
 
5999
- $meta_field = array(
 
 
 
 
 
 
6000
  array(
6001
  'label' => 'Name',
6002
  'id' => 'saswp_trip_schema_name_'.$schema_id,
@@ -6033,6 +6691,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6033
  case 'BoatTrip':
6034
 
6035
  $meta_field = array(
 
 
 
 
 
 
6036
  array(
6037
  'label' => 'Name',
6038
  'id' => 'saswp_boat_trip_schema_name_'.$schema_id,
@@ -6087,6 +6751,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6087
  case 'FAQ':
6088
 
6089
  $meta_field = array(
 
 
 
 
 
 
6090
  array(
6091
  'label' => 'Headline',
6092
  'id' => 'saswp_faq_headline_'.$schema_id,
@@ -6579,6 +7249,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6579
  case 'Car':
6580
 
6581
  $meta_field = array(
 
 
 
 
 
 
6582
  array(
6583
  'label' => 'Name',
6584
  'id' => 'saswp_car_schema_name_'.$schema_id,
@@ -6714,8 +7390,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6714
  break;
6715
 
6716
  case 'Vehicle':
6717
-
6718
  $meta_field = array(
 
 
 
 
 
 
6719
  array(
6720
  'label' => 'Name',
6721
  'id' => 'saswp_vehicle_schema_name_'.$schema_id,
@@ -6853,6 +7535,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6853
  case 'CreativeWorkSeries':
6854
 
6855
  $meta_field = array(
 
 
 
 
 
 
6856
  array(
6857
  'label' => 'Name',
6858
  'id' => 'saswp_cws_schema_name_'.$schema_id,
@@ -6953,6 +7641,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6953
  case 'DataFeed':
6954
 
6955
  $meta_field = array(
 
6956
  array(
6957
  'label' => 'Name',
6958
  'id' => 'saswp_data_feed_schema_name_'.$schema_id,
@@ -6979,6 +7668,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
6979
  case 'MusicPlaylist':
6980
 
6981
  $meta_field = array(
 
 
 
 
 
 
6982
  array(
6983
  'label' => 'Name',
6984
  'id' => 'saswp_music_playlist_name_'.$schema_id,
@@ -7000,6 +7695,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7000
  case 'MusicAlbum':
7001
 
7002
  $meta_field = array(
 
 
 
 
 
 
7003
  array(
7004
  'label' => 'Name',
7005
  'id' => 'saswp_music_album_name_'.$schema_id,
@@ -7037,6 +7738,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7037
  case 'Book':
7038
 
7039
  $meta_field = array(
 
 
 
 
 
 
7040
  array(
7041
  'label' => 'Name',
7042
  'id' => 'saswp_book_name_'.$schema_id,
@@ -7159,6 +7866,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7159
  case 'MusicComposition':
7160
 
7161
  $meta_field = array(
 
 
 
 
 
 
7162
  array(
7163
  'label' => 'Name',
7164
  'id' => 'saswp_music_composition_name_'.$schema_id,
@@ -7210,7 +7923,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7210
 
7211
  case 'Organization':
7212
 
7213
- $meta_field = array(
 
 
 
 
 
 
7214
  array(
7215
  'label' => 'Name',
7216
  'id' => 'saswp_organization_name_'.$schema_id,
@@ -7347,7 +8066,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7347
 
7348
  case 'Project':
7349
 
7350
- $meta_field = array(
 
 
 
 
 
 
7351
  array(
7352
  'label' => 'Name',
7353
  'id' => 'saswp_project_name_'.$schema_id,
@@ -7484,7 +8209,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
7484
 
7485
  case 'Movie':
7486
 
7487
- $meta_field = array(
 
 
 
 
 
 
7488
  array(
7489
  'label' => 'Name',
7490
  'id' => 'saswp_movie_name_'.$schema_id,
327
  case 'Blogposting':
328
  case 'BlogPosting':
329
  $meta_field = array(
330
+ array(
331
+ 'label' => 'ID',
332
+ 'id' => 'saswp_blogposting_id_'.$schema_id,
333
+ 'type' => 'text',
334
+ 'default' => 'BlogPosting'
335
+ ),
336
  array(
337
  'label' => 'Main Entity Of Page',
338
  'id' => 'saswp_blogposting_main_entity_of_page_'.$schema_id,
433
  'type' => 'text',
434
  'default' => $author_url
435
  ),
436
+ array(
437
+ 'label' => 'Author Image URL',
438
+ 'id' => 'saswp_blogposting_author_image_'.$schema_id,
439
+ 'type' => 'media',
440
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
441
+ ),
442
+ array(
443
+ 'label' => 'JobTitle',
444
+ 'id' => 'saswp_blogposting_author_jobtitle_'.$schema_id,
445
+ 'type' => 'text',
446
+ 'default' => '',
447
+ 'attributes' => array(
448
+ 'placeholder' => 'eg: Editor in Chief'
449
+ ),
450
+ ),
451
  array(
452
  'label' => 'ReviewedBy Type',
453
  'id' => 'saswp_blogposting_reviewedby_type_'.$schema_id,
454
  'type' => 'select',
455
  'options' => array(
456
+ '' => 'Select',
457
  'Person' => 'Person',
458
  'Organization' => 'Organization',
459
  )
484
  'type' => 'text',
485
  'default' => $author_url
486
  ),
487
+
488
+ array(
489
+ 'label' => 'Editor Type',
490
+ 'id' => 'saswp_blogposting_editor_type_'.$schema_id,
491
+ 'type' => 'select',
492
+ 'options' => array(
493
+ "" => "Select",
494
+ 'Person' => 'Person',
495
+ 'Organization' => 'Organization',
496
+ )
497
+ ),
498
  array(
499
  'label' => 'Editor Name',
500
  'id' => 'saswp_blogposting_editor_name_'.$schema_id,
509
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
510
  ),
511
  ),
512
+ array(
513
+ 'label' => 'Editor Description',
514
+ 'id' => 'saswp_blogposting_editor_description_'.$schema_id,
515
+ 'type' => 'textarea',
516
+ 'default' => $author_desc
517
+ ),
518
+ array(
519
+ 'label' => 'Editor URL',
520
+ 'id' => 'saswp_blogposting_editor_url_'.$schema_id,
521
+ 'type' => 'text',
522
+ 'default' => $author_url
523
+ ),
524
+ array(
525
+ 'label' => 'Editor Image URL',
526
+ 'id' => 'saswp_blogposting_editor_image_'.$schema_id,
527
+ 'type' => 'media',
528
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
529
+ ),
530
+
531
+
532
  array(
533
  'label' => 'Organization Name',
534
  'id' => 'saswp_blogposting_organization_name_'.$schema_id,
558
  'default' => '',
559
  'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )'
560
  ),
 
 
 
 
 
 
 
 
 
561
  array(
562
  'label' => 'Speakable',
563
  'id' => 'saswp_blogposting_speakable_'.$schema_id,
580
  $word_count = saswp_reading_time_and_word_count();
581
 
582
  $meta_field = array(
583
+ array(
584
+ 'label' => 'ID',
585
+ 'id' => 'saswp_newsarticle_id_'.$schema_id,
586
+ 'type' => 'text',
587
+ 'default' => 'newsarticle'
588
+ ),
589
  array(
590
  'label' => 'Main Entity Of Page',
591
  'id' => 'saswp_newsarticle_main_entity_of_page_'.$schema_id,
713
  'type' => 'media',
714
  'default' => isset($author_details['url']) ? $author_details['url']: ''
715
  ),
716
+
717
+ array(
718
+ 'label' => 'Editor Type',
719
+ 'id' => 'saswp_newsarticle_editor_type_'.$schema_id,
720
+ 'type' => 'select',
721
+ 'options' => array(
722
+ "" => "Select",
723
+ 'Person' => 'Person',
724
+ 'Organization' => 'Organization',
725
+ )
726
+ ),
727
  array(
728
  'label' => 'Editor Name',
729
  'id' => 'saswp_newsarticle_editor_name_'.$schema_id,
730
  'type' => 'text',
731
  'default' => is_object($current_user) ? $current_user->display_name : ''
732
+ ),
733
+ array(
734
+ 'label' => 'Editor HonorificSuffix',
735
+ 'id' => 'saswp_newsarticle_editor_honorific_suffix_'.$schema_id,
736
+ 'type' => 'text',
737
+ 'attributes' => array(
738
+ 'placeholder' => 'eg: M.D. /PhD/MSCSW.'
739
+ ),
740
+ ),
741
+ array(
742
+ 'label' => 'Editor Description',
743
+ 'id' => 'saswp_newsarticle_editor_description_'.$schema_id,
744
+ 'type' => 'textarea',
745
+ 'default' => $author_desc
746
+ ),
747
+ array(
748
+ 'label' => 'Editor URL',
749
+ 'id' => 'saswp_newsarticle_editor_url_'.$schema_id,
750
+ 'type' => 'text',
751
+ 'default' => $author_url
752
+ ),
753
+ array(
754
+ 'label' => 'Editor Image URL',
755
+ 'id' => 'saswp_newsarticle_editor_image_'.$schema_id,
756
+ 'type' => 'media',
757
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
758
+ ),
759
+
760
  array(
761
  'label' => 'Organization Name',
762
  'id' => 'saswp_newsarticle_organization_name_'.$schema_id,
780
 
781
  case 'WebPage':
782
  $meta_field = array(
783
+ array(
784
+ 'label' => 'ID',
785
+ 'id' => 'saswp_webpage_id_'.$schema_id,
786
+ 'type' => 'text',
787
+ 'default' => 'WebPage'
788
+ ),
789
  array(
790
  'label' => 'Name',
791
  'id' => 'saswp_webpage_name_'.$schema_id,
911
  );
912
  break;
913
 
914
+ case 'MedicalWebPage':
915
+ $meta_field = array(
916
+ array(
917
+ 'label' => 'Name',
918
+ 'id' => 'saswp_medicalwebpage_name_'.$schema_id,
919
+ 'type' => 'text',
920
+ 'default' => saswp_get_the_title()
921
+ ),
922
+ array(
923
+ 'label' => 'URL',
924
+ 'id' => 'saswp_medicalwebpage_url_'.$schema_id,
925
+ 'type' => 'text',
926
+ 'default' => get_permalink()
927
+ ),
928
+ array(
929
+ 'label' => 'Description',
930
+ 'id' => 'saswp_medicalwebpage_description_'.$schema_id,
931
+ 'type' => 'textarea',
932
+ 'default' => saswp_strip_all_tags(get_the_excerpt())
933
+ ),
934
+ array(
935
+ 'label' => 'MedicalWebPage Section',
936
+ 'id' => 'saswp_medicalwebpage_section_'.$schema_id,
937
+ 'type' => 'textarea',
938
+ 'default' => saswp_strip_all_tags(get_the_excerpt())
939
+ ),
940
+ array(
941
+ 'label' => 'Keywords',
942
+ 'id' => 'saswp_medicalwebpage_keywords_'.$schema_id,
943
+ 'type' => 'text',
944
+ 'default' => saswp_get_the_tags()
945
+ ),
946
+ array(
947
+ 'label' => 'Main Entity Of Page',
948
+ 'id' => 'saswp_medicalwebpage_main_entity_of_page_'.$schema_id,
949
+ 'type' => 'text',
950
+ 'default' => get_permalink()
951
+ ),
952
+ array(
953
+ 'label' => 'Image',
954
+ 'id' => 'saswp_medicalwebpage_image_'.$schema_id,
955
+ 'type' => 'media',
956
+ ),
957
+ array(
958
+ 'label' => 'Headline',
959
+ 'id' => 'saswp_medicalwebpage_headline_'.$schema_id,
960
+ 'type' => 'text',
961
+ 'default' => saswp_get_the_title(),
962
+ ),
963
+ array(
964
+ 'label' => 'Date Created',
965
+ 'id' => 'saswp_medicalwebpage_date_created_'.$schema_id,
966
+ 'type' => 'text',
967
+ 'default' => get_the_modified_date("Y-m-d")
968
+ ),
969
+ array(
970
+ 'label' => 'Date Published',
971
+ 'id' => 'saswp_medicalwebpage_date_published_'.$schema_id,
972
+ 'type' => 'text',
973
+ 'default' => get_the_date("Y-m-d")
974
+ ),
975
+ array(
976
+ 'label' => 'Date Modified',
977
+ 'id' => 'saswp_medicalwebpage_date_modified_'.$schema_id,
978
+ 'type' => 'text',
979
+ 'default' => get_the_modified_date("Y-m-d")
980
+ ),
981
+ array(
982
+ 'label' => 'Last Reviewed',
983
+ 'id' => 'saswp_medicalwebpage_last_reviewed_'.$schema_id,
984
+ 'type' => 'text',
985
+ 'default' => get_the_modified_date("Y-m-d")
986
+ ),
987
+ array(
988
+ 'label' => 'Reviewed By',
989
+ 'id' => 'saswp_medicalwebpage_reviewed_by_'.$schema_id,
990
+ 'type' => 'text',
991
+ 'default' => saswp_remove_warnings($sd_data, 'sd_name', 'saswp_string')
992
+ ),
993
+ array(
994
+ 'label' => 'Author Type',
995
+ 'id' => 'saswp_medicalwebpage_author_type_'.$schema_id,
996
+ 'type' => 'select',
997
+ 'options' => array(
998
+ 'Person' => 'Person',
999
+ 'Organization' => 'Organization',
1000
+ )
1001
+ ),
1002
+ array(
1003
+ 'label' => 'Author Name',
1004
+ 'id' => 'saswp_medicalwebpage_author_name_'.$schema_id,
1005
+ 'type' => 'text',
1006
+ 'default' => is_object($current_user) ? $current_user->display_name : ''
1007
+ ),
1008
+ array(
1009
+ 'label' => 'Author Description',
1010
+ 'id' => 'saswp_medicalwebpage_author_description_'.$schema_id,
1011
+ 'type' => 'textarea',
1012
+ 'default' => $author_desc
1013
+ ),
1014
+ array(
1015
+ 'label' => 'Author URL',
1016
+ 'id' => 'saswp_medicalwebpage_author_url_'.$schema_id,
1017
+ 'type' => 'text',
1018
+ 'default' => $author_url
1019
+ ),
1020
+ array(
1021
+ 'label' => 'Organization Name',
1022
+ 'id' => 'saswp_medicalwebpage_organization_name_'.$schema_id,
1023
+ 'type' => 'text',
1024
+ 'default' => saswp_remove_warnings($sd_data, 'sd_name', 'saswp_string')
1025
+ ),
1026
+ array(
1027
+ 'label' => 'Organization Logo',
1028
+ 'id' => 'saswp_medicalwebpage_organization_logo_'.$schema_id,
1029
+ 'type' => 'media',
1030
+ 'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url']:''
1031
+ ),
1032
+ array(
1033
+ 'label' => 'Speakable',
1034
+ 'id' => 'saswp_medicalwebpage_speakable_'.$schema_id,
1035
+ 'type' => 'checkbox',
1036
+
1037
+ )
1038
+ );
1039
+ break;
1040
+
1041
  case 'Photograph':
1042
  $meta_field = array(
1043
+ array(
1044
+ 'label' => 'ID',
1045
+ 'id' => 'saswp_photograph_id_'.$schema_id,
1046
+ 'type' => 'text',
1047
+ 'default' => 'Photograph'
1048
+ ),
1049
  array(
1050
  'label' => 'Headline',
1051
  'id' => 'saswp_photograph_headline_'.$schema_id,
1121
  'id' => 'saswp_photograph_author_url_'.$schema_id,
1122
  'type' => 'text',
1123
  'default' => $author_url
1124
+ ),
1125
+ array(
1126
+ 'label' => 'Author Image URL',
1127
+ 'id' => 'saswp_photograph_author_image_'.$schema_id,
1128
+ 'type' => 'media',
1129
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
1130
+ ),
1131
+ array(
1132
+ 'label' => 'JobTitle',
1133
+ 'id' => 'saswp_photograph_author_jobtitle_'.$schema_id,
1134
+ 'type' => 'text',
1135
+ 'default' => '',
1136
+ 'attributes' => array(
1137
+ 'placeholder' => 'eg: Editor in Chief'
1138
+ ),
1139
+ ),
1140
+
1141
+ array(
1142
+ 'label' => 'Editor Type',
1143
+ 'id' => 'saswp_photograph_editor_type_'.$schema_id,
1144
+ 'type' => 'select',
1145
+ 'options' => array(
1146
+ "" => "Select",
1147
+ 'Person' => 'Person',
1148
+ 'Organization' => 'Organization',
1149
+ )
1150
+ ),
1151
+ array(
1152
+ 'label' => 'Editor Name',
1153
+ 'id' => 'saswp_photograph_editor_name_'.$schema_id,
1154
+ 'type' => 'text',
1155
+ 'default' => is_object($current_user) ? $current_user->display_name : ''
1156
+ ),
1157
+ array(
1158
+ 'label' => 'Editor HonorificSuffix',
1159
+ 'id' => 'saswp_photograph_editor_honorific_suffix_'.$schema_id,
1160
+ 'type' => 'text',
1161
+ 'attributes' => array(
1162
+ 'placeholder' => 'eg: M.D. /PhD/MSCSW.'
1163
+ ),
1164
+ ),
1165
+ array(
1166
+ 'label' => 'Editor Description',
1167
+ 'id' => 'saswp_photograph_editor_description_'.$schema_id,
1168
+ 'type' => 'textarea',
1169
+ 'default' => $author_desc
1170
+ ),
1171
+ array(
1172
+ 'label' => 'Editor URL',
1173
+ 'id' => 'saswp_photograph_editor_url_'.$schema_id,
1174
+ 'type' => 'text',
1175
+ 'default' => $author_url
1176
+ ),
1177
+ array(
1178
+ 'label' => 'Editor Image URL',
1179
+ 'id' => 'saswp_photograph_editor_image_'.$schema_id,
1180
+ 'type' => 'media',
1181
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
1182
+ ),
1183
+
1184
  array(
1185
  'label' => 'ReviewedBy Type',
1186
  'id' => 'saswp_photograph_reviewedby_type_'.$schema_id,
1187
  'type' => 'select',
1188
  'options' => array(
1189
+ "" => "Select",
1190
  'Person' => 'Person',
1191
  'Organization' => 'Organization',
1192
  )
1260
 
1261
  case 'Article':
1262
  $meta_field = array(
1263
+ array(
1264
+ 'label' => 'ID',
1265
+ 'id' => 'saswp_article_id_'.$schema_id,
1266
+ 'type' => 'text',
1267
+ 'default' => 'Article'
1268
+ ),
1269
  array(
1270
  'label' => 'Main Entity Of Page',
1271
  'id' => 'saswp_article_main_entity_of_page_'.$schema_id,
1366
  'type' => 'text',
1367
  'default' => $author_url
1368
  ),
1369
+ array(
1370
+ 'label' => 'Author Image URL',
1371
+ 'id' => 'saswp_article_author_image_'.$schema_id,
1372
+ 'type' => 'media',
1373
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
1374
+ ),
1375
+ array(
1376
+ 'label' => 'JobTitle',
1377
+ 'id' => 'saswp_article_author_jobtitle_'.$schema_id,
1378
+ 'type' => 'text',
1379
+ 'default' => '',
1380
+ 'attributes' => array(
1381
+ 'placeholder' => 'eg: Editor in Chief'
1382
+ ),
1383
+ ),
1384
  array(
1385
  'label' => 'ReviewedBy Type',
1386
  'id' => 'saswp_article_reviewedby_type_'.$schema_id,
1387
  'type' => 'select',
1388
  'options' => array(
1389
+ "" => "Select",
1390
  'Person' => 'Person',
1391
  'Organization' => 'Organization',
1392
  )
1417
  'type' => 'text',
1418
  'default' => $author_url
1419
  ),
1420
+ array(
1421
+ 'label' => 'Editor Type',
1422
+ 'id' => 'saswp_article_editor_type_'.$schema_id,
1423
+ 'type' => 'select',
1424
+ 'options' => array(
1425
+ "" => "Select",
1426
+ 'Person' => 'Person',
1427
+ 'Organization' => 'Organization',
1428
+ )
1429
+ ),
1430
  array(
1431
  'label' => 'Editor Name',
1432
  'id' => 'saswp_article_editor_name_'.$schema_id,
1440
  'attributes' => array(
1441
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
1442
  ),
1443
+ ),
1444
+ array(
1445
+ 'label' => 'Editor Description',
1446
+ 'id' => 'saswp_article_editor_description_'.$schema_id,
1447
+ 'type' => 'textarea',
1448
+ 'default' => $author_desc
1449
+ ),
1450
+ array(
1451
+ 'label' => 'Editor URL',
1452
+ 'id' => 'saswp_article_editor_url_'.$schema_id,
1453
+ 'type' => 'text',
1454
+ 'default' => $author_url
1455
+ ),
1456
+ array(
1457
+ 'label' => 'Editor Image URL',
1458
+ 'id' => 'saswp_article_editor_image_'.$schema_id,
1459
+ 'type' => 'media',
1460
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
1461
+ ),
1462
  array(
1463
  'label' => 'Organization Name',
1464
  'id' => 'saswp_article_organization_name_'.$schema_id,
1500
  break;
1501
 
1502
  case 'VisualArtwork':
1503
+ $meta_field = array(
1504
+ array(
1505
+ 'label' => 'ID',
1506
+ 'id' => 'saswp_visualartwork_id_'.$schema_id,
1507
+ 'type' => 'text',
1508
+ 'default' => 'VisualArtwork'
1509
+ ),
1510
  array(
1511
  'label' => 'URL',
1512
  'id' => 'saswp_visualartwork_url_'.$schema_id,
1610
  break;
1611
 
1612
  case 'EducationalOccupationalProgram':
1613
+ $meta_field = array(
1614
+ array(
1615
+ 'label' => 'ID',
1616
+ 'id' => 'saswp_eop_id_'.$schema_id,
1617
+ 'type' => 'text',
1618
+ 'default' => 'EducationalOccupationalProgram'
1619
+ ),
1620
  array(
1621
  'label' => 'Name',
1622
  'id' => 'saswp_eop_name_'.$schema_id,
1862
 
1863
  case 'CreativeWork':
1864
  $meta_field = array(
1865
+ array(
1866
+ 'label' => 'ID',
1867
+ 'id' => 'saswp_creativework_id_'.$schema_id,
1868
+ 'type' => 'text',
1869
+ 'default' => 'CreativeWork'
1870
+ ),
1871
  array(
1872
  'label' => 'Main Entity Of Page',
1873
  'id' => 'saswp_creativework_main_entity_of_page_'.$schema_id,
1968
  'type' => 'text',
1969
  'default' => $author_url
1970
  ),
1971
+ array(
1972
+ 'label' => 'Author Image URL',
1973
+ 'id' => 'saswp_creativework_author_image_'.$schema_id,
1974
+ 'type' => 'media',
1975
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
1976
+ ),
1977
+ array(
1978
+ 'label' => 'JobTitle',
1979
+ 'id' => 'saswp_creativework_author_jobtitle_'.$schema_id,
1980
+ 'type' => 'text',
1981
+ 'default' => '',
1982
+ 'attributes' => array(
1983
+ 'placeholder' => 'eg: Editor in Chief'
1984
+ ),
1985
+ ),
1986
  array(
1987
  'label' => 'ReviewedBy Type',
1988
  'id' => 'saswp_creativework_reviewedby_type_'.$schema_id,
1989
  'type' => 'select',
1990
  'options' => array(
1991
+ "" => "Select",
1992
  'Person' => 'Person',
1993
  'Organization' => 'Organization',
1994
  )
2019
  'type' => 'text',
2020
  'default' => $author_url
2021
  ),
2022
+
2023
+ array(
2024
+ 'label' => 'Editor Type',
2025
+ 'id' => 'saswp_creativework_editor_type_'.$schema_id,
2026
+ 'type' => 'select',
2027
+ 'options' => array(
2028
+ "" => "Select",
2029
+ 'Person' => 'Person',
2030
+ 'Organization' => 'Organization',
2031
+ )
2032
+ ),
2033
  array(
2034
  'label' => 'Editor Name',
2035
  'id' => 'saswp_creativework_editor_name_'.$schema_id,
2044
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
2045
  ),
2046
  ),
2047
+ array(
2048
+ 'label' => 'Editor Description',
2049
+ 'id' => 'saswp_creativework_editor_description_'.$schema_id,
2050
+ 'type' => 'textarea',
2051
+ 'default' => $author_desc
2052
+ ),
2053
+ array(
2054
+ 'label' => 'Editor URL',
2055
+ 'id' => 'saswp_creativework_editor_url_'.$schema_id,
2056
+ 'type' => 'text',
2057
+ 'default' => $author_url
2058
+ ),
2059
+ array(
2060
+ 'label' => 'Editor Image URL',
2061
+ 'id' => 'saswp_creativework_editor_image_'.$schema_id,
2062
+ 'type' => 'media',
2063
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
2064
+ ),
2065
+
2066
  array(
2067
  'label' => 'Organization Name',
2068
  'id' => 'saswp_creativework_organization_name_'.$schema_id,
2111
  }
2112
 
2113
  $meta_field = array(
2114
+ array(
2115
+ 'label' => 'ID',
2116
+ 'id' => 'saswp_special_announcement_id_'.$schema_id,
2117
+ 'type' => 'text',
2118
+ 'default' => 'SpecialAnnouncement'
2119
+ ),
2120
  array(
2121
  'label' => 'Name',
2122
  'id' => 'saswp_special_announcement_name_'.$schema_id,
2535
 
2536
  case 'TechArticle':
2537
  $meta_field = array(
2538
+ array(
2539
+ 'label' => 'ID',
2540
+ 'id' => 'saswp_tech_article_id_'.$schema_id,
2541
+ 'type' => 'text',
2542
+ 'default' => 'TechArticle'
2543
+ ),
2544
  array(
2545
  'label' => 'Main Entity Of Page',
2546
  'id' => 'saswp_tech_article_main_entity_of_page_'.$schema_id,
2623
  'type' => 'text',
2624
  'default' => $author_url
2625
  ),
2626
+ array(
2627
+ 'label' => 'Author Image URL',
2628
+ 'id' => 'saswp_tech_article_author_image_'.$schema_id,
2629
+ 'type' => 'media',
2630
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
2631
+ ),
2632
+ array(
2633
+ 'label' => 'JobTitle',
2634
+ 'id' => 'saswp_tech_article_author_jobtitle_'.$schema_id,
2635
+ 'type' => 'text',
2636
+ 'default' => '',
2637
+ 'attributes' => array(
2638
+ 'placeholder' => 'eg: Editor in Chief'
2639
+ ),
2640
+ ),
2641
  array(
2642
  'label' => 'ReviewedBy Type',
2643
  'id' => 'saswp_tech_article_reviewedby_type_'.$schema_id,
2644
  'type' => 'select',
2645
  'options' => array(
2646
+ "" => "Select",
2647
  'Person' => 'Person',
2648
  'Organization' => 'Organization',
2649
  )
2673
  'id' => 'saswp_tech_article_reviewedby_url_'.$schema_id,
2674
  'type' => 'text',
2675
  'default' => $author_url
2676
+ ),
2677
+ array(
2678
+ 'label' => 'Editor Type',
2679
+ 'id' => 'saswp_tech_article_editor_type_'.$schema_id,
2680
+ 'type' => 'select',
2681
+ 'options' => array(
2682
+ "" => "Select",
2683
+ 'Person' => 'Person',
2684
+ 'Organization' => 'Organization',
2685
+ )
2686
+ ),
2687
  array(
2688
  'label' => 'Editor Name',
2689
  'id' => 'saswp_tech_article_editor_name_'.$schema_id,
2698
  'placeholder' => 'eg: M.D. /PhD/MSCSW.'
2699
  ),
2700
  ),
2701
+ array(
2702
+ 'label' => 'Editor Description',
2703
+ 'id' => 'saswp_tech_article_editor_description_'.$schema_id,
2704
+ 'type' => 'textarea',
2705
+ 'default' => $author_desc
2706
+ ),
2707
+ array(
2708
+ 'label' => 'Editor URL',
2709
+ 'id' => 'saswp_tech_article_editor_url_'.$schema_id,
2710
+ 'type' => 'text',
2711
+ 'default' => $author_url
2712
+ ),
2713
+ array(
2714
+ 'label' => 'Editor Image URL',
2715
+ 'id' => 'saswp_tech_article_editor_image_'.$schema_id,
2716
+ 'type' => 'media',
2717
+ 'default' => isset($author_details['url']) ? $author_details['url']: ''
2718
+ ),
2719
  array(
2720
  'label' => 'Organization Name',
2721
  'id' => 'saswp_tech_article_organization_name_'.$schema_id,
2755
 
2756
  case 'Course':
2757
  $meta_field = array(
2758
+ array(
2759
+ 'label' => 'ID',
2760
+ 'id' => 'saswp_course_id_'.$schema_id,
2761
+ 'type' => 'text',
2762
+ 'default' => 'Course'
2763
+ ),
2764
  array(
2765
  'label' => 'Name',
2766
  'id' => 'saswp_course_name_'.$schema_id,
2858
 
2859
  case 'DiscussionForumPosting':
2860
  $meta_field = array(
2861
+ array(
2862
+ 'label' => 'ID',
2863
+ 'id' => 'saswp_dfp_id_'.$schema_id,
2864
+ 'type' => 'text',
2865
+ 'default' => 'DiscussionForumPosting'
2866
+ ),
2867
  array(
2868
  'label' => 'mainEntityOfPage',
2869
  'id' => 'saswp_dfp_main_entity_of_page_'.$schema_id,
2950
 
2951
  case 'Recipe':
2952
  $meta_field = array(
2953
+ array(
2954
+ 'label' => 'ID',
2955
+ 'id' => 'saswp_recipe_id_'.$schema_id,
2956
+ 'type' => 'text',
2957
+ 'default' => 'recipe'
2958
+ ),
2959
  array(
2960
  'label' => 'URL',
2961
  'id' => 'saswp_recipe_url_'.$schema_id,
3288
  case 'PsychologicalTreatment':
3289
 
3290
  $meta_field = array(
3291
+ array(
3292
+ 'label' => 'ID',
3293
+ 'id' => 'saswp_psychological_treatment_id_'.$schema_id,
3294
+ 'type' => 'text',
3295
+ 'default' => 'PsychologicalTreatment'
3296
+ ),
3297
  array(
3298
  'label' => 'Name',
3299
  'id' => 'saswp_psychological_treatment_name_'.$schema_id,
3367
  case 'RealEstateListing':
3368
 
3369
  $meta_field = array(
3370
+ array(
3371
+ 'label' => 'ID',
3372
+ 'id' => 'saswp_real_estate_listing_id_'.$schema_id,
3373
+ 'type' => 'text',
3374
+ 'default' => 'RealEstateListing'
3375
+ ),
3376
  array(
3377
  'label' => 'Date Posted',
3378
  'id' => 'saswp_real_estate_listing_date_posted_'.$schema_id,
3471
  case 'RentAction':
3472
 
3473
  $meta_field = array(
3474
+ array(
3475
+ 'label' => 'ID',
3476
+ 'id' => 'saswp_rent_action_id_'.$schema_id,
3477
+ 'type' => 'text',
3478
+ 'default' => 'RentAction'
3479
+ ),
3480
  array(
3481
  'label' => 'Agent Name',
3482
  'id' => 'saswp_rent_action_agent_name_'.$schema_id,
3500
  case 'Audiobook':
3501
 
3502
  $meta_field = array(
3503
+ array(
3504
+ 'label' => 'ID',
3505
+ 'id' => 'saswp_audiobook_id_'.$schema_id,
3506
+ 'type' => 'text',
3507
+ 'default' => 'Audiobook'
3508
+ ),
3509
  array(
3510
  'label' => 'Name',
3511
  'id' => 'saswp_audiobook_name_'.$schema_id,
3619
  break;
3620
 
3621
  case 'HotelRoom':
3622
+
3623
  $meta_field = array(
3624
+ array(
3625
+ 'label' => 'ID',
3626
+ 'id' => 'saswp_hotelroom_hotel_id_'.$schema_id,
3627
+ 'type' => 'text',
3628
+ 'default' => 'HotelRoom'
3629
+ ),
3630
  array(
3631
  'label' => 'Hotel Name',
3632
  'id' => 'saswp_hotelroom_hotel_name_'.$schema_id,
3728
  case 'PodcastEpisode':
3729
 
3730
  $meta_field = array(
3731
+ array(
3732
+ 'label' => 'ID',
3733
+ 'id' => 'saswp_podcast_episode_id_'.$schema_id,
3734
+ 'type' => 'text',
3735
+ 'default' => 'PodcastEpisode'
3736
+ ),
3737
  array(
3738
  'label' => 'Name',
3739
  'id' => 'saswp_podcast_episode_name_'.$schema_id,
3793
  case 'PodcastSeason':
3794
 
3795
  $meta_field = array(
3796
+ array(
3797
+ 'label' => 'ID',
3798
+ 'id' => 'saswp_podcast_season_id_'.$schema_id,
3799
+ 'type' => 'text',
3800
+ 'default' => 'PodcastEpisode'
3801
+ ),
3802
  array(
3803
  'label' => 'Name',
3804
  'id' => 'saswp_podcast_season_name_'.$schema_id,
3858
  case 'EducationalOccupationalCredential':
3859
 
3860
  $meta_field = array(
3861
+ array(
3862
+ 'label' => 'ID',
3863
+ 'id' => 'saswp_eoc_id_'.$schema_id,
3864
+ 'type' => 'text',
3865
+ 'default' => 'EducationalOccupationalCredential'
3866
+ ),
3867
  array(
3868
  'label' => 'Additional Type',
3869
  'id' => 'saswp_eoc_additional_type_'.$schema_id,
3940
  case 'ApartmentComplex':
3941
 
3942
  $meta_field = array(
3943
+ array(
3944
+ 'label' => 'ID',
3945
+ 'id' => 'saswp_apartment_complex_id_'.$schema_id,
3946
+ 'type' => 'text',
3947
+ 'default' => 'ApartmentComplex'
3948
+ ),
3949
  array(
3950
  'label' => 'Name',
3951
  'id' => 'saswp_apartment_complex_name_'.$schema_id,
4036
  $product_details = $service->saswp_woocommerce_product_details($post_id);
4037
 
4038
  }
4039
+
4040
  $meta_field = array(
4041
  array(
4042
  'label' => 'Name',
4229
  case 'Service':
4230
 
4231
  $meta_field = array(
4232
+ array(
4233
+ 'label' => 'ID',
4234
+ 'id' => 'saswp_service_schema_id_'.$schema_id,
4235
+ 'type' => 'text',
4236
+ 'default' => 'Service'
4237
+ ),
4238
  array(
4239
  'label' => 'Name',
4240
  'id' => 'saswp_service_schema_name_'.$schema_id,
4361
  case 'TaxiService':
4362
 
4363
  $meta_field = array(
4364
+ array(
4365
+ 'label' => 'ID',
4366
+ 'id' => 'saswp_taxi_service_schema_id_'.$schema_id,
4367
+ 'type' => 'text',
4368
+ 'default' => 'TaxiService'
4369
+ ),
4370
  array(
4371
  'label' => 'Name',
4372
  'id' => 'saswp_taxi_service_schema_name_'.$schema_id,
4580
  break;
4581
 
4582
  case 'AudioObject':
4583
+
4584
  $meta_field = array(
4585
+ array(
4586
+ 'label' => 'ID',
4587
+ 'id' => 'saswp_audio_schema_id_'.$schema_id,
4588
+ 'type' => 'text',
4589
+ 'default' => 'AudioObject'
4590
+ ),
4591
  array(
4592
  'label' => 'Name',
4593
  'id' => 'saswp_audio_schema_name_'.$schema_id,
4661
  case 'SoftwareApplication':
4662
 
4663
  $meta_field = array(
4664
+ array(
4665
+ 'label' => 'ID',
4666
+ 'id' => 'saswp_software_schema_id_'.$schema_id,
4667
+ 'type' => 'text',
4668
+ 'default' => 'SoftwareApplication'
4669
+ ),
4670
  array(
4671
  'label' => 'Name',
4672
  'id' => 'saswp_software_schema_name_'.$schema_id,
4735
  case 'MobileApplication':
4736
 
4737
  $meta_field = array(
4738
+ array(
4739
+ 'label' => 'ID',
4740
+ 'id' => 'saswp_mobile_app_id_'.$schema_id,
4741
+ 'type' => 'text',
4742
+ 'default' => 'MobileApplication'
4743
+ ),
4744
 
4745
  array(
4746
  'label' => 'Name',
4812
  $video_links = saswp_get_video_metadata();
4813
 
4814
  $meta_field = array(
4815
+ array(
4816
+ 'label' => 'ID',
4817
+ 'id' => 'saswp_video_object_id_'.$schema_id,
4818
+ 'type' => 'text',
4819
+ 'default' => 'VideoObject'
4820
+ ),
4821
  array(
4822
  'label' => 'URL',
4823
  'id' => 'saswp_video_object_url_'.$schema_id,
5249
  case 'MedicalCondition':
5250
 
5251
  $meta_field = array(
5252
+ array(
5253
+ 'label' => 'ID',
5254
+ 'id' => 'saswp_mc_schema_id_'.$schema_id,
5255
+ 'type' => 'text',
5256
+ 'default' => 'MedicalCondition'
5257
+ ),
5258
  array(
5259
  'label' => 'Name',
5260
  'id' => 'saswp_mc_schema_name_'.$schema_id,
5345
  case 'VideoGame':
5346
 
5347
  $meta_field = array(
5348
+ array(
5349
+ 'label' => 'ID',
5350
+ 'id' => 'saswp_vg_schema_id_'.$schema_id,
5351
+ 'type' => 'text',
5352
+ 'default' => 'VideoGame'
5353
+ ),
5354
  array(
5355
  'label' => 'Name',
5356
  'id' => 'saswp_vg_schema_name_'.$schema_id,
5498
  case 'TVSeries':
5499
 
5500
  $meta_field = array(
5501
+ array(
5502
+ 'label' => 'ID',
5503
+ 'id' => 'saswp_tvseries_schema_id_'.$schema_id,
5504
+ 'type' => 'text',
5505
+ 'default' => 'RealEstateListing'
5506
+ ),
5507
  array(
5508
  'label' => 'Name',
5509
  'id' => 'saswp_tvseries_schema_name_'.$schema_id,
5546
  case 'Apartment':
5547
 
5548
  $meta_field = array(
5549
+ array(
5550
+ 'label' => 'ID',
5551
+ 'id' => 'saswp_apartment_schema_id_'.$schema_id,
5552
+ 'type' => 'text',
5553
+ 'default' => 'Apartment'
5554
+ ),
5555
  array(
5556
  'label' => 'Name',
5557
  'id' => 'saswp_apartment_schema_name_'.$schema_id,
5644
  case 'House':
5645
 
5646
  $meta_field = array(
5647
+ array(
5648
+ 'label' => 'ID',
5649
+ 'id' => 'saswp_house_schema_id_'.$schema_id,
5650
+ 'type' => 'text',
5651
+ 'default' => 'House'
5652
+ ),
5653
  array(
5654
  'label' => 'Name',
5655
  'id' => 'saswp_house_schema_name_'.$schema_id,
5732
  case 'SingleFamilyResidence':
5733
 
5734
  $meta_field = array(
5735
+ array(
5736
+ 'label' => 'ID',
5737
+ 'id' => 'saswp_sfr_schema_id_'.$schema_id,
5738
+ 'type' => 'text',
5739
+ 'default' => 'SingleFamilyResidence'
5740
+ ),
5741
  array(
5742
  'label' => 'Name',
5743
  'id' => 'saswp_sfr_schema_name_'.$schema_id,
5829
  case 'TouristAttraction':
5830
 
5831
  $meta_field = array(
5832
+ array(
5833
+ 'label' => 'ID',
5834
+ 'id' => 'saswp_ta_schema_id_'.$schema_id,
5835
+ 'type' => 'text',
5836
+ 'default' => 'TouristAttraction'
5837
+ ),
5838
  array(
5839
  'label' => 'Name',
5840
  'id' => 'saswp_ta_schema_name_'.$schema_id,
5906
  break;
5907
 
5908
  case 'TouristDestination':
5909
+
5910
  $meta_field = array(
5911
+ array(
5912
+ 'label' => 'ID',
5913
+ 'id' => 'saswp_td_schema_id_'.$schema_id,
5914
+ 'type' => 'text',
5915
+ 'default' => 'TouristDestination'
5916
+ ),
5917
  array(
5918
  'label' => 'Name',
5919
  'id' => 'saswp_td_schema_name_'.$schema_id,
5978
  case 'LandmarksOrHistoricalBuildings':
5979
 
5980
  $meta_field = array(
5981
+ array(
5982
+ 'label' => 'ID',
5983
+ 'id' => 'saswp_lorh_schema_id_'.$schema_id,
5984
+ 'type' => 'text',
5985
+ 'default' => 'LandmarksOrHistoricalBuildings'
5986
+ ),
5987
  array(
5988
  'label' => 'Name',
5989
  'id' => 'saswp_lorh_schema_name_'.$schema_id,
6067
  case 'HinduTemple':
6068
 
6069
  $meta_field = array(
6070
+ array(
6071
+ 'label' => 'ID',
6072
+ 'id' => 'saswp_hindutemple_schema_id_'.$schema_id,
6073
+ 'type' => 'text',
6074
+ 'default' => 'hindutemple'
6075
+ ),
6076
  array(
6077
  'label' => 'Name',
6078
  'id' => 'saswp_hindutemple_schema_name_'.$schema_id,
6156
  case 'BuddhistTemple':
6157
 
6158
  $meta_field = array(
6159
+ array(
6160
+ 'label' => 'ID',
6161
+ 'id' => 'saswp_buddhisttemple_schema_id_'.$schema_id,
6162
+ 'type' => 'text',
6163
+ 'default' => 'BuddhistTemple'
6164
+ ),
6165
  array(
6166
  'label' => 'Name',
6167
  'id' => 'saswp_buddhisttemple_schema_name_'.$schema_id,
6245
  case 'Church':
6246
 
6247
  $meta_field = array(
6248
+ array(
6249
+ 'label' => 'ID',
6250
+ 'id' => 'saswp_church_schema_id_'.$schema_id,
6251
+ 'type' => 'text',
6252
+ 'default' => 'church'
6253
+ ),
6254
  array(
6255
  'label' => 'Name',
6256
  'id' => 'saswp_church_schema_name_'.$schema_id,
6334
  case 'Mosque':
6335
 
6336
  $meta_field = array(
6337
+ array(
6338
+ 'label' => 'ID',
6339
+ 'id' => 'saswp_mosque_schema_id_'.$schema_id,
6340
+ 'type' => 'text',
6341
+ 'default' => 'Mosque'
6342
+ ),
6343
  array(
6344
  'label' => 'Name',
6345
  'id' => 'saswp_mosque_schema_name_'.$schema_id,
6423
  case 'JobPosting':
6424
 
6425
  $meta_field = array(
6426
+ array(
6427
+ 'label' => 'ID',
6428
+ 'id' => 'saswp_jobposting_schema_id_'.$schema_id,
6429
+ 'type' => 'text',
6430
+ 'default' => 'JobPosting'
6431
+ ),
6432
  array(
6433
  'label' => 'Title',
6434
  'id' => 'saswp_jobposting_schema_title_'.$schema_id,
6456
  'id' => 'saswp_jobposting_schema_dateposted_'.$schema_id,
6457
  'type' => 'text',
6458
  ),
6459
+ array(
6460
+ 'label' => 'Direct Apply',
6461
+ 'id' => 'saswp_jobposting_schema_direct_apply_'.$schema_id,
6462
+ 'type' => 'text',
6463
+ 'default' => true
6464
+ ),
6465
  array(
6466
  'label' => 'Valid Through',
6467
  'id' => 'saswp_jobposting_schema_validthrough_'.$schema_id,
6648
 
6649
  case 'Trip':
6650
 
6651
+ $meta_field = array(
6652
+ array(
6653
+ 'label' => 'ID',
6654
+ 'id' => 'saswp_trip_schema_id_'.$schema_id,
6655
+ 'type' => 'text',
6656
+ 'default' => 'Trip'
6657
+ ),
6658
  array(
6659
  'label' => 'Name',
6660
  'id' => 'saswp_trip_schema_name_'.$schema_id,
6691
  case 'BoatTrip':
6692
 
6693
  $meta_field = array(
6694
+ array(
6695
+ 'label' => 'ID',
6696
+ 'id' => 'saswp_boat_trip_schema_id_'.$schema_id,
6697
+ 'type' => 'text',
6698
+ 'default' => 'BoatTrip'
6699
+ ),
6700
  array(
6701
  'label' => 'Name',
6702
  'id' => 'saswp_boat_trip_schema_name_'.$schema_id,
6751
  case 'FAQ':
6752
 
6753
  $meta_field = array(
6754
+ array(
6755
+ 'label' => 'ID',
6756
+ 'id' => 'saswp_faq_id_'.$schema_id,
6757
+ 'type' => 'text',
6758
+ 'default' => 'FAQ'
6759
+ ),
6760
  array(
6761
  'label' => 'Headline',
6762
  'id' => 'saswp_faq_headline_'.$schema_id,
7249
  case 'Car':
7250
 
7251
  $meta_field = array(
7252
+ array(
7253
+ 'label' => 'ID',
7254
+ 'id' => 'saswp_car_schema_id_'.$schema_id,
7255
+ 'type' => 'text',
7256
+ 'default' => 'Car'
7257
+ ),
7258
  array(
7259
  'label' => 'Name',
7260
  'id' => 'saswp_car_schema_name_'.$schema_id,
7390
  break;
7391
 
7392
  case 'Vehicle':
7393
+
7394
  $meta_field = array(
7395
+ array(
7396
+ 'label' => 'ID',
7397
+ 'id' => 'saswp_vehicle_schema_id_'.$schema_id,
7398
+ 'type' => 'text',
7399
+ 'default' => 'Vehicle'
7400
+ ),
7401
  array(
7402
  'label' => 'Name',
7403
  'id' => 'saswp_vehicle_schema_name_'.$schema_id,
7535
  case 'CreativeWorkSeries':
7536
 
7537
  $meta_field = array(
7538
+ array(
7539
+ 'label' => 'ID',
7540
+ 'id' => 'saswp_cws_schema_id_'.$schema_id,
7541
+ 'type' => 'text',
7542
+ 'default' => 'CreativeWorkSeries'
7543
+ ),
7544
  array(
7545
  'label' => 'Name',
7546
  'id' => 'saswp_cws_schema_name_'.$schema_id,
7641
  case 'DataFeed':
7642
 
7643
  $meta_field = array(
7644
+
7645
  array(
7646
  'label' => 'Name',
7647
  'id' => 'saswp_data_feed_schema_name_'.$schema_id,
7668
  case 'MusicPlaylist':
7669
 
7670
  $meta_field = array(
7671
+ array(
7672
+ 'label' => 'ID',
7673
+ 'id' => 'saswp_music_playlist_id_'.$schema_id,
7674
+ 'type' => 'text',
7675
+ 'default' => 'MusicPlaylist'
7676
+ ),
7677
  array(
7678
  'label' => 'Name',
7679
  'id' => 'saswp_music_playlist_name_'.$schema_id,
7695
  case 'MusicAlbum':
7696
 
7697
  $meta_field = array(
7698
+ array(
7699
+ 'label' => 'ID',
7700
+ 'id' => 'saswp_music_album_id_'.$schema_id,
7701
+ 'type' => 'text',
7702
+ 'default' => 'MusicPlaylist'
7703
+ ),
7704
  array(
7705
  'label' => 'Name',
7706
  'id' => 'saswp_music_album_name_'.$schema_id,
7738
  case 'Book':
7739
 
7740
  $meta_field = array(
7741
+ array(
7742
+ 'label' => 'ID',
7743
+ 'id' => 'saswp_book_id_'.$schema_id,
7744
+ 'type' => 'text',
7745
+ 'default' => 'Book'
7746
+ ),
7747
  array(
7748
  'label' => 'Name',
7749
  'id' => 'saswp_book_name_'.$schema_id,
7866
  case 'MusicComposition':
7867
 
7868
  $meta_field = array(
7869
+ array(
7870
+ 'label' => 'ID',
7871
+ 'id' => 'saswp_music_composition_id_'.$schema_id,
7872
+ 'type' => 'text',
7873
+ 'default' => 'MusicComposition'
7874
+ ),
7875
  array(
7876
  'label' => 'Name',
7877
  'id' => 'saswp_music_composition_name_'.$schema_id,
7923
 
7924
  case 'Organization':
7925
 
7926
+ $meta_field = array(
7927
+ array(
7928
+ 'label' => 'ID',
7929
+ 'id' => 'saswp_organization_id_'.$schema_id,
7930
+ 'type' => 'text',
7931
+ 'default' => 'Organization'
7932
+ ),
7933
  array(
7934
  'label' => 'Name',
7935
  'id' => 'saswp_organization_name_'.$schema_id,
8066
 
8067
  case 'Project':
8068
 
8069
+ $meta_field = array(
8070
+ array(
8071
+ 'label' => 'ID',
8072
+ 'id' => 'saswp_project_id_'.$schema_id,
8073
+ 'type' => 'text',
8074
+ 'default' => 'Project'
8075
+ ),
8076
  array(
8077
  'label' => 'Name',
8078
  'id' => 'saswp_project_name_'.$schema_id,
8209
 
8210
  case 'Movie':
8211
 
8212
+ $meta_field = array(
8213
+ array(
8214
+ 'label' => 'ID',
8215
+ 'id' => 'saswp_movie_id_'.$schema_id,
8216
+ 'type' => 'text',
8217
+ 'default' => 'movie'
8218
+ ),
8219
  array(
8220
  'label' => 'Name',
8221
  'id' => 'saswp_movie_name_'.$schema_id,
core/array-list/schemas.php CHANGED
@@ -40,7 +40,8 @@ return array(
40
  'MobileApplication' => 'MobileApplication',
41
  'TechArticle' => 'TechArticle',
42
  'VisualArtwork' => 'VisualArtwork',
43
- 'WebPage' => 'WebPage'
 
44
  ),
45
  'Event' => array(
46
  'Event' => 'Event',
40
  'MobileApplication' => 'MobileApplication',
41
  'TechArticle' => 'TechArticle',
42
  'VisualArtwork' => 'VisualArtwork',
43
+ 'WebPage' => 'WebPage',
44
+ 'MedicalWebPage' => 'MedicalWebPage'
45
  ),
46
  'Event' => array(
47
  'Event' => 'Event',
modules/gutenberg/assets/blocks/howto.js CHANGED
@@ -32,8 +32,12 @@
32
  default: 'none'
33
  },
34
  listStyleType: {
35
- type: 'boolean',
36
- default: false
 
 
 
 
37
  },
38
  description: {
39
  type: 'string',
@@ -1001,6 +1005,34 @@
1001
  ),
1002
  )
1003
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1004
  el(
1005
  BlockControls,
1006
  { key: 'controls' },
32
  default: 'none'
33
  },
34
  listStyleType: {
35
+ type: 'string',
36
+ default: 'number',
37
+ },
38
+ headingTag : {
39
+ type: 'string',
40
+ default: 'h1'
41
  },
42
  description: {
43
  type: 'string',
1005
  ),
1006
  )
1007
  ),
1008
+ el(InspectorControls,
1009
+ {
1010
+ className:'saswp-how-to-inspector',
1011
+ key: 'inspector'
1012
+ },
1013
+ el(PanelBody,
1014
+ {className:'saswp-how-to-panel-body',
1015
+ title:__('Heading Tag', 'schema-and-structured-data-for-wp')
1016
+ },
1017
+ el(SelectControl,{
1018
+ className:'saswp-faq-toggle-list',
1019
+ value: attributes.headingTag,
1020
+ options:[
1021
+ { label:'H1', value: 'h1' },
1022
+ { label: 'H2', value:'h2' },
1023
+ { label:'H3', value:'h3' },
1024
+ { label:'H4', value: 'h4' },
1025
+ { label: 'H5', value:'h5' },
1026
+ { label:'H6', value:'h6' },
1027
+ ],
1028
+ onChange: function(newContent){
1029
+ console.log(newContent);
1030
+ props.setAttributes( { headingTag: newContent } );
1031
+ }
1032
+ },
1033
+ ),
1034
+ )
1035
+ ),
1036
  el(
1037
  BlockControls,
1038
  { key: 'controls' },
modules/gutenberg/includes/class-gutenberg.php CHANGED
@@ -729,11 +729,16 @@ class SASWP_Gutenberg {
729
  break;
730
  }
731
  }
 
732
  foreach($attributes['items'] as $item){
733
-
734
  if($item['title'] || $item['description']){
735
- echo '<li style="list-style-type: '.esc_attr($attributes['listStyleType']).'">';
736
- echo '<strong class="saswp-how-to-step-name">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
 
 
 
 
737
  echo '<p class="saswp-how-to-step-text">'.html_entity_decode(esc_textarea($item['description'])).'</p>';
738
  echo '</li>';
739
  }
729
  break;
730
  }
731
  }
732
+
733
  foreach($attributes['items'] as $item){
734
+
735
  if($item['title'] || $item['description']){
736
+ echo '<li style="list-style-type: '.esc_attr($attributes['headingTag']).'">';
737
+ if(!empty($attributes['headingTag']) && $attributes['headingTag'] == 'h1' || $attributes['headingTag'] == 'h2' || $attributes['headingTag'] == 'h3' || $attributes['headingTag'] == 'h4' || $attributes['headingTag'] == 'h5' || $attributes['headingTag'] == 'h6'){
738
+ echo '<'.html_entity_decode(esc_attr($attributes['headingTag'])).'>'. html_entity_decode(esc_attr($item['title'])).'</'.html_entity_decode(esc_attr($attributes['headingTag'])).'>';
739
+ }else{
740
+ echo '<strong class="saswp-how-to-step-name">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
741
+ }
742
  echo '<p class="saswp-how-to-step-text">'.html_entity_decode(esc_textarea($item['description'])).'</p>';
743
  echo '</li>';
744
  }
modules/reviews/reviews_collection.php CHANGED
@@ -407,7 +407,13 @@ class SASWP_Reviews_Collection {
407
 
408
  if(isset($collection_data['saswp_collection_date_format'][0])){
409
  $date_format = $collection_data['saswp_collection_date_format'][0];
410
- }
 
 
 
 
 
 
411
 
412
  if(isset($collection_data['saswp_collection_cols'][0])){
413
 
@@ -535,31 +541,31 @@ class SASWP_Reviews_Collection {
535
 
536
  case "grid":
537
 
538
- $html = $this->_service->saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr );
539
 
540
  break;
541
 
542
  case 'gallery':
543
 
544
- $html = $this->_service->saswp_create_collection_slider($g_type, $arrow, $dots, $collection, $date_format);
545
 
546
  break;
547
 
548
  case 'badge':
549
 
550
- $html = $this->_service->saswp_create_collection_badge($collection);
551
 
552
  break;
553
 
554
  case 'popup':
555
 
556
- $html = $this->_service->saswp_create_collection_popup($collection, $date_format);
557
 
558
  break;
559
 
560
  case 'fomo':
561
 
562
- $html = $this->_service->saswp_create_collection_fomo($f_interval, $f_visibility, $collection, $date_format);
563
 
564
  break;
565
 
@@ -754,7 +760,10 @@ class SASWP_Reviews_Collection {
754
  <span><?php echo saswp_t_string( 'Without Page Reload' ); ?></span>
755
  <span><input name="saswp_collection_pagination_wpr" type="checkbox" id="saswp-coll-pagination-wpr" class="saswp-coll-settings-options" value="1" <?php echo (isset($post_meta['saswp_collection_pagination_wpr'][0]) && $post_meta['saswp_collection_pagination_wpr'][0] == 1 ? 'checked' : '' ); ?>></span>
756
  </div>
757
-
 
 
 
758
  <div class="saswp-dp-dsg saswp-coll-options saswp-grid-options saswp-dp-dtm saswp_hide_imp">
759
  <label><?php echo saswp_t_string( 'Per Page' ); ?></label>
760
  <input name="saswp_collection_per_page" type="number" min="1" id="saswp-coll-per-page" class="saswp-coll-settings-options" value="<?php echo (isset($post_meta['saswp_collection_per_page'][0]) ? $post_meta['saswp_collection_per_page'][0] : '10' ); ?>">
@@ -771,6 +780,9 @@ class SASWP_Reviews_Collection {
771
  <span><input type="checkbox" id="saswp_gallery_arrow" name="saswp_gallery_arrow" value="1" <?php echo (isset($post_meta['saswp_gallery_arrow'][0]) && $post_meta['saswp_gallery_arrow'][0] == 1 ? 'checked' : '' ); ?>> <?php echo saswp_t_string('Arrows'); ?></span>
772
  <span><input type="checkbox" id="saswp_gallery_dots" name="saswp_gallery_dots" value="1" <?php echo (isset($post_meta['saswp_gallery_dots'][0]) && $post_meta['saswp_gallery_dots'][0] == 1 ? 'checked' : '' ); ?>> <?php echo saswp_t_string('Dots'); ?></span>
773
  </div>
 
 
 
774
 
775
  <div class="saswp-fomo-options saswp_hide saswp-coll-options">
776
  <div class="saswp-dp-dsg saswp-dp-dtm">
@@ -990,6 +1002,8 @@ class SASWP_Reviews_Collection {
990
  $post_meta['saswp_gallery_dots'] = isset($_POST['saswp_gallery_dots']) ? intval($_POST['saswp_gallery_dots']) : '';
991
  $post_meta['saswp_collection_pagination'] = isset($_POST['saswp_collection_pagination']) ? intval($_POST['saswp_collection_pagination']) : '';
992
  $post_meta['saswp_collection_pagination_wpr'] = isset($_POST['saswp_collection_pagination_wpr']) ? intval($_POST['saswp_collection_pagination_wpr']) : '';
 
 
993
  $post_meta['saswp_collection_per_page'] = isset($_POST['saswp_collection_per_page']) ? intval($_POST['saswp_collection_per_page']) : '';
994
  $post_meta['saswp_fomo_interval'] = isset($_POST['saswp_fomo_interval']) ? intval($_POST['saswp_fomo_interval']) : '';
995
  $post_meta['saswp_fomo_visibility'] = isset($_POST['saswp_fomo_visibility']) ? intval($_POST['saswp_fomo_visibility']) : '';
407
 
408
  if(isset($collection_data['saswp_collection_date_format'][0])){
409
  $date_format = $collection_data['saswp_collection_date_format'][0];
410
+ }
411
+ if(isset($collection_data['saswp_collection_hide_col_r_img'][0])){
412
+ $saswp_collection_hide_col_rew_img = $collection_data['saswp_collection_hide_col_r_img'][0];
413
+ }
414
+ if(isset($collection_data['saswp_collection_gallery_img_hide'][0])){
415
+ $saswp_collection_gallery_img_hide = $collection_data['saswp_collection_gallery_img_hide'][0];
416
+ }
417
 
418
  if(isset($collection_data['saswp_collection_cols'][0])){
419
 
541
 
542
  case "grid":
543
 
544
+ $html = $this->_service->saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr, $saswp_collection_hide_col_rew_img );
545
 
546
  break;
547
 
548
  case 'gallery':
549
 
550
+ $html = $this->_service->saswp_create_collection_slider($g_type, $arrow, $dots, $collection, $date_format, $saswp_collection_gallery_img_hide);
551
 
552
  break;
553
 
554
  case 'badge':
555
 
556
+ $html = $this->_service->saswp_create_collection_badge($collection, $saswp_collection_hide_col_rew_img);
557
 
558
  break;
559
 
560
  case 'popup':
561
 
562
+ $html = $this->_service->saswp_create_collection_popup($collection, $date_format, $saswp_collection_hide_col_rew_img);
563
 
564
  break;
565
 
566
  case 'fomo':
567
 
568
+ $html = $this->_service->saswp_create_collection_fomo($f_interval, $f_visibility, $collection, $date_format, $saswp_collection_hide_col_rew_img);
569
 
570
  break;
571
 
760
  <span><?php echo saswp_t_string( 'Without Page Reload' ); ?></span>
761
  <span><input name="saswp_collection_pagination_wpr" type="checkbox" id="saswp-coll-pagination-wpr" class="saswp-coll-settings-options" value="1" <?php echo (isset($post_meta['saswp_collection_pagination_wpr'][0]) && $post_meta['saswp_collection_pagination_wpr'][0] == 1 ? 'checked' : '' ); ?>></span>
762
  </div>
763
+ <div class="saswp-dp-dsg saswp-coll-options saswp-grid-options saswp-dp-dtm">
764
+ <span><?php echo saswp_t_string( 'Hide Review Image'); ?></span>
765
+ <span><input name="saswp_collection_hide_col_r_img" type="checkbox" id="saswp-coll-hide_col_r_img" class="saswp-coll-settings-options" value="1" <?php echo (isset($post_meta['saswp_collection_hide_col_r_img'][0]) && $post_meta['saswp_collection_hide_col_r_img'][0] == 1 ? 'checked' : '' ); ?>></span>
766
+ </div>
767
  <div class="saswp-dp-dsg saswp-coll-options saswp-grid-options saswp-dp-dtm saswp_hide_imp">
768
  <label><?php echo saswp_t_string( 'Per Page' ); ?></label>
769
  <input name="saswp_collection_per_page" type="number" min="1" id="saswp-coll-per-page" class="saswp-coll-settings-options" value="<?php echo (isset($post_meta['saswp_collection_per_page'][0]) ? $post_meta['saswp_collection_per_page'][0] : '10' ); ?>">
780
  <span><input type="checkbox" id="saswp_gallery_arrow" name="saswp_gallery_arrow" value="1" <?php echo (isset($post_meta['saswp_gallery_arrow'][0]) && $post_meta['saswp_gallery_arrow'][0] == 1 ? 'checked' : '' ); ?>> <?php echo saswp_t_string('Arrows'); ?></span>
781
  <span><input type="checkbox" id="saswp_gallery_dots" name="saswp_gallery_dots" value="1" <?php echo (isset($post_meta['saswp_gallery_dots'][0]) && $post_meta['saswp_gallery_dots'][0] == 1 ? 'checked' : '' ); ?>> <?php echo saswp_t_string('Dots'); ?></span>
782
  </div>
783
+ <div class="saswp-slider-display saswp-slider-options saswp_hide saswp-coll-settings-options saswp-coll-options">
784
+ <input type="checkbox" id="saswp_collection_gallery_img_hide" name="saswp_collection_gallery_img_hide" value="1" <?php echo (isset($post_meta['saswp_collection_gallery_img_hide'][0]) && $post_meta['saswp_collection_gallery_img_hide'][0] == 1 ? 'checked' : '' ); ?>> <?php echo saswp_t_string('Hide Review Image'); ?>
785
+ </div>
786
 
787
  <div class="saswp-fomo-options saswp_hide saswp-coll-options">
788
  <div class="saswp-dp-dsg saswp-dp-dtm">
1002
  $post_meta['saswp_gallery_dots'] = isset($_POST['saswp_gallery_dots']) ? intval($_POST['saswp_gallery_dots']) : '';
1003
  $post_meta['saswp_collection_pagination'] = isset($_POST['saswp_collection_pagination']) ? intval($_POST['saswp_collection_pagination']) : '';
1004
  $post_meta['saswp_collection_pagination_wpr'] = isset($_POST['saswp_collection_pagination_wpr']) ? intval($_POST['saswp_collection_pagination_wpr']) : '';
1005
+ $post_meta['saswp_collection_hide_col_r_img'] = isset($_POST['saswp_collection_hide_col_r_img']) ? intval($_POST['saswp_collection_hide_col_r_img']) : '';
1006
+ $post_meta['saswp_collection_gallery_img_hide'] = isset($_POST['saswp_collection_gallery_img_hide']) ? intval($_POST['saswp_collection_gallery_img_hide']) : '';
1007
  $post_meta['saswp_collection_per_page'] = isset($_POST['saswp_collection_per_page']) ? intval($_POST['saswp_collection_per_page']) : '';
1008
  $post_meta['saswp_fomo_interval'] = isset($_POST['saswp_fomo_interval']) ? intval($_POST['saswp_fomo_interval']) : '';
1009
  $post_meta['saswp_fomo_visibility'] = isset($_POST['saswp_fomo_visibility']) ? intval($_POST['saswp_fomo_visibility']) : '';
modules/reviews/reviews_service.php CHANGED
@@ -257,13 +257,18 @@ class saswp_reviews_service {
257
 
258
 
259
  }
260
- if($sd_data['saswp_date_format'] == 'default'){
261
  $days_ago_format = date('d-m-Y',strtotime($review['saswp_review_date']));
262
  }
263
 
264
  $review_rating = $review['saswp_review_rating'];
265
 
266
  $starating = saswp_get_rating_html_by_value($review_rating);
 
 
 
 
 
267
 
268
  $img_src = SASWP_DIR_URI.'/admin_section/images/default_user.jpg';
269
 
@@ -934,7 +939,7 @@ class saswp_reviews_service {
934
 
935
  }
936
 
937
- public function saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr = null){
938
 
939
  $html = '';
940
  $grid_cols = '';
@@ -1003,9 +1008,12 @@ class saswp_reviews_service {
1003
 
1004
  $html .= '<div class="saswp-rc">';
1005
  $html .= '<div class="saswp-rc-a">';
1006
- $html .= '<div class="saswp-r1-aimg">';
1007
- $html .= '<img alt="'.esc_attr($value['saswp_reviewer_name']).'" loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
1008
- $html .= '</div>';
 
 
 
1009
  $html .= '<div class="saswp-rc-nm">';
1010
  $html .= '<a target="_blank" rel="noopener" href="'.esc_url($review_link).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
1011
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
@@ -1059,7 +1067,7 @@ class saswp_reviews_service {
1059
 
1060
  $html .= '</div>';
1061
 
1062
- }
1063
 
1064
  if(($page_count > 0 && $pagination ) && $pagination_wpr){
1065
 
@@ -1089,7 +1097,7 @@ class saswp_reviews_service {
1089
 
1090
  }
1091
 
1092
- public function saswp_review_desing_for_slider($value, $date_format = ''){
1093
 
1094
  $review_link = $value['saswp_review_link'];
1095
 
@@ -1131,8 +1139,11 @@ class saswp_reviews_service {
1131
  $html .= '</div>';
1132
  $html .= '</div>';
1133
  $html .= '<div class="saswp-rc">';
1134
- $html .= '<div class="saswp-rc-a">';
1135
- $html .= '<img alt="'.esc_attr($value['saswp_reviewer_name']).'" loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'"/>';
 
 
 
1136
  $html .= '<div class="saswp-rc-nm">';
1137
  $html .= '<a target="_blank" rel="noopener" href="'.esc_url($review_link).'">'. esc_attr($value['saswp_reviewer_name']).'</a>';
1138
  $html .= '<span class="saswp-rc-dt">'.(isset($date_str['date']) ? esc_attr($date_str['date']): '' ).'</span>';
@@ -1148,7 +1159,7 @@ class saswp_reviews_service {
1148
 
1149
  }
1150
 
1151
- public function saswp_create_collection_slider($g_type, $arrow, $dots, $collection, $date_format){
1152
 
1153
  $html = '';
1154
 
@@ -1172,7 +1183,7 @@ class saswp_reviews_service {
1172
 
1173
  $html .= '<div class="saswp-si">';
1174
 
1175
- $html .= $this->saswp_review_desing_for_slider($value, $date_format);
1176
 
1177
  $html .= '</div>';
1178
 
@@ -1192,7 +1203,7 @@ class saswp_reviews_service {
1192
 
1193
  foreach($coll as $value){
1194
 
1195
- $html .= $this->saswp_review_desing_for_slider($value, $date_format);
1196
 
1197
  }
1198
 
257
 
258
 
259
  }
260
+ if(!empty($sd_data['saswp_date_format']) && $sd_data['saswp_date_format'] == 'default'){
261
  $days_ago_format = date('d-m-Y',strtotime($review['saswp_review_date']));
262
  }
263
 
264
  $review_rating = $review['saswp_review_rating'];
265
 
266
  $starating = saswp_get_rating_html_by_value($review_rating);
267
+ if(!empty($starating)){
268
+ $starating = $starating;
269
+ }else{
270
+ $starating = "";
271
+ }
272
 
273
  $img_src = SASWP_DIR_URI.'/admin_section/images/default_user.jpg';
274
 
939
 
940
  }
941
 
942
+ public function saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr = null, $saswp_collection_hide_col_rew_img){
943
 
944
  $html = '';
945
  $grid_cols = '';
1008
 
1009
  $html .= '<div class="saswp-rc">';
1010
  $html .= '<div class="saswp-rc-a">';
1011
+ if(empty($saswp_collection_hide_col_rew_img) && $saswp_collection_hide_col_rew_img != 1){
1012
+ $html .= '<div class="saswp-r1-aimg">';
1013
+ $html .= '<img alt="'.esc_attr($value['saswp_reviewer_name']).'" loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
1014
+ $html .= '</div>';
1015
+ }
1016
+
1017
  $html .= '<div class="saswp-rc-nm">';
1018
  $html .= '<a target="_blank" rel="noopener" href="'.esc_url($review_link).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
1019
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
1067
 
1068
  $html .= '</div>';
1069
 
1070
+ }
1071
 
1072
  if(($page_count > 0 && $pagination ) && $pagination_wpr){
1073
 
1097
 
1098
  }
1099
 
1100
+ public function saswp_review_desing_for_slider($value, $date_format = '', $saswp_collection_gallery_img_hide){
1101
 
1102
  $review_link = $value['saswp_review_link'];
1103
 
1139
  $html .= '</div>';
1140
  $html .= '</div>';
1141
  $html .= '<div class="saswp-rc">';
1142
+ $html .= '<div class="saswp-rc-a">';
1143
+ if(empty($saswp_collection_gallery_img_hide) && $saswp_collection_gallery_img_hide !=1){
1144
+
1145
+ $html .= '<img alt="'.esc_attr($value['saswp_reviewer_name']).'" loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'"/>';
1146
+ }
1147
  $html .= '<div class="saswp-rc-nm">';
1148
  $html .= '<a target="_blank" rel="noopener" href="'.esc_url($review_link).'">'. esc_attr($value['saswp_reviewer_name']).'</a>';
1149
  $html .= '<span class="saswp-rc-dt">'.(isset($date_str['date']) ? esc_attr($date_str['date']): '' ).'</span>';
1159
 
1160
  }
1161
 
1162
+ public function saswp_create_collection_slider($g_type, $arrow, $dots, $collection, $date_format, $saswp_collection_gallery_img_hide){
1163
 
1164
  $html = '';
1165
 
1183
 
1184
  $html .= '<div class="saswp-si">';
1185
 
1186
+ $html .= $this->saswp_review_desing_for_slider($value, $date_format, $saswp_collection_gallery_img_hide);
1187
 
1188
  $html .= '</div>';
1189
 
1203
 
1204
  foreach($coll as $value){
1205
 
1206
+ $html .= $this->saswp_review_desing_for_slider($value, $date_format, $saswp_collection_gallery_img_hide);
1207
 
1208
  }
1209
 
output/function.php CHANGED
@@ -3409,74 +3409,81 @@ function saswp_default_video_object_scjhema(){
3409
  $modified_date = get_the_modified_date("c");
3410
 
3411
  if(count($video_links) > 1){
3412
- $input1['@type'] = "ItemList";
3413
-
3414
- foreach($video_links as $vkey => $v_val){
3415
- $vnewarr = array(
3416
- '@type' => 'VideoObject',
3417
- "position" => $vkey+1,
3418
- 'name' => isset($v_val['title'])? $v_val['title'] : saswp_get_the_title(),
3419
- 'datePublished' => esc_html($date),
3420
- 'dateModified' => esc_html($modified_date),
3421
- 'url' => trailingslashit(saswp_get_permalink()),
3422
- 'interactionStatistic' => array(
3423
- "@type" => "InteractionCounter",
3424
- "interactionType" => array("@type" => "WatchAction" ),
3425
- "userInteractionCount" => isset($v_val['viewCount'])? $v_val['viewCount'] : '0',
3426
- ),
3427
- 'thumbnailUrl' => isset($v_val['thumbnail_url'])? $v_val['thumbnail_url'] : saswp_get_thumbnail(),
3428
- 'author' => saswp_get_author_details(),
3429
- );
 
3430
 
3431
- if(isset($v_val['uploadDate'])){
3432
- $vnewarr['uploadDate'] = $v_val['uploadDate'];
3433
- }
 
 
3434
 
3435
- if(isset($v_val['duration'])){
3436
- $vnewarr['duration'] = $v_val['duration'];
3437
- }
3438
 
3439
- if(isset($v_val['video_url'])){
3440
- $vnewarr['contentUrl'] = saswp_validate_url($v_val['video_url']);
3441
- }
3442
 
3443
- if(isset($v_val['video_url'])){
3444
- $vnewarr['embedUrl'] = saswp_validate_url($v_val['video_url']);
3445
- }
3446
 
3447
- if(isset($v_val['description'])){
3448
- $vnewarr['description'] = $v_val['description'];
 
 
 
 
 
3449
  }
3450
-
3451
- $input1['itemListElement'][] = $vnewarr;
3452
  }
3453
  }else{
3454
- $input1 = array(
3455
- '@context' => saswp_context_url(),
3456
- '@type' => 'VideoObject',
3457
- '@id' => trailingslashit(saswp_get_permalink()).'#videoobject',
3458
- 'url' => trailingslashit(saswp_get_permalink()),
3459
- 'headline' => saswp_get_the_title(),
3460
- 'datePublished' => esc_html($date),
3461
- 'dateModified' => esc_html($modified_date),
3462
- 'description' => $description,
3463
- 'transcript' => saswp_get_the_content(),
3464
- 'name' => saswp_get_the_title(),
3465
- 'uploadDate' => esc_html($date),
3466
- 'thumbnailUrl' => isset($video_links[0]['thumbnail_url'])? $video_links[0]['thumbnail_url'] : saswp_get_thumbnail(),
3467
- 'author' => saswp_get_author_details()
3468
- );
3469
-
3470
- if(isset($video_links[0]['duration'])){
3471
- $input1['duration'] = $video_links[0]['duration'];
3472
- }
3473
- if(isset($video_links[0]['video_url'])){
3474
-
3475
- $input1['contentUrl'] = saswp_validate_url($video_links[0]['video_url']);
3476
- $input1['embedUrl'] = saswp_validate_url($video_links[0]['video_url']);
3477
 
 
 
 
 
 
 
 
 
 
3478
  }
3479
-
3480
  }
3481
  }
3482
  return $input1;
3409
  $modified_date = get_the_modified_date("c");
3410
 
3411
  if(count($video_links) > 1){
3412
+ if(isset($v_val['video_url']) && !empty($v_val['video_url'])){
3413
+
3414
+ $input1['@type'] = "ItemList";
3415
+ foreach($video_links as $vkey => $v_val){
3416
+ $vnewarr = array(
3417
+ '@type' => 'VideoObject',
3418
+ "position" => $vkey+1,
3419
+ 'name' => isset($v_val['title'])? $v_val['title'] : saswp_get_the_title(),
3420
+ 'datePublished' => esc_html($date),
3421
+ 'dateModified' => esc_html($modified_date),
3422
+ 'url' => trailingslashit(saswp_get_permalink()),
3423
+ 'interactionStatistic' => array(
3424
+ "@type" => "InteractionCounter",
3425
+ "interactionType" => array("@type" => "WatchAction" ),
3426
+ "userInteractionCount" => isset($v_val['viewCount'])? $v_val['viewCount'] : '0',
3427
+ ),
3428
+ 'thumbnailUrl' => isset($v_val['thumbnail_url'])? $v_val['thumbnail_url'] : saswp_get_thumbnail(),
3429
+ 'author' => saswp_get_author_details(),
3430
+ );
3431
 
3432
+ if(isset($v_val['uploadDate'])){
3433
+ $vnewarr['uploadDate'] = $v_val['uploadDate'];
3434
+ }else{
3435
+ $vnewarr['uploadDate'] = $date;
3436
+ }
3437
 
3438
+ if(isset($v_val['duration'])){
3439
+ $vnewarr['duration'] = $v_val['duration'];
3440
+ }
3441
 
3442
+ if(isset($v_val['video_url'])){
3443
+ $vnewarr['contentUrl'] = saswp_validate_url($v_val['video_url']);
3444
+ }
3445
 
3446
+ if(isset($v_val['video_url'])){
3447
+ $vnewarr['embedUrl'] = saswp_validate_url($v_val['video_url']);
3448
+ }
3449
 
3450
+ if(isset($v_val['description'])){
3451
+ $vnewarr['description'] = $v_val['description'];
3452
+ }else{
3453
+ $vnewarr['description'] = $description;
3454
+ }
3455
+
3456
+ $input1['itemListElement'][] = $vnewarr;
3457
  }
 
 
3458
  }
3459
  }else{
3460
+ if(isset($video_links[0]['video_url']) && !empty($video_links[0]['video_url'])){
3461
+ $input1 = array(
3462
+ '@context' => saswp_context_url(),
3463
+ '@type' => 'VideoObject',
3464
+ '@id' => trailingslashit(saswp_get_permalink()).'#videoobject',
3465
+ 'url' => trailingslashit(saswp_get_permalink()),
3466
+ 'headline' => saswp_get_the_title(),
3467
+ 'datePublished' => esc_html($date),
3468
+ 'dateModified' => esc_html($modified_date),
3469
+ 'description' => $description,
3470
+ 'transcript' => saswp_get_the_content(),
3471
+ 'name' => saswp_get_the_title(),
3472
+ 'uploadDate' => esc_html($date),
3473
+ 'thumbnailUrl' => isset($video_links[0]['thumbnail_url'])? $video_links[0]['thumbnail_url'] : saswp_get_thumbnail(),
3474
+ 'author' => saswp_get_author_details()
3475
+ );
 
 
 
 
 
 
 
3476
 
3477
+ if(isset($video_links[0]['duration'])){
3478
+ $input1['duration'] = $video_links[0]['duration'];
3479
+ }
3480
+ if(isset($video_links[0]['video_url'])){
3481
+
3482
+ $input1['contentUrl'] = saswp_validate_url($video_links[0]['video_url']);
3483
+ $input1['embedUrl'] = saswp_validate_url($video_links[0]['video_url']);
3484
+
3485
+ }
3486
  }
 
3487
  }
3488
  }
3489
  return $input1;
output/markup.php CHANGED
@@ -108,10 +108,12 @@ function saswp_get_modified_image( $key, $input1 ){
108
  function saswp_book_schema_markup($schema_id, $schema_post_id, $all_post_meta){
109
 
110
  $input1 = array();
 
 
111
 
112
  $input1['@context'] = saswp_context_url();
113
  $input1['@type'] = 'Book';
114
- $input1['@id'] = trailingslashit(get_permalink()).'#Book';
115
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_book_url_'.$schema_id, 'saswp_array');
116
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_book_name_'.$schema_id, 'saswp_array');
117
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_book_description_'.$schema_id, 'saswp_array');
@@ -161,11 +163,13 @@ function saswp_movie_schema_markup($schema_id, $schema_post_id, $all_post_meta){
161
 
162
  $input1 = array();
163
 
164
- $tool = get_post_meta($schema_post_id, 'movie_actor_'.$schema_id, true);
 
 
165
 
166
  $input1['@context'] = saswp_context_url();
167
  $input1['@type'] = 'Movie';
168
- $input1['@id'] = ((isset($all_post_meta['saswp_howto_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_howto_schema_id_'.$schema_id][0] !='') ? $all_post_meta['saswp_howto_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Movie');
169
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_name_'.$schema_id, 'saswp_array');
170
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_url_'.$schema_id, 'saswp_array');
171
  $input1['sameAs'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_url_'.$schema_id, 'saswp_array');
@@ -399,10 +403,11 @@ function saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta){
399
  function saswp_eop_schema_markup($schema_id, $schema_post_id, $all_post_meta){
400
 
401
  $input1 = array();
 
402
 
403
  $input1['@context'] = saswp_context_url();
404
  $input1['@type'] = 'EducationalOccupationalProgram';
405
- $input1['@id'] = trailingslashit(get_permalink()).'#EducationalOccupationalProgram';
406
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_name_'.$schema_id, 'saswp_array');
407
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_url_'.$schema_id, 'saswp_array');
408
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_description_'.$schema_id, 'saswp_array');
@@ -735,11 +740,12 @@ function saswp_event_schema_markup($schema_id, $schema_post_id, $all_post_meta){
735
  function saswp_course_schema_markup($schema_id, $schema_post_id, $all_post_meta){
736
 
737
  $input1 = array();
 
738
 
739
  $input1 = array(
740
  '@context' => saswp_context_url(),
741
  '@type' => 'Course' ,
742
- '@id' => trailingslashit(get_permalink()).'#course',
743
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
744
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
745
  'courseCode' => saswp_remove_warnings($all_post_meta, 'saswp_course_code_'.$schema_id, 'saswp_array'),
@@ -780,11 +786,12 @@ function saswp_course_schema_markup($schema_id, $schema_post_id, $all_post_meta)
780
  function saswp_mobile_app_schema_markup($schema_id, $schema_post_id, $all_post_meta){
781
 
782
  $input1 = array();
 
783
 
784
  $input1 = array(
785
  '@context' => saswp_context_url(),
786
  '@type' => 'MobileApplication',
787
- '@id' => trailingslashit(get_permalink()).'#MobileApplication',
788
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_name_'.$schema_id, 'saswp_array'),
789
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_description_'.$schema_id, 'saswp_array'),
790
  'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_operating_system_'.$schema_id, 'saswp_array'),
@@ -816,12 +823,12 @@ function saswp_mobile_app_schema_markup($schema_id, $schema_post_id, $all_post_m
816
  function saswp_software_app_schema_markup($schema_id, $schema_post_id, $all_post_meta){
817
 
818
  $input1 = array();
819
-
820
 
821
  $input1 = array(
822
  '@context' => saswp_context_url(),
823
  '@type' => 'SoftwareApplication',
824
- '@id' => trailingslashit(get_permalink()).'#softwareapplication',
825
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_name_'.$schema_id, 'saswp_array'),
826
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_description_'.$schema_id, 'saswp_array'),
827
  'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_operating_system_'.$schema_id, 'saswp_array'),
@@ -960,6 +967,7 @@ function saswp_software_app_schema_markup($schema_id, $schema_post_id, $all_post
960
  function saswp_recipe_schema_markup($schema_id, $schema_post_id, $all_post_meta){
961
 
962
  $input1 = array();
 
963
 
964
  $recipe_logo = get_post_meta( get_the_ID(), 'saswp_recipe_organization_logo_'.$schema_id.'_detail',true);
965
  $recipe_author_image = get_post_meta( get_the_ID(), 'saswp_recipe_author_image_'.$schema_id.'_detail',true);
@@ -991,7 +999,7 @@ function saswp_recipe_schema_markup($schema_id, $schema_post_id, $all_post_meta)
991
  $input1 = array(
992
  '@context' => saswp_context_url(),
993
  '@type' => 'Recipe' ,
994
- '@id' => trailingslashit(get_permalink()).'#recipe',
995
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_url_'.$schema_id, 'saswp_array'),
996
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_name_'.$schema_id, 'saswp_array'),
997
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_description_'.$schema_id, 'saswp_array'),
@@ -1364,11 +1372,12 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
1364
  }
1365
 
1366
  function saswp_rent_action_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1367
-
 
1368
  $input1 = array(
1369
  '@context' => saswp_context_url(),
1370
  '@type' => 'RentAction',
1371
- '@id' => trailingslashit(get_permalink()).'#RentAction',
1372
  'url' => trailingslashit(get_permalink()),
1373
  );
1374
 
@@ -1391,11 +1400,12 @@ function saswp_rent_action_schema_markup($schema_id, $schema_post_id, $all_post_
1391
  }
1392
 
1393
  function saswp_real_estate_listing_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1394
-
 
1395
  $input1 = array(
1396
  '@context' => saswp_context_url(),
1397
  '@type' => 'RealEstateListing',
1398
- '@id' => trailingslashit(get_permalink()).'#RealEstateListing',
1399
  'url' => trailingslashit(get_permalink()),
1400
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_name_'.$schema_id, 'saswp_array'),
1401
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_description_'.$schema_id, 'saswp_array'),
@@ -1440,11 +1450,12 @@ function saswp_real_estate_listing_schema_markup($schema_id, $schema_post_id, $a
1440
  }
1441
 
1442
  function saswp_psychological_treatment_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1443
-
 
1444
  $input1 = array(
1445
  '@context' => saswp_context_url(),
1446
  '@type' => 'PsychologicalTreatment',
1447
- '@id' => trailingslashit(get_permalink()).'#PsychologicalTreatment',
1448
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_url_'.$schema_id, 'saswp_array'),
1449
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_name_'.$schema_id, 'saswp_array'),
1450
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_description_'.$schema_id, 'saswp_array'),
@@ -1659,10 +1670,12 @@ function saswp_local_business_schema_markup($schema_id, $schema_post_id, $all_po
1659
  function saswp_organization_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1660
 
1661
  $input1 = array();
 
 
1662
 
1663
  $input1['@context'] = saswp_context_url();
1664
  $input1['@type'] = 'Organization';
1665
- $input1['@id'] = trailingslashit(get_permalink()).'#Organization';
1666
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_name_'.$schema_id, 'saswp_array');
1667
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_url_'.$schema_id, 'saswp_array');
1668
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_description_'.$schema_id, 'saswp_array');
@@ -1720,10 +1733,12 @@ function saswp_organization_schema_markup($schema_id, $schema_post_id, $all_post
1720
  function saswp_project_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1721
 
1722
  $input1 = array();
 
 
1723
 
1724
  $input1['@context'] = saswp_context_url();
1725
  $input1['@type'] = 'Project';
1726
- $input1['@id'] = trailingslashit(get_permalink()).'#Project';
1727
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_project_name_'.$schema_id, 'saswp_array');
1728
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_project_url_'.$schema_id, 'saswp_array');
1729
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_project_description_'.$schema_id, 'saswp_array');
@@ -1781,10 +1796,12 @@ function saswp_project_schema_markup($schema_id, $schema_post_id, $all_post_meta
1781
  function saswp_hotel_room_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1782
 
1783
  $input1 = array();
 
 
1784
 
1785
  $input1['@context'] = saswp_context_url();
1786
  $input1['@type'] = 'Hotel';
1787
- $input1['@id'] = trailingslashit(get_permalink()).'#Hotel';
1788
 
1789
  if(isset($all_post_meta['saswp_hotelroom_hotel_name_'.$schema_id][0])){
1790
  $input1['name'] = $all_post_meta['saswp_hotelroom_hotel_name_'.$schema_id][0];
@@ -1859,10 +1876,11 @@ function saswp_hotel_room_schema_markup($schema_id, $schema_post_id, $all_post_m
1859
  function saswp_educational_occupational_credential_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1860
 
1861
  $input1 = array();
 
1862
 
1863
  $input1['@context'] = saswp_context_url();
1864
  $input1['@type'] = 'EducationalOccupationalCredential';
1865
- $input1['@id'] = trailingslashit(get_permalink()).'#EducationalOccupationalCredential';
1866
 
1867
  if( isset($all_post_meta['saswp_eoc_additional_type_'.$schema_id][0]) ){
1868
  $input1['additionalType'] = $all_post_meta['saswp_eoc_additional_type_'.$schema_id][0];
@@ -1904,10 +1922,11 @@ function saswp_educational_occupational_credential_schema_markup($schema_id, $sc
1904
  function saswp_video_game_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1905
 
1906
  $input1 = array();
 
1907
 
1908
  $input1['@context'] = saswp_context_url();
1909
  $input1['@type'] = 'VideoGame';
1910
- $input1['@id'] = trailingslashit(get_permalink()).'#VideoGame';
1911
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_name_'.$schema_id, 'saswp_array');
1912
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_url_'.$schema_id, 'saswp_array');
1913
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_description_'.$schema_id, 'saswp_array');
@@ -1971,10 +1990,13 @@ function saswp_video_game_schema_markup($schema_id, $schema_post_id, $all_post_m
1971
  function saswp_music_playlist_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1972
 
1973
  $input1 = array();
 
 
 
1974
 
1975
  $input1['@context'] = saswp_context_url();
1976
  $input1['@type'] = 'MusicPlaylist';
1977
- $input1['@id'] = trailingslashit(get_permalink()).'#MusicPlaylist';
1978
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_url_'.$schema_id, 'saswp_array');
1979
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_name_'.$schema_id, 'saswp_array');
1980
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_description_'.$schema_id, 'saswp_array');
@@ -2008,10 +2030,12 @@ function saswp_music_playlist_schema_markup($schema_id, $schema_post_id, $all_po
2008
  function saswp_music_composition_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2009
 
2010
  $input1 = array();
 
 
2011
 
2012
  $input1['@context'] = saswp_context_url();
2013
  $input1['@type'] = 'MusicComposition';
2014
- $input1['@id'] = trailingslashit(get_permalink()).'#MusicComposition';
2015
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_url_'.$schema_id, 'saswp_array');
2016
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_name_'.$schema_id, 'saswp_array');
2017
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_description_'.$schema_id, 'saswp_array');
@@ -2293,10 +2317,12 @@ function saswp_person_schema_markup($schema_id, $schema_post_id, $all_post_meta)
2293
  function saswp_trip_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2294
 
2295
  $input1 = array();
 
 
2296
 
2297
  $input1['@context'] = saswp_context_url();
2298
  $input1['@type'] = 'Trip';
2299
- $input1['@id'] = trailingslashit(get_permalink()).'#Trip';
2300
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_url_'.$schema_id, 'saswp_array');
2301
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_name_'.$schema_id, 'saswp_array');
2302
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_description_'.$schema_id, 'saswp_array');
@@ -2330,10 +2356,12 @@ function saswp_trip_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2330
  function saswp_boat_trip_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2331
 
2332
  $input1 = array();
 
 
2333
 
2334
  $input1['@context'] = saswp_context_url();
2335
  $input1['@type'] = 'BoatTrip';
2336
- $input1['@id'] = trailingslashit(get_permalink()).'#BoatTrip';
2337
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_url_'.$schema_id, 'saswp_array');
2338
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_name_'.$schema_id, 'saswp_array');
2339
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_description_'.$schema_id, 'saswp_array');
@@ -2452,10 +2480,11 @@ function saswp_itemlist_schema_markup($schema_id, $schema_post_id, $all_post_met
2452
  function saswp_faq_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2453
 
2454
  $input1 = array();
 
2455
 
2456
  $input1['@context'] = saswp_context_url();
2457
  $input1['@type'] = 'FAQPage';
2458
- $input1['@id'] = trailingslashit(get_permalink()).'#FAQPage';
2459
 
2460
  $input1['headline'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_headline_'.$schema_id, 'saswp_array');
2461
  $input1['keywords'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_keywords_'.$schema_id, 'saswp_array');
@@ -2500,10 +2529,12 @@ function saswp_faq_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2500
  function saswp_music_album_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2501
 
2502
  $input1 = array();
2503
-
 
2504
  $input1['@context'] = saswp_context_url();
2505
  $input1['@type'] = 'MusicAlbum';
2506
- $input1['@id'] = trailingslashit(get_permalink()).'#MusicAlbum';
 
2507
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_url_'.$schema_id, 'saswp_array');
2508
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_name_'.$schema_id, 'saswp_array');
2509
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_description_'.$schema_id, 'saswp_array');
@@ -2548,13 +2579,16 @@ function saswp_job_posting_schema_markup($schema_id, $schema_post_id, $all_post_
2548
 
2549
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
2550
 
 
 
2551
  $input1['@context'] = saswp_context_url();
2552
  $input1['@type'] = 'JobPosting';
2553
- $input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
2554
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_url_'.$schema_id, 'saswp_array');
2555
  $input1['title'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_title_'.$schema_id, 'saswp_array');
2556
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_description_'.$schema_id, 'saswp_array');
2557
  $input1['datePosted'] = isset($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id][0])):'';
 
2558
  $input1['validThrough'] = isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0])):'';
2559
  $input1['employmentType'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_employment_type_'.$schema_id, 'saswp_array');
2560
  $input1['industry'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_industry_'.$schema_id, 'saswp_array');
@@ -2666,17 +2700,20 @@ function saswp_job_posting_schema_markup($schema_id, $schema_post_id, $all_post_
2666
  if( ( isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0] ) && $all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0] !='' ) && date('Y-m-d',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0]) ) < date('Y-m-d') ){
2667
  $input1 = array();
2668
  }
2669
-
 
2670
  return $input1;
2671
  }
2672
 
2673
  function saswp_mosque_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2674
 
2675
  $input1 = array();
 
 
2676
 
2677
  $input1['@context'] = saswp_context_url();
2678
  $input1['@type'] = 'Mosque';
2679
- $input1['@id'] = trailingslashit(get_permalink()).'#Mosque';
2680
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_url_'.$schema_id, 'saswp_array');
2681
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_name_'.$schema_id, 'saswp_array');
2682
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_description_'.$schema_id, 'saswp_array');
@@ -2700,10 +2737,12 @@ function saswp_mosque_schema_markup($schema_id, $schema_post_id, $all_post_meta)
2700
  function saswp_church_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2701
 
2702
  $input1 = array();
 
 
2703
 
2704
  $input1['@context'] = saswp_context_url();
2705
  $input1['@type'] = 'Church';
2706
- $input1['@id'] = trailingslashit(get_permalink()).'#Church';
2707
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_url_'.$schema_id, 'saswp_array');
2708
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_name_'.$schema_id, 'saswp_array');
2709
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_description_'.$schema_id, 'saswp_array');
@@ -2727,10 +2766,12 @@ function saswp_church_schema_markup($schema_id, $schema_post_id, $all_post_meta)
2727
  function saswp_buddhist_temple_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2728
 
2729
  $input1 = array();
 
 
2730
 
2731
  $input1['@context'] = saswp_context_url();
2732
  $input1['@type'] = 'BuddhistTemple';
2733
- $input1['@id'] = trailingslashit(get_permalink()).'#BuddhistTemple';
2734
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_url_'.$schema_id, 'saswp_array');
2735
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_name_'.$schema_id, 'saswp_array');
2736
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_description_'.$schema_id, 'saswp_array');
@@ -2755,9 +2796,11 @@ function saswp_hindu_temple_schema_markup($schema_id, $schema_post_id, $all_post
2755
 
2756
  $input1 = array();
2757
 
 
 
2758
  $input1['@context'] = saswp_context_url();
2759
  $input1['@type'] = 'HinduTemple';
2760
- $input1['@id'] = trailingslashit(get_permalink()).'#HinduTemple';
2761
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_url_'.$schema_id, 'saswp_array');
2762
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_name_'.$schema_id, 'saswp_array');
2763
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_description_'.$schema_id, 'saswp_array');
@@ -2781,10 +2824,11 @@ function saswp_hindu_temple_schema_markup($schema_id, $schema_post_id, $all_post
2781
  function saswp_lorh_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2782
 
2783
  $input1 = array();
 
2784
 
2785
  $input1['@context'] = saswp_context_url();
2786
  $input1['@type'] = 'LandmarksOrHistoricalBuildings';
2787
- $input1['@id'] = trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings';
2788
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_url_'.$schema_id, 'saswp_array');
2789
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_name_'.$schema_id, 'saswp_array');
2790
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_description_'.$schema_id, 'saswp_array');
@@ -2816,9 +2860,11 @@ function saswp_tourist_attraction_schema_markup($schema_id, $schema_post_id, $al
2816
 
2817
  $input1 = array();
2818
 
 
 
2819
  $input1['@context'] = saswp_context_url();
2820
  $input1['@type'] = 'TouristAttraction';
2821
- $input1['@id'] = trailingslashit(get_permalink()).'#TouristAttraction';
2822
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_url_'.$schema_id, 'saswp_array');
2823
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_name_'.$schema_id, 'saswp_array');
2824
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_description_'.$schema_id, 'saswp_array');
@@ -2848,10 +2894,11 @@ function saswp_tourist_attraction_schema_markup($schema_id, $schema_post_id, $al
2848
  function saswp_tourist_destination_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2849
 
2850
  $input1 = array();
 
2851
 
2852
  $input1['@context'] = saswp_context_url();
2853
  $input1['@type'] = 'TouristDestination';
2854
- $input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
2855
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_url_'.$schema_id, 'saswp_array');
2856
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_name_'.$schema_id, 'saswp_array');
2857
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_description_'.$schema_id, 'saswp_array');
@@ -2878,10 +2925,12 @@ function saswp_tourist_destination_schema_markup($schema_id, $schema_post_id, $a
2878
  function saswp_apartment_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2879
 
2880
  $input1 = array();
 
 
2881
 
2882
  $input1['@context'] = saswp_context_url();
2883
  $input1['@type'] = 'Apartment';
2884
- $input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
2885
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
2886
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
2887
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
@@ -2952,10 +3001,12 @@ function saswp_apartment_schema_markup($schema_id, $schema_post_id, $all_post_me
2952
  function saswp_apartment_complex_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2953
 
2954
  $input1 = array();
 
 
2955
 
2956
  $input1['@context'] = saswp_context_url();
2957
  $input1['@type'] = 'ApartmentComplex';
2958
- $input1['@id'] = trailingslashit(get_permalink()).'#ApartmentComplex';
2959
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_url_'.$schema_id, 'saswp_array');
2960
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_name_'.$schema_id, 'saswp_array');
2961
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_description_'.$schema_id, 'saswp_array');
@@ -2988,10 +3039,12 @@ function saswp_apartment_complex_schema_markup($schema_id, $schema_post_id, $all
2988
  function saswp_house_schema_makrup($schema_id, $schema_post_id, $all_post_meta){
2989
 
2990
  $input1 = array();
 
 
2991
 
2992
  $input1['@context'] = saswp_context_url();
2993
  $input1['@type'] = 'House';
2994
- $input1['@id'] = trailingslashit(get_permalink()).'#House';
2995
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_url_'.$schema_id, 'saswp_array');
2996
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_name_'.$schema_id, 'saswp_array');
2997
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_description_'.$schema_id, 'saswp_array');
@@ -3019,10 +3072,12 @@ function saswp_house_schema_makrup($schema_id, $schema_post_id, $all_post_meta){
3019
  function saswp_single_family_residence_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3020
 
3021
  $input1 = array();
 
 
3022
 
3023
  $input1['@context'] = saswp_context_url();
3024
  $input1['@type'] = 'SingleFamilyResidence';
3025
- $input1['@id'] = trailingslashit(get_permalink()).'#SingleFamilyResidence';
3026
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_url_'.$schema_id, 'saswp_array');
3027
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_name_'.$schema_id, 'saswp_array');
3028
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_description_'.$schema_id, 'saswp_array');
@@ -3051,10 +3106,11 @@ function saswp_tv_series_schema_markup($schema_id, $schema_post_id, $all_post_me
3051
 
3052
  $actor = get_post_meta($schema_post_id, 'tvseries_actor_'.$schema_id, true);
3053
  $season = get_post_meta($schema_post_id, 'tvseries_season_'.$schema_id, true);
 
3054
 
3055
  $input1['@context'] = saswp_context_url();
3056
  $input1['@type'] = 'TVSeries';
3057
- $input1['@id'] = trailingslashit(get_permalink()).'#TVSeries';
3058
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_name_'.$schema_id, 'saswp_array');
3059
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_description_'.$schema_id, 'saswp_array');
3060
 
@@ -3107,7 +3163,9 @@ function saswp_medical_condition_schema_markup($schema_id, $schema_post_id, $all
3107
  $input1 = array();
3108
 
3109
  $symptom = get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true);
3110
- $riskfactro = get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true);
 
 
3111
 
3112
  $input1['@context'] = saswp_context_url();
3113
  $input1['@type'] = 'MedicalCondition';
@@ -3320,10 +3378,13 @@ function saswp_dfp_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3320
  $input1 = array();
3321
 
3322
  $slogo = get_post_meta( get_the_ID(), 'saswp_dfp_organization_logo_'.$schema_id.'_detail',true);
 
 
 
3323
  $input1 = array(
3324
  '@context' => saswp_context_url(),
3325
  '@type' => 'DiscussionForumPosting' ,
3326
- '@id' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_url_'.$schema_id, 'saswp_array').'#blogposting',
3327
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_main_entity_of_page_'.$schema_id, 'saswp_array'),
3328
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_headline_'.$schema_id, 'saswp_array'),
3329
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_description_'.$schema_id, 'saswp_array'),
@@ -3362,13 +3423,15 @@ function saswp_dfp_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3362
  function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3363
 
3364
  $input1 = array();
3365
-
3366
- $slogo = get_post_meta( get_the_ID(), 'saswp_blogposting_organization_logo_'.$schema_id.'_detail',true);
 
 
3367
 
3368
  $input1 = array(
3369
  '@context' => saswp_context_url(),
3370
  '@type' => 'BlogPosting' ,
3371
- '@id' => trailingslashit(get_permalink()).'#BlogPosting',
3372
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_inlanguage_'.$schema_id, 'saswp_array'),
3373
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
3374
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_headline_'.$schema_id, 'saswp_array'),
@@ -3406,16 +3469,60 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
3406
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array');
3407
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_url_'.$schema_id, 'saswp_array');
3408
 
3409
- $input1['reviewedBy']['@type'] = 'Person';
3410
- if(isset( $all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0] )){
3411
- $input1['reviewedBy']['@type'] = $all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0];
3412
- }
3413
- $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_name_'.$schema_id, 'saswp_array');
3414
- $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
3415
- $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_description_'.$schema_id, 'saswp_array');
3416
- $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_url_'.$schema_id, 'saswp_array');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3417
 
3418
- if(isset( $all_post_meta['saswp_blogposting_alumniof_'.$schema_id][0] )){
3419
  $itemlist = explode(',', $all_post_meta['saswp_blogposting_alumniof_'.$schema_id][0]);
3420
  foreach ($itemlist as $key => $list){
3421
  $vnewarr['@type'] = 'Organization';
@@ -3424,7 +3531,7 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
3424
  }
3425
  }
3426
 
3427
- if(isset( $all_post_meta['saswp_blogposting_knowsabout_'.$schema_id][0] )){
3428
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_blogposting_knowsabout_'.$schema_id][0]);
3429
  }
3430
  $itemlist = get_post_meta($schema_post_id, 'blogposting_items_'.$schema_id, true);
@@ -3460,10 +3567,13 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
3460
  function saswp_vehicle_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3461
 
3462
  $input1 = array();
 
 
3463
 
3464
  $input1 = array(
3465
  '@context' => saswp_context_url(),
3466
- '@type' => ['Product','Vehicle'],
 
3467
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_url_'.$schema_id, 'saswp_array'),
3468
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_name_'.$schema_id, 'saswp_array'),
3469
  'sku' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_sku_'.$schema_id, 'saswp_array'),
@@ -3619,10 +3729,12 @@ function saswp_vehicle_schema_markup($schema_id, $schema_post_id, $all_post_meta
3619
  function saswp_car_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3620
 
3621
  $input1 = array();
 
3622
 
3623
  $input1 = array(
3624
  '@context' => saswp_context_url(),
3625
  '@type' => ['Product','Car'],
 
3626
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_url_'.$schema_id, 'saswp_array'),
3627
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_name_'.$schema_id, 'saswp_array'),
3628
  'sku' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_sku_'.$schema_id, 'saswp_array'),
@@ -3781,11 +3893,11 @@ function saswp_creative_work_series_schema_markup($schema_id, $schema_post_id, $
3781
  $input1 = array();
3782
 
3783
  $slogo = get_post_meta( get_the_ID(), 'saswp_cws_schema_organization_logo_'.$schema_id.'_detail',true);
3784
-
3785
  $input1 = array(
3786
  '@context' => saswp_context_url(),
3787
  '@type' => 'CreativeWorkSeries' ,
3788
- '@id' => trailingslashit(get_permalink()).'#CreativeWorkSeries',
3789
  'inLanguage' => get_bloginfo('language'),
3790
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_description_'.$schema_id, 'saswp_array'),
3791
  'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_keywords_'.$schema_id, 'saswp_array'),
@@ -3824,11 +3936,12 @@ function saswp_creative_work_series_schema_markup($schema_id, $schema_post_id, $
3824
  function saswp_audio_object_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3825
 
3826
  $input1 = array();
 
3827
 
3828
  $input1 = array(
3829
  '@context' => saswp_context_url(),
3830
  '@type' => 'AudioObject',
3831
- '@id' => trailingslashit(get_permalink()).'#audioobject',
3832
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_name_'.$schema_id, 'saswp_array'),
3833
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_description_'.$schema_id, 'saswp_array'),
3834
  'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_contenturl_'.$schema_id, 'saswp_array'),
@@ -3857,10 +3970,11 @@ function saswp_webpage_schema_markup($schema_id, $schema_post_id, $all_post_meta
3857
  $input1 = array();
3858
 
3859
  $slogo = get_post_meta( get_the_ID(), 'saswp_webpage_organization_logo_'.$schema_id.'_detail',true);
 
3860
  $input1 = array(
3861
  '@context' => saswp_context_url(),
3862
  '@type' => 'WebPage' ,
3863
- '@id' => trailingslashit(get_permalink()).'#webpage',
3864
  'inLanguage' => get_bloginfo('language'),
3865
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_name_'.$schema_id, 'saswp_array'),
3866
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_url_'.$schema_id, 'saswp_array'),
@@ -3925,17 +4039,92 @@ function saswp_webpage_schema_markup($schema_id, $schema_post_id, $all_post_meta
3925
  return $input1;
3926
 
3927
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3928
  function saswp_special_announcement_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3929
 
3930
  $input1 = array();
3931
 
3932
  $slogo = get_post_meta( get_the_ID(), 'saswp_special_announcement_organization_logo_'.$schema_id.'_detail',true);
3933
  $location_img = get_post_meta( get_the_ID(), 'saswp_special_announcement_location_image_'.$schema_id.'_detail',true);
3934
-
3935
  $input1 = array(
3936
  '@context' => saswp_context_url(),
3937
  '@type' => 'SpecialAnnouncement',
3938
- '@id' => trailingslashit(get_permalink()).'#SpecialAnnouncement',
3939
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_special_announcement_url_'.$schema_id, 'saswp_array'),
3940
  'inLanguage' => get_bloginfo('language'),
3941
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_special_announcement_image_'.$schema_id, 'saswp_array'),
@@ -4049,11 +4238,12 @@ function saswp_special_announcement_schema_markup($schema_id, $schema_post_id, $
4049
  function saswp_visualartwork_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4050
 
4051
  $input1 = array();
 
4052
 
4053
  $input1 = array(
4054
  '@context' => saswp_context_url(),
4055
  '@type' => 'VisualArtwork',
4056
- '@id' => trailingslashit(get_permalink()).'#VisualArtwork',
4057
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_url_'.$schema_id, 'saswp_array'),
4058
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_image'.$schema_id, 'saswp_array'),
4059
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_name_'.$schema_id, 'saswp_array'),
@@ -4095,13 +4285,14 @@ function saswp_visualartwork_schema_markup($schema_id, $schema_post_id, $all_pos
4095
  function saswp_photograph_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4096
 
4097
  $input1 = array();
4098
-
4099
  $slogo = get_post_meta( get_the_ID(), 'saswp_photograph_organization_logo_'.$schema_id.'_detail',true);
 
4100
 
4101
  $input1 = array(
4102
  '@context' => saswp_context_url(),
4103
  '@type' => 'Photograph',
4104
- '@id' => trailingslashit(get_permalink()).'#Photograph',
4105
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_url_'.$schema_id, 'saswp_array'),
4106
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_inlanguage_'.$schema_id, 'saswp_array'),
4107
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_image_'.$schema_id, 'saswp_array'),
@@ -4123,20 +4314,63 @@ function saswp_photograph_schema_markup($schema_id, $schema_post_id, $all_post_m
4123
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_description_'.$schema_id, 'saswp_array');
4124
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_url_'.$schema_id, 'saswp_array');
4125
 
4126
- $input1['reviewedBy']['@type'] = 'Person';
4127
- if(isset( $all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0] )){
4128
- $input1['reviewedBy']['@type'] = $all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0];
4129
- }
4130
- $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_name_'.$schema_id, 'saswp_array');
4131
- $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4132
- $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_description_'.$schema_id, 'saswp_array');
4133
- $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_url_'.$schema_id, 'saswp_array');
4134
-
4135
- if(isset( $all_post_meta['saswp_photograph_knowsabout_'.$schema_id][0] )){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4136
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_photograph_knowsabout_'.$schema_id][0]);
4137
  }
4138
 
4139
- if(isset( $all_post_meta['saswp_photograph_alumniof_'.$schema_id][0] )){
4140
  $itemlist = explode(',', $all_post_meta['saswp_photograph_alumniof_'.$schema_id][0]);
4141
  foreach ($itemlist as $key => $list){
4142
  $vnewarr['@type'] = 'Organization';
@@ -4163,13 +4397,13 @@ function saswp_photograph_schema_markup($schema_id, $schema_post_id, $all_post_m
4163
  function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4164
 
4165
  $input1 = array();
4166
-
4167
  $slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
4168
-
4169
  $input1 = array(
4170
  '@context' => saswp_context_url(),
4171
  '@type' => 'Article',
4172
- '@id' => trailingslashit(get_permalink()).'#article',
4173
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_url_'.$schema_id, 'saswp_array'),
4174
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_article_inlanguage_'.$schema_id, 'saswp_array'),
4175
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
@@ -4195,20 +4429,64 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
4195
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array');
4196
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_url_'.$schema_id, 'saswp_array');
4197
 
4198
- $input1['reviewedBy']['@type'] = 'Person';
4199
- if(isset( $all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0] )){
4200
- $input1['reviewedBy']['@type'] = $all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0];
4201
- }
4202
- $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_name_'.$schema_id, 'saswp_array');
4203
- $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4204
- $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_description_'.$schema_id, 'saswp_array');
4205
- $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_url_'.$schema_id, 'saswp_array');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4206
 
4207
- if(isset( $all_post_meta['saswp_article_knowsabout_'.$schema_id][0] )){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4208
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_article_knowsabout_'.$schema_id][0]);
4209
  }
4210
 
4211
- if(isset( $all_post_meta['saswp_article_alumniof_'.$schema_id][0] )){
4212
  $itemlist = explode(',', $all_post_meta['saswp_article_alumniof_'.$schema_id][0]);
4213
  foreach ($itemlist as $key => $list){
4214
  $vnewarr['@type'] = 'Organization';
@@ -4243,10 +4521,6 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
4243
  $input1['mainEntity']['name'] = saswp_get_the_title();
4244
 
4245
  }
4246
- // echo "<pre>";
4247
- // echo "rrrr";
4248
- // print_r($input1);
4249
- // die();
4250
 
4251
  if(isset($all_post_meta['saswp_article_speakable_'.$schema_id]) && $all_post_meta['saswp_article_speakable_'.$schema_id][0] == 1){
4252
 
@@ -4265,13 +4539,14 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
4265
  function saswp_creativework_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4266
 
4267
  $input1 = array();
4268
-
4269
  $slogo = get_post_meta( get_the_ID(), 'saswp_creativework_organization_logo_'.$schema_id.'_detail',true);
 
4270
 
4271
  $input1 = array(
4272
  '@context' => saswp_context_url(),
4273
  '@type' => 'CreativeWork',
4274
- '@id' => trailingslashit(get_permalink()).'#CreativeWork',
4275
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_url_'.$schema_id, 'saswp_array'),
4276
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_inlanguage_'.$schema_id, 'saswp_array'),
4277
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_main_entity_of_page_'.$schema_id, 'saswp_array'),
@@ -4297,20 +4572,63 @@ function saswp_creativework_schema_markup($schema_id, $schema_post_id, $all_post
4297
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_description_'.$schema_id, 'saswp_array');
4298
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_url_'.$schema_id, 'saswp_array');
4299
 
4300
- $input1['reviewedBy']['@type'] = 'Person';
4301
- if(isset( $all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0] )){
4302
- $input1['reviewedBy']['@type'] = $all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0];
4303
- }
4304
- $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_name_'.$schema_id, 'saswp_array');
4305
- $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4306
- $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_description_'.$schema_id, 'saswp_array');
4307
- $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_url_'.$schema_id, 'saswp_array');
4308
 
4309
- if(isset( $all_post_meta['saswp_creativework_knowsabout_'.$schema_id][0] )){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4310
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_creativework_knowsabout_'.$schema_id][0]);
4311
  }
4312
 
4313
- if(isset( $all_post_meta['saswp_creativework_alumniof_'.$schema_id][0] )){
4314
  $itemlist = explode(',', $all_post_meta['saswp_creativework_alumniof_'.$schema_id][0]);
4315
  foreach ($itemlist as $key => $list){
4316
  $vnewarr['@type'] = 'Organization';
@@ -4353,13 +4671,13 @@ function saswp_creativework_schema_markup($schema_id, $schema_post_id, $all_post
4353
  function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4354
 
4355
  $input1 = array();
4356
-
4357
  $slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
4358
-
4359
  $input1 = array(
4360
  '@context' => saswp_context_url(),
4361
  '@type' => 'TechArticle',
4362
- '@id' => trailingslashit(get_permalink()).'#techarticle',
4363
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_inlanguage_'.$schema_id, 'saswp_array'),
4364
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
4365
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_image_'.$schema_id, 'saswp_array'),
@@ -4391,19 +4709,62 @@ function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post
4391
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array');
4392
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_url_'.$schema_id, 'saswp_array');
4393
 
4394
- $input1['reviewedBy']['@type'] = 'Person';
4395
- if(isset( $all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0] )){
4396
- $input1['reviewedBy']['@type'] = $all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0];
4397
- }
4398
- $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_name_'.$schema_id, 'saswp_array');
4399
- $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4400
- $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_description_'.$schema_id, 'saswp_array');
4401
- $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_url_'.$schema_id, 'saswp_array');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4402
 
4403
- if(isset( $all_post_meta['saswp_tech_article_knowsabout_'.$schema_id][0] )){
4404
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_tech_article_knowsabout_'.$schema_id][0]);
4405
  }
4406
- if(isset( $all_post_meta['saswp_tech_article_alumniof_'.$schema_id][0] )){
4407
  $itemlist = explode(',', $all_post_meta['saswp_tech_article_alumniof_'.$schema_id][0]);
4408
  foreach ($itemlist as $key => $list){
4409
  $vnewarr['@type'] = 'Organization';
@@ -4447,6 +4808,7 @@ function saswp_news_article_schema_markup($schema_id, $schema_post_id, $all_post
4447
 
4448
  $slogo = get_post_meta( get_the_ID(), 'saswp_newsarticle_organization_logo_'.$schema_id.'_detail',true);
4449
  $author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
 
4450
 
4451
  $input1 = array(
4452
  '@context' => saswp_context_url(),
@@ -4499,7 +4861,21 @@ function saswp_news_article_schema_markup($schema_id, $schema_post_id, $all_post
4499
  $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4500
  $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4501
 
4502
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4503
  $itemlist = get_post_meta($schema_post_id, 'newsarticle_items_'.$schema_id, true);
4504
 
4505
  if($itemlist){
@@ -4536,11 +4912,12 @@ function saswp_audiobook_schema_markup($schema_id, $schema_post_id, $all_post_me
4536
  $input1 = array();
4537
 
4538
  $author_image = get_post_meta( get_the_ID(), 'saswp_audiobook_author_image_'.$schema_id.'_detail',true);
 
4539
 
4540
  $input1 = array(
4541
  '@context' => saswp_context_url(),
4542
  '@type' => 'Audiobook' ,
4543
- '@id' => trailingslashit(get_permalink()).'#Audiobook',
4544
  'inLanguage' => get_bloginfo('language'),
4545
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_audiobook_main_entity_of_page_'.$schema_id, 'saswp_array'),
4546
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_audiobook_url_'.$schema_id, 'saswp_array'),
@@ -4582,11 +4959,12 @@ function saswp_audiobook_schema_markup($schema_id, $schema_post_id, $all_post_me
4582
  function saswp_podcast_episode_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4583
 
4584
  $input1 = array();
 
4585
 
4586
  $input1 = array(
4587
  '@context' => saswp_context_url(),
4588
  '@type' => 'PodcastEpisode' ,
4589
- '@id' => trailingslashit(get_permalink()).'#PodcastEpisode',
4590
  'inLanguage' => get_bloginfo('language'),
4591
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_podcast_episode_url_'.$schema_id, 'saswp_array'),
4592
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_podcast_episode_name_'.$schema_id, 'saswp_array'),
@@ -4621,6 +4999,7 @@ function saswp_podcast_episode_schema_markup($schema_id, $schema_post_id, $all_p
4621
  function saswp_podcast_season_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4622
 
4623
  $input1 = array();
 
4624
 
4625
  $input1 = array(
4626
  '@context' => saswp_context_url(),
@@ -4668,10 +5047,12 @@ function saswp_video_object_schema_markup($schema_id, $schema_post_id, $all_post
4668
  $slogo = get_post_meta( get_the_ID(), 'saswp_video_object_organization_logo_'.$schema_id.'_detail',true);
4669
  $author_image = get_post_meta( get_the_ID(), 'saswp_video_object_author_image_'.$schema_id.'_detail',true);
4670
 
 
 
4671
  $input1 = array(
4672
  '@context' => saswp_context_url(),
4673
  '@type' => 'VideoObject',
4674
- '@id' => trailingslashit(get_permalink()).'#videoobject',
4675
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_url_'.$schema_id, 'saswp_array'),
4676
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_headline_'.$schema_id, 'saswp_array'),
4677
  'datePublished' => isset($all_post_meta['saswp_video_object_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_video_object_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
@@ -4819,9 +5200,11 @@ function saswp_taxi_service_schema_markup($schema_id, $schema_post_id, $all_post
4819
  $service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_service_offer_'.$schema_id, 'saswp_array');
4820
  $service_offer_arr = explode(',', $service_offer_str);
4821
 
 
 
4822
  $input1['@context'] = saswp_context_url();
4823
  $input1['@type'] = 'TaxiService';
4824
- $input1['@id'] = trailingslashit(get_permalink()).'#TaxiService';
4825
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_name_'.$schema_id, 'saswp_array');
4826
  $input1['serviceType'] = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_type_'.$schema_id, 'saswp_array');
4827
 
@@ -4881,8 +5264,10 @@ function saswp_taxi_service_schema_markup($schema_id, $schema_post_id, $all_post
4881
  function saswp_service_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4882
 
4883
  $input1 = array();
4884
-
4885
- $area_served_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_area_served_'.$schema_id, 'saswp_array');
 
 
4886
  $area_served_arr = explode(',', $area_served_str);
4887
 
4888
  $service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_service_offer_'.$schema_id, 'saswp_array');
@@ -4890,7 +5275,7 @@ function saswp_service_schema_markup($schema_id, $schema_post_id, $all_post_meta
4890
 
4891
  $input1['@context'] = saswp_context_url();
4892
  $input1['@type'] = 'Service';
4893
- $input1['@id'] = trailingslashit(get_permalink()).'#service';
4894
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array');
4895
  $input1['serviceType'] = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_type_'.$schema_id, 'saswp_array');
4896
 
108
  function saswp_book_schema_markup($schema_id, $schema_post_id, $all_post_meta){
109
 
110
  $input1 = array();
111
+ $checkIdPro = ((isset($all_post_meta['saswp_book_id_'.$schema_id][0]) && $all_post_meta['saswp_book_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_book_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Book');
112
+
113
 
114
  $input1['@context'] = saswp_context_url();
115
  $input1['@type'] = 'Book';
116
+ $input1['@id'] = $checkIdPro;
117
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_book_url_'.$schema_id, 'saswp_array');
118
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_book_name_'.$schema_id, 'saswp_array');
119
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_book_description_'.$schema_id, 'saswp_array');
163
 
164
  $input1 = array();
165
 
166
+ $tool = get_post_meta($schema_post_id, 'movie_actor_'.$schema_id, true);
167
+
168
+ $checkIdPro = ((isset($all_post_meta['saswp_movie_id_'.$schema_id][0]) && $all_post_meta['saswp_movie_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_movie_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Movie');
169
 
170
  $input1['@context'] = saswp_context_url();
171
  $input1['@type'] = 'Movie';
172
+ $input1['@id'] = $checkIdPro;
173
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_name_'.$schema_id, 'saswp_array');
174
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_url_'.$schema_id, 'saswp_array');
175
  $input1['sameAs'] = saswp_remove_warnings($all_post_meta, 'saswp_movie_url_'.$schema_id, 'saswp_array');
403
  function saswp_eop_schema_markup($schema_id, $schema_post_id, $all_post_meta){
404
 
405
  $input1 = array();
406
+ $checkIdPro = ((isset($all_post_meta['saswp_eop_id_'.$schema_id][0]) && $all_post_meta['saswp_eop_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_eop_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#EducationalOccupationalProgram');
407
 
408
  $input1['@context'] = saswp_context_url();
409
  $input1['@type'] = 'EducationalOccupationalProgram';
410
+ $input1['@id'] = $checkIdPro;
411
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_name_'.$schema_id, 'saswp_array');
412
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_url_'.$schema_id, 'saswp_array');
413
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_eop_description_'.$schema_id, 'saswp_array');
740
  function saswp_course_schema_markup($schema_id, $schema_post_id, $all_post_meta){
741
 
742
  $input1 = array();
743
+ $checkIdPro = ((isset($all_post_meta['saswp_course_id_'.$schema_id][0]) && $all_post_meta['saswp_course_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_course_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Course');
744
 
745
  $input1 = array(
746
  '@context' => saswp_context_url(),
747
  '@type' => 'Course' ,
748
+ '@id' => $checkIdPro,
749
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
750
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
751
  'courseCode' => saswp_remove_warnings($all_post_meta, 'saswp_course_code_'.$schema_id, 'saswp_array'),
786
  function saswp_mobile_app_schema_markup($schema_id, $schema_post_id, $all_post_meta){
787
 
788
  $input1 = array();
789
+ $checkIdPro = ((isset($all_post_meta['saswp_mobile_app_id_'.$schema_id][0]) && $all_post_meta['saswp_mobile_app_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_mobile_app_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MobileApplication');
790
 
791
  $input1 = array(
792
  '@context' => saswp_context_url(),
793
  '@type' => 'MobileApplication',
794
+ '@id' => $checkIdPro,
795
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_name_'.$schema_id, 'saswp_array'),
796
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_description_'.$schema_id, 'saswp_array'),
797
  'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_mobile_app_schema_operating_system_'.$schema_id, 'saswp_array'),
823
  function saswp_software_app_schema_markup($schema_id, $schema_post_id, $all_post_meta){
824
 
825
  $input1 = array();
826
+ $checkIdPro = ((isset($all_post_meta['saswp_software_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_software_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_software_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#SoftwareApplication');
827
 
828
  $input1 = array(
829
  '@context' => saswp_context_url(),
830
  '@type' => 'SoftwareApplication',
831
+ '@id' => $checkIdPro,
832
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_name_'.$schema_id, 'saswp_array'),
833
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_description_'.$schema_id, 'saswp_array'),
834
  'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_operating_system_'.$schema_id, 'saswp_array'),
967
  function saswp_recipe_schema_markup($schema_id, $schema_post_id, $all_post_meta){
968
 
969
  $input1 = array();
970
+ $checkIdPro = ((isset($all_post_meta['saswp_recipe_id_'.$schema_id][0]) && $all_post_meta['saswp_recipe_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_recipe_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#recipe');
971
 
972
  $recipe_logo = get_post_meta( get_the_ID(), 'saswp_recipe_organization_logo_'.$schema_id.'_detail',true);
973
  $recipe_author_image = get_post_meta( get_the_ID(), 'saswp_recipe_author_image_'.$schema_id.'_detail',true);
999
  $input1 = array(
1000
  '@context' => saswp_context_url(),
1001
  '@type' => 'Recipe' ,
1002
+ '@id' => $checkIdPro,
1003
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_url_'.$schema_id, 'saswp_array'),
1004
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_name_'.$schema_id, 'saswp_array'),
1005
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_description_'.$schema_id, 'saswp_array'),
1372
  }
1373
 
1374
  function saswp_rent_action_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1375
+
1376
+ $checkIdPro = ((isset($all_post_meta['saswp_rent_action_id_'.$schema_id][0]) && $all_post_meta['saswp_rent_action_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_rent_action_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#RentAction');
1377
  $input1 = array(
1378
  '@context' => saswp_context_url(),
1379
  '@type' => 'RentAction',
1380
+ '@id' => $checkIdPro,
1381
  'url' => trailingslashit(get_permalink()),
1382
  );
1383
 
1400
  }
1401
 
1402
  function saswp_real_estate_listing_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1403
+ $checkIdPro = ((isset($all_post_meta['saswp_real_estate_listing_id_'.$schema_id][0]) && $all_post_meta['saswp_real_estate_listing_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_real_estate_listing_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#RealEstateListing');
1404
+
1405
  $input1 = array(
1406
  '@context' => saswp_context_url(),
1407
  '@type' => 'RealEstateListing',
1408
+ '@id' => $checkIdPro,
1409
  'url' => trailingslashit(get_permalink()),
1410
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_name_'.$schema_id, 'saswp_array'),
1411
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_description_'.$schema_id, 'saswp_array'),
1450
  }
1451
 
1452
  function saswp_psychological_treatment_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1453
+
1454
+ $checkIdPro = ((isset($all_post_meta['saswp_psychological_treatment_id_'.$schema_id][0]) && $all_post_meta['saswp_psychological_treatment_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_psychological_treatment_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#PsychologicalTreatment');
1455
  $input1 = array(
1456
  '@context' => saswp_context_url(),
1457
  '@type' => 'PsychologicalTreatment',
1458
+ '@id' => $checkIdPro,
1459
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_url_'.$schema_id, 'saswp_array'),
1460
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_name_'.$schema_id, 'saswp_array'),
1461
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_psychological_treatment_description_'.$schema_id, 'saswp_array'),
1670
  function saswp_organization_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1671
 
1672
  $input1 = array();
1673
+
1674
+ $checkIdPro = ((isset($all_post_meta['saswp_organization_id_'.$schema_id][0]) && $all_post_meta['saswp_organization_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_organization_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Organization');
1675
 
1676
  $input1['@context'] = saswp_context_url();
1677
  $input1['@type'] = 'Organization';
1678
+ $input1['@id'] = $checkIdPro;
1679
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_name_'.$schema_id, 'saswp_array');
1680
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_url_'.$schema_id, 'saswp_array');
1681
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_organization_description_'.$schema_id, 'saswp_array');
1733
  function saswp_project_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1734
 
1735
  $input1 = array();
1736
+
1737
+ $checkIdPro = ((isset($all_post_meta['saswp_project_id_'.$schema_id][0]) && $all_post_meta['saswp_project_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_project_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Project');
1738
 
1739
  $input1['@context'] = saswp_context_url();
1740
  $input1['@type'] = 'Project';
1741
+ $input1['@id'] = $checkIdPro;
1742
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_project_name_'.$schema_id, 'saswp_array');
1743
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_project_url_'.$schema_id, 'saswp_array');
1744
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_project_description_'.$schema_id, 'saswp_array');
1796
  function saswp_hotel_room_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1797
 
1798
  $input1 = array();
1799
+
1800
+ $checkIdPro = ((isset($all_post_meta['saswp_hotelroom_hotel_id_'.$schema_id][0]) && $all_post_meta['saswp_hotelroom_hotel_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_hotelroom_hotel_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Hotel');
1801
 
1802
  $input1['@context'] = saswp_context_url();
1803
  $input1['@type'] = 'Hotel';
1804
+ $input1['@id'] = $checkIdPro;
1805
 
1806
  if(isset($all_post_meta['saswp_hotelroom_hotel_name_'.$schema_id][0])){
1807
  $input1['name'] = $all_post_meta['saswp_hotelroom_hotel_name_'.$schema_id][0];
1876
  function saswp_educational_occupational_credential_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1877
 
1878
  $input1 = array();
1879
+ $checkIdPro = ((isset($all_post_meta['saswp_eoc_id_'.$schema_id][0]) && $all_post_meta['saswp_eoc_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_eoc_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#EducationalOccupationalCredential');
1880
 
1881
  $input1['@context'] = saswp_context_url();
1882
  $input1['@type'] = 'EducationalOccupationalCredential';
1883
+ $input1['@id'] = $checkIdPro;
1884
 
1885
  if( isset($all_post_meta['saswp_eoc_additional_type_'.$schema_id][0]) ){
1886
  $input1['additionalType'] = $all_post_meta['saswp_eoc_additional_type_'.$schema_id][0];
1922
  function saswp_video_game_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1923
 
1924
  $input1 = array();
1925
+ $checkIdPro = ((isset($all_post_meta['saswp_vg_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_vg_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_vg_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#VideoGame');
1926
 
1927
  $input1['@context'] = saswp_context_url();
1928
  $input1['@type'] = 'VideoGame';
1929
+ $input1['@id'] = $checkIdPro;
1930
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_name_'.$schema_id, 'saswp_array');
1931
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_url_'.$schema_id, 'saswp_array');
1932
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_description_'.$schema_id, 'saswp_array');
1990
  function saswp_music_playlist_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1991
 
1992
  $input1 = array();
1993
+ $checkIdPro = ((isset($all_post_meta['saswp_music_playlist_id_'.$schema_id][0]) && $all_post_meta['saswp_music_playlist_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_music_playlist_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MusicPlaylist');
1994
+
1995
+
1996
 
1997
  $input1['@context'] = saswp_context_url();
1998
  $input1['@type'] = 'MusicPlaylist';
1999
+ $input1['@id'] = $checkIdPro;
2000
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_url_'.$schema_id, 'saswp_array');
2001
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_name_'.$schema_id, 'saswp_array');
2002
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_description_'.$schema_id, 'saswp_array');
2030
  function saswp_music_composition_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2031
 
2032
  $input1 = array();
2033
+ $checkIdPro = ((isset($all_post_meta['saswp_music_composition_id_'.$schema_id][0]) && $all_post_meta['saswp_music_composition_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_music_composition_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MusicComposition');
2034
+
2035
 
2036
  $input1['@context'] = saswp_context_url();
2037
  $input1['@type'] = 'MusicComposition';
2038
+ $input1['@id'] = $checkIdPro;
2039
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_url_'.$schema_id, 'saswp_array');
2040
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_name_'.$schema_id, 'saswp_array');
2041
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_composition_description_'.$schema_id, 'saswp_array');
2317
  function saswp_trip_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2318
 
2319
  $input1 = array();
2320
+
2321
+ $checkIdPro = ((isset($all_post_meta['saswp_trip_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_trip_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_trip_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Trip');
2322
 
2323
  $input1['@context'] = saswp_context_url();
2324
  $input1['@type'] = 'Trip';
2325
+ $input1['@id'] = $checkIdPro;
2326
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_url_'.$schema_id, 'saswp_array');
2327
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_name_'.$schema_id, 'saswp_array');
2328
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_description_'.$schema_id, 'saswp_array');
2356
  function saswp_boat_trip_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2357
 
2358
  $input1 = array();
2359
+
2360
+ $checkIdPro = ((isset($all_post_meta['saswp_boat_trip_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_boat_trip_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_boat_trip_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#BoatTrip');
2361
 
2362
  $input1['@context'] = saswp_context_url();
2363
  $input1['@type'] = 'BoatTrip';
2364
+ $input1['@id'] = $checkIdPro;
2365
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_url_'.$schema_id, 'saswp_array');
2366
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_name_'.$schema_id, 'saswp_array');
2367
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_boat_trip_schema_description_'.$schema_id, 'saswp_array');
2480
  function saswp_faq_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2481
 
2482
  $input1 = array();
2483
+ $checkIdPro = ((isset($all_post_meta['saswp_faq_id_'.$schema_id][0]) && $all_post_meta['saswp_faq_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_faq_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#FAQ');
2484
 
2485
  $input1['@context'] = saswp_context_url();
2486
  $input1['@type'] = 'FAQPage';
2487
+ $input1['@id'] = $checkIdPro;
2488
 
2489
  $input1['headline'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_headline_'.$schema_id, 'saswp_array');
2490
  $input1['keywords'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_keywords_'.$schema_id, 'saswp_array');
2529
  function saswp_music_album_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2530
 
2531
  $input1 = array();
2532
+ $checkIdPro = ((isset($all_post_meta['saswp_music_album_id_'.$schema_id][0]) && $all_post_meta['saswp_music_album_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_music_album_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MusicAlbum');
2533
+
2534
  $input1['@context'] = saswp_context_url();
2535
  $input1['@type'] = 'MusicAlbum';
2536
+ $input1['@id'] = $checkIdPro;
2537
+
2538
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_url_'.$schema_id, 'saswp_array');
2539
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_name_'.$schema_id, 'saswp_array');
2540
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_description_'.$schema_id, 'saswp_array');
2579
 
2580
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
2581
 
2582
+ $checkIdPro = ((isset($all_post_meta['saswp_jobposting_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_jobposting_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_jobposting_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#JobPosting');
2583
+
2584
  $input1['@context'] = saswp_context_url();
2585
  $input1['@type'] = 'JobPosting';
2586
+ $input1['@id'] = $checkIdPro;
2587
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_url_'.$schema_id, 'saswp_array');
2588
  $input1['title'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_title_'.$schema_id, 'saswp_array');
2589
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_description_'.$schema_id, 'saswp_array');
2590
  $input1['datePosted'] = isset($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id][0])):'';
2591
+ $input1['directApply'] = isset($all_post_meta['saswp_jobposting_schema_direct_apply_'.$schema_id])?$all_post_meta['saswp_jobposting_schema_direct_apply_'.$schema_id]:'false';
2592
  $input1['validThrough'] = isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0])):'';
2593
  $input1['employmentType'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_employment_type_'.$schema_id, 'saswp_array');
2594
  $input1['industry'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_industry_'.$schema_id, 'saswp_array');
2700
  if( ( isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0] ) && $all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0] !='' ) && date('Y-m-d',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0]) ) < date('Y-m-d') ){
2701
  $input1 = array();
2702
  }
2703
+ // print_r($input1);
2704
+ // die;
2705
  return $input1;
2706
  }
2707
 
2708
  function saswp_mosque_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2709
 
2710
  $input1 = array();
2711
+
2712
+ $checkIdPro = ((isset($all_post_meta['saswp_mosque_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_mosque_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_mosque_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Mosque');
2713
 
2714
  $input1['@context'] = saswp_context_url();
2715
  $input1['@type'] = 'Mosque';
2716
+ $input1['@id'] = $checkIdPro;
2717
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_url_'.$schema_id, 'saswp_array');
2718
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_name_'.$schema_id, 'saswp_array');
2719
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_description_'.$schema_id, 'saswp_array');
2737
  function saswp_church_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2738
 
2739
  $input1 = array();
2740
+
2741
+ $checkIdPro = ((isset($all_post_meta['saswp_buddhisttemple_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_church_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_church_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#church');
2742
 
2743
  $input1['@context'] = saswp_context_url();
2744
  $input1['@type'] = 'Church';
2745
+ $input1['@id'] = $checkIdPro;
2746
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_url_'.$schema_id, 'saswp_array');
2747
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_name_'.$schema_id, 'saswp_array');
2748
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_description_'.$schema_id, 'saswp_array');
2766
  function saswp_buddhist_temple_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2767
 
2768
  $input1 = array();
2769
+
2770
+ $checkIdPro = ((isset($all_post_meta['saswp_buddhisttemple_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_buddhisttemple_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_buddhisttemple_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#BuddhistTemple');
2771
 
2772
  $input1['@context'] = saswp_context_url();
2773
  $input1['@type'] = 'BuddhistTemple';
2774
+ $input1['@id'] = $checkIdPro;
2775
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_url_'.$schema_id, 'saswp_array');
2776
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_name_'.$schema_id, 'saswp_array');
2777
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_buddhisttemple_schema_description_'.$schema_id, 'saswp_array');
2796
 
2797
  $input1 = array();
2798
 
2799
+ $checkIdPro = ((isset($all_post_meta['saswp_hindutemple_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_hindutemple_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_hindutemple_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#HinduTemple');
2800
+
2801
  $input1['@context'] = saswp_context_url();
2802
  $input1['@type'] = 'HinduTemple';
2803
+ $input1['@id'] = $checkIdPro;
2804
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_url_'.$schema_id, 'saswp_array');
2805
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_name_'.$schema_id, 'saswp_array');
2806
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_description_'.$schema_id, 'saswp_array');
2824
  function saswp_lorh_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2825
 
2826
  $input1 = array();
2827
+ $checkIdPro = ((isset($all_post_meta['saswp_lorh_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_lorh_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_lorh_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings');
2828
 
2829
  $input1['@context'] = saswp_context_url();
2830
  $input1['@type'] = 'LandmarksOrHistoricalBuildings';
2831
+ $input1['@id'] = $checkIdPro;
2832
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_url_'.$schema_id, 'saswp_array');
2833
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_name_'.$schema_id, 'saswp_array');
2834
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_description_'.$schema_id, 'saswp_array');
2860
 
2861
  $input1 = array();
2862
 
2863
+ $checkIdPro = ((isset($all_post_meta['saswp_ta_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_ta_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_ta_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#TouristAttraction');
2864
+
2865
  $input1['@context'] = saswp_context_url();
2866
  $input1['@type'] = 'TouristAttraction';
2867
+ $input1['@id'] = $checkIdPro;
2868
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_url_'.$schema_id, 'saswp_array');
2869
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_name_'.$schema_id, 'saswp_array');
2870
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_description_'.$schema_id, 'saswp_array');
2894
  function saswp_tourist_destination_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2895
 
2896
  $input1 = array();
2897
+ $checkIdPro = ((isset($all_post_meta['saswp_td_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_td_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_td_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#TouristDestination');
2898
 
2899
  $input1['@context'] = saswp_context_url();
2900
  $input1['@type'] = 'TouristDestination';
2901
+ $input1['@id'] = $checkIdPro;
2902
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_url_'.$schema_id, 'saswp_array');
2903
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_name_'.$schema_id, 'saswp_array');
2904
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_description_'.$schema_id, 'saswp_array');
2925
  function saswp_apartment_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2926
 
2927
  $input1 = array();
2928
+
2929
+ $checkIdPro = ((isset($all_post_meta['saswp_apartment_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_apartment_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_apartment_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Apartment');
2930
 
2931
  $input1['@context'] = saswp_context_url();
2932
  $input1['@type'] = 'Apartment';
2933
+ $input1['@id'] = $checkIdPro;
2934
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
2935
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
2936
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
3001
  function saswp_apartment_complex_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3002
 
3003
  $input1 = array();
3004
+
3005
+ $checkIdPro = ((isset($all_post_meta['saswp_apartment_complex_id_'.$schema_id][0]) && $all_post_meta['saswp_apartment_complex_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_apartment_complex_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#ApartmentComplex');
3006
 
3007
  $input1['@context'] = saswp_context_url();
3008
  $input1['@type'] = 'ApartmentComplex';
3009
+ $input1['@id'] = $checkIdPro;
3010
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_url_'.$schema_id, 'saswp_array');
3011
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_name_'.$schema_id, 'saswp_array');
3012
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_complex_description_'.$schema_id, 'saswp_array');
3039
  function saswp_house_schema_makrup($schema_id, $schema_post_id, $all_post_meta){
3040
 
3041
  $input1 = array();
3042
+
3043
+ $checkIdPro = ((isset($all_post_meta['saswp_house_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_house_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_house_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#House');
3044
 
3045
  $input1['@context'] = saswp_context_url();
3046
  $input1['@type'] = 'House';
3047
+ $input1['@id'] = $checkIdPro;
3048
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_url_'.$schema_id, 'saswp_array');
3049
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_name_'.$schema_id, 'saswp_array');
3050
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_description_'.$schema_id, 'saswp_array');
3072
  function saswp_single_family_residence_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3073
 
3074
  $input1 = array();
3075
+
3076
+ $checkIdPro = ((isset($all_post_meta['saswp_sfr_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_sfr_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_sfr_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#SingleFamilyResidence');
3077
 
3078
  $input1['@context'] = saswp_context_url();
3079
  $input1['@type'] = 'SingleFamilyResidence';
3080
+ $input1['@id'] = $checkIdPro;
3081
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_url_'.$schema_id, 'saswp_array');
3082
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_name_'.$schema_id, 'saswp_array');
3083
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_description_'.$schema_id, 'saswp_array');
3106
 
3107
  $actor = get_post_meta($schema_post_id, 'tvseries_actor_'.$schema_id, true);
3108
  $season = get_post_meta($schema_post_id, 'tvseries_season_'.$schema_id, true);
3109
+ $checkIdPro = ((isset($all_post_meta['saswp_tvseries_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_tvseries_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_tvseries_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#TVSeries');
3110
 
3111
  $input1['@context'] = saswp_context_url();
3112
  $input1['@type'] = 'TVSeries';
3113
+ $input1['@id'] = $checkIdPro;
3114
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_name_'.$schema_id, 'saswp_array');
3115
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_description_'.$schema_id, 'saswp_array');
3116
 
3163
  $input1 = array();
3164
 
3165
  $symptom = get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true);
3166
+ $riskfactro = get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true);
3167
+
3168
+ $checkIdPro = ((isset($all_post_meta['saswp_mc_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_mc_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_mc_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MedicalCondition');
3169
 
3170
  $input1['@context'] = saswp_context_url();
3171
  $input1['@type'] = 'MedicalCondition';
3378
  $input1 = array();
3379
 
3380
  $slogo = get_post_meta( get_the_ID(), 'saswp_dfp_organization_logo_'.$schema_id.'_detail',true);
3381
+
3382
+ $checkIdPro = ((isset($all_post_meta['saswp_dfp_id_'.$schema_id][0]) && $all_post_meta['saswp_dfp_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_dfp_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#DiscussionForumPosting');
3383
+
3384
  $input1 = array(
3385
  '@context' => saswp_context_url(),
3386
  '@type' => 'DiscussionForumPosting' ,
3387
+ '@id' => $checkIdPro,
3388
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_main_entity_of_page_'.$schema_id, 'saswp_array'),
3389
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_headline_'.$schema_id, 'saswp_array'),
3390
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_description_'.$schema_id, 'saswp_array'),
3423
  function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3424
 
3425
  $input1 = array();
3426
+ $author_image = get_post_meta( get_the_ID(), 'saswp_blogposting_author_image_'.$schema_id.'_detail',true);
3427
+ $slogo = get_post_meta( get_the_ID(), 'saswp_blogposting_organization_logo_'.$schema_id.'_detail',true);
3428
+
3429
+ $checkIdPro = ((isset($all_post_meta['saswp_blogposting_id_'.$schema_id][0]) && $all_post_meta['saswp_blogposting_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_blogposting_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#BlogPosting');
3430
 
3431
  $input1 = array(
3432
  '@context' => saswp_context_url(),
3433
  '@type' => 'BlogPosting' ,
3434
+ '@id' => $checkIdPro,
3435
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_inlanguage_'.$schema_id, 'saswp_array'),
3436
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
3437
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_headline_'.$schema_id, 'saswp_array'),
3469
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array');
3470
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_url_'.$schema_id, 'saswp_array');
3471
 
3472
+ $input1['author']['JobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_jobtitle_'.$schema_id, 'saswp_array');
3473
+
3474
+ $input1['author']['image']['@type'] = 'ImageObject';
3475
+ $input1['author']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_image_'.$schema_id, 'saswp_array');
3476
+ $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
3477
+ $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
3478
+
3479
+ if(!empty($all_post_meta['saswp_blogposting_editor_type_'.$schema_id][0]) && isset($all_post_meta['saswp_blogposting_editor_type_'.$schema_id][0])){
3480
+ $input1['editor']['@type'] = 'Person';
3481
+ if(!empty( $all_post_meta['saswp_blogposting_editor_type_'.$schema_id][0] )){
3482
+ $input1['editor']['@type'] = $all_post_meta['saswp_blogposting_editor_type_'.$schema_id][0];
3483
+ }
3484
+ if(!empty( $all_post_meta['saswp_blogposting_editor_name_'.$schema_id][0] )){
3485
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_editor_name_'.$schema_id, 'saswp_array');
3486
+ }
3487
+ if(!empty( $all_post_meta['saswp_blogposting_editor_honorific_suffix_'.$schema_id][0] )){
3488
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_editor_honorific_suffix_'.$schema_id, 'saswp_array');
3489
+ }
3490
+ if(!empty( $all_post_meta['saswp_blogposting_editor_description_'.$schema_id][0] )){
3491
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_editor_description_'.$schema_id, 'saswp_array');
3492
+ }
3493
+ if(!empty( $all_post_meta['saswp_blogposting_editor_url_'.$schema_id][0] )){
3494
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_editor_url_'.$schema_id, 'saswp_array');
3495
+ }
3496
+ if(!empty( $all_post_meta['saswp_blogposting_editor_image_'.$schema_id][0] )){
3497
+ $input1['editor']['image']['@type'] = 'ImageObject';
3498
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_editor_image_'.$schema_id, 'saswp_array');
3499
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
3500
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
3501
+ }
3502
+ }
3503
+
3504
+
3505
+ if(!empty($all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0]) && isset($all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0])){
3506
+ $input1['reviewedBy']['@type'] = 'Person';
3507
+ if(!empty( $all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0] )){
3508
+ $input1['reviewedBy']['@type'] = $all_post_meta['saswp_blogposting_reviewedby_type_'.$schema_id][0];
3509
+ }
3510
+ if(!empty($all_post_meta['saswp_blogposting_reviewedby_name_'.$schema_id][0])){
3511
+ $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_name_'.$schema_id, 'saswp_array');
3512
+ }
3513
+ if(!empty($all_post_meta['saswp_blogposting_reviewedby_honorific_suffix_'.$schema_id][0])){
3514
+ $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
3515
+ }
3516
+ if(!empty($all_post_meta['saswp_blogposting_reviewedby_description_'.$schema_id][0])){
3517
+ $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_description_'.$schema_id, 'saswp_array');
3518
+ }
3519
+ if(!empty($all_post_meta['saswp_blogposting_reviewedby_url_'.$schema_id][0])){
3520
+ $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_reviewedby_url_'.$schema_id, 'saswp_array');
3521
+ }
3522
+ }
3523
+
3524
 
3525
+ if(!empty($all_post_meta['saswp_blogposting_alumniof_'.$schema_id][0]) && isset( $all_post_meta['saswp_blogposting_alumniof_'.$schema_id][0] )){
3526
  $itemlist = explode(',', $all_post_meta['saswp_blogposting_alumniof_'.$schema_id][0]);
3527
  foreach ($itemlist as $key => $list){
3528
  $vnewarr['@type'] = 'Organization';
3531
  }
3532
  }
3533
 
3534
+ if( !empty($all_post_meta['saswp_blogposting_knowsabout_'.$schema_id][0]) && isset( $all_post_meta['saswp_blogposting_knowsabout_'.$schema_id][0] )){
3535
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_blogposting_knowsabout_'.$schema_id][0]);
3536
  }
3537
  $itemlist = get_post_meta($schema_post_id, 'blogposting_items_'.$schema_id, true);
3567
  function saswp_vehicle_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3568
 
3569
  $input1 = array();
3570
+
3571
+ $checkIdPro = ((isset($all_post_meta['saswp_vehicle_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_vehicle_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_vehicle_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#vehicle');
3572
 
3573
  $input1 = array(
3574
  '@context' => saswp_context_url(),
3575
+ '@type' => ['Product','Vehicle'],
3576
+ '@id' => $checkIdPro,
3577
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_url_'.$schema_id, 'saswp_array'),
3578
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_name_'.$schema_id, 'saswp_array'),
3579
  'sku' => saswp_remove_warnings($all_post_meta, 'saswp_vehicle_schema_sku_'.$schema_id, 'saswp_array'),
3729
  function saswp_car_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3730
 
3731
  $input1 = array();
3732
+ $checkIdPro = ((isset($all_post_meta['saswp_car_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_car_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_car_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#MedicalCondition');
3733
 
3734
  $input1 = array(
3735
  '@context' => saswp_context_url(),
3736
  '@type' => ['Product','Car'],
3737
+ '@id' => $checkIdPro,
3738
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_url_'.$schema_id, 'saswp_array'),
3739
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_name_'.$schema_id, 'saswp_array'),
3740
  'sku' => saswp_remove_warnings($all_post_meta, 'saswp_car_schema_sku_'.$schema_id, 'saswp_array'),
3893
  $input1 = array();
3894
 
3895
  $slogo = get_post_meta( get_the_ID(), 'saswp_cws_schema_organization_logo_'.$schema_id.'_detail',true);
3896
+ $checkIdPro = ((isset($all_post_meta['saswp_cws_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_cws_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_cws_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#CreativeWorkSeries');
3897
  $input1 = array(
3898
  '@context' => saswp_context_url(),
3899
  '@type' => 'CreativeWorkSeries' ,
3900
+ '@id' => $checkIdPro,
3901
  'inLanguage' => get_bloginfo('language'),
3902
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_description_'.$schema_id, 'saswp_array'),
3903
  'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_cws_schema_keywords_'.$schema_id, 'saswp_array'),
3936
  function saswp_audio_object_schema_markup($schema_id, $schema_post_id, $all_post_meta){
3937
 
3938
  $input1 = array();
3939
+ $checkIdPro = ((isset($all_post_meta['saswp_audio_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_audio_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_audio_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#AudioObject');
3940
 
3941
  $input1 = array(
3942
  '@context' => saswp_context_url(),
3943
  '@type' => 'AudioObject',
3944
+ '@id' => $checkIdPro,
3945
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_name_'.$schema_id, 'saswp_array'),
3946
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_description_'.$schema_id, 'saswp_array'),
3947
  'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_contenturl_'.$schema_id, 'saswp_array'),
3970
  $input1 = array();
3971
 
3972
  $slogo = get_post_meta( get_the_ID(), 'saswp_webpage_organization_logo_'.$schema_id.'_detail',true);
3973
+ $checkIdPro = ((isset($all_post_meta['saswp_webpage_id_'.$schema_id][0]) && $all_post_meta['saswp_webpage_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_webpage_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#WebPage');
3974
  $input1 = array(
3975
  '@context' => saswp_context_url(),
3976
  '@type' => 'WebPage' ,
3977
+ '@id' => $checkIdPro,
3978
  'inLanguage' => get_bloginfo('language'),
3979
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_name_'.$schema_id, 'saswp_array'),
3980
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_url_'.$schema_id, 'saswp_array'),
4039
  return $input1;
4040
 
4041
  }
4042
+
4043
+ function saswp_medicalwebpage_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4044
+
4045
+ $input1 = array();
4046
+
4047
+ $slogo = get_post_meta( get_the_ID(), 'saswp_medicalwebpage_organization_logo_'.$schema_id.'_detail',true);
4048
+ $input1 = array(
4049
+ '@context' => saswp_context_url(),
4050
+ '@type' => 'MedicalWebPage' ,
4051
+ '@id' => trailingslashit(get_permalink()).'#medicalwebpage',
4052
+ 'inLanguage' => get_bloginfo('language'),
4053
+ 'name' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_name_'.$schema_id, 'saswp_array'),
4054
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_url_'.$schema_id, 'saswp_array'),
4055
+ 'lastReviewed' => isset($all_post_meta['saswp_medicalwebpage_last_reviewed_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_webpage_last_reviewed_'.$schema_id][0], get_post_time('h:i:s')) :'',
4056
+ 'dateCreated' => isset($all_post_meta['saswp_medicalwebpage_date_created_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_webpage_date_created_'.$schema_id][0], get_post_time('h:i:s')) :'',
4057
+ 'reviewedBy' => array(
4058
+ '@type' => 'Organization',
4059
+ 'logo' => array(
4060
+ '@type' => 'ImageObject',
4061
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_organization_logo_'.$schema_id, 'saswp_array'),
4062
+ 'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
4063
+ 'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
4064
+ ),
4065
+ 'name' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_organization_name_'.$schema_id, 'saswp_array'),
4066
+ ),
4067
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_description_'.$schema_id, 'saswp_array'),
4068
+ 'mainEntity' => array(
4069
+ '@type' => 'Article',
4070
+ 'mainEntityOfPage' => wp_strip_all_tags(strip_shortcodes(saswp_remove_warnings($all_post_meta, 'saswp_webpage_main_entity_of_page_'.$schema_id, 'saswp_array'))),
4071
+ 'image' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_image_'.$schema_id, 'saswp_array'),
4072
+ 'headline' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_headline_'.$schema_id, 'saswp_array'),
4073
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_description_'.$schema_id, 'saswp_array'),
4074
+ 'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_keywords_'.$schema_id, 'saswp_array'),
4075
+ 'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_section_'.$schema_id, 'saswp_array'),
4076
+ 'datePublished' => isset($all_post_meta['saswp_medicalwebpage_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_webpage_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
4077
+ 'dateModified' => isset($all_post_meta['saswp_medicalwebpage_date_modified_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_webpage_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
4078
+ 'publisher' => array(
4079
+ '@type' => 'Organization',
4080
+ 'logo' => array(
4081
+ '@type' => 'ImageObject',
4082
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_organization_logo_'.$schema_id, 'saswp_array'),
4083
+ 'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
4084
+ 'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
4085
+ ),
4086
+ 'name' => saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_organization_name_'.$schema_id, 'saswp_array'),
4087
+ ),
4088
+ ),
4089
+
4090
+
4091
+ );
4092
+
4093
+ $input1['mainEntity']['author']['@type'] = 'Person';
4094
+
4095
+ if(isset( $all_post_meta['saswp_medicalwebpage_author_type_'.$schema_id][0] )){
4096
+ $input1['mainEntity']['author']['@type'] = $all_post_meta['saswp_medicalwebpage_author_type_'.$schema_id][0];
4097
+ }
4098
+
4099
+ $input1['mainEntity']['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_author_name_'.$schema_id, 'saswp_array');
4100
+ $input1['mainEntity']['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_author_description_'.$schema_id, 'saswp_array');
4101
+ $input1['mainEntity']['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_medicalwebpage_author_url_'.$schema_id, 'saswp_array');
4102
+
4103
+ if(isset($all_post_meta['saswp_medicalwebpage_speakable_'.$schema_id]) && $all_post_meta['saswp_medicalwebpage_speakable_'.$schema_id][0] == 1){
4104
+
4105
+ $input1['speakable']['@type'] = 'SpeakableSpecification';
4106
+ $input1['speakable']['xpath'] = array(
4107
+ "/html/head/title",
4108
+ "/html/head/meta[@name='description']/@content"
4109
+ );
4110
+
4111
+ }
4112
+
4113
+ return $input1;
4114
+
4115
+ }
4116
+
4117
  function saswp_special_announcement_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4118
 
4119
  $input1 = array();
4120
 
4121
  $slogo = get_post_meta( get_the_ID(), 'saswp_special_announcement_organization_logo_'.$schema_id.'_detail',true);
4122
  $location_img = get_post_meta( get_the_ID(), 'saswp_special_announcement_location_image_'.$schema_id.'_detail',true);
4123
+ $checkIdPro = ((isset($all_post_meta['saswp_special_announcement_id_'.$schema_id][0]) && $all_post_meta['saswp_special_announcement_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_special_announcement_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#SpecialAnnouncement');
4124
  $input1 = array(
4125
  '@context' => saswp_context_url(),
4126
  '@type' => 'SpecialAnnouncement',
4127
+ '@id' => $checkIdPro,
4128
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_special_announcement_url_'.$schema_id, 'saswp_array'),
4129
  'inLanguage' => get_bloginfo('language'),
4130
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_special_announcement_image_'.$schema_id, 'saswp_array'),
4238
  function saswp_visualartwork_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4239
 
4240
  $input1 = array();
4241
+ $checkIdPro = ((isset($all_post_meta['saswp_visualartwork_id_'.$schema_id][0]) && $all_post_meta['saswp_visualartwork_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_visualartwork_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#VisualArtwork');
4242
 
4243
  $input1 = array(
4244
  '@context' => saswp_context_url(),
4245
  '@type' => 'VisualArtwork',
4246
+ '@id' => $checkIdPro,
4247
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_url_'.$schema_id, 'saswp_array'),
4248
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_image'.$schema_id, 'saswp_array'),
4249
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_visualartwork_name_'.$schema_id, 'saswp_array'),
4285
  function saswp_photograph_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4286
 
4287
  $input1 = array();
4288
+ $author_image = get_post_meta( get_the_ID(), 'saswp_photograph_author_image_'.$schema_id.'_detail',true);
4289
  $slogo = get_post_meta( get_the_ID(), 'saswp_photograph_organization_logo_'.$schema_id.'_detail',true);
4290
+ $checkIdPro = ((isset($all_post_meta['saswp_photograph_id_'.$schema_id][0]) && $all_post_meta['saswp_photograph_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_photograph_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#photograph');
4291
 
4292
  $input1 = array(
4293
  '@context' => saswp_context_url(),
4294
  '@type' => 'Photograph',
4295
+ '@id' => $checkIdPro,
4296
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_url_'.$schema_id, 'saswp_array'),
4297
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_inlanguage_'.$schema_id, 'saswp_array'),
4298
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_photograph_image_'.$schema_id, 'saswp_array'),
4314
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_description_'.$schema_id, 'saswp_array');
4315
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_url_'.$schema_id, 'saswp_array');
4316
 
4317
+ $input1['author']['image']['@type'] = 'ImageObject';
4318
+ $input1['author']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_image_'.$schema_id, 'saswp_array');
4319
+ $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4320
+ $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4321
+
4322
+ $input1['author']['JobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_jobtitle_'.$schema_id, 'saswp_array');
4323
+
4324
+ if(!empty($all_post_meta['saswp_photograph_editor_type_'.$schema_id][0]) && isset($all_post_meta['saswp_photograph_editor_type_'.$schema_id][0])){
4325
+ $input1['editor']['@type'] = 'Person';
4326
+ if(!empty( $all_post_meta['saswp_photograph_editor_type_'.$schema_id][0] )){
4327
+ $input1['editor']['@type'] = $all_post_meta['saswp_photograph_editor_type_'.$schema_id][0];
4328
+ }
4329
+ if(!empty( $all_post_meta['saswp_photograph_editor_name_'.$schema_id][0] )){
4330
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_editor_name_'.$schema_id, 'saswp_array');
4331
+ }
4332
+ if(!empty( $all_post_meta['saswp_photograph_editor_honorific_suffix_'.$schema_id][0] )){
4333
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_editor_honorific_suffix_'.$schema_id, 'saswp_array');
4334
+ }
4335
+ if(!empty( $all_post_meta['saswp_photograph_editor_description_'.$schema_id][0] )){
4336
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_editor_description_'.$schema_id, 'saswp_array');
4337
+ }
4338
+ if(!empty( $all_post_meta['saswp_photograph_editor_url_'.$schema_id][0] )){
4339
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_editor_url_'.$schema_id, 'saswp_array');
4340
+ }
4341
+ if(!empty( $all_post_meta['saswp_photograph_editor_image_'.$schema_id][0] )){
4342
+ $input1['editor']['image']['@type'] = 'ImageObject';
4343
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_editor_image_'.$schema_id, 'saswp_array');
4344
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4345
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4346
+ }
4347
+ }
4348
+
4349
+
4350
+ if(!empty($all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0]) && isset($all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0])){
4351
+ $input1['reviewedBy']['@type'] = 'Person';
4352
+ if(!empty( $all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0] )){
4353
+ $input1['reviewedBy']['@type'] = $all_post_meta['saswp_photograph_reviewedby_type_'.$schema_id][0];
4354
+ }
4355
+ if(!empty( $all_post_meta['saswp_photograph_reviewedby_name_'.$schema_id][0] )){
4356
+ $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_name_'.$schema_id, 'saswp_array');
4357
+ }
4358
+ if(!empty( $all_post_meta['saswp_photograph_reviewedby_honorific_suffix_'.$schema_id][0] )){
4359
+ $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4360
+ }
4361
+ if(!empty( $all_post_meta['saswp_photograph_reviewedby_description_'.$schema_id][0] )){
4362
+ $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_description_'.$schema_id, 'saswp_array');
4363
+ }
4364
+ if(!empty( $all_post_meta['saswp_photograph_reviewedby_url_'.$schema_id][0] )){
4365
+ $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_reviewedby_url_'.$schema_id, 'saswp_array');
4366
+ }
4367
+ }
4368
+
4369
+ if( !empty($all_post_meta['saswp_photograph_knowsabout_'.$schema_id][0]) && isset( $all_post_meta['saswp_photograph_knowsabout_'.$schema_id][0] )){
4370
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_photograph_knowsabout_'.$schema_id][0]);
4371
  }
4372
 
4373
+ if( !empty($all_post_meta['saswp_photograph_alumniof_'.$schema_id][0]) && isset( $all_post_meta['saswp_photograph_alumniof_'.$schema_id][0] )){
4374
  $itemlist = explode(',', $all_post_meta['saswp_photograph_alumniof_'.$schema_id][0]);
4375
  foreach ($itemlist as $key => $list){
4376
  $vnewarr['@type'] = 'Organization';
4397
  function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4398
 
4399
  $input1 = array();
4400
+ $author_image = get_post_meta( get_the_ID(), 'saswp_article_author_image_'.$schema_id.'_detail',true);
4401
  $slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
4402
+ $checkIdPro = ((isset($all_post_meta['saswp_article_id_'.$schema_id][0]) && $all_post_meta['saswp_article_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_article_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Article');
4403
  $input1 = array(
4404
  '@context' => saswp_context_url(),
4405
  '@type' => 'Article',
4406
+ '@id' => $checkIdPro,
4407
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_url_'.$schema_id, 'saswp_array'),
4408
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_article_inlanguage_'.$schema_id, 'saswp_array'),
4409
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
4429
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array');
4430
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_url_'.$schema_id, 'saswp_array');
4431
 
4432
+ $input1['author']['JobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_jobtitle_'.$schema_id, 'saswp_array');
4433
+
4434
+ $input1['author']['image']['@type'] = 'ImageObject';
4435
+ $input1['author']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_image_'.$schema_id, 'saswp_array');
4436
+ $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4437
+ $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4438
+
4439
+ if(!empty($all_post_meta['saswp_article_editor_type_'.$schema_id][0]) && isset($all_post_meta['saswp_article_editor_type_'.$schema_id][0])){
4440
+ $input1['editor']['@type'] = 'Person';
4441
+ if(!empty( $all_post_meta['saswp_article_editor_type_'.$schema_id][0] )){
4442
+ $input1['editor']['@type'] = $all_post_meta['saswp_article_editor_type_'.$schema_id][0];
4443
+ }
4444
+ if(!empty( $all_post_meta['saswp_article_editor_name_'.$schema_id][0] )){
4445
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_article_editor_name_'.$schema_id, 'saswp_array');
4446
+ }
4447
+ if(!empty( $all_post_meta['saswp_article_editor_honorific_suffix_'.$schema_id][0] )){
4448
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_article_editor_honorific_suffix_'.$schema_id, 'saswp_array');
4449
+ }
4450
+ if(!empty( $all_post_meta['saswp_article_editor_description_'.$schema_id][0] )){
4451
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_editor_description_'.$schema_id, 'saswp_array');
4452
+ }
4453
+ if(!empty( $all_post_meta['saswp_article_editor_url_'.$schema_id][0] )){
4454
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_editor_url_'.$schema_id, 'saswp_array');
4455
+ }
4456
+ if(!empty( $all_post_meta['saswp_article_editor_image_'.$schema_id][0] )){
4457
+ $input1['editor']['image']['@type'] = 'ImageObject';
4458
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_editor_image_'.$schema_id, 'saswp_array');
4459
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4460
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4461
+ }
4462
 
4463
+ }
4464
+
4465
+
4466
+ if(!empty($all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0]) && isset($all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0])){
4467
+ $input1['reviewedBy']['@type'] = 'Person';
4468
+ if(!empty( $all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0] )){
4469
+ $input1['reviewedBy']['@type'] = $all_post_meta['saswp_article_reviewedby_type_'.$schema_id][0];
4470
+ }
4471
+ if(!empty( $all_post_meta['saswp_article_reviewedby_name_'.$schema_id][0] )){
4472
+ $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_name_'.$schema_id, 'saswp_array');
4473
+ }
4474
+ if(!empty( $all_post_meta['saswp_article_reviewedby_honorific_suffix_'.$schema_id][0] )){
4475
+ $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4476
+ }
4477
+ if(!empty( $all_post_meta['saswp_article_reviewedby_description_'.$schema_id][0] )){
4478
+ $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_description_'.$schema_id, 'saswp_array');
4479
+ }
4480
+ if(!empty( $all_post_meta['saswp_article_reviewedby_url_'.$schema_id][0] )){
4481
+ $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_reviewedby_url_'.$schema_id, 'saswp_array');
4482
+ }
4483
+ }
4484
+
4485
+ if( !empty($all_post_meta['saswp_article_knowsabout_'.$schema_id][0]) && isset( $all_post_meta['saswp_article_knowsabout_'.$schema_id][0] )){
4486
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_article_knowsabout_'.$schema_id][0]);
4487
  }
4488
 
4489
+ if(!empty($all_post_meta['saswp_article_alumniof_'.$schema_id][0]) && isset( $all_post_meta['saswp_article_alumniof_'.$schema_id][0] )){
4490
  $itemlist = explode(',', $all_post_meta['saswp_article_alumniof_'.$schema_id][0]);
4491
  foreach ($itemlist as $key => $list){
4492
  $vnewarr['@type'] = 'Organization';
4521
  $input1['mainEntity']['name'] = saswp_get_the_title();
4522
 
4523
  }
 
 
 
 
4524
 
4525
  if(isset($all_post_meta['saswp_article_speakable_'.$schema_id]) && $all_post_meta['saswp_article_speakable_'.$schema_id][0] == 1){
4526
 
4539
  function saswp_creativework_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4540
 
4541
  $input1 = array();
4542
+ $author_image = get_post_meta( get_the_ID(), 'saswp_creativework_author_image_'.$schema_id.'_detail',true);
4543
  $slogo = get_post_meta( get_the_ID(), 'saswp_creativework_organization_logo_'.$schema_id.'_detail',true);
4544
+ $checkIdPro = ((isset($all_post_meta['saswp_creativework_id_'.$schema_id][0]) && $all_post_meta['saswp_creativework_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_creativework_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#CreativeWork');
4545
 
4546
  $input1 = array(
4547
  '@context' => saswp_context_url(),
4548
  '@type' => 'CreativeWork',
4549
+ '@id' => $checkIdPro,
4550
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_url_'.$schema_id, 'saswp_array'),
4551
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_inlanguage_'.$schema_id, 'saswp_array'),
4552
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_creativework_main_entity_of_page_'.$schema_id, 'saswp_array'),
4572
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_description_'.$schema_id, 'saswp_array');
4573
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_url_'.$schema_id, 'saswp_array');
4574
 
4575
+ $input1['author']['JobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_jobtitle_'.$schema_id, 'saswp_array');
 
 
 
 
 
 
 
4576
 
4577
+ $input1['author']['image']['@type'] = 'ImageObject';
4578
+ $input1['author']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_image_'.$schema_id, 'saswp_array');
4579
+ $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4580
+ $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4581
+
4582
+ if(!empty($all_post_meta['saswp_creativework_editor_type_'.$schema_id][0]) && isset($all_post_meta['saswp_creativework_editor_type_'.$schema_id][0])){
4583
+ $input1['editor']['@type'] = 'Person';
4584
+ if(!empty( $all_post_meta['saswp_creativework_editor_type_'.$schema_id][0] )){
4585
+ $input1['editor']['@type'] = $all_post_meta['saswp_creativework_editor_type_'.$schema_id][0];
4586
+ }
4587
+ if(!empty( $all_post_meta['saswp_creativework_editor_name_'.$schema_id][0] )){
4588
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_editor_name_'.$schema_id, 'saswp_array');
4589
+ }
4590
+ if(!empty( $all_post_meta['saswp_creativework_editor_honorific_suffix_'.$schema_id][0] )){
4591
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_editor_honorific_suffix_'.$schema_id, 'saswp_array');
4592
+ }
4593
+ if(!empty( $all_post_meta['saswp_creativework_editor_description_'.$schema_id][0] )){
4594
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_editor_description_'.$schema_id, 'saswp_array');
4595
+ }
4596
+ if(!empty( $all_post_meta['saswp_creativework_editor_url_'.$schema_id][0] )){
4597
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_editor_url_'.$schema_id, 'saswp_array');
4598
+ }
4599
+ if(!empty( $all_post_meta['saswp_creativework_editor_image_'.$schema_id][0] )){
4600
+ $input1['editor']['image']['@type'] = 'ImageObject';
4601
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_editor_image_'.$schema_id, 'saswp_array');
4602
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4603
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4604
+ }
4605
+ }
4606
+
4607
+ if(!empty($all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0]) && isset($all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0])){
4608
+ $input1['reviewedBy']['@type'] = 'Person';
4609
+ if(!empty( $all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0] )){
4610
+ $input1['reviewedBy']['@type'] = $all_post_meta['saswp_creativework_reviewedby_type_'.$schema_id][0];
4611
+ }
4612
+ if(!empty( $all_post_meta['saswp_creativework_reviewedby_name_'.$schema_id][0] )){
4613
+ $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_name_'.$schema_id, 'saswp_array');
4614
+ }
4615
+ if(!empty( $all_post_meta['saswp_creativework_reviewedby_honorific_suffix_'.$schema_id][0] )){
4616
+ $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4617
+ }
4618
+ if(!empty( $all_post_meta['saswp_creativework_reviewedby_description_'.$schema_id][0] )){
4619
+ $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_description_'.$schema_id, 'saswp_array');
4620
+ }
4621
+ if(!empty( $all_post_meta['saswp_creativework_reviewedby_url_'.$schema_id][0] )){
4622
+ $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_reviewedby_url_'.$schema_id, 'saswp_array');
4623
+ }
4624
+ }
4625
+
4626
+
4627
+ if( !empty($all_post_meta['saswp_creativework_knowsabout_'.$schema_id][0]) && isset( $all_post_meta['saswp_creativework_knowsabout_'.$schema_id][0] )){
4628
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_creativework_knowsabout_'.$schema_id][0]);
4629
  }
4630
 
4631
+ if(!empty($all_post_meta['saswp_creativework_alumniof_'.$schema_id][0]) && isset( $all_post_meta['saswp_creativework_alumniof_'.$schema_id][0] )){
4632
  $itemlist = explode(',', $all_post_meta['saswp_creativework_alumniof_'.$schema_id][0]);
4633
  foreach ($itemlist as $key => $list){
4634
  $vnewarr['@type'] = 'Organization';
4671
  function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4672
 
4673
  $input1 = array();
4674
+ $author_image = get_post_meta( get_the_ID(), 'saswp_tech_article_author_image_'.$schema_id.'_detail',true);
4675
  $slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
4676
+ $checkIdPro = ((isset($all_post_meta['saswp_tech_article_id_'.$schema_id][0]) && $all_post_meta['saswp_tech_article_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_tech_article_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#TechArticle');
4677
  $input1 = array(
4678
  '@context' => saswp_context_url(),
4679
  '@type' => 'TechArticle',
4680
+ '@id' => $checkIdPro,
4681
  'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_inlanguage_'.$schema_id, 'saswp_array'),
4682
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
4683
  'image' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_image_'.$schema_id, 'saswp_array'),
4709
  $input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array');
4710
  $input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_url_'.$schema_id, 'saswp_array');
4711
 
4712
+ $input1['author']['JobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_jobtitle_'.$schema_id, 'saswp_array');
4713
+
4714
+ $input1['author']['image']['@type'] = 'ImageObject';
4715
+ $input1['author']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_image_'.$schema_id, 'saswp_array');
4716
+ $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4717
+ $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4718
+
4719
+ if(!empty($all_post_meta['saswp_tech_article_editor_type_'.$schema_id][0]) && isset($all_post_meta['saswp_tech_article_editor_type_'.$schema_id][0])){
4720
+ $input1['editor']['@type'] = 'Person';
4721
+ if(!empty( $all_post_meta['saswp_tech_article_editor_type_'.$schema_id][0] )){
4722
+ $input1['editor']['@type'] = $all_post_meta['saswp_tech_article_editor_type_'.$schema_id][0];
4723
+ }
4724
+ if(!empty( $all_post_meta['saswp_tech_article_editor_name_'.$schema_id][0] )){
4725
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_editor_name_'.$schema_id, 'saswp_array');
4726
+ }
4727
+ if(!empty( $all_post_meta['saswp_tech_article_editor_honorific_suffix_'.$schema_id][0] )){
4728
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_editor_honorific_suffix_'.$schema_id, 'saswp_array');
4729
+ }
4730
+ if(!empty( $all_post_meta['saswp_tech_article_editor_description_'.$schema_id][0] )){
4731
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_editor_description_'.$schema_id, 'saswp_array');
4732
+ }
4733
+ if(!empty( $all_post_meta['saswp_tech_article_editor_url_'.$schema_id][0] )){
4734
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_editor_url_'.$schema_id, 'saswp_array');
4735
+ }
4736
+ if(!empty( $all_post_meta['saswp_tech_article_editor_image_'.$schema_id][0] )){
4737
+ $input1['editor']['image']['@type'] = 'ImageObject';
4738
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_editor_image_'.$schema_id, 'saswp_array');
4739
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4740
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4741
+ }
4742
+ }
4743
+
4744
+
4745
+ if(!empty($all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0]) && isset($all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0])){
4746
+ $input1['reviewedBy']['@type'] = 'Person';
4747
+ if(!empty( $all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0] )){
4748
+ $input1['reviewedBy']['@type'] = $all_post_meta['saswp_tech_article_reviewedby_type_'.$schema_id][0];
4749
+ }
4750
+ if(!empty( $all_post_meta['saswp_tech_article_reviewedby_name_'.$schema_id][0] )){
4751
+ $input1['reviewedBy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_name_'.$schema_id, 'saswp_array');
4752
+ }
4753
+ if(!empty( $all_post_meta['saswp_tech_article_reviewedby_honorific_suffix_'.$schema_id][0] )){
4754
+ $input1['reviewedBy']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_honorific_suffix_'.$schema_id, 'saswp_array');
4755
+ }
4756
+ if(!empty( $all_post_meta['saswp_tech_article_reviewedby_description_'.$schema_id][0] )){
4757
+ $input1['reviewedBy']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_description_'.$schema_id, 'saswp_array');
4758
+ }
4759
+ if(!empty( $all_post_meta['saswp_tech_article_reviewedby_url_'.$schema_id][0] )){
4760
+ $input1['reviewedBy']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_reviewedby_url_'.$schema_id, 'saswp_array');
4761
+ }
4762
+ }
4763
 
4764
+ if( !empty($all_post_meta['saswp_tech_article_knowsabout_'.$schema_id][0]) && isset( $all_post_meta['saswp_tech_article_knowsabout_'.$schema_id][0] )){
4765
  $input1['knowsAbout'] = explode(',', $all_post_meta['saswp_tech_article_knowsabout_'.$schema_id][0]);
4766
  }
4767
+ if( !empty($all_post_meta['saswp_tech_article_alumniof_'.$schema_id][0]) && isset( $all_post_meta['saswp_tech_article_alumniof_'.$schema_id][0] )){
4768
  $itemlist = explode(',', $all_post_meta['saswp_tech_article_alumniof_'.$schema_id][0]);
4769
  foreach ($itemlist as $key => $list){
4770
  $vnewarr['@type'] = 'Organization';
4808
 
4809
  $slogo = get_post_meta( get_the_ID(), 'saswp_newsarticle_organization_logo_'.$schema_id.'_detail',true);
4810
  $author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
4811
+ $checkIdPro = ((isset($all_post_meta['saswp_newsarticle_id_'.$schema_id][0]) && $all_post_meta['saswp_newsarticle_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_newsarticle_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#NewsArticle');
4812
 
4813
  $input1 = array(
4814
  '@context' => saswp_context_url(),
4861
  $input1['author']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4862
  $input1['author']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4863
 
4864
+
4865
+ $input1['editor']['@type'] = 'Person';
4866
+ if(isset( $all_post_meta['saswp_newsarticle_editor_type_'.$schema_id][0] )){
4867
+ $input1['editor']['@type'] = $all_post_meta['saswp_newsarticle_editor_type_'.$schema_id][0];
4868
+ }
4869
+ $input1['editor']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_editor_name_'.$schema_id, 'saswp_array');
4870
+ $input1['editor']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_editor_honorific_suffix_'.$schema_id, 'saswp_array');
4871
+ $input1['editor']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_editor_description_'.$schema_id, 'saswp_array');
4872
+ $input1['editor']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_editor_url_'.$schema_id, 'saswp_array');
4873
+ $input1['editor']['image']['@type'] = 'ImageObject';
4874
+ $input1['editor']['image']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_editor_image_'.$schema_id, 'saswp_array');
4875
+ $input1['editor']['image']['height'] = isset($author_image['height']) ? $author_image['height'] : '';
4876
+ $input1['editor']['image']['width'] = isset($author_image['width']) ? $author_image['width'] : '';
4877
+
4878
+
4879
  $itemlist = get_post_meta($schema_post_id, 'newsarticle_items_'.$schema_id, true);
4880
 
4881
  if($itemlist){
4912
  $input1 = array();
4913
 
4914
  $author_image = get_post_meta( get_the_ID(), 'saswp_audiobook_author_image_'.$schema_id.'_detail',true);
4915
+ $checkIdPro = ((isset($all_post_meta['saswp_audiobook_id_'.$schema_id][0]) && $all_post_meta['saswp_audiobook_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_audiobook_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Audiobook');
4916
 
4917
  $input1 = array(
4918
  '@context' => saswp_context_url(),
4919
  '@type' => 'Audiobook' ,
4920
+ '@id' => $checkIdPro,
4921
  'inLanguage' => get_bloginfo('language'),
4922
  'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_audiobook_main_entity_of_page_'.$schema_id, 'saswp_array'),
4923
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_audiobook_url_'.$schema_id, 'saswp_array'),
4959
  function saswp_podcast_episode_schema_markup($schema_id, $schema_post_id, $all_post_meta){
4960
 
4961
  $input1 = array();
4962
+ $checkIdPro = ((isset($all_post_meta['saswp_podcast_episode_id_'.$schema_id][0]) && $all_post_meta['saswp_podcast_episode_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_podcast_episode_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#podcastepisod');
4963
 
4964
  $input1 = array(
4965
  '@context' => saswp_context_url(),
4966
  '@type' => 'PodcastEpisode' ,
4967
+ '@id' => $checkIdPro,
4968
  'inLanguage' => get_bloginfo('language'),
4969
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_podcast_episode_url_'.$schema_id, 'saswp_array'),
4970
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_podcast_episode_name_'.$schema_id, 'saswp_array'),
4999
  function saswp_podcast_season_schema_markup($schema_id, $schema_post_id, $all_post_meta){
5000
 
5001
  $input1 = array();
5002
+ $checkIdPro = ((isset($all_post_meta['saswp_podcast_season_id_'.$schema_id][0]) && $all_post_meta['saswp_podcast_season_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_podcast_season_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#podcastseason');
5003
 
5004
  $input1 = array(
5005
  '@context' => saswp_context_url(),
5047
  $slogo = get_post_meta( get_the_ID(), 'saswp_video_object_organization_logo_'.$schema_id.'_detail',true);
5048
  $author_image = get_post_meta( get_the_ID(), 'saswp_video_object_author_image_'.$schema_id.'_detail',true);
5049
 
5050
+ $checkIdPro = ((isset($all_post_meta['saswp_video_object_id_'.$schema_id][0]) && $all_post_meta['saswp_video_object_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_video_object_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#VideoObject');
5051
+
5052
  $input1 = array(
5053
  '@context' => saswp_context_url(),
5054
  '@type' => 'VideoObject',
5055
+ '@id' => $checkIdPro,
5056
  'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_url_'.$schema_id, 'saswp_array'),
5057
  'headline' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_headline_'.$schema_id, 'saswp_array'),
5058
  'datePublished' => isset($all_post_meta['saswp_video_object_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_video_object_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
5200
  $service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_service_offer_'.$schema_id, 'saswp_array');
5201
  $service_offer_arr = explode(',', $service_offer_str);
5202
 
5203
+ $checkIdPro = ((isset($all_post_meta['saswp_taxi_service_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_taxi_service_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_taxi_service_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#TaxiService');
5204
+
5205
  $input1['@context'] = saswp_context_url();
5206
  $input1['@type'] = 'TaxiService';
5207
+ $input1['@id'] = $checkIdPro;
5208
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_name_'.$schema_id, 'saswp_array');
5209
  $input1['serviceType'] = saswp_remove_warnings($all_post_meta, 'saswp_taxi_service_schema_type_'.$schema_id, 'saswp_array');
5210
 
5264
  function saswp_service_schema_markup($schema_id, $schema_post_id, $all_post_meta){
5265
 
5266
  $input1 = array();
5267
+
5268
+ $checkIdPro = ((isset($all_post_meta['saswp_service_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_service_schema_id_'.$schema_id][0] !='') ? trailingslashit(get_permalink()).$all_post_meta['saswp_service_schema_id_'.$schema_id][0] : trailingslashit(get_permalink()).'#Service');
5269
+
5270
+ $area_served_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_area_served_'.$schema_id, 'saswp_array');
5271
  $area_served_arr = explode(',', $area_served_str);
5272
 
5273
  $service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_service_offer_'.$schema_id, 'saswp_array');
5275
 
5276
  $input1['@context'] = saswp_context_url();
5277
  $input1['@type'] = 'Service';
5278
+ $input1['@id'] = $checkIdPro;
5279
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array');
5280
  $input1['serviceType'] = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_type_'.$schema_id, 'saswp_array');
5281
 
output/output.php CHANGED
@@ -181,7 +181,8 @@ function saswp_schema_output() {
181
  $schema_type = saswp_remove_warnings($schemaConditionals, 'schema_type', 'saswp_string');
182
  $schema_post_id = saswp_remove_warnings($schemaConditionals, 'post_id', 'saswp_string');
183
  $enable_videoobject = get_post_meta($schema_post_id, 'saswp_enable_videoobject', true);
184
-
 
185
  $input1 = array();
186
 
187
  $modified_schema = saswp_get_post_meta(saswp_get_the_ID(), 'saswp_modify_this_schema_'.$schema_post_id, true);
@@ -233,6 +234,10 @@ function saswp_schema_output() {
233
 
234
  $input1 = saswp_faq_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
235
  }
 
 
 
 
236
 
237
  break;
238
 
@@ -1286,6 +1291,31 @@ function saswp_schema_output() {
1286
  }
1287
 
1288
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1289
 
1290
  case 'SpecialAnnouncement':
1291
 
@@ -1790,6 +1820,8 @@ function saswp_schema_output() {
1790
 
1791
  if(isset($v_val['uploadDate'])){
1792
  $vnewarr['uploadDate'] = $v_val['uploadDate'];
 
 
1793
  }
1794
 
1795
  if(isset($v_val['duration'])){
@@ -1798,6 +1830,8 @@ function saswp_schema_output() {
1798
 
1799
  if(isset($v_val['description'])){
1800
  $vnewarr['description'] = $v_val['description'];
 
 
1801
  }
1802
 
1803
  $input1['itemListElement'][] = $vnewarr;
181
  $schema_type = saswp_remove_warnings($schemaConditionals, 'schema_type', 'saswp_string');
182
  $schema_post_id = saswp_remove_warnings($schemaConditionals, 'post_id', 'saswp_string');
183
  $enable_videoobject = get_post_meta($schema_post_id, 'saswp_enable_videoobject', true);
184
+ $enable_faqsobject = get_post_meta($schema_post_id, 'saswp_enable_faqsobject', true);
185
+
186
  $input1 = array();
187
 
188
  $modified_schema = saswp_get_post_meta(saswp_get_the_ID(), 'saswp_modify_this_schema_'.$schema_post_id, true);
234
 
235
  $input1 = saswp_faq_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
236
  }
237
+
238
+ if(empty($enable_faqsobject) && $enable_faqsobject == 0){
239
+ $input1 = array();
240
+ }
241
 
242
  break;
243
 
1291
  }
1292
 
1293
  break;
1294
+
1295
+ case 'MedicalWebPage':
1296
+
1297
+ $input1 = $service_object->saswp_schema_markup_generator($schema_type);
1298
+
1299
+ if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] ==1){
1300
+ $input1['comment'] = saswp_get_comments(get_the_ID());
1301
+ }
1302
+ if(!empty($aggregateRating)){
1303
+ $input1['mainEntity']['aggregateRating'] = $aggregateRating;
1304
+ }
1305
+ if(!empty($extra_theme_review)){
1306
+ $input1 = array_merge($input1, $extra_theme_review);
1307
+ }
1308
+
1309
+ $input1 = apply_filters('saswp_modify_medicalwebpage_schema_output', $input1 );
1310
+
1311
+ $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
1312
+
1313
+ if($modified_schema == 1){
1314
+
1315
+ $input1 = saswp_medicalwebpage_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
1316
+ }
1317
+
1318
+ break;
1319
 
1320
  case 'SpecialAnnouncement':
1321
 
1820
 
1821
  if(isset($v_val['uploadDate'])){
1822
  $vnewarr['uploadDate'] = $v_val['uploadDate'];
1823
+ }else{
1824
+ $vnewarr['uploadDate'] = $date;
1825
  }
1826
 
1827
  if(isset($v_val['duration'])){
1830
 
1831
  if(isset($v_val['description'])){
1832
  $vnewarr['description'] = $v_val['description'];
1833
+ }else{
1834
+ $vnewarr['description'] = $description;
1835
  }
1836
 
1837
  $input1['itemListElement'][] = $vnewarr;
output/service.php CHANGED
@@ -627,7 +627,9 @@ Class saswp_output_service{
627
  switch ($schema_type) {
628
 
629
  case 'Book':
630
-
 
 
631
  if(isset($custom_fields['saswp_book_name'])){
632
  $input1['name'] = $custom_fields['saswp_book_name'];
633
  }
@@ -689,7 +691,9 @@ Class saswp_output_service{
689
  break;
690
 
691
  case 'MusicPlaylist':
692
-
 
 
693
  if(isset($custom_fields['saswp_music_playlist_name'])){
694
  $input1['name'] = $custom_fields['saswp_music_playlist_name'];
695
  }
@@ -704,6 +708,9 @@ Class saswp_output_service{
704
 
705
  case 'Movie':
706
 
 
 
 
707
  if(isset($custom_fields['saswp_movie_name'])){
708
  $input1['name'] = $custom_fields['saswp_movie_name'];
709
  }
@@ -737,7 +744,9 @@ Class saswp_output_service{
737
  break;
738
 
739
  case 'CreativeWorkSeries':
740
-
 
 
741
  if(isset($custom_fields['saswp_cws_schema_image'])){
742
  $input1['image'] = $custom_fields['saswp_cws_schema_image'];
743
  }
@@ -790,6 +799,9 @@ Class saswp_output_service{
790
 
791
  case 'MusicComposition':
792
 
 
 
 
793
  if(isset($custom_fields['saswp_music_composition_name'])){
794
  $input1['name'] = $custom_fields['saswp_music_composition_name'];
795
  }
@@ -820,7 +832,10 @@ Class saswp_output_service{
820
  break;
821
 
822
  case 'PodcastEpisode':
823
-
 
 
 
824
  if(isset($custom_fields['saswp_podcast_episode_name'])){
825
  $input1['name'] = $custom_fields['saswp_podcast_episode_name'];
826
  }
@@ -864,7 +879,9 @@ Class saswp_output_service{
864
  break;
865
 
866
  case 'PodcastSeason':
867
-
 
 
868
  if(isset($custom_fields['saswp_podcast_season_name'])){
869
  $input1['name'] = $custom_fields['saswp_podcast_season_name'];
870
  }
@@ -904,7 +921,10 @@ Class saswp_output_service{
904
  break;
905
 
906
  case 'HotelRoom':
907
-
 
 
 
908
  if(isset($custom_fields['saswp_hotelroom_hotel_name'])){
909
  $input1['name'] = $custom_fields['saswp_hotelroom_hotel_name'];
910
  }
@@ -976,7 +996,10 @@ Class saswp_output_service{
976
  break;
977
 
978
  case 'Audiobook':
979
-
 
 
 
980
  if(isset($custom_fields['saswp_audiobook_name'])){
981
  $input1['name'] = $custom_fields['saswp_audiobook_name'];
982
  }
@@ -1039,6 +1062,9 @@ Class saswp_output_service{
1039
 
1040
  case 'EducationalOccupationalCredential':
1041
 
 
 
 
1042
  if(isset($custom_fields['saswp_eoc_additional_type'])){
1043
  $input1['additionalType'] = $custom_fields['saswp_eoc_additional_type'];
1044
  }
@@ -1081,7 +1107,9 @@ Class saswp_output_service{
1081
 
1082
  break;
1083
  case 'EducationalOccupationalProgram':
1084
-
 
 
1085
  if(isset($custom_fields['saswp_eop_name'])){
1086
  $input1['name'] = $custom_fields['saswp_eop_name'];
1087
  }
@@ -1167,7 +1195,10 @@ Class saswp_output_service{
1167
  break;
1168
 
1169
  case 'Project':
1170
-
 
 
 
1171
  if(isset($custom_fields['saswp_project_name'])){
1172
  $input1['name'] = $custom_fields['saswp_project_name'];
1173
  }
@@ -1252,7 +1283,9 @@ Class saswp_output_service{
1252
  break;
1253
 
1254
  case 'Organization':
1255
-
 
 
1256
  if(isset($custom_fields['saswp_organization_name'])){
1257
  $input1['name'] = $custom_fields['saswp_organization_name'];
1258
  }
@@ -1337,7 +1370,9 @@ Class saswp_output_service{
1337
  break;
1338
 
1339
  case 'MusicAlbum':
1340
-
 
 
1341
  if(isset($custom_fields['saswp_music_album_name'])){
1342
  $input1['name'] = $custom_fields['saswp_music_album_name'];
1343
  }
@@ -1360,7 +1395,9 @@ Class saswp_output_service{
1360
 
1361
  break;
1362
  case 'Article':
1363
-
 
 
1364
  if(isset($custom_fields['saswp_article_main_entity_of_page'])){
1365
  $input1['mainEntityOfPage'] = $custom_fields['saswp_article_main_entity_of_page'];
1366
  }
@@ -1394,14 +1431,28 @@ Class saswp_output_service{
1394
  if(isset($custom_fields['saswp_article_date_modified'])){
1395
  $input1['dateModified'] = $custom_fields['saswp_article_date_modified'];
1396
  }
 
1397
  if(isset($custom_fields['saswp_article_editor_name']) && $custom_fields['saswp_article_editor_name'] != '') {
1398
  $input1['editor'] = array();
1399
  $input1['editor']['@type'] = 'Person';
1400
  $input1['editor']['name'] = $custom_fields['saswp_article_editor_name'];
1401
  }
 
 
 
1402
  if(isset($custom_fields['saswp_article_editor_honorific_suffix']) && $custom_fields['saswp_article_editor_honorific_suffix'] != '') {
1403
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_article_editor_honorific_suffix'];
1404
- }
 
 
 
 
 
 
 
 
 
 
1405
  if(isset($custom_fields['saswp_article_author_type'])){
1406
  $input1['author']['@type'] = $custom_fields['saswp_article_author_type'];
1407
  }
@@ -1417,12 +1468,17 @@ Class saswp_output_service{
1417
  if(isset($custom_fields['saswp_article_author_url'])){
1418
  $input1['author']['url'] = $custom_fields['saswp_article_author_url'];
1419
  }
 
 
 
 
 
 
1420
  if(isset($custom_fields['saswp_article_organization_logo']) && isset($custom_fields['saswp_article_organization_name'])){
1421
  $input1['publisher']['@type'] = 'Organization';
1422
  $input1['publisher']['name'] = $custom_fields['saswp_article_organization_name'];
1423
  $input1['publisher']['logo'] = $custom_fields['saswp_article_organization_logo'];
1424
  }
1425
-
1426
  if(isset($custom_fields['saswp_article_reviewedby_type'])){
1427
  $input1['reviewedBy']['@type'] = $custom_fields['saswp_article_reviewedby_type'];
1428
  }
@@ -1449,12 +1505,14 @@ Class saswp_output_service{
1449
  }
1450
  if(isset($custom_fields['saswp_article_knowsabout'])){
1451
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_article_knowsabout']);
1452
- }
1453
 
1454
  break;
1455
 
1456
- case 'CreativeWork':
1457
-
 
 
1458
  if(isset($custom_fields['saswp_creativework_main_entity_of_page'])){
1459
  $input1['mainEntityOfPage'] = $custom_fields['saswp_creativework_main_entity_of_page'];
1460
  }
@@ -1488,14 +1546,29 @@ Class saswp_output_service{
1488
  if(isset($custom_fields['saswp_creativework_date_modified'])){
1489
  $input1['dateModified'] = $custom_fields['saswp_creativework_date_modified'];
1490
  }
 
1491
  if(isset($custom_fields['saswp_creativework_editor_name']) && $custom_fields['saswp_creativework_editor_name'] != '') {
1492
  $input1['editor'] = array();
1493
  $input1['editor']['@type'] = 'Person';
1494
  $input1['editor']['name'] = $custom_fields['saswp_creativework_editor_name'];
1495
- }
 
 
 
1496
  if(isset($custom_fields['saswp_creativework_editor_honorific_suffix']) && $custom_fields['saswp_creativework_editor_honorific_suffix'] != '') {
1497
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_creativework_editor_honorific_suffix'];
1498
- }
 
 
 
 
 
 
 
 
 
 
 
1499
  if(isset($custom_fields['saswp_creativework_author_type'])){
1500
  $input1['author']['@type'] = $custom_fields['saswp_creativework_author_type'];
1501
  }
@@ -1511,6 +1584,12 @@ Class saswp_output_service{
1511
  if(isset($custom_fields['saswp_creativework_author_url'])){
1512
  $input1['author']['url'] = $custom_fields['saswp_creativework_author_url'];
1513
  }
 
 
 
 
 
 
1514
  if(isset($custom_fields['saswp_creativework_knowsabout'])){
1515
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_creativework_knowsabout']);
1516
  }
@@ -1546,7 +1625,9 @@ Class saswp_output_service{
1546
  break;
1547
 
1548
  case 'VisualArtwork':
1549
-
 
 
1550
  if(isset($custom_fields['saswp_visualartwork_url'])){
1551
  $input1['url'] = saswp_validate_url($custom_fields['saswp_visualartwork_url']);
1552
  }
@@ -1602,7 +1683,9 @@ Class saswp_output_service{
1602
 
1603
  break;
1604
  case 'Photograph':
1605
-
 
 
1606
  if(isset($custom_fields['saswp_photograph_image'])){
1607
  $input1['image'] = $custom_fields['saswp_photograph_image'];
1608
  }
@@ -1630,6 +1713,9 @@ Class saswp_output_service{
1630
  if(isset($custom_fields['saswp_photograph_author_name'])){
1631
  $input1['author']['name'] = $custom_fields['saswp_photograph_author_name'];
1632
  }
 
 
 
1633
  if(isset($custom_fields['saswp_photograph_knowsabout'])){
1634
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_photograph_knowsabout']);
1635
  }
@@ -1642,6 +1728,30 @@ Class saswp_output_service{
1642
  if(isset($custom_fields['saswp_photograph_author_url'])){
1643
  $input1['author']['url'] = $custom_fields['saswp_photograph_author_url'];
1644
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1645
  if(isset($custom_fields['saswp_photograph_organization_logo']) && isset($custom_fields['saswp_photograph_organization_name'])){
1646
  $input1['publisher']['@type'] = 'Organization';
1647
  $input1['publisher']['name'] = $custom_fields['saswp_photograph_organization_name'];
@@ -1700,6 +1810,9 @@ Class saswp_output_service{
1700
 
1701
  $input1['announcementLocation'] = $location;
1702
  }
 
 
 
1703
  if(isset($custom_fields['saswp_special_announcement_category'])){
1704
  $input1['category'] = $custom_fields['saswp_special_announcement_category'];
1705
  }
@@ -1760,7 +1873,7 @@ Class saswp_output_service{
1760
 
1761
  case 'HowTo':
1762
  if(isset($custom_fields['saswp_howto_schema_id'])){
1763
- $input1['@id'] = $custom_fields['saswp_howto_schema_id'];
1764
  }
1765
  if(isset($custom_fields['saswp_howto_schema_name'])){
1766
  $input1['name'] = $custom_fields['saswp_howto_schema_name'];
@@ -1802,7 +1915,7 @@ Class saswp_output_service{
1802
  case 'local_business':
1803
 
1804
  if(isset($custom_fields['local_business_id'])){
1805
- $input1['@id'] = $custom_fields['local_business_id'];
1806
  }
1807
  if(isset($custom_fields['saswp_business_type'])){
1808
  $input1['@type'] = $custom_fields['saswp_business_type'];
@@ -1898,7 +2011,9 @@ Class saswp_output_service{
1898
 
1899
  case 'Blogposting':
1900
  case 'BlogPosting':
1901
-
 
 
1902
  if(isset($custom_fields['saswp_blogposting_main_entity_of_page'])){
1903
  $input1['mainEntityOfPage'] = $custom_fields['saswp_blogposting_main_entity_of_page'];
1904
  }
@@ -1929,14 +2044,28 @@ Class saswp_output_service{
1929
  if(isset($custom_fields['saswp_blogposting_date_modified'])){
1930
  $input1['dateModified'] = $custom_fields['saswp_blogposting_date_modified'];
1931
  }
 
1932
  if(isset($custom_fields['saswp_blogposting_editor_name']) && $custom_fields['saswp_blogposting_editor_name'] != '') {
1933
  $input1['editor'] = array();
1934
  $input1['editor']['@type'] = 'Person';
1935
  $input1['editor']['name'] = $custom_fields['saswp_blogposting_editor_name'];
1936
  }
 
 
 
1937
  if(isset($custom_fields['saswp_blogposting_editor_honorific_suffix']) && $custom_fields['saswp_blogposting_editor_honorific_suffix'] != '') {
1938
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_blogposting_editor_honorific_suffix'];
1939
  }
 
 
 
 
 
 
 
 
 
 
1940
  if(isset($custom_fields['saswp_blogposting_author_type'])){
1941
  $input1['author']['@type'] = $custom_fields['saswp_blogposting_author_type'];
1942
  }
@@ -1952,7 +2081,14 @@ Class saswp_output_service{
1952
  if(isset($custom_fields['saswp_blogposting_author_description'])){
1953
  $input1['author']['description'] = $custom_fields['saswp_blogposting_author_description'];
1954
  }
 
 
 
 
 
 
1955
 
 
1956
  if(isset($custom_fields['saswp_blogposting_reviewedby_type'])){
1957
  $input1['reviewedBy']['@type'] = $custom_fields['saswp_blogposting_reviewedby_type'];
1958
  }
@@ -1968,6 +2104,7 @@ Class saswp_output_service{
1968
  if(isset($custom_fields['saswp_blogposting_reviewedby_description'])){
1969
  $input1['reviewedBy']['description'] = $custom_fields['saswp_blogposting_reviewedby_description'];
1970
  }
 
1971
 
1972
  if(isset($custom_fields['saswp_blogposting_knowsabout'])){
1973
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_blogposting_knowsabout']);
@@ -1991,6 +2128,9 @@ Class saswp_output_service{
1991
 
1992
  case 'AudioObject':
1993
 
 
 
 
1994
  if(isset($custom_fields['saswp_audio_schema_name'])){
1995
  $input1['name'] = $custom_fields['saswp_audio_schema_name'];
1996
  }
@@ -2030,6 +2170,9 @@ Class saswp_output_service{
2030
 
2031
  case 'SoftwareApplication':
2032
 
 
 
 
2033
  if(isset($custom_fields['saswp_software_schema_name'])){
2034
  $input1['name'] = $custom_fields['saswp_software_schema_name'];
2035
  }
@@ -2066,7 +2209,10 @@ Class saswp_output_service{
2066
  break;
2067
 
2068
  case 'MobileApplication':
2069
-
 
 
 
2070
  if(isset($custom_fields['saswp_mobile_app_schema_name'])){
2071
  $input1['name'] = $custom_fields['saswp_mobile_app_schema_name'];
2072
  }
@@ -2103,7 +2249,10 @@ Class saswp_output_service{
2103
  break;
2104
 
2105
  case 'NewsArticle':
2106
-
 
 
 
2107
  if(isset($custom_fields['saswp_newsarticle_main_entity_of_page'])){
2108
  $input1['mainEntityOfPage'] = $custom_fields['saswp_newsarticle_main_entity_of_page'];
2109
  }
@@ -2146,23 +2295,48 @@ Class saswp_output_service{
2146
  if(isset($custom_fields['saswp_newsarticle_main_entity_id'])){
2147
  $input1['mainEntity']['@id'] = $custom_fields['saswp_newsarticle_main_entity_id'];
2148
  }
 
 
2149
  if(isset($custom_fields['saswp_newsarticle_editor_name']) && $custom_fields['saswp_newsarticle_editor_name'] != '') {
2150
  $input1['editor'] = array();
2151
  $input1['editor']['@type'] = 'Person';
2152
  $input1['editor']['name'] = $custom_fields['saswp_newsarticle_editor_name'];
2153
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2154
  if(isset($custom_fields['saswp_newsarticle_author_type'])){
2155
  $input1['author']['@type'] = $custom_fields['saswp_newsarticle_author_type'];
2156
  }
2157
  if(isset($custom_fields['saswp_newsarticle_author_name'])){
2158
  $input1['author']['name'] = $custom_fields['saswp_newsarticle_author_name'];
2159
  }
 
 
 
 
 
 
2160
  if(isset($custom_fields['saswp_newsarticle_author_url'])){
2161
  $input1['author']['url'] = saswp_validate_url($custom_fields['saswp_newsarticle_author_url']);
2162
  }
2163
  if(isset($custom_fields['saswp_newsarticle_author_image'])){
2164
  $input1['author']['Image']['url'] = $custom_fields['saswp_newsarticle_author_image'];
2165
- }
 
2166
  if(isset($custom_fields['saswp_newsarticle_organization_logo']) && isset($custom_fields['saswp_newsarticle_organization_name'])){
2167
  $input1['publisher']['@type'] = 'Organization';
2168
  $input1['publisher']['name'] = $custom_fields['saswp_newsarticle_organization_name'];
@@ -2172,7 +2346,9 @@ Class saswp_output_service{
2172
  break;
2173
 
2174
  case 'WebPage':
2175
-
 
 
2176
  if(isset($custom_fields['saswp_webpage_name'])){
2177
  $input1['name'] = $custom_fields['saswp_webpage_name'];
2178
  }
@@ -2234,6 +2410,70 @@ Class saswp_output_service{
2234
  }
2235
 
2236
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2237
 
2238
  case 'Event':
2239
 
@@ -2241,7 +2481,7 @@ Class saswp_output_service{
2241
  $vir_location = array();
2242
 
2243
  if(isset($custom_fields['saswp_event_schema_id'])){
2244
- $input1['@id'] = $custom_fields['saswp_event_schema_id'];
2245
  }
2246
  if(isset($custom_fields['saswp_event_schema_name'])){
2247
  $input1['name'] = $custom_fields['saswp_event_schema_name'];
@@ -2386,8 +2626,11 @@ Class saswp_output_service{
2386
 
2387
  break;
2388
 
2389
- case 'TechArticle':
2390
-
 
 
 
2391
  if(isset($custom_fields['saswp_tech_article_main_entity_of_page'])){
2392
  $input1['mainEntityOfPage'] = $custom_fields['saswp_tech_article_main_entity_of_page'];
2393
  }
@@ -2422,14 +2665,7 @@ Class saswp_output_service{
2422
  if(isset($custom_fields['saswp_tech_article_date_modified'])){
2423
  $input1['dateModified'] = $custom_fields['saswp_tech_article_date_modified'];
2424
  }
2425
- if(isset($custom_fields['saswp_tech_article_editor_name']) && $custom_fields['saswp_tech_article_editor_name'] != '') {
2426
- $input1['editor'] = array();
2427
- $input1['editor']['@type'] = 'Person';
2428
- $input1['editor']['name'] = $custom_fields['saswp_tech_article_editor_name'];
2429
- }
2430
- if(isset($custom_fields['saswp_tech_article_editor_honorific_suffix']) && $custom_fields['saswp_tech_article_editor_honorific_suffix'] != '') {
2431
- $input1['editor']['honorificSuffix'] = $custom_fields['saswp_tech_article_editor_honorific_suffix'];
2432
- }
2433
  if(isset($custom_fields['saswp_tech_article_author_type'])){
2434
  $input1['author']['@type'] = $custom_fields['saswp_tech_article_author_type'];
2435
  }
@@ -2445,6 +2681,34 @@ Class saswp_output_service{
2445
  if(isset($custom_fields['saswp_tech_article_author_description'])){
2446
  $input1['author']['description'] = $custom_fields['saswp_tech_article_author_description'];
2447
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2448
  if(isset($custom_fields['saswp_tech_article_knowsabout'])){
2449
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_tech_article_knowsabout']);
2450
  }
@@ -2480,7 +2744,9 @@ Class saswp_output_service{
2480
  break;
2481
 
2482
  case 'Course':
2483
-
 
 
2484
  if(isset($custom_fields['saswp_course_name'])){
2485
  $input1['name'] = $custom_fields['saswp_course_name'];
2486
  }
@@ -2532,7 +2798,9 @@ Class saswp_output_service{
2532
  break;
2533
 
2534
  case 'DiscussionForumPosting':
2535
-
 
 
2536
  if(isset($custom_fields['saswp_dfp_headline'])){
2537
  $input1['headline'] = $custom_fields['saswp_dfp_headline'];
2538
  }
@@ -2573,6 +2841,9 @@ Class saswp_output_service{
2573
  break;
2574
 
2575
  case 'Recipe':
 
 
 
2576
  if(isset($custom_fields['saswp_recipe_url'])){
2577
  $input1['url'] = saswp_validate_url($custom_fields['saswp_recipe_url']);
2578
  }
@@ -2741,9 +3012,9 @@ Class saswp_output_service{
2741
 
2742
  break;
2743
 
2744
- case 'Product':
2745
  if(isset($custom_fields['saswp_product_schema_id'])){
2746
- $input1['@id'] = $custom_fields['saswp_product_schema_id'];
2747
  }
2748
  if(isset($custom_fields['saswp_product_schema_url'])){
2749
  $input1['url'] = saswp_validate_url($custom_fields['saswp_product_schema_url']);
@@ -2850,6 +3121,9 @@ Class saswp_output_service{
2850
  break;
2851
 
2852
  case 'Car':
 
 
 
2853
  if(isset($custom_fields['saswp_car_schema_model'])){
2854
  $input1['model'] = $custom_fields['saswp_car_schema_model'];
2855
  }
@@ -2926,6 +3200,9 @@ Class saswp_output_service{
2926
  break;
2927
 
2928
  case 'Vehicle':
 
 
 
2929
  if(isset($custom_fields['saswp_vehicle_schema_model'])){
2930
  $input1['model'] = $custom_fields['saswp_vehicle_schema_model'];
2931
  }
@@ -3002,7 +3279,9 @@ Class saswp_output_service{
3002
  break;
3003
 
3004
  case 'RentAction':
3005
-
 
 
3006
  if(isset($custom_fields['saswp_rent_action_agent_name'])){
3007
  $input1['agent']['@type'] = 'Person';
3008
  $input1['agent']['name'] = $custom_fields['saswp_rent_action_agent_name'];
@@ -3018,7 +3297,10 @@ Class saswp_output_service{
3018
 
3019
  break;
3020
 
3021
- case 'RealEstateListing':
 
 
 
3022
  if(isset($custom_fields['saswp_real_estate_listing_date_posted'])){
3023
  $input1['datePosted'] = $custom_fields['saswp_real_estate_listing_date_posted'];
3024
  }
@@ -3071,7 +3353,9 @@ Class saswp_output_service{
3071
  break;
3072
 
3073
  case 'ApartmentComplex':
3074
-
 
 
3075
  if(isset($custom_fields['saswp_apartment_complex_name'])){
3076
  $input1['name'] = $custom_fields['saswp_apartment_complex_name'];
3077
  }
@@ -3115,7 +3399,9 @@ Class saswp_output_service{
3115
  break;
3116
 
3117
  case 'PsychologicalTreatment':
3118
-
 
 
3119
  if(isset($custom_fields['saswp_psychological_treatment_name'])){
3120
  $input1['name'] = $custom_fields['saswp_psychological_treatment_name'];
3121
  }
@@ -3156,6 +3442,9 @@ Class saswp_output_service{
3156
  break;
3157
 
3158
  case 'Service':
 
 
 
3159
  if(isset($custom_fields['saswp_service_schema_name'])){
3160
  $input1['name'] = $custom_fields['saswp_service_schema_name'];
3161
  }
@@ -3212,6 +3501,9 @@ Class saswp_output_service{
3212
  break;
3213
 
3214
  case 'TaxiService':
 
 
 
3215
 
3216
  if(isset($custom_fields['saswp_taxi_service_schema_name'])){
3217
  $input1['name'] = $custom_fields['saswp_taxi_service_schema_name'];
@@ -3261,7 +3553,9 @@ Class saswp_output_service{
3261
  break;
3262
 
3263
  case 'VideoObject':
3264
-
 
 
3265
  if(isset($custom_fields['saswp_video_object_url'])){
3266
  $input1['url'] = saswp_validate_url($custom_fields['saswp_video_object_url']);
3267
  }
@@ -3462,7 +3756,10 @@ Class saswp_output_service{
3462
  break;
3463
 
3464
  case 'TVSeries':
3465
-
 
 
 
3466
  if(isset($custom_fields['saswp_tvseries_schema_name'])){
3467
  $input1['name'] = $custom_fields['saswp_tvseries_schema_name'];
3468
  }
@@ -3483,6 +3780,9 @@ Class saswp_output_service{
3483
 
3484
  case 'TouristAttraction':
3485
 
 
 
 
3486
  if(isset($custom_fields['saswp_ta_schema_name'])){
3487
  $input1['name'] = $custom_fields['saswp_ta_schema_name'];
3488
  }
@@ -3520,6 +3820,9 @@ Class saswp_output_service{
3520
 
3521
  case 'FAQ':
3522
 
 
 
 
3523
  if(isset($custom_fields['saswp_faq_headline'])){
3524
  $input1['headline'] = $custom_fields['saswp_faq_headline'];
3525
  }
@@ -3553,6 +3856,9 @@ Class saswp_output_service{
3553
 
3554
  case 'TouristDestination':
3555
 
 
 
 
3556
  if(isset($custom_fields['saswp_td_schema_name'])){
3557
  $input1['name'] = $custom_fields['saswp_td_schema_name'];
3558
  }
@@ -3586,7 +3892,10 @@ Class saswp_output_service{
3586
  break;
3587
 
3588
  case 'LandmarksOrHistoricalBuildings':
3589
-
 
 
 
3590
  if(isset($custom_fields['saswp_lorh_schema_name'])){
3591
  $input1['name'] = $custom_fields['saswp_lorh_schema_name'];
3592
  }
@@ -3629,7 +3938,9 @@ Class saswp_output_service{
3629
  break;
3630
 
3631
  case 'HinduTemple':
3632
-
 
 
3633
  if(isset($custom_fields['saswp_hindutemple_schema_name'])){
3634
  $input1['name'] = $custom_fields['saswp_hindutemple_schema_name'];
3635
  }
@@ -3672,7 +3983,9 @@ Class saswp_output_service{
3672
  break;
3673
 
3674
  case 'BuddhistTemple':
3675
-
 
 
3676
  if(isset($custom_fields['saswp_buddhisttemple_schema_name'])){
3677
  $input1['name'] = $custom_fields['saswp_buddhisttemple_schema_name'];
3678
  }
@@ -3715,7 +4028,9 @@ Class saswp_output_service{
3715
  break;
3716
 
3717
  case 'Church':
3718
-
 
 
3719
  if(isset($custom_fields['saswp_church_schema_name'])){
3720
  $input1['name'] = $custom_fields['saswp_church_schema_name'];
3721
  }
@@ -3758,7 +4073,9 @@ Class saswp_output_service{
3758
  break;
3759
 
3760
  case 'Mosque':
3761
-
 
 
3762
  if(isset($custom_fields['saswp_mosque_schema_name'])){
3763
  $input1['name'] = $custom_fields['saswp_mosque_schema_name'];
3764
  }
@@ -3803,7 +4120,7 @@ Class saswp_output_service{
3803
  case 'Person':
3804
 
3805
  if(isset($custom_fields['saswp_person_schema_id'])){
3806
- $input1['@id'] = $custom_fields['saswp_person_schema_id'];
3807
  }
3808
  if(isset($custom_fields['saswp_person_schema_name'])){
3809
  $input1['name'] = $custom_fields['saswp_person_schema_name'];
@@ -3968,7 +4285,10 @@ Class saswp_output_service{
3968
  break;
3969
 
3970
  case 'Apartment':
3971
-
 
 
 
3972
  if(isset($custom_fields['saswp_apartment_schema_name'])){
3973
  $input1['name'] = $custom_fields['saswp_apartment_schema_name'];
3974
  }
@@ -4008,7 +4328,9 @@ Class saswp_output_service{
4008
  break;
4009
 
4010
  case 'House':
4011
-
 
 
4012
  if(isset($custom_fields['saswp_house_schema_name'])){
4013
  $input1['name'] = $custom_fields['saswp_house_schema_name'];
4014
  }
@@ -4057,7 +4379,9 @@ Class saswp_output_service{
4057
  break;
4058
 
4059
  case 'SingleFamilyResidence':
4060
-
 
 
4061
  if(isset($custom_fields['saswp_sfr_schema_name'])){
4062
  $input1['name'] = $custom_fields['saswp_sfr_schema_name'];
4063
  }
@@ -4110,6 +4434,9 @@ Class saswp_output_service{
4110
 
4111
  case 'VideoGame':
4112
 
 
 
 
4113
  if(isset($custom_fields['saswp_vg_schema_name'])){
4114
  $input1['name'] = $custom_fields['saswp_vg_schema_name'];
4115
  }
@@ -4186,8 +4513,11 @@ Class saswp_output_service{
4186
 
4187
  break;
4188
 
4189
- case 'JobPosting':
4190
-
 
 
 
4191
  if(isset($custom_fields['saswp_jobposting_schema_industry'])){
4192
  $input1['industry'] = $custom_fields['saswp_jobposting_schema_industry'];
4193
  }if(isset($custom_fields['saswp_jobposting_schema_occupational_category'])){
@@ -4205,6 +4535,9 @@ Class saswp_output_service{
4205
  if(isset($custom_fields['saswp_jobposting_schema_dateposted'])){
4206
  $input1['datePosted'] = $custom_fields['saswp_jobposting_schema_dateposted'];
4207
  }
 
 
 
4208
  if(isset($custom_fields['saswp_jobposting_schema_validthrough']) && $custom_fields['saswp_jobposting_schema_validthrough'] !='' ){
4209
  $input1['validThrough'] = $custom_fields['saswp_jobposting_schema_validthrough'];
4210
  }
@@ -4287,7 +4620,10 @@ Class saswp_output_service{
4287
  break;
4288
 
4289
  case 'Trip':
4290
-
 
 
 
4291
  if(isset($custom_fields['saswp_trip_schema_name'])){
4292
  $input1['name'] = $custom_fields['saswp_trip_schema_name'];
4293
  }
@@ -4304,7 +4640,9 @@ Class saswp_output_service{
4304
  break;
4305
 
4306
  case 'BoatTrip':
4307
-
 
 
4308
  if(isset($custom_fields['saswp_boat_trip_schema_name'])){
4309
  $input1['name'] = $custom_fields['saswp_boat_trip_schema_name'];
4310
  }
@@ -4333,7 +4671,9 @@ Class saswp_output_service{
4333
  break;
4334
 
4335
  case 'MedicalCondition':
4336
-
 
 
4337
  if(isset($custom_fields['saswp_mc_schema_name'])){
4338
  $input1['name'] = $custom_fields['saswp_mc_schema_name'];
4339
  }
@@ -5238,7 +5578,7 @@ Class saswp_output_service{
5238
  $input1 = array(
5239
  '@context' => saswp_context_url(),
5240
  '@type' => 'SpecialAnnouncement',
5241
- '@id' => trailingslashit(saswp_get_permalink()).'#SpecialAnnouncement',
5242
  'url' => saswp_get_permalink(),
5243
  'inLanguage' => get_bloginfo('language'),
5244
  'name' => saswp_get_the_title(),
@@ -5286,6 +5626,37 @@ Class saswp_output_service{
5286
  }
5287
 
5288
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5289
 
5290
  case 'Product':
5291
  case 'SoftwareApplication':
627
  switch ($schema_type) {
628
 
629
  case 'Book':
630
+ if(isset($custom_fields['saswp_book_id'])){
631
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_book_id'];
632
+ }
633
  if(isset($custom_fields['saswp_book_name'])){
634
  $input1['name'] = $custom_fields['saswp_book_name'];
635
  }
691
  break;
692
 
693
  case 'MusicPlaylist':
694
+ if(isset($custom_fields['saswp_music_playlist_id'])){
695
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_music_playlist_id'];
696
+ }
697
  if(isset($custom_fields['saswp_music_playlist_name'])){
698
  $input1['name'] = $custom_fields['saswp_music_playlist_name'];
699
  }
708
 
709
  case 'Movie':
710
 
711
+ if(isset($custom_fields['saswp_movie_id'])){
712
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_movie_id'];
713
+ }
714
  if(isset($custom_fields['saswp_movie_name'])){
715
  $input1['name'] = $custom_fields['saswp_movie_name'];
716
  }
744
  break;
745
 
746
  case 'CreativeWorkSeries':
747
+ if(isset($custom_fields['saswp_cws_schema_id'])){
748
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_cws_schema_id'];
749
+ }
750
  if(isset($custom_fields['saswp_cws_schema_image'])){
751
  $input1['image'] = $custom_fields['saswp_cws_schema_image'];
752
  }
799
 
800
  case 'MusicComposition':
801
 
802
+ if(isset($custom_fields['saswp_music_composition_id'])){
803
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_music_composition_id'];
804
+ }
805
  if(isset($custom_fields['saswp_music_composition_name'])){
806
  $input1['name'] = $custom_fields['saswp_music_composition_name'];
807
  }
832
  break;
833
 
834
  case 'PodcastEpisode':
835
+
836
+ if(isset($custom_fields['saswp_podcast_episode_id'])){
837
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_podcast_episode_id'];
838
+ }
839
  if(isset($custom_fields['saswp_podcast_episode_name'])){
840
  $input1['name'] = $custom_fields['saswp_podcast_episode_name'];
841
  }
879
  break;
880
 
881
  case 'PodcastSeason':
882
+ if(isset($custom_fields['saswp_podcast_season_id'])){
883
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_podcast_season_id'];
884
+ }
885
  if(isset($custom_fields['saswp_podcast_season_name'])){
886
  $input1['name'] = $custom_fields['saswp_podcast_season_name'];
887
  }
921
  break;
922
 
923
  case 'HotelRoom':
924
+
925
+ if(isset($custom_fields['saswp_hotelroom_hotel_id'])){
926
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_hotelroom_hotel_id'];
927
+ }
928
  if(isset($custom_fields['saswp_hotelroom_hotel_name'])){
929
  $input1['name'] = $custom_fields['saswp_hotelroom_hotel_name'];
930
  }
996
  break;
997
 
998
  case 'Audiobook':
999
+
1000
+ if(isset($custom_fields['saswp_audiobook_id'])){
1001
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_audiobook_id'];
1002
+ }
1003
  if(isset($custom_fields['saswp_audiobook_name'])){
1004
  $input1['name'] = $custom_fields['saswp_audiobook_name'];
1005
  }
1062
 
1063
  case 'EducationalOccupationalCredential':
1064
 
1065
+ if(isset($custom_fields['saswp_eoc_id'])){
1066
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_eoc_id'];
1067
+ }
1068
  if(isset($custom_fields['saswp_eoc_additional_type'])){
1069
  $input1['additionalType'] = $custom_fields['saswp_eoc_additional_type'];
1070
  }
1107
 
1108
  break;
1109
  case 'EducationalOccupationalProgram':
1110
+ if(isset($custom_fields['saswp_eop_id'])){
1111
+ $input1['name'] = trailingslashit(get_permalink()).$custom_fields['saswp_eop_id'];
1112
+ }
1113
  if(isset($custom_fields['saswp_eop_name'])){
1114
  $input1['name'] = $custom_fields['saswp_eop_name'];
1115
  }
1195
  break;
1196
 
1197
  case 'Project':
1198
+
1199
+ if(isset($custom_fields['saswp_project_id'])){
1200
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_project_id'];
1201
+ }
1202
  if(isset($custom_fields['saswp_project_name'])){
1203
  $input1['name'] = $custom_fields['saswp_project_name'];
1204
  }
1283
  break;
1284
 
1285
  case 'Organization':
1286
+ if(isset($custom_fields['saswp_organization_id'])){
1287
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_organization_id'];
1288
+ }
1289
  if(isset($custom_fields['saswp_organization_name'])){
1290
  $input1['name'] = $custom_fields['saswp_organization_name'];
1291
  }
1370
  break;
1371
 
1372
  case 'MusicAlbum':
1373
+ if(isset($custom_fields['saswp_music_album_id'])){
1374
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_music_album_id'];
1375
+ }
1376
  if(isset($custom_fields['saswp_music_album_name'])){
1377
  $input1['name'] = $custom_fields['saswp_music_album_name'];
1378
  }
1395
 
1396
  break;
1397
  case 'Article':
1398
+ if(isset($custom_fields['saswp_article_id'])){
1399
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_article_id'];
1400
+ }
1401
  if(isset($custom_fields['saswp_article_main_entity_of_page'])){
1402
  $input1['mainEntityOfPage'] = $custom_fields['saswp_article_main_entity_of_page'];
1403
  }
1431
  if(isset($custom_fields['saswp_article_date_modified'])){
1432
  $input1['dateModified'] = $custom_fields['saswp_article_date_modified'];
1433
  }
1434
+
1435
  if(isset($custom_fields['saswp_article_editor_name']) && $custom_fields['saswp_article_editor_name'] != '') {
1436
  $input1['editor'] = array();
1437
  $input1['editor']['@type'] = 'Person';
1438
  $input1['editor']['name'] = $custom_fields['saswp_article_editor_name'];
1439
  }
1440
+ if(isset($custom_fields['saswp_article_author_type'])){
1441
+ $input1['author']['@type'] = $custom_fields['saswp_article_author_type'];
1442
+ }
1443
  if(isset($custom_fields['saswp_article_editor_honorific_suffix']) && $custom_fields['saswp_article_editor_honorific_suffix'] != '') {
1444
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_article_editor_honorific_suffix'];
1445
+ }
1446
+ if(isset($custom_fields['saswp_article_editor_description'])){
1447
+ $input1['editor']['description'] = $custom_fields['saswp_article_editor_description'];
1448
+ }
1449
+ if(isset($custom_fields['saswp_article_editor_url'])){
1450
+ $input1['editor']['url'] = $custom_fields['saswp_article_editor_url'];
1451
+ }
1452
+ if(isset($custom_fields['saswp_article_editor_image'])){
1453
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_article_editor_image'];
1454
+ }
1455
+
1456
  if(isset($custom_fields['saswp_article_author_type'])){
1457
  $input1['author']['@type'] = $custom_fields['saswp_article_author_type'];
1458
  }
1468
  if(isset($custom_fields['saswp_article_author_url'])){
1469
  $input1['author']['url'] = $custom_fields['saswp_article_author_url'];
1470
  }
1471
+ if(isset($custom_fields['saswp_article_author_image'])){
1472
+ $input1['author']['Image']['url'] = $custom_fields['saswp_article_author_image'];
1473
+ }
1474
+ if(isset($custom_fields['saswp_article_author_jobtitle'])){
1475
+ $input1['author']['JobTitle'] = $custom_fields['saswp_article_author_jobtitle'];
1476
+ }
1477
  if(isset($custom_fields['saswp_article_organization_logo']) && isset($custom_fields['saswp_article_organization_name'])){
1478
  $input1['publisher']['@type'] = 'Organization';
1479
  $input1['publisher']['name'] = $custom_fields['saswp_article_organization_name'];
1480
  $input1['publisher']['logo'] = $custom_fields['saswp_article_organization_logo'];
1481
  }
 
1482
  if(isset($custom_fields['saswp_article_reviewedby_type'])){
1483
  $input1['reviewedBy']['@type'] = $custom_fields['saswp_article_reviewedby_type'];
1484
  }
1505
  }
1506
  if(isset($custom_fields['saswp_article_knowsabout'])){
1507
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_article_knowsabout']);
1508
+ }
1509
 
1510
  break;
1511
 
1512
+ case 'CreativeWork':
1513
+ if(isset($custom_fields['saswp_creativework_id'])){
1514
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_creativework_id'];
1515
+ }
1516
  if(isset($custom_fields['saswp_creativework_main_entity_of_page'])){
1517
  $input1['mainEntityOfPage'] = $custom_fields['saswp_creativework_main_entity_of_page'];
1518
  }
1546
  if(isset($custom_fields['saswp_creativework_date_modified'])){
1547
  $input1['dateModified'] = $custom_fields['saswp_creativework_date_modified'];
1548
  }
1549
+
1550
  if(isset($custom_fields['saswp_creativework_editor_name']) && $custom_fields['saswp_creativework_editor_name'] != '') {
1551
  $input1['editor'] = array();
1552
  $input1['editor']['@type'] = 'Person';
1553
  $input1['editor']['name'] = $custom_fields['saswp_creativework_editor_name'];
1554
+ }
1555
+ if(isset($custom_fields['saswp_creativework_editor_type'])){
1556
+ $input1['editor']['@type'] = $custom_fields['saswp_creativework_editor_type'];
1557
+ }
1558
  if(isset($custom_fields['saswp_creativework_editor_honorific_suffix']) && $custom_fields['saswp_creativework_editor_honorific_suffix'] != '') {
1559
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_creativework_editor_honorific_suffix'];
1560
+ }
1561
+ if(isset($custom_fields['saswp_creativework_editor_description'])){
1562
+ $input1['editor']['description'] = $custom_fields['saswp_creativework_editor_description'];
1563
+ }
1564
+ if(isset($custom_fields['saswp_creativework_editor_url'])){
1565
+ $input1['editor']['url'] = $custom_fields['saswp_creativework_editor_url'];
1566
+ }
1567
+ if(isset($custom_fields['saswp_creativework_editor_image'])){
1568
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_creativework_editor_image'];
1569
+ }
1570
+
1571
+
1572
  if(isset($custom_fields['saswp_creativework_author_type'])){
1573
  $input1['author']['@type'] = $custom_fields['saswp_creativework_author_type'];
1574
  }
1584
  if(isset($custom_fields['saswp_creativework_author_url'])){
1585
  $input1['author']['url'] = $custom_fields['saswp_creativework_author_url'];
1586
  }
1587
+ if(isset($custom_fields['saswp_creativework_author_jobtitle'])){
1588
+ $input1['author']['JobTitle'] = $custom_fields['saswp_creativework_author_jobtitle'];
1589
+ }
1590
+ if(isset($custom_fields['saswp_creativework_author_image'])){
1591
+ $input1['author']['Image']['url'] = $custom_fields['saswp_creativework_author_image'];
1592
+ }
1593
  if(isset($custom_fields['saswp_creativework_knowsabout'])){
1594
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_creativework_knowsabout']);
1595
  }
1625
  break;
1626
 
1627
  case 'VisualArtwork':
1628
+ if(isset($custom_fields['saswp_visualartwork_id'])){
1629
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_visualartwork_id'];
1630
+ }
1631
  if(isset($custom_fields['saswp_visualartwork_url'])){
1632
  $input1['url'] = saswp_validate_url($custom_fields['saswp_visualartwork_url']);
1633
  }
1683
 
1684
  break;
1685
  case 'Photograph':
1686
+ if(isset($custom_fields['saswp_photograph_id'])){
1687
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_photograph_id'];
1688
+ }
1689
  if(isset($custom_fields['saswp_photograph_image'])){
1690
  $input1['image'] = $custom_fields['saswp_photograph_image'];
1691
  }
1713
  if(isset($custom_fields['saswp_photograph_author_name'])){
1714
  $input1['author']['name'] = $custom_fields['saswp_photograph_author_name'];
1715
  }
1716
+ if(isset($custom_fields['saswp_photograph_author_jobtitle'])){
1717
+ $input1['author']['JobTitle'] = $custom_fields['saswp_photograph_author_jobtitle'];
1718
+ }
1719
  if(isset($custom_fields['saswp_photograph_knowsabout'])){
1720
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_photograph_knowsabout']);
1721
  }
1728
  if(isset($custom_fields['saswp_photograph_author_url'])){
1729
  $input1['author']['url'] = $custom_fields['saswp_photograph_author_url'];
1730
  }
1731
+ if(isset($custom_fields['saswp_photograph_author_image'])){
1732
+ $input1['author']['Image']['url'] = $custom_fields['saswp_photograph_author_image'];
1733
+ }
1734
+
1735
+ if(isset($custom_fields['saswp_photograph_editor_type'])){
1736
+ $input1['editor']['@type'] = $custom_fields['saswp_photograph_editor_type'];
1737
+ }
1738
+ if(isset($custom_fields['saswp_photograph_editor_name'])){
1739
+ $input1['editor']['name'] = $custom_fields['saswp_photograph_editor_name'];
1740
+ }
1741
+ if(isset($custom_fields['saswp_photograph_editor_honorific_suffix'])){
1742
+ $input1['editor']['honorificSuffix'] = $custom_fields['saswp_photograph_editor_honorific_suffix'];
1743
+ }
1744
+ if(isset($custom_fields['saswp_photograph_editor_description'])){
1745
+ $input1['editor']['description'] = $custom_fields['saswp_photograph_editor_description'];
1746
+ }
1747
+ if(isset($custom_fields['saswp_photograph_editor_url'])){
1748
+ $input1['editor']['url'] = $custom_fields['saswp_photograph_editor_url'];
1749
+ }
1750
+ if(isset($custom_fields['saswp_photograph_editor_image'])){
1751
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_photograph_editor_image'];
1752
+ }
1753
+
1754
+
1755
  if(isset($custom_fields['saswp_photograph_organization_logo']) && isset($custom_fields['saswp_photograph_organization_name'])){
1756
  $input1['publisher']['@type'] = 'Organization';
1757
  $input1['publisher']['name'] = $custom_fields['saswp_photograph_organization_name'];
1810
 
1811
  $input1['announcementLocation'] = $location;
1812
  }
1813
+ if(isset($custom_fields['saswp_special_announcement_id'])){
1814
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_special_announcement_id'];
1815
+ }
1816
  if(isset($custom_fields['saswp_special_announcement_category'])){
1817
  $input1['category'] = $custom_fields['saswp_special_announcement_category'];
1818
  }
1873
 
1874
  case 'HowTo':
1875
  if(isset($custom_fields['saswp_howto_schema_id'])){
1876
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_howto_schema_id'];
1877
  }
1878
  if(isset($custom_fields['saswp_howto_schema_name'])){
1879
  $input1['name'] = $custom_fields['saswp_howto_schema_name'];
1915
  case 'local_business':
1916
 
1917
  if(isset($custom_fields['local_business_id'])){
1918
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['local_business_id'];
1919
  }
1920
  if(isset($custom_fields['saswp_business_type'])){
1921
  $input1['@type'] = $custom_fields['saswp_business_type'];
2011
 
2012
  case 'Blogposting':
2013
  case 'BlogPosting':
2014
+ if(isset($custom_fields['saswp_blogposting_id'])){
2015
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_blogposting_id'];
2016
+ }
2017
  if(isset($custom_fields['saswp_blogposting_main_entity_of_page'])){
2018
  $input1['mainEntityOfPage'] = $custom_fields['saswp_blogposting_main_entity_of_page'];
2019
  }
2044
  if(isset($custom_fields['saswp_blogposting_date_modified'])){
2045
  $input1['dateModified'] = $custom_fields['saswp_blogposting_date_modified'];
2046
  }
2047
+
2048
  if(isset($custom_fields['saswp_blogposting_editor_name']) && $custom_fields['saswp_blogposting_editor_name'] != '') {
2049
  $input1['editor'] = array();
2050
  $input1['editor']['@type'] = 'Person';
2051
  $input1['editor']['name'] = $custom_fields['saswp_blogposting_editor_name'];
2052
  }
2053
+ if(isset($custom_fields['saswp_blogposting_editor_type'])){
2054
+ $input1['editor']['@type'] = $custom_fields['saswp_blogposting_editor_type'];
2055
+ }
2056
  if(isset($custom_fields['saswp_blogposting_editor_honorific_suffix']) && $custom_fields['saswp_blogposting_editor_honorific_suffix'] != '') {
2057
  $input1['editor']['honorificSuffix'] = $custom_fields['saswp_blogposting_editor_honorific_suffix'];
2058
  }
2059
+ if(isset($custom_fields['saswp_blogposting_editor_url'])){
2060
+ $input1['editor']['url'] = $custom_fields['saswp_blogposting_author_url'];
2061
+ }
2062
+ if(isset($custom_fields['saswp_blogposting_editor_description'])){
2063
+ $input1['editor']['description'] = $custom_fields['saswp_blogposting_editor_description'];
2064
+ }
2065
+ if(isset($custom_fields['saswp_blogposting_editor_image'])){
2066
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_blogposting_editor_image'];
2067
+ }
2068
+
2069
  if(isset($custom_fields['saswp_blogposting_author_type'])){
2070
  $input1['author']['@type'] = $custom_fields['saswp_blogposting_author_type'];
2071
  }
2081
  if(isset($custom_fields['saswp_blogposting_author_description'])){
2082
  $input1['author']['description'] = $custom_fields['saswp_blogposting_author_description'];
2083
  }
2084
+ if(isset($custom_fields['saswp_blogposting_author_jobtitle'])){
2085
+ $input1['author']['JobTitle'] = $custom_fields['saswp_blogposting_author_jobtitle'];
2086
+ }
2087
+ if(isset($custom_fields['saswp_blogposting_author_image'])){
2088
+ $input1['author']['Image']['url'] = $custom_fields['saswp_blogposting_author_image'];
2089
+ }
2090
 
2091
+
2092
  if(isset($custom_fields['saswp_blogposting_reviewedby_type'])){
2093
  $input1['reviewedBy']['@type'] = $custom_fields['saswp_blogposting_reviewedby_type'];
2094
  }
2104
  if(isset($custom_fields['saswp_blogposting_reviewedby_description'])){
2105
  $input1['reviewedBy']['description'] = $custom_fields['saswp_blogposting_reviewedby_description'];
2106
  }
2107
+
2108
 
2109
  if(isset($custom_fields['saswp_blogposting_knowsabout'])){
2110
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_blogposting_knowsabout']);
2128
 
2129
  case 'AudioObject':
2130
 
2131
+ if(isset($custom_fields['saswp_audio_schema_id'])){
2132
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_audio_schema_id'];
2133
+ }
2134
  if(isset($custom_fields['saswp_audio_schema_name'])){
2135
  $input1['name'] = $custom_fields['saswp_audio_schema_name'];
2136
  }
2170
 
2171
  case 'SoftwareApplication':
2172
 
2173
+ if(isset($custom_fields['saswp_software_schema_id'])){
2174
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_software_schema_id'];
2175
+ }
2176
  if(isset($custom_fields['saswp_software_schema_name'])){
2177
  $input1['name'] = $custom_fields['saswp_software_schema_name'];
2178
  }
2209
  break;
2210
 
2211
  case 'MobileApplication':
2212
+
2213
+ if(isset($custom_fields['saswp_mobile_app_id'])){
2214
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_mobile_app_id'];
2215
+ }
2216
  if(isset($custom_fields['saswp_mobile_app_schema_name'])){
2217
  $input1['name'] = $custom_fields['saswp_mobile_app_schema_name'];
2218
  }
2249
  break;
2250
 
2251
  case 'NewsArticle':
2252
+
2253
+ if(isset($custom_fields['saswp_newsarticle_id'])){
2254
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_newsarticle_id'];
2255
+ }
2256
  if(isset($custom_fields['saswp_newsarticle_main_entity_of_page'])){
2257
  $input1['mainEntityOfPage'] = $custom_fields['saswp_newsarticle_main_entity_of_page'];
2258
  }
2295
  if(isset($custom_fields['saswp_newsarticle_main_entity_id'])){
2296
  $input1['mainEntity']['@id'] = $custom_fields['saswp_newsarticle_main_entity_id'];
2297
  }
2298
+
2299
+
2300
  if(isset($custom_fields['saswp_newsarticle_editor_name']) && $custom_fields['saswp_newsarticle_editor_name'] != '') {
2301
  $input1['editor'] = array();
2302
  $input1['editor']['@type'] = 'Person';
2303
  $input1['editor']['name'] = $custom_fields['saswp_newsarticle_editor_name'];
2304
  }
2305
+ if(isset($custom_fields['saswp_newsarticle_editor_type'])){
2306
+ $input1['editor']['@type'] = $custom_fields['saswp_newsarticle_editor_type'];
2307
+ }
2308
+ if(isset($custom_fields['saswp_newsarticle_editor_honorific_suffix']) && $custom_fields['saswp_newsarticle_editor_honorific_suffix'] != '') {
2309
+ $input1['editor']['honorificSuffix'] = $custom_fields['saswp_newsarticle_editor_honorific_suffix'];
2310
+ }
2311
+ if(isset($custom_fields['saswp_newsarticle_editor_description'])){
2312
+ $input1['editor']['description'] = $custom_fields['saswp_newsarticle_editor_description'];
2313
+ }
2314
+ if(isset($custom_fields['saswp_newsarticle_editor_url'])){
2315
+ $input1['editor']['url'] = $custom_fields['saswp_newsarticle_editor_url'];
2316
+ }
2317
+ if(isset($custom_fields['saswp_newsarticle_editor_image'])){
2318
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_newsarticle_editor_image'];
2319
+ }
2320
+
2321
  if(isset($custom_fields['saswp_newsarticle_author_type'])){
2322
  $input1['author']['@type'] = $custom_fields['saswp_newsarticle_author_type'];
2323
  }
2324
  if(isset($custom_fields['saswp_newsarticle_author_name'])){
2325
  $input1['author']['name'] = $custom_fields['saswp_newsarticle_author_name'];
2326
  }
2327
+ if(isset($custom_fields['saswp_newsarticle_author_honorific_suffix']) && $custom_fields['saswp_newsarticle_author_honorific_suffix'] != '') {
2328
+ $input1['author']['honorificSuffix'] = $custom_fields['saswp_newsarticle_author_honorific_suffix'];
2329
+ }
2330
+ if(isset($custom_fields['saswp_newsarticle_author_description'])){
2331
+ $input1['author']['description'] = $custom_fields['saswp_newsarticle_author_description'];
2332
+ }
2333
  if(isset($custom_fields['saswp_newsarticle_author_url'])){
2334
  $input1['author']['url'] = saswp_validate_url($custom_fields['saswp_newsarticle_author_url']);
2335
  }
2336
  if(isset($custom_fields['saswp_newsarticle_author_image'])){
2337
  $input1['author']['Image']['url'] = $custom_fields['saswp_newsarticle_author_image'];
2338
+ }
2339
+
2340
  if(isset($custom_fields['saswp_newsarticle_organization_logo']) && isset($custom_fields['saswp_newsarticle_organization_name'])){
2341
  $input1['publisher']['@type'] = 'Organization';
2342
  $input1['publisher']['name'] = $custom_fields['saswp_newsarticle_organization_name'];
2346
  break;
2347
 
2348
  case 'WebPage':
2349
+ if(isset($custom_fields['saswp_webpage_id'])){
2350
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_webpage_id'];
2351
+ }
2352
  if(isset($custom_fields['saswp_webpage_name'])){
2353
  $input1['name'] = $custom_fields['saswp_webpage_name'];
2354
  }
2410
  }
2411
 
2412
  break;
2413
+
2414
+ case 'MedicalWebPage':
2415
+
2416
+ if(isset($custom_fields['saswp_medicalwebpage_name'])){
2417
+ $input1['name'] = $custom_fields['saswp_medicalwebpage_name'];
2418
+ }
2419
+ if(isset($custom_fields['saswp_medicalwebpage_url'])){
2420
+ $input1['url'] = saswp_validate_url($custom_fields['saswp_medicalwebpage_url']);
2421
+ }
2422
+ if(isset($custom_fields['saswp_medicalwebpage_description'])){
2423
+ $input1['description'] = wp_strip_all_tags(strip_shortcodes( $custom_fields['saswp_medicalwebpage_description'] )) ;
2424
+ }
2425
+
2426
+ if(isset($custom_fields['saswp_medicalwebpage_reviewed_by'])){
2427
+ $input1['reviewedBy'] = $custom_fields['saswp_medicalwebpage_reviewed_by'];
2428
+ }
2429
+
2430
+ if(isset($custom_fields['saswp_medicalwebpage_last_reviewed'])){
2431
+ $input1['lastReviewed'] = $custom_fields['saswp_medicalwebpage_last_reviewed'];
2432
+ }
2433
+ if(isset($custom_fields['saswp_medicalwebpage_date_created'])){
2434
+ $input1['dateCreated'] = $custom_fields['saswp_medicalwebpage_date_created'];
2435
+ }
2436
+
2437
+ if(isset($custom_fields['saswp_medicalwebpage_main_entity_of_page'])){
2438
+ $input1['mainEntity']['mainEntityOfPage'] = saswp_validate_url($custom_fields['saswp_medicalwebpage_main_entity_of_page']);
2439
+ }
2440
+ if(isset($custom_fields['saswp_medicalwebpage_image'])){
2441
+ $input1['mainEntity']['image'] = $custom_fields['saswp_medicalwebpage_image'];
2442
+ }
2443
+ if(isset($custom_fields['saswp_medicalwebpage_headline'])){
2444
+ $input1['mainEntity']['headline'] = $custom_fields['saswp_medicalwebpage_headline'];
2445
+ }
2446
+
2447
+ if(isset($custom_fields['saswp_medicalwebpage_section'])){
2448
+ $input1['mainEntity']['articleSection'] = $custom_fields['saswp_medicalwebpage_section'];
2449
+ }
2450
+ if(isset($custom_fields['saswp_medicalwebpage_keywords'])){
2451
+ $input1['mainEntity']['keywords'] = $custom_fields['saswp_medicalwebpage_keywords'];
2452
+ }
2453
+
2454
+ if(isset($custom_fields['saswp_medicalwebpage_date_published'])){
2455
+ $input1['mainEntity']['datePublished'] = $custom_fields['saswp_medicalwebpage_date_published'];
2456
+ }
2457
+ if(isset($custom_fields['saswp_medicalwebpage_date_modified'])){
2458
+ $input1['mainEntity']['dateModified'] = $custom_fields['saswp_medicalwebpage_date_modified'];
2459
+ }
2460
+ if(isset($custom_fields['saswp_medicalwebpage_author_type'])){
2461
+ $input1['mainEntity']['author']['@type'] = $custom_fields['saswp_medicalwebpage_author_type'];
2462
+ }
2463
+ if(isset($custom_fields['saswp_medicalwebpage_author_name'])){
2464
+ $input1['mainEntity']['author']['name'] = $custom_fields['saswp_medicalwebpage_author_name'];
2465
+ }
2466
+ if(isset($custom_fields['saswp_medicalwebpage_author_url'])){
2467
+ $input1['mainEntity']['author']['url'] = $custom_fields['saswp_medicalwebpage_author_url'];
2468
+ }
2469
+
2470
+ if(isset($custom_fields['saswp_medicalwebpage_organization_logo']) && isset($custom_fields['saswp_medicalwebpage_organization_name'])){
2471
+ $input1['mainEntity']['publisher']['@type'] = 'Organization';
2472
+ $input1['mainEntity']['publisher']['logo'] = $custom_fields['saswp_medicalwebpage_organization_logo'];
2473
+ $input1['mainEntity']['publisher']['name'] = $custom_fields['saswp_medicalwebpage_organization_name'];
2474
+ }
2475
+
2476
+ break;
2477
 
2478
  case 'Event':
2479
 
2481
  $vir_location = array();
2482
 
2483
  if(isset($custom_fields['saswp_event_schema_id'])){
2484
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_event_schema_id'];
2485
  }
2486
  if(isset($custom_fields['saswp_event_schema_name'])){
2487
  $input1['name'] = $custom_fields['saswp_event_schema_name'];
2626
 
2627
  break;
2628
 
2629
+ case 'TechArticle':
2630
+
2631
+ if(isset($custom_fields['saswp_tech_article_id'])){
2632
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_tech_article_id'];
2633
+ }
2634
  if(isset($custom_fields['saswp_tech_article_main_entity_of_page'])){
2635
  $input1['mainEntityOfPage'] = $custom_fields['saswp_tech_article_main_entity_of_page'];
2636
  }
2665
  if(isset($custom_fields['saswp_tech_article_date_modified'])){
2666
  $input1['dateModified'] = $custom_fields['saswp_tech_article_date_modified'];
2667
  }
2668
+
 
 
 
 
 
 
 
2669
  if(isset($custom_fields['saswp_tech_article_author_type'])){
2670
  $input1['author']['@type'] = $custom_fields['saswp_tech_article_author_type'];
2671
  }
2681
  if(isset($custom_fields['saswp_tech_article_author_description'])){
2682
  $input1['author']['description'] = $custom_fields['saswp_tech_article_author_description'];
2683
  }
2684
+ if(isset($custom_fields['saswp_tech_article_author_jobtitle'])){
2685
+ $input1['author']['JobTitle'] = $custom_fields['saswp_tech_article_author_jobtitle'];
2686
+ }
2687
+ if(isset($custom_fields['saswp_tech_article_author_image'])){
2688
+ $input1['author']['Image']['url'] = $custom_fields['saswp_tech_article_author_image'];
2689
+ }
2690
+
2691
+ if(isset($custom_fields['saswp_tech_article_editor_name']) && $custom_fields['saswp_tech_article_editor_name'] != '') {
2692
+ $input1['editor'] = array();
2693
+ $input1['editor']['@type'] = 'Person';
2694
+ $input1['editor']['name'] = $custom_fields['saswp_tech_article_editor_name'];
2695
+ }
2696
+ if(isset($custom_fields['saswp_tech_article_editor_type'])){
2697
+ $input1['editor']['@type'] = $custom_fields['saswp_tech_article_editor_type'];
2698
+ }
2699
+ if(isset($custom_fields['saswp_tech_article_editor_honorific_suffix']) && $custom_fields['saswp_tech_article_editor_honorific_suffix'] != '') {
2700
+ $input1['editor']['honorificSuffix'] = $custom_fields['saswp_tech_article_editor_honorific_suffix'];
2701
+ }
2702
+ if(isset($custom_fields['saswp_tech_article_editor_url'])){
2703
+ $input1['editor']['url'] = saswp_validate_url($custom_fields['saswp_tech_article_editor_url']);
2704
+ }
2705
+ if(isset($custom_fields['saswp_tech_article_editor_description'])){
2706
+ $input1['editor']['description'] = $custom_fields['saswp_tech_article_editor_description'];
2707
+ }
2708
+ if(isset($custom_fields['saswp_tech_article_editor_image'])){
2709
+ $input1['editor']['Image']['url'] = $custom_fields['saswp_tech_article_editor_image'];
2710
+ }
2711
+
2712
  if(isset($custom_fields['saswp_tech_article_knowsabout'])){
2713
  $input1['knowsAbout'] = explode(',', $custom_fields['saswp_tech_article_knowsabout']);
2714
  }
2744
  break;
2745
 
2746
  case 'Course':
2747
+ if(isset($custom_fields['saswp_course_id'])){
2748
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_course_id'];
2749
+ }
2750
  if(isset($custom_fields['saswp_course_name'])){
2751
  $input1['name'] = $custom_fields['saswp_course_name'];
2752
  }
2798
  break;
2799
 
2800
  case 'DiscussionForumPosting':
2801
+ if(isset($custom_fields['saswp_dfp_id'])){
2802
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_dfp_id'];
2803
+ }
2804
  if(isset($custom_fields['saswp_dfp_headline'])){
2805
  $input1['headline'] = $custom_fields['saswp_dfp_headline'];
2806
  }
2841
  break;
2842
 
2843
  case 'Recipe':
2844
+ if(isset($custom_fields['saswp_recipe_id'])){
2845
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_recipe_id'];
2846
+ }
2847
  if(isset($custom_fields['saswp_recipe_url'])){
2848
  $input1['url'] = saswp_validate_url($custom_fields['saswp_recipe_url']);
2849
  }
3012
 
3013
  break;
3014
 
3015
+ case 'Product':
3016
  if(isset($custom_fields['saswp_product_schema_id'])){
3017
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_product_schema_id'];
3018
  }
3019
  if(isset($custom_fields['saswp_product_schema_url'])){
3020
  $input1['url'] = saswp_validate_url($custom_fields['saswp_product_schema_url']);
3121
  break;
3122
 
3123
  case 'Car':
3124
+ if(isset($custom_fields['saswp_car_schema_id'])){
3125
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_car_schema_id'];
3126
+ }
3127
  if(isset($custom_fields['saswp_car_schema_model'])){
3128
  $input1['model'] = $custom_fields['saswp_car_schema_model'];
3129
  }
3200
  break;
3201
 
3202
  case 'Vehicle':
3203
+ if(isset($custom_fields['saswp_vehicle_schema_id'])){
3204
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_vehicle_schema_id'];
3205
+ }
3206
  if(isset($custom_fields['saswp_vehicle_schema_model'])){
3207
  $input1['model'] = $custom_fields['saswp_vehicle_schema_model'];
3208
  }
3279
  break;
3280
 
3281
  case 'RentAction':
3282
+ if(isset($custom_fields['saswp_rent_action_id'])){
3283
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_rent_action_id'];
3284
+ }
3285
  if(isset($custom_fields['saswp_rent_action_agent_name'])){
3286
  $input1['agent']['@type'] = 'Person';
3287
  $input1['agent']['name'] = $custom_fields['saswp_rent_action_agent_name'];
3297
 
3298
  break;
3299
 
3300
+ case 'RealEstateListing':
3301
+ if(isset($custom_fields['saswp_real_estate_listing_id'])){
3302
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_real_estate_listing_id'];
3303
+ }
3304
  if(isset($custom_fields['saswp_real_estate_listing_date_posted'])){
3305
  $input1['datePosted'] = $custom_fields['saswp_real_estate_listing_date_posted'];
3306
  }
3353
  break;
3354
 
3355
  case 'ApartmentComplex':
3356
+ if(isset($custom_fields['saswp_apartment_complex_id'])){
3357
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_apartment_complex_id'];
3358
+ }
3359
  if(isset($custom_fields['saswp_apartment_complex_name'])){
3360
  $input1['name'] = $custom_fields['saswp_apartment_complex_name'];
3361
  }
3399
  break;
3400
 
3401
  case 'PsychologicalTreatment':
3402
+ if(isset($custom_fields['saswp_psychological_treatment_id'])){
3403
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_psychological_treatment_id'];
3404
+ }
3405
  if(isset($custom_fields['saswp_psychological_treatment_name'])){
3406
  $input1['name'] = $custom_fields['saswp_psychological_treatment_name'];
3407
  }
3442
  break;
3443
 
3444
  case 'Service':
3445
+ if(isset($custom_fields['saswp_service_schema_id'])){
3446
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_service_schema_id'];
3447
+ }
3448
  if(isset($custom_fields['saswp_service_schema_name'])){
3449
  $input1['name'] = $custom_fields['saswp_service_schema_name'];
3450
  }
3501
  break;
3502
 
3503
  case 'TaxiService':
3504
+ if(isset($custom_fields['saswp_taxi_service_schema_id'])){
3505
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_taxi_service_schema_id'];
3506
+ }
3507
 
3508
  if(isset($custom_fields['saswp_taxi_service_schema_name'])){
3509
  $input1['name'] = $custom_fields['saswp_taxi_service_schema_name'];
3553
  break;
3554
 
3555
  case 'VideoObject':
3556
+ if(isset($custom_fields['saswp_video_object_id'])){
3557
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_video_object_id'];
3558
+ }
3559
  if(isset($custom_fields['saswp_video_object_url'])){
3560
  $input1['url'] = saswp_validate_url($custom_fields['saswp_video_object_url']);
3561
  }
3756
  break;
3757
 
3758
  case 'TVSeries':
3759
+
3760
+ if(isset($custom_fields['saswp_tvseries_schema_id'])){
3761
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_tvseries_schema_id'];
3762
+ }
3763
  if(isset($custom_fields['saswp_tvseries_schema_name'])){
3764
  $input1['name'] = $custom_fields['saswp_tvseries_schema_name'];
3765
  }
3780
 
3781
  case 'TouristAttraction':
3782
 
3783
+ if(isset($custom_fields['saswp_ta_schema_id'])){
3784
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_ta_schema_id'];
3785
+ }
3786
  if(isset($custom_fields['saswp_ta_schema_name'])){
3787
  $input1['name'] = $custom_fields['saswp_ta_schema_name'];
3788
  }
3820
 
3821
  case 'FAQ':
3822
 
3823
+ if(isset($custom_fields['saswp_faq_id'])){
3824
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_faq_id'];
3825
+ }
3826
  if(isset($custom_fields['saswp_faq_headline'])){
3827
  $input1['headline'] = $custom_fields['saswp_faq_headline'];
3828
  }
3856
 
3857
  case 'TouristDestination':
3858
 
3859
+ if(isset($custom_fields['saswp_td_schema_id'])){
3860
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_td_schema_id'];
3861
+ }
3862
  if(isset($custom_fields['saswp_td_schema_name'])){
3863
  $input1['name'] = $custom_fields['saswp_td_schema_name'];
3864
  }
3892
  break;
3893
 
3894
  case 'LandmarksOrHistoricalBuildings':
3895
+
3896
+ if(isset($custom_fields['saswp_lorh_schema_id'])){
3897
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_lorh_schema_id'];
3898
+ }
3899
  if(isset($custom_fields['saswp_lorh_schema_name'])){
3900
  $input1['name'] = $custom_fields['saswp_lorh_schema_name'];
3901
  }
3938
  break;
3939
 
3940
  case 'HinduTemple':
3941
+ if(isset($custom_fields['saswp_hindutemple_schema_id'])){
3942
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_hindutemple_schema_id'];
3943
+ }
3944
  if(isset($custom_fields['saswp_hindutemple_schema_name'])){
3945
  $input1['name'] = $custom_fields['saswp_hindutemple_schema_name'];
3946
  }
3983
  break;
3984
 
3985
  case 'BuddhistTemple':
3986
+ if(isset($custom_fields['saswp_buddhisttemple_schema_id'])){
3987
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_buddhisttemple_schema_id'];
3988
+ }
3989
  if(isset($custom_fields['saswp_buddhisttemple_schema_name'])){
3990
  $input1['name'] = $custom_fields['saswp_buddhisttemple_schema_name'];
3991
  }
4028
  break;
4029
 
4030
  case 'Church':
4031
+ if(isset($custom_fields['saswp_church_schema_id'])){
4032
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_church_schema_id'];
4033
+ }
4034
  if(isset($custom_fields['saswp_church_schema_name'])){
4035
  $input1['name'] = $custom_fields['saswp_church_schema_name'];
4036
  }
4073
  break;
4074
 
4075
  case 'Mosque':
4076
+ if(isset($custom_fields['saswp_mosque_schema_id'])){
4077
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_mosque_schema_id'];
4078
+ }
4079
  if(isset($custom_fields['saswp_mosque_schema_name'])){
4080
  $input1['name'] = $custom_fields['saswp_mosque_schema_name'];
4081
  }
4120
  case 'Person':
4121
 
4122
  if(isset($custom_fields['saswp_person_schema_id'])){
4123
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_person_schema_id'];
4124
  }
4125
  if(isset($custom_fields['saswp_person_schema_name'])){
4126
  $input1['name'] = $custom_fields['saswp_person_schema_name'];
4285
  break;
4286
 
4287
  case 'Apartment':
4288
+
4289
+ if(isset($custom_fields['saswp_apartment_schema_id'])){
4290
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_apartment_schema_id'];
4291
+ }
4292
  if(isset($custom_fields['saswp_apartment_schema_name'])){
4293
  $input1['name'] = $custom_fields['saswp_apartment_schema_name'];
4294
  }
4328
  break;
4329
 
4330
  case 'House':
4331
+ if(isset($custom_fields['saswp_house_schema_id'])){
4332
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_house_schema_id'];
4333
+ }
4334
  if(isset($custom_fields['saswp_house_schema_name'])){
4335
  $input1['name'] = $custom_fields['saswp_house_schema_name'];
4336
  }
4379
  break;
4380
 
4381
  case 'SingleFamilyResidence':
4382
+ if(isset($custom_fields['saswp_sfr_schema_id'])){
4383
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_sfr_schema_id'];
4384
+ }
4385
  if(isset($custom_fields['saswp_sfr_schema_name'])){
4386
  $input1['name'] = $custom_fields['saswp_sfr_schema_name'];
4387
  }
4434
 
4435
  case 'VideoGame':
4436
 
4437
+ if(isset($custom_fields['saswp_vg_schema_id'])){
4438
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_vg_schema_id'];
4439
+ }
4440
  if(isset($custom_fields['saswp_vg_schema_name'])){
4441
  $input1['name'] = $custom_fields['saswp_vg_schema_name'];
4442
  }
4513
 
4514
  break;
4515
 
4516
+ case 'JobPosting':
4517
+
4518
+ if(isset($custom_fields['saswp_jobposting_schema_id'])){
4519
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_jobposting_schema_id'];
4520
+ }
4521
  if(isset($custom_fields['saswp_jobposting_schema_industry'])){
4522
  $input1['industry'] = $custom_fields['saswp_jobposting_schema_industry'];
4523
  }if(isset($custom_fields['saswp_jobposting_schema_occupational_category'])){
4535
  if(isset($custom_fields['saswp_jobposting_schema_dateposted'])){
4536
  $input1['datePosted'] = $custom_fields['saswp_jobposting_schema_dateposted'];
4537
  }
4538
+ if(isset($custom_fields['saswp_jobposting_schema_direct_apply'])){
4539
+ $input1['directApply'] = $custom_fields['saswp_jobposting_schema_direct_apply'];
4540
+ }
4541
  if(isset($custom_fields['saswp_jobposting_schema_validthrough']) && $custom_fields['saswp_jobposting_schema_validthrough'] !='' ){
4542
  $input1['validThrough'] = $custom_fields['saswp_jobposting_schema_validthrough'];
4543
  }
4620
  break;
4621
 
4622
  case 'Trip':
4623
+
4624
+ if(isset($custom_fields['saswp_trip_schema_id'])){
4625
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_trip_schema_id'];
4626
+ }
4627
  if(isset($custom_fields['saswp_trip_schema_name'])){
4628
  $input1['name'] = $custom_fields['saswp_trip_schema_name'];
4629
  }
4640
  break;
4641
 
4642
  case 'BoatTrip':
4643
+ if(isset($custom_fields['saswp_boat_trip_schema_id'])){
4644
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_boat_trip_schema_id'];
4645
+ }
4646
  if(isset($custom_fields['saswp_boat_trip_schema_name'])){
4647
  $input1['name'] = $custom_fields['saswp_boat_trip_schema_name'];
4648
  }
4671
  break;
4672
 
4673
  case 'MedicalCondition':
4674
+ if(isset($custom_fields['saswp_mc_schema_id'])){
4675
+ $input1['@id'] = trailingslashit(get_permalink()).$custom_fields['saswp_mc_schema_id'];
4676
+ }
4677
  if(isset($custom_fields['saswp_mc_schema_name'])){
4678
  $input1['name'] = $custom_fields['saswp_mc_schema_name'];
4679
  }
5578
  $input1 = array(
5579
  '@context' => saswp_context_url(),
5580
  '@type' => 'SpecialAnnouncement',
5581
+ // '@id' => trailingslashit(saswp_get_permalink()).'#SpecialAnnouncement',
5582
  'url' => saswp_get_permalink(),
5583
  'inLanguage' => get_bloginfo('language'),
5584
  'name' => saswp_get_the_title(),
5626
  }
5627
 
5628
  break;
5629
+
5630
+ case 'MedicalWebPage':
5631
+
5632
+ $input1 = array(
5633
+ '@context' => saswp_context_url(),
5634
+ '@type' => 'MedicalWebPage' ,
5635
+ '@id' => trailingslashit(saswp_get_permalink()).'#medicalwebpage',
5636
+ 'name' => saswp_get_the_title(),
5637
+ 'url' => saswp_get_permalink(),
5638
+ 'lastReviewed' => esc_html($modified_date),
5639
+ 'dateCreated' => esc_html($date),
5640
+ 'inLanguage' => get_bloginfo('language'),
5641
+ 'description' => saswp_get_the_excerpt(),
5642
+ 'mainEntity' => array(
5643
+ '@type' => 'Article',
5644
+ 'mainEntityOfPage' => saswp_get_permalink(),
5645
+ 'headline' => saswp_get_the_title(),
5646
+ 'description' => saswp_get_the_excerpt(),
5647
+ 'keywords' => saswp_get_the_tags(),
5648
+ 'datePublished' => esc_html($date),
5649
+ 'dateModified' => esc_html($modified_date),
5650
+ 'author' => saswp_get_author_details()
5651
+ )
5652
+ );
5653
+
5654
+ if(!empty($publisher)){
5655
+ $input1['reviewedBy'] = $publisher['publisher'];
5656
+ $input1['mainEntity']['publisher'] = $publisher['publisher'];
5657
+ }
5658
+
5659
+ break;
5660
 
5661
  case 'Product':
5662
  case 'SoftwareApplication':
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO,
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6.20
7
- Stable tag: 1.9.102.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,26 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  = 1.9.102.1 (14 Oct 2022) =
125
 
126
  * Fixed: Video object schema is automatically adding without even have videos in them #1754
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6.20
7
+ Stable tag: 1.9.103
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.9.103 (21 Oct 2022) =
125
+
126
+ * Added: Add the JobTitle field in author schema. #1685
127
+ * Added: Need to Include parent category if only child category is marked. #1703
128
+ * Added: Need to make functionality by default disable FAQ on all pages. #1681
129
+ * Fixed: Option to modify "Author image URL" schema output manually in blogposting schema #1669
130
+ * Fixed: Need to make the feature for enabling/disabling the image for the review collection. #1621
131
+ * Added: Need to add option to edit ID in schema #1609
132
+ * Fixed: Need to add the Attribute "DirectApply" to the JobPosting-schema #1599
133
+ * Fixed: Add the option to edit editor URL manually in article schema. #1690
134
+ * Added: Video object schema is automatically adding without even have videos in them #1754
135
+ * Fixed: Getting PHP error messages after the update #1756
136
+ * Fixed: Conflict issue with web stories(user specific issue) #1746
137
+ * Added: Need to add additional fields in Article Schema #1752
138
+ * Added: Add the "Heading-Tag" selection option in How To block schema. #1712
139
+ * Fixed: Missing fields in the video object schema. #1758
140
+ * Fixed: facing issue on Google Either \"contentUrl\" or \"embedUrl\" should be specified This is a non-critical issue. #1759
141
+ * Added: PHP Notice: Undefined index #1760
142
+ * Added: Warnings are appearing in the article schema if it is modified. #1762
143
+
144
  = 1.9.102.1 (14 Oct 2022) =
145
 
146
  * Fixed: Video object schema is automatically adding without even have videos in them #1754
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.102.1
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.102.1');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -27,7 +27,7 @@ define('SASWP_PLUGIN_URL', plugin_dir_url( __FILE__ ));
27
  define('SASWP_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('SASWP_EDD_STORE_URL', 'http://structured-data-for-wp.com/');
29
 
30
- // define('SASWP_ENVIRONMENT', 'development');
31
  define('SASWP_ENVIRONMENT', 'production');
32
  // including the output file
33
  require_once SASWP_DIR_NAME .'/core/queries_function.php';
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.103
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.103');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
27
  define('SASWP_PLUGIN_BASENAME', plugin_basename(__FILE__));
28
  define('SASWP_EDD_STORE_URL', 'http://structured-data-for-wp.com/');
29
 
30
+ //define('SASWP_ENVIRONMENT', 'development');
31
  define('SASWP_ENVIRONMENT', 'production');
32
  // including the output file
33
  require_once SASWP_DIR_NAME .'/core/queries_function.php';
view/schema_type.php CHANGED
@@ -168,6 +168,7 @@ function saswp_schema_type_meta_box_callback( $post) {
168
  $event_type = get_post_meta($post->ID, 'saswp_event_type', true);
169
  $speakable = get_post_meta($post->ID, 'saswp_enable_speakable_schema', true);
170
  $enable_videoobject= get_post_meta($post->ID, 'saswp_enable_videoobject', true);
 
171
  $item_list_enable = get_post_meta($post->ID, 'saswp_enable_itemlist_schema', true);
172
  $item_list_tags = get_post_meta($post->ID, 'saswp_item_list_tags', true);
173
  $item_list_custom = get_post_meta($post->ID, 'saswp_item_list_custom', true);
@@ -179,7 +180,14 @@ function saswp_schema_type_meta_box_callback( $post) {
179
  $style_business_type = 'style="display:none"';
180
  $style_business_name = 'style="display:none"';
181
 
182
- }
 
 
 
 
 
 
 
183
  }
184
  $item_list_item = array(
185
  'Article' => 'Article',
@@ -299,7 +307,19 @@ function saswp_schema_type_meta_box_callback( $post) {
299
  ?>
300
  </select>
301
  </td>
302
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
303
  <tr class="saswp-business-type-tr" <?php echo $style_business_type; ?>>
304
  <td>
305
  <?php echo saswp_t_string('Business Type' ); ?>
@@ -1288,7 +1308,11 @@ function saswp_schema_type_add_meta_box_save( $post_id ) {
1288
  }else{
1289
  delete_post_meta( $post_id, 'saswp_enable_videoobject');
1290
  }
1291
-
 
 
 
 
1292
  if(isset($_POST['saswp_enable_append_reviews'])){
1293
  update_post_meta( $post_id, 'saswp_enable_append_reviews', intval($_POST['saswp_enable_append_reviews']) );
1294
  }else{
168
  $event_type = get_post_meta($post->ID, 'saswp_event_type', true);
169
  $speakable = get_post_meta($post->ID, 'saswp_enable_speakable_schema', true);
170
  $enable_videoobject= get_post_meta($post->ID, 'saswp_enable_videoobject', true);
171
+ $enable_faqsobject = get_post_meta($post->ID, 'saswp_enable_faqsobject', true);
172
  $item_list_enable = get_post_meta($post->ID, 'saswp_enable_itemlist_schema', true);
173
  $item_list_tags = get_post_meta($post->ID, 'saswp_item_list_tags', true);
174
  $item_list_custom = get_post_meta($post->ID, 'saswp_item_list_custom', true);
180
  $style_business_type = 'style="display:none"';
181
  $style_business_name = 'style="display:none"';
182
 
183
+ }
184
+
185
+ if($schema_type === 'FAQ'){
186
+ $style_faq_type = 'style="display:block;display: table-row;"';
187
+ }else {
188
+ $style_faq_type = 'style="display:none"';
189
+ }
190
+
191
  }
192
  $item_list_item = array(
193
  'Article' => 'Article',
307
  ?>
308
  </select>
309
  </td>
310
+ </tr>
311
+
312
+ <!-- faqs Schema type ends here -->
313
+ <tr class="saswp-faqs-checkbox-field-tr" <?php echo $style_faq_type; ?>>
314
+ <td>
315
+ <label for="saswp-enable-faqs-markup"><?php echo saswp_t_string( 'Add FaqObject markup, Only if Faqs are available on the post' );?></label>
316
+ </td>
317
+ <td>
318
+ <input id="saswp-enable-faqs-markup" class="saswp-enable-faqs-markup-class" type="checkbox" name="saswp_enable_faqsobject" value="1" <?php if(isset($enable_faqsobject) && $enable_faqsobject == 1){echo 'checked'; }else{ echo ''; } ?> >
319
+ </td>
320
+ </tr>
321
+ <!-- faqs Schema type ends here -->
322
+
323
  <tr class="saswp-business-type-tr" <?php echo $style_business_type; ?>>
324
  <td>
325
  <?php echo saswp_t_string('Business Type' ); ?>
1308
  }else{
1309
  delete_post_meta( $post_id, 'saswp_enable_videoobject');
1310
  }
1311
+ if(isset($_POST['saswp_enable_faqsobject'])){
1312
+ update_post_meta( $post_id, 'saswp_enable_faqsobject', intval($_POST['saswp_enable_faqsobject']) );
1313
+ }else{
1314
+ delete_post_meta( $post_id, 'saswp_enable_faqsobject');
1315
+ }
1316
  if(isset($_POST['saswp_enable_append_reviews'])){
1317
  update_post_meta( $post_id, 'saswp_enable_append_reviews', intval($_POST['saswp_enable_append_reviews']) );
1318
  }else{