Version Description
(30 September 2022) = * Added: Option for turn off( hide) the ordered and unordered item list in FAQ #1698 * Added: Option in adding date format for reviews like 12 days ago #1713 * Added: Option to remove version number from source code #1715 * Added: Compatibility with Ultimate FAQ pro plugin #1719 * Added: Integration to fetch reviews with Ultimate member plugin. #1724 * Added: The "Pros and Cons Schema" for Reviews schema extension according to the new google guidelines. #1722 * Added: Review section in software application schema #1734 * Added: Backorder added in Product schema in availability #1735 * Added: "saswp_default_manage_option_capability" filter #1739 * Added: Default schema Json-LD created when not video schema type created for video pages #1742 * Fixed: Multiple video objects on same page (bonus for handling pagebreaks) #1705 * Fixed: Mylisting theme icon not showing when using our schema plugin #1731 * Fixed: Fatal Error only for login users while using Event Schema Extension (User Specific) #1738 * Fixed: Schema output button not working when we use Forminator plugin #1745
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.101 |
Comparing to | |
See all releases |
Code changes from version 1.9.100 to 1.9.101
- admin_section/common-function.php +28 -3
- admin_section/css/main-style.css +69 -1
- admin_section/css/main-style.min.css +1 -1
- admin_section/css/saswp-style.css +6 -0
- admin_section/css/saswp-style.min.css +1 -1
- admin_section/js/functions-list.js +102 -12
- admin_section/js/functions-list.min.js +1 -1
- admin_section/js/main-script.js +22 -0
- admin_section/js/main-script.min.js +1 -1
- admin_section/settings.php +49 -3
- core/3rd-party/youtube.php +12 -1
- core/array-list/compatibility-list.php +7 -0
- core/array-list/repeater-fields.php +24 -3
- core/array-list/schema-properties.php +9 -3
- modules/gutenberg/assets/blocks/faq.js +690 -488
- modules/gutenberg/assets/blocks/howto.js +71 -44
- modules/gutenberg/assets/css/editor.css +23 -4
- modules/gutenberg/includes/class-gutenberg.php +140 -94
- modules/rating-box/frontend.php +3 -2
- modules/reviews/reviews_collection.php +16 -11
- modules/reviews/reviews_service.php +90 -6
- output/compatibility.php +3 -0
- output/flexmls.php +5 -3
- output/function.php +63 -5
- output/markup.php +149 -3
- output/output.php +49 -5
- readme.txt +18 -1
- structured-data-for-wp.php +2 -2
- view/common.php +67 -8
- view/schema_type.php +118 -87
@@ -1821,7 +1821,9 @@ if ( ! defined('ABSPATH') ) exit;
|
|
1821 |
}
|
1822 |
|
1823 |
function saswp_defaultSettings(){
|
1824 |
-
|
|
|
|
|
1825 |
global $sd_data;
|
1826 |
|
1827 |
$sd_data = get_option( 'sd_data', saswp_default_settings_array());
|
@@ -3062,7 +3064,8 @@ function saswp_get_field_note($pname){
|
|
3062 |
'accordionfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/responsive-accordion-and-collapse">Accordion FAQ</a>',
|
3063 |
'webfaq10' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/faq-wd/">10WebFAQ</a>',
|
3064 |
'ultimatefaqs' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/ultimate-faqs/">Ultimate FAQs</a>',
|
3065 |
-
'
|
|
|
3066 |
'easyaccordion' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/easy-accordion-free/">Easy Accordion</a>',
|
3067 |
'wpresponsivefaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/sp-faq">WP responsive FAQ with category plugin</a>',
|
3068 |
'arconixfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/arconix-faq/">Arconix FAQ</a>',
|
@@ -3236,9 +3239,10 @@ function saswp_get_user_roles(){
|
|
3236 |
return $allroles;
|
3237 |
}
|
3238 |
|
|
|
3239 |
function saswp_get_capability_by_role($role){
|
3240 |
|
3241 |
-
$cap = 'manage_options';
|
3242 |
|
3243 |
switch ($role) {
|
3244 |
|
@@ -3506,7 +3510,14 @@ function saswp_get_video_metadata($content = ''){
|
|
3506 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3507 |
|
3508 |
if(!empty($video_meta)){
|
|
|
|
|
|
|
|
|
3509 |
$metadata['duration'] = $video_meta['duration'];
|
|
|
|
|
|
|
3510 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3511 |
}
|
3512 |
|
@@ -3545,7 +3556,14 @@ function saswp_get_video_metadata($content = ''){
|
|
3545 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3546 |
|
3547 |
if(!empty($video_meta)){
|
|
|
|
|
|
|
|
|
3548 |
$metadata['duration'] = $video_meta['duration'];
|
|
|
|
|
|
|
3549 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3550 |
}
|
3551 |
|
@@ -3586,7 +3604,14 @@ function saswp_get_video_metadata($content = ''){
|
|
3586 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3587 |
|
3588 |
if(!empty($video_meta)){
|
|
|
|
|
|
|
|
|
3589 |
$metadata['duration'] = $video_meta['duration'];
|
|
|
|
|
|
|
3590 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3591 |
}
|
3592 |
|
1821 |
}
|
1822 |
|
1823 |
function saswp_defaultSettings(){
|
1824 |
+
if(!function_exists('wp_get_current_user')) {
|
1825 |
+
include(ABSPATH . "wp-includes/pluggable.php");
|
1826 |
+
}
|
1827 |
global $sd_data;
|
1828 |
|
1829 |
$sd_data = get_option( 'sd_data', saswp_default_settings_array());
|
3064 |
'accordionfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/responsive-accordion-and-collapse">Accordion FAQ</a>',
|
3065 |
'webfaq10' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/faq-wd/">10WebFAQ</a>',
|
3066 |
'ultimatefaqs' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/ultimate-faqs/">Ultimate FAQs</a>',
|
3067 |
+
'ultimatemember' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/ultimate-member/">Ultimate Member</a>',
|
3068 |
+
'showcaseidx' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/showcase-idx/">Showcaseidx</a>',
|
3069 |
'easyaccordion' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/easy-accordion-free/">Easy Accordion</a>',
|
3070 |
'wpresponsivefaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/sp-faq">WP responsive FAQ with category plugin</a>',
|
3071 |
'arconixfaq' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/arconix-faq/">Arconix FAQ</a>',
|
3239 |
return $allroles;
|
3240 |
}
|
3241 |
|
3242 |
+
|
3243 |
function saswp_get_capability_by_role($role){
|
3244 |
|
3245 |
+
$cap = apply_filters('saswp_default_manage_option_capability', 'manage_options' );
|
3246 |
|
3247 |
switch ($role) {
|
3248 |
|
3510 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3511 |
|
3512 |
if(!empty($video_meta)){
|
3513 |
+
$metadata['title'] = $video_meta['title'];
|
3514 |
+
$metadata['description'] = $video_meta['description'];
|
3515 |
+
$metadata['viewCount'] = $video_meta['viewCount'];
|
3516 |
+
|
3517 |
$metadata['duration'] = $video_meta['duration'];
|
3518 |
+
|
3519 |
+
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3520 |
+
|
3521 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3522 |
}
|
3523 |
|
3556 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3557 |
|
3558 |
if(!empty($video_meta)){
|
3559 |
+
$metadata['title'] = $video_meta['title'];
|
3560 |
+
$metadata['description'] = $video_meta['description'];
|
3561 |
+
$metadata['viewCount'] = $video_meta['viewCount'];
|
3562 |
+
|
3563 |
$metadata['duration'] = $video_meta['duration'];
|
3564 |
+
|
3565 |
+
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3566 |
+
|
3567 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3568 |
}
|
3569 |
|
3604 |
$video_meta = SASWP_Youtube::getVideoInfo($vid, $sd_data['saswp-youtube-api']);
|
3605 |
|
3606 |
if(!empty($video_meta)){
|
3607 |
+
$metadata['title'] = $video_meta['title'];
|
3608 |
+
$metadata['description'] = $video_meta['description'];
|
3609 |
+
$metadata['viewCount'] = $video_meta['viewCount'];
|
3610 |
+
|
3611 |
$metadata['duration'] = $video_meta['duration'];
|
3612 |
+
|
3613 |
+
$metadata['uploadDate'] = $video_meta['uploadDate'];
|
3614 |
+
|
3615 |
$metadata['thumbnail_url'] = $video_meta['thumbnail']['sdDefault'];
|
3616 |
}
|
3617 |
|
@@ -1116,11 +1116,79 @@ Google review module ends here
|
|
1116 |
|
1117 |
.saswp-dynamic-properties
|
1118 |
{
|
1119 |
-
border: 1px solid #aaa;
|
1120 |
margin-top: 5px;
|
1121 |
margin-bottom: 5px;
|
|
|
1122 |
|
1123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1124 |
.saswp-table-close{
|
1125 |
float: right;
|
1126 |
cursor: pointer;
|
1116 |
|
1117 |
.saswp-dynamic-properties
|
1118 |
{
|
1119 |
+
/* border: 1px solid #aaa; */
|
1120 |
margin-top: 5px;
|
1121 |
margin-bottom: 5px;
|
1122 |
+
|
1123 |
|
1124 |
}
|
1125 |
+
.thepros_main_section_outer{
|
1126 |
+
background: #f5f5f5;
|
1127 |
+
border: 1px solid #ccc;
|
1128 |
+
padding: 20px;
|
1129 |
+
}
|
1130 |
+
.thepros_main_section_outer h3 {
|
1131 |
+
margin: 0;
|
1132 |
+
}
|
1133 |
+
.saswp-product_cons-table-div, .saswp-product_pros-table-div{
|
1134 |
+
border:none !important;
|
1135 |
+
}
|
1136 |
+
.saswp-product_cons-section-main {
|
1137 |
+
margin-top: 30px;
|
1138 |
+
}
|
1139 |
+
.hideoldclosebtn{
|
1140 |
+
display: none !important;
|
1141 |
+
}
|
1142 |
+
.saswp-table-close-new-td{
|
1143 |
+
cursor: pointer;
|
1144 |
+
}
|
1145 |
+
.saswp-table-close-new {
|
1146 |
+
color: #000;
|
1147 |
+
background: #dddd;
|
1148 |
+
padding: 4px 6px;
|
1149 |
+
border-radius: 80px;
|
1150 |
+
width: 16px;
|
1151 |
+
height: 20px;
|
1152 |
+
font-family: sans-serif;
|
1153 |
+
font-size: 12px;
|
1154 |
+
display: inline-block;
|
1155 |
+
text-align: center;
|
1156 |
+
line-height: 20px;
|
1157 |
+
}
|
1158 |
+
.saswp-table-close-new:hover {
|
1159 |
+
color: white !important;
|
1160 |
+
background: black;
|
1161 |
+
}
|
1162 |
+
.saswp-table-close{
|
1163 |
+
color: #000;
|
1164 |
+
background: #dddd;
|
1165 |
+
padding: 4px 6px;
|
1166 |
+
border-radius: 80px;
|
1167 |
+
width: 16px;
|
1168 |
+
height: 20px;
|
1169 |
+
font-family: sans-serif;
|
1170 |
+
font-size: 12px;
|
1171 |
+
display: inline-block;
|
1172 |
+
text-align: center;
|
1173 |
+
line-height: 20px;
|
1174 |
+
margin: 10px 0 0 0;
|
1175 |
+
}
|
1176 |
+
|
1177 |
+
.saswp-table-close:hover {
|
1178 |
+
color: white !important;
|
1179 |
+
background: black;
|
1180 |
+
}
|
1181 |
+
.saswp-product_reviews-section-main {
|
1182 |
+
background: #f5f5f5;
|
1183 |
+
border: 1px solid #ccc;
|
1184 |
+
padding: 20px;
|
1185 |
+
}
|
1186 |
+
.saswp-dynamic-properties {
|
1187 |
+
margin-top: 0;
|
1188 |
+
margin-bottom: 30px;
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
|
1192 |
.saswp-table-close{
|
1193 |
float: right;
|
1194 |
cursor: pointer;
|
@@ -1 +1 @@
|
|
1 |
-
#saswp-default-rating{width:100px!important}.saswp-settings-container .nav-tab-wrapper{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-item-list-div{display:flex;width:100%;align-items:center}.saswp-enable-modify-schema{padding-top:10px;padding-left:10px}.saswp-enable-modify-schema strong{margin-right:10px}.saswp-item-list-div{display:flex;width:100%;align-items:center}#saswp_item_list_tags{width:100%;margin-left:10px}#saswp_item_list_custom{width:100%;margin-left:10px}.saswp_warning{color:#ef6c00!important}.saswp_hide_imp{display:none!important}.saswp_hide{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-general table{margin-top:0}.saswp-general table td{padding:5px}.saswp-knowledge table th{width:auto;padding:0}.saswp-knowledge table{margin-top:0}.saswp-knowledge table td{padding:5px}.saswp-schema table th{width:auto;padding:0}.saswp-schema table{margin-top:0}.saswp-schema table td{padding:5px}.saswp-amp table th{width:auto;padding:0}.saswp-amp table{margin-top:0}.saswp-amp table td{padding:5px}.saswp-help table th{width:auto;padding:0}.saswp-support table th{width:auto;padding:0}.saswp-review table th{width:auto;padding:0}.saswp-help table{margin-top:0}.saswp-help table td{padding:5px}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-settings-list li div label{font-weight:600}.saswp-general h2{margin-bottom:0}.saswp-knowledge h2{margin-bottom:0}.saswp-schema h2{margin-bottom:0}.saswp-help h2{margin-bottom:0}.saswp-settings-form p.submit{margin-top:0}.saswp_qanda_p{font-weight:500}.saswp-display-none{display:none!important}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools table th{width:auto;padding:0}.saswp-tools table{margin-top:0}.saswp-tools table td{padding:5px}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-tools .saswp-knowledge-label{float:left}.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 transparent}.saswp-knowledge-base .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-knowledge-base .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds li{display:flex}.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.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-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style-type:circle;list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel a{text-decoration:none}.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;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;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-archive-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-archive-div .saswp-knowledge-label{float:left;clear:both}label[for=saswp_archive_schema_type]{padding-left:10px}label[for=saswp-single-price-type]{padding-left:10px}.saswp-amp .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-amp .saswp-knowledge-label{float:left;clear:both}.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-review .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-compativility-div .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-label{float:left;clear:both}.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-post-specific-wrapper{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;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee}#post_specific .inside{padding:0;margin:0}.saswp-star-rating{cursor:pointer}.saswp-post-specific-wrapper select{width:100%}.saswp-review-tables{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{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.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-review-item-list-table{padding-bottom:10px}#sasw-review input[type=text]{width:180px}#sasw-review input[type=number]{width:180px}#saswp-review-item-enable{width:10px}.saswp-enable-review-on-post{padding-bottom:10px}.saswp-enable-review-on-post label{font-weight:500}.saswp-compatibility table th{width:auto;padding:0}.saswp-compatibility .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-label{float:left;clear:both}.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-clear-images{margin-left:10px!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-compatibility .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name{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-switch input{opacity:0;width:0;height:0}.saswp-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#b5b5b5;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:10px;width:10px;left:2px;bottom:3px;background-color:#fff;transition:.4s;border-radius:20px}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{width:100%}.option-table-class tr td{padding:10px 10px 10px 10px}.option-table-class tr>td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table{width:100%}.saswp-custom-fields-table input{width:100%}.saswp-custom-fields-table tr td{padding:10px 10px 10px 10px}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp_breadcrumb_remove_cat_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000;font-weight:500;margin-bottom:-1px}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.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-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.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-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.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}.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-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-r5-rng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.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-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 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-ele-tlt p{margin-top:10px}.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-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{font-size:14px;color:#000}.saswp-sts-txt{font-size:14px;color:#000}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;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{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-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 tbody{width:100%}.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{display:inline-flex;width:100%;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-ov{text-align:center}.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;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.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 0}.saswp-rv-img img{max-width:100px}.saswp-g-review-header div{margin-top:10px}.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 h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;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 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-upgrade-pro a{background:#d2150a;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}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;top:12px;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-nav-menu-list label{padding-left:10px}.saswp-dynamic-properties{border:1px solid #aaa;margin-top:5px;margin-bottom:5px}.saswp-table-close{float:right;cursor:pointer}.saswp-table-create-onajax table td,.saswp-table-create-onajax table th{padding:5px}.saswp-table-create-onajax select{width:98%}.saswp-g-reviews-settings-table input{width:100%}.saswp-s-reviews-settings-table input{width:100%}.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-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 0;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-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;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{cursor:pointer}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;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-about-contact-page{width:75%;float:right}.saswp-about-contact-page-tooltip{float:left;clear:both}.saswp-quick-setup{float:left}.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-review-content-table input{width:100%}.saswp-review-content-table select{width:100%}.saswp-review-content-table textarea{width:100%}.saswp-social-links-table{width:100%}.saswp-social-links-table input{width:100%}.saswp-add-social-links{margin:3px!important}.saswp-social-links-table td{padding-left:0!important}#saswp-compatibility-tabs a{cursor:pointer}.saswp-add-dynamic-section{padding:0 30px}.saswp-add-dynamic-btn{text-align:center;margin-bottom:10px}.saswp-add-single-rv{margin-left:10px!important}.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:2;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-collection-preview-table{width:100%}.saswp-collection-preview-table td{width:30%}.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-collection-preview{padding:0 30px}.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;max-width:56px;min-height:56px;max-height:56px;border-radius:100px}.saswp-rc-a>img{max-width:56px;min-height:56px;max-height:56px;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-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-r2-strs{text-align:center}.saswp-rc-cnt p{margin: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-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;width:100%;grid-gap:0px 5px;align-items:center;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:all .5s ease-in-out 0s;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input{width:100%}.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-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.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;border-top:1px solid #ddd}.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:normal 16px/20px dashicons}.cancel-btn{margin-right:10px;margin-bottom:5px;float:left;display:inline-flex}.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:normal 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-rd3-warp li a{text-decoration:none}.saswp-r3-lg{background:#ededed;display:flex;align-items:center;justify-content:center;width:100%;padding:6px 8px;box-sizing:border-box}.saswp-r3-lg span img{width:18px;height:18px;margin-right:10px}.saswp-r3-lg span{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-lg{line-height:0}.saswp-r3-rtng{padding:13px 10px 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:all .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-r5 a{text-decoration:none}.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-reviews-cntn{display:none}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn{width:100%}.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}.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 .saswp-r4-str{margin-right:10px}.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 0!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}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide{display:none}span.saswp-mines{line-height:0}.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}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-rd2-warp .saswp-rc-cnt{height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-rc{padding:20px}.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{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{text-align:center}.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 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-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)}.saswp-si .saswp-rc-cnt{margin:0}.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(135deg);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}.saswp-onclick-show{display:none}.saswp-dp-dsg.saswp_hide{display:none}@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 0;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{background:#d2150a;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}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f}.saswp-hide{display:none}.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 0}.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 2px 15px}.saswp-upgrade-pro a{background:#43a047}.saswp-upgrade-pro{border-radius:8px}.saswp-settings-second-div a{text-decoration:none}.saswp-thick-box-container{width:580px}#saswp-add-rv-manual{padding:10px}#saswp-add-rv-automatic,#saswp-add-rv-collection{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.saswp-add-collection-loop,.saswp-add-rv-loop{padding-bottom:10px}.saswp-add-rv-title{padding:10px}.close-attached-reviews-popup{float:right;margin-right:20px!important}.saswp-add-rv-note{padding-bottom:10px}.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-ps-text span{font-weight:600}.saswp-ps-toggle{padding:10px}.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 #saswp_specific_custom textarea{width:100%!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;border-radius:40px;padding:1px 1px 0 0;top:1px;margin:0;font-size:14px}.pro_icon{margin:0;font-size:16px;margin-left:3px;margin-top:1px;right:5px}.expiredinner_span{color:green}i.dashicons-before.dashicons-admin-generic{color:#666}#exp{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;border-radius:40px;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}span.renew-lic{font-size:14px}.sasfwp_key_user_name{font-weight:700}.before_msg{margin-left:4px;cursor:default}.before_msg_active{margin-left:3px}.saswp_addon_inactive{margin-left:3px}.ext_settings_url{margin-left:8px;text-decoration:unset}.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}a.ext_url{text-decoration:unset}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-woocommerce-dashicons{float:right;margin-right:45px}.saswp-addon-no{position:relative;display:block}span.saswp_addon_icon.dashicons.dashicons-yes.pro_icon{top:0;position:relative}p#enter_key_reviews{position:relative;top:20px}p.enter_key_Reviews{position:relative;top:8px}label.saswp-sts-txt{font-size:14px;color:#000}p#enter_key_woocommerce{position:relative;top:20px}input.license_key_input_active::placeholder{color:#000}.saswp-sts-active-main{margin-top:-21px;padding:6px 15px}.saswp-active-input{float:left}span.addon-activated{color:green;padding-left:5px}.saswp-sts-deactive-main{margin-top:-21px;padding:6px 15px}.saswp-sts-active-main.woocommerce_addon{margin-top:0}.saswp-deactive-input.woocommerce_addon{margin:-49px 0 0 0}.saswp-addon-sub-inactive.woocommerce{margin:29px 0 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;margin-right:45px;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-sts-deactive-main.reviews_addon{margin-top:0}.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}input.license_key_input_inactive.reviews_addon_inactive{display:none}a.button.button-default.saswp_license_activation.reviews{display:none}a#saswp_license_deactivationbtn{display:none}a#saswp_license_activation_{display:none}.license_key_input_inactive{top:0}span.reviews_inactive{padding-left:5px;font-weight:400}.form-wrap label{display:block;padding:0 0}.form-wrap label{display:block;padding:8px 0}.saswp-sts-active-main.reviews_addon{margin:-7px 0 0 -1em}input.license_key_input_active{margin-left:10px}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}a#saswp_license_deactivation_internal{display:none}.inner_span_expiring{color:red;margin-right:2px}i#refresh_license_icon_top{cursor:pointer;display:none}.dashicons.spin{animation:dashicons-spin 2s infinite;animation-timing-function:linear}@keyframes dashicons-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}span#lic_exp{color:red;margin-left:4px}i#refresh_expired_addon{cursor:pointer;display:none}i#user_refresh_expired_addon{cursor:pointer}span.one_of_expired{color:red}.pro_warning{color:#ffb229;right:3px;position:relative;bottom:1px}.saswppro_alert{color:#ffb229;top:2px;position:relative;right:1px}#lic_active{color:green;margin-left:8px}.saswp-license-tenure{display:inline-block;margin-top:8px}.lic_is_active{color:#000}#lic_inactive{color:#bebfc0;margin-left:8px}.single_addon_warning{color:#ffb229}.expire_msg{color:red}.less_than_zero{color:red;cursor:default}.lifetime_{color:green}.saswp_pro_alert{color:#ffb229}.user_refresh_single_addon{cursor:pointer}.saswp_pro_alert{color:#ffb229}.single_addon_warning{color:#ffb229}.saswp-license-tenure{display:inline-block;margin-top:8px}.before_msg{margin-left:4px;cursor:default}label.saswp-sts-txt{font-size:14px;color:#000}span.renew-lic{font-size:14px}.saswp_inactive_key{color:#bebfc0;padding-left:5px}span.inactive_status_reviews{padding-left:5px;font-weight:400}label.saswp-sts-txt.active{font-weight:400}span.inactive_Reviews{font-weight:400;font-size:14px;color:#000}.saswp-sts-active-main.reviews_addon span.saswp-license-tenure{display:none}
|
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}
|
@@ -19,6 +19,12 @@
|
|
19 |
margin-bottom: 8px;
|
20 |
width: 100%;
|
21 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
.saswp-input-fields label{
|
23 |
width: 130px;
|
24 |
}
|
19 |
margin-bottom: 8px;
|
20 |
width: 100%;
|
21 |
}
|
22 |
+
.saswp-product_pros-section-main, .saswp-product_cons-section-main {
|
23 |
+
display: none;
|
24 |
+
}
|
25 |
+
.saswp-product_pros-section-main.thepros_main_section{
|
26 |
+
margin-bottom: 30px;
|
27 |
+
}
|
28 |
.saswp-input-fields label{
|
29 |
width: 130px;
|
30 |
}
|
@@ -1 +1 @@
|
|
1 |
-
.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;
|
1 |
+
.saswp-pc-wrap,.saswp-rvw-str{display:inline-flex;width:100%}.saswp-panel h3,.saswp-rvw-ov{text-align:center}.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-rv-txt p{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-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-g-plus img,.saswp-rvw tbody{width:100%}.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 .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-product_cons-section-main,.saswp-product_pros-section-main{display:none}.saswp-product_pros-section-main.thepros_main_section{margin-bottom:30px}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;margin:10px 0 20px}.saswp-input-fields a.button-primary{margin-top:10px}.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:20px;height:20px;position:absolute;right:0;top:4px}.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;display:inline-block;vertical-align:middle}.saswp-rv-cnt p,.saswp-rv-txt{line-height:1.6;margin:10px 0 0}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.widget-area .saswp-str-rtng .saswp-rvw-str{padding:10px 0 0}.saswp-rv-cnt p{font-size:16px;color:#000}.saswp-rv-img img{max-width:100px;border-radius:100%}.widget .saswp-rv-img img,.widget-area .saswp-rv-img img{max-width:50px}.widget .saswp-glg-review-body,.widget-area .saswp-glg-review-body{display:inline-block;width:100%}.widget-area .saswp-rv-img{width:60px;float:left}@media(max-width:767px){.saswp-glg-review-body{grid-template-columns:50px 1fr}.saswp-rv-img img{max-width:50px}}.widget .saswp-rv-img{margin-bottom:12px}.saswp-rv-txt{position:static;height:80px;overflow-y:auto;font-size:14px;text-align:left;padding:0 2px 0 0}.saswp-rv-txt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rv-txt::-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-rv-txt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px}.saswp-r5-rng{position:relative}
|
@@ -9,9 +9,8 @@
|
|
9 |
var saswp_grid_page = 1;
|
10 |
|
11 |
function saswp_convert_datetostring(date_str){
|
12 |
-
|
13 |
var date_time = {};
|
14 |
-
|
15 |
if(date_str){
|
16 |
|
17 |
var date_string = new Date(date_str);
|
@@ -23,7 +22,8 @@
|
|
23 |
var formated_date = date_string.toLocaleDateString();
|
24 |
|
25 |
var date_format = jQuery(".saswp-collection-date-format").val();
|
26 |
-
|
|
|
27 |
if(date_format && date_format == 'Y-m-d'){
|
28 |
formated_date = y + "-" + m + "-" + d;
|
29 |
}
|
@@ -31,6 +31,11 @@
|
|
31 |
formated_date = d + "-" + m + "-" + y;
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
date_time = {
|
35 |
time : date_string.toLocaleTimeString(),
|
36 |
date : formated_date
|
@@ -45,6 +50,49 @@
|
|
45 |
return date_time;
|
46 |
|
47 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
function saswp_taxonomy_term_html(taxonomy, field_name){
|
50 |
|
@@ -80,7 +128,25 @@
|
|
80 |
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
81 |
}
|
82 |
saswp_enable_rating_automate();
|
83 |
-
}).change();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
}
|
@@ -391,11 +457,26 @@
|
|
391 |
}
|
392 |
|
393 |
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
394 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
var html = '';
|
396 |
|
397 |
html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
|
398 |
-
+
|
|
|
399 |
+ '<table class="form-table saswp-'+div_type+'-table">'
|
400 |
|
401 |
jQuery.each(schema_fields, function(eachindex, element){
|
@@ -412,7 +493,8 @@
|
|
412 |
case "text":
|
413 |
|
414 |
html += '<tr>'
|
415 |
-
+ '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="'+element.type+'" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
|
|
|
416 |
+ '</tr>';
|
417 |
|
418 |
break;
|
@@ -722,7 +804,9 @@
|
|
722 |
function saswp_review_desing_for_slider(value){
|
723 |
|
724 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
725 |
-
|
|
|
|
|
726 |
var html = '';
|
727 |
|
728 |
html += '<div class="saswp-r2-sli">';
|
@@ -941,7 +1025,9 @@
|
|
941 |
review_count++;
|
942 |
|
943 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
944 |
-
|
|
|
|
|
945 |
html_list += '<li>';
|
946 |
html_list += '<div class="saswp-r4-b">';
|
947 |
html_list += '<span class="saswp-r4-str">';
|
@@ -1019,7 +1105,9 @@
|
|
1019 |
jQuery.each(saswp_total_collection, function(index, value){
|
1020 |
|
1021 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
1022 |
-
|
|
|
|
|
1023 |
html += '<div id="'+index+'" class="saswp-r5">';
|
1024 |
html += '<div class="saswp-r5-r">';
|
1025 |
html += '<div class="saswp-r5-lg">';
|
@@ -1171,7 +1259,7 @@
|
|
1171 |
if(saswp_total_collection){
|
1172 |
|
1173 |
var grid_col = saswp_total_collection;
|
1174 |
-
|
1175 |
if(pagination && perpage > 0){
|
1176 |
|
1177 |
grid_col = grid_col.slice(offset, nextpage);
|
@@ -1180,7 +1268,9 @@
|
|
1180 |
jQuery.each(grid_col, function(index, value){
|
1181 |
|
1182 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
1183 |
-
|
|
|
|
|
1184 |
html += '<li>';
|
1185 |
html += '<div class="saswp-rc">';
|
1186 |
html += '<div class="saswp-rc-a">';
|
9 |
var saswp_grid_page = 1;
|
10 |
|
11 |
function saswp_convert_datetostring(date_str){
|
|
|
12 |
var date_time = {};
|
13 |
+
|
14 |
if(date_str){
|
15 |
|
16 |
var date_string = new Date(date_str);
|
22 |
var formated_date = date_string.toLocaleDateString();
|
23 |
|
24 |
var date_format = jQuery(".saswp-collection-date-format").val();
|
25 |
+
|
26 |
+
|
27 |
if(date_format && date_format == 'Y-m-d'){
|
28 |
formated_date = y + "-" + m + "-" + d;
|
29 |
}
|
31 |
formated_date = d + "-" + m + "-" + y;
|
32 |
}
|
33 |
|
34 |
+
if(date_format && date_format == 'days'){
|
35 |
+
formated_date = saswp_get_day_ago(date_string);
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
date_time = {
|
40 |
time : date_string.toLocaleTimeString(),
|
41 |
date : formated_date
|
50 |
return date_time;
|
51 |
|
52 |
};
|
53 |
+
|
54 |
+
function saswp_get_day_ago(date) {
|
55 |
+
if (typeof date !== 'object') {
|
56 |
+
date = new Date(date);
|
57 |
+
}
|
58 |
+
|
59 |
+
var seconds = Math.floor((new Date() - date) / 1000);
|
60 |
+
var intervalType;
|
61 |
+
|
62 |
+
var interval = Math.floor(seconds / 31536000);
|
63 |
+
if (interval >= 1) {
|
64 |
+
intervalType = 'year';
|
65 |
+
} else {
|
66 |
+
interval = Math.floor(seconds / 2592000);
|
67 |
+
if (interval >= 1) {
|
68 |
+
intervalType = 'month';
|
69 |
+
} else {
|
70 |
+
interval = Math.floor(seconds / 86400);
|
71 |
+
if (interval >= 1) {
|
72 |
+
intervalType = 'day';
|
73 |
+
} else {
|
74 |
+
interval = Math.floor(seconds / 3600);
|
75 |
+
if (interval >= 1) {
|
76 |
+
intervalType = "hour";
|
77 |
+
} else {
|
78 |
+
interval = Math.floor(seconds / 60);
|
79 |
+
if (interval >= 1) {
|
80 |
+
intervalType = "minute";
|
81 |
+
} else {
|
82 |
+
interval = seconds;
|
83 |
+
intervalType = "second";
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
if (interval > 1 || interval === 0) {
|
91 |
+
intervalType += 's';
|
92 |
+
}
|
93 |
+
return interval + ' ' + intervalType+' ago';
|
94 |
+
};
|
95 |
+
|
96 |
|
97 |
function saswp_taxonomy_term_html(taxonomy, field_name){
|
98 |
|
128 |
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
129 |
}
|
130 |
saswp_enable_rating_automate();
|
131 |
+
}).change();
|
132 |
+
|
133 |
+
jQuery("#saswp_schema_type_product_pros_enable_pros").change(function(){
|
134 |
+
if(jQuery(this).is(':checked')){
|
135 |
+
jQuery('.thepros_main_section_outer').show();
|
136 |
+
// jQuery('.saswp-product_pros-section-main, .saswp-product_cons-section-main').show();
|
137 |
+
}else{
|
138 |
+
jQuery('.thepros_main_section_outer').hide();
|
139 |
+
// jQuery('.saswp-product_pros-section-main, .saswp-product_cons-section-main').hide();
|
140 |
+
}
|
141 |
+
}).change();
|
142 |
+
|
143 |
+
// jQuery("#saswp_schema_type_product_pros_enable_cons").change(function(){
|
144 |
+
// if(jQuery(this).is(':checked')){
|
145 |
+
// jQuery('.saswp-product_cons-section-main').show();
|
146 |
+
// }else{
|
147 |
+
// jQuery('.saswp-product_cons-section-main').hide();
|
148 |
+
// }
|
149 |
+
// }).change();
|
150 |
}
|
151 |
|
152 |
}
|
457 |
}
|
458 |
|
459 |
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
460 |
+
// console.log(fields_type);
|
461 |
+
$newclosebtn = '';
|
462 |
+
otherRepeatorClose = '';
|
463 |
+
$reviewtitle = index+1
|
464 |
+
if(fields_type == 'product_pros_' || fields_type == 'product_cons_'){
|
465 |
+
$newclosebtn = '<td class="saswp-table-close-new-td"><a class="saswp-table-close-new">X</a></td>';
|
466 |
+
|
467 |
+
}else{
|
468 |
+
otherRepeatorClose = '<a class="saswp-table-close">X</a>';
|
469 |
+
}
|
470 |
+
$addRevewTitle = '';
|
471 |
+
if(fields_type == 'product_reviews_'){
|
472 |
+
$addRevewTitle = '<h3 style="float: left;">Review '+$reviewtitle+'</h3>';
|
473 |
+
}
|
474 |
+
|
475 |
var html = '';
|
476 |
|
477 |
html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
|
478 |
+
+ $addRevewTitle
|
479 |
+
+ otherRepeatorClose
|
480 |
+ '<table class="form-table saswp-'+div_type+'-table">'
|
481 |
|
482 |
jQuery.each(schema_fields, function(eachindex, element){
|
493 |
case "text":
|
494 |
|
495 |
html += '<tr>'
|
496 |
+
+ '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="'+element.type+'" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
|
497 |
+
+$newclosebtn
|
498 |
+ '</tr>';
|
499 |
|
500 |
break;
|
804 |
function saswp_review_desing_for_slider(value){
|
805 |
|
806 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
807 |
+
if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
|
808 |
+
date_str.date = value.saswp_review_date;
|
809 |
+
}
|
810 |
var html = '';
|
811 |
|
812 |
html += '<div class="saswp-r2-sli">';
|
1025 |
review_count++;
|
1026 |
|
1027 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
1028 |
+
if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
|
1029 |
+
date_str.date = value.saswp_review_date;
|
1030 |
+
}
|
1031 |
html_list += '<li>';
|
1032 |
html_list += '<div class="saswp-r4-b">';
|
1033 |
html_list += '<span class="saswp-r4-str">';
|
1105 |
jQuery.each(saswp_total_collection, function(index, value){
|
1106 |
|
1107 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
1108 |
+
if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
|
1109 |
+
date_str.date = value.saswp_review_date;
|
1110 |
+
}
|
1111 |
html += '<div id="'+index+'" class="saswp-r5">';
|
1112 |
html += '<div class="saswp-r5-r">';
|
1113 |
html += '<div class="saswp-r5-lg">';
|
1259 |
if(saswp_total_collection){
|
1260 |
|
1261 |
var grid_col = saswp_total_collection;
|
1262 |
+
|
1263 |
if(pagination && perpage > 0){
|
1264 |
|
1265 |
grid_col = grid_col.slice(offset, nextpage);
|
1268 |
jQuery.each(grid_col, function(index, value){
|
1269 |
|
1270 |
var date_str = saswp_convert_datetostring(value.saswp_review_date);
|
1271 |
+
// if(value.saswp_is_date_in_days != '' && value.saswp_is_date_in_days == 'days'){
|
1272 |
+
// date_str.date = value.saswp_review_date;
|
1273 |
+
// }
|
1274 |
html += '<li>';
|
1275 |
html += '<div class="saswp-rc">';
|
1276 |
html += '<div class="saswp-rc-a">';
|
@@ -1 +1 @@
|
|
1 |
-
var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s),t=a.getDate(),i=a.getMonth();i+=1;var n=a.getFullYear(),p=a.toLocaleDateString(),r=jQuery(".saswp-collection-date-format").val();r&&"Y-m-d"==r&&(p=n+"-"+i+"-"+t),r&&"d-m-Y"==r&&(p=t+"-"+i+"-"+n),e={time:a.toLocaleTimeString(),date:p}}else e={time:"",date:""};return e}function saswp_taxonomy_term_html(s,e){var a="";return a+="<td>",a+='<select name="saswp_taxonomy_term['+e+']">',jQuery.each(s,function(s,e){a+='<option value="'+s+'">'+e+"</option>"}),a+="</select>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide(),saswp_enable_rating_automate()}).change()}function saswp_enable_rating_automate(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-automate-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")&&jQuery(this).is(":visible")?(jQuery(this).parent().parent().next().show(),jQuery(this).parent().parent().next().next().hide(),jQuery(this).parent().parent().next().next().next().hide()):(jQuery(this).parent().parent().next().hide(),jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).is(":checked")&&(jQuery(this).parent().parent().next().next().show(),jQuery(this).parent().parent().next().next().next().show()))}).change()}function getParameterByName(s,e){e||(e=window.location.href),s=s.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(e);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||!jQuery(".saswp-custom-fields-select2").length||jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,e,a=null){var t=e.val(),i=saswp_localize_data.post_id,n=jQuery(e).attr("data-id"),p=jQuery(e).attr("post-specific"),r=jQuery(".saswp_modify_this_schema_hidden_"+n).val();append_id=null==a?jQuery("#saswp_specific_"+n):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:r,schema_type:s,schema_id:n,post_specific:p,item:t,post_id:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(append_id).find(".saswp-table-create-onajax").remove();var e=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(append_id).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var e="";(jQuery("select#schema_type option:selected").val()&&(e=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(e=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===e)&&saswp_item_reviewed_ajax(e,jQuery(this))}).change()}function saswp_compatibliy_notes(s,e){var a=e.replace("-checkbox",""),t=jQuery("#"+a).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+a).next("p").removeClass("saswp_hide"):1==jQuery("#"+a).next("p").attr("data-id")?jQuery("#"+a).next("p").text("This feature is only available in pro version"):jQuery("#"+a).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,e,a,t,i,n){var p=t;null==p&&(p=Object.keys(a)[0]);var r="";if(r+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+p+']">',jQuery.each(e,function(s,e){r+='<optgroup label="'+e.label+'">',jQuery.each(e["meta-list"],function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),r+="</optgroup>"}),r+="</select>",a){var l=jQuery("select#schema_type option:selected").val(),c="";"Review"==l&&(c=jQuery("select.saswp-item-reivewed-list option:selected").val());var o="<tr>";o+="<td>",o+='<select class="saswp-custom-fields-name">',"Review"==l&&(o+='<optgroup label="Review">',o+='<option value="saswp_review_name">Review Name</option>',o+='<option value="saswp_review_description">Review Description</option>',o+='<option value="saswp_review_body">Review Body</option>',o+='<option value="saswp_review_author">Review Author</option>',o+='<option value="saswp_review_author_url">Review Author Profile URL</option>',o+='<option value="saswp_review_publisher">Review Publisher</option>',o+='<option value="saswp_review_publisher_url">Review Publisher URL</option>',o+='<option value="saswp_review_rating_value">Review Rating Value</option>',o+='<option value="saswp_review_date_published">Review Published Date</option>',o+='<option value="saswp_review_date_modified">Review Modified Date</option>',o+='<option value="saswp_review_url">Review URL</option>',o+="</optgroup>"),"Review"==l&&(o+='<optgroup label="'+c+'">'),jQuery.each(a,function(s,e){o+='<option value="'+s+'">'+e+"</option>"}),"Review"==l&&(o+="</optgroup>"),o+="</select>",o+="</td>",o+="<td>",o+=r,o+="</td>",o+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',o+="</tr>",jQuery(".saswp-custom-fields-table").append(o),null!=s&&s.removeClass("updating-message")}else jQuery(i).html(r),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,e,a,t,i,n){saswp_meta_list[e]?saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(p){saswp_meta_list[e]=p[e],saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n)},"json")}function saswp_get_post_specific_schema_fields(s,e,a,t,i,n,p){if(saswp_meta_fields[n]){var r=saswp_fields_html_generator(e,i,n,t,saswp_meta_fields[n]);r&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(r),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",schema_id:i,schema_type:p,meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a;var p=saswp_fields_html_generator(e,i,n,t,a);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,e,a,t,i){var n="";return n+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',jQuery.each(i,function(t,i){var p="";switch((i.name.indexOf("published_date")>-1||i.name.indexOf("date_created")>-1||i.name.indexOf("created_date")>-1||i.name.indexOf("modified_date")>-1||i.name.indexOf("date_published")>-1||i.name.indexOf("date_modified")>-1)&&(p="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+p+'" style="width:100%" type="'+i.type+'" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']"></td></tr>';break;case"textarea":n+="<tr><th>"+i.label+'</th><td><textarea style="width: 100%" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']" rows="5"></textarea></td></tr>';break;case"select":var r="";jQuery.each(i.options,function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']">'+r+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+s+"_"+e+'" name="'+i.name+"_"+s+"_"+e+'"><input type="hidden" data-id="'+i.name+"_"+s+"_"+e+'_id" name="'+a+e+"["+s+"]["+i.name+'_id]" id="'+i.name+"_"+s+"_"+e+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+s+"_"+e+'_button" name="'+i.name+"_"+s+"_"+e+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+s+"_"+e+'"></div></fieldset></td></tr>'}}),n+="</table></div>"}function saswp_create_total_collection(s,e){var a="";for(var t in saswp_total_collection=[],saswp_collection)saswp_collection[t]&&(jQuery.each(saswp_collection[t],function(a,t){rmv_boolean?t.is_remove=!0:t.is_remove=!1,s?t.saswp_review_rating>=e&&saswp_total_collection.push(t):saswp_total_collection.push(t)}),a+=saswp_function_added_platform(t,saswp_collection[t].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(a)}function saswp_create_rating_html_by_value(s){var e="";e+='<div class="saswp-rvw-str">';for(var a=0;a<5;a++)if(s>a){var t=s.split(".");t[1]?a<t[0]?e+='<span class="str-ic"></span>':e+='<span class="half-str"></span>':e+='<span class="str-ic"></span>'}else e+='<span class="df-clr"></span>';return e+="</div>"}function saswpChunkArray(s,e){for(var a=JSON.parse(JSON.stringify(s)),t=[];a.length;)t.push(a.splice(0,e));return t}function saswp_function_added_platform(s,e){var a="";return e>0&&(a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+e+")</span>",a+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+e+'">',a+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',a+="</div>"),a}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),e=s.find(".saswp-sic");function a(){var s=0;jQuery(e).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),e.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=e.find(".saswp-si.saswp-active").offset().left-e.offset().left;e.css({transform:"translate( -"+s+"px, 0px)"})}}0==e.find(".saswp-si.saswp-active").length&&e.find(".saswp-si").first().addClass("saswp-active"),a(),t(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length;for(i=0;i<t;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(a).addClass("saswp-active")}(),jQuery(document).ready(function(){a(),t()}),jQuery(window).resize(function(){a(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=0;t=a+1>e.find(".saswp-si").length-1?0:a+1;var i=e.find(".saswp-si").eq(t),n=e.offset().left,p=i.offset().left-n;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),i.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active"),e.css({transform:"translate( -"+p+"px, 0px)"})}()}),p.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length,i=0;i=a-1<0?t-1:a-1;var n=e.find(".saswp-si").eq(i),p=e.offset().left,r=n.offset().left-p;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),n.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(i).addClass("saswp-active"),e.css({transform:"translate( -"+r+"px, 0px)"})}()}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(a){var t=jQuery(this).index(),i=e.find(".saswp-si").eq(t).offset().left-e.offset().left;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),e.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),e.css({transform:"translate( -"+i+"px, 0px)"})})})}function saswp_review_desing_for_slider(s){var e=saswp_convert_datetostring(s.saswp_review_date),a="";return a+='<div class="saswp-r2-sli">',a+='<div class="saswp-r2-b">',a+='<div class="saswp-r2-q">',a+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',a+="</div>",a+='<div class="saswp-rc-cnt">',a+="<p>",a+=s.saswp_review_text,a+="</p>",a+="</div>",a+='<div class="saswp-r2-strs">',a+='<span class="saswp-r2-s">',a+=saswp_create_rating_html_by_value(s.saswp_review_rating),a+="</span>",a+="</div>",a+="</div>",a+='<div class="saswp-rc">',a+='<div class="saswp-rc-a">',a+='<img src="'+s.saswp_reviewer_image+'"/>',a+='<div class="saswp-rc-nm">',a+='<a href="#">'+s.saswp_reviewer_name+"</a>",a+='<span class="saswp-rc-dt">'+e.date+"</span>",a+="</div>",a+='<div class="saswp-rc-lg">',a+='<img src="'+s.saswp_review_platform_icon+'"/>',a+="</div>",a+="</div>",a+="</div>",a+="</div>"}function saswp_create_collection_slider(s,e,a){var t="";if(saswp_total_collection.length>0){if(t+="slider"==s?'<div class="saswp-cst">':'<div class="saswp-cct">',t+='<div class="saswp-cs">',t+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,e){t+='<div class="saswp-si">',t+=saswp_review_desing_for_slider(e),t+="</div>"}),"carousel"==s){var i=saswpChunkArray(saswp_total_collection,3);i&&jQuery.each(i,function(s,e){t+='<div class="saswp-si">',jQuery.each(e,function(s,e){t+=saswp_review_desing_for_slider(e)}),t+="</div>"})}t+="</div>",e&&(t+='<div class="saswp-slider-controls">',t+='<a href="#" class="saswp-slider-prev-btn"></a>',t+='<a href="#" class="saswp-slider-next-btn"></a>',t+="</div>"),a&&(t+='<div class="saswp-slider-dots">',t+="</div>"),t+="</div>",t+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(t),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var e in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var a="",t="",i=0,n=0,p=1,r="";jQuery.each(saswp_collection[e],function(s,e){r=e.saswp_review_location_id,a=e.saswp_review_platform_icon,"Self"==(t=e.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),n+=parseFloat(e.saswp_review_rating),i++}),n>0&&(p=n/i),saswp_collection[e]&&(s+="<li>",s+='<a target="_blank" href="'+r+'">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+a+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=p.toFixed(1),s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(p.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+=saswp_localize_data.trans_based_on+" "+i+" "+saswp_localize_data.trans_reviews,s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",e="";if(saswp_total_collection.length>0){var a=0,t=0,i=1;jQuery.each(saswp_total_collection,function(s,i){platform_icon=i.saswp_review_platform_icon,t+=parseFloat(i.saswp_review_rating),a++;var n=saswp_convert_datetostring(i.saswp_review_date);e+="<li>",e+='<div class="saswp-r4-b">',e+='<span class="saswp-r4-str">',e+=saswp_create_rating_html_by_value(i.saswp_review_rating),e+="</span>",e+='<span class="saswp-r4-tx">'+n.date+"</span>",e+="</div>",e+='<div class="saswp-r4-cnt">',e+="<h3>"+i.saswp_reviewer_name+"</h3>",e+="<p>"+i.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),t>0&&(i=t/a),a>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</li>",s+=e,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,e){var a="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,e){var t=saswp_convert_datetostring(e.saswp_review_date);a+='<div id="'+s+'" class="saswp-r5">',a+='<div class="saswp-r5-r">',a+='<div class="saswp-r5-lg">',a+="<span>",a+='<img height="70" width="70" src="'+e.saswp_review_platform_icon+'"/>',a+="</span>",a+="</div>",a+='<div class="saswp-r5-rng">',a+=saswp_create_rating_html_by_value(e.saswp_review_rating),a+='<div class="saswp-r5-txrng">',a+="<span>"+e.saswp_review_rating+" Stars</span>",a+="<span>by</span>",a+="<span>"+e.saswp_reviewer_name+"</span>",a+="</div>",a+='<span class="saswp-r5-dt">'+t.date+"</span>",a+="</div>",a+="</div>",a+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(a),saswp_fomo_slide(s,e)}function saswp_fomo_slide(s,e){var a=jQuery(".saswp-collection-preview .saswp-r5"),t=a.length,i=0;!function s(){a.eq(i%t).fadeIn(6e3,function(){a.eq(i%t).fadeOut(3e3,s),i++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)});break;case"random":saswp_total_collection.sort(function(s,e){return.5-Math.random()})}}function saswp_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,e){saswp_total_reviews.push(e.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,e,a,t,i){var n="",p="",r=0;if(saswp_total_collection.length>0){r=Math.ceil(saswp_total_collection.length/a),n+='<div class="saswp-r1">';for(var l=1;l<=s;l++)p+=" 1fr";if(s.length>3?n+='<ul style="grid-template-columns:'+p+';overflow-y: scroll;">':n+='<ul style="grid-template-columns:'+p+';overflow-y:hidden;">',saswp_total_collection){var c=saswp_total_collection;e&&a>0&&(c=c.slice(t,i)),jQuery.each(c,function(s,e){var a=saswp_convert_datetostring(e.saswp_review_date);n+="<li>",n+='<div class="saswp-rc">',n+='<div class="saswp-rc-a">',n+='<div class="saswp-r1-aimg">',n+='<img src="'+e.saswp_reviewer_image+'" width="56" height="56"/>',n+="</div>",n+='<div class="saswp-rc-nm">',n+='<a href="#">'+e.saswp_reviewer_name+"</a>",n+=saswp_create_rating_html_by_value(e.saswp_review_rating),a.date&&(n+='<span class="saswp-rc-dt">'+a.date+"</span>"),n+="</div>",n+="</div>",n+='<div class="saswp-rc-lg">',n+='<img src="'+e.saswp_review_platform_icon+'"/>',n+="</div>",n+="</div>",n+='<div class="saswp-rc-cnt">',n+="<p>"+e.saswp_review_text+"</p>",n+="</div>",e.is_remove&&(n+='<span platform-id="'+e.saswp_review_platform+'" data-id="'+e.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),n+="</li>"})}if(n+="</ul>",r>0&&e){n+='<div class="saswp-grid-pagination">',n+='<a class="saswp-grid-page" data-id="1" href="#">«</a>';var o=parseInt(saswp_grid_page)-3,_=parseInt(saswp_grid_page)+3;for(l=1;l<=r;l++){var w="saswp_hide";l>o&&l<_&&(w=""),n+=l==saswp_grid_page?'<a class="active saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>":'<a class="saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>"}n+='<a class="saswp-grid-page" data-id="'+r+'" href="#">»</a>',n+="</div>"}n+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(n)}function saswp_create_collection_by_design(s,e,a,t,i,n,p,r,l,c,o){switch(s){case"grid":saswp_create_collection_grid(e,r,l,c,o);break;case"gallery":saswp_create_collection_slider(a,t,i);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(n,p)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),e=jQuery("#saswp_collection_specific_rating_sel").val(),a=jQuery(".saswp-collection-desing").val(),t=jQuery("#saswp-collection-cols").val(),i=jQuery(".saswp-slider-type").val(),n=jQuery("#saswp_fomo_interval").val(),p=parseInt(jQuery("#saswp-coll-per-page").val()),r=!1,l=0,c=p,o=!1;if(jQuery("#saswp-coll-pagination").is(":checked")){r=!0;saswp_grid_page>0&&(c=saswp_grid_page*p),l=c-p}if(jQuery("#saswp_collection_specific_rating").is(":checked")&&(o=!0),jQuery("#saswp_gallery_arrow").is(":checked"))var _=!0;else _=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var w=!0;else w=!1;saswp_create_total_collection(o,e),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(a,t,i,_,w,n,n,r,p,l,c)}function saswp_get_collection_data(s,e,a=null,t=null,i=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:i,review_id:t,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,e){var a=JSON.parse(e.saswp_review_platform),t=[];if(t.push(e),void 0===saswp_collection[a])saswp_collection[a]=t;else{var i=[...new Set([...saswp_collection[a],...t])];saswp_collection[a]=i}}),saswp_on_collection_design_change()),a&&a.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,e){var a=jQuery(this),t=jQuery("option[value]:not([selected])",a),i=[];t.each(function(){var s=jQuery(this);i.push({id:s.attr("value"),text:s.text()})});var n=a.attr("data-type"),p=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+n;a.select2({ajax:{url:p,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:i})})}
|
1 |
+
var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var a={};if(s){var e=new Date(s),t=e.getDate(),n=e.getMonth();n+=1;var p=e.getFullYear(),l=e.toLocaleDateString(),c=jQuery(".saswp-collection-date-format").val();c&&"Y-m-d"==c&&(l=p+"-"+n+"-"+t),c&&"d-m-Y"==c&&(l=t+"-"+n+"-"+p),c&&"days"==c&&(l=saswp_get_day_ago(e)),a={time:e.toLocaleTimeString(),date:l}}else a={time:"",date:""};return a}function saswp_get_day_ago(s){"object"!=typeof s&&(s=new Date(s));var a,e=Math.floor((new Date-s)/1e3),t=Math.floor(e/31536e3);return t>=1?a="year":(t=Math.floor(e/2592e3))>=1?a="month":(t=Math.floor(e/86400))>=1?a="day":(t=Math.floor(e/3600))>=1?a="hour":(t=Math.floor(e/60))>=1?a="minute":(t=e,a="second"),(t>1||0===t)&&(a+="s"),t+" "+a+" ago"}function saswp_taxonomy_term_html(s,a){var e="";return e+="<td>",e+='<select name="saswp_taxonomy_term['+a+']">',jQuery.each(s,function(s,a){e+='<option value="'+s+'">'+a+"</option>"}),e+="</select>",e+="</td>",e+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&(jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide(),saswp_enable_rating_automate()}).change(),jQuery("#saswp_schema_type_product_pros_enable_pros").change(function(){jQuery(this).is(":checked")?jQuery(".thepros_main_section_outer").show():jQuery(".thepros_main_section_outer").hide()}).change())}function saswp_enable_rating_automate(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-automate-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")&&jQuery(this).is(":visible")?(jQuery(this).parent().parent().next().show(),jQuery(this).parent().parent().next().next().hide(),jQuery(this).parent().parent().next().next().next().hide()):(jQuery(this).parent().parent().next().hide(),jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).is(":checked")&&(jQuery(this).parent().parent().next().next().show(),jQuery(this).parent().parent().next().next().next().show()))}).change()}function getParameterByName(s,a){a||(a=window.location.href);var e=RegExp("[?&]"+(s=s.replace(/[\[\]]/g,"\\$&"))+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){("saswp"==saswp_localize_data.post_type||"saswp"==saswp_localize_data.page_now)&&"saswp_page_structured_data_options"!=saswp_localize_data.page_now&&jQuery(".saswp-custom-fields-select2").length&&jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,a,e=null){var t=a.val(),n=saswp_localize_data.post_id,p=jQuery(a).attr("data-id"),l=jQuery(a).attr("post-specific"),c=jQuery(".saswp_modify_this_schema_hidden_"+p).val();append_id=null==e?jQuery("#saswp_specific_"+p):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:c,schema_type:s,schema_id:p,post_specific:l,item:t,post_id:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(append_id).find(".saswp-table-create-onajax").remove();var a=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(a,function(s,a){0!=s&&jQuery(this).remove()}),jQuery(append_id).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var a="";jQuery("select#schema_type option:selected").val()&&(a=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(a=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===a&&saswp_item_reviewed_ajax(a,jQuery(this))}).change()}function saswp_compatibliy_notes(s,a){var e=a.replace("-checkbox",""),t=jQuery("#"+e).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+e).next("p").removeClass("saswp_hide"):1==jQuery("#"+e).next("p").attr("data-id")?jQuery("#"+e).next("p").text("This feature is only available in pro version"):jQuery("#"+e).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,a,e,t,n,p){var l=t;null==l&&(l=Object.keys(e)[0]);var c="";if(c+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+l+']">',jQuery.each(a,function(s,a){c+='<optgroup label="'+a.label+'">',jQuery.each(a["meta-list"],function(s,a){c+='<option value="'+s+'">'+a+"</option>"}),c+="</optgroup>"}),c+="</select>",e){var o=jQuery("select#schema_type option:selected").val(),r="";"Review"==o&&(r=jQuery("select.saswp-item-reivewed-list option:selected").val());var w="<tr>";w+="<td>",w+='<select class="saswp-custom-fields-name">',"Review"==o&&(w+='<optgroup label="Review">',w+='<option value="saswp_review_name">Review Name</option>',w+='<option value="saswp_review_description">Review Description</option>',w+='<option value="saswp_review_body">Review Body</option>',w+='<option value="saswp_review_author">Review Author</option>',w+='<option value="saswp_review_author_url">Review Author Profile URL</option>',w+='<option value="saswp_review_publisher">Review Publisher</option>',w+='<option value="saswp_review_publisher_url">Review Publisher URL</option>',w+='<option value="saswp_review_rating_value">Review Rating Value</option>',w+='<option value="saswp_review_date_published">Review Published Date</option>',w+='<option value="saswp_review_date_modified">Review Modified Date</option>',w+='<option value="saswp_review_url">Review URL</option>',w+="</optgroup>"),"Review"==o&&(w+='<optgroup label="'+r+'">'),jQuery.each(e,function(s,a){w+='<option value="'+s+'">'+a+"</option>"}),"Review"==o&&(w+="</optgroup>"),w+="</select>",w+="</td>",w+="<td>",w+=c,w+="</td>",w+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',w+="</tr>",jQuery(".saswp-custom-fields-table").append(w),null!=s&&s.removeClass("updating-message")}else jQuery(n).html(c),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,a,e,t,n,p){saswp_meta_list[a]?saswp_meta_list_html(s,saswp_meta_list[a],e,n,t,p):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){saswp_meta_list[a]=l[a],saswp_meta_list_html(s,saswp_meta_list[a],e,n,t,p)},"json")}function saswp_get_post_specific_schema_fields(s,a,e,t,n,p,l){if(saswp_meta_fields[p]){var c=saswp_fields_html_generator(a,n,p,t,saswp_meta_fields[p]);c&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(c),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",schema_id:n,schema_type:l,meta_name:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){saswp_meta_fields[p]=e;var l=saswp_fields_html_generator(a,n,p,t,e);l&&(jQuery(".saswp-"+t+'-section[data-id="'+n+'"]').append(l),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,a,e,t,n){$newclosebtn="",otherRepeatorClose="",$reviewtitle=s+1,"product_pros_"==e||"product_cons_"==e?$newclosebtn='<td class="saswp-table-close-new-td"><a class="saswp-table-close-new">X</a></td>':otherRepeatorClose='<a class="saswp-table-close">X</a>',$addRevewTitle="","product_reviews_"==e&&($addRevewTitle='<h3 style="float: left;">Review '+$reviewtitle+"</h3>");var p="";return p+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'">'+$addRevewTitle+otherRepeatorClose+'<table class="form-table saswp-'+t+'-table">',jQuery.each(n,function(t,n){var l="";switch((n.name.indexOf("published_date")>-1||n.name.indexOf("date_created")>-1||n.name.indexOf("created_date")>-1||n.name.indexOf("modified_date")>-1||n.name.indexOf("date_published")>-1||n.name.indexOf("date_modified")>-1)&&(l="saswp-datepicker-picker"),n.type){case"number":case"text":p+="<tr><th>"+n.label+'</th><td><input class="'+l+'" style="width:100%" type="'+n.type+'" id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']"></td>'+$newclosebtn+"</tr>";break;case"textarea":p+="<tr><th>"+n.label+'</th><td><textarea style="width: 100%" id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']" rows="5"></textarea></td></tr>';break;case"select":var c="";jQuery.each(n.options,function(s,a){c+='<option value="'+s+'">'+a+"</option>"}),p+="<tr><th>"+n.label+'</th><td><select id="'+n.name+"_"+s+"_"+a+'" name="'+e+a+"["+s+"]["+n.name+']">'+c+"</select></td></tr>";break;case"media":p+="<tr><th>"+n.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+n.name+"_"+s+"_"+a+'" name="'+n.name+"_"+s+"_"+a+'"><input type="hidden" data-id="'+n.name+"_"+s+"_"+a+'_id" name="'+e+a+"["+s+"]["+n.name+'_id]" id="'+n.name+"_"+s+"_"+a+'_id"><input data-id="media" style="width: 19%" class="button" id="'+n.name+"_"+s+"_"+a+'_button" name="'+n.name+"_"+s+"_"+a+'_button" type="button" value="Upload"><div class="saswp_image_div_'+n.name+"_"+s+"_"+a+'"></div></fieldset></td></tr>'}}),p+="</table></div>"}function saswp_create_total_collection(s,a){var e="";for(var t in saswp_total_collection=[],saswp_collection)saswp_collection[t]&&(jQuery.each(saswp_collection[t],function(e,t){rmv_boolean?t.is_remove=!0:t.is_remove=!1,s?t.saswp_review_rating>=a&&saswp_total_collection.push(t):saswp_total_collection.push(t)}),e+=saswp_function_added_platform(t,saswp_collection[t].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(e)}function saswp_create_rating_html_by_value(s){var a="";a+='<div class="saswp-rvw-str">';for(var e=0;e<5;e++)if(s>e){var t=s.split(".");t[1]?e<t[0]?a+='<span class="str-ic"></span>':a+='<span class="half-str"></span>':a+='<span class="str-ic"></span>'}else a+='<span class="df-clr"></span>';return a+"</div>"}function saswpChunkArray(s,a){for(var e=JSON.parse(JSON.stringify(s)),t=[];e.length;)t.push(e.splice(0,a));return t}function saswp_function_added_platform(s,a){var e="";return a>0&&(e+='<div class="cancel-btn">',e+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+a+")</span>",e+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+a+'">',e+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',e+="</div>"),e}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),a=s.find(".saswp-sic");function e(){var s=0;jQuery(a).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),a.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=a.find(".saswp-si.saswp-active").offset().left,e=a.offset().left;a.css({transform:"translate( -"+(s-e)+"px, 0px)"})}}0==a.find(".saswp-si.saswp-active").length&&a.find(".saswp-si").first().addClass("saswp-active"),e(),t(),function e(){var t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length;for(i=0;i<n;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active")}(),jQuery(document).ready(function(){e(),t()}),jQuery(window).resize(function(){e(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(e){var t,n,p,l,c,o;e.preventDefault(),t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length,p=0,p=t+1>n-1?0:t+1,l=a.find(".saswp-si").eq(p),c=a.offset().left,o=l.offset().left-c,a.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),a.css({transform:"translate( -"+o+"px, 0px)"})}),p.on("click",function(e){var t,n,p,l,c,o;e.preventDefault(),t=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length,p=0,p=t-1<0?n-1:t-1,l=a.find(".saswp-si").eq(p),c=a.offset().left,o=l.offset().left-c,a.find(".saswp-si.saswp-active").removeClass("saswp-active"),l.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(p).addClass("saswp-active"),a.css({transform:"translate( -"+o+"px, 0px)"})}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(e){var t=jQuery(this).index(),n=a.find(".saswp-si").eq(t).offset().left-a.offset().left;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),a.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),a.css({transform:"translate( -"+n+"px, 0px)"})})})}function saswp_review_desing_for_slider(s){var a=saswp_convert_datetostring(s.saswp_review_date);""!=s.saswp_is_date_in_days&&"days"==s.saswp_is_date_in_days&&(a.date=s.saswp_review_date);var e="";return e+='<div class="saswp-r2-sli">',e+='<div class="saswp-r2-b">',e+='<div class="saswp-r2-q">',e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',e+="</div>",e+='<div class="saswp-rc-cnt">',e+="<p>",e+=s.saswp_review_text,e+="</p>",e+="</div>",e+='<div class="saswp-r2-strs">',e+='<span class="saswp-r2-s">',e+=saswp_create_rating_html_by_value(s.saswp_review_rating),e+="</span>",e+="</div>",e+="</div>",e+='<div class="saswp-rc">',e+='<div class="saswp-rc-a">',e+='<img src="'+s.saswp_reviewer_image+'"/>',e+='<div class="saswp-rc-nm">',e+='<a href="#">'+s.saswp_reviewer_name+"</a>",e+='<span class="saswp-rc-dt">'+a.date+"</span>",e+="</div>",e+='<div class="saswp-rc-lg">',e+='<img src="'+s.saswp_review_platform_icon+'"/>',e+="</div>",e+="</div>",e+="</div>",e+="</div>"}function saswp_create_collection_slider(s,a,e){var t="";if(saswp_total_collection.length>0){if("slider"==s?t+='<div class="saswp-cst">':t+='<div class="saswp-cct">',t+='<div class="saswp-cs">',t+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,a){t+='<div class="saswp-si">',t+=saswp_review_desing_for_slider(a),t+="</div>"}),"carousel"==s){var n=saswpChunkArray(saswp_total_collection,3);n&&jQuery.each(n,function(s,a){t+='<div class="saswp-si">',jQuery.each(a,function(s,a){t+=saswp_review_desing_for_slider(a)}),t+="</div>"})}t+="</div>",a&&(t+='<div class="saswp-slider-controls">',t+='<a href="#" class="saswp-slider-prev-btn"></a>',t+='<a href="#" class="saswp-slider-next-btn"></a>',t+="</div>"),e&&(t+='<div class="saswp-slider-dots">',t+="</div>"),t+="</div>",t+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(t),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var a in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var e="",t="",n=0,p=0,l=1,c="";jQuery.each(saswp_collection[a],function(s,a){c=a.saswp_review_location_id,e=a.saswp_review_platform_icon,"Self"==(t=a.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),p+=parseFloat(a.saswp_review_rating),n++}),p>0&&(l=p/n),saswp_collection[a]&&(s+="<li>",s+='<a target="_blank" href="'+c+'">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+e+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=l.toFixed(1),s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(l.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+=saswp_localize_data.trans_based_on+" "+n+" "+saswp_localize_data.trans_reviews,s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",a="";if(saswp_total_collection.length>0){var e=0,t=0,n=1;jQuery.each(saswp_total_collection,function(s,n){platform_icon=n.saswp_review_platform_icon,t+=parseFloat(n.saswp_review_rating),e++;var p=saswp_convert_datetostring(n.saswp_review_date);""!=n.saswp_is_date_in_days&&"days"==n.saswp_is_date_in_days&&(p.date=n.saswp_review_date),a+="<li>",a+='<div class="saswp-r4-b">',a+='<span class="saswp-r4-str">',a+=saswp_create_rating_html_by_value(n.saswp_review_rating),a+="</span>",a+='<span class="saswp-r4-tx">'+p.date+"</span>",a+="</div>",a+='<div class="saswp-r4-cnt">',a+="<h3>"+n.saswp_reviewer_name+"</h3>",a+="<p>"+n.saswp_review_text+"</p>",a+="</div>",a+="</li>"}),t>0&&(n=t/e),e>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+e+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(n.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+n.toFixed(1)+" from "+e+" reviews</span>",s+="</li>",s+=a,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,a){var e="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,a){var t=saswp_convert_datetostring(a.saswp_review_date);""!=a.saswp_is_date_in_days&&"days"==a.saswp_is_date_in_days&&(t.date=a.saswp_review_date),e+='<div id="'+s+'" class="saswp-r5">',e+='<div class="saswp-r5-r">',e+='<div class="saswp-r5-lg">',e+="<span>",e+='<img height="70" width="70" src="'+a.saswp_review_platform_icon+'"/>',e+="</span>",e+="</div>",e+='<div class="saswp-r5-rng">',e+=saswp_create_rating_html_by_value(a.saswp_review_rating),e+='<div class="saswp-r5-txrng">',e+="<span>"+a.saswp_review_rating+" Stars</span>",e+="<span>by</span>",e+="<span>"+a.saswp_reviewer_name+"</span>",e+="</div>",e+='<span class="saswp-r5-dt">'+t.date+"</span>",e+="</div>",e+="</div>",e+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(e),saswp_fomo_slide(s,a)}function saswp_fomo_slide(s,a){var e=jQuery(".saswp-collection-preview .saswp-r5"),t=e.length,n=0;!function s(){e.eq(n%t).fadeIn(6e3,function(){e.eq(n%t).fadeOut(3e3,s),n++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,a){return s.saswp_review_rating-a.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,a){return s.saswp_review_rating-a.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,a){var e=new Date(s.saswp_review_date),t=new Date(a.saswp_review_date);return e-t}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,a){var e=new Date(s.saswp_review_date),t=new Date(a.saswp_review_date);return e-t});break;case"random":saswp_total_collection.sort(function(s,a){return .5-Math.random()})}}function saswp_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,a){saswp_total_reviews.push(a.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,a,e,t,n){var p="",l="",c=0;if(saswp_total_collection.length>0){c=Math.ceil(saswp_total_collection.length/e),p+='<div class="saswp-r1">';for(var o=1;o<=s;o++)l+=" 1fr";if(s.length>3?p+='<ul style="grid-template-columns:'+l+';overflow-y: scroll;">':p+='<ul style="grid-template-columns:'+l+';overflow-y:hidden;">',saswp_total_collection){var r=saswp_total_collection;a&&e>0&&(r=r.slice(t,n)),jQuery.each(r,function(s,a){var e=saswp_convert_datetostring(a.saswp_review_date);p+="<li>",p+='<div class="saswp-rc">',p+='<div class="saswp-rc-a">',p+='<div class="saswp-r1-aimg">',p+='<img src="'+a.saswp_reviewer_image+'" width="56" height="56"/>',p+="</div>",p+='<div class="saswp-rc-nm">',p+='<a href="#">'+a.saswp_reviewer_name+"</a>",p+=saswp_create_rating_html_by_value(a.saswp_review_rating),e.date&&(p+='<span class="saswp-rc-dt">'+e.date+"</span>"),p+="</div>",p+="</div>",p+='<div class="saswp-rc-lg">',p+='<img src="'+a.saswp_review_platform_icon+'"/>',p+="</div>",p+="</div>",p+='<div class="saswp-rc-cnt">',p+="<p>"+a.saswp_review_text+"</p>",p+="</div>",a.is_remove&&(p+='<span platform-id="'+a.saswp_review_platform+'" data-id="'+a.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),p+="</li>"})}if(p+="</ul>",c>0&&a){p+='<div class="saswp-grid-pagination">',p+='<a class="saswp-grid-page" data-id="1" href="#">«</a>';for(var w=parseInt(saswp_grid_page)-3,d=parseInt(saswp_grid_page)+3,o=1;o<=c;o++){var v="saswp_hide";o>w&&o<d&&(v=""),o==saswp_grid_page?p+='<a class="active saswp-grid-page '+v+'" data-id="'+o+'" href="#">'+o+"</a>":p+='<a class="saswp-grid-page '+v+'" data-id="'+o+'" href="#">'+o+"</a>"}p+='<a class="saswp-grid-page" data-id="'+c+'" href="#">»</a>',p+="</div>"}p+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(p)}function saswp_create_collection_by_design(s,a,e,t,n,p,l,c,o,r,w){switch(s){case"grid":saswp_create_collection_grid(a,c,o,r,w);break;case"gallery":saswp_create_collection_slider(e,t,n);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(p,l)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),a=jQuery("#saswp_collection_specific_rating_sel").val(),e=jQuery(".saswp-collection-desing").val(),t=jQuery("#saswp-collection-cols").val(),n=jQuery(".saswp-slider-type").val(),p=jQuery("#saswp_fomo_interval").val(),l=parseInt(jQuery("#saswp-coll-per-page").val()),c=!1,o=0,r=l,w=!1;if(jQuery("#saswp-coll-pagination").is(":checked")){c=!0;var d=saswp_grid_page;d>0&&(r=d*l),o=r-l}if(jQuery("#saswp_collection_specific_rating").is(":checked")&&(w=!0),jQuery("#saswp_gallery_arrow").is(":checked"))var v=!0;else var v=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var f=!0;else var f=!1;saswp_create_total_collection(w,a),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(e,t,n,v,f,p,p,c,l,o,r)}function saswp_get_collection_data(s,a,e=null,t=null,n=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:n,review_id:t,platform_id:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,a){var e=JSON.parse(a.saswp_review_platform),t=[];if(t.push(a),void 0===saswp_collection[e])saswp_collection[e]=t;else{var n=[...new Set([...saswp_collection[e],...t])];saswp_collection[e]=n}}),saswp_on_collection_design_change()),e&&e.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,a){var e=jQuery(this),t=jQuery("option[value]:not([selected])",e),n=[];t.each(function(){var s=jQuery(this);n.push({id:s.attr("value"),text:s.text()})});var p=e.attr("data-type"),l=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+p;e.select2({ajax:{url:l,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:n})})}
|
@@ -1027,6 +1027,15 @@ jQuery(document).ready(function($){
|
|
1027 |
}
|
1028 |
break;
|
1029 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1030 |
case 'saswp-compativility-checkbox':
|
1031 |
|
1032 |
if ($(this).is(':checked')) {
|
@@ -1933,6 +1942,16 @@ jQuery(document).ready(function($){
|
|
1933 |
$("#saswp-ultimatefaqs").val(0);
|
1934 |
}
|
1935 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1936 |
break;
|
1937 |
case 'saswp-showcaseidx-checkbox':
|
1938 |
saswp_compatibliy_notes(current, id);
|
@@ -3269,6 +3288,9 @@ jQuery(document).ready(function($){
|
|
3269 |
$(document).on("click", ".saswp-table-close", function(){
|
3270 |
$(this).parent().remove();
|
3271 |
});
|
|
|
|
|
|
|
3272 |
|
3273 |
//How to schema js ends here
|
3274 |
|
1027 |
}
|
1028 |
break;
|
1029 |
|
1030 |
+
case 'saswp_remove_version_tag_checkbox':
|
1031 |
+
|
1032 |
+
if ($(this).is(':checked')) {
|
1033 |
+
$("#saswp_remove_version_tag").val(1);
|
1034 |
+
}else{
|
1035 |
+
$("#saswp_remove_version_tag").val(0);
|
1036 |
+
}
|
1037 |
+
break;
|
1038 |
+
|
1039 |
case 'saswp-compativility-checkbox':
|
1040 |
|
1041 |
if ($(this).is(':checked')) {
|
1942 |
$("#saswp-ultimatefaqs").val(0);
|
1943 |
}
|
1944 |
|
1945 |
+
break;
|
1946 |
+
|
1947 |
+
case 'saswp-ultimatemember-checkbox':
|
1948 |
+
saswp_compatibliy_notes(current, id);
|
1949 |
+
if ($(this).is(':checked')) {
|
1950 |
+
$("#saswp-ultimatemember").val(1);
|
1951 |
+
}else{
|
1952 |
+
$("#saswp-ultimatemember").val(0);
|
1953 |
+
}
|
1954 |
+
|
1955 |
break;
|
1956 |
case 'saswp-showcaseidx-checkbox':
|
1957 |
saswp_compatibliy_notes(current, id);
|
3288 |
$(document).on("click", ".saswp-table-close", function(){
|
3289 |
$(this).parent().remove();
|
3290 |
});
|
3291 |
+
$(document).on("click", ".saswp-table-close-new", function(){
|
3292 |
+
$(this).closest('.saswp-dynamic-properties').remove();
|
3293 |
+
});
|
3294 |
|
3295 |
//How to schema js ends here
|
3296 |
|
@@ -1 +1 @@
|
|
1 |
-
var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function($){if($(document).on("click","#saswp_loc_display_on_front",function(){$(this).is(":checked")?$(".saswp-front-location-inst").removeClass("saswp_hide"):$(".saswp-front-location-inst").addClass("saswp_hide")}),$(document).on("change",".saswp-collection-where",function(){$(this);var a,b=$(this).val();b&&(a=b)&&$.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:a,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(a){if(a){var b="";$.each(a,function(c,a){b+='<option value="'+a.id+'">'+a.text+"</option>"}),$(".saswp-collection-where-data").html(""),$(".saswp-collection-where-data").append(b),saswp_select2()}},error:function(a){console.log("Failed Ajax Request"),console.log(a)}})}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?($(".saswp-coll-where").addClass("saswp_hide"),$("#saswp-motivatebox").css("display","block")):($(".saswp-coll-where").removeClass("saswp_hide"),$("#saswp-motivatebox").css("display","none"))}).change(),$(document).on("click",".saswp-dismiss-notices",function(){var b=$(this),a=$(this).attr("notice-type");a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status&&b.parent().parent().hide()},error:function(a){console.log(a)}})}),saswp_select2(),$(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),$(document).on("click",".saswp-attach-reviews",function(){$(".saswp-enable-append-reviews").is(":checked")?(tb_show(saswp_localize_data.translable_txt.attach_review,"#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),$(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),$(".saswp-attached-rv-count").show()):$(".saswp-attached-rv-count").hide()}),$(".close-attached-reviews-popup").on("click",function(){$("#TB_closeWindowButton").trigger("click")}),$("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse($("#saswp_attahced_reviews").val())),$("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse($("#saswp_attached_collection").val())),$(document).on("click",".saswp-attach-rv-checkbox",function(){var a=null;a=parseInt($(this).parent().attr("data-id"));var c=$(this).parent().attr("data-type");$(this).is(":checked")?("review"==c&&saswp_attached_rv.push(a),"collection"==c&&saswp_attached_col.push(a)):("review"==c&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(a),1),"collection"==c&&saswp_attached_col.splice(saswp_attached_col.indexOf(a),1));var d=saswp_attached_rv.length,e=saswp_attached_col.length,b="";d>0&&(b+=d+" Reviews, "),e>0&&(b+=e+" Collection"),b||(b=0),$(".saswp-attached-rv-count").text("Attached "+b),$("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),$("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),$(".saswp-load-more-rv").on("click",function(c){var a=$(this).attr("data-type"),b=$(".saswp-add-rv-loop[data-type="+a+"]").length;$("#saswp-add-rv-automatic .spinner").addClass("is-active"),c.preventDefault(),$.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:b,paged:b/10+1,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){if("t"==b.status){var c="";b.result&&($.each(b.result,function(e,b){var d="";"review"==a&&saswp_attached_rv.includes(parseInt(b.saswp_review_id))&&(d="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(b.saswp_review_id))&&(d="checked"),c+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+b.saswp_review_id+'">',"review"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" ( Rating - "+b.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+b.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(c+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+d+"> <strong> "+b.saswp_reviewer_name+" </strong>"),c+="</div>"}),$(".saswp-add-rv-automatic-list[data-type="+a+"]").append(c)),b.message&&($(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),$(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(b.message);$("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),$(".saswp-modify-schema-toggle").click(function(b){b.preventDefault(),$(".saswp-modify-container").slideToggle("300");var a=$("#saswp_enable_custom_field"),c=a.val();a.val("1"===c?"0":"1"),$(".saswp-enable-modify-schema-output").change()}),$(".saswp-enable-itemlist").change(function(){$(this).is(":checked")?($("#saswp_item_list_tags").show(),$(".saspw-item-list-note").show(),"custom"==$("#saswp_item_list_tags").val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()):($(".saspw-item-list-note").hide(),$("#saswp_item_list_tags").hide(),$("#saswp_item_list_custom").hide())}),$("#saswp_item_list_tags").change(function(){"custom"==$(this).val()?$("#saswp_item_list_custom").show():$("#saswp_item_list_custom").hide()}),$(document).on("click",".saswp-add-g-location-btn",function(c){var a="";a=$("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',c.preventDefault();var b="";(b+='<tr><td style="width:12%;"><strong>'+saswp_localize_data.translable_txt.place_id+'</strong></td><td style="width:15%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.language+'</strong></td><td style="width:10%;"><input class="saswp-g-language-field" name="sd_data[saswp_reviews_language_name][]" type="text" value="" placeholder="nl"></td><td style="width:10%;"><strong>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.fetch+'</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&$(".saswp-g-reviews-settings-table").append(b)}),$(document).on("click",".saswp-fetch-g-reviews",function(){var a=$(this),f="free";a.addClass("updating-message");var b=$(this).parent().parent().find(".saswp-g-location-field").val(),g=$(this).parent().parent().find(".saswp-g-language-field").val(),c=$(this).parent().parent().find(".saswp-g-blocks-field").val(),d=$("#saswp_google_place_api_key").val(),e=$("#reviews_addon_license_key").val(),h=$("#reviews_addon_license_key_status").val();if("premium"==(f=$("#saswp_google_place_api_key").length?"free":"premium")){if(!(c>0))return alert(saswp_localize_data.translable_txt.blocks_zero),a.removeClass("updating-message"),!1;if(0!=c%10)return a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),a.removeClass("updating-message"),!1}""!=b&&(e||d)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:h,reviews_api:e,location:b,language:g,blocks:c,g_api:d,premium_status:f,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(b){"t"==b.status?(a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.success),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(a.parent().parent().find(".saswp-rv-fetched-msg").text(b.message),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),a.removeClass("updating-message")},error:function(a){console.log(a)}}):(""==b&&alert(saswp_localize_data.translable_txt.enter_place_id),""==d&&alert(saswp_localize_data.translable_txt.enter_api_key),""==e&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),a.removeClass("updating-message"))}),saswp_localize_data.do_tour){var f,k,g,a="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";a+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="saswp_mc_embed_signup">',a+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',a+='<div id="saswp_mc_embed_signup_scroll">',a+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+='<p id="saswp-news-letter-status"></p>',a+="</div>",a+="</form>",a+="</div>",$(document).on("submit","#saswp-news-letter-form",function(b){b.preventDefault();var a=$(this),c=a.find('input[name="saswp_subscriber_name"]').val(),d=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),$.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:c,email:d,website:website},function(a){a?"Some fields are missing."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid email address."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):"Already subscribed."==a?($("#saswp-news-letter-status").text(""),$("#saswp-news-letter-status").css("color","red")):($("#saswp-news-letter-status").text("You're subscribed!"),$("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var e={content:a,position:{edge:"top",align:"left"}};e=$.extend(e,{buttons:function(a,b){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){b.element.pointer("close")}),button_2.on("click",function(){setTimeout(function(){b.element.pointer("close")},3e3)}),button},close:function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(b,a){a.pointer.css({left:"170px",top:"160px"})}}),g=function(){$(saswp_localize_data.displayID).pointer(e).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){$.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},e.position&&e.position.defer_loading?$(window).bind("load.wp-pointers",g):g()}$(".saswp-tabs a").click(function(c){var b=$(this).attr("href"),a=getParameterByName("tab",b);if(a||(a="general"),$(this).siblings().removeClass("nav-tab-active"),$(this).addClass("nav-tab-active"),"premium_features"!=a||"yes"!=jQuery(this).attr("data-extmgr"))return $(".form-wrap").find(".saswp-"+a).siblings().hide(),$(".form-wrap .saswp-"+a).show(),window.history.pushState("","",b),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),$(".saswp-schame-type-select").select2(),$(".saswp-schame-type-select").change(function(b){b.preventDefault(),$(".saswp-custom-fields-table").html("");var a=$(this).val();$(".saswp-option-table-class tr").each(function(a,b){a>0&&$(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($("#saswp_location_meta_box").removeClass("saswp_hide"),$(".saswp-option-table-class tr").eq(1).show(),$(".saswp-business-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&($(".saswp-service-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-item-reivewed-list").change()),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1),$(".saswp-itemlist-item-type-list").change()):$(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),saswp_enable_rating_automate(),$(".saswp-manual-modification").html(""),$(".saswp-static-container .spinner").addClass("is-active"),$.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-static-container .spinner").removeClass("is-active"),$(".saswp-manual-modification").append(a),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a||"Service"==a?$(".saswp-enable-modify-schema").show():($(".saswp-enable-modify-schema-output").val("automatic"),$(".saswp-enable-modify-schema-output").change(),$(".saswp-enable-modify-schema").hide())}),$("#saswp_business_type").select2(),$(".saswp-local-sub-type-2").select2(),$("#saswp_business_type").change(function(){var b=$(this).val(),a=$(".saswp-schame-type-select").val();$(".saswp-option-table-class tr").each(function(a,b){a>1&&($(this).hide(),$(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?$(".saswp-enable-speakable").parent().parent().show():$(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?$(".saswp-enable-append-reviews").parent().parent().show():$(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?$(".saswp-enable-markup-class").parent().parent().show():$(".saswp-enable-markup-class").parent().parent().hide(),$("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&($(".saswp-"+b+"-tr").show(),$(".saswp-business-text-field-tr").show(),$(".saswp-"+b+"-tr").find("select").attr("disabled",!1),$("#saswp_location_meta_box").removeClass("saswp_hide")),"Review"==a&&($(".saswp-review-text-field-tr").show(),$(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?($(".saswp-schema-modify-section").hide(),$(".saswp-itemlist-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)):$(".saswp-schema-modify-section").show(),"Event"==a&&($(".saswp-event-text-field-tr").show(),$(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review(),saswp_enable_rating_automate()}).change(),$(".saswp-checkbox").change(function(){var a=$(this).attr("id"),b=$(this);switch(a){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-seo-framework").val(1):$("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-seo-press").val(1):$("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-aiosp").val(1):$("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-smart-crawl").val(1):$("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-squirrly-seo").val(1):$("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-recipe-maker").val(1):$("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpzoom-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpzoom").val(1):$("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yotpo").val(1):$("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ryviu").val(1):$("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimate-blocks").val(1):$("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-starsrating").val(1):$("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wptastyrecipe").val(1):$("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-recipress").val(1):$("#saswp-recipress").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-ultimate-recipe").val(1):$("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-zip-recipes").val(1):$("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mediavine-create").val(1):$("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ht-recipes").val(1):$("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpsso-core").val(1):$("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":$(this).is(":checked")?$("#saswp-for-wordpress").val(1):$("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":$(this).is(":checked")?$("#saswp-for-amp").val(1):$("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":$(this).is(":checked")?($("#saswp_kb_contact_1").val(1),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):($("#saswp_kb_contact_1").val(0),$("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":$(this).is(":checked")?($("#saswp-logo-dimensions").val(1),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):($("#saswp-logo-dimensions").val(0),$("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":$(this).is(":checked")?($("#saswp_archive_schema").val(1),$(".saswp_archive_schema_type_class").parent().parent().show()):($("#saswp_archive_schema").val(0),$(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":$(this).is(":checked")?($("#saswp_website_schema").val(1),$("#saswp_search_box_schema").parent().parent().show()):($("#saswp_website_schema").val(0),$("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":$(this).is(":checked")?$("#saswp_search_box_schema").val(1):$("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_remove_cat_checkbox":$(this).is(":checked")?$("#saswp_breadcrumb_remove_cat").val(1):$("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":$(this).is(":checked")?($("#saswp_breadcrumb_schema").val(1),$("#saswp_breadcrumb_remove_cat").parent().parent().show()):($("#saswp_breadcrumb_schema").val(0),$("#saswp_breadcrumb_remove_cat").parent().parent().hide());break;case"saswp_comments_schema_checkbox":$(this).is(":checked")?$("#saswp_comments_schema").val(1):$("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":$(this).is(":checked")?$("#saswp-review-module").val(1):$("#saswp-review-module").val(0);break;case"saswp-stars-rating-checkbox":$(this).is(":checked")?($(".saswp-stars-post-table").removeClass("saswp_hide"),$(this).parent().parent().next().removeClass("saswp_hide"),$("#saswp-stars-rating").val(1)):($(this).parent().parent().next().addClass("saswp_hide"),$(".saswp-stars-post-table").addClass("saswp_hide"),$("#saswp-stars-rating").val(0));break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-kk-star-raring").val(1):$("#saswp-kk-star-raring").val(0);break;case"saswp-rmprating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rmprating").val(1):$("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratingform").val(1):$("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpdiscuz").val(1):$("#saswp-wpdiscuz").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yet-another-stars-rating").val(1):$("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simple-author-box").val(1):$("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce").val(1):$("#saswp-woocommerce").val(0);break;case"saswp_woocommerce_archive_checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_woocommerce_archive").val(1):$("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpecommerce").val(1):$("#saswp-wpecommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp_default_review").val(1):$("#saswp_default_review").val(0);break;case"saswp-single-price-product-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-single-price-product").val(1),$(".saswp-single-price-opt").parent().parent().show()):($("#saswp-single-price-product").val(0),$(".saswp-single-price-opt").parent().parent().hide());break;case"saswp-extra-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-extra").val(1):$("#saswp-extra").val(0);break;case"saswp-enfold-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-enfold").val(1):$("#saswp-enfold").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-soledad").val(1):$("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-theme-reviews").val(1):$("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-dw-question-answer").val(1):$("#saswp-dw-question-answer").val(0);break;case"saswp-wpqa-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpqa").val(1):$("#saswp-wpqa").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-job-manager").val(1):$("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-yoast").val(1):$("#saswp-yoast").val(0);break;case"saswp-polylang-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-polylang").val(1):$("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-autolistings").val(1):$("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpml").val(1):$("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-metatagmanager").val(1):$("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-slimseo").val(1):$("#saswp-slimseo").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rankmath").val(1):$("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-taqyeem").val(1):$("#saswp-taqyeem").val(0);break;case"saswp-video-thumbnails-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-video-thumbnails").val(1):$("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-featured-video-plus").val(1):$("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-product-review").val(1):$("#saswp-wp-product-review").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-the-events-calendar").val(1):$("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-homeland").val(1):$("#saswp-homeland").val(0);break;case"saswp-ratency-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ratency").val(1):$("#saswp-ratency").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresidence").val(1):$("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-myhome").val(1):$("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-5").val(1):$("#saswp-realestate-5").val(0);break;case"saswp-realestate-7-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realestate-7").val(1):$("#saswp-realestate-7").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stamped").val(1):$("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-sabaidiscuss").val(1):$("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-geodirectory").val(1):$("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-classipress").val(1):$("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-realhomes").val(1):$("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-press").val(1):$("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wplms").val(1):$("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-learn-dash").val(1):$("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-lifter-lms").val(1):$("#saswp-lifter-lms").val(0);break;case"saswp-senseilms-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-senseilms").val(1):$("#saswp-senseilms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-manager").val(1):$("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-manager").val(1):$("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-calendar-wd").val(1):$("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-organiser").val(1):$("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-modern-events-calendar").val(1):$("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking").val(1),$("#saswp-woocommerce-booking-main").val(1)):($("#saswp-woocommerce-booking").val(0),$("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-woocommerce-booking-main").val(1),$("#saswp-woocommerce-booking").val(1)):($("#saswp-woocommerce-booking-main").val(0),$("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woocommerce-membership").val(1):$("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":$(this).is(":checked")?$("#saswp-defragment").val(1):$("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cooked").val(1):$("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-flexmlx-compativility").val(1):$("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?($("#saswp-shopper-approved-review").val(1),$(".saswp-s-reviews-settings-table").parent().parent().parent().show()):($("#saswp-shopper-approved-review").val(0),$(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":$(this).is(":checked")?($("#saswp-google-review").val(1),$("#saswp-google-rv-free-checkbox").length?($("#saswp-google-review-free").parent().parent().show(),$("#saswp-google-rv-free-checkbox").is(":checked")?$("#saswp_google_place_api_key").parent().parent().show():$("#saswp_google_place_api_key").parent().parent().hide()):$("#saswp_google_place_api_key").parent().parent().show(),$(".saswp-g-reviews-settings-table").parent().parent().parent().show()):($("#saswp-google-review").val(0),$("#saswp_google_place_api_key").parent().parent().hide(),$(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),$("#saswp-google-rv-free-checkbox").length&&$("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":$("#saswp-google-review-checkbox").is(":checked")&&$(this).is(":checked")?($("#saswp-google-review-free").val(1),$("#saswp_google_place_api_key").parent().parent().show()):($("#saswp-google-review-free").val(0),$("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":$(this).is(":checked")?$("#saswp-markup-footer").val(1):$("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":$(this).is(":checked")?$("#saswp-pretty-print").val(1):$("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wppostratings-raring").val(1):$("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-bbpress").val(1):$("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":$(this).is(":checked")?$("#saswp-microdata-cleanup").val(1):$("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":$(this).is(":checked")?$("#saswp-other-images").val(1):$("#saswp-other-images").val(0);break;case"saswp-full-heading-checkbox":$(this).is(":checked")?$("#saswp-full-heading").val(1):$("#saswp-full-heading").val(0);break;case"saswp-rss-feed-image-checkbox":$(this).is(":checked")?$("#saswp-rss-feed-image").val(1):$("#saswp-rss-feed-image").val(0);break;case"saswp-image-resizing-checkbox":$(this).is(":checked")?$("#saswp-image-resizing").val(1):$("#saswp-image-resizing").val(0);break;case"saswp-multiple-size-image-checkbox":$(this).is(":checked")?$("#saswp-multiple-size-image").val(1):$("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":$(this).is(":checked")?$("#saswp-easy-testimonials").val(1):$("#saswp-easy-testimonials").val(0);break;case"saswp-brb-checkbox":$(this).is(":checked")?$("#saswp-brb").val(1):$("#saswp-brb").val(0);break;case"saswp-testimonial-pro-checkbox":$(this).is(":checked")?$("#saswp-testimonial-pro").val(1):$("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":$(this).is(":checked")?$("#saswp-bne-testimonials").val(1):$("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampforwp").val(1):$("#saswp-ampforwp").val(0);break;case"saswp-wpreviewslider-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewslider").val(1):$("#saswp-wpreviewslider").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampbyautomatic").val(1):$("#saswp-ampbyautomatic").val(0);break;case"saswp-cmp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-cmp").val(1):$("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpreviewpro").val(1):$("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webstories").val(1):$("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var c=$("#saswp-resized-image-folder-checkbox");$(this).is(":checked")?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($("#saswp-resized-image-folder").val(1),$("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(c.prop("checked",!1),c.next().text(a.message),c.next().css("color","red"))},error:function(a){c.prop("checked",!1),c.next().text(a),c.next().css("color","red")}}):($("#saswp-resized-image-folder").val(0),$(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-elementor").val(1):$("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-rannarecipe").val(1):$("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-jetpackrecipe").val(1):$("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-quickandeasyfaq").val(1):$("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ultimatefaqs").val(1):$("#saswp-ultimatefaqs").val(0);break;case"saswp-showcaseidx-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-showcaseidx").val(1):$("#saswp-showcaseidx").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-arconixfaq").val(1):$("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqconcertina").val(1):$("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobmanager").val(1):$("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-simplejobboard").val(1):$("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpjobopenings").val(1):$("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-webfaq10").val(1):$("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpfaqschemamarkup").val(1):$("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-faqschemaforpost").val(1):$("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-masteraccordion").val(1):$("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyfaqs").val(1):$("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordion").val(1):$("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-html5responsivefaq").val(1):$("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpresponsivefaq").val(1):$("#saswp-wpresponsivefaq").val(0);break;case"saswp-ameliabooking-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ameliabooking").val(1):$("#saswp-ameliabooking").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easyaccordion").val(1):$("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-helpiefaq").val(1):$("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-mooberrybm").val(1):$("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-novelist").val(1):$("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-accordionfaq").val(1):$("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-schemaforfaqs").val(1):$("#saswp-schemaforfaqs").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-customer-reviews").val(1):$("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-total-recipe-generator").val(1):$("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordpress-news").val(1):$("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-ampwp").val(1):$("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wp-event-aggregator").val(1):$("#saswp-wp-event-aggregator").val(0);break;case"saswp-timetable-event-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-timetable-event").val(1):$("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-xo-event-calendar").val(1):$("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-vs-event-list").val(1):$("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-calendarize-it").val(1):$("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-events-schedule").val(1):$("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-woo-event-manager").val(1):$("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-stachethemes-event-calendar").val(1):$("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-all-in-one-event-calendar").val(1):$("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-event-on").val(1):$("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-easy-recipe").val(1):$("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-tevolution-events").val(1):$("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-strong-testimonials").val(1):$("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wordlift").val(1):$("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-betteramp").val(1):$("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(b,a),$(this).is(":checked")?$("#saswp-wpamp").val(1):$("#saswp-wpamp").val(0)}}).change(),$("#saswp_kb_type").change(function(){var a=$(this).val();$(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==a&&($(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_person_fields").parent().parent().addClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==a&&($(".saswp_org_fields").parent().parent().addClass("saswp_hide"),$(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),$(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),$("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),$(document).on("click","input[data-id=media]",function(a){a.preventDefault();var b=$(this),c=b.attr("id").replace("_button",""),d=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var a=d.state().get("selection").first().toJSON();$("#"+c).val(a.url),$("input[data-id='"+c+"_id']").val(a.id),$("input[data-id='"+c+"_height']").val(a.height),$("input[data-id='"+c+"_width']").val(a.width),$("input[data-id='"+c+"_thumbnail']").val(a.url),"sd_default_image_button"===b.attr("id")&&($("#sd_default_image_width").val(a.width),$("#sd_default_image_height").val(a.height));var e="";"saswp_image_div_"+c=="saswp_image_div_sd_default_image"&&a.height<1200&&(e='<p class="saswp_warning">Image size is smaller than recommended size</p>'),$(".saswp_image_div_"+c).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+a.url+'"/><a data-id="'+c+'" href="#" class="saswp_prev_close">X</a></div>'+e)}).open()}),$(document).on("click",".saswp_prev_close",function(b){b.preventDefault();var a=$(this).attr("data-id");$(this).parent().remove(),$("#"+a).val(""),$("input[data-id='"+a+"_id']").val(""),$("input[data-id='"+a+"_height']").val(""),$("input[data-id='"+a+"_width']").val(""),$("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&($("#sd_default_image_width").val(""),$("#sd_default_image_height").val(""))}),$(document).on("click",".saswp-modify-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.get(ajaxurl,{action:"saswp_modify_schema_post_enable",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){$(".saswp-post-specific-wrapper[data-id="+b+"] .saswp-post-specific-setting").after(a),$(".saswp_modify_this_schema_hidden_"+b).val(1),$(".saswp-ps-toggle[schema-id="+b+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),c.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_item_reviewed_call()})}),$(document).on("click",".saswp-restore-schema",function(a){a.preventDefault();var b=$(this).attr("schema-id"),c=$(this);c.addClass("updating-message"),$.post(ajaxurl,{action:"saswp_modify_schema_post_restore",tag_ID:saswp_localize_data.tag_ID,schema_id:b,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){c.removeClass("updating-message"),"t"==a.status?($(".saswp_modify_this_schema_hidden_"+b).val(0),$(".saswp-restore-schema[schema-id="+b+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+b+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+b+"]").remove()):alert("Something went wrong")},"json")}),$(document).on("change",".saswp-schema-type-toggle",function(e){var a=$(this).attr("data-schema-id"),c=$(this).attr("data-post-id"),d=$(".saswp_modify_this_schema_hidden_"+a).val();if($(this).is(":checked")){var b=0;$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),$("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{$("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==d?($(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):($(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),$(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),$(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));var b=1}$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:b,schema_id:a,post_id:c,req_from:saswp_localize_data.req_from,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-reset-data",function(a){a.preventDefault(),!0==confirm("Are you sure?")&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){setTimeout(function(){location.reload()},1e3)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("license-status"),a=$(this).attr("add-on"),d=$("#"+a+"_addon_license_key").val();c&&a&&d?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){$("#"+a+"_addon_license_key_status").val(c.status),"active"==c.status&&c.days_remaining<0?($("span.inactive_status_reviews").text("Expired"),$("span.inactive_status_reviews").css({color:"red","font-weight":"400"})):"active"==c.status?($(".saswp-"+a+"-dashicons").addClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").css("color","green"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","inactive"),$(".saswp_license_activation[add-on='"+a+"']").text("Deactivate"),$("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),$(".saswp_license_status_msg[add-on='"+a+"']").text("Activated"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","green"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.inactive_status_"+a).text("Active"),$("span.inactive_status_"+a).css({color:"green","margin-left":"8px","font-weight":"400"}),$("span.inactive_status_"+a).removeClass("inactive_status_"+a).addClass("addon-activated_"+a)):($(".saswp-"+a+"-dashicons").addClass("dashicons-no-alt"),$(".saswp-"+a+"-dashicons").removeClass("dashicons-yes"),$(".saswp-"+a+"-dashicons").css("color","red"),$(".saswp_license_activation[add-on='"+a+"']").attr("license-status","active"),$(".saswp_license_activation[add-on='"+a+"']").text("Activate"),$(".saswp_license_status_msg[add-on='"+a+"']").css("color","red"),$(".saswp_license_status_msg[add-on='"+a+"']").text(c.message),$("span.addon-activated_"+a).text("Inactive"),$("span.addon-activated_"+a).css("color","#bebfc0"),$("span.addon-activated_"+a).removeClass("addon-activated_"+a).addClass("inactive_status_"+a),$("span.limit_span").css("display","none")),b.removeClass("updating-message")},error:function(a){console.log(a)}}):(alert("Please enter value license key"),b.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(g){var f=jQuery(this);g.preventDefault();var b=f.attr("add-on"),h=f.attr("remaining_days_org"),i=jQuery("#"+b+"_addon_license_key").val();document.getElementById("user_refresh_"+b).classList.add("spin");var c=new Date,a=function(e){for(var c=e+"=",d=document.cookie.split(";"),b=0;b<d.length;b++){for(var a=d[b];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(c))return a.substring(c.length,a.length)}return null}("saswp_addon_refresh_check");a=new Date(a);var d=-1,e=Math.abs(c.getTime()-a.getTime()),d=Math.ceil(e/864e5),e=Math.abs(new Date(h).getTime()-c.getTime());-1==d||d>1||1>Math.ceil(e/864e5)?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){jQuery("#"+b+"_addon_license_key_status").val(a.status),document.getElementById("user_refresh_"+b).classList.remove("spin"),f.removeClass("updating-message")},error:function(a){console.log(a)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),alert("Please try after "+(a=Math.abs(a.getDate()+1)+"/"+Math.abs(a.getMonth()+1)+"/"+a.getFullYear()+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds())))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var b=c.days_remaining;b>=0&&b<=7&&$("span.saswp-addon-alert").text("expiring in "+b+" days ")}else document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),$("span.pro_warning").css("display","none")}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");d>=0&&d<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var b=$(this),c=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var d=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:d,license_status:c,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?($("span#exp").text("Expired"),location.reload()):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),b.removeClass("updating-message"))});var c=document.getElementById("activated-plugins-days_remaining");if(c)var d=c.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var c=$(this),d=$(this).attr("licensestatusinternal"),a=$(this).attr("add-on");$(this).attr("data-attr"),$(this).attr("add-onname");var b=$("#"+a+"_addon_license_key").val();a?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:b,license_status:d,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){if("active"==$("#"+a+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var b=c.days_remaining;b<0?$("span#exp").text("Expired"):b>7&&($("span.inner_span").text(""),$("span.saswp_addon_inactive").text(""),$("span.expiredinner_span").text("Your License is Active"),$("span.expiredinner_span").css("color","green"),$(".renewal-license").css("display","none"),$(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),c.removeClass("updating-message")),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:b,license_key:b,add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){JSON.parse(a)}})}),$(".saswp-send-query").on("click",function(d){d.preventDefault();var b=$("#saswp_query_message").val(),a=$("#saswp_query_email").val(),c=$("#saswp_query_premium_cus").val();""!=$.trim(b)&&c&&""!=$.trim(a)&& !0==saswpIsEmail(a)?$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:c,message:b,email:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?($(".saswp-query-success").show(),$(".saswp-query-error").hide()):($(".saswp-query-success").hide(),$(".saswp-query-error").show())},error:function(a){console.log(a)}}):""==$.trim(b)&&""==c&&""==$.trim(a)?alert("Please enter the message, email and select customer type"):(""==c&&alert("Select Customer type"),""==$.trim(b)&&alert("Please enter the message"),""==$.trim(a)&&alert("Please enter the email"),!1==saswpIsEmail(a)&&alert("Please enter a valid email"))}),$(".saswp-import-plugins").on("click",function(a){a.preventDefault();var b=$(this);b.addClass("updating-message");var c=$(this).attr("data-id");$.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status?($(b).parent().find(".saswp-imported-message").text(a.message),$(b).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):($(b).parent().find(".saswp-imported-message").addClass("saswp-error"),$(b).parent().find(".saswp-imported-message").text(a.message)),b.removeClass("updating-message")},"json")}),$(".saswp-feedback-no-thanks").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(".saswp-feedback-remindme").on("click",function(a){a.preventDefault(),$.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&$(".saswp-feedback-notice").hide()},"json")}),$(document).on("change",".saswp-local-business-type-select",function(a){a.preventDefault();var c=$(this),b=$(this).val();$.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:b,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(d){if("t"==d.status){$(".saswp-local-business-name-select").parents("tr").remove();var b=c.parents(".saswp-post-specific-wrapper").attr("data-id"),a='<tr><th><label for="saswp_business_name_'+b+'">Sub Business Type</label></th>';a+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+b+'" name="saswp_business_name_'+b+'">',$.each(d.result,function(b,c){a+='<option value="'+b+'">'+c+"</option>"}),a+="</select></td>",a+="</tr>",c.parents(".form-table tr:first").after(a)}else $(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),$(document).on("click",".saswp-add-custom-schema",function(a){a.preventDefault(),$(".saswp-add-custom-schema-field").removeClass("saswp_hide"),$(this).hide()}),$(document).on("click",".saswp-delete-custom-schema",function(a){a.preventDefault(),$("#saswp_custom_schema_field").val(""),$(".saswp-add-custom-schema-field").addClass("saswp_hide"),$(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),$(document).on("click",".saswp-add-more-item",function(b){b.preventDefault();var a='<tr class="saswp-review-item-tr">';a+="<td>Review Item Feature</td>",a+='<td><input type="text" name="saswp-review-item-feature[]"></td>',a+="<td>Rating</td>",a+='<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>',a+='<td><a type="button" class="saswp-remove-review-item button">x</a></td>',a+="</tr>",$(".saswp-review-item-list-table").append(a)}),$(document).on("click",".saswp-remove-review-item",function(a){a.preventDefault(),$(this).parent().parent("tr").remove()}),$(document).on("focusout",".saswp-review-item-tr input[type=number]",function(a){a.preventDefault();var b=0,c=$(".saswp-review-item-tr input[type=number]").length;$(".saswp-review-item-tr input[type=number]").each(function(c,a){""==$(a).val()?b+=parseFloat(0):b+=parseFloat($(a).val())}),$("#saswp-review-item-over-all").val(b/c)}),$("#saswp-review-location").change(function(){var a=$(this).val();$(".saswp-review-shortcode").addClass("saswp_hide"),3==a&&$(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),$("#saswp-review-item-enable").change(function(){$(this).is(":checked")?$(".saswp-review-fields").show():$(".saswp-review-fields").hide()}).change(),$(document).on("click",".saswp-restore-post-schema",function(a){a.preventDefault();var b=$(this);if(b.addClass("updating-message"),$(".saswp-post-specific-schema-ids").val())var c=JSON.parse($(".saswp-post-specific-schema-ids").val());$.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:c,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status||alert(a.msg),setTimeout(function(){location.reload()},1e3),b.removeClass("updating-message")},"json")}),$(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(a){a.preventDefault();var b=$(this).attr("data-id");$(".saswp-post-specific-wrapper").hide(),$("#"+b).show(),$("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),$("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),$(this).addClass("selected"),$(this).parent().addClass("selected"),saswp_enable_rating_review(),saswp_enable_rating_automate()}),$("#saswp-global-tabs a:first").addClass("saswp-global-selected"),$(".saswp-global-container").hide();var h=window.location.hash;if("#saswp-default-container"==h?$(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==h?$(".saswp-global-container:eq(1)").show():$(".saswp-global-container:first").show(),$("#saswp-global-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-global-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-global-container").hide(),$("#"+a).show())}),$("#saswp-review-tabs a:first").addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$(".saswp-review-container:first").show(),$("#saswp-review-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-review-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-review-container").hide(),$("#"+a).show())}),$("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$(".saswp-compatibility-container:first").show(),$("#saswp-compatibility-tabs a").click(function(){var a=$(this).attr("data-id");$(this).hasClass("saswp-global-selected")||($("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),$(this).addClass("saswp-global-selected"),$(".saswp-compatibility-container").hide(),$("#"+a).show())}),$('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),$(".saswp-enable-modify-schema-output").on("change",function(){$(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==$(this).val()&&($(".saswp-static-container").removeClass("saswp_hide"),$(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==$(this).val()&&($(".saswp-static-container").addClass("saswp_hide"),$(".saswp-dynamic-container").removeClass("saswp_hide"))}),$(document).on("change",".saswp-custom-fields-name",function(){var b="text",c=$(this).parent().parent("tr"),a=$(this).val();(-1!=a.indexOf("_image")|| -1!=a.indexOf("_logo"))&&(b="image");var d=$(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,b,null,d,a,c)}),$(document).on("click",".saswp-skip-button",function(a){a.preventDefault(),$(this).parent().parent().hide(),$.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){},"json")}),$(document).on("click",".saswp_add_schema_fields_on_fly",function(f){f.preventDefault();var d=$(this);d.addClass("updating-message");var b=$(this).attr("data-id"),e=$(this).attr("fields_type"),c=$(this).attr("div_type"),g=$(this).attr("itemlist_sub_type"),h=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div").length,a=$("saswp_specific_"+b+" , .saswp-"+c+"-table-div:nth-child("+h+")").attr("data-id");(a=++a)||(a=0),saswp_get_post_specific_schema_fields(d,a,e,c,b,e+"_",g)}),$(document).on("click",".saswp-table-close",function(){$(this).parent().remove()}),$(document).on("click",".saswp-rmv-modify_row",function(a){a.preventDefault(),$(this).parent().parent().remove()}),$(document).on("change",".saswp-custom-meta-list",function(){var f=$(this),g=$("select#schema_type option:selected").val(),d=$(this).val(),c=$(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),a="",b=g.toLowerCase()+"_"+c,e="saswp_fixed_image["+c+"]";"manual_text"==d?(a+='<td><textarea cols="35" rows="2" name="saswp_fixed_text['+c+']"></textarea></td>',a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"taxonomy_term"==d?saswp_taxonomy_term.taxonomy?(a+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2()):$.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(b){b&&(saswp_taxonomy_term.taxonomy=b,a+=saswp_taxonomy_term_html(b,c),f.parent().parent("tr").find("td:gt(1)").remove(),f.parent().parent("tr").append(a),saswpCustomSelect2())},"json"):"custom_field"==d?(a+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+c+']">',a+="</select></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):"fixed_image"==d?(a+="<td>",a+="<fieldset>",a+='<input data-id="media" style="width: 30%;" class="button" id="'+b+'_button" name="'+b+'_button" type="button" value="Upload" />',a+='<input type="hidden" data-id="'+b+'_height" class="upload-height" name="'+e+'[height]" id="'+b+'_height" value="">',a+='<input type="hidden" data-id="'+b+'_width" class="upload-width" name="'+e+'[width]" id="'+b+'_width" value="">',a+='<input type="hidden" data-id="'+b+'_thumbnail" class="upload-thumbnail" name="'+e+'[thumbnail]" id="'+b+'_thumbnail" value="">',a+='<div class="saswp_image_div_'+b+'">',a+="</div>",a+="</fieldset>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2()):(a+="<td></td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',$(this).parent().parent("tr").find("td:gt(1)").remove(),$(this).parent().parent("tr").append(a),saswpCustomSelect2())}),$(document).on("change",".saswp-item-reivewed-list",function(){$(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var a=$(this),b=$("select#schema_type option:selected").val();saswp_item_reviewed_ajax(b,a,"manual")}),$(document).on("click",".saswp-add-custom-fields",function(){var b=$(this);b.addClass("updating-message");var a=$("select#schema_type option:selected").val(),c="",d=null;"Review"==a&&(c=$("select.saswp-item-reivewed-list option:selected").val(),d="saswp_review_name");var e=$("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null):$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:e,schema_type:a,schema_subtype:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(c){saswp_meta_list_fields[a]=c,saswp_get_meta_list(b,"text",saswp_meta_list_fields[a],null,d,null)},error:function(a){console.log(a)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),$('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),$(document).on("click",".saswp_coonect_google_place",function(){var a=$("#saswp_google_place_id").val(),b=$("#saswp_language_list").val(),c=$("#saswp_googel_api").val();""!=a&&$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:a,language:b,google_api:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){console.log(a.status)},error:function(a){console.log(a)}})}),$(document).on("click",".saswp-add-social-links",function(){$(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),$(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),$(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var b='<div class="saswp-custom-post-tab">';b+='<div style="display:none;" id="saswp-accept-reviews-popup">',b+='<div class="saswp-accept-rv-container">',b+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",b+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',b+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton="1"]" type="text" readonly></div>',b+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key="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>',b+="</div>",b+="</div>",b+='<h2 class="nav-tab-wrapper">',b+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',b+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',b+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',b+="</h2>",b+="</div>",jQuery(jQuery(".wrap")).prepend(b)}jQuery(document).on("click",".saswp-clear-images",function(a){a.preventDefault();var b=$(this);!0==confirm("Are you sure? It will remove all the resized images")&&(b.addClass("updating-message"),$.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){b.removeClass("updating-message"),"t"!=a.status&&alert("something went wrong")},error:function(a){console.log(a)}}))}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&$(".saswp-rating-div").rateYo({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(a,b){$(this).next().next().val(a)}}).on("rateyo.change",function(c,a){var b=a.rating;$(this).next().text(b)}),$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var a=$(this);a.parent().find(".saswp-phone-validation").remove();var b=$(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(b)?a.parent().find(".saswp-phone-validation").remove():a.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),$(document).on("click",".saswp-add-rv-btn",function(){$(".saswp-dynamic-platforms").toggle()}),$(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var a="";a+='<div class="saswp-add-dynamic-section">',a+='<div class="saswp-add-dynamic-btn">',a+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',a+="</div>",a+='<div class="saswp-dynamic-platforms" style="display:none;">',a+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",a+="</div>",a+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(a)}}),$(document).on("change","#saswp_dynamic_platforms",function(){var b=$(this).val(),a="";a+='<select id="saswp_dynamic_reviews_list">',a+="</select>",a+='<a class="button button-default saswp-add-single-rv">Add</a>',$("#saswp_dynamic_platforms").nextAll().remove(),$("#saswp_dynamic_platforms").after(a);var c=ajaxurl+"?action=saswp_add_reviews_to_select2&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&platform_id="+b;$("#saswp_dynamic_reviews_list").select2({ajax:{url:c,dataType:"json",processResults:function(a){if(a.status)return{results:a.message}}}})}),$(document).on("click",".saswp-add-single-rv",function(b){b.preventDefault();var a=$("#saswp_dynamic_reviews_list").val(),c=$("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,c,null,a,!0)}),$(document).on("click",".saswp-remove-coll-rv",function(){var c=$(this).attr("data-id"),a=$(this).attr("platform-id");if(a){var b=saswp_collection[a].filter(function(a){return a.saswp_review_id!=c});saswp_collection[a]=b,saswp_on_collection_design_change()}}),$(document).on("click",".saswp-grid-page",function(a){a.preventDefault(),saswp_grid_page=$(this).attr("data-id"),saswp_on_collection_design_change()}),$("#saswp-coll-pagination").change(function(){saswp_grid_page=1,$("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),$(this).is(":checked")&&$("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),$(".saswp-accordion").click(function(){$(this).toggleClass("active"),$(this).next(".saswp-accordion-panel").slideToggle(200)}),$(document).on("click",".saswp-opn-cls-btn",function(){$("#saswp-reviews-cntn").toggle(),$("#saswp-reviews-cntn").is(":visible")?($(".saswp-onclick-show").css("display","flex"),$(".saswp-onclick-hide").hide(),$(".saswp-open-class").css("width","500px")):($(".saswp-onclick-show").css("display","none"),$(".saswp-onclick-hide").show(),$(".saswp-open-class").css("width","300px"))}),$(".saswp-collection-display-method").change(function(){"shortcode"==$(this).val()?$(".saswp-collection-shortcode").removeClass("saswp_hide"):$(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),$(document).on("click",".saswp-remove-platform",function(a){a.preventDefault();var b=$(this).attr("platform-id");saswp_collection.splice(b,1),$(this).parent().remove(),saswp_on_collection_design_change()}),$(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),$(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var a=$(".saswp-collection-desing").val(),b=$(".saswp-collection-sorting").val();$(".saswp-coll-options").addClass("saswp_hide"),$(".saswp-collection-lp").css("height","auto"),$(".saswp-rmv-coll-rv").hide(),$(".saswp-add-dynamic-section").hide(),"grid"==a&&($(".saswp-grid-options").removeClass("saswp_hide"),$(".saswp-rmv-coll-rv").show(),$(".saswp-add-dynamic-section").show()),"gallery"==a&&$(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==a&&($(".saswp-fomo-options").removeClass("saswp_hide"),$(".saswp-collection-lp").css("height","31px")),"popup"==a&&$(".saswp-collection-lp").css("height","31px"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide"),"recent"==b?($("#saswp_collection_specific_rating").parent().parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"),$("#saswp_collection_specific_rating").is(":checked")?$("#saswp_collection_specific_rating_sel").parent().removeClass("saswp_hide"):$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")):($("#saswp_collection_specific_rating").parent().parent().addClass("saswp_hide"),$("#saswp_collection_specific_rating_sel").parent().addClass("saswp_hide")),saswp_on_collection_design_change()}).change(),$(".saswp-add-to-collection").on("click",function(d){d.preventDefault();var a=$(this),b=$("#saswp-plaftorm-list").val(),c=$("#saswp-review-count").val();b&&c>0?(a.addClass("updating-message"),saswp_get_collection_data(c,b,a,null)):alert("Enter Count")});var i=$("#saswp_total_reviews_list").val();i&&saswp_get_collection_data(null,null,null,null,i),(f=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",f.innerHTML="Copied!",document.body.appendChild(f);var j=document.getElementById("saswp-motivatebox");j&&j.addEventListener("mouseup",function(a){var c,d,e,h,b,a=a||event,g=a.target||a.srcElement;"motivate"==g.className&&(c=g,(d=document.createRange()).selectNodeContents(c),(e=window.getSelection()).removeAllRanges(),e.addRange(d),function(){var a;try{a=document.execCommand("copy")}catch(b){a=!1}return a}()&&(b=a||event,clearTimeout(k),f.style.left=b.pageX-10+"px",f.style.top=b.pageY+15+"px",f.style.opacity=1,k=setTimeout(function(){f.style.opacity=0},500)))},!1)})
|
1 |
+
var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function(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)});
|
@@ -1062,6 +1062,18 @@ function saswp_general_page_callback(){
|
|
1062 |
'name' => 'sd_data[saswp_comments_schema]',
|
1063 |
)
|
1064 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1065 |
|
1066 |
if($nav_menu){
|
1067 |
|
@@ -2779,6 +2791,19 @@ function saswp_compatibility_page_callback(){
|
|
2779 |
'name' => 'sd_data[saswp-ultimatefaqs]',
|
2780 |
)
|
2781 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2782 |
$showcaseidx = array(
|
2783 |
'label' => 'Showcase IDX',
|
2784 |
'id' => 'saswp-showcaseidx-checkbox',
|
@@ -4139,6 +4164,7 @@ function saswp_compatibility_page_callback(){
|
|
4139 |
if(!is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
|
4140 |
|
4141 |
$wpreviewslider['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/reviews-for-schema/">Reviews For Schema</a>';
|
|
|
4142 |
}
|
4143 |
if(!is_plugin_active('polylang-compatibility-for-saswp/polylang-compatibility-for-saswp.php')){
|
4144 |
|
@@ -4308,6 +4334,7 @@ function saswp_compatibility_page_callback(){
|
|
4308 |
$wpjobopenings,
|
4309 |
$accordionfaq,
|
4310 |
$ultimatefaqs,
|
|
|
4311 |
$showcaseidx,
|
4312 |
$arconixfaq,
|
4313 |
$faqconcertina,
|
@@ -4649,9 +4676,10 @@ function saswp_enqueue_saswp_select2_js( $hook ) {
|
|
4649 |
//DIGINEX theme compatibility starts
|
4650 |
wp_dequeue_script( 'select2-js' );
|
4651 |
//DIGINEX theme compatibility ends
|
4652 |
-
|
4653 |
-
|
4654 |
-
|
|
|
4655 |
|
4656 |
// Dequeue mediclinic theme's select2 on schema dashboard to remove conflict.
|
4657 |
wp_dequeue_script( 'mkdf-select2-script' );
|
@@ -4714,6 +4742,24 @@ add_action( 'admin_footer', 'saswp_dequeue_other_select2_on_saswp_screen',9999 )
|
|
4714 |
|
4715 |
add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_js' );
|
4716 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4717 |
function saswp_option_page_capability( $capability ) {
|
4718 |
return saswp_current_user_can();
|
4719 |
}
|
1062 |
'name' => 'sd_data[saswp_comments_schema]',
|
1063 |
)
|
1064 |
);
|
1065 |
+
|
1066 |
+
$meta_fields_default[] = array(
|
1067 |
+
'label' => 'Remove Version Tag',
|
1068 |
+
'id' => 'saswp_remove_version_tag_checkbox',
|
1069 |
+
'name' => 'saswp_remove_version_tag_checkbox',
|
1070 |
+
'type' => 'checkbox',
|
1071 |
+
'class' => 'checkbox saswp-checkbox',
|
1072 |
+
'hidden' => array(
|
1073 |
+
'id' => 'saswp_remove_version_tag',
|
1074 |
+
'name' => 'sd_data[saswp_remove_version_tag]',
|
1075 |
+
)
|
1076 |
+
);
|
1077 |
|
1078 |
if($nav_menu){
|
1079 |
|
2791 |
'name' => 'sd_data[saswp-ultimatefaqs]',
|
2792 |
)
|
2793 |
);
|
2794 |
+
|
2795 |
+
$ultimatemember = array(
|
2796 |
+
'label' => 'Ultimate Member – User Profile, User Registration, Login & Membership Plugin',
|
2797 |
+
'id' => 'saswp-ultimatemember-checkbox',
|
2798 |
+
'name' => 'saswp-ultimatemember-checkbox',
|
2799 |
+
'type' => 'checkbox',
|
2800 |
+
'class' => 'checkbox saswp-checkbox',
|
2801 |
+
'note' => saswp_get_field_note('ultimatemember'),
|
2802 |
+
'hidden' => array(
|
2803 |
+
'id' => 'saswp-ultimatemember',
|
2804 |
+
'name' => 'sd_data[saswp-ultimatemember]',
|
2805 |
+
)
|
2806 |
+
);
|
2807 |
$showcaseidx = array(
|
2808 |
'label' => 'Showcase IDX',
|
2809 |
'id' => 'saswp-showcaseidx-checkbox',
|
4164 |
if(!is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
|
4165 |
|
4166 |
$wpreviewslider['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/reviews-for-schema/">Reviews For Schema</a>';
|
4167 |
+
$ultimatemember['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/reviews-for-schema/">Reviews For Schema</a>';
|
4168 |
}
|
4169 |
if(!is_plugin_active('polylang-compatibility-for-saswp/polylang-compatibility-for-saswp.php')){
|
4170 |
|
4334 |
$wpjobopenings,
|
4335 |
$accordionfaq,
|
4336 |
$ultimatefaqs,
|
4337 |
+
$ultimatemember,
|
4338 |
$showcaseidx,
|
4339 |
$arconixfaq,
|
4340 |
$faqconcertina,
|
4676 |
//DIGINEX theme compatibility starts
|
4677 |
wp_dequeue_script( 'select2-js' );
|
4678 |
//DIGINEX theme compatibility ends
|
4679 |
+
if($post_type != 'case27_listing_type'){
|
4680 |
+
wp_dequeue_script( 'select2' );
|
4681 |
+
wp_deregister_script( 'select2' );
|
4682 |
+
}
|
4683 |
|
4684 |
// Dequeue mediclinic theme's select2 on schema dashboard to remove conflict.
|
4685 |
wp_dequeue_script( 'mkdf-select2-script' );
|
4742 |
|
4743 |
add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_js' );
|
4744 |
|
4745 |
+
//This is for remove the js conflicts of forminator plugin
|
4746 |
+
function saswp_forminatorPlugin_dequeue_script() {
|
4747 |
+
|
4748 |
+
$post_type = '';
|
4749 |
+
$current_screen = get_current_screen();
|
4750 |
+
|
4751 |
+
if(isset($current_screen->post_type)){
|
4752 |
+
$post_type = $current_screen->post_type;
|
4753 |
+
}
|
4754 |
+
|
4755 |
+
if($post_type == 'saswp'){
|
4756 |
+
wp_dequeue_script( 'shared-ui');
|
4757 |
+
|
4758 |
+
wp_dequeue_script( 'forminator-shortcode-generator');
|
4759 |
+
}
|
4760 |
+
}
|
4761 |
+
add_action( 'admin_footer', 'saswp_forminatorPlugin_dequeue_script',20 );
|
4762 |
+
|
4763 |
function saswp_option_page_capability( $capability ) {
|
4764 |
return saswp_current_user_can();
|
4765 |
}
|
@@ -14,7 +14,7 @@ class SASWP_Youtube
|
|
14 |
public static function getVideoInfo($vid, $api_key)
|
15 |
{
|
16 |
$params = array(
|
17 |
-
'part' => 'contentDetails',
|
18 |
'id' => $vid,
|
19 |
'key' => $api_key,
|
20 |
);
|
@@ -22,10 +22,21 @@ class SASWP_Youtube
|
|
22 |
$api_url = SASWP_Youtube::$api_base . '?' . http_build_query($params);
|
23 |
$result = json_decode(@file_get_contents($api_url), true);
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
if(empty($result['items'][0]['contentDetails']))
|
26 |
return null;
|
27 |
$vinfo = $result['items'][0]['contentDetails'];
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
$interval = new DateInterval($vinfo['duration']);
|
30 |
$vinfo['duration_sec'] = $interval->h * 3600 + $interval->i * 60 + $interval->s;
|
31 |
|
14 |
public static function getVideoInfo($vid, $api_key)
|
15 |
{
|
16 |
$params = array(
|
17 |
+
'part' => 'contentDetails,snippet,statistics',
|
18 |
'id' => $vid,
|
19 |
'key' => $api_key,
|
20 |
);
|
22 |
$api_url = SASWP_Youtube::$api_base . '?' . http_build_query($params);
|
23 |
$result = json_decode(@file_get_contents($api_url), true);
|
24 |
|
25 |
+
if($result['items'][0]['snippet']){
|
26 |
+
|
27 |
+
$vinfo['snippet'] = $result['items'][0]['snippet'];
|
28 |
+
}
|
29 |
+
|
30 |
if(empty($result['items'][0]['contentDetails']))
|
31 |
return null;
|
32 |
$vinfo = $result['items'][0]['contentDetails'];
|
33 |
|
34 |
+
if($result['items'][0]['snippet']['publishedAt']){ $vinfo['uploadDate'] = $result['items'][0]['snippet']['publishedAt']; }
|
35 |
+
if($result['items'][0]['snippet']['title']){ $vinfo['title'] = $result['items'][0]['snippet']['title']; }
|
36 |
+
if($result['items'][0]['snippet']['description']){ $vinfo['description'] = $result['items'][0]['snippet']['description']; }
|
37 |
+
if($result['items'][0]['statistics']['viewCount']){ $vinfo['viewCount'] = $result['items'][0]['statistics']['viewCount']; }
|
38 |
+
|
39 |
+
|
40 |
$interval = new DateInterval($vinfo['duration']);
|
41 |
$vinfo['duration_sec'] = $interval->h * 3600 + $interval->i * 60 + $interval->s;
|
42 |
|
@@ -121,6 +121,13 @@ return array(
|
|
121 |
'opt_name' => 'saswp-ultimatefaqs',
|
122 |
'part_in' => 'pro',
|
123 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
'showcaseidx' => array(
|
125 |
'name' => 'Showcase IDX Real Estate Search',
|
126 |
'free' => 'showcase-idx/showcaseidx.php',
|
121 |
'opt_name' => 'saswp-ultimatefaqs',
|
122 |
'part_in' => 'pro',
|
123 |
),
|
124 |
+
'ultimatemember' => array(
|
125 |
+
'name' => 'Ultimate Member – User Profile, User Registration, Login & Membership Plugin',
|
126 |
+
'free' => 'ultimate-member/ultimate-member.php',
|
127 |
+
'pro' => 'um-reviews/um-reviews.php',
|
128 |
+
'opt_name' => 'saswp-ultimatemember',
|
129 |
+
'part_in' => 'pro',
|
130 |
+
),
|
131 |
'showcaseidx' => array(
|
132 |
'name' => 'Showcase IDX Real Estate Search',
|
133 |
'free' => 'showcase-idx/showcaseidx.php',
|
@@ -28,8 +28,15 @@ return array( 'schema_type_element' => array(
|
|
28 |
'tech_article_items' => 'tech_article_items',
|
29 |
),
|
30 |
'Product' => array(
|
31 |
-
'product_reviews' => 'product_reviews',
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
'DataFeed' => array(
|
34 |
'feed_element' => 'feed_element',
|
35 |
),
|
@@ -205,7 +212,21 @@ return array( 'schema_type_element' => array(
|
|
205 |
'name' => 'saswp_product_reviews_created_date',
|
206 |
'type' => 'text',
|
207 |
)
|
208 |
-
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
'feed_element' => array(
|
210 |
array(
|
211 |
'label' => 'Date Created',
|
28 |
'tech_article_items' => 'tech_article_items',
|
29 |
),
|
30 |
'Product' => array(
|
31 |
+
'product_reviews' => 'product_reviews',
|
32 |
+
'product_pros' => 'product_pros',
|
33 |
+
'product_cons' => 'product_cons',
|
34 |
+
),
|
35 |
+
'SoftwareApplication' => array(
|
36 |
+
'product_reviews' => 'product_reviews',
|
37 |
+
'product_pros' => 'product_pros',
|
38 |
+
'product_cons' => 'product_cons',
|
39 |
+
),
|
40 |
'DataFeed' => array(
|
41 |
'feed_element' => 'feed_element',
|
42 |
),
|
212 |
'name' => 'saswp_product_reviews_created_date',
|
213 |
'type' => 'text',
|
214 |
)
|
215 |
+
),
|
216 |
+
'product_pros' => array(
|
217 |
+
array(
|
218 |
+
'label' => 'Pros Text',
|
219 |
+
'name' => 'saswp_product_pros_title',
|
220 |
+
'type' => 'text',
|
221 |
+
),
|
222 |
+
),
|
223 |
+
'product_cons' => array(
|
224 |
+
array(
|
225 |
+
'label' => 'Cons Text',
|
226 |
+
'name' => 'saswp_product_cons_title',
|
227 |
+
'type' => 'text',
|
228 |
+
),
|
229 |
+
),
|
230 |
'feed_element' => array(
|
231 |
array(
|
232 |
'label' => 'Date Created',
|
@@ -3253,10 +3253,16 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3253 |
'id' => 'saswp_product_schema_availability_'.$schema_id,
|
3254 |
'type' => 'select',
|
3255 |
'options' => array(
|
|
|
|
|
|
|
|
|
3256 |
'InStock' => 'In Stock',
|
|
|
|
|
3257 |
'OutOfStock' => 'Out Of Stock',
|
3258 |
-
'Discontinued' => 'Discontinued',
|
3259 |
'PreOrder' => 'Pre Order',
|
|
|
3260 |
),
|
3261 |
'default' => saswp_remove_warnings($product_details, 'product_availability', 'saswp_string')
|
3262 |
),
|
@@ -3322,7 +3328,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3322 |
'label' => 'Aggregate Rating',
|
3323 |
'id' => 'saswp_product_schema_enable_rating_'.$schema_id,
|
3324 |
'type' => 'checkbox',
|
3325 |
-
),
|
3326 |
array(
|
3327 |
'label' => 'Rating',
|
3328 |
'id' => 'saswp_product_schema_rating_'.$schema_id,
|
@@ -3334,7 +3340,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
3334 |
'id' => 'saswp_product_schema_review_count_'.$schema_id,
|
3335 |
'type' => 'text',
|
3336 |
'default' => saswp_remove_warnings($product_details, 'product_review_count', 'saswp_string')
|
3337 |
-
)
|
3338 |
|
3339 |
);
|
3340 |
|
3253 |
'id' => 'saswp_product_schema_availability_'.$schema_id,
|
3254 |
'type' => 'select',
|
3255 |
'options' => array(
|
3256 |
+
'BackOrder' => 'Back Order',
|
3257 |
+
'Discontinued' => 'Discontinued',
|
3258 |
+
'Discontinued' => 'Discontinued',
|
3259 |
+
'InStoreOnly' => 'In Store Only',
|
3260 |
'InStock' => 'In Stock',
|
3261 |
+
'LimitedAvailability' => 'Limited Availability',
|
3262 |
+
'OnlineOnly' => 'Online Only',
|
3263 |
'OutOfStock' => 'Out Of Stock',
|
|
|
3264 |
'PreOrder' => 'Pre Order',
|
3265 |
+
'PreSale' => 'Pre Sale',
|
3266 |
),
|
3267 |
'default' => saswp_remove_warnings($product_details, 'product_availability', 'saswp_string')
|
3268 |
),
|
3328 |
'label' => 'Aggregate Rating',
|
3329 |
'id' => 'saswp_product_schema_enable_rating_'.$schema_id,
|
3330 |
'type' => 'checkbox',
|
3331 |
+
),
|
3332 |
array(
|
3333 |
'label' => 'Rating',
|
3334 |
'id' => 'saswp_product_schema_rating_'.$schema_id,
|
3340 |
'id' => 'saswp_product_schema_review_count_'.$schema_id,
|
3341 |
'type' => 'text',
|
3342 |
'default' => saswp_remove_warnings($product_details, 'product_review_count', 'saswp_string')
|
3343 |
+
)
|
3344 |
|
3345 |
);
|
3346 |
|
@@ -1,525 +1,727 @@
|
|
1 |
|
2 |
( function( blocks, element, editor, components, i18n ) {
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
type: 'string',
|
33 |
-
default: '
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
type: 'boolean',
|
40 |
-
default:
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
query: {
|
50 |
-
title: {
|
51 |
-
type: 'string',
|
52 |
-
selector: '.title'
|
53 |
-
},
|
54 |
-
description: {
|
55 |
-
type: 'string',
|
56 |
-
selector: '.description'
|
57 |
-
},
|
58 |
-
questionID: {
|
59 |
-
type: 'string',
|
60 |
-
},
|
61 |
-
imageId: {
|
62 |
-
type: 'integer'
|
63 |
-
},
|
64 |
-
imageUrl: {
|
65 |
-
type: 'string'
|
66 |
-
},
|
67 |
-
index: {
|
68 |
-
type: 'number',
|
69 |
-
attribute: 'data-index'
|
70 |
-
},
|
71 |
-
isSelected: {
|
72 |
-
type: 'boolean',
|
73 |
-
default:false
|
74 |
-
}
|
75 |
}
|
76 |
-
}
|
77 |
-
},
|
78 |
-
edit: function(props) {
|
79 |
-
|
80 |
-
var attributes = props.attributes;
|
81 |
-
var alignment = props.attributes.alignment;
|
82 |
-
|
83 |
-
//List of function for the current blocks starts here
|
84 |
-
|
85 |
-
function saswpGetImageSrc( item ) {
|
86 |
-
|
87 |
-
var contents = item.description;
|
88 |
-
|
89 |
-
if ( ! contents ) {
|
90 |
-
|
91 |
-
return false;
|
92 |
-
}
|
93 |
-
|
94 |
-
const image = contents.match(/<img/);
|
95 |
-
|
96 |
-
if ( image ) {
|
97 |
-
return true;
|
98 |
-
}else {
|
99 |
-
|
100 |
-
return false;
|
101 |
-
}
|
102 |
-
|
103 |
}
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
-
|
160 |
-
|
161 |
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
162 |
-
arr2[i] = arr[i];
|
163 |
-
}
|
164 |
-
return arr2;
|
165 |
-
} else {
|
166 |
-
return Array.from(arr);
|
167 |
-
}
|
168 |
-
}
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
const oldAttributes = attributes;
|
184 |
-
const oldItems = attributes.items;
|
185 |
-
oldItems.forEach(function(value, index){
|
186 |
-
|
187 |
-
if(index == item.index){
|
188 |
-
|
189 |
-
oldItems[index]['description'] = value['description']+image;
|
190 |
-
oldItems[index]['imageUrl'] = media.url;
|
191 |
-
oldItems[index]['imageId'] = media.id;
|
192 |
-
|
193 |
-
}
|
194 |
-
|
195 |
-
});
|
196 |
-
|
197 |
-
oldAttributes['items'] = oldItems;
|
198 |
-
props.setAttributes({
|
199 |
-
attributes: oldAttributes
|
200 |
-
});
|
201 |
-
|
202 |
-
},
|
203 |
-
allowedTypes:[ "image" ],
|
204 |
-
value: item.id,
|
205 |
-
render:function(obj){
|
206 |
-
return el( IconButton, {
|
207 |
-
icon: "insert",
|
208 |
-
className: 'saswp-faq-step-button saswp-to-step-add-media',
|
209 |
-
onClick: obj.open
|
210 |
-
},
|
211 |
-
__('Add Image', 'schema-and-structured-data-for-wp')
|
212 |
-
)
|
213 |
-
}
|
214 |
-
}): null,
|
215 |
-
el( IconButton, {
|
216 |
-
icon: "trash",
|
217 |
-
className: 'saswp-faq-step-button',
|
218 |
-
onClick: function() {
|
219 |
-
|
220 |
-
const oldAttributes = attributes;
|
221 |
-
const oldItems = attributes.items;
|
222 |
-
const newTestimonials = oldItems
|
223 |
-
|
224 |
-
.filter(function(itemFilter){
|
225 |
-
return itemFilter.index != item.index
|
226 |
-
}).map(function(t){
|
227 |
-
if (t.index > oldItems.index) {
|
228 |
-
t.index -= 1;
|
229 |
-
}
|
230 |
-
return t;
|
231 |
-
});
|
232 |
-
|
233 |
-
newTestimonials.forEach(function(value, index){
|
234 |
-
newTestimonials[index]['title'] = value['title'];
|
235 |
-
newTestimonials[index]['description'] = value['description'];
|
236 |
-
newTestimonials[index]['index'] = index;
|
237 |
-
newTestimonials[index]['isSelected'] = false;
|
238 |
-
});
|
239 |
-
|
240 |
-
oldAttributes['items'] = newTestimonials;
|
241 |
-
props.setAttributes({
|
242 |
-
attributes: oldAttributes
|
243 |
-
});
|
244 |
-
|
245 |
}
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
);
|
277 |
-
|
|
|
278 |
}
|
279 |
|
280 |
-
|
281 |
-
|
282 |
-
if(!item.isSelected){
|
283 |
-
return null;
|
284 |
-
}
|
285 |
-
|
286 |
-
return el('div',
|
287 |
-
{className:'saswp-faq-step-mover'},
|
288 |
-
el( IconButton, {
|
289 |
-
icon: "arrow-up-alt2",
|
290 |
-
className: 'editor-block-mover__control',
|
291 |
-
onClick: function() {
|
292 |
-
|
293 |
-
moveElementsByDirection('up', item);
|
294 |
-
|
295 |
-
}
|
296 |
-
},
|
297 |
-
|
298 |
-
),
|
299 |
-
el( IconButton, {
|
300 |
-
icon: "arrow-down-alt2",
|
301 |
-
className: 'editor-block-mover__control',
|
302 |
-
onClick: function() {
|
303 |
-
|
304 |
-
moveElementsByDirection('down', item);
|
305 |
-
|
306 |
-
}
|
307 |
-
},
|
308 |
-
)
|
309 |
-
);
|
310 |
-
}
|
311 |
-
//List of function for the current blocks ends here
|
312 |
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
onClick: function(){
|
327 |
-
|
328 |
-
const oldAttributes = attributes;
|
329 |
-
const oldItems = attributes.items;
|
330 |
-
oldItems.forEach(function(value, index){
|
331 |
-
|
332 |
-
if(index == item.index){
|
333 |
-
oldItems[index]['isSelected'] = true;
|
334 |
-
}else{
|
335 |
-
oldItems[index]['isSelected'] = false;
|
336 |
-
}
|
337 |
-
|
338 |
-
});
|
339 |
-
|
340 |
-
oldAttributes['items'] = oldItems;
|
341 |
-
props.setAttributes({
|
342 |
-
attributes: oldAttributes
|
343 |
-
});
|
344 |
-
}
|
345 |
-
},
|
346 |
-
attributes.orderType?
|
347 |
-
el('span',{
|
348 |
-
className:'saswp-faq-step-number'
|
349 |
-
},
|
350 |
-
attributes.toggleList ? '•':
|
351 |
-
( parseInt(item.index) + 1) + "."
|
352 |
-
):'',
|
353 |
-
el( RichText, {
|
354 |
-
tagName: attributes.headingTag,
|
355 |
-
className:'saswp-faq-step-title',
|
356 |
-
placeholder: __('Enter a question', 'schema-and-structured-data-for-wp'),
|
357 |
-
style: { textAlign: alignment },
|
358 |
-
value: item.title,
|
359 |
-
autoFocus: true,
|
360 |
-
onChange: function( value ) {
|
361 |
-
var newObject = Object.assign({}, item, {
|
362 |
-
title: value
|
363 |
-
});
|
364 |
-
return props.setAttributes({
|
365 |
-
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
366 |
-
return itemFilter.index != item.index;
|
367 |
-
})), [newObject])
|
368 |
-
});
|
369 |
}
|
370 |
-
}
|
|
|
371 |
),
|
372 |
-
el(
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
var newObject = Object.assign({}, item, {
|
382 |
-
|
383 |
});
|
384 |
return props.setAttributes({
|
385 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
386 |
return itemFilter.index != item.index;
|
387 |
})), [newObject])
|
388 |
});
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
placeholder: __('Question ID (Optional)', 'schema-and-structured-data-for-wp'),
|
400 |
-
onChange: function(value){
|
401 |
-
|
402 |
-
var newObject = Object.assign({}, item, {
|
403 |
-
questionID: value
|
404 |
-
});
|
405 |
-
return props.setAttributes({
|
406 |
-
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
407 |
-
return itemFilter.index != item.index;
|
408 |
-
})), [newObject])
|
409 |
-
});
|
410 |
-
}
|
411 |
-
}
|
412 |
-
)
|
413 |
-
: '',
|
414 |
-
saswpGetMover(item),
|
415 |
-
saswpGetButtons(item)
|
416 |
-
)
|
417 |
-
)
|
418 |
-
});
|
419 |
-
|
420 |
-
var itemlist = el('ul',{}, itemli);
|
421 |
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
checked:attributes.orderType,
|
436 |
-
onChange: function(newContent){
|
437 |
-
props.setAttributes( { orderType: newContent } );
|
438 |
-
},
|
439 |
-
help: function(value){
|
440 |
-
return (value == true ? 'select list type below': 'none')
|
441 |
-
},
|
442 |
-
|
443 |
-
},
|
444 |
-
),
|
445 |
-
attributes.orderType ?
|
446 |
-
el(ToggleControl,
|
447 |
-
{
|
448 |
className:'saswp-faq-toggle-list',
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
450 |
onChange: function(newContent){
|
451 |
-
props.setAttributes( {
|
452 |
},
|
453 |
help: function(value){
|
454 |
-
|
|
|
|
|
|
|
|
|
|
|
455 |
}
|
456 |
},
|
457 |
-
):'',
|
458 |
-
el(SelectControl,{
|
459 |
-
value : attributes.headingTag,
|
460 |
-
label: __('Heading Tag', 'schema-and-structured-data-for-wp'),
|
461 |
-
options:[
|
462 |
-
{ label: 'H1', value: 'h1' },
|
463 |
-
{ label: 'H2', value: 'h2' },
|
464 |
-
{ label: 'H3', value: 'h3' },
|
465 |
-
{ label: 'H4', value: 'h4' },
|
466 |
-
{ label: 'H5', value: 'h5' },
|
467 |
-
{ label: 'H6', value: 'h6' },
|
468 |
-
{ label: 'div',value: 'div'},
|
469 |
-
{ label: 'p', value: 'p' },
|
470 |
-
] ,
|
471 |
-
onChange: function(value){
|
472 |
-
props.setAttributes( { headingTag: value } );
|
473 |
-
}
|
474 |
-
}),
|
475 |
-
)
|
476 |
-
),
|
477 |
-
el(
|
478 |
-
BlockControls,
|
479 |
-
{ key: 'controls' },
|
480 |
-
el(
|
481 |
-
AlignmentToolbar,
|
482 |
-
{
|
483 |
-
value: alignment,
|
484 |
-
onChange: function(newAlignment){
|
485 |
-
props.setAttributes( { alignment: newAlignment === undefined ? 'none' : newAlignment } );
|
486 |
-
}
|
487 |
-
}
|
488 |
-
)
|
489 |
),
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
}(
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
) );
|
525 |
|
1 |
|
2 |
( function( blocks, element, editor, components, i18n ) {
|
3 |
|
4 |
+
const { __ } = i18n;
|
5 |
+
|
6 |
+
var el = element.createElement;
|
7 |
+
var RichText = editor.RichText;
|
8 |
+
var MediaUpload = editor.MediaUpload;
|
9 |
+
var IconButton = components.IconButton;
|
10 |
+
var AlignmentToolbar = editor.AlignmentToolbar;
|
11 |
+
var BlockControls = editor.BlockControls;
|
12 |
+
var InspectorControls = editor.InspectorControls;
|
13 |
+
|
14 |
+
var PanelBody = components.PanelBody;
|
15 |
+
var SelectControl = components.SelectControl;
|
16 |
+
var TextControl = components.TextControl;
|
17 |
+
|
18 |
+
|
19 |
+
blocks.registerBlockType( 'saswp/faq-block', {
|
20 |
+
title: __('FAQ (SASWP)', 'schema-and-structured-data-for-wp'),
|
21 |
+
icon: 'text',
|
22 |
+
category: 'saswp-blocks',
|
23 |
+
keywords: ['schema', 'structured data', 'FAQ', 'faq'],
|
24 |
+
|
25 |
+
// Allow only one How To block per post.
|
26 |
+
supports: {
|
27 |
+
multiple: false
|
28 |
+
},
|
29 |
+
|
30 |
+
attributes: {
|
31 |
+
alignment: {
|
32 |
+
type: 'string',
|
33 |
+
default: 'none'
|
34 |
+
},
|
35 |
+
headingTag: {
|
36 |
+
type: 'string' ,
|
37 |
+
default:'H5',
|
38 |
+
},
|
39 |
+
listStyle:{
|
40 |
+
type: 'string',
|
41 |
+
default:'None',
|
42 |
+
},
|
43 |
+
items: {
|
44 |
+
default: [{index: 0, title: "", description: "", imageUrl: "", imageId: null}],
|
45 |
+
selector: '.saswp-faq-block-data',
|
46 |
+
query: {
|
47 |
+
title: {
|
48 |
+
type: 'string',
|
49 |
+
selector: '.title'
|
50 |
+
},
|
51 |
+
description: {
|
52 |
+
type: 'string',
|
53 |
+
selector: '.description'
|
54 |
+
},
|
55 |
+
questionID: {
|
56 |
+
type: 'string',
|
57 |
+
},
|
58 |
+
imageId: {
|
59 |
+
type: 'integer'
|
60 |
+
},
|
61 |
+
imageUrl: {
|
62 |
+
type: 'string'
|
63 |
+
},
|
64 |
+
image_size: {
|
65 |
type: 'string',
|
66 |
+
default: 'full'
|
67 |
+
},
|
68 |
+
image_sizes: {
|
69 |
+
type: 'object'
|
70 |
+
},
|
71 |
+
image_align:{
|
72 |
+
type:'string',
|
73 |
+
default:'right'
|
74 |
+
},
|
75 |
+
image_alignment:{
|
76 |
+
type:'object'
|
77 |
+
},
|
78 |
+
image_height: {
|
79 |
+
type: 'number'
|
80 |
+
},
|
81 |
+
image_width: {
|
82 |
+
type: 'number'
|
83 |
+
},
|
84 |
+
image_selected: {
|
85 |
type: 'boolean',
|
86 |
+
default:false
|
87 |
+
},
|
88 |
+
index: {
|
89 |
+
type: 'number',
|
90 |
+
attribute: 'data-index'
|
91 |
+
},
|
92 |
+
isSelected: {
|
93 |
+
type: 'boolean',
|
94 |
+
default:false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
}
|
97 |
+
}
|
98 |
+
},
|
99 |
+
edit: function(props) {
|
100 |
+
|
101 |
+
var attributes = props.attributes;
|
102 |
+
var alignment = props.attributes.alignment;
|
103 |
+
|
104 |
+
//List of function for the current blocks starts here
|
105 |
+
|
106 |
+
function saswpGetImageSrc( item ) {
|
107 |
+
|
108 |
+
var contents = item.description;
|
109 |
+
|
110 |
+
if ( ! contents ) {
|
111 |
+
|
112 |
+
return false;
|
113 |
+
}
|
114 |
+
|
115 |
+
const image = contents.match(/<img/);
|
116 |
+
|
117 |
+
if ( image ) {
|
118 |
+
return true;
|
119 |
+
}else {
|
120 |
+
|
121 |
+
return false;
|
122 |
+
}
|
123 |
+
|
124 |
+
}
|
125 |
+
|
126 |
+
|
127 |
+
function moveElementsByDirection(direction, item){
|
128 |
+
|
129 |
+
var newIndex = null;
|
130 |
+
var oldIndex = parseInt(item.index);
|
131 |
+
const oldAttributes = attributes;
|
132 |
+
const oldItems = attributes.items;
|
133 |
+
|
134 |
+
if(direction == 'up'){
|
135 |
+
newIndex = parseInt(item.index)-1;
|
136 |
+
}
|
137 |
+
|
138 |
+
if(direction == 'down'){
|
139 |
+
newIndex = parseInt(item.index)+1;
|
140 |
+
}
|
141 |
+
|
142 |
+
if(newIndex >= oldItems.length){
|
143 |
+
newIndex = 0;
|
144 |
+
}
|
145 |
+
|
146 |
+
const newTestimonials = move(oldItems, oldIndex, newIndex);
|
147 |
+
|
148 |
+
newTestimonials.forEach(function(value, index){
|
149 |
+
newTestimonials[index]['title'] = value['title'];
|
150 |
+
newTestimonials[index]['description'] = value['description'];
|
151 |
+
newTestimonials[index]['index'] = index;
|
152 |
+
newTestimonials[index]['isSelected'] = false;
|
153 |
+
|
154 |
+
});
|
155 |
+
|
156 |
+
oldAttributes['items'] = newTestimonials;
|
157 |
+
props.setAttributes({
|
158 |
+
attributes: oldAttributes
|
159 |
+
});
|
160 |
+
|
161 |
+
}
|
162 |
+
|
163 |
+
function move(arr, old_index, new_index) {
|
164 |
+
while (old_index < 0) {
|
165 |
+
old_index += arr.length;
|
166 |
+
}
|
167 |
+
while (new_index < 0) {
|
168 |
+
new_index += arr.length;
|
169 |
+
}
|
170 |
+
if (new_index >= arr.length) {
|
171 |
+
var k = new_index - arr.length;
|
172 |
+
while ((k--) + 1) {
|
173 |
+
arr.push(undefined);
|
174 |
+
}
|
175 |
+
}
|
176 |
+
arr.splice(new_index, 0, arr.splice(old_index, 1)[0]);
|
177 |
+
return arr;
|
178 |
+
}
|
179 |
+
|
180 |
+
function _cloneArray(arr) {
|
181 |
+
if (Array.isArray(arr)) {
|
182 |
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
183 |
+
arr2[i] = arr[i];
|
184 |
+
}
|
185 |
+
return arr2;
|
186 |
+
} else {
|
187 |
+
return Array.from(arr);
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
function saswpGetButtons(item){
|
192 |
+
|
193 |
+
if(!item.isSelected){
|
194 |
+
return null;
|
195 |
+
}
|
196 |
+
|
197 |
+
return el('div', {className:'saswp-faq-button-container'},
|
198 |
+
!saswpGetImageSrc(item) ?
|
199 |
+
el(MediaUpload, {
|
200 |
+
onSelect: function(media){
|
201 |
+
|
202 |
+
const image = '<img style="height:'+media.height+'px; width: '+media.width+'px;" src="'+media.url+'" alt="'+media.alt+'" class="alignright" key="'+media.id+'"/>';
|
203 |
+
|
204 |
+
const oldAttributes = attributes;
|
205 |
+
const oldItems = attributes.items;
|
206 |
+
oldItems.forEach(function(value, index){
|
207 |
+
|
208 |
+
if(index == item.index){
|
209 |
+
|
210 |
+
oldItems[index]['description'] = image+value['description'];
|
211 |
+
oldItems[index]['imageUrl'] = media.url;
|
212 |
+
oldItems[index]['imageId'] = media.id;
|
213 |
+
oldItems[index]['image_sizes'] = media.sizes;
|
214 |
+
oldItems[index]['image_alignment']=media.alignment
|
215 |
+
oldItems[index]['image_height']= media.height;
|
216 |
+
oldItems[index]['image_width'] = media.width;
|
217 |
+
}
|
218 |
+
|
219 |
+
});
|
220 |
+
|
221 |
+
oldAttributes['items'] = oldItems;
|
222 |
+
props.setAttributes({
|
223 |
+
attributes: oldAttributes
|
224 |
+
});
|
225 |
+
|
226 |
+
},
|
227 |
+
allowedTypes:[ "image" ],
|
228 |
+
value: item.id,
|
229 |
+
render:function(obj){
|
230 |
+
return el( IconButton, {
|
231 |
+
icon: "insert",
|
232 |
+
className: 'saswp-faq-step-button saswp-to-step-add-media',
|
233 |
+
onClick: obj.open
|
234 |
+
},
|
235 |
+
__('Add Image', 'schema-and-structured-data-for-wp')
|
236 |
+
)
|
237 |
+
}
|
238 |
+
}): null,
|
239 |
+
el( IconButton, {
|
240 |
+
icon: "trash",
|
241 |
+
className: 'saswp-faq-step-button',
|
242 |
+
onClick: function() {
|
243 |
+
|
244 |
+
const oldAttributes = attributes;
|
245 |
+
const oldItems = attributes.items;
|
246 |
+
const newTestimonials = oldItems
|
247 |
|
248 |
+
.filter(function(itemFilter){
|
249 |
+
return itemFilter.index != item.index
|
250 |
+
}).map(function(t){
|
251 |
+
if (t.index > oldItems.index) {
|
252 |
+
t.index -= 1;
|
253 |
+
}
|
254 |
+
return t;
|
255 |
+
});
|
256 |
+
|
257 |
+
newTestimonials.forEach(function(value, index){
|
258 |
+
newTestimonials[index]['title'] = value['title'];
|
259 |
+
newTestimonials[index]['description'] = value['description'];
|
260 |
+
newTestimonials[index]['index'] = index;
|
261 |
+
newTestimonials[index]['isSelected'] = false;
|
262 |
+
});
|
263 |
+
|
264 |
+
oldAttributes['items'] = newTestimonials;
|
265 |
+
props.setAttributes({
|
266 |
+
attributes: oldAttributes
|
267 |
+
});
|
268 |
+
|
269 |
+
}
|
270 |
+
}
|
271 |
+
),
|
272 |
|
273 |
+
|
274 |
+
|
275 |
+
el( IconButton, {
|
276 |
+
icon: "insert",
|
277 |
+
className: 'saswp-faq-step-button',
|
278 |
+
onClick: function() {
|
279 |
+
|
280 |
+
const oldAttributes = attributes;
|
281 |
+
const oldItems = attributes.items;
|
282 |
+
|
283 |
+
const insertitem = {title:"",description:"",index:item.index, isSelected:false};
|
284 |
+
oldItems.splice(parseInt(item.index)+1, 0, insertitem);
|
285 |
+
|
286 |
+
const newTestimonials = oldItems;
|
287 |
+
|
288 |
+
newTestimonials.forEach(function(value, index){
|
289 |
+
newTestimonials[index]['title'] = value['title'];
|
290 |
+
newTestimonials[index]['description'] = value['description'];
|
291 |
+
newTestimonials[index]['index'] = index;
|
292 |
+
newTestimonials[index]['isSelected'] = false;
|
293 |
+
});
|
294 |
+
|
295 |
+
oldAttributes['items'] = newTestimonials;
|
296 |
+
props.setAttributes({
|
297 |
+
attributes: oldAttributes
|
298 |
+
});
|
299 |
+
}
|
300 |
+
}
|
301 |
+
)
|
302 |
+
|
303 |
+
);
|
304 |
+
|
305 |
+
}
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
function saswpReplaceImage(desc, image){
|
310 |
|
311 |
+
let modified_desc = desc.replace(/<img (.*?)\/>/g, image);
|
312 |
+
modified_desc = desc.replace(/<img (.*?)>/g, image);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
|
314 |
+
return modified_desc;
|
315 |
+
}
|
316 |
+
function saswpImageUpdate(value, item, height, width, image_type,image_align){
|
317 |
+
|
318 |
+
let image_url;
|
319 |
+
let image;
|
320 |
+
|
321 |
+
switch (value) {
|
322 |
+
case 'full':
|
323 |
+
if(image_type != null){
|
324 |
+
height = item.image_sizes.full.height;
|
325 |
+
width = item.image_sizes.full.width;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
}
|
327 |
+
|
328 |
+
image_url = item.image_sizes.full.url;
|
329 |
+
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
330 |
+
break;
|
331 |
+
case 'large':
|
332 |
+
if(image_type != null){
|
333 |
+
height = item.image_sizes.large.height;
|
334 |
+
width = item.image_sizes.large.width;
|
335 |
+
}
|
336 |
+
|
337 |
+
image_url = item.image_sizes.large.url;
|
338 |
+
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.large.url+'" key="'+item.image_sizes.large.url+'" />';
|
339 |
+
break;
|
340 |
+
case 'medium':
|
341 |
+
if(image_type != null){
|
342 |
+
height = item.image_sizes.medium.height;
|
343 |
+
width = item.image_sizes.medium.width;
|
344 |
+
}
|
345 |
+
|
346 |
+
image_url = item.image_sizes.medium.url;
|
347 |
+
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.medium.url+'" key="'+item.image_sizes.medium.url+'" />';
|
348 |
+
break;
|
349 |
+
case 'thumbnail':
|
350 |
+
if(image_type != null){
|
351 |
+
height = item.image_sizes.thumbnail.height;
|
352 |
+
width = item.image_sizes.thumbnail.width;
|
353 |
+
}
|
354 |
+
|
355 |
+
image_url = item.image_sizes.thumbnail.url;
|
356 |
+
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.thumbnail.url+'" key="'+item.image_sizes.thumbnail.url+'" />';
|
357 |
+
break;
|
358 |
+
case 'right':
|
359 |
+
image = '<img class="alignright" style="height:'+height+'px; width: '+width+'px; float:right;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
360 |
+
break;
|
361 |
+
case 'left':
|
362 |
+
image = '<img class="alignleft" style="height:'+height+'px; width: '+width+'px; float:left;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
363 |
+
break;
|
364 |
+
|
365 |
+
default:
|
366 |
+
break;
|
367 |
+
}
|
368 |
+
|
369 |
+
var newObject = Object.assign({}, item, {
|
370 |
+
image_size: value,
|
371 |
+
image_height: height,
|
372 |
+
image_align: image_align,
|
373 |
+
image_width: width,
|
374 |
+
imageUrl : image_url,
|
375 |
+
description : saswpReplaceImage(item.description, image)
|
376 |
+
});
|
377 |
+
return newObject;
|
378 |
+
}
|
379 |
+
|
380 |
+
function saswpImageSettings(item){
|
381 |
+
if(item.isSelected && item.imageUrl != ''){
|
382 |
+
return el(InspectorControls,
|
383 |
+
{
|
384 |
+
className:'saswp-faq-inspector',
|
385 |
+
key: 'inspector'
|
386 |
+
},
|
387 |
+
el(PanelBody,
|
388 |
+
{className:'saswp-faq-panel-body',
|
389 |
+
title:__('Image Settings', 'schema-and-structured-data-for-wp')
|
390 |
+
},
|
391 |
+
el(SelectControl,{
|
392 |
+
value : item.image_size,
|
393 |
+
className:"saswp-image-size",
|
394 |
+
label: __('Image Size', 'schema-and-structured-data-for-wp'),
|
395 |
+
options:[
|
396 |
+
{ label: 'Full Size', value: 'full' },
|
397 |
+
{ label: 'Large', value: 'large' },
|
398 |
+
{ label: 'Medium', value: 'medium' },
|
399 |
+
{ label: 'Thumbnail', value: 'thumbnail' },
|
400 |
+
] ,
|
401 |
+
onChange: function(value){
|
402 |
+
var newObject = saswpImageUpdate(value, item, '', '', 'image_type');
|
403 |
+
return props.setAttributes({
|
404 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
405 |
+
return itemFilter.index != item.index;
|
406 |
+
})), [newObject])
|
407 |
+
});
|
408 |
+
}
|
409 |
+
}),
|
410 |
+
el(SelectControl,{
|
411 |
+
value: item.image_align,
|
412 |
+
className:"saswp-image-align",
|
413 |
+
label: __( 'Image Align' , 'schema-and-structured-data-for-wp' ),
|
414 |
+
options: [
|
415 |
+
|
416 |
+
{ label: 'Right' , value: 'right'},
|
417 |
+
{ label: 'Left' , value: 'left'},
|
418 |
+
// { label: 'Center' , value: 'center'},
|
419 |
+
|
420 |
+
],
|
421 |
+
onChange: function(value){
|
422 |
+
var newObject = saswpImageUpdate(value, item, '', '', 'image_type');
|
423 |
+
return props.setAttributes({
|
424 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
425 |
+
return itemFilter.index != item.index;
|
426 |
+
})), [newObject])
|
427 |
+
});
|
428 |
+
}
|
429 |
+
}),
|
430 |
+
el('p',{
|
431 |
+
className: 'saswp-faq-dimesion-p'
|
432 |
+
}, 'Image Dimensions'),
|
433 |
+
el('div', {
|
434 |
+
className: "saswp-faq-dimension"
|
435 |
+
},
|
436 |
+
el( TextControl, {
|
437 |
+
className:'saswp-faq-image-dimension',
|
438 |
+
label:'Height',
|
439 |
+
type: 'number',
|
440 |
+
min:0,
|
441 |
+
placeholder: __('20', 'schema-and-structured-data-for-wp'),
|
442 |
+
value: item.image_height,
|
443 |
+
onChange: function( value ) {
|
444 |
+
var newObject = saswpImageUpdate(item.image_size, item, value, item.image_width, null);
|
445 |
+
|
446 |
+
return props.setAttributes({
|
447 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
448 |
+
return itemFilter.index != item.index;
|
449 |
+
})), [newObject])
|
450 |
+
});
|
451 |
+
}
|
452 |
+
}
|
453 |
+
),
|
454 |
+
el( TextControl, {
|
455 |
+
className:'saswp-faq-image-dimension',
|
456 |
+
label:'Width',
|
457 |
+
type: 'number',
|
458 |
+
min:0,
|
459 |
+
placeholder: __('20', 'schema-and-structured-data-for-wp'),
|
460 |
+
value: item.image_width,
|
461 |
+
onChange: function( value ) {
|
462 |
+
|
463 |
+
var newObject = saswpImageUpdate(item.image_size, item, item.image_height, value, null);
|
464 |
+
return props.setAttributes({
|
465 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
466 |
+
return itemFilter.index != item.index;
|
467 |
+
})), [newObject])
|
468 |
+
});
|
469 |
+
}
|
470 |
+
}
|
471 |
+
),
|
472 |
+
)
|
473 |
+
)
|
474 |
);
|
475 |
+
}else{
|
476 |
+
return null;
|
477 |
}
|
478 |
|
479 |
+
}
|
480 |
+
function saswpGetMover(item){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
|
482 |
+
if(!item.isSelected){
|
483 |
+
return null;
|
484 |
+
}
|
485 |
+
|
486 |
+
return el('div',
|
487 |
+
{className:'saswp-faq-step-mover'},
|
488 |
+
el( IconButton, {
|
489 |
+
icon: "arrow-up-alt2",
|
490 |
+
className: 'editor-block-mover__control',
|
491 |
+
onClick: function() {
|
492 |
+
|
493 |
+
moveElementsByDirection('up', item);
|
494 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
}
|
496 |
+
},
|
497 |
+
|
498 |
),
|
499 |
+
el( IconButton, {
|
500 |
+
icon: "arrow-down-alt2",
|
501 |
+
className: 'editor-block-mover__control',
|
502 |
+
onClick: function() {
|
503 |
+
|
504 |
+
moveElementsByDirection('down', item);
|
505 |
+
|
506 |
+
}
|
507 |
+
},
|
508 |
+
)
|
509 |
+
);
|
510 |
+
}
|
511 |
+
//List of function for the current blocks ends here
|
512 |
+
|
513 |
+
var itemli = attributes.items.sort(function(a , b) {
|
514 |
+
|
515 |
+
return a.index - b.index;
|
516 |
+
}).map(function(item){
|
517 |
+
|
518 |
+
if(!saswpGetImageSrc(item)){
|
519 |
+
item.imageUrl = '';
|
520 |
+
item.imageId = null;
|
521 |
+
}
|
522 |
+
|
523 |
+
return el('li',
|
524 |
+
{
|
525 |
+
className: 'item',
|
526 |
+
onClick: function(){
|
527 |
+
|
528 |
+
const oldAttributes = attributes;
|
529 |
+
const oldItems = attributes.items;
|
530 |
+
oldItems.forEach(function(value, index){
|
531 |
+
|
532 |
+
if(index == item.index){
|
533 |
+
oldItems[index]['isSelected'] = true;
|
534 |
+
}else{
|
535 |
+
oldItems[index]['isSelected'] = false;
|
536 |
+
}
|
537 |
+
|
538 |
+
});
|
539 |
+
|
540 |
+
oldAttributes['items'] = oldItems;
|
541 |
+
props.setAttributes({
|
542 |
+
attributes: oldAttributes
|
543 |
+
});
|
544 |
+
}
|
545 |
+
},
|
546 |
+
el('span',{
|
547 |
+
className:'saswp-faq-step-number'
|
548 |
+
},
|
549 |
+
attributes.listStyle == 'none'? '' : attributes.listStyle =='disc' ?'•': attributes.listStyle=='number' ?
|
550 |
+
( parseInt(item.index) + 1) + "." :''
|
551 |
+
),
|
552 |
+
el( RichText, {
|
553 |
+
tagName: attributes.headingTag,
|
554 |
+
className:'saswp-faq-step-title',
|
555 |
+
placeholder: __('Enter a question', 'schema-and-structured-data-for-wp'),
|
556 |
+
style: { textAlign: alignment },
|
557 |
+
value: item.title,
|
558 |
+
autoFocus: true,
|
559 |
+
onChange: function( value ) {
|
560 |
+
var newObject = Object.assign({}, item, {
|
561 |
+
title: value
|
562 |
+
});
|
563 |
+
return props.setAttributes({
|
564 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
565 |
+
return itemFilter.index != item.index;
|
566 |
+
})), [newObject])
|
567 |
+
});
|
568 |
+
}
|
569 |
+
}
|
570 |
+
),
|
571 |
+
el('div', {
|
572 |
+
|
573 |
+
className:"saswp",
|
574 |
+
},
|
575 |
+
el( RichText, {
|
576 |
+
tagName: 'p',
|
577 |
+
placeholder: __('Enter answer to the question', 'schema-and-structured-data-for-wp'),
|
578 |
+
className:'saswp-faq-step-description',
|
579 |
+
style: { textAlign: alignment },
|
580 |
+
value: item.description,
|
581 |
+
autoFocus: true,
|
582 |
+
onChange: function( value ) {
|
583 |
|
584 |
+
var newObject = Object.assign({}, item, {
|
585 |
+
description: value
|
586 |
+
});
|
587 |
+
return props.setAttributes({
|
588 |
+
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
589 |
+
return itemFilter.index != item.index;
|
590 |
+
})), [newObject])
|
591 |
+
});
|
592 |
+
|
593 |
+
}
|
594 |
+
}
|
595 |
+
),
|
596 |
+
),
|
597 |
+
el('div', {className:'saswp-faq-step-controls-container'},
|
598 |
+
item.isSelected ?
|
599 |
+
el(TextControl,
|
600 |
+
{
|
601 |
+
className:'saswp-faq-question-id',
|
602 |
+
value: item.questionID,
|
603 |
+
placeholder: __('Question ID (Optional)', 'schema-and-structured-data-for-wp'),
|
604 |
+
onChange: function(value){
|
605 |
+
|
606 |
var newObject = Object.assign({}, item, {
|
607 |
+
questionID: value
|
608 |
});
|
609 |
return props.setAttributes({
|
610 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
611 |
return itemFilter.index != item.index;
|
612 |
})), [newObject])
|
613 |
});
|
614 |
+
}
|
615 |
+
}
|
616 |
+
)
|
617 |
+
: '',
|
618 |
+
saswpImageSettings(item),
|
619 |
+
saswpGetMover(item),
|
620 |
+
saswpGetButtons(item)
|
621 |
+
)
|
622 |
+
)
|
623 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
624 |
|
625 |
+
var itemlist = el('ul',{}, itemli);
|
626 |
+
|
627 |
+
return [
|
628 |
+
el(InspectorControls,
|
629 |
+
{
|
630 |
+
className:'saswp-faq-inspector',
|
631 |
+
key: 'inspector'
|
632 |
+
},
|
633 |
+
el(PanelBody,
|
634 |
+
{className:'saswp-faq-panel-body',
|
635 |
+
title:'List Order Type'
|
636 |
+
},
|
637 |
+
el(SelectControl,{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
638 |
className:'saswp-faq-toggle-list',
|
639 |
+
value: attributes.listStyle,
|
640 |
+
options:[
|
641 |
+
{ label:'None', value: 'none' },
|
642 |
+
{ label: 'Number', value:'number' },
|
643 |
+
{ label:'disc', value:'disc' },
|
644 |
+
],
|
645 |
onChange: function(newContent){
|
646 |
+
props.setAttributes( { listStyle: newContent } );
|
647 |
},
|
648 |
help: function(value){
|
649 |
+
if(value=='none')
|
650 |
+
return '<li "style:list-style-type:none"></li>';
|
651 |
+
if( value == 'number')
|
652 |
+
return '<li "style:list-style-type:decimal"></li>';
|
653 |
+
if(value=='disc' )
|
654 |
+
return '<li "style:list-style-type:disc"></li>';
|
655 |
}
|
656 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
),
|
658 |
+
el(SelectControl,{
|
659 |
+
value : attributes.headingTag,
|
660 |
+
className: "saswp-heading",
|
661 |
+
label: __('Heading Tag', 'schema-and-structured-data-for-wp'),
|
662 |
+
options:[
|
663 |
+
{ label: 'H1', value: 'h1' },
|
664 |
+
{ label: 'H2', value: 'h2' },
|
665 |
+
{ label: 'H3', value: 'h3' },
|
666 |
+
{ label: 'H4', value: 'h4' },
|
667 |
+
{ label: 'H5', value: 'h5' },
|
668 |
+
{ label: 'H6', value: 'h6' },
|
669 |
+
{ label: 'Div', value:'div' },
|
670 |
+
{ label:'P', value:'p' }
|
671 |
+
|
672 |
+
] ,
|
673 |
+
onChange: function(value){
|
674 |
+
props.setAttributes( { headingTag: value } );
|
675 |
+
}
|
676 |
+
}),
|
677 |
+
)
|
678 |
+
),
|
679 |
+
el(
|
680 |
+
BlockControls,
|
681 |
+
{ key: 'controls' },
|
682 |
+
el(
|
683 |
+
AlignmentToolbar,
|
684 |
+
{
|
685 |
+
value: alignment,
|
686 |
+
onChange: function(newAlignment){
|
687 |
+
props.setAttributes( { alignment: newAlignment === undefined ? 'none' : newAlignment } );
|
688 |
+
}
|
689 |
+
}
|
690 |
+
)
|
691 |
+
),
|
692 |
+
,el(
|
693 |
+
'div',
|
694 |
+
{ className: props.className },
|
695 |
+
el('div', { className: 'saswp-faq-setp-list' },
|
696 |
+
itemlist,
|
697 |
+
),
|
698 |
+
el( IconButton, {
|
699 |
+
icon: "insert",
|
700 |
+
className: 'saswp-faq-step-button',
|
701 |
+
onClick: function() {
|
702 |
+
return props.setAttributes({
|
703 |
+
items: [].concat(_cloneArray(props.attributes.items), [{
|
704 |
+
index: props.attributes.items.length,
|
705 |
+
title: "",
|
706 |
+
description:""
|
707 |
+
}])
|
708 |
+
});
|
709 |
+
}
|
710 |
+
},
|
711 |
+
__('Add A Question', 'schema-and-structured-data-for-wp')
|
712 |
+
)
|
713 |
+
)];
|
714 |
+
|
715 |
+
},
|
716 |
+
save: function( props ) {
|
717 |
+
return null
|
718 |
+
}
|
719 |
+
} );
|
720 |
}(
|
721 |
+
window.wp.blocks,
|
722 |
+
window.wp.element,
|
723 |
+
window.wp.blockEditor,
|
724 |
+
window.wp.components,
|
725 |
+
window.wp.i18n,
|
726 |
) );
|
727 |
|
@@ -31,14 +31,10 @@
|
|
31 |
type: 'string',
|
32 |
default: 'none'
|
33 |
},
|
34 |
-
|
35 |
-
type: 'boolean',
|
36 |
-
default: false
|
37 |
-
},
|
38 |
-
orderType:{
|
39 |
type: 'boolean',
|
40 |
-
default:
|
41 |
-
|
42 |
description: {
|
43 |
type: 'string',
|
44 |
selector: '.saswp-how-to-main-description'
|
@@ -88,6 +84,13 @@
|
|
88 |
image_sizes: {
|
89 |
type: 'object'
|
90 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
image_height: {
|
92 |
type: 'number'
|
93 |
},
|
@@ -377,10 +380,12 @@
|
|
377 |
|
378 |
if(index == item.index){
|
379 |
|
380 |
-
oldItems[index]['description'] = value
|
|
|
381 |
oldItems[index]['imageUrl'] = media.url;
|
382 |
oldItems[index]['imageId'] = media.id;
|
383 |
oldItems[index]['image_sizes'] = media.sizes;
|
|
|
384 |
oldItems[index]['image_height']= media.height;
|
385 |
oldItems[index]['image_width'] = media.width;
|
386 |
|
@@ -479,7 +484,7 @@
|
|
479 |
return modified_desc;
|
480 |
}
|
481 |
|
482 |
-
function saswpImageUpdate(value, item, height, width, image_type){
|
483 |
|
484 |
let image_url;
|
485 |
let image;
|
@@ -529,6 +534,13 @@
|
|
529 |
image_url = item.image_sizes.thumbnail.url;
|
530 |
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.thumbnail.url+'" key="'+item.image_sizes.thumbnail.url+'" />';
|
531 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
|
533 |
default:
|
534 |
break;
|
@@ -537,6 +549,7 @@
|
|
537 |
var newObject = Object.assign({}, item, {
|
538 |
image_size: value,
|
539 |
image_height: height,
|
|
|
540 |
image_width: width,
|
541 |
imageUrl : image_url,
|
542 |
description : saswpReplaceImage(item.description, image)
|
@@ -567,7 +580,7 @@
|
|
567 |
] ,
|
568 |
onChange: function(value){
|
569 |
|
570 |
-
var newObject = saswpImageUpdate(value, item, '', '', 'image_type');
|
571 |
|
572 |
return props.setAttributes({
|
573 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
@@ -576,6 +589,26 @@
|
|
576 |
});
|
577 |
}
|
578 |
}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
el('p',{
|
580 |
className: 'saswp-how-to-dimesion-p'
|
581 |
}, 'Image Dimensions'),
|
@@ -695,13 +728,12 @@
|
|
695 |
});
|
696 |
}
|
697 |
},
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
):'',
|
705 |
el( RichText, {
|
706 |
tagName: 'p',
|
707 |
className:'saswp-how-to-step-title',
|
@@ -936,34 +968,29 @@
|
|
936 |
},
|
937 |
el(PanelBody,
|
938 |
{className:'saswp-how-to-panel-body',
|
939 |
-
title:__('
|
940 |
-
},
|
941 |
-
el(ToggleControl,
|
942 |
-
{
|
943 |
-
className:'saswp-faq-toggle-list-type',
|
944 |
-
checked:attributes.orderType,
|
945 |
-
onChange: function(newContent){
|
946 |
-
props.setAttributes( { orderType: newContent } );
|
947 |
-
},
|
948 |
-
help: function(value){
|
949 |
-
return (value == true ? 'select list type below': 'none')
|
950 |
-
},
|
951 |
-
|
952 |
-
},
|
953 |
-
),
|
954 |
-
attributes.orderType ?
|
955 |
-
el(ToggleControl,
|
956 |
-
{
|
957 |
-
className:'saswp-how-to-toggle-list',
|
958 |
-
checked:attributes.toggleList,
|
959 |
-
onChange: function(newContent){
|
960 |
-
props.setAttributes( { toggleList: newContent } );
|
961 |
-
},
|
962 |
-
help: function(value){
|
963 |
-
return (value == true ? __('Showing step item as an unordered list', 'schema-and-structured-data-for-wp'): __('Showing step item as an ordered list', 'schema-and-structured-data-for-wp'));
|
964 |
-
}
|
965 |
},
|
966 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
967 |
)
|
968 |
),
|
969 |
el(
|
31 |
type: 'string',
|
32 |
default: 'none'
|
33 |
},
|
34 |
+
listStyleType: {
|
|
|
|
|
|
|
|
|
35 |
type: 'boolean',
|
36 |
+
default: false
|
37 |
+
},
|
38 |
description: {
|
39 |
type: 'string',
|
40 |
selector: '.saswp-how-to-main-description'
|
84 |
image_sizes: {
|
85 |
type: 'object'
|
86 |
},
|
87 |
+
image_align:{
|
88 |
+
type:'string',
|
89 |
+
default:'left'
|
90 |
+
},
|
91 |
+
image_alignment:{
|
92 |
+
type:'object'
|
93 |
+
},
|
94 |
image_height: {
|
95 |
type: 'number'
|
96 |
},
|
380 |
|
381 |
if(index == item.index){
|
382 |
|
383 |
+
oldItems[index]['description'] = image+value
|
384 |
+
['description'];
|
385 |
oldItems[index]['imageUrl'] = media.url;
|
386 |
oldItems[index]['imageId'] = media.id;
|
387 |
oldItems[index]['image_sizes'] = media.sizes;
|
388 |
+
oldItems[index]['image_alignment']=media.alignment;
|
389 |
oldItems[index]['image_height']= media.height;
|
390 |
oldItems[index]['image_width'] = media.width;
|
391 |
|
484 |
return modified_desc;
|
485 |
}
|
486 |
|
487 |
+
function saswpImageUpdate(value, item, height, width, image_type,image_align){
|
488 |
|
489 |
let image_url;
|
490 |
let image;
|
534 |
image_url = item.image_sizes.thumbnail.url;
|
535 |
image = '<img style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.thumbnail.url+'" key="'+item.image_sizes.thumbnail.url+'" />';
|
536 |
break;
|
537 |
+
|
538 |
+
case 'right':
|
539 |
+
image = '<img class="alignright" style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
540 |
+
break;
|
541 |
+
case 'left':
|
542 |
+
image = '<img class="alignleft" style="height:'+height+'px; width: '+width+'px;" src="'+item.image_sizes.full.url+'" key="'+item.image_sizes.full.url+'" />';
|
543 |
+
break;
|
544 |
|
545 |
default:
|
546 |
break;
|
549 |
var newObject = Object.assign({}, item, {
|
550 |
image_size: value,
|
551 |
image_height: height,
|
552 |
+
image_align: image_align,
|
553 |
image_width: width,
|
554 |
imageUrl : image_url,
|
555 |
description : saswpReplaceImage(item.description, image)
|
580 |
] ,
|
581 |
onChange: function(value){
|
582 |
|
583 |
+
var newObject = saswpImageUpdate(value, item, '', '', 'image_type',image_align);
|
584 |
|
585 |
return props.setAttributes({
|
586 |
items: [].concat(_cloneArray(props.attributes.items.filter(function (itemFilter) {
|
589 |
});
|
590 |
}
|
591 |
}),
|
592 |
+
el(SelectControl,{
|
593 |
+
value: item.image_align,
|
594 |
+
className:"saswp-image-align",
|
595 |
+
label: __( 'Image Align' , 'schema-and-structured-data-for-wp' ),
|
596 |
+
options: [
|
597 |
+
{ label: 'Left' , value: 'left'},
|
598 |
+
{ label: 'Right' , value: 'right'},
|
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;
|
608 |
+
})), [newObject])
|
609 |
+
});
|
610 |
+
}
|
611 |
+
}),
|
612 |
el('p',{
|
613 |
className: 'saswp-how-to-dimesion-p'
|
614 |
}, 'Image Dimensions'),
|
728 |
});
|
729 |
}
|
730 |
},
|
731 |
+
el('span',{
|
732 |
+
className:'saswp-how-to-step-number'
|
733 |
+
},
|
734 |
+
attributes.listStyleType == 'none'? '' : attributes.listStyleType =='disc' ?'•': attributes.listStyleType=='number' ?
|
735 |
+
( parseInt(item.index) + 1) + "." :''
|
736 |
+
),
|
|
|
737 |
el( RichText, {
|
738 |
tagName: 'p',
|
739 |
className:'saswp-how-to-step-title',
|
968 |
},
|
969 |
el(PanelBody,
|
970 |
{className:'saswp-how-to-panel-body',
|
971 |
+
title:__('List Order Type', 'schema-and-structured-data-for-wp')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
972 |
},
|
973 |
+
el(SelectControl,{
|
974 |
+
className:'saswp-faq-toggle-list',
|
975 |
+
value: attributes.listStyleType,
|
976 |
+
options:[
|
977 |
+
{ label:'None', value: 'none' },
|
978 |
+
{ label: 'Number', value:'number' },
|
979 |
+
{ label:'disc', value:'disc' },
|
980 |
+
],
|
981 |
+
onChange: function(newContent){
|
982 |
+
props.setAttributes( { listStyleType: newContent } );
|
983 |
+
},
|
984 |
+
help: function(value){
|
985 |
+
if(value=='none')
|
986 |
+
return '<li "style:list-style-type:none"></li>';
|
987 |
+
if( value == 'number')
|
988 |
+
return '<li "style:list-style-type:decimal"></li>';
|
989 |
+
if(value=='disc' )
|
990 |
+
return '<li "style:list-style-type:disc"></li>';
|
991 |
+
}
|
992 |
+
},
|
993 |
+
),
|
994 |
)
|
995 |
),
|
996 |
el(
|
@@ -54,8 +54,9 @@ and open the template in the editor.
|
|
54 |
}
|
55 |
.saswp-how-to-setp-list li{
|
56 |
position: relative;
|
57 |
-
|
58 |
-
|
|
|
59 |
border: 1px solid rgba(145,151,162,.25);
|
60 |
list-style-type: none;
|
61 |
list-style: none;
|
@@ -121,8 +122,9 @@ and open the template in the editor.
|
|
121 |
}
|
122 |
.saswp-faq-setp-list li{
|
123 |
position: relative;
|
124 |
-
|
125 |
-
|
|
|
126 |
border: 1px solid rgba(145,151,162,.25);
|
127 |
list-style-type: none;
|
128 |
list-style: none;
|
@@ -136,6 +138,10 @@ and open the template in the editor.
|
|
136 |
.saswp-faq-step-title{
|
137 |
font-weight: 600;
|
138 |
}
|
|
|
|
|
|
|
|
|
139 |
.saswp-faq-button-container{
|
140 |
display: flex;
|
141 |
}
|
@@ -160,6 +166,19 @@ and open the template in the editor.
|
|
160 |
position: relative;
|
161 |
top: -12px;
|
162 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
.saswp-how-to-setp-block{
|
164 |
margin-bottom: 40px;
|
165 |
}
|
54 |
}
|
55 |
.saswp-how-to-setp-list li{
|
56 |
position: relative;
|
57 |
+
background: #eee;
|
58 |
+
padding: 17px 25px 17px 30px;
|
59 |
+
margin: 4px 0 0 -55px;
|
60 |
border: 1px solid rgba(145,151,162,.25);
|
61 |
list-style-type: none;
|
62 |
list-style: none;
|
122 |
}
|
123 |
.saswp-faq-setp-list li{
|
124 |
position: relative;
|
125 |
+
background: #eee;
|
126 |
+
padding: 17px 25px 17px 30px;
|
127 |
+
margin: 4px 0 0 -55px;
|
128 |
border: 1px solid rgba(145,151,162,.25);
|
129 |
list-style-type: none;
|
130 |
list-style: none;
|
138 |
.saswp-faq-step-title{
|
139 |
font-weight: 600;
|
140 |
}
|
141 |
+
.saswp-faq-step-description{
|
142 |
+
display: inline-block;
|
143 |
+
}
|
144 |
+
|
145 |
.saswp-faq-button-container{
|
146 |
display: flex;
|
147 |
}
|
166 |
position: relative;
|
167 |
top: -12px;
|
168 |
}
|
169 |
+
.saswp-faq-toggle-list{
|
170 |
+
height: auto;
|
171 |
+
}
|
172 |
+
.saswp-heading{
|
173 |
+
height: auto;
|
174 |
+
width: 100%;
|
175 |
+
}
|
176 |
+
.saswp-image-size{
|
177 |
+
height: auto;
|
178 |
+
}
|
179 |
+
.saswp-image-align{
|
180 |
+
height: auto;
|
181 |
+
}
|
182 |
.saswp-how-to-setp-block{
|
183 |
margin-bottom: 40px;
|
184 |
}
|
@@ -500,94 +500,120 @@ class SASWP_Gutenberg {
|
|
500 |
*/
|
501 |
public static function render_faq_data( $attributes ) {
|
502 |
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
echo '<div class="saswp-faq-block-section">';
|
512 |
-
if($attributes['items']){
|
513 |
-
|
514 |
-
$className = '';
|
515 |
-
if(isset($attributes['className'])){
|
516 |
-
$className = 'class="'.esc_attr($attributes['className']).'"';
|
517 |
-
}
|
518 |
-
|
519 |
-
if(isset($attributes['orderType'])){
|
520 |
-
echo'<ol '.$className.' style="list-style-type:none; margin-left:-41px;">';
|
521 |
-
}elseif(!isset($attributes['toggleList'])){
|
522 |
-
echo '<ol '.$className.'>';
|
523 |
-
}else{
|
524 |
-
echo '<ul '.$className.'>';
|
525 |
-
}
|
526 |
|
527 |
-
|
|
|
528 |
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
|
|
|
|
554 |
break;
|
555 |
-
|
556 |
-
|
557 |
-
break;
|
558 |
-
case 'div':
|
559 |
-
echo '<div>'.html_entity_decode(esc_attr($item['title'])).'</div>';
|
560 |
break;
|
561 |
-
|
562 |
-
echo '<p>'.html_entity_decode(esc_attr($item['title'])).'</p>';
|
563 |
-
break;
|
564 |
-
|
565 |
-
|
566 |
default:
|
567 |
-
echo
|
568 |
-
|
569 |
}
|
570 |
-
|
571 |
-
}else{
|
572 |
-
echo '<strong class="saswp-faq-question-title">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
|
573 |
}
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
591 |
/**
|
592 |
* Function to render 'howto' block data in frontend post content
|
593 |
* @param type $attributes
|
@@ -663,28 +689,48 @@ class SASWP_Gutenberg {
|
|
663 |
if(isset($attributes['className'])){
|
664 |
$className = 'class="'.esc_attr($attributes['className']).'"';
|
665 |
}
|
666 |
-
|
667 |
-
if(isset($attributes['
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
|
|
|
|
|
|
676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
foreach($attributes['items'] as $item){
|
678 |
|
679 |
if($item['title'] || $item['description']){
|
680 |
-
echo '<li>';
|
681 |
echo '<strong class="saswp-how-to-step-name">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
|
682 |
echo '<p class="saswp-how-to-step-text">'.html_entity_decode(esc_textarea($item['description'])).'</p>';
|
683 |
echo '</li>';
|
684 |
}
|
685 |
|
686 |
}
|
687 |
-
if(!isset($attributes['
|
688 |
echo '</ol>';
|
689 |
}else{
|
690 |
echo '</ul>';
|
@@ -731,7 +777,7 @@ class SASWP_Gutenberg {
|
|
731 |
|
732 |
echo '</div>';
|
733 |
|
734 |
-
|
735 |
|
736 |
return ob_get_clean();
|
737 |
}
|
500 |
*/
|
501 |
public static function render_faq_data( $attributes ) {
|
502 |
|
503 |
+
ob_start();
|
504 |
+
|
505 |
+
if ( !isset( $attributes ) ) {
|
506 |
+
ob_end_clean();
|
507 |
+
|
508 |
+
return '';
|
509 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
|
511 |
+
echo '<div class="saswp-faq-block-section">';
|
512 |
+
if($attributes['items']){
|
513 |
|
514 |
+
$className = '';
|
515 |
+
if(isset($attributes['className'])){
|
516 |
+
$className = 'class="'.esc_attr($attributes['className']).'"';
|
517 |
+
}
|
518 |
+
|
519 |
+
|
520 |
+
|
521 |
+
|
522 |
+
if(!isset($attributes['listStyle']))
|
523 |
+
{
|
524 |
+
$attributes['listStyle']='none';
|
525 |
+
}
|
526 |
+
|
527 |
+
if(($attributes['listStyle']=='none')){
|
528 |
+
echo '<ol style="list-style-type:none">';}
|
529 |
+
else{
|
530 |
+
echo'<ul>';
|
531 |
+
}
|
532 |
+
|
533 |
+
|
534 |
+
|
535 |
+
if(isset($item['image_align'])){
|
536 |
+
|
537 |
+
switch ($item['image_align']) {
|
538 |
+
|
539 |
+
|
540 |
+
case 'right':
|
541 |
+
echo '<img class="alignright" style="float:right;" '. html_entity_decode(esc_attr($item['image_align'])).'>';
|
542 |
break;
|
543 |
+
case 'left':
|
544 |
+
echo '<img class="alignleft" style="float:left;" '. html_entity_decode(esc_attr($item['image_align'])).'>';
|
|
|
|
|
|
|
545 |
break;
|
546 |
+
|
|
|
|
|
|
|
|
|
547 |
default:
|
548 |
+
echo '<img class="alignleft" style="float:left;" '. html_entity_decode(esc_attr($item['image_align'])).'>';
|
549 |
+
break;
|
550 |
}
|
|
|
|
|
|
|
551 |
}
|
552 |
+
|
553 |
+
foreach($attributes['items'] as $item){
|
554 |
+
|
555 |
+
if($item['title'] || $item['description']){
|
556 |
+
|
557 |
+
if(!empty($item['questionID'])){
|
558 |
+
echo '<li id="'.esc_attr($item['questionID']).'">';
|
559 |
+
}else{
|
560 |
+
echo '<li style="list-style-type: '.esc_attr($attributes['listStyle']).'">';
|
561 |
+
}
|
562 |
+
if(isset($attributes['headingTag'])){
|
563 |
+
|
564 |
+
switch ($attributes['headingTag']) {
|
565 |
+
|
566 |
+
case 'h1':
|
567 |
+
echo '<h1>'. html_entity_decode(esc_attr($item['title'])).'</h1>';
|
568 |
+
break;
|
569 |
+
case 'h2':
|
570 |
+
echo '<h2>'. html_entity_decode(esc_attr($item['title'])).'</h2>';
|
571 |
+
break;
|
572 |
+
case 'h3':
|
573 |
+
echo '<h3>'. html_entity_decode(esc_attr($item['title'])).'</h3>';
|
574 |
+
break;
|
575 |
+
case 'h4':
|
576 |
+
echo '<h4>'. html_entity_decode(esc_attr($item['title'])).'</h4>';
|
577 |
+
break;
|
578 |
+
case 'h5':
|
579 |
+
echo '<h5>'. html_entity_decode(esc_attr($item['title'])).'</h5>';
|
580 |
+
break;
|
581 |
+
case 'h6':
|
582 |
+
echo '<h6>'. html_entity_decode(esc_attr($item['title'])).'</h6>';
|
583 |
+
break;
|
584 |
+
case 'div':
|
585 |
+
echo '<div>'. html_entity_decode(esc_attr($item['title'])).'</div>';
|
586 |
+
break;
|
587 |
+
case 'p':
|
588 |
+
echo '<p>'. html_entity_decode(esc_attr($item['title'])).'</p>';
|
589 |
+
break;
|
590 |
+
|
591 |
+
|
592 |
+
default:
|
593 |
+
echo '<h3>'. html_entity_decode(esc_attr($item['title'])).'</h3>';
|
594 |
+
break;
|
595 |
+
}
|
596 |
+
|
597 |
+
}else{
|
598 |
+
echo '<strong class="saswp-faq-question-title">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
|
599 |
+
}
|
600 |
+
|
601 |
+
echo '<p class="saswp-faq-answer-text">'.html_entity_decode(esc_textarea($item['description'])).'</p>';
|
602 |
+
|
603 |
+
}
|
604 |
+
|
605 |
+
}
|
606 |
+
if(!isset($attributes['listStyle'])){
|
607 |
+
echo '</ol>';
|
608 |
+
}else{
|
609 |
+
echo '</ul>';
|
610 |
+
}
|
611 |
+
}
|
612 |
+
|
613 |
+
echo '</div>';
|
614 |
+
|
615 |
+
return ob_get_clean();
|
616 |
+
}
|
617 |
/**
|
618 |
* Function to render 'howto' block data in frontend post content
|
619 |
* @param type $attributes
|
689 |
if(isset($attributes['className'])){
|
690 |
$className = 'class="'.esc_attr($attributes['className']).'"';
|
691 |
}
|
692 |
+
|
693 |
+
if(!isset($attributes['listStyleType']))
|
694 |
+
{
|
695 |
+
$attributes['listStyleType']='none';
|
696 |
+
}
|
697 |
+
|
698 |
+
if(($attributes['listStyleType']=='none')){
|
699 |
+
echo'<ol '.$className.' style="list-style-type:none;">';
|
700 |
+
}elseif(($attributes['listStyleType']=='number')){
|
701 |
+
echo '<ol>';
|
702 |
+
}else{
|
703 |
+
echo '<ol>';
|
704 |
+
}
|
705 |
|
706 |
+
if(isset($item['image_align'])){
|
707 |
+
|
708 |
+
switch ($item['image_align']) {
|
709 |
+
|
710 |
+
|
711 |
+
case 'right':
|
712 |
+
echo '<img class="alignright"'. html_entity_decode(esc_attr($item['image_align'])).'>';
|
713 |
+
break;
|
714 |
+
case 'left':
|
715 |
+
echo '<img class="alignleft" '. html_entity_decode(esc_attr($item['image_align'])).'>';
|
716 |
+
break;
|
717 |
+
|
718 |
+
default:
|
719 |
+
echo '<img class="alignleft" '. html_entity_decode(esc_attr($item['image_align'])).'>';
|
720 |
+
break;
|
721 |
+
}
|
722 |
+
}
|
723 |
foreach($attributes['items'] as $item){
|
724 |
|
725 |
if($item['title'] || $item['description']){
|
726 |
+
echo '<li style="list-style-type: '.esc_attr($attributes['listStyleType']).'">';
|
727 |
echo '<strong class="saswp-how-to-step-name">'. html_entity_decode(esc_attr($item['title'])).'</strong>';
|
728 |
echo '<p class="saswp-how-to-step-text">'.html_entity_decode(esc_textarea($item['description'])).'</p>';
|
729 |
echo '</li>';
|
730 |
}
|
731 |
|
732 |
}
|
733 |
+
if(!isset($attributes['listStyleType'])){
|
734 |
echo '</ol>';
|
735 |
}else{
|
736 |
echo '</ul>';
|
777 |
|
778 |
echo '</div>';
|
779 |
|
780 |
+
|
781 |
|
782 |
return ob_get_clean();
|
783 |
}
|
@@ -119,8 +119,9 @@ Class saswp_rating_box_frontend{
|
|
119 |
);
|
120 |
|
121 |
if(!empty($input1)){
|
122 |
-
|
123 |
-
|
|
|
124 |
echo "\n";
|
125 |
echo '<script type="application/ld+json" class="saswp-schema-markup-rating-module-output">';
|
126 |
echo "\n";
|
119 |
);
|
120 |
|
121 |
if(!empty($input1)){
|
122 |
+
if(isset($sd_data['saswp_remove_version_tag']) && $sd_data['saswp_remove_version_tag'] != 1){
|
123 |
+
echo '<!-- Schema & Structured Data For WP Rating Module v'.esc_attr(SASWP_VERSION).' - -->';
|
124 |
+
}
|
125 |
echo "\n";
|
126 |
echo '<script type="application/ld+json" class="saswp-schema-markup-rating-module-output">';
|
127 |
echo "\n";
|
@@ -357,7 +357,6 @@ class SASWP_Reviews_Collection {
|
|
357 |
}
|
358 |
|
359 |
if( $platform_id || isset($attr['in']) ){
|
360 |
-
|
361 |
$reviews_list = $this->_service->saswp_get_reviews_list_by_parameters($attr, $platform_id, $rvcount);
|
362 |
|
363 |
if($reviews_list){
|
@@ -401,7 +400,6 @@ class SASWP_Reviews_Collection {
|
|
401 |
$g_type = $design = $cols = $sorting = $date_format = '';
|
402 |
|
403 |
$collection_data = get_post_meta($attr['id']);
|
404 |
-
|
405 |
if(isset($collection_data['saswp_collection_design'][0])){
|
406 |
$design = $collection_data['saswp_collection_design'][0];
|
407 |
$this->_design = $design;
|
@@ -409,7 +407,7 @@ class SASWP_Reviews_Collection {
|
|
409 |
|
410 |
if(isset($collection_data['saswp_collection_date_format'][0])){
|
411 |
$date_format = $collection_data['saswp_collection_date_format'][0];
|
412 |
-
}
|
413 |
|
414 |
if(isset($collection_data['saswp_collection_cols'][0])){
|
415 |
|
@@ -449,6 +447,8 @@ class SASWP_Reviews_Collection {
|
|
449 |
if(isset($collection_data['saswp_platform_ids'][0])){
|
450 |
$platform_id = unserialize($collection_data['saswp_platform_ids'][0]);
|
451 |
}
|
|
|
|
|
452 |
if(isset($collection_data['saswp_platform_ids'][0])){
|
453 |
|
454 |
$total_reviews = unserialize($collection_data['saswp_total_reviews'][0]);
|
@@ -535,7 +535,7 @@ class SASWP_Reviews_Collection {
|
|
535 |
|
536 |
case "grid":
|
537 |
|
538 |
-
$html = $this->_service->saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr
|
539 |
|
540 |
break;
|
541 |
|
@@ -559,8 +559,7 @@ class SASWP_Reviews_Collection {
|
|
559 |
|
560 |
case 'fomo':
|
561 |
|
562 |
-
$html = $this->_service->saswp_create_collection_fomo($f_interval, $f_visibility, $collection, $date_format);
|
563 |
-
|
564 |
|
565 |
break;
|
566 |
|
@@ -610,7 +609,13 @@ class SASWP_Reviews_Collection {
|
|
610 |
);
|
611 |
$date_format = array(
|
612 |
'Y-m-d' => 'yyyy-mm-dd',
|
613 |
-
'd-m-Y' => 'dd-mm-yyyy',
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
);
|
615 |
|
616 |
$coll_sorting = array(
|
@@ -782,8 +787,9 @@ class SASWP_Reviews_Collection {
|
|
782 |
echo '<option value="'.esc_attr($key).'" '.($post_meta['saswp_collection_date_format'][0] == $key ? 'selected':'').' >'.saswp_t_string( $val ).'</option>';
|
783 |
}
|
784 |
?>
|
785 |
-
</select>
|
786 |
-
</div>
|
|
|
787 |
</div>
|
788 |
</li>
|
789 |
<li>
|
@@ -973,7 +979,7 @@ class SASWP_Reviews_Collection {
|
|
973 |
update_option('saswp_collection_display_opt', $display_type_opt);
|
974 |
|
975 |
$post_meta['saswp_collection_design'] = isset($_POST['saswp_collection_design']) ? sanitize_text_field($_POST['saswp_collection_design']) : '';
|
976 |
-
$post_meta['saswp_collection_date_format'] = isset($_POST['saswp_collection_date_format']) ? sanitize_text_field($_POST['saswp_collection_date_format']) : '';
|
977 |
$post_meta['saswp_collection_sorting'] = isset($_POST['saswp_collection_sorting']) ? sanitize_text_field($_POST['saswp_collection_sorting']) : '';
|
978 |
$post_meta['saswp_collection_specific_rating'] = isset($_POST['saswp_collection_specific_rating']) ? sanitize_text_field($_POST['saswp_collection_specific_rating']) : '';
|
979 |
$post_meta['saswp_collection_display_type'] = $display_type;
|
@@ -991,7 +997,6 @@ class SASWP_Reviews_Collection {
|
|
991 |
$post_meta['saswp_collection_where'] = array_map('sanitize_text_field', $_POST['saswp_collection_where']);
|
992 |
$post_meta['saswp_collection_where_data'] = array_map('sanitize_text_field', $_POST['saswp_collection_where_data']);
|
993 |
$post_meta['saswp_total_reviews'] = array_map('intval', json_decode($_POST['saswp_total_reviews']));
|
994 |
-
|
995 |
if(!empty($post_meta)){
|
996 |
|
997 |
foreach($post_meta as $meta_key => $meta_val){
|
357 |
}
|
358 |
|
359 |
if( $platform_id || isset($attr['in']) ){
|
|
|
360 |
$reviews_list = $this->_service->saswp_get_reviews_list_by_parameters($attr, $platform_id, $rvcount);
|
361 |
|
362 |
if($reviews_list){
|
400 |
$g_type = $design = $cols = $sorting = $date_format = '';
|
401 |
|
402 |
$collection_data = get_post_meta($attr['id']);
|
|
|
403 |
if(isset($collection_data['saswp_collection_design'][0])){
|
404 |
$design = $collection_data['saswp_collection_design'][0];
|
405 |
$this->_design = $design;
|
407 |
|
408 |
if(isset($collection_data['saswp_collection_date_format'][0])){
|
409 |
$date_format = $collection_data['saswp_collection_date_format'][0];
|
410 |
+
}
|
411 |
|
412 |
if(isset($collection_data['saswp_collection_cols'][0])){
|
413 |
|
447 |
if(isset($collection_data['saswp_platform_ids'][0])){
|
448 |
$platform_id = unserialize($collection_data['saswp_platform_ids'][0]);
|
449 |
}
|
450 |
+
|
451 |
+
|
452 |
if(isset($collection_data['saswp_platform_ids'][0])){
|
453 |
|
454 |
$total_reviews = unserialize($collection_data['saswp_total_reviews'][0]);
|
535 |
|
536 |
case "grid":
|
537 |
|
538 |
+
$html = $this->_service->saswp_create_collection_grid($cols, $collection, $total_reviews, $pagination, $perpage, $offset, $nextpage, $data_id, $total_reviews_count, $date_format, $pagination_wpr );
|
539 |
|
540 |
break;
|
541 |
|
559 |
|
560 |
case 'fomo':
|
561 |
|
562 |
+
$html = $this->_service->saswp_create_collection_fomo($f_interval, $f_visibility, $collection, $date_format);
|
|
|
563 |
|
564 |
break;
|
565 |
|
609 |
);
|
610 |
$date_format = array(
|
611 |
'Y-m-d' => 'yyyy-mm-dd',
|
612 |
+
'd-m-Y' => 'dd-mm-yyyy',
|
613 |
+
'days' => 'In Days'
|
614 |
+
);
|
615 |
+
|
616 |
+
$date_format_in_days = array(
|
617 |
+
'default' => 'Default',
|
618 |
+
'days' => 'In Days'
|
619 |
);
|
620 |
|
621 |
$coll_sorting = array(
|
787 |
echo '<option value="'.esc_attr($key).'" '.($post_meta['saswp_collection_date_format'][0] == $key ? 'selected':'').' >'.saswp_t_string( $val ).'</option>';
|
788 |
}
|
789 |
?>
|
790 |
+
</select>
|
791 |
+
</div>
|
792 |
+
|
793 |
</div>
|
794 |
</li>
|
795 |
<li>
|
979 |
update_option('saswp_collection_display_opt', $display_type_opt);
|
980 |
|
981 |
$post_meta['saswp_collection_design'] = isset($_POST['saswp_collection_design']) ? sanitize_text_field($_POST['saswp_collection_design']) : '';
|
982 |
+
$post_meta['saswp_collection_date_format'] = isset($_POST['saswp_collection_date_format']) ? sanitize_text_field($_POST['saswp_collection_date_format']) : '';
|
983 |
$post_meta['saswp_collection_sorting'] = isset($_POST['saswp_collection_sorting']) ? sanitize_text_field($_POST['saswp_collection_sorting']) : '';
|
984 |
$post_meta['saswp_collection_specific_rating'] = isset($_POST['saswp_collection_specific_rating']) ? sanitize_text_field($_POST['saswp_collection_specific_rating']) : '';
|
985 |
$post_meta['saswp_collection_display_type'] = $display_type;
|
997 |
$post_meta['saswp_collection_where'] = array_map('sanitize_text_field', $_POST['saswp_collection_where']);
|
998 |
$post_meta['saswp_collection_where_data'] = array_map('sanitize_text_field', $_POST['saswp_collection_where_data']);
|
999 |
$post_meta['saswp_total_reviews'] = array_map('intval', json_decode($_POST['saswp_total_reviews']));
|
|
|
1000 |
if(!empty($post_meta)){
|
1001 |
|
1002 |
foreach($post_meta as $meta_key => $meta_val){
|
@@ -184,17 +184,82 @@ class saswp_reviews_service {
|
|
184 |
return $post_id;
|
185 |
|
186 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
/**
|
188 |
* Function to generate reviews html
|
189 |
* @param type $reviews
|
190 |
* @return string
|
191 |
*/
|
192 |
public function saswp_reviews_html_markup($reviews){
|
193 |
-
|
|
|
|
|
194 |
$output = '';
|
|
|
195 |
if($reviews){
|
196 |
|
197 |
foreach ($reviews as $review){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
$review_rating = $review['saswp_review_rating'];
|
200 |
|
@@ -224,7 +289,7 @@ class saswp_reviews_service {
|
|
224 |
<div class="saswp-str">
|
225 |
<a target="_blank" href="'.esc_url($link).'"><span class="saswp-athr">'.esc_attr($review['saswp_reviewer_name']).'</span></a>
|
226 |
'.$starating.'
|
227 |
-
<div>'.(
|
228 |
</div>
|
229 |
<span class="saswp-g-plus">
|
230 |
<a target="_blank" href="'.esc_attr($link).'"><img alt="'.esc_attr($review['saswp_reviewer_name']).'" width="20" height="20" src="'.esc_url($review['saswp_review_platform_icon']).'"></a>
|
@@ -743,11 +808,9 @@ class saswp_reviews_service {
|
|
743 |
$service_object = new saswp_output_service();
|
744 |
|
745 |
foreach($posts_list as $rv_post){
|
746 |
-
|
747 |
$review_data = array();
|
748 |
|
749 |
$review_data['saswp_review_id'] = $rv_post->ID;
|
750 |
-
|
751 |
foreach($post_meta as $meta_key){
|
752 |
|
753 |
$review_data[$meta_key] = get_post_meta($rv_post->ID, $meta_key, true );
|
@@ -896,8 +959,14 @@ class saswp_reviews_service {
|
|
896 |
$break = 1;
|
897 |
|
898 |
foreach ($collection as $value){
|
899 |
-
|
900 |
-
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format );
|
|
|
|
|
|
|
|
|
|
|
|
|
901 |
|
902 |
$review_link = '';
|
903 |
|
@@ -1038,6 +1107,11 @@ class saswp_reviews_service {
|
|
1038 |
|
1039 |
$html = '';
|
1040 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
|
|
|
|
|
|
|
|
|
|
1041 |
|
1042 |
$html .= '<div class="saswp-r2-sli">';
|
1043 |
$html .= '<div class="saswp-r2-b">';
|
@@ -1356,6 +1430,11 @@ class saswp_reviews_service {
|
|
1356 |
$review_count++;
|
1357 |
|
1358 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
|
|
|
|
|
|
|
|
|
|
1359 |
|
1360 |
$html_list .= '<li>';
|
1361 |
$html_list .= '<div class="saswp-r4-b">';
|
@@ -1475,6 +1554,11 @@ class saswp_reviews_service {
|
|
1475 |
foreach ($collection as $value){
|
1476 |
|
1477 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
|
|
|
|
|
|
|
|
|
|
1478 |
|
1479 |
$html .= '<div id="'.$i.'" class="saswp-r5">';
|
1480 |
$html .= '<div class="saswp-r5-r">';
|
184 |
return $post_id;
|
185 |
|
186 |
}
|
187 |
+
|
188 |
+
|
189 |
+
function dateDiffInDays($date1, $date2)
|
190 |
+
{
|
191 |
+
// Calculating the difference in timestamps
|
192 |
+
$diff = strtotime($date2) - strtotime($date1);
|
193 |
+
|
194 |
+
// 1 day = 24 hours
|
195 |
+
// 24 * 60 * 60 = 86400 seconds
|
196 |
+
return abs(round($diff / 86400));
|
197 |
+
}
|
198 |
+
|
199 |
+
function saswp_getDaysDiff($time)
|
200 |
+
{
|
201 |
+
|
202 |
+
$time = time() - $time; // to get the time since that moment
|
203 |
+
$time = ($time<1)? 1 : $time;
|
204 |
+
$tokens = array (
|
205 |
+
31536000 => 'year',
|
206 |
+
2592000 => 'month',
|
207 |
+
604800 => 'week',
|
208 |
+
86400 => 'day',
|
209 |
+
3600 => 'hour',
|
210 |
+
60 => 'minute',
|
211 |
+
1 => 'second'
|
212 |
+
);
|
213 |
+
|
214 |
+
foreach ($tokens as $unit => $text) {
|
215 |
+
if ($time < $unit) continue;
|
216 |
+
$numberOfUnits = floor($time / $unit);
|
217 |
+
$adAgo = $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'');
|
218 |
+
return $adAgo.' ago';
|
219 |
+
}
|
220 |
+
|
221 |
+
}
|
222 |
+
|
223 |
+
|
224 |
/**
|
225 |
* Function to generate reviews html
|
226 |
* @param type $reviews
|
227 |
* @return string
|
228 |
*/
|
229 |
public function saswp_reviews_html_markup($reviews){
|
230 |
+
|
231 |
+
global $sd_data;
|
232 |
+
|
233 |
$output = '';
|
234 |
+
|
235 |
if($reviews){
|
236 |
|
237 |
foreach ($reviews as $review){
|
238 |
+
if(isset($sd_data['saswp_date_format']) && $sd_data['saswp_date_format'] == 'days'){
|
239 |
+
|
240 |
+
if($sd_data['saswp_date_format'] == 'days'){
|
241 |
+
|
242 |
+
$curr_date = date("Y-m-d"); // Start date
|
243 |
+
$interval = $review['saswp_review_date']; // End date
|
244 |
+
|
245 |
+
|
246 |
+
// Function call to find date difference
|
247 |
+
$dateDiffInDays = $this->dateDiffInDays($interval, $curr_date);
|
248 |
+
|
249 |
+
if($dateDiffInDays > 1){
|
250 |
+
$days_ago_format = $dateDiffInDays.' Days ago';
|
251 |
+
}else{
|
252 |
+
$days_ago_format = $dateDiffInDays.' Day ago';
|
253 |
+
|
254 |
+
}
|
255 |
+
|
256 |
+
}
|
257 |
+
|
258 |
+
|
259 |
+
}
|
260 |
+
if($sd_data['saswp_date_format'] == 'default'){
|
261 |
+
$days_ago_format = date('d-m-Y',strtotime($review['saswp_review_date']));
|
262 |
+
}
|
263 |
|
264 |
$review_rating = $review['saswp_review_rating'];
|
265 |
|
289 |
<div class="saswp-str">
|
290 |
<a target="_blank" href="'.esc_url($link).'"><span class="saswp-athr">'.esc_attr($review['saswp_reviewer_name']).'</span></a>
|
291 |
'.$starating.'
|
292 |
+
<div>'.(($days_ago_format) ? esc_attr($days_ago_format) : '').'</div>
|
293 |
</div>
|
294 |
<span class="saswp-g-plus">
|
295 |
<a target="_blank" href="'.esc_attr($link).'"><img alt="'.esc_attr($review['saswp_reviewer_name']).'" width="20" height="20" src="'.esc_url($review['saswp_review_platform_icon']).'"></a>
|
808 |
$service_object = new saswp_output_service();
|
809 |
|
810 |
foreach($posts_list as $rv_post){
|
|
|
811 |
$review_data = array();
|
812 |
|
813 |
$review_data['saswp_review_id'] = $rv_post->ID;
|
|
|
814 |
foreach($post_meta as $meta_key){
|
815 |
|
816 |
$review_data[$meta_key] = get_post_meta($rv_post->ID, $meta_key, true );
|
959 |
$break = 1;
|
960 |
|
961 |
foreach ($collection as $value){
|
962 |
+
|
963 |
+
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format );
|
964 |
+
if(!empty($date_format) && $date_format == 'days'){
|
965 |
+
|
966 |
+
$date_str['date'] = $this->saswp_getDaysDiff( strtotime($value['saswp_review_date']) );
|
967 |
+
|
968 |
+
}
|
969 |
+
|
970 |
|
971 |
$review_link = '';
|
972 |
|
1107 |
|
1108 |
$html = '';
|
1109 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
1110 |
+
if(!empty($date_format) && $date_format == 'days'){
|
1111 |
+
|
1112 |
+
$date_str['date'] = $this->saswp_getDaysDiff( strtotime($value['saswp_review_date']) );
|
1113 |
+
|
1114 |
+
}
|
1115 |
|
1116 |
$html .= '<div class="saswp-r2-sli">';
|
1117 |
$html .= '<div class="saswp-r2-b">';
|
1430 |
$review_count++;
|
1431 |
|
1432 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
1433 |
+
if(!empty($date_format) && $date_format == 'days'){
|
1434 |
+
|
1435 |
+
$date_str['date'] = $this->saswp_getDaysDiff( strtotime($value['saswp_review_date']) );
|
1436 |
+
|
1437 |
+
}
|
1438 |
|
1439 |
$html_list .= '<li>';
|
1440 |
$html_list .= '<div class="saswp-r4-b">';
|
1554 |
foreach ($collection as $value){
|
1555 |
|
1556 |
$date_str = $this->saswp_convert_datetostring($value['saswp_review_date'], $date_format);
|
1557 |
+
if(!empty($date_format) && $date_format == 'days'){
|
1558 |
+
|
1559 |
+
$date_str['date'] = $this->saswp_getDaysDiff( strtotime($value['saswp_review_date']) );
|
1560 |
+
|
1561 |
+
}
|
1562 |
|
1563 |
$html .= '<div id="'.$i.'" class="saswp-r5">';
|
1564 |
$html .= '<div class="saswp-r5-r">';
|
@@ -608,6 +608,9 @@ class saswp_output_compatibility{
|
|
608 |
public function ultimatefaqs_on_activation(){
|
609 |
$this->saswp_update_option_on_compatibility_activation('saswp-ultimatefaqs');
|
610 |
}
|
|
|
|
|
|
|
611 |
public function showcaseidx_on_activation(){
|
612 |
$this->saswp_update_option_on_compatibility_activation('saswp-showcaseidx');
|
613 |
}
|
608 |
public function ultimatefaqs_on_activation(){
|
609 |
$this->saswp_update_option_on_compatibility_activation('saswp-ultimatefaqs');
|
610 |
}
|
611 |
+
public function ultimatemember_on_activation(){
|
612 |
+
$this->saswp_update_option_on_compatibility_activation('saswp-ultimatemember');
|
613 |
+
}
|
614 |
public function showcaseidx_on_activation(){
|
615 |
$this->saswp_update_option_on_compatibility_activation('saswp-showcaseidx');
|
616 |
}
|
@@ -24,8 +24,8 @@ class saswp_flexmls_list extends flexmlsConnectPageCore{
|
|
24 |
}
|
25 |
public function saswp_get_flexidx_listing(){
|
26 |
|
27 |
-
global $fmc_api;
|
28 |
-
|
29 |
if(!empty($fmc_api)){
|
30 |
|
31 |
|
@@ -54,7 +54,9 @@ class saswp_flexmls_list extends flexmlsConnectPageCore{
|
|
54 |
$count = count($results);
|
55 |
|
56 |
echo "\n";
|
57 |
-
|
|
|
|
|
58 |
echo "\n";
|
59 |
echo '<script class="saswp-schema-markup-output" type="application/ld+json">';
|
60 |
echo "\n";
|
24 |
}
|
25 |
public function saswp_get_flexidx_listing(){
|
26 |
|
27 |
+
global $fmc_api,$sd_data;
|
28 |
+
|
29 |
if(!empty($fmc_api)){
|
30 |
|
31 |
|
54 |
$count = count($results);
|
55 |
|
56 |
echo "\n";
|
57 |
+
if(isset($sd_data['saswp_remove_version_tag']) && $sd_data['saswp_remove_version_tag'] != 1){
|
58 |
+
echo '<!-- Schema & Structured Data For WP v'.esc_attr(SASWP_VERSION) .' IDX - -->';
|
59 |
+
}
|
60 |
echo "\n";
|
61 |
echo '<script class="saswp-schema-markup-output" type="application/ld+json">';
|
62 |
echo "\n";
|
@@ -137,13 +137,15 @@ function saswp_schema_markup_output_in_buffer($content){
|
|
137 |
}
|
138 |
|
139 |
function saswp_schema_markup_output(){
|
140 |
-
|
141 |
$saswp_json_ld = saswp_get_all_schema_markup_output();
|
142 |
|
143 |
if(!empty($saswp_json_ld['saswp_json_ld'])){
|
144 |
|
145 |
echo "\n";
|
146 |
-
|
|
|
|
|
147 |
echo "\n";
|
148 |
echo $saswp_json_ld['saswp_json_ld'];
|
149 |
echo "\n\n";
|
@@ -153,7 +155,9 @@ function saswp_schema_markup_output(){
|
|
153 |
if(!empty($saswp_json_ld['saswp_custom_json_ld'])){
|
154 |
|
155 |
echo "\n";
|
156 |
-
|
|
|
|
|
157 |
echo "\n";
|
158 |
echo $saswp_json_ld['saswp_custom_json_ld'];
|
159 |
echo "\n\n";
|
@@ -169,8 +173,9 @@ function saswp_schema_markup_output(){
|
|
169 |
if(!empty($wp_tasty_recipe)){
|
170 |
|
171 |
foreach ($wp_tasty_recipe as $recipe) {
|
172 |
-
|
173 |
-
|
|
|
174 |
echo PHP_EOL;
|
175 |
echo '<script type="application/ld+json" class="saswp-other-schema-markup-output">';
|
176 |
echo saswp_json_print_format( $recipe);
|
@@ -254,6 +259,7 @@ function saswp_get_all_schema_markup_output() {
|
|
254 |
$author_output = saswp_author_output();
|
255 |
$archive_output = saswp_archive_output();
|
256 |
$collection_output = saswp_fetched_reviews_json_ld();
|
|
|
257 |
|
258 |
if($archive_output){
|
259 |
|
@@ -289,6 +295,12 @@ function saswp_get_all_schema_markup_output() {
|
|
289 |
$output .= ",";
|
290 |
$output .= "\n\n";
|
291 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
if(!empty($about_page_output)){
|
293 |
|
294 |
$output .= saswp_json_print_format($about_page_output);
|
@@ -3365,4 +3377,50 @@ function saswp_render_breadcrumbs_html($atts){
|
|
3365 |
}
|
3366 |
|
3367 |
return $breadcrumbs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3368 |
}
|
137 |
}
|
138 |
|
139 |
function saswp_schema_markup_output(){
|
140 |
+
global $sd_data;
|
141 |
$saswp_json_ld = saswp_get_all_schema_markup_output();
|
142 |
|
143 |
if(!empty($saswp_json_ld['saswp_json_ld'])){
|
144 |
|
145 |
echo "\n";
|
146 |
+
if(isset($sd_data['saswp_remove_version_tag']) && $sd_data['saswp_remove_version_tag'] != 1){
|
147 |
+
echo "<!-- Schema & Structured Data For WP v".esc_attr(SASWP_VERSION)." - -->";
|
148 |
+
}
|
149 |
echo "\n";
|
150 |
echo $saswp_json_ld['saswp_json_ld'];
|
151 |
echo "\n\n";
|
155 |
if(!empty($saswp_json_ld['saswp_custom_json_ld'])){
|
156 |
|
157 |
echo "\n";
|
158 |
+
if(isset($sd_data['saswp_remove_version_tag']) && $sd_data['saswp_remove_version_tag'] != 1){
|
159 |
+
echo '<!-- Schema & Structured Data For WP Custom Markup v'.esc_attr(SASWP_VERSION).' - -->';
|
160 |
+
}
|
161 |
echo "\n";
|
162 |
echo $saswp_json_ld['saswp_custom_json_ld'];
|
163 |
echo "\n\n";
|
173 |
if(!empty($wp_tasty_recipe)){
|
174 |
|
175 |
foreach ($wp_tasty_recipe as $recipe) {
|
176 |
+
if(isset($sd_data['saswp_remove_version_tag']) && $sd_data['saswp_remove_version_tag'] != 1){
|
177 |
+
echo '<!-- Schema & Structured Data For WP Other Markup v'.esc_attr(SASWP_VERSION).' - -->';
|
178 |
+
}
|
179 |
echo PHP_EOL;
|
180 |
echo '<script type="application/ld+json" class="saswp-other-schema-markup-output">';
|
181 |
echo saswp_json_print_format( $recipe);
|
259 |
$author_output = saswp_author_output();
|
260 |
$archive_output = saswp_archive_output();
|
261 |
$collection_output = saswp_fetched_reviews_json_ld();
|
262 |
+
$default_videoObject_schema = saswp_default_video_object_scjhema();
|
263 |
|
264 |
if($archive_output){
|
265 |
|
295 |
$output .= ",";
|
296 |
$output .= "\n\n";
|
297 |
}
|
298 |
+
if(!empty($default_videoObject_schema)){
|
299 |
+
|
300 |
+
$output .= saswp_json_print_format($default_videoObject_schema);
|
301 |
+
$output .= ",";
|
302 |
+
$output .= "\n\n";
|
303 |
+
}
|
304 |
if(!empty($about_page_output)){
|
305 |
|
306 |
$output .= saswp_json_print_format($about_page_output);
|
3377 |
}
|
3378 |
|
3379 |
return $breadcrumbs;
|
3380 |
+
}
|
3381 |
+
|
3382 |
+
function saswp_default_video_object_scjhema(){
|
3383 |
+
|
3384 |
+
$input1 = array();
|
3385 |
+
|
3386 |
+
$Conditionals = saswp_get_all_schema_posts();
|
3387 |
+
$countVideoObjSchema = [];
|
3388 |
+
if(!empty($Conditionals)){
|
3389 |
+
foreach($Conditionals as $schemaConditionals){
|
3390 |
+
if($schemaConditionals['schema_type'] == 'VideoObject'){
|
3391 |
+
$countVideoObjSchema[] = $schemaConditionals['schema_type'];
|
3392 |
+
}
|
3393 |
+
}
|
3394 |
+
if(count( $countVideoObjSchema) > 0){
|
3395 |
+
return $input1;
|
3396 |
+
}
|
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 |
+
$input1['itemListElement'][] = array(
|
3406 |
+
'@type' => 'VideoObject',
|
3407 |
+
"position" => $vkey+1,
|
3408 |
+
'name' => $v_val['title'],
|
3409 |
+
'url' => $v_val['video_url'],
|
3410 |
+
'description' => $v_val['description'],
|
3411 |
+
'uploadDate' => $v_val['uploadDate'],
|
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 |
+
// echo "<pre>";print_r($input1);echo "</pre>";
|
3424 |
+
}
|
3425 |
+
return $input1;
|
3426 |
}
|
@@ -844,7 +844,112 @@ function saswp_software_app_schema_markup($schema_id, $schema_post_id, $all_post
|
|
844 |
"@type" => "AggregateRating",
|
845 |
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_'.$schema_id, 'saswp_array'),
|
846 |
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_count_'.$schema_id, 'saswp_array')
|
847 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
}
|
849 |
|
850 |
|
@@ -1061,10 +1166,11 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
1061 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_brand_name_'.$schema_id, 'saswp_array'),
|
1062 |
)
|
1063 |
);
|
1064 |
-
|
1065 |
if( isset($all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0] != '' ){
|
1066 |
$input1['brand']['url'] = $all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0];
|
1067 |
}
|
|
|
1068 |
if( isset($all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0] != '' ){
|
1069 |
$input1['brand']['image'] = $all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0];
|
1070 |
}
|
@@ -1075,9 +1181,15 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
1075 |
if( isset($all_post_meta['saswp_product_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_id_'.$schema_id][0] != '' ){
|
1076 |
$input1['@id'] = $all_post_meta['saswp_product_schema_id_'.$schema_id][0];
|
1077 |
}
|
|
|
|
|
|
|
|
|
|
|
1078 |
|
1079 |
$input1 = saswp_get_modified_image('saswp_product_schema_image_'.$schema_id.'_detail', $input1);
|
1080 |
|
|
|
1081 |
if( (isset($all_post_meta['saswp_product_schema_price_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_price_'.$schema_id][0]) || (isset($all_post_meta['saswp_product_schema_high_price_'.$schema_id][0]) && isset($all_post_meta['saswp_product_schema_low_price_'.$schema_id][0]) ) ){
|
1082 |
|
1083 |
$input1['offers']['@type'] = 'Offer';
|
@@ -1152,6 +1264,38 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
1152 |
$review_fields = array();
|
1153 |
|
1154 |
$review_fields['@type'] = 'Review';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1155 |
$review_fields['author']['@type'] = 'Person';
|
1156 |
$review_fields['author']['name'] = $review['saswp_product_reviews_reviewer_name'] ? esc_attr($review['saswp_product_reviews_reviewer_name']) : 'Anonymous';
|
1157 |
|
@@ -1212,7 +1356,9 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
1212 |
if(!isset($input1['review'])){
|
1213 |
$input1 = saswp_append_fetched_reviews($input1);
|
1214 |
}
|
1215 |
-
|
|
|
|
|
1216 |
return $input1;
|
1217 |
|
1218 |
}
|
844 |
"@type" => "AggregateRating",
|
845 |
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_'.$schema_id, 'saswp_array'),
|
846 |
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_count_'.$schema_id, 'saswp_array')
|
847 |
+
);
|
848 |
+
|
849 |
+
$itinerary = get_post_meta($schema_post_id, 'product_reviews_'.$schema_id, true);
|
850 |
+
|
851 |
+
$itinerary_arr = array();
|
852 |
+
|
853 |
+
if(!empty($itinerary)){
|
854 |
+
|
855 |
+
foreach($itinerary as $review){
|
856 |
+
|
857 |
+
$review_fields = array();
|
858 |
+
|
859 |
+
$review_fields['@type'] = 'Review';
|
860 |
+
|
861 |
+
if(isset($all_post_meta['product_pros_'.$schema_id][0])){
|
862 |
+
|
863 |
+
$review_fields['positiveNotes']['@type'] = 'ItemList';
|
864 |
+
|
865 |
+
$itemList = [];
|
866 |
+
foreach(unserialize($all_post_meta['product_pros_'.$schema_id][0]) as $key => $positiveNotes){
|
867 |
+
|
868 |
+
$itemList[$key]['@type'] = 'ListItem';
|
869 |
+
$itemList[$key]['position'] = 1;
|
870 |
+
$itemList[$key]['name'] = $positiveNotes['saswp_product_pros_title'];
|
871 |
+
}
|
872 |
+
$review_fields['positiveNotes']['itemListElement'] = $itemList;
|
873 |
+
|
874 |
+
}
|
875 |
+
|
876 |
+
if(isset($all_post_meta['product_cons_'.$schema_id][0])){
|
877 |
+
|
878 |
+
$review_fields['negativeNotes']['@type'] = 'ItemList';
|
879 |
+
|
880 |
+
$itemList = [];
|
881 |
+
foreach(unserialize($all_post_meta['product_cons_'.$schema_id][0]) as $key => $positiveNotes){
|
882 |
+
|
883 |
+
$itemList[$key]['@type'] = 'ListItem';
|
884 |
+
$itemList[$key]['position'] = 1;
|
885 |
+
$itemList[$key]['name'] = $positiveNotes['saswp_product_cons_title'];
|
886 |
+
}
|
887 |
+
|
888 |
+
$review_fields['negativeNotes']['itemListElement'] = $itemList;
|
889 |
+
|
890 |
+
}
|
891 |
+
|
892 |
+
$review_fields['author']['@type'] = 'Person';
|
893 |
+
$review_fields['author']['name'] = $review['saswp_product_reviews_reviewer_name'] ? esc_attr($review['saswp_product_reviews_reviewer_name']) : 'Anonymous';
|
894 |
+
|
895 |
+
if(isset($review['saswp_product_reviews_created_date'])){
|
896 |
+
$review_fields['datePublished'] = esc_html($review['saswp_product_reviews_created_date']);
|
897 |
+
}
|
898 |
+
if(isset($review['saswp_product_reviews_text'])){
|
899 |
+
$review_fields['description'] = esc_textarea($review['saswp_product_reviews_text']);
|
900 |
+
}
|
901 |
+
// echo "<pre>";print_r(is_int($review['saswp_product_reviews_reviewer_rating']));die;
|
902 |
+
|
903 |
+
if($review['saswp_product_reviews_reviewer_rating']){
|
904 |
+
|
905 |
+
$review_fields['reviewRating']['@type'] = 'Rating';
|
906 |
+
$review_fields['reviewRating']['bestRating'] = '5';
|
907 |
+
$review_fields['reviewRating']['ratingValue'] = esc_attr($review['saswp_product_reviews_reviewer_rating']);
|
908 |
+
$review_fields['reviewRating']['worstRating'] = '1';
|
909 |
+
|
910 |
+
}
|
911 |
+
|
912 |
+
$itinerary_arr[] = $review_fields;
|
913 |
+
}
|
914 |
+
$input1['review'] = $itinerary_arr;
|
915 |
+
}
|
916 |
+
|
917 |
+
$service = new saswp_output_service();
|
918 |
+
$product_details = $service->saswp_woocommerce_product_details(get_the_ID());
|
919 |
+
|
920 |
+
|
921 |
+
if(!empty($product_details['product_reviews'])){
|
922 |
+
|
923 |
+
$reviews = array();
|
924 |
+
|
925 |
+
foreach ($product_details['product_reviews'] as $review){
|
926 |
+
|
927 |
+
$review_fields = array();
|
928 |
+
|
929 |
+
$review_fields['@type'] = 'Review';
|
930 |
+
$review_fields['author']['@type'] = 'Person';
|
931 |
+
$review_fields['author']['name'] = $review['author'] ? esc_attr($review['author']) : 'Anonymous';
|
932 |
+
$review_fields['datePublished'] = esc_html($review['datePublished']);
|
933 |
+
$review_fields['description'] = $review['description'];
|
934 |
+
|
935 |
+
if(isset($review['reviewRating']) && $review['reviewRating'] !=''){
|
936 |
+
|
937 |
+
$review_fields['reviewRating']['@type'] = 'Rating';
|
938 |
+
$review_fields['reviewRating']['bestRating'] = '5';
|
939 |
+
$review_fields['reviewRating']['ratingValue'] = esc_attr($review['reviewRating']);
|
940 |
+
$review_fields['reviewRating']['worstRating'] = '1';
|
941 |
+
|
942 |
+
}
|
943 |
+
|
944 |
+
$reviews[] = $review_fields;
|
945 |
+
|
946 |
+
}
|
947 |
+
$input1['review'] = $reviews;
|
948 |
+
}
|
949 |
+
|
950 |
+
if(!isset($input1['review'])){
|
951 |
+
$input1 = saswp_append_fetched_reviews($input1);
|
952 |
+
}
|
953 |
}
|
954 |
|
955 |
|
1166 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_brand_name_'.$schema_id, 'saswp_array'),
|
1167 |
)
|
1168 |
);
|
1169 |
+
|
1170 |
if( isset($all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0] != '' ){
|
1171 |
$input1['brand']['url'] = $all_post_meta['saswp_product_schema_brand_url_'.$schema_id][0];
|
1172 |
}
|
1173 |
+
|
1174 |
if( isset($all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0] != '' ){
|
1175 |
$input1['brand']['image'] = $all_post_meta['saswp_product_schema_brand_image_'.$schema_id][0];
|
1176 |
}
|
1181 |
if( isset($all_post_meta['saswp_product_schema_id_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_id_'.$schema_id][0] != '' ){
|
1182 |
$input1['@id'] = $all_post_meta['saswp_product_schema_id_'.$schema_id][0];
|
1183 |
}
|
1184 |
+
|
1185 |
+
// if( isset($all_post_meta['product_pros_'.$schema_id][0]) && $all_post_meta['product_pros_'.$schema_id][0] != '' ){
|
1186 |
+
// $input1['brand']['url'] = $all_post_meta['product_pros_'.$schema_id][0];
|
1187 |
+
// }
|
1188 |
+
|
1189 |
|
1190 |
$input1 = saswp_get_modified_image('saswp_product_schema_image_'.$schema_id.'_detail', $input1);
|
1191 |
|
1192 |
+
|
1193 |
if( (isset($all_post_meta['saswp_product_schema_price_'.$schema_id][0]) && $all_post_meta['saswp_product_schema_price_'.$schema_id][0]) || (isset($all_post_meta['saswp_product_schema_high_price_'.$schema_id][0]) && isset($all_post_meta['saswp_product_schema_low_price_'.$schema_id][0]) ) ){
|
1194 |
|
1195 |
$input1['offers']['@type'] = 'Offer';
|
1264 |
$review_fields = array();
|
1265 |
|
1266 |
$review_fields['@type'] = 'Review';
|
1267 |
+
|
1268 |
+
if(isset($all_post_meta['product_pros_'.$schema_id][0])){
|
1269 |
+
|
1270 |
+
$review_fields['positiveNotes']['@type'] = 'ItemList';
|
1271 |
+
|
1272 |
+
$itemList = [];
|
1273 |
+
foreach(unserialize($all_post_meta['product_pros_'.$schema_id][0]) as $key => $positiveNotes){
|
1274 |
+
|
1275 |
+
$itemList[$key]['@type'] = 'ListItem';
|
1276 |
+
$itemList[$key]['position'] = 1;
|
1277 |
+
$itemList[$key]['name'] = $positiveNotes['saswp_product_pros_title'];
|
1278 |
+
}
|
1279 |
+
$review_fields['positiveNotes']['itemListElement'] = $itemList;
|
1280 |
+
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
if(isset($all_post_meta['product_cons_'.$schema_id][0])){
|
1284 |
+
|
1285 |
+
$review_fields['negativeNotes']['@type'] = 'ItemList';
|
1286 |
+
|
1287 |
+
$itemList = [];
|
1288 |
+
foreach(unserialize($all_post_meta['product_cons_'.$schema_id][0]) as $key => $positiveNotes){
|
1289 |
+
|
1290 |
+
$itemList[$key]['@type'] = 'ListItem';
|
1291 |
+
$itemList[$key]['position'] = 1;
|
1292 |
+
$itemList[$key]['name'] = $positiveNotes['saswp_product_cons_title'];
|
1293 |
+
}
|
1294 |
+
|
1295 |
+
$review_fields['negativeNotes']['itemListElement'] = $itemList;
|
1296 |
+
|
1297 |
+
}
|
1298 |
+
|
1299 |
$review_fields['author']['@type'] = 'Person';
|
1300 |
$review_fields['author']['name'] = $review['saswp_product_reviews_reviewer_name'] ? esc_attr($review['saswp_product_reviews_reviewer_name']) : 'Anonymous';
|
1301 |
|
1356 |
if(!isset($input1['review'])){
|
1357 |
$input1 = saswp_append_fetched_reviews($input1);
|
1358 |
}
|
1359 |
+
// echo "<pre>";
|
1360 |
+
// print_r($input1);
|
1361 |
+
// die();
|
1362 |
return $input1;
|
1363 |
|
1364 |
}
|
@@ -1748,16 +1748,59 @@ function saswp_schema_output() {
|
|
1748 |
|
1749 |
case 'VideoObject':
|
1750 |
|
1751 |
-
$video_links = saswp_get_video_metadata();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1752 |
|
1753 |
$description = saswp_get_the_excerpt();
|
1754 |
|
1755 |
if(!$description){
|
1756 |
$description = get_bloginfo('description');
|
1757 |
}
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1761 |
'@type' => 'VideoObject',
|
1762 |
'@id' => trailingslashit(saswp_get_permalink()).'#videoobject',
|
1763 |
'url' => trailingslashit(saswp_get_permalink()),
|
@@ -1813,7 +1856,8 @@ function saswp_schema_output() {
|
|
1813 |
$input1 = array();
|
1814 |
}
|
1815 |
|
1816 |
-
}
|
|
|
1817 |
|
1818 |
break;
|
1819 |
|
1748 |
|
1749 |
case 'VideoObject':
|
1750 |
|
1751 |
+
$video_links = saswp_get_video_metadata();
|
1752 |
+
$input1['@context'] = saswp_context_url();
|
1753 |
+
|
1754 |
+
if(count($video_links) > 1){
|
1755 |
+
$input1['@type'] = "ItemList";
|
1756 |
+
|
1757 |
+
foreach($video_links as $vkey => $v_val){
|
1758 |
+
$input1['itemListElement'][] = array(
|
1759 |
+
'@type' => 'VideoObject',
|
1760 |
+
"position" => $vkey+1,
|
1761 |
+
'name' => $v_val['title'],
|
1762 |
+
'url' => $v_val['video_url'],
|
1763 |
+
'description' => $v_val['description'],
|
1764 |
+
'uploadDate' => $v_val['uploadDate'],
|
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 |
$description = saswp_get_the_excerpt();
|
1780 |
|
1781 |
if(!$description){
|
1782 |
$description = get_bloginfo('description');
|
1783 |
}
|
1784 |
+
$input1 = array(
|
1785 |
+
'@type' => 'VideoObject',
|
1786 |
+
"name" => saswp_get_the_title(),
|
1787 |
+
"description" => $description,
|
1788 |
+
"thumbnailUrl" => isset($video_links[0]['thumbnail_url'])? $video_links[0]['thumbnail_url'] : saswp_get_thumbnail(),
|
1789 |
+
"uploadDate" => $video_links[0]['uploadDate'],
|
1790 |
+
"duration" => $video_links[0]['duration'],
|
1791 |
+
"contentUrl" => $video_links[0]['video_url'],
|
1792 |
+
"embedUrl" => $video_links[0]['video_url'],
|
1793 |
+
"interactionStatistic" => array(
|
1794 |
+
"@type" => "InteractionCounter",
|
1795 |
+
"interactionType" => array(
|
1796 |
+
"@type" => "WatchAction"
|
1797 |
+
),
|
1798 |
+
"userInteractionCount" => $video_links[0]['viewCount']
|
1799 |
+
)
|
1800 |
+
);
|
1801 |
+
|
1802 |
+
|
1803 |
+
/* $input1 = array(
|
1804 |
'@type' => 'VideoObject',
|
1805 |
'@id' => trailingslashit(saswp_get_permalink()).'#videoobject',
|
1806 |
'url' => trailingslashit(saswp_get_permalink()),
|
1856 |
$input1 = array();
|
1857 |
}
|
1858 |
|
1859 |
+
} */
|
1860 |
+
}
|
1861 |
|
1862 |
break;
|
1863 |
|
@@ -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,23 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= 1.9.100 (06 August 2022) =
|
125 |
* Added: Compatibility with Ultimate FAQ Pro
|
126 |
* Added: Compatibility with Showcase idx plugin
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6.20
|
7 |
+
Stable tag: 1.9.101
|
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.101 (30 September 2022) =
|
125 |
+
* Added: Option for turn off( hide) the ordered and unordered item list in FAQ #1698
|
126 |
+
* Added: Option in adding date format for reviews like 12 days ago #1713
|
127 |
+
* Added: Option to remove version number from source code #1715
|
128 |
+
* Added: Compatibility with Ultimate FAQ pro plugin #1719
|
129 |
+
* Added: Integration to fetch reviews with Ultimate member plugin. #1724
|
130 |
+
* Added: The "Pros and Cons Schema" for Reviews schema extension according to the new google guidelines. #1722
|
131 |
+
* Added: Review section in software application schema #1734
|
132 |
+
* Added: Backorder added in Product schema in availability #1735
|
133 |
+
* Added: "saswp_default_manage_option_capability" filter #1739
|
134 |
+
* Added: Default schema Json-LD created when not video schema type created for video pages #1742
|
135 |
+
* Fixed: Multiple video objects on same page (bonus for handling pagebreaks) #1705
|
136 |
+
* Fixed: Mylisting theme icon not showing when using our schema plugin #1731
|
137 |
+
* Fixed: Fatal Error only for login users while using Event Schema Extension (User Specific) #1738
|
138 |
+
* Fixed: Schema output button not working when we use Forminator plugin #1745
|
139 |
+
|
140 |
+
|
141 |
= 1.9.100 (06 August 2022) =
|
142 |
* Added: Compatibility with Ultimate FAQ Pro
|
143 |
* Added: Compatibility with Showcase idx plugin
|
@@ -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.101
|
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.101');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
@@ -183,7 +183,12 @@ class saswp_view_common_class {
|
|
183 |
|
184 |
}
|
185 |
//$lable and $input has been escapped while create this variable
|
186 |
-
$output .= '<tr><th>'.$label.'</th><td>'.$input.'</td
|
|
|
|
|
|
|
|
|
|
|
187 |
}
|
188 |
|
189 |
//$output has been escapped while create this variable
|
@@ -231,8 +236,45 @@ class saswp_view_common_class {
|
|
231 |
|
232 |
foreach($type_fields as $key => $value){
|
233 |
|
234 |
-
|
235 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
$tabs_fields .= '<div class="saswp-'.esc_attr($key).'-section" data-id="'.esc_attr($schema_id).'">';
|
237 |
if(isset($howto_data[$value.'_'.$schema_id])){
|
238 |
|
@@ -242,13 +284,18 @@ class saswp_view_common_class {
|
|
242 |
if(!empty($howto_supply)){
|
243 |
|
244 |
$i = 0;
|
|
|
245 |
foreach ($howto_supply as $supply){
|
246 |
$supply_html .= '<div class="saswp-'.$key.'-table-div saswp-dynamic-properties" data-id="'.$i.'">';
|
247 |
-
|
|
|
|
|
|
|
248 |
$supply_html .= $this->saswp_get_dynamic_html($schema_id, $value, $i, $supply);
|
249 |
$supply_html .= '</div>';
|
250 |
|
251 |
-
$i++;
|
|
|
252 |
}
|
253 |
|
254 |
}
|
@@ -272,7 +319,13 @@ class saswp_view_common_class {
|
|
272 |
|
273 |
}
|
274 |
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
$tabs_fields .= '</div>';
|
277 |
|
278 |
}
|
@@ -475,6 +528,9 @@ class saswp_view_common_class {
|
|
475 |
if(strpos($meta_field['id'], 'rating_automate') !== false){
|
476 |
$rating_class = 'class="saswp-enable-rating-automate-'.strtolower($schema_type).'"';
|
477 |
}
|
|
|
|
|
|
|
478 |
$input = sprintf(
|
479 |
'<input %s %s id="%s" name="%s" type="checkbox" value="1">',
|
480 |
$rating_class,
|
@@ -555,8 +611,9 @@ class saswp_view_common_class {
|
|
555 |
default:
|
556 |
|
557 |
}
|
558 |
-
|
559 |
-
|
|
|
560 |
if($meta_field['id'] == 'saswp_service_schema_rating_'.$schema_id ||
|
561 |
$meta_field['id'] == 'saswp_product_schema_rating_'.$schema_id ||
|
562 |
$meta_field['id'] == 'saswp_review_schema_rating_'.$schema_id ||
|
@@ -581,6 +638,8 @@ class saswp_view_common_class {
|
|
581 |
|
582 |
$output .= '<tr class="saswp-review-tr"><th>'.$label.'</th><td>'.$input.'</td></tr>';
|
583 |
|
|
|
|
|
584 |
}else{
|
585 |
$output .= '<tr><th>'.$label.'</th><td>'.$input.'</td></tr>';
|
586 |
}
|
183 |
|
184 |
}
|
185 |
//$lable and $input has been escapped while create this variable
|
186 |
+
$output .= '<tr><th>'.$label.'</th><td>'.$input.'</td>';
|
187 |
+
if($meta_name == 'product_pros' || $meta_name == 'product_cons'){
|
188 |
+
$output .= '<td class="saswp-table-close-new-td"><a class="saswp-table-close-new">X</a></td>';
|
189 |
+
|
190 |
+
}
|
191 |
+
$output .= '</tr>';
|
192 |
}
|
193 |
|
194 |
//$output has been escapped while create this variable
|
236 |
|
237 |
foreach($type_fields as $key => $value){
|
238 |
|
239 |
+
|
240 |
+
$howto_data[$value.'_'.$schema_id] = saswp_get_post_meta($post_id, $value.'_'.$schema_id, true);
|
241 |
+
$prosCheckBoxMeta= saswp_get_post_meta($post_id,"saswp_schema_type_product_pros_enable_pros", true);
|
242 |
+
$consCheckBoxMeta= saswp_get_post_meta($post_id,"saswp_schema_type_product_pros_enable_cons", true);
|
243 |
+
|
244 |
+
|
245 |
+
$enablePros ='';
|
246 |
+
if(isset($prosCheckBoxMeta) && !empty($prosCheckBoxMeta)){
|
247 |
+
$enablePros = 'checked';
|
248 |
+
}
|
249 |
+
$prosCheckboxFalse = false;
|
250 |
+
if($value == 'product_pros'){
|
251 |
+
$prosCheckboxFalse = true;
|
252 |
+
$tabs_fields .= '
|
253 |
+
<table class="form-table" style="margin: 23px 0 4px 0;">
|
254 |
+
<tr>
|
255 |
+
<th>
|
256 |
+
<label for="saswp_schema_type_product_pros_enable_pros"><b>Pros & Cons</b></label>
|
257 |
+
</th>
|
258 |
+
<td><input type="checkbox" id="saswp_schema_type_product_pros_enable_pros" name="saswp_schema_type_product_pros_enable_pros" value="1" '.$enablePros.'>
|
259 |
+
</td>
|
260 |
+
</tr>
|
261 |
+
</table>';
|
262 |
+
}
|
263 |
+
$mainStyle='';
|
264 |
+
$prosCheckboxFalseClass = '';
|
265 |
+
if($prosCheckboxFalse){
|
266 |
+
$tabs_fields .='<div class="thepros_main_section_outer">';
|
267 |
+
$prosCheckboxFalseClass ="thepros_main_section";
|
268 |
+
}
|
269 |
+
$tabs_fields .= '<div class="saswp-'.esc_attr($key).'-section-main '.$prosCheckboxFalseClass.'" >';
|
270 |
+
$hideoldCloseBtn='';
|
271 |
+
if($value == 'product_pros'){
|
272 |
+
$tabs_fields .="<h3>Pros</h3>";
|
273 |
+
$hideoldCloseBtn = 'hideoldclosebtn';
|
274 |
+
}else if($value == 'product_cons'){
|
275 |
+
$tabs_fields .="<h3>Cons</h3>";
|
276 |
+
$hideoldCloseBtn = 'hideoldclosebtn';
|
277 |
+
}
|
278 |
$tabs_fields .= '<div class="saswp-'.esc_attr($key).'-section" data-id="'.esc_attr($schema_id).'">';
|
279 |
if(isset($howto_data[$value.'_'.$schema_id])){
|
280 |
|
284 |
if(!empty($howto_supply)){
|
285 |
|
286 |
$i = 0;
|
287 |
+
$reviewNumber = 1;
|
288 |
foreach ($howto_supply as $supply){
|
289 |
$supply_html .= '<div class="saswp-'.$key.'-table-div saswp-dynamic-properties" data-id="'.$i.'">';
|
290 |
+
if($key == 'product_reviews'){
|
291 |
+
$supply_html .= "<h3 style='float: left;'>Review ".$reviewNumber."</h3>";
|
292 |
+
}
|
293 |
+
$supply_html .= '<a class="saswp-table-close '.$hideoldCloseBtn.'">X</a>';
|
294 |
$supply_html .= $this->saswp_get_dynamic_html($schema_id, $value, $i, $supply);
|
295 |
$supply_html .= '</div>';
|
296 |
|
297 |
+
$i++;
|
298 |
+
$reviewNumber++;
|
299 |
}
|
300 |
|
301 |
}
|
319 |
|
320 |
}
|
321 |
|
322 |
+
if($value == 'product_pros'){
|
323 |
+
$tabs_fields .= '<a itemlist_sub_type="'.esc_attr($itemlist_sub_type).'" data-id="'.esc_attr($schema_id).'" div_type="'.$key.'" fields_type="'.$value.'" class="button saswp_add_schema_fields_on_fly saswp-'.$key.'">'.saswp_t_string( 'New Pros' ).'</a>';
|
324 |
+
}else if($value == 'product_cons'){
|
325 |
+
$tabs_fields .= '<a itemlist_sub_type="'.esc_attr($itemlist_sub_type).'" data-id="'.esc_attr($schema_id).'" div_type="'.$key.'" fields_type="'.$value.'" class="button saswp_add_schema_fields_on_fly saswp-'.$key.'">'.saswp_t_string( 'New Cons' ).'</a>';
|
326 |
+
}else{
|
327 |
+
$tabs_fields .= '<a itemlist_sub_type="'.esc_attr($itemlist_sub_type).'" data-id="'.esc_attr($schema_id).'" div_type="'.$key.'" fields_type="'.$value.'" class="button saswp_add_schema_fields_on_fly saswp-'.$key.'">'.saswp_t_string( 'Add '.$btn_text ).'</a>';
|
328 |
+
}
|
329 |
$tabs_fields .= '</div>';
|
330 |
|
331 |
}
|
528 |
if(strpos($meta_field['id'], 'rating_automate') !== false){
|
529 |
$rating_class = 'class="saswp-enable-rating-automate-'.strtolower($schema_type).'"';
|
530 |
}
|
531 |
+
if(strpos($meta_field['id'], 'product_pros') !== false){
|
532 |
+
$rating_class = 'class="saswp-enable-pros-'.strtolower($schema_type).'"';
|
533 |
+
}
|
534 |
$input = sprintf(
|
535 |
'<input %s %s id="%s" name="%s" type="checkbox" value="1">',
|
536 |
$rating_class,
|
611 |
default:
|
612 |
|
613 |
}
|
614 |
+
// echo "<pre>";
|
615 |
+
// print_r($meta_field['id']);
|
616 |
+
// die();
|
617 |
if($meta_field['id'] == 'saswp_service_schema_rating_'.$schema_id ||
|
618 |
$meta_field['id'] == 'saswp_product_schema_rating_'.$schema_id ||
|
619 |
$meta_field['id'] == 'saswp_review_schema_rating_'.$schema_id ||
|
638 |
|
639 |
$output .= '<tr class="saswp-review-tr"><th>'.$label.'</th><td>'.$input.'</td></tr>';
|
640 |
|
641 |
+
}else if($meta_field['id'] != 'product_pros_'.$schema_id){
|
642 |
+
$output .= '<tr class="saswp-product-pros"><th>'.$label.'</th><td>'.$input.'</td></tr>';
|
643 |
}else{
|
644 |
$output .= '<tr><th>'.$label.'</th><td>'.$input.'</td></tr>';
|
645 |
}
|
@@ -1207,90 +1207,121 @@ function saswp_get_manual_fields_on_ajax(){
|
|
1207 |
* @return type null
|
1208 |
* @since version 1.0
|
1209 |
*/
|
1210 |
-
function saswp_schema_type_add_meta_box_save( $post_id ) {
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1207 |
* @return type null
|
1208 |
* @since version 1.0
|
1209 |
*/
|
1210 |
+
function saswp_schema_type_add_meta_box_save( $post_id ) {
|
1211 |
+
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
|
1212 |
+
// if ( ! isset( $_POST['saswp_schema_type_nonce'] ) || ! wp_verify_nonce( $_POST['saswp_schema_type_nonce'], 'saswp_schema_type_nonce' ) ) return;
|
1213 |
+
if ( ! current_user_can( 'edit_post', $post_id ) ) return;
|
1214 |
+
|
1215 |
+
if(isset($_POST['saswp_schema_type_product_pros_enable_pros'])){
|
1216 |
+
|
1217 |
+
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_pros', 1);
|
1218 |
+
|
1219 |
+
}else{
|
1220 |
+
// delete_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_pros');
|
1221 |
+
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_pros', 0);
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
if(isset($_POST['saswp_schema_type_product_pros_enable_cons'])){
|
1225 |
+
|
1226 |
+
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_cons', 1);
|
1227 |
+
}else{
|
1228 |
+
// delete_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_cons');
|
1229 |
+
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_cons', 0);
|
1230 |
+
|
1231 |
+
}
|
1232 |
+
|
1233 |
+
|
1234 |
+
update_post_meta( $post_id, 'schema_type', sanitize_text_field( $_POST['schema_type'] ) );
|
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{
|
1240 |
+
delete_post_meta( $post_id, 'saswp_loc_display_on_front');
|
1241 |
+
}
|
1242 |
+
|
1243 |
+
if(isset($_POST['saswp_business_type'])){
|
1244 |
+
update_post_meta( $post_id, 'saswp_business_type', sanitize_text_field( $_POST['saswp_business_type'] ) );
|
1245 |
+
}else{
|
1246 |
+
delete_post_meta( $post_id, 'saswp_business_type');
|
1247 |
+
}
|
1248 |
+
if(isset($_POST['saswp_schema_type_product_pros_enable_pros'])){
|
1249 |
+
|
1250 |
+
update_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_pros', 1);
|
1251 |
+
}else{
|
1252 |
+
delete_post_meta( $post_id, 'saswp_schema_type_product_pros_enable_pros');
|
1253 |
+
}
|
1254 |
+
|
1255 |
+
// if(isset($_POST['product-enable-cons'])){
|
1256 |
+
// update_post_meta( $post_id, 'product-enable-cons', intval( $_POST['product-enable-cons'] ) );
|
1257 |
+
// }else{
|
1258 |
+
// delete_post_meta( $post_id, 'product-enable-cons');
|
1259 |
+
// }
|
1260 |
+
|
1261 |
+
|
1262 |
+
if(isset($_POST['saswp_event_type'])){
|
1263 |
+
update_post_meta( $post_id, 'saswp_event_type', sanitize_text_field( $_POST['saswp_event_type'] ) );
|
1264 |
+
}else{
|
1265 |
+
delete_post_meta( $post_id, 'saswp_event_type');
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
if(isset($_POST['saswp_business_name'])){
|
1269 |
+
update_post_meta( $post_id, 'saswp_business_name', sanitize_text_field( $_POST['saswp_business_name'] ) );
|
1270 |
+
}else{
|
1271 |
+
delete_post_meta( $post_id, 'saswp_business_name');
|
1272 |
+
}
|
1273 |
+
if(isset($_POST['saswp_enable_speakable_schema'])){
|
1274 |
+
update_post_meta( $post_id, 'saswp_enable_speakable_schema', intval($_POST['saswp_enable_speakable_schema']) );
|
1275 |
+
}else{
|
1276 |
+
delete_post_meta( $post_id, 'saswp_enable_speakable_schema');
|
1277 |
+
}
|
1278 |
+
if(isset($_POST['saswp_enable_videoobject'])){
|
1279 |
+
update_post_meta( $post_id, 'saswp_enable_videoobject', intval($_POST['saswp_enable_videoobject']) );
|
1280 |
+
}else{
|
1281 |
+
delete_post_meta( $post_id, 'saswp_enable_videoobject');
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
if(isset($_POST['saswp_enable_append_reviews'])){
|
1285 |
+
update_post_meta( $post_id, 'saswp_enable_append_reviews', intval($_POST['saswp_enable_append_reviews']) );
|
1286 |
+
}else{
|
1287 |
+
delete_post_meta( $post_id, 'saswp_enable_append_reviews');
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
if(isset($_POST['saswp_enable_itemlist_schema'])){
|
1291 |
+
update_post_meta( $post_id, 'saswp_enable_itemlist_schema', intval($_POST['saswp_enable_itemlist_schema']) );
|
1292 |
+
}else{
|
1293 |
+
delete_post_meta( $post_id, 'saswp_enable_itemlist_schema');
|
1294 |
+
}
|
1295 |
+
|
1296 |
+
if(isset($_POST['saswp_item_list_tags'])){
|
1297 |
+
update_post_meta( $post_id, 'saswp_item_list_tags', sanitize_text_field($_POST['saswp_item_list_tags']) );
|
1298 |
+
}else{
|
1299 |
+
delete_post_meta( $post_id, 'saswp_item_list_tags');
|
1300 |
+
}
|
1301 |
+
if(isset($_POST['saswp_item_list_custom'])){
|
1302 |
+
update_post_meta( $post_id, 'saswp_item_list_custom', sanitize_text_field($_POST['saswp_item_list_custom']) );
|
1303 |
+
}else{
|
1304 |
+
delete_post_meta( $post_id, 'saswp_item_list_custom');
|
1305 |
+
}
|
1306 |
+
if(isset($_POST['saswp_review_item_reviewed_'.$post_id])){
|
1307 |
+
update_post_meta( $post_id, 'saswp_review_item_reviewed_'.$post_id, sanitize_text_field($_POST['saswp_review_item_reviewed_'.$post_id]) );
|
1308 |
+
}else{
|
1309 |
+
delete_post_meta( $post_id, 'saswp_review_item_reviewed_'.$post_id);
|
1310 |
+
}
|
1311 |
+
if(isset($_POST['saswp_itemlist_item_type'])){
|
1312 |
+
update_post_meta( $post_id, 'saswp_itemlist_item_type', sanitize_text_field($_POST['saswp_itemlist_item_type']) );
|
1313 |
+
}else{
|
1314 |
+
delete_post_meta( $post_id, 'saswp_itemlist_item_type');
|
1315 |
+
}
|
1316 |
+
|
1317 |
+
update_post_meta( $post_id, 'saswp_attahced_reviews', json_decode(wp_unslash($_POST['saswp_attahced_reviews'])) );
|
1318 |
+
update_post_meta( $post_id, 'saswp_attached_collection', json_decode(wp_unslash($_POST['saswp_attached_collection'])) );
|
1319 |
+
|
1320 |
+
$common_obj = new saswp_view_common_class();
|
1321 |
+
|
1322 |
+
$post_obj[] = (object) array(
|
1323 |
+
'ID' => $post_id
|
1324 |
+
);
|
1325 |
+
|
1326 |
+
$common_obj->saswp_save_common_view($post_id, $post_obj);
|
1327 |
+
}
|