Version Description
(13 Oct 2022) =
- Fixed: Video object schema issues in GSC after the update #1750
- Fixed: While activating the Schema plugin, there is a fatal error #1751
- Fixed: load more shouldn't be there in zero null condition #1736
- Added: Need to change the word Json-LD from Video Object Schema. #1741
- Fixed: How To schema UI alignment issue #1744
- Fixed: Conflict issue with web stories(user specific issue) #1746
- Added: Need to add additional fields in Article Schema #1752
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.102 |
Comparing to | |
See all releases |
Code changes from version 1.9.101.1 to 1.9.102
- admin_section/common-function.php +67 -60
- admin_section/css/main-style.css +1 -0
- admin_section/css/main-style.min.css +1 -1
- admin_section/js/main-script.js +4 -0
- admin_section/js/main-script.min.js +1 -1
- core/array-list/schema-properties.php +358 -6
- modules/gutenberg/assets/blocks/howto.js +26 -18
- modules/gutenberg/assets/css/howto.css +20 -0
- modules/gutenberg/includes/class-gutenberg.php +9 -0
- output/function.php +68 -12
- output/gutenberg.php +34 -0
- output/markup.php +114 -1
- output/output.php +94 -87
- output/service.php +172 -5
- readme.txt +12 -1
- structured-data-for-wp.php +2 -2
- view/schema_type.php +35 -21
admin_section/common-function.php
CHANGED
@@ -3536,17 +3536,19 @@ function saswp_get_video_metadata($content = ''){
|
|
3536 |
}
|
3537 |
|
3538 |
$metadata['video_url'] = $vurl;
|
3539 |
-
$
|
3540 |
-
|
3541 |
-
|
3542 |
-
|
|
|
|
|
|
|
3543 |
|
3544 |
preg_match_all( '/src\=\"(.*?)youtu\.be(.*?)\"/s', $content, $youtubematches, PREG_SET_ORDER );
|
3545 |
-
|
3546 |
-
if($youtubematches){
|
3547 |
-
|
3548 |
foreach($youtubematches as $match){
|
3549 |
-
|
3550 |
$vurl = $match[1].'youtu.be'.$match[2];
|
3551 |
$metadata = array();
|
3552 |
|
@@ -3560,79 +3562,84 @@ function saswp_get_video_metadata($content = ''){
|
|
3560 |
$metadata['title'] = $video_meta['title'];
|
3561 |
$metadata['description'] = $video_meta['description'];
|
3562 |
$metadata['viewCount'] = $video_meta['viewCount'];
|
3563 |
-
|
3564 |
$metadata['duration'] = $video_meta['duration'];
|
3565 |
-
|
3566 |
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3567 |
-
|
3568 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3569 |
}
|
3570 |
|
3571 |
}else{
|
3572 |
-
|
3573 |
$rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
|
3574 |
$result = @wp_remote_get($rulr);
|
3575 |
$metadata = json_decode(wp_remote_retrieve_body($result),true);
|
3576 |
-
|
3577 |
}
|
3578 |
|
3579 |
$metadata['video_url'] = $vurl;
|
3580 |
$response[] = $metadata;
|
3581 |
-
|
3582 |
-
|
3583 |
-
|
3584 |
-
}
|
3585 |
|
3586 |
|
3587 |
if(function_exists('has_block')){
|
3588 |
-
|
3589 |
-
|
3590 |
-
|
3591 |
-
}
|
3592 |
-
|
3593 |
-
if( has_block('core/embed') ){
|
3594 |
-
$attributes = saswp_get_gutenberg_block_data('core/embed');
|
3595 |
-
}
|
3596 |
-
|
3597 |
-
if(isset($attributes['attrs']['url'])) {
|
3598 |
-
|
3599 |
-
$vurl = $attributes['attrs']['url'];
|
3600 |
-
$metadata = array();
|
3601 |
-
if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
|
3602 |
-
|
3603 |
-
$vid = saswp_get_youtube_vid($vurl);
|
3604 |
-
|
3605 |
-
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3606 |
-
|
3607 |
-
if(!empty($video_meta)){
|
3608 |
-
$metadata['title'] = $video_meta['title'];
|
3609 |
-
$metadata['description'] = $video_meta['description'];
|
3610 |
-
$metadata['viewCount'] = $video_meta['viewCount'];
|
3611 |
-
|
3612 |
-
$metadata['duration'] = $video_meta['duration'];
|
3613 |
-
|
3614 |
-
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3615 |
|
3616 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3617 |
}
|
3618 |
-
|
3619 |
-
}else{
|
3620 |
-
|
3621 |
-
$rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
|
3622 |
-
$result = @wp_remote_get($rulr);
|
3623 |
-
$metadata = json_decode(wp_remote_retrieve_body($result),true);
|
3624 |
-
|
3625 |
-
}
|
3626 |
-
|
3627 |
-
$metadata['video_url'] = $vurl;
|
3628 |
-
$response[0] = $metadata;
|
3629 |
-
|
3630 |
}
|
|
|
3631 |
|
3632 |
-
|
3633 |
-
|
3634 |
-
return $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3635 |
}
|
|
|
3636 |
|
3637 |
function saswp_get_thumbnail(){
|
3638 |
|
3536 |
}
|
3537 |
|
3538 |
$metadata['video_url'] = $vurl;
|
3539 |
+
if(strpos($metadata['video_url'],'type') == false){
|
3540 |
+
$response[] = $metadata;
|
3541 |
+
}
|
3542 |
+
|
3543 |
+
} /* end for */
|
3544 |
+
|
3545 |
+
}/* end if */
|
3546 |
|
3547 |
preg_match_all( '/src\=\"(.*?)youtu\.be(.*?)\"/s', $content, $youtubematches, PREG_SET_ORDER );
|
3548 |
+
|
3549 |
+
if(!empty($youtubematches)){
|
3550 |
+
|
3551 |
foreach($youtubematches as $match){
|
|
|
3552 |
$vurl = $match[1].'youtu.be'.$match[2];
|
3553 |
$metadata = array();
|
3554 |
|
3562 |
$metadata['title'] = $video_meta['title'];
|
3563 |
$metadata['description'] = $video_meta['description'];
|
3564 |
$metadata['viewCount'] = $video_meta['viewCount'];
|
|
|
3565 |
$metadata['duration'] = $video_meta['duration'];
|
|
|
3566 |
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
|
|
3567 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3568 |
}
|
3569 |
|
3570 |
}else{
|
|
|
3571 |
$rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
|
3572 |
$result = @wp_remote_get($rulr);
|
3573 |
$metadata = json_decode(wp_remote_retrieve_body($result),true);
|
|
|
3574 |
}
|
3575 |
|
3576 |
$metadata['video_url'] = $vurl;
|
3577 |
$response[] = $metadata;
|
3578 |
+
}/* end for */
|
3579 |
+
} /* end if */
|
|
|
|
|
3580 |
|
3581 |
|
3582 |
if(function_exists('has_block')){
|
3583 |
+
if( has_block('core-embed/youtube') ){
|
3584 |
+
$attributes = saswp_get_gutenberg_multiple_block_data('core-embed/youtube');
|
3585 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3586 |
|
3587 |
+
if( has_block('core/embed') ){
|
3588 |
+
$attributes = saswp_get_gutenberg_multiple_block_data('core/embed');
|
3589 |
+
}
|
3590 |
+
|
3591 |
+
if(!empty($attributes)){
|
3592 |
+
$temp_aray = array();
|
3593 |
+
foreach($attributes as $match){
|
3594 |
+
if(!empty($match['attrs']['url'])){
|
3595 |
+
$vurl = $match['attrs']['url'];
|
3596 |
+
|
3597 |
+
$metadata = array();
|
3598 |
+
if(isset($sd_data['saswp-youtube-api']) && $sd_data['saswp-youtube-api'] != ''){
|
3599 |
+
$vid = saswp_get_youtube_vid($vurl);
|
3600 |
+
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3601 |
+
if(!empty($video_meta)){
|
3602 |
+
$metadata['title'] = $video_meta['title'];
|
3603 |
+
$metadata['description'] = $video_meta['description'];
|
3604 |
+
$metadata['viewCount'] = $video_meta['viewCount'];
|
3605 |
+
$metadata['duration'] = $video_meta['duration'];
|
3606 |
+
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3607 |
+
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3608 |
+
}
|
3609 |
+
}else{
|
3610 |
+
$rulr = 'https://www.youtube.com/oembed?url='.esc_attr($vurl).'&format=json';
|
3611 |
+
$result = @wp_remote_get($rulr);
|
3612 |
+
$metadata = json_decode(wp_remote_retrieve_body($result),true);
|
3613 |
+
}
|
3614 |
+
$metadata['video_url'] = $vurl;
|
3615 |
+
$response[] = $metadata;
|
3616 |
+
|
3617 |
+
}
|
3618 |
}
|
3619 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3620 |
}
|
3621 |
+
}
|
3622 |
|
3623 |
+
$result = unique_multidim_array($response,'thumbnail_url');
|
3624 |
+
|
3625 |
+
return $result;
|
3626 |
+
}
|
3627 |
+
|
3628 |
+
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 |
+
|
3643 |
|
3644 |
function saswp_get_thumbnail(){
|
3645 |
|
admin_section/css/main-style.css
CHANGED
@@ -3046,6 +3046,7 @@ span.inactive_status_reviews{padding-left:5px;font-weight:400}
|
|
3046 |
label.saswp-sts-txt.active {font-weight: 400;}
|
3047 |
span.inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
|
3048 |
.saswp-sts-active-main.reviews_addon span.saswp-license-tenure {display: none;}
|
|
|
3049 |
/* Offer Banner Starts Here */
|
3050 |
/* .saswp-offer-banner{
|
3051 |
background: #ca4a1f;
|
3046 |
label.saswp-sts-txt.active {font-weight: 400;}
|
3047 |
span.inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
|
3048 |
.saswp-sts-active-main.reviews_addon span.saswp-license-tenure {display: none;}
|
3049 |
+
.saswp-load-more-rv{cursor:pointer;}
|
3050 |
/* Offer Banner Starts Here */
|
3051 |
/* .saswp-offer-banner{
|
3052 |
background: #ca4a1f;
|
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-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_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}
|
admin_section/js/main-script.js
CHANGED
@@ -235,6 +235,10 @@ jQuery(document).ready(function($){
|
|
235 |
});
|
236 |
$(".saswp-add-rv-automatic-list[data-type="+data_type+"]").append(html);
|
237 |
}
|
|
|
|
|
|
|
|
|
238 |
|
239 |
if(response['message']){
|
240 |
|
235 |
});
|
236 |
$(".saswp-add-rv-automatic-list[data-type="+data_type+"]").append(html);
|
237 |
}
|
238 |
+
|
239 |
+
if(paged >= 10){
|
240 |
+
$(".saswp-load-more-rv[data-type="+data_type+"]").addClass('saswp_hide');
|
241 |
+
}
|
242 |
|
243 |
if(response['message']){
|
244 |
|
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;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:t/10+1,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>'+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="1"]" 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="your key" secret_key="your key"]" 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_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="1"]" 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="your key" secret_key="your key"]" 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)});
|
core/array-list/schema-properties.php
CHANGED
@@ -407,6 +407,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
407 |
'type' => 'text',
|
408 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
409 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
array(
|
411 |
'label' => 'Author Description',
|
412 |
'id' => 'saswp_blogposting_author_description_'.$schema_id,
|
@@ -419,12 +427,55 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
419 |
'type' => 'text',
|
420 |
'default' => $author_url
|
421 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
array(
|
423 |
'label' => 'Editor Name',
|
424 |
'id' => 'saswp_blogposting_editor_name_'.$schema_id,
|
425 |
'type' => 'text',
|
426 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
427 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
array(
|
429 |
'label' => 'Organization Name',
|
430 |
'id' => 'saswp_blogposting_organization_name_'.$schema_id,
|
@@ -437,6 +488,32 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
437 |
'type' => 'media',
|
438 |
'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url'] : ''
|
439 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
array(
|
441 |
'label' => 'Speakable',
|
442 |
'id' => 'saswp_blogposting_speakable_'.$schema_id,
|
@@ -742,7 +819,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
742 |
|
743 |
case 'Photograph':
|
744 |
$meta_field = array(
|
745 |
-
|
746 |
'label' => 'Headline',
|
747 |
'id' => 'saswp_photograph_headline_'.$schema_id,
|
748 |
'type' => 'text',
|
@@ -798,6 +875,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
798 |
'type' => 'text',
|
799 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
800 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
801 |
array(
|
802 |
'label' => 'Author Description',
|
803 |
'id' => 'saswp_photograph_author_description_'.$schema_id,
|
@@ -810,6 +895,41 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
810 |
'type' => 'text',
|
811 |
'default' => $author_url
|
812 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
813 |
array(
|
814 |
'label' => 'Organization Name',
|
815 |
'id' => 'saswp_photograph_organization_name_'.$schema_id,
|
@@ -821,7 +941,33 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
821 |
'id' => 'saswp_photograph_organization_logo_'.$schema_id,
|
822 |
'type' => 'media',
|
823 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
824 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
825 |
);
|
826 |
break;
|
827 |
|
@@ -907,6 +1053,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
907 |
'type' => 'text',
|
908 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
909 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
array(
|
911 |
'label' => 'Author Description',
|
912 |
'id' => 'saswp_article_author_description_'.$schema_id,
|
@@ -919,11 +1073,54 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
919 |
'type' => 'text',
|
920 |
'default' => $author_url
|
921 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
922 |
array(
|
923 |
'label' => 'Editor Name',
|
924 |
'id' => 'saswp_article_editor_name_'.$schema_id,
|
925 |
'type' => 'text',
|
926 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
927 |
),
|
928 |
array(
|
929 |
'label' => 'Organization Name',
|
@@ -937,12 +1134,31 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
937 |
'type' => 'media',
|
938 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
939 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
940 |
array(
|
941 |
'label' => 'Speakable',
|
942 |
'id' => 'saswp_article_speakable_'.$schema_id,
|
943 |
'type' => 'checkbox',
|
944 |
-
|
945 |
-
)
|
946 |
);
|
947 |
break;
|
948 |
|
@@ -1377,6 +1593,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1377 |
'type' => 'text',
|
1378 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1379 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1380 |
array(
|
1381 |
'label' => 'Author Description',
|
1382 |
'id' => 'saswp_creativework_author_description_'.$schema_id,
|
@@ -1389,12 +1613,55 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1389 |
'type' => 'text',
|
1390 |
'default' => $author_url
|
1391 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1392 |
array(
|
1393 |
'label' => 'Editor Name',
|
1394 |
'id' => 'saswp_creativework_editor_name_'.$schema_id,
|
1395 |
'type' => 'text',
|
1396 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1397 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1398 |
array(
|
1399 |
'label' => 'Organization Name',
|
1400 |
'id' => 'saswp_creativework_organization_name_'.$schema_id,
|
@@ -1406,7 +1673,24 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1406 |
'id' => 'saswp_creativework_organization_logo_'.$schema_id,
|
1407 |
'type' => 'media',
|
1408 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
1409 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1410 |
);
|
1411 |
break;
|
1412 |
|
@@ -1906,6 +2190,14 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1906 |
'type' => 'text',
|
1907 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1908 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1909 |
array(
|
1910 |
'label' => 'Author Description',
|
1911 |
'id' => 'saswp_tech_article_author_description_'.$schema_id,
|
@@ -1917,13 +2209,56 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1917 |
'id' => 'saswp_tech_article_author_url_'.$schema_id,
|
1918 |
'type' => 'text',
|
1919 |
'default' => $author_url
|
1920 |
-
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1921 |
array(
|
1922 |
'label' => 'Editor Name',
|
1923 |
'id' => 'saswp_tech_article_editor_name_'.$schema_id,
|
1924 |
'type' => 'text',
|
1925 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1926 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1927 |
array(
|
1928 |
'label' => 'Organization Name',
|
1929 |
'id' => 'saswp_tech_article_organization_name_'.$schema_id,
|
@@ -1936,6 +2271,23 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1936 |
'type' => 'media',
|
1937 |
'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url']:''
|
1938 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1939 |
array(
|
1940 |
'label' => 'Speakable',
|
1941 |
'id' => 'saswp_tech_article_speakable_'.$schema_id,
|
407 |
'type' => 'text',
|
408 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
409 |
),
|
410 |
+
array(
|
411 |
+
'label' => 'Author HonorificSuffix',
|
412 |
+
'id' => 'saswp_blogposting_author_honorific_suffix_'.$schema_id,
|
413 |
+
'type' => 'text',
|
414 |
+
'attributes' => array(
|
415 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
416 |
+
),
|
417 |
+
),
|
418 |
array(
|
419 |
'label' => 'Author Description',
|
420 |
'id' => 'saswp_blogposting_author_description_'.$schema_id,
|
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 |
+
)
|
438 |
+
),
|
439 |
+
array(
|
440 |
+
'label' => 'ReviewedBy Name',
|
441 |
+
'id' => 'saswp_blogposting_reviewedby_name_'.$schema_id,
|
442 |
+
'type' => 'text',
|
443 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
444 |
+
),
|
445 |
+
array(
|
446 |
+
'label' => 'ReviewedBy HonorificSuffix',
|
447 |
+
'id' => 'saswp_blogposting_reviewedby_honorific_suffix_'.$schema_id,
|
448 |
+
'type' => 'text',
|
449 |
+
'attributes' => array(
|
450 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
451 |
+
),
|
452 |
+
),
|
453 |
+
array(
|
454 |
+
'label' => 'ReviewedBy Description',
|
455 |
+
'id' => 'saswp_blogposting_reviewedby_description_'.$schema_id,
|
456 |
+
'type' => 'textarea',
|
457 |
+
'default' => $author_desc
|
458 |
+
),
|
459 |
+
array(
|
460 |
+
'label' => 'ReviewedBy URL',
|
461 |
+
'id' => 'saswp_blogposting_reviewedby_url_'.$schema_id,
|
462 |
+
'type' => 'text',
|
463 |
+
'default' => $author_url
|
464 |
+
),
|
465 |
array(
|
466 |
'label' => 'Editor Name',
|
467 |
'id' => 'saswp_blogposting_editor_name_'.$schema_id,
|
468 |
'type' => 'text',
|
469 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
470 |
),
|
471 |
+
array(
|
472 |
+
'label' => 'Editor HonorificSuffix',
|
473 |
+
'id' => 'saswp_blogposting_editor_honorific_suffix_'.$schema_id,
|
474 |
+
'type' => 'text',
|
475 |
+
'attributes' => array(
|
476 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
477 |
+
),
|
478 |
+
),
|
479 |
array(
|
480 |
'label' => 'Organization Name',
|
481 |
'id' => 'saswp_blogposting_organization_name_'.$schema_id,
|
488 |
'type' => 'media',
|
489 |
'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url'] : ''
|
490 |
),
|
491 |
+
array(
|
492 |
+
'label' => 'AlumniOf',
|
493 |
+
'id' => 'saswp_blogposting_alumniof_'.$schema_id,
|
494 |
+
'type' => 'textarea',
|
495 |
+
'default' => '',
|
496 |
+
'note' => 'Note: If There are more than one AlumniOf, Separate AlumniOf list by comma ( , )',
|
497 |
+
'attributes' => array(
|
498 |
+
'placeholder' => 'eg: City University of New York-Herbert H. Lehman College, Southern New Hampshire University'
|
499 |
+
),
|
500 |
+
),
|
501 |
+
array(
|
502 |
+
'label' => 'knowsAbout',
|
503 |
+
'id' => 'saswp_blogposting_knowsabout_'.$schema_id,
|
504 |
+
'type' => 'textarea',
|
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,
|
819 |
|
820 |
case 'Photograph':
|
821 |
$meta_field = array(
|
822 |
+
array(
|
823 |
'label' => 'Headline',
|
824 |
'id' => 'saswp_photograph_headline_'.$schema_id,
|
825 |
'type' => 'text',
|
875 |
'type' => 'text',
|
876 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
877 |
),
|
878 |
+
array(
|
879 |
+
'label' => 'Author HonorificSuffix',
|
880 |
+
'id' => 'saswp_photograph_author_honorific_suffix_'.$schema_id,
|
881 |
+
'type' => 'text',
|
882 |
+
'attributes' => array(
|
883 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
884 |
+
),
|
885 |
+
),
|
886 |
array(
|
887 |
'label' => 'Author Description',
|
888 |
'id' => 'saswp_photograph_author_description_'.$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 |
+
)
|
906 |
+
),
|
907 |
+
array(
|
908 |
+
'label' => 'ReviewedBy Name',
|
909 |
+
'id' => 'saswp_photograph_reviewedby_name_'.$schema_id,
|
910 |
+
'type' => 'text',
|
911 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
912 |
+
),
|
913 |
+
array(
|
914 |
+
'label' => 'ReviewedBy HonorificSuffix',
|
915 |
+
'id' => 'saswp_photograph_reviewedby_honorific_suffix_'.$schema_id,
|
916 |
+
'type' => 'text',
|
917 |
+
'attributes' => array(
|
918 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
919 |
+
),
|
920 |
+
),
|
921 |
+
array(
|
922 |
+
'label' => 'ReviewedBy Description',
|
923 |
+
'id' => 'saswp_photograph_reviewedby_description_'.$schema_id,
|
924 |
+
'type' => 'textarea',
|
925 |
+
'default' => $author_desc
|
926 |
+
),
|
927 |
+
array(
|
928 |
+
'label' => 'ReviewedBy URL',
|
929 |
+
'id' => 'saswp_photograph_reviewedby_url_'.$schema_id,
|
930 |
+
'type' => 'text',
|
931 |
+
'default' => $author_url
|
932 |
+
),
|
933 |
array(
|
934 |
'label' => 'Organization Name',
|
935 |
'id' => 'saswp_photograph_organization_name_'.$schema_id,
|
941 |
'id' => 'saswp_photograph_organization_logo_'.$schema_id,
|
942 |
'type' => 'media',
|
943 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
944 |
+
),
|
945 |
+
array(
|
946 |
+
'label' => 'AlumniOf',
|
947 |
+
'id' => 'saswp_photograph_alumniof_'.$schema_id,
|
948 |
+
'type' => 'textarea',
|
949 |
+
'default' => '',
|
950 |
+
'note' => 'Note: If There are more than one AlumniOf, Separate AlumniOf list by comma ( , )',
|
951 |
+
'attributes' => array(
|
952 |
+
'placeholder' => 'eg: City University of New York-Herbert H. Lehman College, Southern New Hampshire University'
|
953 |
+
),
|
954 |
+
),
|
955 |
+
array(
|
956 |
+
'label' => 'knowsAbout',
|
957 |
+
'id' => 'saswp_photograph_knowsabout_'.$schema_id,
|
958 |
+
'type' => 'textarea',
|
959 |
+
'default' => '',
|
960 |
+
'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )'
|
961 |
+
),
|
962 |
+
array(
|
963 |
+
'label' => 'ReviewedBy',
|
964 |
+
'id' => 'saswp_photograph_reviewedby_'.$schema_id,
|
965 |
+
'type' => 'select',
|
966 |
+
'options' => array(
|
967 |
+
'Person' => 'Person',
|
968 |
+
'Organization' => 'Organization',
|
969 |
+
)
|
970 |
+
)
|
971 |
);
|
972 |
break;
|
973 |
|
1053 |
'type' => 'text',
|
1054 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1055 |
),
|
1056 |
+
array(
|
1057 |
+
'label' => 'Author HonorificSuffix',
|
1058 |
+
'id' => 'saswp_article_author_honorific_suffix_'.$schema_id,
|
1059 |
+
'type' => 'text',
|
1060 |
+
'attributes' => array(
|
1061 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1062 |
+
),
|
1063 |
+
),
|
1064 |
array(
|
1065 |
'label' => 'Author Description',
|
1066 |
'id' => 'saswp_article_author_description_'.$schema_id,
|
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 |
+
)
|
1084 |
+
),
|
1085 |
+
array(
|
1086 |
+
'label' => 'ReviewedBy Name',
|
1087 |
+
'id' => 'saswp_article_reviewedby_name_'.$schema_id,
|
1088 |
+
'type' => 'text',
|
1089 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1090 |
+
),
|
1091 |
+
array(
|
1092 |
+
'label' => 'ReviewedBy HonorificSuffix',
|
1093 |
+
'id' => 'saswp_article_reviewedby_honorific_suffix_'.$schema_id,
|
1094 |
+
'type' => 'text',
|
1095 |
+
'attributes' => array(
|
1096 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1097 |
+
),
|
1098 |
+
),
|
1099 |
+
array(
|
1100 |
+
'label' => 'ReviewedBy Description',
|
1101 |
+
'id' => 'saswp_article_reviewedby_description_'.$schema_id,
|
1102 |
+
'type' => 'textarea',
|
1103 |
+
'default' => $author_desc
|
1104 |
+
),
|
1105 |
+
array(
|
1106 |
+
'label' => 'ReviewedBy URL',
|
1107 |
+
'id' => 'saswp_article_reviewedby_url_'.$schema_id,
|
1108 |
+
'type' => 'text',
|
1109 |
+
'default' => $author_url
|
1110 |
+
),
|
1111 |
array(
|
1112 |
'label' => 'Editor Name',
|
1113 |
'id' => 'saswp_article_editor_name_'.$schema_id,
|
1114 |
'type' => 'text',
|
1115 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1116 |
+
),
|
1117 |
+
array(
|
1118 |
+
'label' => 'Editor HonorificSuffix',
|
1119 |
+
'id' => 'saswp_article_editor_honorific_suffix_'.$schema_id,
|
1120 |
+
'type' => 'text',
|
1121 |
+
'attributes' => array(
|
1122 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1123 |
+
),
|
1124 |
),
|
1125 |
array(
|
1126 |
'label' => 'Organization Name',
|
1134 |
'type' => 'media',
|
1135 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
1136 |
),
|
1137 |
+
array(
|
1138 |
+
'label' => 'AlumniOf',
|
1139 |
+
'id' => 'saswp_article_alumniof_'.$schema_id,
|
1140 |
+
'type' => 'textarea',
|
1141 |
+
'default' => '',
|
1142 |
+
'note' => 'Note: If There are more than one AlumniOf, Separate AlumniOf list by comma ( , )',
|
1143 |
+
'attributes' => array(
|
1144 |
+
'placeholder' => 'eg: City University of New York-Herbert H. Lehman College, Southern New Hampshire University'
|
1145 |
+
),
|
1146 |
+
),
|
1147 |
+
array(
|
1148 |
+
'label' => 'knowsAbout',
|
1149 |
+
'id' => 'saswp_article_knowsabout_'.$schema_id,
|
1150 |
+
'type' => 'textarea',
|
1151 |
+
'default' => '',
|
1152 |
+
'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )',
|
1153 |
+
'attributes' => array(
|
1154 |
+
'placeholder' => 'eg: Financial services, negotiation, CRM, Project Management, Mentoring, Learning & Development'
|
1155 |
+
),
|
1156 |
+
),
|
1157 |
array(
|
1158 |
'label' => 'Speakable',
|
1159 |
'id' => 'saswp_article_speakable_'.$schema_id,
|
1160 |
'type' => 'checkbox',
|
1161 |
+
)
|
|
|
1162 |
);
|
1163 |
break;
|
1164 |
|
1593 |
'type' => 'text',
|
1594 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1595 |
),
|
1596 |
+
array(
|
1597 |
+
'label' => 'Author HonorificSuffix',
|
1598 |
+
'id' => 'saswp_creativework_author_honorific_suffix_'.$schema_id,
|
1599 |
+
'type' => 'text',
|
1600 |
+
'attributes' => array(
|
1601 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1602 |
+
),
|
1603 |
+
),
|
1604 |
array(
|
1605 |
'label' => 'Author Description',
|
1606 |
'id' => 'saswp_creativework_author_description_'.$schema_id,
|
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 |
+
)
|
1624 |
+
),
|
1625 |
+
array(
|
1626 |
+
'label' => 'ReviewedBy Name',
|
1627 |
+
'id' => 'saswp_creativework_reviewedby_name_'.$schema_id,
|
1628 |
+
'type' => 'text',
|
1629 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1630 |
+
),
|
1631 |
+
array(
|
1632 |
+
'label' => 'ReviewedBy HonorificSuffix',
|
1633 |
+
'id' => 'saswp_creativework_reviewedby_honorific_suffix_'.$schema_id,
|
1634 |
+
'type' => 'text',
|
1635 |
+
'attributes' => array(
|
1636 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1637 |
+
),
|
1638 |
+
),
|
1639 |
+
array(
|
1640 |
+
'label' => 'ReviewedBy Description',
|
1641 |
+
'id' => 'saswp_creativework_reviewedby_description_'.$schema_id,
|
1642 |
+
'type' => 'textarea',
|
1643 |
+
'default' => $author_desc
|
1644 |
+
),
|
1645 |
+
array(
|
1646 |
+
'label' => 'ReviewedBy URL',
|
1647 |
+
'id' => 'saswp_creativework_reviewedby_url_'.$schema_id,
|
1648 |
+
'type' => 'text',
|
1649 |
+
'default' => $author_url
|
1650 |
+
),
|
1651 |
array(
|
1652 |
'label' => 'Editor Name',
|
1653 |
'id' => 'saswp_creativework_editor_name_'.$schema_id,
|
1654 |
'type' => 'text',
|
1655 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
1656 |
),
|
1657 |
+
array(
|
1658 |
+
'label' => 'Editor HonorificSuffix',
|
1659 |
+
'id' => 'saswp_creativework_editor_honorific_suffix_'.$schema_id,
|
1660 |
+
'type' => 'text',
|
1661 |
+
'attributes' => array(
|
1662 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
1663 |
+
),
|
1664 |
+
),
|
1665 |
array(
|
1666 |
'label' => 'Organization Name',
|
1667 |
'id' => 'saswp_creativework_organization_name_'.$schema_id,
|
1673 |
'id' => 'saswp_creativework_organization_logo_'.$schema_id,
|
1674 |
'type' => 'media',
|
1675 |
'default' => isset($sd_data['sd_logo']['url']) ? $sd_data['sd_logo']['url']:''
|
1676 |
+
),
|
1677 |
+
array(
|
1678 |
+
'label' => 'AlumniOf',
|
1679 |
+
'id' => 'saswp_creativework_alumniof_'.$schema_id,
|
1680 |
+
'type' => 'textarea',
|
1681 |
+
'default' => '',
|
1682 |
+
'note' => 'Note: If There are more than one AlumniOf, Separate AlumniOf list by comma ( , )',
|
1683 |
+
'attributes' => array(
|
1684 |
+
'placeholder' => 'eg: City University of New York-Herbert H. Lehman College, Southern New Hampshire University'
|
1685 |
+
),
|
1686 |
+
),
|
1687 |
+
array(
|
1688 |
+
'label' => 'knowsAbout',
|
1689 |
+
'id' => 'saswp_creativework_knowsabout_'.$schema_id,
|
1690 |
+
'type' => 'textarea',
|
1691 |
+
'default' => '',
|
1692 |
+
'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )'
|
1693 |
+
)
|
1694 |
);
|
1695 |
break;
|
1696 |
|
2190 |
'type' => 'text',
|
2191 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
2192 |
),
|
2193 |
+
array(
|
2194 |
+
'label' => 'Author HonorificSuffix',
|
2195 |
+
'id' => 'saswp_tech_article_author_honorific_suffix_'.$schema_id,
|
2196 |
+
'type' => 'text',
|
2197 |
+
'attributes' => array(
|
2198 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
2199 |
+
),
|
2200 |
+
),
|
2201 |
array(
|
2202 |
'label' => 'Author Description',
|
2203 |
'id' => 'saswp_tech_article_author_description_'.$schema_id,
|
2209 |
'id' => 'saswp_tech_article_author_url_'.$schema_id,
|
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 |
+
)
|
2221 |
+
),
|
2222 |
+
array(
|
2223 |
+
'label' => 'ReviewedBy Name',
|
2224 |
+
'id' => 'saswp_tech_article_reviewedby_name_'.$schema_id,
|
2225 |
+
'type' => 'text',
|
2226 |
+
'default' => is_object($current_user) ? $current_user->display_name : ''
|
2227 |
+
),
|
2228 |
+
array(
|
2229 |
+
'label' => 'ReviewedBy HonorificSuffix',
|
2230 |
+
'id' => 'saswp_tech_article_reviewedby_honorific_suffix_'.$schema_id,
|
2231 |
+
'type' => 'text',
|
2232 |
+
'attributes' => array(
|
2233 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
2234 |
+
),
|
2235 |
+
),
|
2236 |
+
array(
|
2237 |
+
'label' => 'ReviewedBy Description',
|
2238 |
+
'id' => 'saswp_tech_article_reviewedby_description_'.$schema_id,
|
2239 |
+
'type' => 'textarea',
|
2240 |
+
'default' => $author_desc
|
2241 |
+
),
|
2242 |
+
array(
|
2243 |
+
'label' => 'ReviewedBy URL',
|
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,
|
2251 |
'type' => 'text',
|
2252 |
'default' => is_object($current_user) ? $current_user->display_name : ''
|
2253 |
),
|
2254 |
+
array(
|
2255 |
+
'label' => 'Editor HonorificSuffix',
|
2256 |
+
'id' => 'saswp_tech_article_editor_honorific_suffix_'.$schema_id,
|
2257 |
+
'type' => 'text',
|
2258 |
+
'attributes' => array(
|
2259 |
+
'placeholder' => 'eg: M.D. /PhD/MSCSW.'
|
2260 |
+
),
|
2261 |
+
),
|
2262 |
array(
|
2263 |
'label' => 'Organization Name',
|
2264 |
'id' => 'saswp_tech_article_organization_name_'.$schema_id,
|
2271 |
'type' => 'media',
|
2272 |
'default' => isset($sd_data['sd_logo']) ? $sd_data['sd_logo']['url']:''
|
2273 |
),
|
2274 |
+
array(
|
2275 |
+
'label' => 'AlumniOf',
|
2276 |
+
'id' => 'saswp_tech_article_alumniof_'.$schema_id,
|
2277 |
+
'type' => 'textarea',
|
2278 |
+
'default' => '',
|
2279 |
+
'note' => 'Note: If There are more than one AlumniOf, Separate AlumniOf list by comma ( , )',
|
2280 |
+
'attributes' => array(
|
2281 |
+
'placeholder' => 'eg: City University of New York-Herbert H. Lehman College, Southern New Hampshire University'
|
2282 |
+
),
|
2283 |
+
),
|
2284 |
+
array(
|
2285 |
+
'label' => 'knowsAbout',
|
2286 |
+
'id' => 'saswp_tech_article_knowsabout_'.$schema_id,
|
2287 |
+
'type' => 'textarea',
|
2288 |
+
'default' => '',
|
2289 |
+
'note' => 'Note: If There are more than one knows about, Separate knows about list by comma ( , )'
|
2290 |
+
),
|
2291 |
array(
|
2292 |
'label' => 'Speakable',
|
2293 |
'id' => 'saswp_tech_article_speakable_'.$schema_id,
|
modules/gutenberg/assets/blocks/howto.js
CHANGED
@@ -503,18 +503,18 @@
|
|
503 |
break;
|
504 |
|
505 |
case 'large':
|
506 |
-
|
507 |
if(image_type != null){
|
508 |
-
height = item.image_sizes.
|
509 |
-
width = item.image_sizes.
|
510 |
}
|
511 |
|
512 |
-
image_url = item.image_sizes.
|
513 |
-
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.
|
514 |
break;
|
515 |
|
516 |
case 'medium':
|
517 |
-
|
518 |
if(image_type != null){
|
519 |
height = item.image_sizes.medium.height;
|
520 |
width = item.image_sizes.medium.width;
|
@@ -536,10 +536,18 @@
|
|
536 |
break;
|
537 |
|
538 |
case 'right':
|
539 |
-
image = '<img class="alignright" style="height:
|
|
|
|
|
|
|
|
|
540 |
break;
|
541 |
-
|
542 |
-
image = '<img class="alignleft" style="height:
|
|
|
|
|
|
|
|
|
543 |
break;
|
544 |
|
545 |
default:
|
@@ -547,10 +555,10 @@
|
|
547 |
}
|
548 |
|
549 |
var newObject = Object.assign({}, item, {
|
550 |
-
image_size:
|
551 |
image_height: height,
|
552 |
-
|
553 |
-
|
554 |
imageUrl : image_url,
|
555 |
description : saswpReplaceImage(item.description, image)
|
556 |
});
|
@@ -579,9 +587,9 @@
|
|
579 |
{ label: 'Thumbnail', value: 'thumbnail' },
|
580 |
] ,
|
581 |
onChange: function(value){
|
582 |
-
|
583 |
-
var newObject = saswpImageUpdate(value, item, '', '', 'image_type',
|
584 |
-
|
585 |
return props.setAttributes({
|
586 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
587 |
return itemFilter.index != item.index;
|
@@ -599,9 +607,9 @@
|
|
599 |
|
600 |
],
|
601 |
onChange: function(value){
|
602 |
-
|
603 |
-
var newObject = saswpImageUpdate(value, item, '', '', 'image_type');
|
604 |
-
|
605 |
return props.setAttributes({
|
606 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
607 |
return itemFilter.index != item.index;
|
503 |
break;
|
504 |
|
505 |
case 'large':
|
506 |
+
// console.log(item.image_sizes.full.height);
|
507 |
if(image_type != null){
|
508 |
+
height = item.image_sizes.full.height;
|
509 |
+
width = item.image_sizes.full.width;
|
510 |
}
|
511 |
|
512 |
+
image_url = item.image_sizes.full.url;
|
513 |
+
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
514 |
break;
|
515 |
|
516 |
case 'medium':
|
517 |
+
|
518 |
if(image_type != null){
|
519 |
height = item.image_sizes.medium.height;
|
520 |
width = item.image_sizes.medium.width;
|
536 |
break;
|
537 |
|
538 |
case 'right':
|
539 |
+
image = '<img class="alignright" style="height:300px; width: 300px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
540 |
+
image_align = value;
|
541 |
+
value = item.image_size;
|
542 |
+
height = item.image_height;
|
543 |
+
width = item.image_width;
|
544 |
break;
|
545 |
+
case 'left':
|
546 |
+
image = '<img class="alignleft" style="height:300px; width: 300px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
547 |
+
image_align = value;
|
548 |
+
value = item.image_size;
|
549 |
+
height = item.image_height;
|
550 |
+
width = item.image_width;
|
551 |
break;
|
552 |
|
553 |
default:
|
555 |
}
|
556 |
|
557 |
var newObject = Object.assign({}, item, {
|
558 |
+
image_size: value,
|
559 |
image_height: height,
|
560 |
+
image_width: width,
|
561 |
+
image_align: image_align,
|
562 |
imageUrl : image_url,
|
563 |
description : saswpReplaceImage(item.description, image)
|
564 |
});
|
587 |
{ label: 'Thumbnail', value: 'thumbnail' },
|
588 |
] ,
|
589 |
onChange: function(value){
|
590 |
+
|
591 |
+
var newObject = saswpImageUpdate(value, item, '', '', 'image_type',item.image_size);
|
592 |
+
console.log("image_size "+ item.image_size);
|
593 |
return props.setAttributes({
|
594 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
595 |
return itemFilter.index != item.index;
|
607 |
|
608 |
],
|
609 |
onChange: function(value){
|
610 |
+
// alert(value);
|
611 |
+
var newObject = saswpImageUpdate(value, item, '', '', 'image_type',item.image_align);
|
612 |
+
console.log("image_align "+ item.image_align);
|
613 |
return props.setAttributes({
|
614 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
615 |
return itemFilter.index != item.index;
|
modules/gutenberg/assets/css/howto.css
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
To change this license header, choose License Headers in Project Properties.
|
3 |
+
To change this template file, choose Tools | Templates
|
4 |
+
and open the template in the editor.
|
5 |
+
*/
|
6 |
+
/*
|
7 |
+
Created on : Oct 13, 2022, 11:02:00 AM
|
8 |
+
Author : acer
|
9 |
+
*/
|
10 |
+
|
11 |
+
.alignright {
|
12 |
+
float: right;
|
13 |
+
margin-top: 35px;
|
14 |
+
}
|
15 |
+
|
16 |
+
.alignleft {
|
17 |
+
float: left;
|
18 |
+
padding-right: 15px;
|
19 |
+
margin-top: 35px;
|
20 |
+
}
|
modules/gutenberg/includes/class-gutenberg.php
CHANGED
@@ -258,6 +258,15 @@ class SASWP_Gutenberg {
|
|
258 |
);
|
259 |
|
260 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
}
|
263 |
|
258 |
);
|
259 |
|
260 |
}
|
261 |
+
if(isset($parse_blocks['blockName']) && $parse_blocks['blockName'] === 'saswp/how-to-block'){
|
262 |
+
|
263 |
+
wp_enqueue_style(
|
264 |
+
'saswp-g-howto-css',
|
265 |
+
SASWP_PLUGIN_URL . '/modules/gutenberg/assets/css/howto.css',
|
266 |
+
array()
|
267 |
+
);
|
268 |
+
|
269 |
+
}
|
270 |
|
271 |
}
|
272 |
|
output/function.php
CHANGED
@@ -1731,7 +1731,9 @@ function saswp_global_option(){
|
|
1731 |
|
1732 |
if( ( saswp_remove_warnings($sd_data, 'saswp-for-wordpress', 'saswp_string') ==''
|
1733 |
|| 1 == saswp_remove_warnings($sd_data, 'saswp-for-wordpress', 'saswp_string') && saswp_non_amp() )
|
1734 |
-
|| ( 1 == saswp_remove_warnings($sd_data, 'saswp-for-amp', 'saswp_string') && !saswp_non_amp() )
|
|
|
|
|
1735 |
|
1736 |
return true;
|
1737 |
|
@@ -3397,30 +3399,84 @@ function saswp_default_video_object_scjhema(){
|
|
3397 |
}
|
3398 |
|
3399 |
$video_links = saswp_get_video_metadata();
|
3400 |
-
$input1['@context'] = saswp_context_url();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3401 |
if(count($video_links) > 1){
|
3402 |
$input1['@type'] = "ItemList";
|
3403 |
|
3404 |
foreach($video_links as $vkey => $v_val){
|
3405 |
-
$
|
3406 |
'@type' => 'VideoObject',
|
3407 |
"position" => $vkey+1,
|
3408 |
-
'name' => $v_val['title'],
|
3409 |
-
'
|
3410 |
-
'
|
3411 |
-
'
|
3412 |
-
'duration' => $v_val['duration'],
|
3413 |
-
'contentUrl' => $v_val['video_url'],
|
3414 |
-
'embedUrl' => $v_val['video_url'],
|
3415 |
'interactionStatistic' => array(
|
3416 |
"@type" => "InteractionCounter",
|
3417 |
"interactionType" => array("@type" => "WatchAction" ),
|
3418 |
-
"userInteractionCount" => $v_val['viewCount']
|
3419 |
),
|
3420 |
'thumbnailUrl' => isset($v_val['thumbnail_url'])? $v_val['thumbnail_url'] : saswp_get_thumbnail(),
|
|
|
3421 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3422 |
}
|
3423 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3424 |
}
|
3425 |
return $input1;
|
3426 |
}
|
1731 |
|
1732 |
if( ( saswp_remove_warnings($sd_data, 'saswp-for-wordpress', 'saswp_string') ==''
|
1733 |
|| 1 == saswp_remove_warnings($sd_data, 'saswp-for-wordpress', 'saswp_string') && saswp_non_amp() )
|
1734 |
+
|| ( 1 == saswp_remove_warnings($sd_data, 'saswp-for-amp', 'saswp_string') && !saswp_non_amp() )
|
1735 |
+
|| ( isset($sd_data['saswp-webstories']) && $sd_data['saswp-webstories'] == 1 && function_exists('web_stories_get_compat_instance') )
|
1736 |
+
) {
|
1737 |
|
1738 |
return true;
|
1739 |
|
3399 |
}
|
3400 |
|
3401 |
$video_links = saswp_get_video_metadata();
|
3402 |
+
$input1['@context'] = saswp_context_url();
|
3403 |
+
$description = saswp_get_the_excerpt();
|
3404 |
+
|
3405 |
+
if(!$description){
|
3406 |
+
$description = get_bloginfo('description');
|
3407 |
+
}
|
3408 |
+
$date = get_the_date("c");
|
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 |
return $input1;
|
3482 |
}
|
output/gutenberg.php
CHANGED
@@ -423,6 +423,40 @@ function saswp_get_gutenberg_block_data($block){
|
|
423 |
|
424 |
return $response;
|
425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
}
|
427 |
|
428 |
function saswp_gutenberg_how_to_schema(){
|
423 |
|
424 |
return $response;
|
425 |
|
426 |
+
}
|
427 |
+
/* multiple videos */
|
428 |
+
function saswp_get_gutenberg_multiple_block_data($block){
|
429 |
+
|
430 |
+
global $post;
|
431 |
+
|
432 |
+
$block_list = array();
|
433 |
+
$block_data = array();
|
434 |
+
$response = array();
|
435 |
+
|
436 |
+
if(function_exists('parse_blocks') && is_object($post)){
|
437 |
+
|
438 |
+
$blocks = parse_blocks($post->post_content);
|
439 |
+
|
440 |
+
if($blocks){
|
441 |
+
|
442 |
+
foreach ($blocks as $parse_blocks){
|
443 |
+
$block_list[] = $parse_blocks['blockName'];
|
444 |
+
$block_data[][$parse_blocks['blockName']] = $parse_blocks;
|
445 |
+
}
|
446 |
+
|
447 |
+
}
|
448 |
+
}
|
449 |
+
|
450 |
+
if(!empty($block_data)){
|
451 |
+
foreach ($block_data as $value) {
|
452 |
+
if(isset($value[$block])){
|
453 |
+
$response[] = $value[$block];
|
454 |
+
}
|
455 |
+
|
456 |
+
}
|
457 |
+
}
|
458 |
+
return $response;
|
459 |
+
|
460 |
}
|
461 |
|
462 |
function saswp_gutenberg_how_to_schema(){
|
output/markup.php
CHANGED
@@ -3402,9 +3402,31 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
|
|
3402 |
}
|
3403 |
|
3404 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array');
|
|
|
3405 |
$input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array');
|
3406 |
$input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_url_'.$schema_id, 'saswp_array');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3407 |
|
|
|
|
|
|
|
3408 |
$itemlist = get_post_meta($schema_post_id, 'blogposting_items_'.$schema_id, true);
|
3409 |
|
3410 |
if($itemlist){
|
@@ -4097,8 +4119,31 @@ function saswp_photograph_schema_markup($schema_id, $schema_post_id, $all_post_m
|
|
4097 |
}
|
4098 |
|
4099 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_name_'.$schema_id, 'saswp_array');
|
|
|
4100 |
$input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_description_'.$schema_id, 'saswp_array');
|
4101 |
$input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_url_'.$schema_id, 'saswp_array');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4102 |
|
4103 |
if(isset($all_post_meta['saswp_photograph_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_photograph_organization_name_'.$schema_id][0])){
|
4104 |
|
@@ -4146,9 +4191,31 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
4146 |
}
|
4147 |
|
4148 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array');
|
|
|
4149 |
$input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array');
|
4150 |
$input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_url_'.$schema_id, 'saswp_array');
|
4151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4152 |
if(isset($all_post_meta['saswp_article_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_article_organization_name_'.$schema_id][0])){
|
4153 |
|
4154 |
$input1['publisher']['@type'] = 'Organization';
|
@@ -4176,6 +4243,10 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
4176 |
$input1['mainEntity']['name'] = saswp_get_the_title();
|
4177 |
|
4178 |
}
|
|
|
|
|
|
|
|
|
4179 |
|
4180 |
if(isset($all_post_meta['saswp_article_speakable_'.$schema_id]) && $all_post_meta['saswp_article_speakable_'.$schema_id][0] == 1){
|
4181 |
|
@@ -4222,9 +4293,31 @@ function saswp_creativework_schema_markup($schema_id, $schema_post_id, $all_post
|
|
4222 |
}
|
4223 |
|
4224 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_name_'.$schema_id, 'saswp_array');
|
|
|
4225 |
$input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_description_'.$schema_id, 'saswp_array');
|
4226 |
$input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_url_'.$schema_id, 'saswp_array');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4228 |
if(isset($all_post_meta['saswp_creativework_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_creativework_organization_name_'.$schema_id][0])){
|
4229 |
|
4230 |
$input1['publisher']['@type'] = 'Organization';
|
@@ -4293,11 +4386,31 @@ function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post
|
|
4293 |
if(isset( $all_post_meta['saswp_tech_article_author_type_'.$schema_id][0] )){
|
4294 |
$input1['author']['@type'] = $all_post_meta['saswp_tech_article_author_type_'.$schema_id][0];
|
4295 |
}
|
4296 |
-
|
4297 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array');
|
|
|
4298 |
$input1['author']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array');
|
4299 |
$input1['author']['url'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_url_'.$schema_id, 'saswp_array');
|
4300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4301 |
$itemlist = get_post_meta($schema_post_id, 'tech_article_items_'.$schema_id, true);
|
4302 |
|
4303 |
if($itemlist){
|
3402 |
}
|
3403 |
|
3404 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array');
|
3405 |
+
$input1['author']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_honorific_suffix_'.$schema_id, 'saswp_array');
|
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';
|
3422 |
+
$vnewarr['Name'] = $list;
|
3423 |
+
$input1['alumniOf'][] = $vnewarr;
|
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);
|
3431 |
|
3432 |
if($itemlist){
|
4119 |
}
|
4120 |
|
4121 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_name_'.$schema_id, 'saswp_array');
|
4122 |
+
$input1['author']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_photograph_author_honorific_suffix_'.$schema_id, 'saswp_array');
|
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';
|
4143 |
+
$vnewarr['Name'] = $list;
|
4144 |
+
$input1['alumniOf'][] = $vnewarr;
|
4145 |
+
}
|
4146 |
+
}
|
4147 |
|
4148 |
if(isset($all_post_meta['saswp_photograph_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_photograph_organization_name_'.$schema_id][0])){
|
4149 |
|
4191 |
}
|
4192 |
|
4193 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array');
|
4194 |
+
$input1['author']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_article_author_honorific_suffix_'.$schema_id, 'saswp_array');
|
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';
|
4215 |
+
$vnewarr['Name'] = $list;
|
4216 |
+
$input1['alumniOf'][] = $vnewarr;
|
4217 |
+
}
|
4218 |
+
}
|
4219 |
if(isset($all_post_meta['saswp_article_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_article_organization_name_'.$schema_id][0])){
|
4220 |
|
4221 |
$input1['publisher']['@type'] = 'Organization';
|
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 |
|
4293 |
}
|
4294 |
|
4295 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_name_'.$schema_id, 'saswp_array');
|
4296 |
+
$input1['author']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_creativework_author_honorific_suffix_'.$schema_id, 'saswp_array');
|
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';
|
4317 |
+
$vnewarr['Name'] = $list;
|
4318 |
+
$input1['alumniOf'][] = $vnewarr;
|
4319 |
+
}
|
4320 |
+
}
|
4321 |
if(isset($all_post_meta['saswp_creativework_organization_logo_'.$schema_id][0]) || isset($all_post_meta['saswp_creativework_organization_name_'.$schema_id][0])){
|
4322 |
|
4323 |
$input1['publisher']['@type'] = 'Organization';
|
4386 |
if(isset( $all_post_meta['saswp_tech_article_author_type_'.$schema_id][0] )){
|
4387 |
$input1['author']['@type'] = $all_post_meta['saswp_tech_article_author_type_'.$schema_id][0];
|
4388 |
}
|
|
|
4389 |
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array');
|
4390 |
+
$input1['author']['honorificSuffix'] = saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_honorific_suffix_'.$schema_id, 'saswp_array');
|
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';
|
4410 |
+
$vnewarr['Name'] = $list;
|
4411 |
+
$input1['alumniOf'][] = $vnewarr;
|
4412 |
+
}
|
4413 |
+
}
|
4414 |
$itemlist = get_post_meta($schema_post_id, 'tech_article_items_'.$schema_id, true);
|
4415 |
|
4416 |
if($itemlist){
|
output/output.php
CHANGED
@@ -1748,116 +1748,123 @@ function saswp_schema_output() {
|
|
1748 |
|
1749 |
case 'VideoObject':
|
1750 |
|
1751 |
-
$video_links = saswp_get_video_metadata();
|
1752 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
1753 |
|
1754 |
-
if(count($video_links) > 1){
|
|
|
|
|
1755 |
$input1['@type'] = "ItemList";
|
1756 |
|
1757 |
-
foreach($video_links as $vkey => $v_val){
|
1758 |
-
|
|
|
1759 |
'@type' => 'VideoObject',
|
1760 |
"position" => $vkey+1,
|
1761 |
-
'name' => $v_val['title'],
|
1762 |
-
'
|
1763 |
-
'
|
1764 |
-
'
|
1765 |
-
'duration' => $v_val['duration'],
|
1766 |
-
'contentUrl' => $v_val['video_url'],
|
1767 |
-
'embedUrl' => $v_val['video_url'],
|
1768 |
'interactionStatistic' => array(
|
1769 |
"@type" => "InteractionCounter",
|
1770 |
"interactionType" => array("@type" => "WatchAction" ),
|
1771 |
-
"userInteractionCount" => $v_val['viewCount']
|
1772 |
),
|
1773 |
'thumbnailUrl' => isset($v_val['thumbnail_url'])? $v_val['thumbnail_url'] : saswp_get_thumbnail(),
|
|
|
1774 |
);
|
1775 |
-
}
|
1776 |
-
// echo "<pre>";print_r($input1);echo "</pre>";
|
1777 |
-
}else{
|
1778 |
|
1779 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1780 |
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
'transcript' => saswp_get_the_content(),
|
1812 |
-
'name' => saswp_get_the_title(),
|
1813 |
-
'uploadDate' => esc_html($date),
|
1814 |
-
'thumbnailUrl' => isset($video_links[0]['thumbnail_url'])? $video_links[0]['thumbnail_url'] : saswp_get_thumbnail(),
|
1815 |
-
'author' => saswp_get_author_details()
|
1816 |
-
);
|
1817 |
-
|
1818 |
-
if(isset($video_links[0]['duration'])){
|
1819 |
-
$input1['duration'] = $video_links[0]['duration'];
|
1820 |
-
}
|
1821 |
-
if(isset($video_links[0]['video_url'])){
|
1822 |
|
1823 |
-
|
1824 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1825 |
|
1826 |
-
|
1827 |
-
|
1828 |
-
if(!empty($publisher)){
|
1829 |
|
1830 |
-
|
1831 |
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
|
|
|
|
|
|
|
|
1842 |
|
1843 |
-
$input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
|
1844 |
$input1 = apply_filters('saswp_modify_video_object_schema_output', $input1 );
|
1845 |
|
1846 |
-
|
1847 |
-
|
1848 |
-
if($modified_schema == 1){
|
1849 |
|
1850 |
-
|
1851 |
-
|
|
|
|
|
1852 |
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
|
1859 |
-
|
1860 |
-
|
1861 |
|
1862 |
break;
|
1863 |
|
1748 |
|
1749 |
case 'VideoObject':
|
1750 |
|
1751 |
+
$video_links = saswp_get_video_metadata();
|
1752 |
+
$description = saswp_get_the_excerpt();
|
1753 |
+
|
1754 |
+
if(!$description){
|
1755 |
+
$description = get_bloginfo('description');
|
1756 |
+
}
|
1757 |
+
|
1758 |
+
$input1['@context'] = saswp_context_url();
|
1759 |
|
1760 |
+
if(!empty($video_links) && count($video_links) > 1){
|
1761 |
+
|
1762 |
+
|
1763 |
$input1['@type'] = "ItemList";
|
1764 |
|
1765 |
+
foreach($video_links as $vkey => $v_val){
|
1766 |
+
|
1767 |
+
$vnewarr = array(
|
1768 |
'@type' => 'VideoObject',
|
1769 |
"position" => $vkey+1,
|
1770 |
+
'name' => isset($v_val['title'])? $v_val['title'] : saswp_get_the_title(),
|
1771 |
+
'datePublished' => esc_html($date),
|
1772 |
+
'dateModified' => esc_html($modified_date),
|
1773 |
+
'url' => trailingslashit(saswp_get_permalink()),
|
|
|
|
|
|
|
1774 |
'interactionStatistic' => array(
|
1775 |
"@type" => "InteractionCounter",
|
1776 |
"interactionType" => array("@type" => "WatchAction" ),
|
1777 |
+
"userInteractionCount" => isset($v_val['viewCount'])? $v_val['viewCount'] : '0',
|
1778 |
),
|
1779 |
'thumbnailUrl' => isset($v_val['thumbnail_url'])? $v_val['thumbnail_url'] : saswp_get_thumbnail(),
|
1780 |
+
'author' => saswp_get_author_details(),
|
1781 |
);
|
|
|
|
|
|
|
1782 |
|
1783 |
+
if(isset($v_val['video_url'])){
|
1784 |
+
$vnewarr['contentUrl'] = saswp_validate_url($v_val['video_url']);
|
1785 |
+
}
|
1786 |
+
|
1787 |
+
if(isset($v_val['video_url'])){
|
1788 |
+
$vnewarr['embedUrl'] = saswp_validate_url($v_val['video_url']);
|
1789 |
+
}
|
1790 |
|
1791 |
+
if(isset($v_val['uploadDate'])){
|
1792 |
+
$vnewarr['uploadDate'] = $v_val['uploadDate'];
|
1793 |
+
}
|
1794 |
+
|
1795 |
+
if(isset($v_val['duration'])){
|
1796 |
+
$vnewarr['duration'] = $v_val['duration'];
|
1797 |
+
}
|
1798 |
+
|
1799 |
+
if(isset($v_val['description'])){
|
1800 |
+
$vnewarr['description'] = $v_val['description'];
|
1801 |
+
}
|
1802 |
+
|
1803 |
+
$input1['itemListElement'][] = $vnewarr;
|
1804 |
+
}
|
1805 |
+
}else{
|
1806 |
+
$input1 = array(
|
1807 |
+
'@context' => saswp_context_url(),
|
1808 |
+
'@type' => 'VideoObject',
|
1809 |
+
'@id' => trailingslashit(saswp_get_permalink()).'#videoobject',
|
1810 |
+
'url' => trailingslashit(saswp_get_permalink()),
|
1811 |
+
'headline' => saswp_get_the_title(),
|
1812 |
+
'datePublished' => esc_html($date),
|
1813 |
+
'dateModified' => esc_html($modified_date),
|
1814 |
+
'description' => $description,
|
1815 |
+
'transcript' => saswp_get_the_content(),
|
1816 |
+
'name' => saswp_get_the_title(),
|
1817 |
+
'uploadDate' => esc_html($date),
|
1818 |
+
'thumbnailUrl' => isset($video_links[0]['thumbnail_url'])? $video_links[0]['thumbnail_url'] : saswp_get_thumbnail(),
|
1819 |
+
'author' => saswp_get_author_details()
|
1820 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1821 |
|
1822 |
+
if(isset($video_links[0]['duration'])){
|
1823 |
+
$input1['duration'] = $video_links[0]['duration'];
|
1824 |
+
}
|
1825 |
+
if(isset($video_links[0]['video_url'])){
|
1826 |
+
|
1827 |
+
$input1['contentUrl'] = saswp_validate_url($video_links[0]['video_url']);
|
1828 |
+
$input1['embedUrl'] = saswp_validate_url($video_links[0]['video_url']);
|
1829 |
+
|
1830 |
+
}
|
1831 |
|
1832 |
+
if(!empty($publisher)){
|
|
|
|
|
1833 |
|
1834 |
+
$input1 = array_merge($input1, $publisher);
|
1835 |
|
1836 |
+
}
|
1837 |
+
if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] ==1){
|
1838 |
+
$input1['comment'] = saswp_get_comments(get_the_ID());
|
1839 |
+
}
|
1840 |
+
if(!empty($aggregateRating)){
|
1841 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1842 |
+
}
|
1843 |
+
if(!empty($extra_theme_review)){
|
1844 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1845 |
+
}
|
1846 |
+
|
1847 |
+
$input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
|
1848 |
+
|
1849 |
+
}
|
1850 |
|
|
|
1851 |
$input1 = apply_filters('saswp_modify_video_object_schema_output', $input1 );
|
1852 |
|
1853 |
+
$input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
|
|
|
|
|
1854 |
|
1855 |
+
if($modified_schema == 1){
|
1856 |
+
|
1857 |
+
$input1 = saswp_video_object_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
|
1858 |
+
}
|
1859 |
|
1860 |
+
if(isset($enable_videoobject) && $enable_videoobject == 1){
|
1861 |
+
|
1862 |
+
if(empty($video_links) && count($video_links) == 0){
|
1863 |
+
$input1 = array();
|
1864 |
+
}
|
1865 |
|
1866 |
+
}
|
1867 |
+
|
1868 |
|
1869 |
break;
|
1870 |
|
output/service.php
CHANGED
@@ -1398,13 +1398,19 @@ Class saswp_output_service{
|
|
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_author_type'])){
|
1403 |
$input1['author']['@type'] = $custom_fields['saswp_article_author_type'];
|
1404 |
}
|
1405 |
if(isset($custom_fields['saswp_article_author_name'])){
|
1406 |
$input1['author']['name'] = $custom_fields['saswp_article_author_name'];
|
1407 |
}
|
|
|
|
|
|
|
1408 |
if(isset($custom_fields['saswp_article_author_description'])){
|
1409 |
$input1['author']['description'] = $custom_fields['saswp_article_author_description'];
|
1410 |
}
|
@@ -1415,7 +1421,36 @@ Class saswp_output_service{
|
|
1415 |
$input1['publisher']['@type'] = 'Organization';
|
1416 |
$input1['publisher']['name'] = $custom_fields['saswp_article_organization_name'];
|
1417 |
$input1['publisher']['logo'] = $custom_fields['saswp_article_organization_logo'];
|
1418 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1419 |
break;
|
1420 |
|
1421 |
case 'CreativeWork':
|
@@ -1457,19 +1492,52 @@ Class saswp_output_service{
|
|
1457 |
$input1['editor'] = array();
|
1458 |
$input1['editor']['@type'] = 'Person';
|
1459 |
$input1['editor']['name'] = $custom_fields['saswp_creativework_editor_name'];
|
1460 |
-
}
|
|
|
|
|
|
|
1461 |
if(isset($custom_fields['saswp_creativework_author_type'])){
|
1462 |
$input1['author']['@type'] = $custom_fields['saswp_creativework_author_type'];
|
1463 |
}
|
1464 |
if(isset($custom_fields['saswp_creativework_author_name'])){
|
1465 |
$input1['author']['name'] = $custom_fields['saswp_creativework_author_name'];
|
1466 |
}
|
|
|
|
|
|
|
1467 |
if(isset($custom_fields['saswp_creativework_author_description'])){
|
1468 |
$input1['author']['description'] = $custom_fields['saswp_creativework_author_description'];
|
1469 |
}
|
1470 |
if(isset($custom_fields['saswp_creativework_author_url'])){
|
1471 |
$input1['author']['url'] = $custom_fields['saswp_creativework_author_url'];
|
1472 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1473 |
if(isset($custom_fields['saswp_creativework_organization_logo']) && isset($custom_fields['saswp_creativework_organization_name'])){
|
1474 |
$input1['publisher']['@type'] = 'Organization';
|
1475 |
$input1['publisher']['name'] = $custom_fields['saswp_creativework_organization_name'];
|
@@ -1562,6 +1630,12 @@ Class saswp_output_service{
|
|
1562 |
if(isset($custom_fields['saswp_photograph_author_name'])){
|
1563 |
$input1['author']['name'] = $custom_fields['saswp_photograph_author_name'];
|
1564 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1565 |
if(isset($custom_fields['saswp_photograph_author_description'])){
|
1566 |
$input1['author']['description'] = $custom_fields['saswp_photograph_author_description'];
|
1567 |
}
|
@@ -1573,6 +1647,33 @@ Class saswp_output_service{
|
|
1573 |
$input1['publisher']['name'] = $custom_fields['saswp_photograph_organization_name'];
|
1574 |
$input1['publisher']['logo'] = $custom_fields['saswp_photograph_organization_logo'];
|
1575 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1576 |
|
1577 |
break;
|
1578 |
|
@@ -1833,19 +1934,53 @@ Class saswp_output_service{
|
|
1833 |
$input1['editor']['@type'] = 'Person';
|
1834 |
$input1['editor']['name'] = $custom_fields['saswp_blogposting_editor_name'];
|
1835 |
}
|
|
|
|
|
|
|
1836 |
if(isset($custom_fields['saswp_blogposting_author_type'])){
|
1837 |
$input1['author']['@type'] = $custom_fields['saswp_blogposting_author_type'];
|
1838 |
}
|
1839 |
if(isset($custom_fields['saswp_blogposting_author_name'])){
|
1840 |
$input1['author']['name'] = $custom_fields['saswp_blogposting_author_name'];
|
1841 |
}
|
|
|
|
|
|
|
1842 |
if(isset($custom_fields['saswp_blogposting_author_url'])){
|
1843 |
$input1['author']['url'] = $custom_fields['saswp_blogposting_author_url'];
|
1844 |
}
|
1845 |
if(isset($custom_fields['saswp_blogposting_author_description'])){
|
1846 |
$input1['author']['description'] = $custom_fields['saswp_blogposting_author_description'];
|
1847 |
}
|
1848 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1849 |
if(isset($custom_fields['saswp_blogposting_organization_logo']) && isset($custom_fields['saswp_blogposting_organization_name'])){
|
1850 |
$input1['publisher']['@type'] = 'Organization';
|
1851 |
$input1['publisher']['name'] = $custom_fields['saswp_blogposting_organization_name'];
|
@@ -2292,24 +2427,56 @@ Class saswp_output_service{
|
|
2292 |
$input1['editor']['@type'] = 'Person';
|
2293 |
$input1['editor']['name'] = $custom_fields['saswp_tech_article_editor_name'];
|
2294 |
}
|
|
|
|
|
|
|
2295 |
if(isset($custom_fields['saswp_tech_article_author_type'])){
|
2296 |
$input1['author']['@type'] = $custom_fields['saswp_tech_article_author_type'];
|
2297 |
}
|
2298 |
if(isset($custom_fields['saswp_tech_article_author_name'])){
|
2299 |
$input1['author']['name'] = $custom_fields['saswp_tech_article_author_name'];
|
2300 |
}
|
|
|
|
|
|
|
2301 |
if(isset($custom_fields['saswp_tech_article_author_url'])){
|
2302 |
$input1['author']['url'] = saswp_validate_url($custom_fields['saswp_tech_article_author_url']);
|
2303 |
}
|
2304 |
if(isset($custom_fields['saswp_tech_article_author_description'])){
|
2305 |
$input1['author']['description'] = $custom_fields['saswp_tech_article_author_description'];
|
2306 |
}
|
2307 |
-
|
|
|
|
|
2308 |
if(isset($custom_fields['saswp_tech_article_organization_logo']) && isset($custom_fields['saswp_tech_article_organization_name'])){
|
2309 |
$input1['publisher']['@type'] = 'Organization';
|
2310 |
$input1['publisher']['name'] = $custom_fields['saswp_tech_article_organization_name'];
|
2311 |
$input1['publisher']['logo'] = $custom_fields['saswp_tech_article_organization_logo'];
|
2312 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2313 |
break;
|
2314 |
|
2315 |
case 'Course':
|
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 |
}
|
1408 |
if(isset($custom_fields['saswp_article_author_name'])){
|
1409 |
$input1['author']['name'] = $custom_fields['saswp_article_author_name'];
|
1410 |
}
|
1411 |
+
if(isset($custom_fields['saswp_article_author_honorific_suffix'])){
|
1412 |
+
$input1['author']['honorificSuffix'] = $custom_fields['saswp_article_author_honorific_suffix'];
|
1413 |
+
}
|
1414 |
if(isset($custom_fields['saswp_article_author_description'])){
|
1415 |
$input1['author']['description'] = $custom_fields['saswp_article_author_description'];
|
1416 |
}
|
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 |
+
}
|
1429 |
+
if(isset($custom_fields['saswp_article_reviewedby_name'])){
|
1430 |
+
$input1['reviewedBy']['name'] = $custom_fields['saswp_article_reviewedby_name'];
|
1431 |
+
}
|
1432 |
+
if(isset($custom_fields['saswp_article_reviewedby_honorific_suffix'])){
|
1433 |
+
$input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_article_reviewedby_honorific_suffix'];
|
1434 |
+
}
|
1435 |
+
if(isset($custom_fields['saswp_article_reviewedby_description'])){
|
1436 |
+
$input1['reviewedBy']['description'] = $custom_fields['saswp_article_reviewedby_description'];
|
1437 |
+
}
|
1438 |
+
if(isset($custom_fields['saswp_article_reviewedby_url'])){
|
1439 |
+
$input1['reviewedBy']['url'] = $custom_fields['saswp_article_reviewedby_url'];
|
1440 |
+
}
|
1441 |
+
if(isset($custom_fields['saswp_article_alumniof'])){
|
1442 |
+
$str = $custom_fields['saswp_article_alumniof'];
|
1443 |
+
$itemlist = explode(",", $str);
|
1444 |
+
foreach ($itemlist as $key => $list){
|
1445 |
+
$vnewarr['@type'] = 'Organization';
|
1446 |
+
$vnewarr['Name'] = $list;
|
1447 |
+
$input1['alumniOf'][] = $vnewarr;
|
1448 |
+
}
|
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':
|
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 |
}
|
1502 |
if(isset($custom_fields['saswp_creativework_author_name'])){
|
1503 |
$input1['author']['name'] = $custom_fields['saswp_creativework_author_name'];
|
1504 |
}
|
1505 |
+
if(isset($custom_fields['saswp_creativework_author_honorific_suffix'])){
|
1506 |
+
$input1['author']['honorificSuffix'] = $custom_fields['saswp_creativework_author_honorific_suffix'];
|
1507 |
+
}
|
1508 |
if(isset($custom_fields['saswp_creativework_author_description'])){
|
1509 |
$input1['author']['description'] = $custom_fields['saswp_creativework_author_description'];
|
1510 |
}
|
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 |
+
}
|
1517 |
+
if(isset($custom_fields['saswp_creativework_alumniof'])){
|
1518 |
+
$str = $custom_fields['saswp_creativework_alumniof'];
|
1519 |
+
$itemlist = explode(",", $str);
|
1520 |
+
foreach ($itemlist as $key => $list){
|
1521 |
+
$vnewarr['@type'] = 'Organization';
|
1522 |
+
$vnewarr['Name'] = $list;
|
1523 |
+
$input1['alumniOf'][] = $vnewarr;
|
1524 |
+
}
|
1525 |
+
}
|
1526 |
+
if(isset($custom_fields['saswp_creativework_reviewedby_type'])){
|
1527 |
+
$input1['reviewedBy']['@type'] = $custom_fields['saswp_creativework_reviewedby_type'];
|
1528 |
+
}
|
1529 |
+
if(isset($custom_fields['saswp_creativework_reviewedby_name'])){
|
1530 |
+
$input1['reviewedBy']['name'] = $custom_fields['saswp_creativework_reviewedby_name'];
|
1531 |
+
}
|
1532 |
+
if(isset($custom_fields['saswp_creativework_reviewedby_honorific_suffix'])){
|
1533 |
+
$input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_creativework_reviewedby_honorific_suffix'];
|
1534 |
+
}
|
1535 |
+
if(isset($custom_fields['saswp_creativework_reviewedby_description'])){
|
1536 |
+
$input1['reviewedBy']['description'] = $custom_fields['saswp_creativework_reviewedby_description'];
|
1537 |
+
}
|
1538 |
+
if(isset($custom_fields['saswp_creativework_reviewedby_url'])){
|
1539 |
+
$input1['reviewedBy']['url'] = $custom_fields['saswp_creativework_reviewedby_url'];
|
1540 |
+
}
|
1541 |
if(isset($custom_fields['saswp_creativework_organization_logo']) && isset($custom_fields['saswp_creativework_organization_name'])){
|
1542 |
$input1['publisher']['@type'] = 'Organization';
|
1543 |
$input1['publisher']['name'] = $custom_fields['saswp_creativework_organization_name'];
|
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 |
+
}
|
1636 |
+
if(isset($custom_fields['saswp_photograph_author_honorific_suffix'])){
|
1637 |
+
$input1['author']['honorificSuffix'] = $custom_fields['saswp_photograph_author_honorific_suffix'];
|
1638 |
+
}
|
1639 |
if(isset($custom_fields['saswp_photograph_author_description'])){
|
1640 |
$input1['author']['description'] = $custom_fields['saswp_photograph_author_description'];
|
1641 |
}
|
1647 |
$input1['publisher']['name'] = $custom_fields['saswp_photograph_organization_name'];
|
1648 |
$input1['publisher']['logo'] = $custom_fields['saswp_photograph_organization_logo'];
|
1649 |
}
|
1650 |
+
if(isset($custom_fields['saswp_photograph_reviewedby_type'])){
|
1651 |
+
$input1['reviewedBy']['@type'] = $custom_fields['saswp_photograph_reviewedby_type'];
|
1652 |
+
}
|
1653 |
+
if(isset($custom_fields['saswp_photograph_reviewedby_name'])){
|
1654 |
+
$input1['reviewedBy']['name'] = $custom_fields['saswp_photograph_reviewedby_name'];
|
1655 |
+
}
|
1656 |
+
if(isset($custom_fields['saswp_photograph_reviewedby_honorific_suffix'])){
|
1657 |
+
$input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_photograph_reviewedby_honorific_suffix'];
|
1658 |
+
}
|
1659 |
+
if(isset($custom_fields['saswp_photograph_reviewedby_description'])){
|
1660 |
+
$input1['reviewedBy']['description'] = $custom_fields['saswp_photograph_reviewedby_description'];
|
1661 |
+
}
|
1662 |
+
if(isset($custom_fields['saswp_photograph_reviewedby_url'])){
|
1663 |
+
$input1['reviewedBy']['url'] = $custom_fields['saswp_photograph_reviewedby_url'];
|
1664 |
+
}
|
1665 |
+
if(isset($custom_fields['saswp_photograph_knowsabout'])){
|
1666 |
+
$input1['knowsAbout'] = explode(',', $custom_fields['saswp_photograph_knowsabout']);
|
1667 |
+
}
|
1668 |
+
if(isset($custom_fields['saswp_photograph_alumniof'])){
|
1669 |
+
$str = $custom_fields['saswp_photograph_alumniof'];
|
1670 |
+
$itemlist = explode(",", $str);
|
1671 |
+
foreach ($itemlist as $key => $list){
|
1672 |
+
$vnewarr['@type'] = 'Organization';
|
1673 |
+
$vnewarr['Name'] = $list;
|
1674 |
+
$input1['alumniOf'][] = $vnewarr;
|
1675 |
+
}
|
1676 |
+
}
|
1677 |
|
1678 |
break;
|
1679 |
|
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 |
}
|
1943 |
if(isset($custom_fields['saswp_blogposting_author_name'])){
|
1944 |
$input1['author']['name'] = $custom_fields['saswp_blogposting_author_name'];
|
1945 |
}
|
1946 |
+
if(isset($custom_fields['saswp_blogposting_author_honorific_suffix'])){
|
1947 |
+
$input1['author']['honorificSuffix'] = $custom_fields['saswp_blogposting_author_honorific_suffix'];
|
1948 |
+
}
|
1949 |
if(isset($custom_fields['saswp_blogposting_author_url'])){
|
1950 |
$input1['author']['url'] = $custom_fields['saswp_blogposting_author_url'];
|
1951 |
}
|
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 |
+
}
|
1959 |
+
if(isset($custom_fields['saswp_blogposting_reviewedby_name'])){
|
1960 |
+
$input1['reviewedBy']['name'] = $custom_fields['saswp_blogposting_reviewedby_name'];
|
1961 |
+
}
|
1962 |
+
if(isset($custom_fields['saswp_blogposting_reviewedby_honorific_suffix'])){
|
1963 |
+
$input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_blogposting_reviewedby_honorific_suffix'];
|
1964 |
+
}
|
1965 |
+
if(isset($custom_fields['saswp_blogposting_reviewedby_url'])){
|
1966 |
+
$input1['reviewedBy']['url'] = $custom_fields['saswp_blogposting_reviewedby_url'];
|
1967 |
+
}
|
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']);
|
1974 |
+
}
|
1975 |
+
if(isset($custom_fields['saswp_blogposting_alumniof'])){
|
1976 |
+
$str = $custom_fields['saswp_blogposting_alumniof'];
|
1977 |
+
$itemlist = explode(",", $str);
|
1978 |
+
foreach ($itemlist as $key => $list){
|
1979 |
+
$vnewarr['@type'] = 'Organization';
|
1980 |
+
$vnewarr['Name'] = $list;
|
1981 |
+
$input1['alumniOf'][] = $vnewarr;
|
1982 |
+
}
|
1983 |
+
}
|
1984 |
if(isset($custom_fields['saswp_blogposting_organization_logo']) && isset($custom_fields['saswp_blogposting_organization_name'])){
|
1985 |
$input1['publisher']['@type'] = 'Organization';
|
1986 |
$input1['publisher']['name'] = $custom_fields['saswp_blogposting_organization_name'];
|
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 |
}
|
2436 |
if(isset($custom_fields['saswp_tech_article_author_name'])){
|
2437 |
$input1['author']['name'] = $custom_fields['saswp_tech_article_author_name'];
|
2438 |
}
|
2439 |
+
if(isset($custom_fields['saswp_tech_article_author_honorific_suffix'])){
|
2440 |
+
$input1['author']['honorificSuffix'] = $custom_fields['saswp_tech_article_author_honorific_suffix'];
|
2441 |
+
}
|
2442 |
if(isset($custom_fields['saswp_tech_article_author_url'])){
|
2443 |
$input1['author']['url'] = saswp_validate_url($custom_fields['saswp_tech_article_author_url']);
|
2444 |
}
|
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 |
+
}
|
2451 |
if(isset($custom_fields['saswp_tech_article_organization_logo']) && isset($custom_fields['saswp_tech_article_organization_name'])){
|
2452 |
$input1['publisher']['@type'] = 'Organization';
|
2453 |
$input1['publisher']['name'] = $custom_fields['saswp_tech_article_organization_name'];
|
2454 |
$input1['publisher']['logo'] = $custom_fields['saswp_tech_article_organization_logo'];
|
2455 |
}
|
2456 |
+
if(isset($custom_fields['saswp_tech_article_reviewedby_type'])){
|
2457 |
+
$input1['reviewedBy']['@type'] = $custom_fields['saswp_tech_article_reviewedby_type'];
|
2458 |
+
}
|
2459 |
+
if(isset($custom_fields['saswp_tech_article_alumniof'])){
|
2460 |
+
$str = $custom_fields['saswp_tech_article_alumniof'];
|
2461 |
+
$itemlist = explode(",", $str);
|
2462 |
+
foreach ($itemlist as $key => $list){
|
2463 |
+
$vnewarr['@type'] = 'Organization';
|
2464 |
+
$vnewarr['Name'] = $list;
|
2465 |
+
$input1['alumniOf'][] = $vnewarr;
|
2466 |
+
}
|
2467 |
+
}
|
2468 |
+
if(isset($custom_fields['saswp_tech_article_reviewedby_name'])){
|
2469 |
+
$input1['reviewedBy']['name'] = $custom_fields['saswp_tech_article_reviewedby_name'];
|
2470 |
+
}
|
2471 |
+
if(isset($custom_fields['saswp_tech_article_reviewedby_honorific_suffix'])){
|
2472 |
+
$input1['reviewedBy']['honorificSuffix'] = $custom_fields['saswp_tech_article_reviewedby_honorific_suffix'];
|
2473 |
+
}
|
2474 |
+
if(isset($custom_fields['saswp_tech_article_reviewedby_url'])){
|
2475 |
+
$input1['reviewedBy']['url'] = saswp_validate_url($custom_fields['saswp_tech_article_reviewedby_url']);
|
2476 |
+
}
|
2477 |
+
if(isset($custom_fields['saswp_tech_article_reviewedby_description'])){
|
2478 |
+
$input1['reviewedBy']['description'] = $custom_fields['saswp_tech_article_reviewedby_description'];
|
2479 |
+
}
|
2480 |
break;
|
2481 |
|
2482 |
case 'Course':
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -121,6 +121,17 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= 1.9.101.1 (01 Oct 2022) =
|
125 |
|
126 |
* Fixed: PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in .../wp-includes/pluggable.php:928 #1749
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6.20
|
7 |
+
Stable tag: 1.9.102
|
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.102 (13 Oct 2022) =
|
125 |
+
|
126 |
+
* Fixed: Video object schema issues in GSC after the update #1750
|
127 |
+
* Fixed: While activating the Schema plugin, there is a fatal error #1751
|
128 |
+
* Fixed: load more shouldn't be there in zero null condition #1736
|
129 |
+
* Added: Need to change the word Json-LD from Video Object Schema. #1741
|
130 |
+
* Fixed: How To schema UI alignment issue #1744
|
131 |
+
* Fixed: Conflict issue with web stories(user specific issue) #1746
|
132 |
+
* Added: Need to add additional fields in Article Schema #1752
|
133 |
+
|
134 |
+
|
135 |
= 1.9.101.1 (01 Oct 2022) =
|
136 |
|
137 |
* Fixed: PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in .../wp-includes/pluggable.php:928 #1749
|
structured-data-for-wp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Schema & Structured Data for WP & AMP
|
4 |
Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
|
5 |
-
Version: 1.9.
|
6 |
Text Domain: schema-and-structured-data-for-wp
|
7 |
Domain Path: /languages
|
8 |
Author: Magazine3
|
@@ -13,7 +13,7 @@ License: GPL2
|
|
13 |
// Exit if accessed directly.
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
-
define('SASWP_VERSION', '1.9.
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
2 |
/*
|
3 |
Plugin Name: Schema & Structured Data for WP & AMP
|
4 |
Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
|
5 |
+
Version: 1.9.102
|
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.102');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
view/schema_type.php
CHANGED
@@ -655,7 +655,7 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
655 |
|
656 |
<tr>
|
657 |
<td>
|
658 |
-
<label for="saswp-enable-markup"><?php echo saswp_t_string( '
|
659 |
</td>
|
660 |
<td>
|
661 |
<input id="saswp-enable-markup" class="saswp-enable-markup-class" type="checkbox" name="saswp_enable_videoobject" value="1" <?php if(isset($enable_videoobject) && $enable_videoobject == 1){echo 'checked'; }else{ echo ''; } ?> >
|
@@ -732,7 +732,10 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
732 |
$reviews_service = new saswp_reviews_service();
|
733 |
|
734 |
$reviews = $reviews_service->saswp_get_reviews_list_by_parameters(null, null, 10, 1);
|
735 |
-
|
|
|
|
|
|
|
736 |
if($reviews){
|
737 |
|
738 |
foreach($reviews as $key => $val){
|
@@ -749,9 +752,7 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
749 |
|
750 |
}
|
751 |
|
752 |
-
}
|
753 |
-
|
754 |
-
?>
|
755 |
|
756 |
</div>
|
757 |
|
@@ -760,9 +761,12 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
760 |
?>
|
761 |
|
762 |
<div class="saswp-rv-not-found saswp_hide" data-type="review"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
763 |
-
|
764 |
-
|
765 |
-
|
|
|
|
|
|
|
766 |
</div>
|
767 |
|
768 |
<div class="saswp-global-container" id="saswp-add-rv-collection">
|
@@ -799,11 +803,14 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
799 |
<?php
|
800 |
echo '<input id="saswp_attached_collection" type="hidden" name="saswp_attached_collection" value="'. esc_attr($attached_col_json).'">';
|
801 |
?>
|
802 |
-
|
803 |
<div class="saswp-rv-not-found saswp_hide" data-type="collection"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
804 |
-
|
805 |
-
|
806 |
-
|
|
|
|
|
|
|
807 |
</div>
|
808 |
|
809 |
<div class="saswp-global-container" id="saswp-add-rv-manual">
|
@@ -1229,11 +1236,12 @@ function saswp_schema_type_add_meta_box_save( $post_id ) {
|
|
1229 |
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_cons', 0);
|
1230 |
|
1231 |
}
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
|
|
1237 |
if(isset($_POST['saswp_loc_display_on_front'])){
|
1238 |
update_post_meta( $post_id, 'saswp_loc_display_on_front', intval( $_POST['saswp_loc_display_on_front'] ) );
|
1239 |
}else{
|
@@ -1313,10 +1321,16 @@ function saswp_schema_type_add_meta_box_save( $post_id ) {
|
|
1313 |
}else{
|
1314 |
delete_post_meta( $post_id, 'saswp_itemlist_item_type');
|
1315 |
}
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
$common_obj = new saswp_view_common_class();
|
1321 |
|
1322 |
$post_obj[] = (object) array(
|
655 |
|
656 |
<tr>
|
657 |
<td>
|
658 |
+
<label for="saswp-enable-markup"><?php echo saswp_t_string( 'Add VideoObject markup, Only if video is available on the post' );?></label>
|
659 |
</td>
|
660 |
<td>
|
661 |
<input id="saswp-enable-markup" class="saswp-enable-markup-class" type="checkbox" name="saswp_enable_videoobject" value="1" <?php if(isset($enable_videoobject) && $enable_videoobject == 1){echo 'checked'; }else{ echo ''; } ?> >
|
732 |
$reviews_service = new saswp_reviews_service();
|
733 |
|
734 |
$reviews = $reviews_service->saswp_get_reviews_list_by_parameters(null, null, 10, 1);
|
735 |
+
// echo "<pre>";
|
736 |
+
// echo "ravi";
|
737 |
+
// print_r($reviews);
|
738 |
+
// die();
|
739 |
if($reviews){
|
740 |
|
741 |
foreach($reviews as $key => $val){
|
752 |
|
753 |
}
|
754 |
|
755 |
+
} ?>
|
|
|
|
|
756 |
|
757 |
</div>
|
758 |
|
761 |
?>
|
762 |
|
763 |
<div class="saswp-rv-not-found saswp_hide" data-type="review"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
764 |
+
<?php if(!empty($reviews) && count($reviews) >= 10){?>
|
765 |
+
<span class="spinner" data-type="review"></span>
|
766 |
+
<div><a class="saswp-load-more-rv" data-type="review"><?php echo saswp_t_string( 'Load More...' );?></a></div>
|
767 |
+
<?php }else{ ?>
|
768 |
+
<div class="saswp-rv-not-found saswp_hide" data-type="review"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
769 |
+
<?php } ?>
|
770 |
</div>
|
771 |
|
772 |
<div class="saswp-global-container" id="saswp-add-rv-collection">
|
803 |
<?php
|
804 |
echo '<input id="saswp_attached_collection" type="hidden" name="saswp_attached_collection" value="'. esc_attr($attached_col_json).'">';
|
805 |
?>
|
806 |
+
|
807 |
<div class="saswp-rv-not-found saswp_hide" data-type="collection"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
808 |
+
<?php if(!empty($reviews) && count($reviews) >= 10){?>
|
809 |
+
<span class="spinner" data-type="collection"></span>
|
810 |
+
<div><a class="saswp-load-more-rv" data-type="collection"><?php echo saswp_t_string( 'Load More...' );?></a></div>
|
811 |
+
<?php }else{ ?>
|
812 |
+
<div class="saswp-rv-not-found saswp_hide" data-type="collection"><?php echo saswp_t_string( 'Reviews not found' );?></div>
|
813 |
+
<?php } ?>
|
814 |
</div>
|
815 |
|
816 |
<div class="saswp-global-container" id="saswp-add-rv-manual">
|
1236 |
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_cons', 0);
|
1237 |
|
1238 |
}
|
1239 |
+
if(isset($_POST['schema_type'])){
|
1240 |
+
update_post_meta( $post_id, 'schema_type', sanitize_text_field( $_POST['schema_type'] ) );
|
1241 |
+
}else{
|
1242 |
+
delete_post_meta( $post_id, 'schema_type');
|
1243 |
+
}
|
1244 |
+
|
1245 |
if(isset($_POST['saswp_loc_display_on_front'])){
|
1246 |
update_post_meta( $post_id, 'saswp_loc_display_on_front', intval( $_POST['saswp_loc_display_on_front'] ) );
|
1247 |
}else{
|
1321 |
}else{
|
1322 |
delete_post_meta( $post_id, 'saswp_itemlist_item_type');
|
1323 |
}
|
1324 |
+
if(isset($_POST['saswp_attahced_reviews'])){
|
1325 |
+
update_post_meta( $post_id, 'saswp_attahced_reviews', json_decode(wp_unslash($_POST['saswp_attahced_reviews'])) );
|
1326 |
+
}else{
|
1327 |
+
delete_post_meta( $post_id, 'saswp_attahced_reviews');
|
1328 |
+
}
|
1329 |
+
if(isset($_POST['saswp_attached_collection'])){
|
1330 |
+
update_post_meta( $post_id, 'saswp_attached_collection', json_decode(wp_unslash($_POST['saswp_attached_collection'])) );
|
1331 |
+
}else{
|
1332 |
+
delete_post_meta( $post_id, 'saswp_attached_collection');
|
1333 |
+
}
|
1334 |
$common_obj = new saswp_view_common_class();
|
1335 |
|
1336 |
$post_obj[] = (object) array(
|