Schema & Structured Data for WP & AMP - Version 1.9.10

Version Description

(3 Oct 2019) =

  • Added: Field to enter Yelp link to Knowledge Graph Social Fields section #517
  • Fixed: Breadcrumb list error on custom taxonomy #523
  • Fixed: ItemList and CollectionPage schema are not being added on custom texonomy page #521
Download this release

Release Info

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

Code changes from version 1.9.9 to 1.9.10

admin_section/css/main-style.min.css CHANGED
@@ -1 +1,1249 @@
1
- .saswp_warning{color:#ef6c00!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:70%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:30px;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}.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;padding-right:10px}.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{background-color:#ccc}.saswp-tab-links{display:block;background-color:inherit;color:#000;padding:6px 10px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:130px;overflow:hidden;margin-right:10px}.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:10px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!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:40px;height:22px;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:#5a6783;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#61bd3b;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 li{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #eee}.saswp-tab-nav .selected{background-color:#ccc}.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-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{color:#000;font-weight:500}#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-str-rtng .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;float:left}.saswp-ele-ic img{width:100%}.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;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.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%}.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:20px;height:20px}.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:81%}.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:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.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}.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{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px;padding-left:5px}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}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.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}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ To change this license header, choose License Headers in Project Properties.
3
+ To change this template file, choose Tools | Templates
4
+ and open the template in the editor.
5
+ */
6
+ /*
7
+ Created on : Jul 27, 2018, 5:36:26 PM
8
+ Author : Magazine3
9
+ */
10
+ .saswp_warning{
11
+ color: #ef6c00 !important;
12
+ }
13
+
14
+ .saswp_hide{
15
+ display: none;
16
+ }
17
+ .saswp-general table th{
18
+ width: auto;
19
+ font-weight: 600;
20
+ padding: 0px;
21
+ }
22
+ .saswp-general table{
23
+ margin-top: 0px;
24
+ }
25
+ .saswp-general table td{
26
+ padding: 5px;
27
+ }
28
+ .saswp-knowledge table th{
29
+ width: auto;
30
+ padding: 0px;
31
+ }
32
+ .saswp-knowledge table{
33
+ margin-top: 0px;
34
+ }
35
+ .saswp-knowledge table td{
36
+ padding: 5px;
37
+ }
38
+ .saswp-schema table th{
39
+ width: auto;
40
+ padding: 0px;
41
+ }
42
+ .saswp-schema table{
43
+ margin-top: 0px;
44
+ }
45
+ .saswp-schema table td{
46
+ padding: 5px;
47
+ }
48
+ .saswp-amp table th{
49
+ width: auto;
50
+ padding: 0px;
51
+ }
52
+ .saswp-amp table{
53
+ margin-top: 0px;
54
+ }
55
+ .saswp-amp table td{
56
+ padding: 5px;
57
+ }
58
+ .saswp-help table th{
59
+ width: auto;
60
+ padding: 0px;
61
+ }
62
+ .saswp-support table th{
63
+ width: auto;
64
+ padding: 0px;
65
+ }
66
+ .saswp-review table th{
67
+ width: auto;
68
+ padding: 0px;
69
+ }
70
+ .saswp-help table{
71
+ margin-top: 0px;
72
+ }
73
+ .saswp-help table td{
74
+ padding: 5px;
75
+ }
76
+ .saswp-settings-list{
77
+ display:inline-block;
78
+ width:100%
79
+ }
80
+ .saswp-settings-list li{
81
+ padding-left:0px;
82
+ }
83
+ .saswp-settings-list li div label{
84
+ font-weight: 600;
85
+ }
86
+ .saswp-general h2{
87
+ margin-bottom: 0px;
88
+ }
89
+ .saswp-knowledge h2{
90
+ margin-bottom: 0px;
91
+ }
92
+ .saswp-schema h2{
93
+ margin-bottom: 0px;
94
+ }
95
+ .saswp-help h2{
96
+ margin-bottom: 0px;
97
+ }
98
+ .saswp-settings-form p.submit{
99
+ margin-top:0px;
100
+ }
101
+ .saswp_qanda_p{
102
+ font-weight: 500;
103
+ }
104
+ .saswp-display-none{
105
+ display: none !important;
106
+ }
107
+ .saswp-placement-groups{
108
+ border: 1px solid #e5e5e5;
109
+ }
110
+ .saswp-query-success{
111
+ color: #006600;
112
+ }
113
+ .saswp-query-error{
114
+ color: #bf3322;
115
+ }
116
+ .saswp-tools table th{
117
+ width: auto;
118
+ padding: 0px;
119
+ }
120
+ .saswp-tools table{
121
+ margin-top: 0px;
122
+ }
123
+ .saswp-tools table td{
124
+ padding: 5px;
125
+ }
126
+ .saswp-tools-field-title strong{
127
+ padding-right: 130px;
128
+ }
129
+ .saswp-tools .saswp-tooltip{
130
+ width: 230px;
131
+ }
132
+ .saswp-tools .saswp-knowledge-label {
133
+ float: left;
134
+ }
135
+ .saswp-error{
136
+ color: #ff0000 !important;
137
+ }
138
+ /*
139
+ Tooltip css starts here
140
+
141
+ */
142
+ .saswp-tooltip {
143
+ position: relative;
144
+ display: inline-block;
145
+ }
146
+ .saswp-tooltip .saswp-tooltiptext {
147
+ visibility: hidden;
148
+ width: 200px;
149
+ background-color: black;
150
+ color: #fff;
151
+ text-align: center;
152
+ border-radius: 6px;
153
+ padding: 5px 0;
154
+
155
+ /* Position the tooltip */
156
+ position: absolute;
157
+ z-index: 1;
158
+ bottom: 100%;
159
+ left: 50%;
160
+ margin-left: -25px;
161
+ }
162
+ /*.saswp-tooltip:hover .saswp-tooltiptext {
163
+ visibility: visible;
164
+ }*/
165
+
166
+ .saswp-tooltiptext::after {
167
+ content: "";
168
+ position: absolute;
169
+ top: 100%;
170
+ left: 10%;
171
+ margin-left: -5px;
172
+ border-width: 5px;
173
+ border-style: solid;
174
+ border-color: black transparent transparent transparent;
175
+ }
176
+
177
+ /*
178
+ Tooltip css ends here
179
+
180
+ */
181
+ .saswp-knowledge-base .saswp-knowledge-label{
182
+ width:200px;
183
+ float:left;
184
+ clear: both;
185
+
186
+ }
187
+ .saswp-knowledge-base .saswp-knowledge-field{
188
+ width:75%;
189
+ float:right;
190
+ }
191
+
192
+ .saswp-social-fileds ul{
193
+ display: grid;
194
+ grid-template-columns: 26.5% 1fr;
195
+ }
196
+ .saswp-social-fileds li{
197
+ display: flex;
198
+ }
199
+ .saswp-social-fileds .saswp-knowledge-field{
200
+ width: 100%;
201
+ margin-left: 10px;
202
+ }
203
+ .saswp-social-fileds .saswp-knowledge-field input{
204
+ float: right;
205
+ margin: inherit;
206
+ }
207
+ .saswp-schema-type-fields .saswp-knowledge-label{
208
+ width:200px;
209
+ float:left;
210
+ clear: both;
211
+ }
212
+ .saswp-schema-type-fields .saswp-knowledge-field{
213
+ width:75%;
214
+ float:right;
215
+ }
216
+ .saswp-settings-first-div{
217
+ width: 70%;
218
+ }
219
+ .saswp-settings-container{
220
+ display: inline-flex;
221
+ width: 100%;
222
+ }
223
+ .saswp-settings-second-div{
224
+ float: right;
225
+ position: relative;
226
+ top: 20px;
227
+ margin-right: 30px;
228
+ margin-top: 37px;
229
+ }
230
+ .saswp-feedback-panel{
231
+ height: 200px;
232
+ width: 280px;
233
+ background: #ffffff;
234
+ position: relative;
235
+
236
+ }
237
+ .saswp-start-quck-setup{
238
+ position: relative;
239
+ float: inherit;
240
+ top: 7px;
241
+ left:15px;
242
+ }
243
+ .saswp-feedback-panel ul{
244
+ list-style-type: circle;
245
+ list-style:decimal;
246
+ padding-left: 30px;
247
+ font-size: 15px;
248
+
249
+ }
250
+ .saswp-feedback-panel a{
251
+ text-decoration: none;
252
+
253
+ }
254
+ .saswp-feedback-panel h2{
255
+ text-align: center;
256
+ padding-top: 18px;
257
+
258
+ }
259
+ .saswp-social-sharing-buttons {
260
+ text-align: center;
261
+ padding-top: 20px;
262
+
263
+
264
+ }
265
+ .saswp-facebook-share{
266
+ background: #3B5998;
267
+ box-shadow: 0 0px 0 #1b95e0 !important;
268
+ color: #fff !important;
269
+ line-height: 20px !important;
270
+ height: 21px !important;
271
+ border-radius: 3px;
272
+ margin-right: 5px;
273
+ }
274
+ .saswp-social-sharing-buttons a{
275
+ text-align: center;
276
+ padding: 8px;
277
+
278
+
279
+ }
280
+ .twitter-share-button{
281
+ background: #1b95e0 !important;
282
+ box-shadow: 0 0px 0 #1b95e0 !important;
283
+ color:#fff !important;
284
+ line-height: 20px !important;
285
+ height: 21px !important;
286
+ border-radius: 3px;
287
+ margin-left: 5px;
288
+
289
+ }
290
+ .saswp-placement-button{
291
+ padding: 3px 10px;
292
+ color: #0d0d0d;
293
+ font-size: 14px;
294
+ border: 1px solid #aaa;
295
+ border-radius: 2px;
296
+ background: linear-gradient(#ededed, #ffffff);
297
+ }
298
+ .saswp-placement-table td {
299
+ padding: 5px 10px !important;
300
+ }
301
+ .saswp-archive-div .saswp-knowledge-field{
302
+ float: right;
303
+ width: 75%;
304
+ padding-bottom: 10px;
305
+ }
306
+ .saswp-archive-div .saswp-knowledge-label{
307
+ float:left;
308
+ clear: both;
309
+ }
310
+
311
+ .saswp-amp .saswp-knowledge-field{
312
+ float: right;
313
+ width: 75%;
314
+ padding-bottom: 10px;
315
+ }
316
+ .saswp-amp .saswp-knowledge-label{
317
+ float:left;
318
+ clear: both;
319
+ }
320
+
321
+ .saswp-review .saswp-knowledge-field{
322
+ float: right;
323
+ width: 75%;
324
+ padding-bottom: 10px;
325
+ }
326
+ .saswp-review .saswp-knowledge-label{
327
+ float:left;
328
+ clear: both;
329
+ }
330
+
331
+ .saswp-compativility-div .saswp-knowledge-field{
332
+ float: right;
333
+ width: 75%;
334
+ padding-bottom: 10px;
335
+ }
336
+ .saswp-compativility-div .saswp-knowledge-label{
337
+ float:left;
338
+ clear: both;
339
+ }
340
+ .saswp-compativility-div li {
341
+ display: inline-flex;
342
+ }
343
+ .saswp-seller-div .saswp-knowledge-label{
344
+ float: left;
345
+
346
+ clear: both;
347
+ }
348
+ .saswp-seller-div .saswp-knowledge-field{
349
+ float: left;
350
+ width: 70%;
351
+ }
352
+ .saswp-post-specific-tab-wrapper{
353
+ display: inline-block;
354
+ width: 25%;
355
+ vertical-align: top;
356
+ box-sizing: border-box;
357
+ padding-right:10px;
358
+ }
359
+ .saswp-post-specific-container{
360
+ display: inline-block;
361
+ width: calc(75% - 1px );
362
+ border-left: 1px solid #eee;
363
+ }
364
+ .saswp-post-specific-wrapper{
365
+ padding: 10px;
366
+ }
367
+ .saswp-tab a.selected {
368
+ background-color: #ccc;
369
+ }
370
+ .saswp-tab-links{
371
+ display: block;
372
+ background-color: inherit;
373
+ color: black;
374
+ padding: 6px 10px;
375
+ outline: none;
376
+ text-align: left;
377
+ cursor: pointer;
378
+ transition: 0.3s;
379
+ font-size: 15px;
380
+ width: 130px;
381
+ overflow: hidden;
382
+ margin-right: 10px;
383
+ }
384
+ .saswp-star-rating{
385
+ cursor: pointer;
386
+ }
387
+ .saswp-post-specific-wrapper select{
388
+ width: 100%;
389
+ }
390
+ .saswp-review-tables{
391
+ width: 100%;
392
+ }
393
+ .saswp-over-all-raring{
394
+ float: right;
395
+ }
396
+
397
+ .saswp-review-pros-and-cons{
398
+ position: relative;
399
+ clear:both;
400
+ }
401
+ .saswp-review-pros-and-cons > div:first{
402
+ padding-left: 10px;
403
+ }
404
+ .saswp-review-pros-and-cons > div{
405
+ width: 49%;
406
+ display: inline-block;
407
+ }
408
+ .saswp-review-pros-and-cons > div:nth-child(2){
409
+ padding-left: 12px;
410
+ }
411
+ .saswp-wp-ediot-desc{
412
+ margin-bottom: -23px;
413
+ display: block;
414
+ }
415
+ .saswp-review-description{
416
+ margin-top: 40px;
417
+ padding-top: 10px;
418
+ border-top: 1px solid #eee;
419
+ }
420
+ .saswp-review-pros-and-cons{
421
+ margin-top: 40px;
422
+ padding-top: 10px;
423
+ border-top: 1px solid #eee;
424
+ }
425
+ .saspw-review-item-list{
426
+ margin-top: 20px;
427
+ border-top: 1px solid #eee;
428
+ }
429
+ .saswp-review-item-list-table{
430
+ padding-bottom: 10px;
431
+ }
432
+ #sasw-review input[type=text] {
433
+ width: 180px;
434
+ }
435
+ #sasw-review input[type=number] {
436
+ width: 180px;
437
+ }
438
+ #saswp-review-item-enable{
439
+ width: 10px;
440
+ }
441
+ .saswp-enable-review-on-post{
442
+ padding-bottom: 10px;
443
+ }
444
+ .saswp-enable-review-on-post label{
445
+ font-weight: 500;
446
+ }
447
+ /*
448
+ Compatibility tab css starts here
449
+ */
450
+ .saswp-compatibility table th{
451
+ width: auto;
452
+ padding: 0px;
453
+ }
454
+ .saswp-compatibility .saswp-knowledge-label {
455
+ float: left;
456
+ clear: both;
457
+ }
458
+ .saswp-tools .saswp-knowledge-label {
459
+ float: left;
460
+ clear: both;
461
+ }
462
+ .saswp-tools .saswp-knowledge-field {
463
+ float: right;
464
+ width: 69%;
465
+ padding-bottom: 10px;
466
+ }
467
+ .saswp_kg_logo, .saswp_person_fields{
468
+ background-color: #fff !important;
469
+ }
470
+ .saswp_image_thumbnail{
471
+ padding-top: 5px;
472
+ display: inline-block;
473
+ }
474
+ .saswp-compatibility .saswp-knowledge-field {
475
+ float: right;
476
+ width: 75%;
477
+ padding-bottom: 10px;
478
+ }
479
+ .saswp-schem-type-note, .saswp-job-posting-note{
480
+ color: chocolate;
481
+ }
482
+ .saswp-custom-fields-name{
483
+ border: 1px solid #aaa;
484
+ border-radius: 4px;
485
+ }
486
+ /*
487
+ Compatibility tab css ends
488
+ */
489
+ .saswp-option-table-class p{
490
+ margin: auto;
491
+ font-style: italic;
492
+ color: #666;
493
+ }
494
+ /*
495
+ On/Off Buttons starts here
496
+ */
497
+ .saswp-switch {
498
+ position: relative;
499
+ display: inline-block;
500
+ width: 40px;
501
+ height: 22px;
502
+ border: 20px;
503
+ }
504
+
505
+ .saswp-switch input {
506
+ opacity: 0;
507
+ width: 0;
508
+ height: 0;
509
+ }
510
+
511
+ .saswp-slider {
512
+ position: absolute;
513
+ cursor: pointer;
514
+ top: 0;
515
+ left: 0;
516
+ right: 0;
517
+ bottom: 0;
518
+ background-color: #5a6783;
519
+ transition: .4s;
520
+ border-radius: 20px;
521
+ }
522
+
523
+ .saswp-slider:before {
524
+ position: absolute;
525
+ content: "";
526
+ height: 15px;
527
+ width: 15px;
528
+ left: 4px;
529
+ bottom: 4px;
530
+ background-color: white;
531
+ transition: .4s;
532
+ border-radius: 20px;
533
+ }
534
+
535
+ input:checked + .saswp-slider {
536
+ background-color: #61bd3b;
537
+ border-radius: 30px;
538
+ }
539
+
540
+ input:focus + .saswp-slider {
541
+ box-shadow: 0 0 1px #2196F3;
542
+ }
543
+
544
+ input:checked + .saswp-slider:before {
545
+
546
+ transform: translateX(15px);
547
+ }
548
+
549
+ /* Rounded sliders */
550
+ .saswp-slider.saswp-round {
551
+ border-radius: 34px;
552
+ }
553
+
554
+ .saswp-slider.saswp-round:before {
555
+ border-radius: 50%;
556
+ }
557
+
558
+ .saswp-tab-nav li{
559
+ display: flex;
560
+ align-items: center;
561
+ justify-content: space-between;
562
+ margin-bottom:10px;
563
+ border-bottom: 1px solid #eee;
564
+ }
565
+
566
+ .saswp-tab-nav .selected{
567
+ background-color: #ccc;
568
+ }
569
+ .saswp-single-post-restore .saswp-switch{
570
+ height: 28px;
571
+ }
572
+ .saswp-single-post-restore .saswp-slider:before{
573
+ height: 20px;
574
+ }
575
+ /*
576
+ On/Off Buttons ends here
577
+ */
578
+ .option-table-class {width:100%;}
579
+ .option-table-class tr td {padding: 10px 10px 10px 10px ;}
580
+ .option-table-class tr > td{width: 30%;}
581
+ .option-table-class tr td:last-child{width: 60%;}
582
+
583
+ .saswp-custom-fields-table{
584
+ width: 100%;
585
+ }
586
+ .saswp-custom-fields-table input{
587
+ width: 100%;
588
+ }
589
+ .saswp-custom-fields-table tr td {padding: 10px 10px 10px 10px ;}
590
+ .saswp-custom-fields-table td{
591
+ width: 30%;
592
+ vertical-align: top;
593
+ }
594
+
595
+ .saswp-option-table-class input[type="text"], .saswp-option-table-class select{
596
+ width:100%;
597
+ }
598
+ .saswp-paywall-table-class input[type="text"], .saswp-paywall-table-class select{
599
+ width:100%;
600
+ }
601
+
602
+ /*
603
+ Compatibility tab css starts here
604
+ */
605
+ .saswp-email_schema table th{
606
+ width: auto;
607
+ padding: 0px;
608
+ }
609
+ .saswp-email_schema .saswp-knowledge-label {
610
+ float: left;
611
+ clear: both;
612
+ }
613
+ .saswp-email_schema .saswp-knowledge-field {
614
+ float: right;
615
+ width: 75%;
616
+ padding-bottom: 10px;
617
+ }
618
+ /*
619
+ Compatibility tab css ends
620
+ */
621
+ .saswp-add-on-plugin label{
622
+ margin-top: 10px;
623
+ }
624
+ .saswp-add-on-plugin span{
625
+ width: 250px;
626
+ display: inline-block;
627
+ }
628
+ .saswp-knowledge-label label[for="saswp_search_box_schema_checkbox"] {
629
+ padding-left: 10px;
630
+ }
631
+
632
+ .saswp-knowledge-label label[for="saswp-woocommerce-booking-checkbox"] {
633
+ padding-left: 10px;
634
+ }
635
+
636
+ .saswp-knowledge-label label[for="saswp-woocommerce-membership-checkbox"] {
637
+ padding-left: 10px;
638
+ }
639
+
640
+ .saswp-global-selected{
641
+ color: #000000;
642
+ font-weight: 500;
643
+ }
644
+ #saswp-global-tabs a{
645
+ cursor: pointer;
646
+ }
647
+ #saswp-global-tabs{
648
+ padding-left: 5px;
649
+ }
650
+ #saswp-tools-tabs a{
651
+ cursor: pointer;
652
+ }
653
+ #saswp-review-tabs a{
654
+ cursor: pointer;
655
+ }
656
+ #saswp-tools-tabs{
657
+ padding-left: 5px;
658
+ }
659
+ .saswp-need-help {
660
+ padding-left: 60px;
661
+ }
662
+ .saswp-heading{
663
+ display: inline-flex;
664
+ align-items: baseline;
665
+ }
666
+ .saswp-heading h2{
667
+ margin-bottom: 0px;
668
+ }
669
+ .saswp-view-docs a{
670
+ margin-right: 5px !important;
671
+ margin-top: 10px !important;
672
+ float: right;
673
+ }
674
+ .saswp-tabs .nav-tab{
675
+ margin-left: 4px;
676
+ }
677
+
678
+ /*
679
+ Google review module starts here
680
+ */
681
+ .saswp-panel {
682
+ padding: 7px 18px;
683
+ background-color: white;
684
+ box-shadow: 0px 0px 20px 1px #d2cccc;
685
+ }
686
+
687
+ /*** Review Design CSS ****/
688
+ .saswp-g-review-header{
689
+ margin-top: 50px;
690
+ }
691
+ .saswp-g-review-body{
692
+ display:inline-grid;
693
+ grid-template-columns: 1fr 300px;
694
+ grid-gap:30px;
695
+ margin-top:30px;
696
+ }
697
+ .saswp-review-list{}
698
+ .saswp-channel-list{
699
+ margin-right: 15px;
700
+ }
701
+ .saswp-input-fields{
702
+ display: inline-flex;
703
+ align-items: center;
704
+ margin-bottom: 8px;
705
+ width: 100%;
706
+ }
707
+ .saswp-input-fields label{
708
+ width: 130px;
709
+ }
710
+ .saswp-input-fields select{
711
+ width:100%;
712
+ }
713
+ .saswp-panel h3{
714
+ font-size: 20px;
715
+ line-height: 1.4;
716
+ color: #222;
717
+ text-align: center;
718
+ margin: 10px 0px 20px 0px;
719
+ }
720
+ .saswp-input-fields a.button-primary{
721
+ margin-top:10px;
722
+ }
723
+ .saswp-glg-review-body{
724
+ display: grid;
725
+ grid-template-columns: 100px 1fr;
726
+ grid-gap: 20px;
727
+ background: #fff;
728
+ padding: 20px;
729
+ box-shadow: 0px 0px 20px 1px #d2cccc;
730
+ margin-bottom: 30px;
731
+ }
732
+ .saswp-g-plus{
733
+ float: right;
734
+ font-size: 15px;
735
+ }
736
+ .saswp-rtng{
737
+ padding-left: 5px;
738
+ font-size: 14px;
739
+ }
740
+ .saswp-pt-dt {
741
+ font-size: 12px;
742
+ color: #999;
743
+ font-weight: 600;
744
+ margin-top: 5px;
745
+ display: inline-block;
746
+ }
747
+ .saswp-str{
748
+ display: inline-block;
749
+ width: 100%;
750
+ vertical-align: middle;
751
+ }
752
+ .saswp-athr{
753
+ font-size: 15px;
754
+ line-height: 1.4;
755
+ color: #000;
756
+ font-weight: bold;
757
+ display: inline-block;
758
+ vertical-align: middle;
759
+ }
760
+ .saswp-str-rtng .saswp-rvw-str{
761
+ display: inline-block;
762
+ vertical-align: middle;
763
+ padding-left: 10px;
764
+ width: auto;
765
+ }
766
+ .saswp-rv-cnt p{
767
+ font-size: 16px;
768
+ line-height: 1.6;
769
+ color: #000;
770
+ margin: 10px 0px 0px 0px;
771
+ }
772
+ .saswp-rv-img img{
773
+ max-width:100px;
774
+ border-radius: 100%;
775
+ }
776
+ /*
777
+ Google review module ends here
778
+ */
779
+
780
+ /** Premium Feature CSS **/
781
+ .saswp-premium_features table th, .saswp-services table th{
782
+ width: auto;
783
+ padding: 0px;
784
+ }
785
+ .saswp-features-blocks{
786
+ display: inline-grid;
787
+ grid-template-columns: 1fr 1fr;
788
+ grid-gap: 20px;
789
+ }
790
+ .saswp-features-blocks li{
791
+ background:#fff;
792
+ padding: 25px;
793
+ border: 1px solid #d8d8d8;
794
+ }
795
+ .saswp-features-blocks li a{
796
+ text-decoration: none;
797
+ }
798
+ .saswp-ele-ic{
799
+ border-radius: 256px;
800
+ display: inline-block;
801
+ padding:8px 10px 8px 10px;
802
+ width: 70px;
803
+ margin-right: 20px;
804
+ float: left;
805
+ }
806
+ .saswp-ele-ic img{
807
+ width:100%;
808
+ }
809
+ .saswp-ele-1{
810
+ background: #96588a;
811
+ }
812
+ .saswp-ele-2{
813
+ background: #00a97e;
814
+ }
815
+ .saswp-ele-3{
816
+ background: #cacaca;
817
+ }.saswp-ele-4{
818
+ background: #9c56cc;
819
+ }
820
+ .saswp-ele-tlt h3{
821
+ margin:0;
822
+ font-size: 18px;
823
+ line-height: 1.4;
824
+ }
825
+ .saswp-ele-tlt p{
826
+ margin-top:10px;
827
+ }
828
+ .saswp-sts-btn{
829
+ box-sizing: border-box;
830
+ height: 52px;
831
+ margin-top: 20px;
832
+ padding: 6px 15px;
833
+ border: 1px solid #e5e5e5;
834
+ border-radius: 3px;
835
+ display: flex;
836
+ align-items: center;
837
+ justify-content: space-between;
838
+ }
839
+ .saswp-d-btn{
840
+ background: #d2150a;
841
+ padding: 6px 18px;
842
+ border-radius: 30px;
843
+ font-size: 14px;
844
+ color: #fff;
845
+ }
846
+ .form-wrap .saswp-sts-txt{
847
+ font-size: 16px;
848
+ color:#000;
849
+ }
850
+ .saswp-sts-txt span{
851
+ color:#bebfc0;
852
+ padding-left:5px;
853
+ }
854
+
855
+ /** star rating Feature CSS **/
856
+ .saswp_review_platform .saswp-g-plus{
857
+ float: left;
858
+ }
859
+ .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}
860
+ .str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.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==)}
861
+ /*** Review Design CSS ****/
862
+ .saswp-g-review-header{
863
+ margin-top: 50px;
864
+ }
865
+ .saswp-g-review-body{
866
+ display:inline-grid;
867
+ grid-template-columns: 1fr 300px;
868
+ grid-gap:30px;
869
+ margin-top:30px;
870
+ width:100%;
871
+ }
872
+ .saswp-review-list{}
873
+ .saswp-channel-list{
874
+ margin-right: 15px;
875
+ }
876
+ .saswp-input-fields{
877
+ display: inline-flex;
878
+ align-items: center;
879
+ margin-bottom: 8px;
880
+ width: 100%;
881
+ }
882
+ .saswp-input-fields label{
883
+ width: 130px;
884
+ }
885
+ .saswp-panel h3{
886
+ font-size: 20px;
887
+ line-height: 1.4;
888
+ color: #222;
889
+ text-align: center;
890
+ margin: 10px 0px 20px 0px;
891
+ }
892
+ .saswp-input-fields a.button-primary{
893
+ margin-top:10px;
894
+ }
895
+ .saswp-glg-review-body{
896
+ display: grid;
897
+ grid-template-columns: 100px 1fr;
898
+ grid-gap: 20px;
899
+ background: #fff;
900
+ padding: 20px;
901
+ box-shadow: 0px 0px 20px 1px #d2cccc;
902
+ margin-bottom: 30px;
903
+ }
904
+ .saswp-g-plus{
905
+ float: right;
906
+ font-size: 15px;
907
+ width: 20px;
908
+ height: 20px;
909
+ }
910
+ .saswp-g-plus img{
911
+ max-width:100%;
912
+ }
913
+ .saswp-rtng{
914
+ padding-left: 5px;
915
+ font-size: 14px;
916
+ }
917
+ .saswp-pt-dt {
918
+ font-size: 12px;
919
+ color: #999;
920
+ font-weight: 600;
921
+ margin-top: 5px;
922
+ display: inline-block;
923
+ }
924
+ .saswp-athr{
925
+ font-size: 15px;
926
+ line-height: 1.4;
927
+ color: #000;
928
+ font-weight: bold;
929
+ }
930
+ .saswp-rv-cnt p{
931
+ font-size: 16px;
932
+ line-height: 1.6;
933
+ color: #000;
934
+ margin: 10px 0px 0px 0px;
935
+ }
936
+ .saswp-rv-img img{
937
+ max-width:100px;
938
+ }
939
+ .saswp-g-review-header div{
940
+ margin-top:10px;
941
+ }
942
+
943
+ /*** Upgrade Pro CSS ***/
944
+ .saswp-upgrade-pro{
945
+ background: #fff;
946
+ padding: 25px;
947
+ border: 1px solid #d8d8d8;
948
+ display: inline-block;
949
+ margin-top: 10px;
950
+ width: 81%;
951
+ }
952
+ .saswp-upgrade-pro h2{
953
+ font-size: 20px;
954
+ margin: 0;
955
+ color: #23282d;
956
+ font-weight: 600;
957
+ text-align: center;
958
+ }
959
+ .saswp-upgrade-pro ul{
960
+ margin: 25px 0px 20px 0px;
961
+ display: inline-block;
962
+ }
963
+ .saswp-upgrade-pro ul li{
964
+ position: relative;
965
+ padding-left: 30px;
966
+ font-size: 14px;
967
+ line-height: 1.4;
968
+ margin-bottom: 10px;
969
+ }
970
+ .saswp-upgrade-pro ul li:before {
971
+ content: "";
972
+ background-image: url(../images/check.png);
973
+ background-repeat: no-repeat;
974
+ background-size: 20px;
975
+ width: 20px;
976
+ height: 20px;
977
+ position: absolute;
978
+ left: 2px;
979
+ top: 2px;
980
+ }
981
+ .saswp-upgrade-pro a{
982
+ background: #d2150a;
983
+ padding: 10px 0px;
984
+ display: block;
985
+ text-align: center;
986
+ color: #fff;
987
+ text-decoration: none;
988
+ font-size: 16px;
989
+ font-weight: 600;
990
+ letter-spacing: 1px;
991
+ border-radius: 5px;
992
+ }
993
+ .saswp_image_prev{
994
+ max-width: 200px;
995
+ max-height: 200px;
996
+ float: left;
997
+ padding-left:2px;
998
+ }
999
+ .saswp_prev_close {
1000
+ position: relative;
1001
+ width:30px;
1002
+ height:30px;
1003
+ top: 12px;
1004
+ font-size: 20px;
1005
+ top: -5px;
1006
+ text-decoration:none;
1007
+ }
1008
+ .saswp-add-custom-schema-div{
1009
+ margin-top: 10px;
1010
+ border-top: 1px solid #eee;
1011
+ padding-top: 5px;
1012
+ }
1013
+
1014
+ .saswp-nav-menu-list label{
1015
+ padding-left: 10px;
1016
+ }
1017
+ /*** How to schema css starts here ***/
1018
+
1019
+ .saswp-dynamic-properties
1020
+ {
1021
+ border: 1px solid #aaa;
1022
+ margin-top: 5px;
1023
+ margin-bottom: 5px;
1024
+
1025
+ }
1026
+ .saswp-table-close{
1027
+ float: right;
1028
+ cursor: pointer;
1029
+ }
1030
+ .saswp-table-create-onajax table th, .saswp-table-create-onajax table td{
1031
+ padding: 5px;
1032
+ }
1033
+ .saswp-table-create-onajax select{
1034
+ width: 98%;
1035
+ }
1036
+
1037
+ /*** How to schema css ends here ***/
1038
+
1039
+ .saswp-g-reviews-settings-table input{
1040
+ width: 100%;
1041
+ }
1042
+ .saswp-s-reviews-settings-table input{
1043
+ width: 100%;
1044
+ }
1045
+ .saswp_rv_module_pro_notice{
1046
+ border: 1px solid #d8d8d8;
1047
+ background: #fff;
1048
+ }
1049
+
1050
+ /*** Review Module section ***/
1051
+
1052
+ .saswp-settings-list .saswp-rev-mod{
1053
+ width: 100%;
1054
+ display: inline-block;
1055
+ margin-top: 20px;
1056
+ }
1057
+ .saswp-rev-mod .saswp-knowledge-label{
1058
+ width: 100%;
1059
+ display: inline-block;
1060
+ padding: 10px 16px;
1061
+ font-weight: 600;
1062
+ font-size: 16px;
1063
+ color: #333;
1064
+ background: #f9f9f9;
1065
+ border: 1px solid #d8d8d8;
1066
+ border-bottom: none;
1067
+ box-sizing: border-box;
1068
+ }
1069
+ .saswp-rev-mod .saswp-knowledge-field{
1070
+ width:100%;
1071
+ display: inline-block;
1072
+ }
1073
+ .saswp-rev-mod .saswp_rv_module_pro_notice{
1074
+ padding:20px;
1075
+ }
1076
+ .saswp_cmpny_lst{
1077
+ width:100%;
1078
+ display: inline-block;
1079
+ margin-top:30px;
1080
+ }
1081
+ .saswp_rv_module_pro_notice ul{
1082
+ margin: 15px 0px 20px 0px;
1083
+ width: 100%;
1084
+ display: inline-grid;
1085
+ grid-template-columns: 1fr 1fr 1fr;
1086
+ grid-gap: 20px;
1087
+ border-bottom: 1px solid #eee;
1088
+ padding-bottom: 20px;
1089
+ }
1090
+ .saswp_rv_module_pro_notice ul li{
1091
+ position: relative;
1092
+ font-size: 15px;
1093
+ line-height: 1.5;
1094
+ color: #444;
1095
+ margin: 0;
1096
+ }
1097
+ .saswp_rv_module_pro_notice ul li span{
1098
+ padding-left:3px;
1099
+ }
1100
+ /*.saswp_rv_module_pro_notice ul li.check-img:before{
1101
+ content: "";
1102
+ background-image: url(../images/check.png);
1103
+ background-repeat: no-repeat;
1104
+ background-size: 16px;
1105
+ width: 16px;
1106
+ height: 16px;
1107
+ position: absolute;
1108
+ left: 2px;
1109
+ top: 6px;
1110
+ }*/
1111
+ .saswp_rv_module_pro_notice h2{
1112
+ text-align: center;
1113
+ font-size: 31px;
1114
+ }
1115
+ .saswp_rv_module_pro_notice .saswp_desc{
1116
+ text-align: center;
1117
+ font-size: 18px;
1118
+ font-style: normal;
1119
+ color: #000;
1120
+ }
1121
+ .saswp_rv_module_pro_notice .saswp_desc a{
1122
+ font-style: italic;
1123
+ }
1124
+ .saswp_rv_module_pro_notice .saswp_lst{
1125
+ color: #808080;
1126
+ font-family: georgia;
1127
+ font-style: italic;
1128
+ font-style: italic;
1129
+ font-size: 15px;
1130
+ font-weight: 600;
1131
+ }
1132
+ .saswp_rv_module_pro_notice .saswp_avlbl{
1133
+ color: #2a902e;
1134
+ font-family: georgia;
1135
+ font-style: italic;
1136
+ font-size: 15px;
1137
+ font-weight: 600;
1138
+ }
1139
+ .saswp_rv_module_pro_notice ul li img{
1140
+ width:20px;
1141
+ height:20px;
1142
+ position: relative;
1143
+ top: 4px;
1144
+ }
1145
+ .saswp-rev-btn{
1146
+ width:100%;
1147
+ display: inline-block;
1148
+ margin-top:20px;
1149
+ text-align: center;
1150
+ }
1151
+ .saswp-rev-btn span{
1152
+ display: block;
1153
+ font-size: 13px;
1154
+ margin-bottom: 15px;
1155
+ }
1156
+ .saswp-rev-btn a{
1157
+ padding: 12px 18px;
1158
+ display: inline-block;
1159
+ text-decoration: none;
1160
+ border-radius: 5px;
1161
+ background: #0085ba;
1162
+ color: #fff;
1163
+ font-weight: 600;
1164
+ font-size: 18px;
1165
+ }
1166
+ .select2-container{
1167
+ width:100% !important;
1168
+ }
1169
+ .saswp-schema-modify-section{
1170
+ margin-top: 15px;
1171
+ border-top: 1px solid #eee;
1172
+ padding-top: 15px;
1173
+ }
1174
+ .saswp-custom-meta-list{
1175
+ border: 1px solid #aaa;
1176
+ border-radius: 4px;
1177
+ }
1178
+ .saswp-custom-fields-table tr td:nth-child(3n+3) input{
1179
+ border: 1px solid #aaa;
1180
+ border-radius: 4px;
1181
+ }
1182
+ /** Notification CSS **/
1183
+ .updated.notice p{
1184
+ display: flex;
1185
+ width: 100%;
1186
+ align-items: center;
1187
+ }
1188
+ .updated.notice .dashicons-thumbs-up{
1189
+ margin-right:10px;
1190
+ }
1191
+ a.saswp-feedback-remindme, a.saswp-feedback-no-thanks{
1192
+ display: inline-block;
1193
+ cursor: pointer;
1194
+ }
1195
+ .saswp-feedback-remindme:after{
1196
+ content:",";
1197
+ display: inline-block;
1198
+ margin-right:5px;
1199
+ padding-left: 5px
1200
+ }
1201
+ a.saswp-revws-lnk{
1202
+ display: inline-block;
1203
+ background: #0085ba;
1204
+ padding: 12px 20px;
1205
+ color: #fff;
1206
+ text-decoration: none;
1207
+ border-radius: 3px;
1208
+ margin-left: 20px;
1209
+ font-size: 14px;
1210
+ line-height: 0.6;
1211
+ }
1212
+ .saswp-update-notice-btns{
1213
+ display: inline-block;
1214
+ width: 100%;
1215
+ margin-bottom: 5px;
1216
+ }
1217
+ .saswp-about-contact-page{
1218
+ width:75%;
1219
+ float:right;
1220
+ }
1221
+ .saswp-about-contact-page-tooltip{
1222
+ float:left;
1223
+ clear: both;
1224
+ }
1225
+ .saswp-quick-setup{
1226
+ float: left;
1227
+ }
1228
+ .saswp_add_schema_fields_on_fly{
1229
+ margin-bottom: 5px !important;
1230
+ }
1231
+ .saswp-custom-fields-table .saswp_image_prev{
1232
+ max-width:62px !important;
1233
+ }
1234
+ .saswp-custom-fields-table .saswp_prev_close{
1235
+ font-size: 15px;
1236
+ }
1237
+ .saswp-review-content-table td:nth-child(2){
1238
+ width: 50%;
1239
+ float: left;
1240
+ }
1241
+ .saswp-review-content-table input{
1242
+ width: 100%;
1243
+ }
1244
+ .saswp-review-content-table select{
1245
+ width: 100%;
1246
+ }
1247
+ .saswp-review-content-table textarea{
1248
+ width: 100%;
1249
+ }
admin_section/fields-generator.php CHANGED
@@ -85,8 +85,7 @@ class saswp_fields_generator {
85
  if(array_key_exists('proversion', $meta_field)){
86
 
87
  $proversion = $meta_field['proversion'];
88
-
89
-
90
  }
91
  if(array_key_exists('note', $meta_field)){
92
 
@@ -242,18 +241,15 @@ class saswp_fields_generator {
242
  $input = '<div class="saswp_rv_module_pro_notice">
243
  <h2>Get Your 5 Stars Reviews on Google SERPs</h2>
244
  <p class="saswp_desc">Automatically Fetch your customer reviews from 80+ Platforms and show them on your website with proper schema support. <a target="_blank" href="https://structured-data-for-wp.com/reviews-for-schema">Learn More...</a></p>
245
- <div class="saswp_cmpny_lst">
246
- <span class="saswp_avlbl">Integrations Avaliable</span>
247
  <ul>
248
  <li class="check-img"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/google-1-img.png">
249
- <span class="saswp_cmpny">Google Reviews (Unlimited)</span>
250
  </li>
251
  <li class="check-img"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/shopper-approved-img.png">
252
  <span class="saswp_cmpny">Shopper Approved</span>
253
  </li>
254
- </ul>
255
- <span class="saswp_lst">Integrations Coming soon</span>
256
- <ul>
257
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/agoda-img.png">
258
  <span class="saswp_cmpny">Agoda</span>
259
  </li>
@@ -284,13 +280,13 @@ class saswp_fields_generator {
284
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/bestbuy-img.png">
285
  <span>Bestbuy</span>
286
  </li>
287
- <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/booking-img.png">
288
  <span>Booking.com</span>
289
  </li>
290
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/capterra-img.png">
291
  <span>Capterra</span>
292
  </li>
293
- <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/cars-img.png">
294
  <span>Cars.com</span>
295
  </li>
296
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/cargurus-img.png">
@@ -356,7 +352,7 @@ class saswp_fields_generator {
356
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/houzz-img.png">
357
  <span>Houzz</span>
358
  </li>
359
- <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/hotels-img.png">
360
  <span>Hotels.com</span>
361
  </li>
362
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/hungerstation-img.png">
@@ -374,7 +370,7 @@ class saswp_fields_generator {
374
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/jet-img.png">
375
  <span>Jet</span>
376
  </li>
377
- <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/lawyers-img.png">
378
  <span>Lawyers.com</span>
379
  </li>
380
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/lendingtree-img.png">
85
  if(array_key_exists('proversion', $meta_field)){
86
 
87
  $proversion = $meta_field['proversion'];
88
+
 
89
  }
90
  if(array_key_exists('note', $meta_field)){
91
 
241
  $input = '<div class="saswp_rv_module_pro_notice">
242
  <h2>Get Your 5 Stars Reviews on Google SERPs</h2>
243
  <p class="saswp_desc">Automatically Fetch your customer reviews from 80+ Platforms and show them on your website with proper schema support. <a target="_blank" href="https://structured-data-for-wp.com/reviews-for-schema">Learn More...</a></p>
244
+ <div class="saswp_cmpny_lst">
245
+ <span class="saswp_lst saswp_avlbl">Integrations Avaliable</span>
246
  <ul>
247
  <li class="check-img"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/google-1-img.png">
248
+ <span class="saswp_cmpny">Google Reviews</span>
249
  </li>
250
  <li class="check-img"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/shopper-approved-img.png">
251
  <span class="saswp_cmpny">Shopper Approved</span>
252
  </li>
 
 
 
253
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/agoda-img.png">
254
  <span class="saswp_cmpny">Agoda</span>
255
  </li>
280
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/bestbuy-img.png">
281
  <span>Bestbuy</span>
282
  </li>
283
+ <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/booking-com-img.png">
284
  <span>Booking.com</span>
285
  </li>
286
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/capterra-img.png">
287
  <span>Capterra</span>
288
  </li>
289
+ <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/cars-com-img.png">
290
  <span>Cars.com</span>
291
  </li>
292
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/cargurus-img.png">
352
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/houzz-img.png">
353
  <span>Houzz</span>
354
  </li>
355
+ <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/hotels-com-img.png">
356
  <span>Hotels.com</span>
357
  </li>
358
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/hungerstation-img.png">
370
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/jet-img.png">
371
  <span>Jet</span>
372
  </li>
373
+ <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/lawyers-com-img.png">
374
  <span>Lawyers.com</span>
375
  </li>
376
  <li><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/lendingtree-img.png">
admin_section/images/reviews_platform_icon/{booking-img.png → booking-com-img.png} RENAMED
File without changes
admin_section/images/reviews_platform_icon/{cars-img.png → cars-com-img.png} RENAMED
File without changes
admin_section/images/reviews_platform_icon/{hotels-img.png → hotels-com-img.png} RENAMED
File without changes
admin_section/images/reviews_platform_icon/{lawyers-img.png → lawyers-com-img.png} RENAMED
File without changes
admin_section/js/main-script.js CHANGED
@@ -261,7 +261,7 @@ jQuery(document).ready(function($){
261
  },
262
  close: function () {
263
  $.post (saswp_localize_data.ajax_url, {
264
- pointer: 'saswp_subscribe_pointer222',
265
  action: 'dismiss-wp-pointer'
266
  });
267
  },
@@ -278,7 +278,7 @@ jQuery(document).ready(function($){
278
  });
279
  jQuery ('#pointer-close').click (function () {
280
  $.post (saswp_localize_data.ajax_url, {
281
- pointer: 'saswp_subscribe_pointer222',
282
  action: 'dismiss-wp-pointer'
283
  });
284
  });
261
  },
262
  close: function () {
263
  $.post (saswp_localize_data.ajax_url, {
264
+ pointer: 'saswp_subscribe_pointer',
265
  action: 'dismiss-wp-pointer'
266
  });
267
  },
278
  });
279
  jQuery ('#pointer-close').click (function () {
280
  $.post (saswp_localize_data.ajax_url, {
281
+ pointer: 'saswp_subscribe_pointer',
282
  action: 'dismiss-wp-pointer'
283
  });
284
  });
admin_section/js/main-script.min.js CHANGED
@@ -1 +1,1892 @@
1
- var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[];function getParameterByName(e,s){s||(s=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(s);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_meta_list_html(e,s,a,t,i,n){var o=t;null==o&&(o=Object.keys(a)[0]);var p="";if(p+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+o+']">',jQuery.each(s,function(e,s){p+='<optgroup label="'+s.label+'">',jQuery.each(s["meta-list"],function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),p+="</optgroup>"}),p+="</select>",a){var c="<tr>";c+="<td>",c+='<select class="saswp-custom-fields-name">',jQuery.each(a,function(e,s){c+='<option value="'+e+'">'+s+"</option>"}),c+="</select>",c+="</td>",c+="<td>",c+=p,c+="</td>",c+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',c+="</tr>",jQuery(".saswp-custom-fields-table").append(c),null!=e&&e.removeClass("updating-message")}else jQuery(i).html(p),null!=e&&e.removeClass("updating-message")}function saswp_get_meta_list(e,s,a,t,i,n){saswp_meta_list[s]?saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,n):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(o){saswp_meta_list[s]=o[s],saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,n)},"json")}function saswp_get_post_specific_schema_fields(e,s,a,t,i,n){if(saswp_meta_fields[n]){var o=saswp_fields_html_generator(s,i,n,t,saswp_meta_fields[n]);o&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(o),saswp_schema_datepicker(),e.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a,console.log(saswp_meta_fields);var o=saswp_fields_html_generator(s,i,n,t,a);o&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(o),saswp_schema_datepicker(),e.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(e,s,a,t,i){var n="";return n+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+e+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',jQuery.each(i,function(t,i){var o="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(o="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+o+'" style="width:100%" type="'+i.type+'" id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']"></td></tr>';break;case"textarea":n+="<tr><th>"+i.label+'</th><td><textarea style="width: 100%" id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']" rows="5"></textarea></td></tr>';break;case"select":var p="";jQuery.each(i.options,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']">'+p+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+e+"_"+s+'" name="'+i.name+"_"+e+"_"+s+'"><input type="hidden" data-id="'+i.name+"_"+e+"_"+s+'_id" name="'+a+s+"["+e+"]["+i.name+'_id]" id="'+i.name+"_"+e+"_"+s+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+e+"_"+s+'_button" name="'+i.name+"_"+e+"_"+s+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+e+"_"+s+'"></div></fieldset></td></tr>'}}),n+="</table></div>"}jQuery(document).ready(function(e){if(saswp_localize_data.do_tour){var s,a="<h3>Thanks for using Structured Data!</h3>";a+="<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none}\t#afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/o1s7u3" data-id="258182" data-code="o1s7u3" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+='<div class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};s=function(){e(saswp_localize_data.displayID).pointer(t).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})}))},(t=e.extend(t,{buttons:function(e,s){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(){s.element.pointer("close")}),button_2.on("click",function(){s.element.pointer("close")}),button},close:function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})},show:function(e,s){s.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?e(window).bind("load.wp-pointers",s):s()}function i(s,a){var t=a.replace("-checkbox",""),i=e("#"+t).next("p").text();s.is(":checked")&&""!==i?e("#"+t).next("p").removeClass("saswp_hide"):1==e("#"+t).next("p").attr("data-id")?e("#"+t).next("p").text("This feature is only available in pro version"):e("#"+t).next("p").addClass("saswp_hide")}function n(){e(".saswp-item-reviewed").change(function(s){s.preventDefault();var a="";if(e("select#schema_type option:selected").val()&&(a=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(a=e(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===a){var t=e(this),i=e(this).val(),n=saswp_localize_data.post_id,o=e(t).attr("data-id"),p=e(t).attr("post-specific");e.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_id:o,post_specific:p,item:i,post_id:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){e(t).parent().parent().nextAll().remove(".saswp-review-tr"),e(t).parent().parent().after(s)})}}).change()}function o(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||e(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(e){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:e.term,action:"saswp_get_custom_meta_fields"}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:2})}function p(){var s="";e("select#schema_type option:selected").val()&&(s=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=e(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&e(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){e(this).is(":checked")?e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide()}).change()}function c(s,a,t,i,n,o,p){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_add_s_approved_reviews",site_id:a,token:t,limit:i,api_key:n,page:o,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){s.removeClass("updating-message"),console.log(l),l.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),++o<p?c(s,a,t,i,n,o):function(s){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_fetch_s_approved_reviews",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s.removeClass("updating-message"),console.log(e),e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"))},"json")}(s)},"json")}e(".saswp-tabs a").click(function(s){var a=e(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),e(this).siblings().removeClass("nav-tab-active"),e(this).addClass("nav-tab-active"),e(".form-wrap").find(".saswp-"+t).siblings().hide(),e(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),e(".saswp-schame-type-select").change(function(){e(".saswp-custom-fields-table").html("");var s=e(this).val();e(".saswp-option-table-class tr").each(function(s,a){s>0&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==s||"Article"==s||"Blogposting"==s||"NewsArticle"==s||"WebPage"==s?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==s&&(e(".saswp-option-table-class tr").eq(1).show(),e(".saswp-business-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),e(".select-post-type").val("show_globally").trigger("change")),"Service"==s&&(e(".saswp-service-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==s&&(e(".saswp-review-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),n()),"Product"==s&&(e(".saswp-product-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==s&&(e(".saswp-event-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"AudioObject"==s&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==s&&e(".saswp-softwareapplication-text-field-tr").show(),e(".saswp-schem-type-note").addClass("saswp_hide"),"qanda"==s&&e(".saswp-schem-type-note").removeClass("saswp_hide"),e(".saswp-job-posting-note").addClass("saswp_hide"),p()}),e("#saswp_business_type").change(function(){var s=e(this).val(),a=e(".saswp-schame-type-select").val();e(".saswp-option-table-class tr").each(function(s,a){s>1&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==a&&(e(".saswp-"+s+"-tr").show(),e(".saswp-business-text-field-tr").show(),e(".saswp-"+s+"-tr").find("select").attr("disabled",!1)),"Service"==a&&(e(".saswp-service-text-field-tr").show(),e(".saswp-service-text-field-tr").find("select").attr("disabled",!1)),"Product"==a&&(e(".saswp-product-text-field-tr").show(),e(".saswp-product-text-field-tr").find("select").attr("disabled",!1)),"AudioObject"==a&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==a&&e(".saswp-softwareapplication-text-field-tr").show(),"Review"==a&&(e(".saswp-review-text-field-tr").show(),e(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"Event"==a&&(e(".saswp-event-text-field-tr").show(),e(".saswp-event-text-field-tr").find("select").attr("disabled",!1)),p()}).change(),e(".saswp-checkbox").change(function(){var s=e(this).attr("id"),a=e(this);switch(s){case"saswp-the-seo-framework-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-seo-framework").val(1):e("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-seo-press").val(1):e("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-aiosp").val(1):e("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-smart-crawl").val(1):e("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-squirrly-seo").val(1):e("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-recipe-maker").val(1):e("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpsso-core-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wpsso-core").val(1):e("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":e(this).is(":checked")?e("#saswp-for-wordpress").val(1):e("#saswp-for-wordpress").val(0);break;case"saswp-facebook-enable-checkbox":e(this).is(":checked")?(e("#saswp-facebook-enable").val(1),e("#sd_facebook").show()):(e("#saswp-facebook-enable").val(0),e("#sd_facebook").hide());break;case"saswp-twitter-enable-checkbox":e(this).is(":checked")?(e("#saswp-twitter-enable").val(1),e("#sd_twitter").show()):(e("#saswp-twitter-enable").val(0),e("#sd_twitter").hide());break;case"saswp-google-plus-enable-checkbox":e(this).is(":checked")?(e("#saswp-google-plus-enable").val(1),e("#sd_google_plus").show()):(e("#saswp-google-plus-enable").val(0),e("#sd_google_plus").hide());break;case"saswp-instagram-enable-checkbox":e(this).is(":checked")?(e("#saswp-instagram-enable").val(1),e("#sd_instagram").show()):(e("#saswp-instagram-enable").val(0),e("#sd_instagram").hide());break;case"saswp-youtube-enable-checkbox":e(this).is(":checked")?(e("#sd_youtube").show(),e("#saswp-youtube-enable").val(1)):(e("#saswp-youtube-enable").val(0),e("#sd_youtube").hide());break;case"saswp-linkedin-enable-checkbox":e(this).is(":checked")?(e("#saswp-linkedin-enable").val(1),e("#sd_linkedin").show()):(e("#saswp-linkedin-enable").val(0),e("#sd_linkedin").hide());break;case"saswp-pinterest-enable-checkbox":e(this).is(":checked")?(e("#saswp-pinterest-enable").val(1),e("#sd_pinterest").show()):(e("#saswp-pinterest-enable").val(0),e("#sd_pinterest").hide());break;case"saswp-soundcloud-enable-checkbox":e(this).is(":checked")?(e("#saswp-soundcloud-enable").val(1),e("#sd_soundcloud").show()):(e("#saswp-soundcloud-enable").val(0),e("#sd_soundcloud").hide());break;case"saswp-tumblr-enable-checkbox":e(this).is(":checked")?(e("#saswp-tumblr-enable").val(1),e("#sd_tumblr").show()):(e("#saswp-tumblr-enable").val(0),e("#sd_tumblr").hide());break;case"saswp-for-amp-checkbox":e(this).is(":checked")?e("#saswp-for-amp").val(1):e("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":e(this).is(":checked")?(e("#saswp_kb_contact_1").val(1),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(e("#saswp_kb_contact_1").val(0),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":e(this).is(":checked")?(e("#saswp-logo-dimensions").val(1),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(e("#saswp-logo-dimensions").val(0),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":e(this).is(":checked")?(e("#saswp_archive_schema").val(1),e(".saswp_archive_schema_type_class").parent().parent().show()):(e("#saswp_archive_schema").val(0),e(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":e(this).is(":checked")?(e("#saswp_website_schema").val(1),e("#saswp_search_box_schema").parent().parent().show()):(e("#saswp_website_schema").val(0),e("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":e(this).is(":checked")?e("#saswp_search_box_schema").val(1):e("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":e(this).is(":checked")?e("#saswp_breadcrumb_schema").val(1):e("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":e(this).is(":checked")?e("#saswp_comments_schema").val(1):e("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":e(this).is(":checked")?e("#saswp-review-module").val(1):e("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-kk-star-raring").val(1):e("#saswp-kk-star-raring").val(0);break;case"saswp-woocommerce-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce").val(1):e("#saswp-woocommerce").val(0);break;case"saswp-extra-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-extra").val(1):e("#saswp-extra").val(0);break;case"saswp-dw-question-answer-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-dw-question-answer").val(1):e("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-job-manager").val(1):e("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-yoast").val(1):e("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-rankmath").val(1):e("#saswp-rankmath").val(0);break;case"saswp-tagyeem-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-tagyeem").val(1):e("#saswp-tagyeem").val(0);break;case"saswp-the-events-calendar-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-events-calendar").val(1):e("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-homeland").val(1):e("#saswp-homeland").val(0);break;case"saswp-realhomes-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-realhomes").val(1):e("#saswp-realhomes").val(0);break;case"saswp-woocommerce-booking-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking").val(1),e("#saswp-woocommerce-booking-main").val(1)):(e("#saswp-woocommerce-booking").val(0),e("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking-main").val(1),e("#saswp-woocommerce-booking").val(1)):(e("#saswp-woocommerce-booking-main").val(0),e("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce-membership").val(1):e("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":e(this).is(":checked")?e("#saswp-defragment").val(1):e("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-cooked").val(1):e("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-shopper-approved-review").val(1),e(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-shopper-approved-review").val(0),e(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":e(this).is(":checked")?(e("#saswp-google-review").val(1),e("#saswp-google-rv-free-checkbox").length?(e("#saswp-google-review-free").parent().parent().show(),e("#saswp-google-rv-free-checkbox").is(":checked")?e("#saswp_google_place_api_key").parent().parent().show():e("#saswp_google_place_api_key").parent().parent().hide()):e("#saswp_google_place_api_key").parent().parent().show(),e(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-google-review").val(0),e("#saswp_google_place_api_key").parent().parent().hide(),e(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),e("#saswp-google-rv-free-checkbox").length&&e("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":e("#saswp-google-review-checkbox").is(":checked")&&e(this).is(":checked")?(e("#saswp-google-review-free").val(1),e("#saswp_google_place_api_key").parent().parent().show()):(e("#saswp-google-review-free").val(0),e("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":e(this).is(":checked")?e("#saswp-markup-footer").val(1):e("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":e(this).is(":checked")?e("#saswp-pretty-print").val(1):e("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wppostratings-raring").val(1):e("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-bbpress").val(1):e("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":e(this).is(":checked")?e("#saswp-microdata-cleanup").val(1):e("#saswp-microdata-cleanup").val(0)}}).change(),e("#saswp_kb_type").change(function(){var s=e(this).val();e(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==s&&(e(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==s&&(e(".saswp_org_fields").parent().parent().addClass("saswp_hide"),e(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),e(document).on("click","input[data-id=media]",function(s){s.preventDefault();var a=e(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 s=i.state().get("selection").first().toJSON();e("#"+t).val(s.url),e("input[data-id='"+t+"_id']").val(s.id),e("input[data-id='"+t+"_height']").val(s.height),e("input[data-id='"+t+"_width']").val(s.width),e("input[data-id='"+t+"_thumbnail']").val(s.url),"sd_default_image_button"===a.attr("id")&&(e("#sd_default_image_width").val(s.width),e("#sd_default_image_height").val(s.height));var n="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&s.height<1200&&(n='<p class="saswp_warning">Image size is smaller than recommended size</p>'),e(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+s.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+n)}).open()}),e(document).on("click",".saswp_prev_close",function(s){s.preventDefault();var a=e(this).attr("data-id");console.log(a),e(this).parent().remove(),e("#"+a).val(""),e("input[data-id='"+a+"_id']").val(""),e("input[data-id='"+a+"_height']").val(""),e("input[data-id='"+a+"_width']").val(""),e("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(e("#sd_default_image_width").val(""),e("#sd_default_image_height").val(""))}),e(document).on("change",".saswp-schema-type-toggle",function(s){var a=e(this).attr("data-schema-id"),t=e(this).attr("data-post-id");if(e(this).is(":checked"))var i=1;else i=0;e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:i,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){},error:function(e){console.log(e)}})}),e(document).on("click",".saswp-reset-data",function(s){s.preventDefault(),1==confirm("Are you sure?")&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){setTimeout(function(){location.reload()},1e3)},error:function(e){console.log(e)}})}),e(document).on("click",".saswp_license_activation",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("license-status"),i=e(this).attr("add-on"),n=e("#"+i+"_addon_license_key").val();t&&i&&n?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:n,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){e("#"+i+"_addon_license_key_status").val(s.status),"active"==s.status?(e(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").css("color","green"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),e(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),e(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)):(e(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").css("color","red"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),e(".saswp_license_activation[add-on='"+i+"']").text("Activate"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)),a.removeClass("updating-message")},error:function(e){console.log(e)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),e(".saswp-send-query").on("click",function(s){s.preventDefault();var a=e("#saswp_query_message").val();""!=e.trim(a)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",message:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e(".saswp-query-success").show(),e(".saswp-query-error").hide()):(console.log("dd"),e(".saswp-query-success").hide(),e(".saswp-query-error").show())},error:function(e){console.log(e)}}):alert("Please enter the message")}),e(".saswp-import-plugins").on("click",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id");e.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?(e(a).parent().find(".saswp-imported-message").text(s.message),e(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(e(a).parent().find(".saswp-imported-message").addClass("saswp-error"),e(a).parent().find(".saswp-imported-message").text(s.message)),a.removeClass("updating-message")},"json")}),e(".saswp-feedback-no-thanks").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_no_thanks"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(".saswp-feedback-remindme").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_remindme"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(document).on("change",".saswp-local-business-type-select",function(s){s.preventDefault();var a=e(this),t=e(this).val();e.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){if("t"==s.status){e(".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+'">',e.each(s.result,function(e,s){i+='<option value="'+e+'">'+s+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else e(".saswp-local-business-name-select").parents("tr").remove()},"json")}),n(),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),e(document).on("click",".saswp-add-custom-schema",function(s){s.preventDefault(),e(".saswp-add-custom-schema-field").removeClass("saswp_hide"),e(this).hide()}),e(document).on("click",".saswp-delete-custom-schema",function(s){s.preventDefault(),e("#saswp_custom_schema_field").val(""),e(".saswp-add-custom-schema-field").addClass("saswp_hide"),e(".saswp-add-custom-schema").show()}),e(".saswp-modify_schema_post_enable").on("click",function(s){var a=e(this);a.addClass("updating-message"),s.preventDefault(),e.get(ajaxurl,{action:"saswp_modify_schema_post_enable",post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){a.remove(),e(".saswp-add-custom-schema-div").remove(),e("#post_specific .inside").append(s),a.removeClass("updating-message"),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),saswp_schema_datepicker(),p(),n()})}),saswp_schema_datepicker(),e(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"}),e(document).on("click",".saswp-add-more-item",function(s){s.preventDefault();var a=e(".saswp-review-item-list-table tr").length;console.log(a);e(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),e(document).on("click",".saswp-remove-review-item",function(s){s.preventDefault(),e(this).parent().parent("tr").remove()}),e(document).on("focusout",".saswp-review-item-tr input[type=number]",function(s){s.preventDefault();var a=0,t=e(".saswp-review-item-tr input[type=number]").length;e(".saswp-review-item-tr input[type=number]").each(function(s,t){""==e(t).val()?a+=parseFloat(0):a+=parseFloat(e(t).val())});var i=a/t;e("#saswp-review-item-over-all").val(i)}),e("#saswp-review-location").change(function(){var s=e(this).val();e(".saswp-review-shortcode").addClass("saswp_hide"),3==s&&e(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),e("#saswp-review-item-enable").change(function(){e(this).is(":checked")?e(".saswp-review-fields").show():e(".saswp-review-fields").hide()}).change(),e(document).on("click",".saswp-restore-post-schema",function(s){s.preventDefault();var a=e(this);if(a.addClass("updating-message"),e(".saswp-post-specific-schema-ids").val())var t=JSON.parse(e(".saswp-post-specific-schema-ids").val());e.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(e){"t"==e.status?setTimeout(function(){location.reload()},1e3):(alert(e.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),e(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(s){s.preventDefault();var a=e(this).attr("data-id");e(".saswp-post-specific-wrapper").hide(),e("#"+a).show(),e("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),e("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),e(this).addClass("selected"),e(this).parent().addClass("selected"),p()}),e("#saswp-global-tabs a:first").addClass("saswp-global-selected"),e(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?e(".saswp-global-container:eq(2)").show():e(".saswp-global-container:first").show(),e("#saswp-global-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-global-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-global-container").hide(),e("#"+s).show())}),e("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e(".saswp-tools-container:first").show(),e("#saswp-tools-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-tools-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e("#"+s).show())}),e("#saswp-review-tabs a:first").addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e(".saswp-review-container:first").show(),e("#saswp-review-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-review-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e("#"+s).show())}),e('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),e("#saswp_enable_custom_field").change(function(){e(this).is(":checked")?e(".saswp-custom-fields-div").show():e(".saswp-custom-fields-div").hide()}),e(document).on("change",".saswp-custom-fields-name",function(){var s="text",a=e(this).parent().parent("tr"),t=e(this).val();-1==t.indexOf("image")&&-1==t.indexOf("logo")||(s="image"),saswp_get_meta_list(null,s,null,e(this).parent().parent("tr").find("td:eq(1)"),t,a)}),e(document).on("click",".saswp-skip-button",function(s){s.preventDefault(),e(this).parent().parent().hide(),e.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){},"json")}),e(document).on("click",".saswp_add_schema_fields_on_fly",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id"),i=e(this).attr("fields_type"),n=e(this).attr("div_type"),o=e(".saswp-"+n+"-table-div").length,p=e(".saswp-"+n+"-table-div:nth-child("+o+")").attr("data-id");(p=++p)||(p=0),saswp_get_post_specific_schema_fields(a,p,i,n,t,i+"_")}),e(document).on("click",".saswp-table-close",function(){e(this).parent().remove()}),e(document).on("click",".saswp-rmv-modify_row",function(s){s.preventDefault(),e(this).parent().parent().remove()}),e(document).on("change",".saswp-custom-meta-list",function(){var s=e("select#schema_type option:selected").val(),a=e(this).val(),t=e(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),i="",n=s.toLowerCase()+"_"+t,p="saswp_fixed_image["+t+"]";"manual_text"==a?(i+='<td><input type="text" name="saswp_fixed_text['+t+']"></td>',i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"custom_field"==a?(i+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+t+']">',i+="</select></td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"fixed_image"==a?(i+="<td>",i+="<fieldset>",i+='<input data-id="media" style="width: 30%;" class="button" id="'+n+'_button" name="'+n+'_button" type="button" value="Upload" />',i+='<input type="hidden" data-id="'+n+'_height" class="upload-height" name="'+p+'[height]" id="'+n+'_height" value="">',i+='<input type="hidden" data-id="'+n+'_width" class="upload-width" name="'+p+'[width]" id="'+n+'_width" value="">',i+='<input type="hidden" data-id="'+n+'_thumbnail" class="upload-thumbnail" name="'+p+'[thumbnail]" id="'+n+'_thumbnail" value="">',i+='<div class="saswp_image_div_'+n+'">',i+="</div>",i+="</fieldset>",i+="</td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):(i+="<td></td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'),e(this).parent().parent("tr").find("td:gt(1)").remove(),e(this).parent().parent("tr").append(i),o()}),e(document).on("change",".saswp-item-reivewed-list",function(){e(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[]}),e(document).on("click",".saswp-add-custom-fields",function(){var s=e(this);s.addClass("updating-message");var a=e("select#schema_type option:selected").val(),t="";"Review"==a&&(t=e("select.saswp-item-reivewed-list option:selected").val());var i=e("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null):e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:i,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){saswp_meta_list_fields[a]=e,saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null)},error:function(e){console.log(e)}}))}),o(),p(),e('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),e(document).on("click",".saswp_coonect_google_place",function(){var s=e("#saswp_google_place_id").val(),a=e("#saswp_language_list").val(),t=e("#saswp_googel_api").val();""!=s&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:s,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){console.log(e.status)},error:function(e){console.log(e)}})}),"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&&e(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(s,a){e(this).next().val(s),console.log(s)}}),e(document).on("click",".saswp-add-g-location-btn",function(s){var a="";a=e("#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">',s.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>Place Id</strong></td><td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>Reviews</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&e(".saswp-g-reviews-settings-table").append(t)}),e(document).on("click",".saswp-fetch-s-approved-reviews",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e("#saswp_s_approved_site_id").val(),i=e("#saswp_s_approved_token").val(),n=e("#saswp_s_approved_reviews").val(),o=e("#reviews_addon_license_key").val(),p=1;n>100&&(p=n/100,n%100&&p++);t&&i&&o?c(a,t,i,n,o,0,p):(a.removeClass("updating-message"),alert("Fill the site id and token with valid api key"))}),e(document).on("click",".saswp-fetch-g-reviews",function(){var s=e(this),a="free";s.addClass("updating-message");var t=e(this).parent().parent().find(".saswp-g-location-field").val(),i=e(this).parent().parent().find(".saswp-g-blocks-field").val(),n=e("#saswp_google_place_api_key").val(),o=e("#reviews_addon_license_key").val(),p=e("#reviews_addon_license_key_status").val();if("premium"==(a=e("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),s.removeClass("updating-message"),!1;if(0!=i%10)return s.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),s.removeClass("updating-message"),!1}""!=t&&(o||n)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:p,reviews_api:o,location:t,blocks:i,g_api:n,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),s.removeClass("updating-message")},error:function(e){console.log(e)}}):(""==t&&alert("Please enter place id"),""==n&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),s.removeClass("updating-message"))}),e("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var s=e(this);s.parent().find(".saswp-phone-validation").remove();var a=e(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?s.parent().find(".saswp-phone-validation").remove():s.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var saswp_meta_list = [];
2
+ var saswp_meta_fields = [];
3
+ var saswp_meta_list_fields = [];
4
+
5
+ function saswp_enable_rating_review(){
6
+ var schema_type = "";
7
+ if(jQuery('select#schema_type option:selected').val()){
8
+ schema_type = jQuery('select#schema_type option:selected').val();
9
+ }
10
+ if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
11
+ schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
12
+ }
13
+
14
+ if(schema_type){
15
+ jQuery(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
16
+
17
+ if(jQuery(this).is(':checked')){
18
+ jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
19
+ }else{
20
+ jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
21
+ }
22
+
23
+ }).change();
24
+ }
25
+
26
+ }
27
+
28
+ function getParameterByName(name, url) {
29
+ if (!url){
30
+ url = window.location.href;
31
+ }
32
+ name = name.replace(/[\[\]]/g, "\\$&");
33
+ var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
34
+ results = regex.exec(url);
35
+ if (!results) return null;
36
+ if (!results[2]) return "";
37
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
38
+ }
39
+
40
+ function saswpCustomSelect2(){
41
+ if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
42
+
43
+ jQuery('.saswp-custom-fields-select2').select2({
44
+ ajax: {
45
+ type: "POST",
46
+ url: ajaxurl, // AJAX URL is predefined in WordPress admin
47
+ dataType: 'json',
48
+ delay: 250, // delay in ms while typing when to perform a AJAX search
49
+ data: function (params) {
50
+ return {
51
+ saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
52
+ q: params.term, // search query
53
+ action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
54
+ };
55
+ },
56
+ processResults: function( data ) {
57
+ return {
58
+ results: data
59
+ };
60
+ },
61
+ cache: true
62
+ },
63
+ minimumInputLength: 2 // the minimum of symbols to input before perform a search
64
+ });
65
+
66
+ }
67
+
68
+ }
69
+
70
+ function saswp_reviews_datepicker(){
71
+
72
+ jQuery('.saswp-reviews-datepicker-picker').datepicker({
73
+ dateFormat: "yy-mm-dd"
74
+ });
75
+ }
76
+
77
+ function saswp_schema_datepicker(){
78
+
79
+ jQuery('.saswp-datepicker-picker').datepicker({
80
+ dateFormat: "yy-mm-dd",
81
+ });
82
+
83
+ }
84
+
85
+ function saswpAddTimepicker(){
86
+ jQuery('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
87
+ }
88
+
89
+ function saswp_item_reviewed_call(){
90
+
91
+ jQuery(".saswp-item-reviewed").change(function(e){
92
+ e.preventDefault();
93
+ var schema_type ="";
94
+
95
+ if(jQuery('select#schema_type option:selected').val()){
96
+ schema_type = jQuery('select#schema_type option:selected').val();
97
+ }
98
+ if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
99
+ schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
100
+ }
101
+
102
+ if(schema_type === 'Review'){
103
+
104
+ var current = jQuery(this);
105
+ var item = jQuery(this).val();
106
+ var post_id = saswp_localize_data.post_id;
107
+ var schema_id = jQuery(current).attr('data-id');
108
+ var post_specific = jQuery(current).attr('post-specific');
109
+ jQuery.get(ajaxurl,
110
+ { action:"saswp_get_item_reviewed_fields",schema_id:schema_id, post_specific:post_specific ,item:item, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
111
+ function(response){
112
+
113
+ jQuery(current).parent().parent().nextAll().remove(".saswp-review-tr");
114
+ jQuery(current).parent().parent().after(response);
115
+
116
+ });
117
+
118
+ }
119
+
120
+
121
+ }).change();
122
+
123
+ }
124
+
125
+ function saswp_compatibliy_notes(current, id){
126
+
127
+ var plugin_name = id.replace('-checkbox','');
128
+ var text = jQuery("#"+plugin_name).next('p').text();
129
+
130
+ if (current.is(':checked') && text !=='') {
131
+ jQuery("#"+plugin_name).next('p').removeClass('saswp_hide');
132
+ }else{
133
+ if(jQuery("#"+plugin_name).next('p').attr('data-id') == 1){
134
+ jQuery("#"+plugin_name).next('p').text('This feature is only available in pro version');
135
+ }else{
136
+ jQuery("#"+plugin_name).next('p').addClass('saswp_hide');
137
+ }
138
+ }
139
+ }
140
+
141
+ function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
142
+
143
+ var field_name = f_name;
144
+ if(field_name == null){
145
+ field_name = Object.keys(fields)[0];
146
+ }
147
+ var re_html = '';
148
+ re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
149
+ jQuery.each(response, function(key,value){
150
+
151
+ re_html += '<optgroup label="'+value['label']+'">';
152
+
153
+ jQuery.each(value['meta-list'], function(key, value){
154
+ re_html += '<option value="'+key+'">'+value+'</option>';
155
+ });
156
+ re_html += '</optgroup>';
157
+
158
+ });
159
+ re_html += '</select>';
160
+
161
+ if(fields){
162
+ var html = '<tr>';
163
+ html += '<td>';
164
+ html += '<select class="saswp-custom-fields-name">';
165
+ jQuery.each(fields, function(key,value){
166
+ html += '<option value="'+key+'">'+value+'</option>';
167
+ });
168
+ html += '</select>';
169
+ html += '</td>';
170
+ html += '<td>';
171
+ html += re_html;
172
+ html += '</td>';
173
+ html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
174
+ html += '</tr>';
175
+ jQuery(".saswp-custom-fields-table").append(html);
176
+ if(current_fly != null){
177
+ current_fly.removeClass('updating-message');
178
+ }
179
+
180
+
181
+ }else{
182
+ jQuery(id).html(re_html);
183
+ if(current_fly != null){
184
+ current_fly.removeClass('updating-message');
185
+ }
186
+ }
187
+
188
+ }
189
+
190
+ function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
191
+ if (!saswp_meta_list[type]) {
192
+
193
+ jQuery.get(ajaxurl,
194
+ { action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
195
+ function(response){
196
+ saswp_meta_list[type] = response[type];
197
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
198
+
199
+ },'json');
200
+
201
+ }else{
202
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
203
+ }
204
+
205
+ }
206
+
207
+ function saswp_get_post_specific_schema_fields(current_fly, index, meta_name, div_type, schema_id, fields_type){
208
+
209
+ if (!saswp_meta_fields[fields_type]) {
210
+
211
+ jQuery.get(ajaxurl,
212
+ { action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
213
+ function(response){
214
+ saswp_meta_fields[fields_type] = response;
215
+ console.log(saswp_meta_fields);
216
+ var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
217
+
218
+ if(html){
219
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
220
+ saswp_schema_datepicker();
221
+ current_fly.removeClass('updating-message');
222
+ }
223
+
224
+ },'json');
225
+
226
+ }else{
227
+
228
+ var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
229
+
230
+ if(html){
231
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
232
+ saswp_schema_datepicker();
233
+ current_fly.removeClass('updating-message');
234
+ }
235
+
236
+ }
237
+
238
+
239
+ }
240
+
241
+ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
242
+
243
+ var html = '';
244
+
245
+ html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
246
+ + '<a class="saswp-table-close">X</a>'
247
+ + '<table class="form-table saswp-'+div_type+'-table">'
248
+
249
+ jQuery.each(schema_fields, function(eachindex, element){
250
+
251
+ var meta_class = "";
252
+ if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created' || element.name == 'saswp_product_reviews_created_date'){
253
+ meta_class = "saswp-datepicker-picker";
254
+ }
255
+
256
+ switch(element.type) {
257
+
258
+ case "number":
259
+ case "text":
260
+
261
+ html += '<tr>'
262
+ + '<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>'
263
+ + '</tr>';
264
+
265
+ break;
266
+
267
+ case "textarea":
268
+
269
+ html += '<tr>'
270
+ + '<th>'+element.label+'</th><td><textarea style="width: 100%" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']" rows="5"></textarea></td>'
271
+ + '</tr>';
272
+
273
+ break;
274
+ case "select":
275
+
276
+ var options_html = "";
277
+ jQuery.each(element.options, function(opt_index, opt_element){
278
+ options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
279
+ });
280
+
281
+ html += '<tr>'
282
+ + '<th>'+element.label+'</th>'
283
+ + '<td>'
284
+
285
+ + '<select id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']">'
286
+ + options_html
287
+ + '</select>'
288
+
289
+ + '</td>'
290
+ + '</tr>';
291
+
292
+ break;
293
+
294
+ case "media":
295
+
296
+ html += '<tr>'
297
+ + '<th>'+element.label+'</th>'
298
+ + '<td>'
299
+ + '<fieldset>'
300
+ + '<input style="width:80%" type="text" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+element.name+'_'+index+'_'+schema_id+'">'
301
+ + '<input type="hidden" data-id="'+element.name+'_'+index+'_'+schema_id+'_id" name="'+fields_type+schema_id+'['+index+']['+element.name+'_id]" id="'+element.name+'_'+index+'_'+schema_id+'_id">'
302
+ + '<input data-id="media" style="width: 19%" class="button" id="'+element.name+'_'+index+'_'+schema_id+'_button" name="'+element.name+'_'+index+'_'+schema_id+'_button" type="button" value="Upload">'
303
+ + '<div class="saswp_image_div_'+element.name+'_'+index+'_'+schema_id+'">'
304
+ + '</div>'
305
+ + '</fieldset>'
306
+ + '</td>'
307
+ + '</tr>';
308
+
309
+ break;
310
+ default:
311
+ // code block
312
+ }
313
+
314
+ });
315
+ html += '</table>'
316
+ + '</div>';
317
+
318
+ return html;
319
+
320
+ }
321
+
322
+ jQuery(document).ready(function($){
323
+
324
+ /* Google Reviews js starts here */
325
+
326
+ $(document).on("click", ".saswp-add-g-location-btn", function(e){
327
+
328
+ var blocks_field = '';
329
+
330
+ if($("#saswp_google_place_api_key").length){
331
+
332
+ blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">';
333
+ }else{
334
+ blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">';
335
+ }
336
+
337
+ e.preventDefault();
338
+ var html = '';
339
+ html += '<tr>'
340
+ + '<td style="width:12%;"><strong>Place Id</strong></td>'
341
+ + '<td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td>'
342
+ + '<td style="width:10%;"><strong>Reviews</strong></td>'
343
+ + '<td style="width:10%;">'+blocks_field+'</td>'
344
+ + '<td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td>'
345
+ + '<td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td>'
346
+ + '<td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td>'
347
+ + '</tr>';
348
+ if(html){
349
+ $(".saswp-g-reviews-settings-table").append(html);
350
+ }
351
+
352
+ });
353
+
354
+ $(document).on("click", '.saswp-fetch-g-reviews', function(){
355
+
356
+ var current = $(this);
357
+ var premium_status = 'free';
358
+ current.addClass('updating-message');
359
+
360
+ var location = $(this).parent().parent().find('.saswp-g-location-field').val();
361
+ var blocks = $(this).parent().parent().find('.saswp-g-blocks-field').val();
362
+ var g_api = $("#saswp_google_place_api_key").val();
363
+ var reviews_api = $("#reviews_addon_license_key").val();
364
+ var reviews_api_status = $("#reviews_addon_license_key_status").val();
365
+
366
+ if($("#saswp_google_place_api_key").length){
367
+ premium_status = 'free';
368
+ }else{
369
+ premium_status = 'premium';
370
+ }
371
+
372
+ if(premium_status == 'premium'){
373
+
374
+ if(blocks > 0){
375
+
376
+ var blocks_remainder = blocks % 10;
377
+
378
+ if(blocks_remainder != 0){
379
+
380
+ current.parent().parent().find('.saswp-rv-fetched-msg').text('Reviews count should be in step of 10');
381
+ current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
382
+ current.removeClass('updating-message');
383
+ return false;
384
+
385
+ }
386
+
387
+ }else{
388
+ alert('Blocks value is zero');
389
+ current.removeClass('updating-message');
390
+ return false;
391
+ }
392
+
393
+ }
394
+
395
+ if(location !='' && (reviews_api || g_api)){
396
+ $.ajax({
397
+ type: "POST",
398
+ url:ajaxurl,
399
+ dataType: "json",
400
+ data:{action:"saswp_fetch_google_reviews",reviews_api_status:reviews_api_status, reviews_api:reviews_api,location:location,blocks:blocks,g_api:g_api,premium_status:premium_status, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
401
+ success:function(response){
402
+ if(response['status'] =='t'){
403
+ current.parent().parent().find('.saswp-rv-fetched-msg').text('Success');
404
+ current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
405
+ }else{
406
+ current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
407
+ current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
408
+ }
409
+ current.removeClass('updating-message');
410
+ },
411
+ error: function(response){
412
+ console.log(response);
413
+ }
414
+ });
415
+ }else{
416
+ if(location ==''){
417
+ alert('Please enter place id');
418
+ }
419
+ if(g_api ==''){
420
+ alert('Please enter api key');
421
+ }
422
+ if(reviews_api ==''){
423
+ alert('Please enter reviews api key');
424
+ }
425
+ current.removeClass('updating-message');
426
+ }
427
+ });
428
+
429
+ /* Google Reviews js ends here */
430
+
431
+ /* Newletters js starts here */
432
+
433
+ if(saswp_localize_data.do_tour){
434
+
435
+ var content = '<h3>Thanks for using Structured Data!</h3>';
436
+ content += '<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>';
437
+ content += '<style type="text/css">';
438
+ content += '.wp-pointer-buttons{ padding:0; overflow: hidden; }';
439
+ content += '.wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }';
440
+ content += '</style>';
441
+ content += '<div id="afw_mc_embed_signup">';
442
+ content += '<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">';
443
+ content += '<div id="afw_mc_embed_signup_scroll">';
444
+ content += '<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">';
445
+ content += '<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">';
446
+ content += '<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">';
447
+ content += '<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">';
448
+ content += '<input type="hidden" name="ml-submit" value="1" />';
449
+ content += '</div>';
450
+ content += '<div id="mce-responses">';
451
+ content += '<div class="response" id="mce-error-response" style="display:none"></div>';
452
+ content += '<div class="response" id="mce-success-response" style="display:none"></div>';
453
+ content += '</div>';
454
+ content += '<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>';
455
+ content += '<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;">';
456
+ content += '</div>';
457
+ content += '</form>';
458
+ content += '</div>';
459
+
460
+ var setup;
461
+ var wp_pointers_tour_opts = {
462
+ content:content,
463
+ position:{
464
+ edge:"top",
465
+ align:"left"
466
+ }
467
+ };
468
+
469
+ wp_pointers_tour_opts = $.extend (wp_pointers_tour_opts, {
470
+ buttons: function (event, t) {
471
+ button= jQuery ('<a id="pointer-close" class="button-secondary">' + saswp_localize_data.button1 + '</a>');
472
+ button_2= jQuery ('#pointer-close.button');
473
+ button.bind ('click.pointer', function () {
474
+ t.element.pointer ('close');
475
+ });
476
+ button_2.on('click', function() {
477
+ t.element.pointer ('close');
478
+ } );
479
+ return button;
480
+ },
481
+ close: function () {
482
+ $.post (saswp_localize_data.ajax_url, {
483
+ pointer: 'saswp_subscribe_pointer',
484
+ action: 'dismiss-wp-pointer'
485
+ });
486
+ },
487
+ show: function(event, t){
488
+ t.pointer.css({'left':'170px', 'top':'160px'});
489
+ }
490
+ });
491
+ setup = function () {
492
+ $(saswp_localize_data.displayID).pointer(wp_pointers_tour_opts).pointer('open');
493
+ if (saswp_localize_data.button2) {
494
+ jQuery ('#pointer-close').after ('<a id="pointer-primary" class="button-primary">' + saswp_localize_data.button2+ '</a>');
495
+ jQuery ('#pointer-primary').click (function () {
496
+ saswp_localize_data.function_name;
497
+ });
498
+ jQuery ('#pointer-close').click (function () {
499
+ $.post (saswp_localize_data.ajax_url, {
500
+ pointer: 'saswp_subscribe_pointer',
501
+ action: 'dismiss-wp-pointer'
502
+ });
503
+ });
504
+ }
505
+ };
506
+ if (wp_pointers_tour_opts.position && wp_pointers_tour_opts.position.defer_loading) {
507
+ $(window).bind('load.wp-pointers', setup);
508
+ }
509
+ else {
510
+ setup ();
511
+ }
512
+
513
+ }
514
+
515
+ /* Newletters js ends here */
516
+
517
+
518
+ $(".saswp-tabs a").click(function(e){
519
+ var href = $(this).attr('href');
520
+ var currentTab = getParameterByName('tab',href);
521
+ if(!currentTab){
522
+ currentTab = "general";
523
+ }
524
+ $(this).siblings().removeClass("nav-tab-active");
525
+ $(this).addClass("nav-tab-active");
526
+ $(".form-wrap").find(".saswp-"+currentTab).siblings().hide();
527
+ $(".form-wrap .saswp-"+currentTab).show();
528
+ window.history.pushState("", "", href);
529
+ return false;
530
+ });
531
+
532
+ $(".saswp-schame-type-select").change(function(){
533
+ $(".saswp-custom-fields-table").html('');
534
+ var schematype = $(this).val();
535
+
536
+ $(".saswp-option-table-class tr").each(function(index,value){
537
+ if(index>0){
538
+ $(this).hide();
539
+ $(this).find('select').attr('disabled', true);
540
+ }
541
+ });
542
+ if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
543
+
544
+ $(".saswp-enable-speakable").parent().parent().show();
545
+ }else{
546
+ $(".saswp-enable-speakable").parent().parent().hide();
547
+ }
548
+
549
+ if(schematype == 'local_business'){
550
+ $(".saswp-option-table-class tr").eq(1).show();
551
+ $(".saswp-business-text-field-tr").show();
552
+ $(".saswp-option-table-class tr").find('select').attr('disabled', false);
553
+ // $("#saswp_dayofweek").attr('disabled', false);
554
+ $('.select-post-type').val('show_globally').trigger('change');
555
+ }
556
+ if(schematype == 'Service'){
557
+ $(".saswp-service-text-field-tr").show();
558
+ $(".saswp-option-table-class tr").find('select').attr('disabled', false);
559
+ }
560
+ if(schematype == 'Review'){
561
+ $(".saswp-review-text-field-tr").show();
562
+ $(".saswp-option-table-class tr").find('select').attr('disabled', false);
563
+ saswp_item_reviewed_call();
564
+ }
565
+ saswp_enable_rating_review();
566
+ });
567
+
568
+ $("#saswp_business_type").change(function(){
569
+ var businesstype = $ (this).val();
570
+ var schematype = $(".saswp-schame-type-select").val();
571
+
572
+ $(".saswp-option-table-class tr").each(function(index,value){
573
+ if(index>1){
574
+ $(this).hide();
575
+ $(this).find('select').attr('disabled', true);
576
+ }
577
+ });
578
+
579
+ if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
580
+
581
+ $(".saswp-enable-speakable").parent().parent().show();
582
+ }else{
583
+ $(".saswp-enable-speakable").parent().parent().hide();
584
+ }
585
+
586
+ if(schematype == 'local_business'){
587
+ $(".saswp-"+businesstype+'-tr').show();
588
+ $(".saswp-business-text-field-tr").show();
589
+ $(".saswp-"+businesstype+'-tr').find('select').attr('disabled', false);
590
+ }
591
+
592
+ if(schematype == 'Review'){
593
+ $(".saswp-review-text-field-tr").show();
594
+ $(".saswp-review-text-field-tr").find('select').attr('disabled', false);
595
+ }
596
+
597
+ saswp_enable_rating_review();
598
+ }).change();
599
+
600
+
601
+ //Settings page jquery starts here
602
+ $(".saswp-checkbox").change(function(){
603
+
604
+ var id = $(this).attr("id");
605
+ var current = $(this);
606
+
607
+
608
+ switch(id){
609
+
610
+ case 'saswp-the-seo-framework-checkbox':
611
+ saswp_compatibliy_notes(current, id);
612
+ if ($(this).is(':checked')) {
613
+ $("#saswp-the-seo-framework").val(1);
614
+ }else{
615
+ $("#saswp-the-seo-framework").val(0);
616
+ }
617
+ break;
618
+
619
+ case 'saswp-seo-press-checkbox':
620
+ saswp_compatibliy_notes(current, id);
621
+ if ($(this).is(':checked')) {
622
+ $("#saswp-seo-press").val(1);
623
+ }else{
624
+ $("#saswp-seo-press").val(0);
625
+ }
626
+ break;
627
+
628
+ case 'saswp-aiosp-checkbox':
629
+ saswp_compatibliy_notes(current, id);
630
+ if ($(this).is(':checked')) {
631
+ $("#saswp-aiosp").val(1);
632
+ }else{
633
+ $("#saswp-aiosp").val(0);
634
+ }
635
+ break;
636
+
637
+ case 'saswp-smart-crawl-checkbox':
638
+ saswp_compatibliy_notes(current, id);
639
+ if ($(this).is(':checked')) {
640
+ $("#saswp-smart-crawl").val(1);
641
+ }else{
642
+ $("#saswp-smart-crawl").val(0);
643
+ }
644
+ break;
645
+
646
+ case 'saswp-squirrly-seo-checkbox':
647
+ saswp_compatibliy_notes(current, id);
648
+ if ($(this).is(':checked')) {
649
+ $("#saswp-squirrly-seo").val(1);
650
+ }else{
651
+ $("#saswp-squirrly-seo").val(0);
652
+ }
653
+ break;
654
+
655
+ case 'saswp-wp-recipe-maker-checkbox':
656
+ saswp_compatibliy_notes(current, id);
657
+ if ($(this).is(':checked')) {
658
+ $("#saswp-wp-recipe-maker").val(1);
659
+ }else{
660
+ $("#saswp-wp-recipe-maker").val(0);
661
+ }
662
+ break;
663
+
664
+ case 'saswp-wpsso-core-checkbox':
665
+ saswp_compatibliy_notes(current, id);
666
+ if ($(this).is(':checked')) {
667
+ $("#saswp-wpsso-core").val(1);
668
+ }else{
669
+ $("#saswp-wpsso-core").val(0);
670
+ }
671
+ break;
672
+
673
+ case 'saswp-for-wordpress-checkbox':
674
+
675
+ if ($(this).is(':checked')) {
676
+ $("#saswp-for-wordpress").val(1);
677
+ }else{
678
+ $("#saswp-for-wordpress").val(0);
679
+ }
680
+ break;
681
+ case 'saswp-facebook-enable-checkbox':
682
+
683
+ if ($(this).is(':checked')) {
684
+ $("#saswp-facebook-enable").val(1);
685
+ $("#sd_facebook").show();
686
+ }else{
687
+ $("#saswp-facebook-enable").val(0);
688
+ $("#sd_facebook").hide();
689
+ }
690
+ break;
691
+ case 'saswp-twitter-enable-checkbox':
692
+
693
+ if ($(this).is(':checked')) {
694
+ $("#saswp-twitter-enable").val(1);
695
+ $("#sd_twitter").show();
696
+ }else{
697
+ $("#saswp-twitter-enable").val(0);
698
+ $("#sd_twitter").hide();
699
+ }
700
+ break;
701
+ case 'saswp-google-plus-enable-checkbox':
702
+
703
+ if ($(this).is(':checked')) {
704
+ $("#saswp-google-plus-enable").val(1);
705
+ $("#sd_google_plus").show();
706
+ }else{
707
+ $("#saswp-google-plus-enable").val(0);
708
+ $("#sd_google_plus").hide();
709
+ }
710
+ break;
711
+ case 'saswp-instagram-enable-checkbox':
712
+
713
+ if ($(this).is(':checked')) {
714
+ $("#saswp-instagram-enable").val(1);
715
+ $("#sd_instagram").show();
716
+ }else{
717
+ $("#saswp-instagram-enable").val(0);
718
+ $("#sd_instagram").hide();
719
+ }
720
+ break;
721
+ case 'saswp-youtube-enable-checkbox':
722
+
723
+ if ($(this).is(':checked')) {
724
+ $("#sd_youtube").show();
725
+ $("#saswp-youtube-enable").val(1);
726
+ }else{
727
+ $("#saswp-youtube-enable").val(0);
728
+ $("#sd_youtube").hide();
729
+ }
730
+ break;
731
+ case 'saswp-linkedin-enable-checkbox':
732
+
733
+ if ($(this).is(':checked')) {
734
+ $("#saswp-linkedin-enable").val(1);
735
+ $("#sd_linkedin").show();
736
+ }else{
737
+ $("#saswp-linkedin-enable").val(0);
738
+ $("#sd_linkedin").hide();
739
+ }
740
+ break;
741
+ case 'saswp-pinterest-enable-checkbox':
742
+
743
+ if ($(this).is(':checked')) {
744
+ $("#saswp-pinterest-enable").val(1);
745
+ $("#sd_pinterest").show();
746
+ }else{
747
+ $("#saswp-pinterest-enable").val(0);
748
+ $("#sd_pinterest").hide();
749
+ }
750
+ break;
751
+ case 'saswp-soundcloud-enable-checkbox':
752
+
753
+ if ($(this).is(':checked')) {
754
+ $("#saswp-soundcloud-enable").val(1);
755
+ $("#sd_soundcloud").show();
756
+ }else{
757
+ $("#saswp-soundcloud-enable").val(0);
758
+ $("#sd_soundcloud").hide();
759
+ }
760
+ break;
761
+ case 'saswp-tumblr-enable-checkbox':
762
+
763
+ if ($(this).is(':checked')) {
764
+ $("#saswp-tumblr-enable").val(1);
765
+ $("#sd_tumblr").show();
766
+ }else{
767
+ $("#saswp-tumblr-enable").val(0);
768
+ $("#sd_tumblr").hide();
769
+ }
770
+ break;
771
+ case 'saswp-yelp-enable-checkbox':
772
+
773
+ if ($(this).is(':checked')) {
774
+ $("#saswp-yelp-enable").val(1);
775
+ $("#sd_yelp").show();
776
+ }else{
777
+ $("#saswp-yelp-enable").val(0);
778
+ $("#sd_yelp").hide();
779
+ }
780
+ break;
781
+
782
+ case 'saswp-for-amp-checkbox':
783
+
784
+ if ($(this).is(':checked')) {
785
+ $("#saswp-for-amp").val(1);
786
+ }else{
787
+ $("#saswp-for-amp").val(0);
788
+ }
789
+ break;
790
+ case 'saswp_kb_contact_1_checkbox':
791
+
792
+ if ($(this).is(':checked')) {
793
+ $("#saswp_kb_contact_1").val(1);
794
+ $("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').removeClass("saswp-display-none");
795
+ }else{
796
+ $("#saswp_kb_contact_1").val(0);
797
+ $("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').addClass("saswp-display-none");
798
+ }
799
+ break;
800
+ case 'saswp-logo-dimensions-check':
801
+
802
+ if ($(this).is(':checked')) {
803
+ $("#saswp-logo-dimensions").val(1);
804
+ $("#saswp-logo-width, #saswp-logo-height").parent().parent('li').show();
805
+ }else{
806
+ $("#saswp-logo-dimensions").val(0);
807
+ $("#saswp-logo-width, #saswp-logo-height").parent().parent('li').hide();
808
+ }
809
+ break;
810
+ case 'saswp_archive_schema_checkbox':
811
+
812
+ if ($(this).is(':checked')) {
813
+ $("#saswp_archive_schema").val(1);
814
+ $(".saswp_archive_schema_type_class").parent().parent().show();
815
+ }else{
816
+ $("#saswp_archive_schema").val(0);
817
+ $(".saswp_archive_schema_type_class").parent().parent().hide();
818
+ }
819
+ break;
820
+
821
+ case 'saswp_website_schema_checkbox':
822
+
823
+ if ($(this).is(':checked')) {
824
+ $("#saswp_website_schema").val(1);
825
+ $("#saswp_search_box_schema").parent().parent().show();
826
+ }else{
827
+ $("#saswp_website_schema").val(0);
828
+ $("#saswp_search_box_schema").parent().parent().hide();
829
+ }
830
+ break;
831
+
832
+ case 'saswp_search_box_schema_checkbox':
833
+
834
+ if ($(this).is(':checked')) {
835
+ $("#saswp_search_box_schema").val(1);
836
+ }else{
837
+ $("#saswp_search_box_schema").val(0);
838
+ }
839
+ break;
840
+
841
+ case 'saswp_breadcrumb_schema_checkbox':
842
+
843
+ if ($(this).is(':checked')) {
844
+ $("#saswp_breadcrumb_schema").val(1);
845
+ }else{
846
+ $("#saswp_breadcrumb_schema").val(0);
847
+ }
848
+ break;
849
+
850
+ case 'saswp_comments_schema_checkbox':
851
+
852
+ if ($(this).is(':checked')) {
853
+ $("#saswp_comments_schema").val(1);
854
+ }else{
855
+ $("#saswp_comments_schema").val(0);
856
+ }
857
+ break;
858
+
859
+ case 'saswp-compativility-checkbox':
860
+
861
+ if ($(this).is(':checked')) {
862
+ $("#saswp-flexmlx-compativility").val(1);
863
+ }else{
864
+ $("#saswp-flexmlx-compativility").val(0);
865
+ }
866
+ break;
867
+
868
+ case 'saswp-review-module-checkbox':
869
+
870
+ if ($(this).is(':checked')) {
871
+ $("#saswp-review-module").val(1);
872
+ }else{
873
+ $("#saswp-review-module").val(0);
874
+ }
875
+ break;
876
+
877
+ case 'saswp-kk-star-raring-checkbox':
878
+
879
+ saswp_compatibliy_notes(current, id);
880
+ if ($(this).is(':checked')) {
881
+ $("#saswp-kk-star-raring").val(1);
882
+ }else{
883
+ $("#saswp-kk-star-raring").val(0);
884
+ }
885
+ break;
886
+ case 'saswp-woocommerce-checkbox':
887
+ saswp_compatibliy_notes(current, id);
888
+ if ($(this).is(':checked')) {
889
+ $("#saswp-woocommerce").val(1);
890
+ }else{
891
+ $("#saswp-woocommerce").val(0);
892
+ }
893
+ break;
894
+
895
+ case 'saswp-extra-checkbox':
896
+ saswp_compatibliy_notes(current, id);
897
+ if ($(this).is(':checked')) {
898
+ $("#saswp-extra").val(1);
899
+ }else{
900
+ $("#saswp-extra").val(0);
901
+ }
902
+ break;
903
+
904
+ case 'saswp-dw-question-answer-checkbox':
905
+ saswp_compatibliy_notes(current, id);
906
+ if ($(this).is(':checked')) {
907
+ $("#saswp-dw-question-answer").val(1);
908
+ }else{
909
+ $("#saswp-dw-question-answer").val(0);
910
+ }
911
+ break;
912
+
913
+ case 'saswp-wp-job-manager-checkbox':
914
+ saswp_compatibliy_notes(current, id);
915
+ if ($(this).is(':checked')) {
916
+ $("#saswp-wp-job-manager").val(1);
917
+ }else{
918
+ $("#saswp-wp-job-manager").val(0);
919
+ }
920
+ break;
921
+
922
+ case 'saswp-yoast-checkbox':
923
+ saswp_compatibliy_notes(current, id);
924
+ if ($(this).is(':checked')) {
925
+ $("#saswp-yoast").val(1);
926
+ }else{
927
+ $("#saswp-yoast").val(0);
928
+ }
929
+ break;
930
+
931
+ case 'saswp-rankmath-checkbox':
932
+ saswp_compatibliy_notes(current, id);
933
+ if ($(this).is(':checked')) {
934
+ $("#saswp-rankmath").val(1);
935
+ }else{
936
+ $("#saswp-rankmath").val(0);
937
+ }
938
+ break;
939
+
940
+ case 'saswp-tagyeem-checkbox':
941
+ saswp_compatibliy_notes(current, id);
942
+ if ($(this).is(':checked')) {
943
+ $("#saswp-tagyeem").val(1);
944
+ }else{
945
+ $("#saswp-tagyeem").val(0);
946
+ }
947
+ break;
948
+
949
+ case 'saswp-the-events-calendar-checkbox':
950
+ saswp_compatibliy_notes(current, id);
951
+ if ($(this).is(':checked')) {
952
+ $("#saswp-the-events-calendar").val(1);
953
+ }else{
954
+ $("#saswp-the-events-calendar").val(0);
955
+ }
956
+ break;
957
+
958
+ case 'saswp-homeland-checkbox':
959
+ saswp_compatibliy_notes(current, id);
960
+ if ($(this).is(':checked')) {
961
+ $("#saswp-homeland").val(1);
962
+ }else{
963
+ $("#saswp-homeland").val(0);
964
+ }
965
+ break;
966
+
967
+ case 'saswp-realhomes-checkbox':
968
+ saswp_compatibliy_notes(current, id);
969
+ if ($(this).is(':checked')) {
970
+ $("#saswp-realhomes").val(1);
971
+ }else{
972
+ $("#saswp-realhomes").val(0);
973
+ }
974
+ break;
975
+
976
+
977
+ case 'saswp-woocommerce-booking-checkbox':
978
+ saswp_compatibliy_notes(current, id);
979
+ if ($(this).is(':checked')) {
980
+ $("#saswp-woocommerce-booking").val(1);
981
+ $("#saswp-woocommerce-booking-main").val(1);
982
+ }else{
983
+ $("#saswp-woocommerce-booking").val(0);
984
+ $("#saswp-woocommerce-booking-main").val(0);
985
+ }
986
+ break;
987
+
988
+ case 'saswp-woocommerce-booking-main-checkbox':
989
+ saswp_compatibliy_notes(current, id);
990
+ if ($(this).is(':checked')) {
991
+ $("#saswp-woocommerce-booking-main").val(1);
992
+ $("#saswp-woocommerce-booking").val(1);
993
+ }else{
994
+ $("#saswp-woocommerce-booking-main").val(0);
995
+ $("#saswp-woocommerce-booking").val(0);
996
+ }
997
+ break;
998
+
999
+ case 'saswp-woocommerce-membership-checkbox':
1000
+ saswp_compatibliy_notes(current, id);
1001
+ if ($(this).is(':checked')) {
1002
+ $("#saswp-woocommerce-membership").val(1);
1003
+ }else{
1004
+ $("#saswp-woocommerce-membership").val(0);
1005
+ }
1006
+ break;
1007
+
1008
+ case 'saswp-defragment-checkbox':
1009
+
1010
+ if ($(this).is(':checked')) {
1011
+ $("#saswp-defragment").val(1);
1012
+ }else{
1013
+ $("#saswp-defragment").val(0);
1014
+ }
1015
+ break;
1016
+
1017
+ case 'saswp-cooked-checkbox':
1018
+ saswp_compatibliy_notes(current, id);
1019
+ if ($(this).is(':checked')) {
1020
+ $("#saswp-cooked").val(1);
1021
+ }else{
1022
+ $("#saswp-cooked").val(0);
1023
+ }
1024
+ break;
1025
+
1026
+ case 'saswp-flexmlx-compativility-checkbox':
1027
+ saswp_compatibliy_notes(current, id);
1028
+ if ($(this).is(':checked')) {
1029
+ $("#saswp-flexmlx-compativility").val(1);
1030
+ }else{
1031
+ $("#saswp-flexmlx-compativility").val(0);
1032
+ }
1033
+ break;
1034
+
1035
+ case 'saswp-shopper-approved-review-checkbox':
1036
+ saswp_compatibliy_notes(current, id);
1037
+ if ($(this).is(':checked')) {
1038
+ $("#saswp-shopper-approved-review").val(1);
1039
+ $(".saswp-s-reviews-settings-table").parent().parent().parent().show();
1040
+ }else{
1041
+ $("#saswp-shopper-approved-review").val(0);
1042
+ $(".saswp-s-reviews-settings-table").parent().parent().parent().hide();
1043
+ }
1044
+ break;
1045
+
1046
+ case 'saswp-google-review-checkbox':
1047
+
1048
+ if ($(this).is(':checked')) {
1049
+
1050
+ $("#saswp-google-review").val(1);
1051
+
1052
+ if($("#saswp-google-rv-free-checkbox").length){
1053
+
1054
+ $("#saswp-google-review-free").parent().parent().show();
1055
+
1056
+ if($("#saswp-google-rv-free-checkbox").is(":checked")){
1057
+ $("#saswp_google_place_api_key").parent().parent().show();
1058
+ }else{
1059
+ $("#saswp_google_place_api_key").parent().parent().hide();
1060
+ }
1061
+ }else{
1062
+ $("#saswp_google_place_api_key").parent().parent().show();
1063
+ }
1064
+ $(".saswp-g-reviews-settings-table").parent().parent().parent().show();
1065
+
1066
+ }else{
1067
+
1068
+ $("#saswp-google-review").val(0);
1069
+ $("#saswp_google_place_api_key").parent().parent().hide();
1070
+ $(".saswp-g-reviews-settings-table").parent().parent().parent().hide();
1071
+
1072
+ if($("#saswp-google-rv-free-checkbox").length){
1073
+ $("#saswp-google-review-free").parent().parent().hide();
1074
+
1075
+ }
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+ }
1082
+ break;
1083
+
1084
+ case 'saswp-google-rv-free-checkbox':
1085
+
1086
+ if($("#saswp-google-review-checkbox").is(":checked")){
1087
+ if ($(this).is(':checked')) {
1088
+ $("#saswp-google-review-free").val(1);
1089
+ $("#saswp_google_place_api_key").parent().parent().show();
1090
+ }else{
1091
+ $("#saswp-google-review-free").val(0);
1092
+ $("#saswp_google_place_api_key").parent().parent().hide();
1093
+ }
1094
+
1095
+ }else{
1096
+ $("#saswp-google-review-free").val(0);
1097
+ $("#saswp_google_place_api_key").parent().parent().hide();
1098
+ }
1099
+
1100
+
1101
+ break;
1102
+
1103
+
1104
+ case 'saswp-markup-footer-checkbox':
1105
+
1106
+ if ($(this).is(':checked')) {
1107
+ $("#saswp-markup-footer").val(1);
1108
+ }else{
1109
+ $("#saswp-markup-footer").val(0);
1110
+ }
1111
+ break;
1112
+
1113
+ case 'saswp-pretty-print-checkbox':
1114
+
1115
+ if ($(this).is(':checked')) {
1116
+ $("#saswp-pretty-print").val(1);
1117
+ }else{
1118
+ $("#saswp-pretty-print").val(0);
1119
+ }
1120
+ break;
1121
+
1122
+ case 'saswp-wppostratings-raring-checkbox':
1123
+ saswp_compatibliy_notes(current, id);
1124
+ if ($(this).is(':checked')) {
1125
+ $("#saswp-wppostratings-raring").val(1);
1126
+ }else{
1127
+ $("#saswp-wppostratings-raring").val(0);
1128
+ }
1129
+ break;
1130
+
1131
+ case 'saswp-bbpress-checkbox':
1132
+ saswp_compatibliy_notes(current, id);
1133
+ if ($(this).is(':checked')) {
1134
+ $("#saswp-bbpress").val(1);
1135
+ }else{
1136
+ $("#saswp-bbpress").val(0);
1137
+ }
1138
+ break;
1139
+
1140
+ case 'saswp-microdata-cleanup-checkbox':
1141
+
1142
+ if ($(this).is(':checked')) {
1143
+ $("#saswp-microdata-cleanup").val(1);
1144
+ }else{
1145
+ $("#saswp-microdata-cleanup").val(0);
1146
+ }
1147
+ break;
1148
+
1149
+
1150
+ default:
1151
+ break;
1152
+ }
1153
+
1154
+ }).change();
1155
+
1156
+ $("#saswp_kb_type").change(function(){
1157
+
1158
+ var datatype = $(this).val();
1159
+
1160
+ $(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass('saswp_hide');
1161
+ $(".saswp_kg_logo").parent().parent().parent().addClass('saswp_hide');
1162
+ $("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
1163
+
1164
+
1165
+ if(datatype == 'Organization'){
1166
+
1167
+ $(".saswp_org_fields").parent().parent().removeClass('saswp_hide');
1168
+ $(".saswp_person_fields").parent().parent().addClass('saswp_hide');
1169
+ $(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
1170
+ $("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
1171
+ }
1172
+ if(datatype == 'Person'){
1173
+
1174
+ $(".saswp_org_fields").parent().parent().addClass('saswp_hide');
1175
+ $(".saswp_person_fields").parent().parent().removeClass('saswp_hide');
1176
+ $(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
1177
+ $("#sd-person-image").parent().parent().parent().removeClass('saswp_hide');
1178
+ }
1179
+
1180
+ }).change();
1181
+
1182
+ $(document).on("click", "input[data-id=media]" ,function(e) { // Application Icon upload
1183
+ e.preventDefault();
1184
+ var current = $(this);
1185
+ var button = current;
1186
+ var id = button.attr('id').replace('_button', '');
1187
+ var saswpMediaUploader = wp.media({
1188
+ title: "Application Icon",
1189
+ button: {
1190
+ text: "Select Icon"
1191
+ },
1192
+ multiple: false, // Set this to true to allow multiple files to be selected
1193
+ library:{type : 'image'}
1194
+ })
1195
+ .on("select", function() {
1196
+ var attachment = saswpMediaUploader.state().get('selection').first().toJSON();
1197
+
1198
+ $("#"+id).val(attachment.url);
1199
+ $("input[data-id='"+id+"_id']").val(attachment.id);
1200
+ $("input[data-id='"+id+"_height']").val(attachment.height);
1201
+ $("input[data-id='"+id+"_width']").val(attachment.width);
1202
+ $("input[data-id='"+id+"_thumbnail']").val(attachment.url);
1203
+
1204
+ if(current.attr('id') === 'sd_default_image_button'){
1205
+
1206
+ $("#sd_default_image_width").val(attachment.width);
1207
+ $("#sd_default_image_height").val(attachment.height);
1208
+
1209
+ }
1210
+ var smaller_img_notice = '';
1211
+ if("saswp_image_div_"+id == 'saswp_image_div_sd_default_image' && attachment.height < 1200){
1212
+ smaller_img_notice = '<p class="saswp_warning">Image size is smaller than recommended size</p>';
1213
+ }
1214
+
1215
+ $(".saswp_image_div_"+id).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+attachment.url+'"/><a data-id="'+id+'" href="#" class="saswp_prev_close">X</a></div>'+smaller_img_notice);
1216
+
1217
+ })
1218
+ .open();
1219
+ });
1220
+
1221
+ $(document).on("click", ".saswp_prev_close", function(e){
1222
+ e.preventDefault();
1223
+
1224
+ var id = $(this).attr('data-id');
1225
+ console.log(id);
1226
+ $(this).parent().remove();
1227
+ $("#"+id).val('');
1228
+ $("input[data-id='"+id+"_id']").val('');
1229
+ $("input[data-id='"+id+"_height']").val('');
1230
+ $("input[data-id='"+id+"_width']").val('');
1231
+ $("input[data-id='"+id+"_thumbnail']").val('');
1232
+
1233
+ if(id === 'sd_default_image'){
1234
+
1235
+ $("#sd_default_image_width").val('');
1236
+ $("#sd_default_image_height").val('');
1237
+
1238
+ }
1239
+
1240
+
1241
+ });
1242
+
1243
+ //Settings page jquery ends here
1244
+
1245
+ $(document).on("change",".saswp-schema-type-toggle", function(e){
1246
+ var schema_id = $(this).attr("data-schema-id");
1247
+ var post_id = $(this).attr("data-post-id");
1248
+ if($(this).is(':checked')){
1249
+ var status = 1;
1250
+ }else{
1251
+ var status = 0;
1252
+ }
1253
+ $.ajax({
1254
+ type: "POST",
1255
+ url:ajaxurl,
1256
+ dataType: "json",
1257
+ data:{action:"saswp_enable_disable_schema_on_post",status:status, schema_id:schema_id, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1258
+ success:function(response){
1259
+ },
1260
+ error: function(response){
1261
+ console.log(response);
1262
+ }
1263
+ });
1264
+
1265
+ });
1266
+
1267
+
1268
+ $(document).on("click",".saswp-reset-data", function(e){
1269
+ e.preventDefault();
1270
+
1271
+ var saswp_confirm = confirm("Are you sure?");
1272
+
1273
+ if(saswp_confirm == true){
1274
+
1275
+ $.ajax({
1276
+ type: "POST",
1277
+ url:ajaxurl,
1278
+ dataType: "json",
1279
+ data:{action:"saswp_reset_all_settings", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1280
+ success:function(response){
1281
+ setTimeout(function(){ location.reload(); }, 1000);
1282
+ },
1283
+ error: function(response){
1284
+ console.log(response);
1285
+ }
1286
+ });
1287
+
1288
+ }
1289
+
1290
+
1291
+ });
1292
+
1293
+ //Licensing jquery starts here
1294
+ $(document).on("click",".saswp_license_activation", function(e){
1295
+ e.preventDefault();
1296
+ var current = $(this);
1297
+ current.addClass('updating-message');
1298
+ var license_status = $(this).attr('license-status');
1299
+ var add_on = $(this).attr('add-on');
1300
+ var license_key = $("#"+add_on+"_addon_license_key").val();
1301
+
1302
+ if(license_status && add_on && license_key){
1303
+
1304
+ $.ajax({
1305
+ type: "POST",
1306
+ url:ajaxurl,
1307
+ dataType: "json",
1308
+ data:{action:"saswp_license_status_check",license_key:license_key,license_status:license_status, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1309
+ success:function(response){
1310
+
1311
+ $("#"+add_on+"_addon_license_key_status").val(response['status']);
1312
+
1313
+ if(response['status'] =='active'){
1314
+ $(".saswp-"+add_on+"-dashicons").addClass('dashicons-yes');
1315
+ $(".saswp-"+add_on+"-dashicons").removeClass('dashicons-no-alt');
1316
+ $(".saswp-"+add_on+"-dashicons").css("color", "green");
1317
+
1318
+ $(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "inactive");
1319
+ $(".saswp_license_activation[add-on='" + add_on + "']").text("Deactivate");
1320
+
1321
+ $(".saswp_license_status_msg[add-on='" + add_on + "']").text('Activated');
1322
+
1323
+ $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "green");
1324
+ $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
1325
+
1326
+ }else{
1327
+
1328
+ $(".saswp-"+add_on+"-dashicons").addClass('dashicons-no-alt');
1329
+ $(".saswp-"+add_on+"-dashicons").removeClass('dashicons-yes');
1330
+ $(".saswp-"+add_on+"-dashicons").css("color", "red");
1331
+
1332
+ $(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "active");
1333
+ $(".saswp_license_activation[add-on='" + add_on + "']").text("Activate");
1334
+
1335
+ $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "red");
1336
+ $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
1337
+ }
1338
+ current.removeClass('updating-message');
1339
+ },
1340
+ error: function(response){
1341
+ console.log(response);
1342
+ }
1343
+ });
1344
+
1345
+ }else{
1346
+ alert('Please enter value license key');
1347
+ current.removeClass('updating-message');
1348
+ }
1349
+
1350
+ });
1351
+ //Licensing jquery ends here
1352
+ //query form send starts here
1353
+
1354
+ $(".saswp-send-query").on("click", function(e){
1355
+ e.preventDefault();
1356
+ var message = $("#saswp_query_message").val();
1357
+ if($.trim(message) !=''){
1358
+ $.ajax({
1359
+ type: "POST",
1360
+ url:ajaxurl,
1361
+ dataType: "json",
1362
+ data:{action:"saswp_send_query_message", message:message, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1363
+ success:function(response){
1364
+ if(response['status'] =='t'){
1365
+ $(".saswp-query-success").show();
1366
+ $(".saswp-query-error").hide();
1367
+ }else{
1368
+ console.log('dd');
1369
+ $(".saswp-query-success").hide();
1370
+ $(".saswp-query-error").show();
1371
+ }
1372
+ },
1373
+ error: function(response){
1374
+ console.log(response);
1375
+ }
1376
+ });
1377
+ }else{
1378
+ alert('Please enter the message');
1379
+ }
1380
+
1381
+ });
1382
+
1383
+ //Importer from schema plugin starts here
1384
+
1385
+ $(".saswp-import-plugins").on("click", function(e){
1386
+ e.preventDefault();
1387
+ var current_selection = $(this);
1388
+ current_selection.addClass('updating-message');
1389
+ var plugin_name = $(this).attr('data-id');
1390
+ $.get(ajaxurl,
1391
+ { action:"saswp_import_plugin_data", plugin_name:plugin_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1392
+ function(response){
1393
+ if(response['status'] =='t'){
1394
+ $(current_selection).parent().find(".saswp-imported-message").text(response['message']);
1395
+ $(current_selection).parent().find(".saswp-imported-message").removeClass('saswp-error');
1396
+ setTimeout(function(){ location.reload(); }, 2000);
1397
+ }else{
1398
+ $(current_selection).parent().find(".saswp-imported-message").addClass('saswp-error');
1399
+ $(current_selection).parent().find(".saswp-imported-message").text(response['message']);
1400
+ }
1401
+ current_selection.removeClass('updating-message');
1402
+ },'json');
1403
+ });
1404
+
1405
+
1406
+ $(".saswp-feedback-no-thanks").on("click", function(e){
1407
+ e.preventDefault();
1408
+ $.get(ajaxurl,
1409
+ { action:"saswp_feeback_no_thanks"},
1410
+ function(response){
1411
+ if(response['status'] =='t'){
1412
+ $(".saswp-feedback-notice").hide();
1413
+ }
1414
+ },'json');
1415
+ });
1416
+
1417
+ $(".saswp-feedback-remindme").on("click", function(e){
1418
+ e.preventDefault();
1419
+ $.get(ajaxurl,
1420
+ { action:"saswp_feeback_remindme"},
1421
+ function(response){
1422
+ if(response['status'] =='t'){
1423
+ $(".saswp-feedback-notice").hide();
1424
+ }
1425
+ },'json');
1426
+ });
1427
+
1428
+ $(document).on("change",'.saswp-local-business-type-select', function(e){
1429
+ e.preventDefault();
1430
+ var current = $(this);
1431
+ var business_type = $(this).val();
1432
+ $.get(ajaxurl,
1433
+ { action:"saswp_get_sub_business_ajax", business_type:business_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1434
+ function(response){
1435
+
1436
+ if(response['status'] =='t'){
1437
+ $(".saswp-local-business-name-select").parents('tr').remove();
1438
+ var schema_id = current.parents('.saswp-post-specific-wrapper').attr('data-id');
1439
+ var html ='<tr><th><label for="saswp_business_name_'+schema_id+'">Sub Business Type</label></th>';
1440
+ html +='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+schema_id+'" name="saswp_business_name_'+schema_id+'">';
1441
+ $.each(response['result'], function(index, element){
1442
+ html +='<option value="'+index+'">'+element+'</option>';
1443
+ });
1444
+ html +='</select></td>';
1445
+ html +='</tr>';
1446
+ current.parents('.form-table tr:first').after(html);
1447
+ }else{
1448
+ $(".saswp-local-business-name-select").parents('tr').remove();
1449
+ }
1450
+ },'json');
1451
+ });
1452
+
1453
+ saswp_item_reviewed_call();
1454
+
1455
+ $('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
1456
+
1457
+ $(document).on("click",".saswp-add-custom-schema", function(e){
1458
+
1459
+ e.preventDefault();
1460
+
1461
+ $(".saswp-add-custom-schema-field").removeClass('saswp_hide');
1462
+ $(this).hide();
1463
+
1464
+ });
1465
+
1466
+ $(document).on("click", ".saswp-delete-custom-schema", function(e){
1467
+
1468
+ e.preventDefault();
1469
+
1470
+ $("#saswp_custom_schema_field").val('');
1471
+ $(".saswp-add-custom-schema-field").addClass('saswp_hide');
1472
+ $(".saswp-add-custom-schema").show();
1473
+
1474
+ });
1475
+
1476
+ $(".saswp-modify_schema_post_enable").on("click", function(e){
1477
+ var current = $(this);
1478
+ current.addClass('updating-message');
1479
+ e.preventDefault();
1480
+ $.get(ajaxurl,
1481
+ { action:"saswp_modify_schema_post_enable", post_id: saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1482
+ function(response){
1483
+ current.remove();
1484
+ $(".saswp-add-custom-schema-div").remove();
1485
+ $("#post_specific .inside").append(response);
1486
+ current.removeClass('updating-message');
1487
+ saswpAddTimepicker();
1488
+ saswp_schema_datepicker();
1489
+ saswp_enable_rating_review();
1490
+ saswp_item_reviewed_call();
1491
+ });
1492
+
1493
+ });
1494
+ saswp_schema_datepicker();
1495
+
1496
+ saswp_reviews_datepicker();
1497
+
1498
+ //Review js starts here
1499
+
1500
+ $(document).on("click", ".saswp-add-more-item",function(e){
1501
+ e.preventDefault();
1502
+ var rows = $('.saswp-review-item-list-table tr').length;
1503
+ console.log(rows);
1504
+ var html = '<tr class="saswp-review-item-tr">';
1505
+ html += '<td>Review Item Feature</td>';
1506
+ html += '<td><input type="text" name="saswp-review-item-feature[]"></td>';
1507
+ html += '<td>Rating</td>';
1508
+ html += '<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>';
1509
+ html += '<td><a type="button" class="saswp-remove-review-item button">x</a></td>';
1510
+ html += '</tr>';
1511
+ $(".saswp-review-item-list-table").append(html);
1512
+
1513
+ });
1514
+
1515
+ $(document).on("click", ".saswp-remove-review-item", function(e){
1516
+ e.preventDefault();
1517
+ $(this).parent().parent('tr').remove();
1518
+ });
1519
+
1520
+ $(document).on("focusout", ".saswp-review-item-tr input[type=number]", function(e){
1521
+ e.preventDefault();
1522
+ var total_rating = 0;
1523
+ var element_count = $(".saswp-review-item-tr input[type=number]").length;
1524
+ $(".saswp-review-item-tr input[type=number]").each(function(index, element){
1525
+ if($(element).val() ==''){
1526
+ total_rating += parseFloat(0);
1527
+ }else{
1528
+ total_rating += parseFloat($(element).val());
1529
+ }
1530
+
1531
+ });
1532
+ var over_all_rating = total_rating / element_count;
1533
+ $("#saswp-review-item-over-all").val(over_all_rating);
1534
+ });
1535
+
1536
+ $("#saswp-review-location").change(function(){
1537
+ var location = $(this).val();
1538
+ $(".saswp-review-shortcode").addClass('saswp_hide');
1539
+ if(location == 3){
1540
+ $(".saswp-review-shortcode").removeClass('saswp_hide');
1541
+ }
1542
+ }).change();
1543
+
1544
+ $("#saswp-review-item-enable").change(function(){
1545
+ if ($(this).is(':checked')) {
1546
+ $(".saswp-review-fields").show();
1547
+ }else{
1548
+ $(".saswp-review-fields").hide();
1549
+ }
1550
+ }).change();
1551
+
1552
+ $(document).on("click", ".saswp-restore-post-schema", function(e){
1553
+ e.preventDefault();
1554
+ var current = $(this);
1555
+ current.addClass('updating-message');
1556
+
1557
+ if($(".saswp-post-specific-schema-ids").val()){
1558
+ var schema_ids = JSON.parse($(".saswp-post-specific-schema-ids").val());
1559
+ }
1560
+
1561
+ $.post(ajaxurl,
1562
+ { action:"saswp_restore_schema", schema_ids:schema_ids,post_id: saswp_localize_data.post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1563
+ function(response){
1564
+ if(response['status'] =='t'){
1565
+ setTimeout(function(){ location.reload(); }, 1000);
1566
+ }else{
1567
+ alert(response['msg']);
1568
+ setTimeout(function(){ location.reload(); }, 1000);
1569
+ }
1570
+ current.removeClass('updating-message');
1571
+ },'json');
1572
+ });
1573
+
1574
+ //Review js ends here
1575
+
1576
+ $(document).on("click","div.saswp-tab ul.saswp-tab-nav a", function(e){
1577
+ e.preventDefault();
1578
+ var attr = $(this).attr('data-id');
1579
+ $(".saswp-post-specific-wrapper").hide();
1580
+ $("#"+attr).show();
1581
+ $('div.saswp-tab ul.saswp-tab-nav a').removeClass('selected');
1582
+ $('div.saswp-tab ul.saswp-tab-nav li').removeClass('selected');
1583
+ $(this).addClass('selected');
1584
+ $(this).parent().addClass('selected');
1585
+ saswp_enable_rating_review();
1586
+ });
1587
+
1588
+
1589
+ $('#saswp-global-tabs a:first').addClass('saswp-global-selected');
1590
+ $('.saswp-global-container').hide();
1591
+
1592
+ var hash = window.location.hash;
1593
+
1594
+ if(hash == '#saswp-default-container'){
1595
+ $('.saswp-global-container:eq(2)').show();
1596
+ }else{
1597
+ $('.saswp-global-container:first').show();
1598
+ }
1599
+
1600
+
1601
+
1602
+ $('#saswp-global-tabs a').click(function(){
1603
+ var t = $(this).attr('data-id');
1604
+
1605
+ if(!$(this).hasClass('saswp-global-selected')){
1606
+ $('#saswp-global-tabs a').removeClass('saswp-global-selected');
1607
+ $(this).addClass('saswp-global-selected');
1608
+
1609
+ $('.saswp-global-container').hide();
1610
+ $('#'+t).show();
1611
+ }
1612
+ });
1613
+
1614
+
1615
+ $('#saswp-tools-tabs a:first').addClass('saswp-global-selected');
1616
+ $('.saswp-tools-container').hide();
1617
+ $('.saswp-tools-container:first').show();
1618
+
1619
+ $('#saswp-tools-tabs a').click(function(){
1620
+ var t = $(this).attr('data-id');
1621
+
1622
+ if(!$(this).hasClass('saswp-global-selected')){
1623
+ $('#saswp-tools-tabs a').removeClass('saswp-global-selected');
1624
+ $(this).addClass('saswp-global-selected');
1625
+
1626
+ $('.saswp-tools-container').hide();
1627
+ $('#'+t).show();
1628
+ }
1629
+ });
1630
+
1631
+
1632
+ $('#saswp-review-tabs a:first').addClass('saswp-global-selected');
1633
+ $('.saswp-review-container').hide();
1634
+ $('.saswp-review-container:first').show();
1635
+
1636
+ $('#saswp-review-tabs a').click(function(){
1637
+ var t = $(this).attr('data-id');
1638
+
1639
+ if(!$(this).hasClass('saswp-global-selected')){
1640
+ $('#saswp-review-tabs a').removeClass('saswp-global-selected');
1641
+ $(this).addClass('saswp-global-selected');
1642
+
1643
+ $('.saswp-review-container').hide();
1644
+ $('#'+t).show();
1645
+ }
1646
+ });
1647
+
1648
+
1649
+ //Importer from schema plugin ends here
1650
+
1651
+ //custom fields modify schema starts here
1652
+
1653
+ //Changing the url of add new schema type
1654
+ $('a[href="'+saswp_localize_data.new_url_selector+'"]').attr( 'href', saswp_localize_data.new_url_href);
1655
+
1656
+
1657
+ $("#saswp_enable_custom_field").change(function(){
1658
+ if ($(this).is(':checked')) {
1659
+ $(".saswp-custom-fields-div").show();
1660
+ }else{
1661
+ $(".saswp-custom-fields-div").hide();
1662
+ }
1663
+ });
1664
+
1665
+ $(document).on('change','.saswp-custom-fields-name',function(){
1666
+
1667
+ var type = 'text';
1668
+ var tr = $(this).parent().parent('tr');
1669
+ var fields_name = $(this).val();
1670
+ var str2 = "image";
1671
+ var str3 = "logo";
1672
+ if((fields_name.indexOf(str2) != -1)|| (fields_name.indexOf(str3) != -1)){
1673
+ type = 'image';
1674
+ }
1675
+ var id = $(this).parent().parent('tr').find("td:eq(1)");
1676
+ saswp_get_meta_list(null,type, null, id, fields_name, tr);
1677
+
1678
+ });
1679
+
1680
+ $(document).on("click", '.saswp-skip-button', function(e){
1681
+ e.preventDefault();
1682
+ $(this).parent().parent().hide();
1683
+
1684
+ $.post(ajaxurl,
1685
+ { action:"saswp_skip_wizard", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1686
+ function(response){
1687
+
1688
+ },'json');
1689
+
1690
+ });
1691
+
1692
+ $(document).on("click", ".saswp_add_schema_fields_on_fly", function(e){
1693
+ e.preventDefault();
1694
+
1695
+ var current_fly = $(this);
1696
+
1697
+ current_fly.addClass('updating-message');
1698
+
1699
+ var schema_id = $(this).attr('data-id');
1700
+ var fields_type = $(this).attr('fields_type');
1701
+ var div_type = $(this).attr('div_type');
1702
+
1703
+ var count = $(".saswp-"+div_type+"-table-div").length;
1704
+ var index = $( ".saswp-"+div_type+"-table-div:nth-child("+count+")" ).attr('data-id');
1705
+ index = ++index;
1706
+
1707
+ if(!index){
1708
+ index = 0;
1709
+ }
1710
+
1711
+ saswp_get_post_specific_schema_fields(current_fly, index, fields_type, div_type, schema_id, fields_type+'_');
1712
+
1713
+ });
1714
+
1715
+ $(document).on("click", ".saswp-table-close", function(){
1716
+ $(this).parent().remove();
1717
+ });
1718
+
1719
+ //How to schema js ends here
1720
+
1721
+ $(document).on("click", ".saswp-rmv-modify_row", function(e){
1722
+ e.preventDefault();
1723
+ $(this).parent().parent().remove();
1724
+ });
1725
+
1726
+ $(document).on("change",".saswp-custom-meta-list", function(){
1727
+
1728
+ var schema_type = $('select#schema_type option:selected').val();
1729
+ var meta_val = $(this).val();
1730
+ var field_name = $(this).parent().parent('tr').find(".saswp-custom-fields-name").val();
1731
+ var html = '';
1732
+ var el_id = schema_type.toLowerCase()+'_'+field_name;
1733
+ var media_name = 'saswp_fixed_image['+field_name+']';
1734
+ if(meta_val == 'manual_text'){
1735
+ html += '<td><input type="text" name="saswp_fixed_text['+field_name+']"></td>';
1736
+ html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
1737
+
1738
+ }else if(meta_val == 'custom_field'){
1739
+ html += '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+field_name+']">';
1740
+ html += '</select></td>';
1741
+ html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
1742
+ }else if(meta_val == 'fixed_image'){
1743
+ html += '<td>';
1744
+ html += '<fieldset>';
1745
+ html += '<input data-id="media" style="width: 30%;" class="button" id="'+el_id+'_button" name="'+el_id+'_button" type="button" value="Upload" />';
1746
+ html += '<input type="hidden" data-id="'+el_id+'_height" class="upload-height" name="'+media_name+'[height]" id="'+el_id+'_height" value="">';
1747
+ html += '<input type="hidden" data-id="'+el_id+'_width" class="upload-width" name="'+media_name+'[width]" id="'+el_id+'_width" value="">';
1748
+ html += '<input type="hidden" data-id="'+el_id+'_thumbnail" class="upload-thumbnail" name="'+media_name+'[thumbnail]" id="'+el_id+'_thumbnail" value="">';
1749
+ html += '<div class="saswp_image_div_'+el_id+'">';
1750
+ html += '</div>';
1751
+ html += '</fieldset>';
1752
+ html += '</td>';
1753
+ html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
1754
+ }
1755
+ else{
1756
+ html += '<td></td>';
1757
+ html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
1758
+ }
1759
+
1760
+ $(this).parent().parent('tr').find("td:gt(1)").remove();
1761
+ $(this).parent().parent('tr').append(html);
1762
+ saswpCustomSelect2();
1763
+
1764
+ });
1765
+
1766
+ $(document).on("change", ".saswp-item-reivewed-list", function(){
1767
+
1768
+ $(".saswp-custom-fields-table").html('');
1769
+ saswp_meta_list_fields = [];
1770
+
1771
+ });
1772
+
1773
+ $(document).on("click", '.saswp-add-custom-fields', function(){
1774
+
1775
+ var current_fly = $(this);
1776
+ current_fly.addClass('updating-message');
1777
+ var schema_type = $('select#schema_type option:selected').val();
1778
+ var schema_subtype = '';
1779
+
1780
+ if(schema_type == 'Review'){
1781
+ schema_subtype = $('select.saswp-item-reivewed-list option:selected').val();
1782
+ }
1783
+ var post_id = $('#post_ID').val();
1784
+ if(schema_type !=''){
1785
+
1786
+ if(!saswp_meta_list_fields[schema_type]){
1787
+
1788
+ $.ajax({
1789
+ type: "POST",
1790
+ url:ajaxurl,
1791
+ dataType: "json",
1792
+ data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type,schema_subtype:schema_subtype, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1793
+ success:function(response){
1794
+
1795
+ saswp_meta_list_fields[schema_type] = response;
1796
+ saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
1797
+
1798
+ },
1799
+ error: function(response){
1800
+ console.log(response);
1801
+ }
1802
+ });
1803
+
1804
+
1805
+ }else{
1806
+
1807
+ saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
1808
+
1809
+ }
1810
+
1811
+ }
1812
+ });
1813
+ saswpCustomSelect2();
1814
+ saswp_enable_rating_review();
1815
+
1816
+ //custom fields modify schema ends here
1817
+
1818
+
1819
+ //Google review js starts here
1820
+
1821
+ $('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr( 'href', saswp_localize_data.collection_post_add_new_url);
1822
+
1823
+
1824
+
1825
+ $(document).on("click", '.saswp_coonect_google_place', function(){
1826
+
1827
+ var place_id = $("#saswp_google_place_id").val();
1828
+ var language = $("#saswp_language_list").val();
1829
+ var google_api = $("#saswp_googel_api").val();
1830
+
1831
+ if(place_id !=''){
1832
+ $.ajax({
1833
+ type: "POST",
1834
+ url:ajaxurl,
1835
+ dataType: "json",
1836
+ data:{action:"saswp_connect_google_place",place_id:place_id, language:language, google_api:google_api, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1837
+ success:function(response){
1838
+ console.log(response['status']);
1839
+ },
1840
+ error: function(response){
1841
+ console.log(response);
1842
+ }
1843
+ });
1844
+ }
1845
+ });
1846
+
1847
+ //google review js ends here
1848
+
1849
+ //Adding settings button beside add schema type button on schema type list page
1850
+
1851
+ if ('saswp' == saswp_localize_data.post_type && saswp_localize_data.page_now == 'edit.php') {
1852
+
1853
+ jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>");
1854
+
1855
+ }
1856
+
1857
+ //star rating stars here
1858
+ if(typeof(saswp_reviews_data) !== 'undefined'){
1859
+
1860
+ $(".saswp-rating-div").rateYo({
1861
+
1862
+ rating: saswp_reviews_data.rating_val,
1863
+ halfStar: true,
1864
+ //normalFill: "#ffd700",
1865
+ readOnly: saswp_reviews_data.readonly,
1866
+ onSet: function (rating, rateYoInstance) {
1867
+ $(this).next().val(rating);
1868
+ console.log(rating);
1869
+ }
1870
+
1871
+ });
1872
+
1873
+ }
1874
+ //rating ends here
1875
+
1876
+ $("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){
1877
+ var current = $(this);
1878
+
1879
+ current.parent().find('.saswp-phone-validation').remove();
1880
+
1881
+ var pnumber = $(this).val();
1882
+ var p_regex = /^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/;
1883
+
1884
+ if(!p_regex.test(pnumber)){
1885
+ current.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>');
1886
+ }else{
1887
+ current.parent().find('.saswp-phone-validation').remove();
1888
+ }
1889
+
1890
+ });
1891
+
1892
+ });
admin_section/newsletter.php CHANGED
@@ -21,7 +21,7 @@ class saswp_ads_newsletter {
21
  function saswp_add_localize_footer_data($object, $object_name){
22
 
23
  $dismissed = explode (',', get_user_meta (wp_get_current_user ()->ID, 'dismissed_wp_pointers', true));
24
- $do_tour = !in_array ('saswp_subscribe_pointer222', $dismissed);
25
 
26
  if ($do_tour) {
27
  wp_enqueue_style ('wp-pointer');
21
  function saswp_add_localize_footer_data($object, $object_name){
22
 
23
  $dismissed = explode (',', get_user_meta (wp_get_current_user ()->ID, 'dismissed_wp_pointers', true));
24
+ $do_tour = !in_array ('saswp_subscribe_pointer', $dismissed);
25
 
26
  if ($do_tour) {
27
  wp_enqueue_style ('wp-pointer');
admin_section/settings.php CHANGED
@@ -531,7 +531,8 @@ function saswp_services_callback(){ ?>
531
  <?php }
532
  function saswp_amp_page_callback(){
533
 
534
- $settings = saswp_defaultSettings();
 
535
  $field_objs = new saswp_fields_generator();
536
 
537
  $non_amp_enable_field = array(
@@ -1087,7 +1088,27 @@ function saswp_general_page_callback(){
1087
  'placeholder' => 'https://tumblr.com'
1088
  )
1089
  ),
1090
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1091
  );
1092
  echo '<div class="saswp-social-fileds">';
1093
  $field_objs->saswp_field_generator($social_meta_fields, $settings);
@@ -1528,10 +1549,10 @@ function saswp_review_page_callback(){
1528
  'label' => 'Google place API Key',
1529
  'id' => 'saswp_google_place_api_key',
1530
  'name' => 'sd_data[saswp_google_place_api_key]',
1531
- 'note' => '<a target="_blank" href="https://console.developers.google.com/apis/library">Get place API Key</a> Note : Google allows only 5 reviews per location',
1532
  'class' => '',
1533
  'type' => 'text',
1534
- ),
1535
  array(
1536
  'label' => '',
1537
  'id' => 'saswp-google-place-section',
@@ -1546,8 +1567,7 @@ function saswp_review_page_callback(){
1546
  'type' => 'text',
1547
 
1548
  )
1549
-
1550
-
1551
  );
1552
 
1553
  ?>
@@ -1558,6 +1578,15 @@ function saswp_review_page_callback(){
1558
  $meta_fields = apply_filters('saswp_modify_reviews_settings_page', $meta_fields);
1559
 
1560
  $field_objs->saswp_field_generator($meta_fields, $settings);
 
 
 
 
 
 
 
 
 
1561
  ?>
1562
  <div class="saswp-quick-links-div">
1563
  <h4><?php echo esc_html__('Quick Links','schema-and-structured-data-for-wp'); ?></h4>
531
  <?php }
532
  function saswp_amp_page_callback(){
533
 
534
+ $settings = saswp_defaultSettings();
535
+
536
  $field_objs = new saswp_fields_generator();
537
 
538
  $non_amp_enable_field = array(
1088
  'placeholder' => 'https://tumblr.com'
1089
  )
1090
  ),
1091
+ array(
1092
+ 'label' => 'Yelp',
1093
+ 'id' => 'saswp-yelp-enable-checkbox',
1094
+ 'name' => 'saswp-yelp-enable-checkbox',
1095
+ 'type' => 'checkbox',
1096
+ 'class' => 'checkbox saswp-checkbox',
1097
+ 'hidden' => array(
1098
+ 'id' => 'saswp-yelp-enable',
1099
+ 'name' => 'sd_data[saswp-yelp-enable]',
1100
+ )
1101
+ ),
1102
+ array(
1103
+ 'label' => '',
1104
+ 'id' => 'sd_yelp',
1105
+ 'name' => 'sd_data[sd_yelp]',
1106
+ 'class' => 'regular-text',
1107
+ 'type' => 'text',
1108
+ 'attributes' => array(
1109
+ 'placeholder' => 'https://yelp.com'
1110
+ )
1111
+ )
1112
  );
1113
  echo '<div class="saswp-social-fileds">';
1114
  $field_objs->saswp_field_generator($social_meta_fields, $settings);
1549
  'label' => 'Google place API Key',
1550
  'id' => 'saswp_google_place_api_key',
1551
  'name' => 'sd_data[saswp_google_place_api_key]',
1552
+ 'note' => '<a target="_blank" href="https://console.developers.google.com/apis/library">Get place API Key</a> Note : Google allows only 5 latest reviews per location',
1553
  'class' => '',
1554
  'type' => 'text',
1555
+ ),
1556
  array(
1557
  'label' => '',
1558
  'id' => 'saswp-google-place-section',
1567
  'type' => 'text',
1568
 
1569
  )
1570
+
 
1571
  );
1572
 
1573
  ?>
1578
  $meta_fields = apply_filters('saswp_modify_reviews_settings_page', $meta_fields);
1579
 
1580
  $field_objs->saswp_field_generator($meta_fields, $settings);
1581
+
1582
+ if(class_exists('saswp_reviews_platform_markup')){
1583
+
1584
+ $platform_obj = new saswp_reviews_platform_markup();
1585
+
1586
+ echo $platform_obj->reviews_markup();
1587
+
1588
+ }
1589
+
1590
  ?>
1591
  <div class="saswp-quick-links-div">
1592
  <h4><?php echo esc_html__('Quick Links','schema-and-structured-data-for-wp'); ?></h4>
admin_section/structure_admin.php CHANGED
@@ -963,7 +963,7 @@ function saswp_custom_breadcrumbs() {
963
  } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {
964
 
965
  // If post is a custom post type
966
- $post_type = get_post_type();
967
 
968
  // If it is a custom post type display name and link
969
  if($post_type != 'post') {
@@ -975,8 +975,19 @@ function saswp_custom_breadcrumbs() {
975
  $post_type_archive = get_permalink();
976
  }
977
 
978
- $variables1_titles[] = $post_type_object->labels->name;
979
- $variables2_links[] = $post_type_archive;
 
 
 
 
 
 
 
 
 
 
 
980
 
981
  }
982
 
963
  } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {
964
 
965
  // If post is a custom post type
966
+ $post_type = get_post_type();
967
 
968
  // If it is a custom post type display name and link
969
  if($post_type != 'post') {
975
  $post_type_archive = get_permalink();
976
  }
977
 
978
+ if(!$post_type_archive){
979
+
980
+ $queried_obj = get_queried_object();
981
+
982
+ if(is_object($queried_obj)){
983
+ $variables1_titles[] = $queried_obj->name;
984
+ $variables2_links[] = get_term_link($queried_obj->term_id);
985
+ }
986
+
987
+ }else{
988
+ $variables1_titles[] = $post_type_object->labels->name;
989
+ $variables2_links[] = $post_type_archive;
990
+ }
991
 
992
  }
993
 
core/array-list/local-sub-business.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return array(
3
  'automotivebusiness' => array(
4
  '' => 'Select Sub Business Type ( optional )',
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
  return array(
6
  'automotivebusiness' => array(
7
  '' => 'Select Sub Business Type ( optional )',
core/array-list/meta_list.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return apply_filters('saswp_modify_post_meta_list',
3
  array(
4
  'text' => array(
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
  return apply_filters('saswp_modify_post_meta_list',
6
  array(
7
  'text' => array(
core/array-list/plugins.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return array(
3
 
4
  array(
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
  return array(
6
 
7
  array(
core/array-list/pro_extensions.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return array(
3
 
4
  array(
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
  return array(
6
 
7
  array(
core/array-list/schemas.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  return array(
3
 
4
  'Accommodation' => array(
1
  <?php
2
+ // Exit if accessed directly.
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
  return array(
6
 
7
  'Accommodation' => array(
modules/gutenberg/assets/blocks/faq.js CHANGED
@@ -1,5 +1,8 @@
1
 
2
- ( function( blocks, element, editor, components ) {
 
 
 
3
  var el = element.createElement;
4
  var RichText = editor.RichText;
5
  var MediaUpload = editor.MediaUpload;
@@ -11,7 +14,7 @@
11
  var PanelBody = components.PanelBody;
12
 
13
  blocks.registerBlockType( 'saswp/faq-block', {
14
- title: 'FAQ (SASWP)',
15
  icon: 'text',
16
  category: 'saswp-blocks',
17
  keywords: ['schema', 'structured data', 'FAQ', 'faq'],
@@ -192,7 +195,7 @@
192
  className: 'saswp-faq-step-button saswp-to-step-add-media',
193
  onClick: obj.open
194
  },
195
- 'Add Image'
196
  )
197
  }
198
  }): null,
@@ -336,7 +339,7 @@
336
  el( RichText, {
337
  tagName: 'p',
338
  className:'saswp-faq-step-title',
339
- placeholder: 'Enter a question',
340
  style: { textAlign: alignment },
341
  value: item.title,
342
  autoFocus: true,
@@ -354,7 +357,7 @@
354
  ),
355
  el( RichText, {
356
  tagName: 'p',
357
- placeholder: 'Enter answer to the question',
358
  className:'saswp-faq-step-description',
359
  style: { textAlign: alignment },
360
  value: item.description,
@@ -436,7 +439,7 @@
436
  });
437
  }
438
  },
439
- 'Add A Question'
440
  )
441
  )];
442
 
@@ -450,5 +453,6 @@
450
  window.wp.element,
451
  window.wp.editor,
452
  window.wp.components,
 
453
  ) );
454
 
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;
14
  var PanelBody = components.PanelBody;
15
 
16
  blocks.registerBlockType( 'saswp/faq-block', {
17
+ title: __('FAQ (SASWP)', 'schema-and-structured-data-for-wp'),
18
  icon: 'text',
19
  category: 'saswp-blocks',
20
  keywords: ['schema', 'structured data', 'FAQ', 'faq'],
195
  className: 'saswp-faq-step-button saswp-to-step-add-media',
196
  onClick: obj.open
197
  },
198
+ __('Add Image', 'schema-and-structured-data-for-wp')
199
  )
200
  }
201
  }): null,
339
  el( RichText, {
340
  tagName: 'p',
341
  className:'saswp-faq-step-title',
342
+ placeholder: __('Enter a question', 'schema-and-structured-data-for-wp'),
343
  style: { textAlign: alignment },
344
  value: item.title,
345
  autoFocus: true,
357
  ),
358
  el( RichText, {
359
  tagName: 'p',
360
+ placeholder: __('Enter answer to the question', 'schema-and-structured-data-for-wp'),
361
  className:'saswp-faq-step-description',
362
  style: { textAlign: alignment },
363
  value: item.description,
439
  });
440
  }
441
  },
442
+ __('Add A Question', 'schema-and-structured-data-for-wp')
443
  )
444
  )];
445
 
453
  window.wp.element,
454
  window.wp.editor,
455
  window.wp.components,
456
+ window.wp.i18n,
457
  ) );
458
 
modules/gutenberg/assets/blocks/how-to.js CHANGED
@@ -1,5 +1,8 @@
1
 
2
- ( function( blocks, element, editor, components ) {
 
 
 
3
  var el = element.createElement;
4
  var RichText = editor.RichText;
5
  var MediaUpload = editor.MediaUpload;
@@ -12,7 +15,7 @@
12
  var PanelBody = components.PanelBody;
13
 
14
  blocks.registerBlockType( 'saswp/how-to-block', {
15
- title: 'How To (SASWP)',
16
  icon: 'list-view',
17
  category: 'saswp-blocks',
18
  keywords: ['schema', 'structured data', 'how to', 'how-to'],
@@ -196,7 +199,7 @@
196
  props.setAttributes( { hasDuration: true } );
197
  }
198
  },
199
- 'Add Total Time'
200
  );
201
 
202
  if(attributes.hasDuration){
@@ -312,7 +315,7 @@
312
  className: 'saswp-how-to-step-button saswp-to-step-add-media',
313
  onClick: obj.open
314
  },
315
- 'Add Image'
316
  )
317
  }
318
  }): null,
@@ -456,7 +459,7 @@
456
  el( RichText, {
457
  tagName: 'p',
458
  className:'saswp-how-to-step-title',
459
- placeholder: 'Enter a step title',
460
  style: { textAlign: alignment },
461
  value: item.title,
462
  autoFocus: true,
@@ -474,7 +477,7 @@
474
  ),
475
  el( RichText, {
476
  tagName: 'p',
477
- placeholder: 'Enter a step description',
478
  className:'saswp-how-to-step-description',
479
  style: { textAlign: alignment },
480
  value: item.description,
@@ -533,7 +536,7 @@
533
  el( RichText, {
534
  tagName: 'p',
535
  className:'saswp-how-to-tool-name',
536
- placeholder: 'Enter a tool name',
537
  style: { textAlign: alignment },
538
  value: tool.name,
539
  autoFocus: true,
@@ -621,7 +624,7 @@
621
  el( RichText, {
622
  tagName: 'p',
623
  className:'saswp-how-to-material-name',
624
- placeholder: 'Enter a material name',
625
  style: { textAlign: alignment },
626
  value: material.name,
627
  autoFocus: true,
@@ -686,7 +689,7 @@
686
  },
687
  el(PanelBody,
688
  {className:'saswp-how-to-panel-body',
689
- title:'Settings'
690
  },
691
  el(ToggleControl,
692
  {
@@ -696,7 +699,7 @@
696
  props.setAttributes( { toggleList: newContent } );
697
  },
698
  help: function(value){
699
- return (value == true ? 'Showing step item as an unordered list': 'Showing step item as an ordered list');
700
  }
701
  },
702
  )
@@ -722,7 +725,7 @@
722
  el( RichText, {
723
  tagName: 'p',
724
  className:'saswp-how-to-description',
725
- placeholder: 'Enter how to description',
726
  style: { textAlign: alignment },
727
  value: attributes.description,
728
  autoFocus: true,
@@ -748,7 +751,7 @@
748
  });
749
  }
750
  },
751
- 'Add A Step'
752
  )
753
  ),
754
  el('div',{className:'saswp-how-to-material-block'},
@@ -767,7 +770,7 @@
767
  });
768
  }
769
  },
770
- 'Add A Material'
771
  )
772
  ),
773
  el('div',{className:'saswp-how-to-tool-block'},
@@ -786,7 +789,7 @@
786
  });
787
  }
788
  },
789
- 'Add A Tool'
790
  )
791
  )
792
  )];
@@ -801,5 +804,6 @@
801
  window.wp.element,
802
  window.wp.editor,
803
  window.wp.components,
 
804
  ) );
805
 
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;
15
  var PanelBody = components.PanelBody;
16
 
17
  blocks.registerBlockType( 'saswp/how-to-block', {
18
+ title: __('How To (SASWP)', 'schema-and-structured-data-for-wp'),
19
  icon: 'list-view',
20
  category: 'saswp-blocks',
21
  keywords: ['schema', 'structured data', 'how to', 'how-to'],
199
  props.setAttributes( { hasDuration: true } );
200
  }
201
  },
202
+ __('Add Total Time', 'schema-and-structured-data-for-wp')
203
  );
204
 
205
  if(attributes.hasDuration){
315
  className: 'saswp-how-to-step-button saswp-to-step-add-media',
316
  onClick: obj.open
317
  },
318
+ __('Add Image', 'schema-and-structured-data-for-wp')
319
  )
320
  }
321
  }): null,
459
  el( RichText, {
460
  tagName: 'p',
461
  className:'saswp-how-to-step-title',
462
+ placeholder: __('Enter a step title', 'schema-and-structured-data-for-wp'),
463
  style: { textAlign: alignment },
464
  value: item.title,
465
  autoFocus: true,
477
  ),
478
  el( RichText, {
479
  tagName: 'p',
480
+ placeholder: __('Enter a step description', 'schema-and-structured-data-for-wp'),
481
  className:'saswp-how-to-step-description',
482
  style: { textAlign: alignment },
483
  value: item.description,
536
  el( RichText, {
537
  tagName: 'p',
538
  className:'saswp-how-to-tool-name',
539
+ placeholder: __('Enter a tool name', 'schema-and-structured-data-for-wp'),
540
  style: { textAlign: alignment },
541
  value: tool.name,
542
  autoFocus: true,
624
  el( RichText, {
625
  tagName: 'p',
626
  className:'saswp-how-to-material-name',
627
+ placeholder: __('Enter a material name', 'schema-and-structured-data-for-wp'),
628
  style: { textAlign: alignment },
629
  value: material.name,
630
  autoFocus: true,
689
  },
690
  el(PanelBody,
691
  {className:'saswp-how-to-panel-body',
692
+ title:__('Settings', 'schema-and-structured-data-for-wp')
693
  },
694
  el(ToggleControl,
695
  {
699
  props.setAttributes( { toggleList: newContent } );
700
  },
701
  help: function(value){
702
+ 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'));
703
  }
704
  },
705
  )
725
  el( RichText, {
726
  tagName: 'p',
727
  className:'saswp-how-to-description',
728
+ placeholder: __('Enter how to description', 'schema-and-structured-data-for-wp'),
729
  style: { textAlign: alignment },
730
  value: attributes.description,
731
  autoFocus: true,
751
  });
752
  }
753
  },
754
+ __('Add A Step', 'schema-and-structured-data-for-wp')
755
  )
756
  ),
757
  el('div',{className:'saswp-how-to-material-block'},
770
  });
771
  }
772
  },
773
+ __('Add A Material', 'schema-and-structured-data-for-wp')
774
  )
775
  ),
776
  el('div',{className:'saswp-how-to-tool-block'},
789
  });
790
  }
791
  },
792
+ __('Add A Tool', 'schema-and-structured-data-for-wp')
793
  )
794
  )
795
  )];
804
  window.wp.element,
805
  window.wp.editor,
806
  window.wp.components,
807
+ window.wp.i18n,
808
  ) );
809
 
output/function.php CHANGED
@@ -879,40 +879,45 @@ function saswp_get_the_tags(){
879
  function saswp_get_ids_from_content_by_type($type){
880
 
881
  global $post;
882
- $content = $post->post_content;
883
 
884
- switch ($type) {
885
-
886
- case 'wp_recipe_maker':
887
-
888
- // Gutenberg.
889
- $gutenberg_matches = array();
890
- $gutenberg_patern = '/<!--\s+wp:(wp\-recipe\-maker\/recipe)(\s+(\{.*?\}))?\s+(\/)?-->/';
891
- preg_match_all( $gutenberg_patern, $content, $matches );
892
-
893
- if ( isset( $matches[3] ) ) {
894
- foreach ( $matches[3] as $block_attributes_json ) {
895
- if ( ! empty( $block_attributes_json ) ) {
896
- $attributes = json_decode( $block_attributes_json, true );
897
- if ( ! is_null( $attributes ) ) {
898
- if ( isset( $attributes['id'] ) ) {
899
- $gutenberg_matches[] = intval( $attributes['id'] );
900
- }
901
- }
902
- }
903
- }
904
- }
 
 
 
 
905
 
906
- // Classic Editor.
907
- preg_match_all( '/<!--WPRM Recipe (\d+)-->.+?<!--End WPRM Recipe-->/ms', $content, $matches );
908
- $classic_matches = isset( $matches[1] ) ? array_map( 'intval', $matches[1] ) : array();
909
 
910
- return $gutenberg_matches + $classic_matches;
911
 
912
- default:
913
- break;
914
- }
915
 
 
 
916
  }
917
  /**
918
  * Function to get recipe schema markup from wp_recipe_maker
879
  function saswp_get_ids_from_content_by_type($type){
880
 
881
  global $post;
 
882
 
883
+ if(is_object($post)){
884
+
885
+ $content = $post->post_content;
886
+
887
+ switch ($type) {
888
+
889
+ case 'wp_recipe_maker':
890
+
891
+ // Gutenberg.
892
+ $gutenberg_matches = array();
893
+ $gutenberg_patern = '/<!--\s+wp:(wp\-recipe\-maker\/recipe)(\s+(\{.*?\}))?\s+(\/)?-->/';
894
+ preg_match_all( $gutenberg_patern, $content, $matches );
895
+
896
+ if ( isset( $matches[3] ) ) {
897
+ foreach ( $matches[3] as $block_attributes_json ) {
898
+ if ( ! empty( $block_attributes_json ) ) {
899
+ $attributes = json_decode( $block_attributes_json, true );
900
+ if ( ! is_null( $attributes ) ) {
901
+ if ( isset( $attributes['id'] ) ) {
902
+ $gutenberg_matches[] = intval( $attributes['id'] );
903
+ }
904
+ }
905
+ }
906
+ }
907
+ }
908
 
909
+ // Classic Editor.
910
+ preg_match_all( '/<!--WPRM Recipe (\d+)-->.+?<!--End WPRM Recipe-->/ms', $content, $matches );
911
+ $classic_matches = isset( $matches[1] ) ? array_map( 'intval', $matches[1] ) : array();
912
 
913
+ return $gutenberg_matches + $classic_matches;
914
 
915
+ default:
916
+ break;
917
+ }
918
 
919
+ }
920
+
921
  }
922
  /**
923
  * Function to get recipe schema markup from wp_recipe_maker
output/output.php CHANGED
@@ -100,6 +100,12 @@ function saswp_kb_schema_output() {
100
  $sd_tumblr[] = $sd_data['sd_tumblr'];
101
  $sd_social_profile[] = $sd_tumblr;
102
  }
 
 
 
 
 
 
103
 
104
  $platform = array();
105
 
@@ -1130,136 +1136,55 @@ function saswp_schema_output() {
1130
 
1131
  }
1132
  }
1133
-
1134
- $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1135
-
1136
- }
1137
-
1138
- if( 'Reviewfff' === $schema_type ){
1139
-
1140
-
1141
- if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah') ){
1142
 
1143
- remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
1144
-
1145
- $input1 = array(
1146
- '@context' => saswp_context_url(),
1147
- '@type' => 'Review',
1148
- '@id' => trailingslashit(saswp_get_permalink()).'#review',
1149
- 'dateCreated' => esc_html($date),
1150
- 'datePublished' => esc_html($date),
1151
- 'dateModified' => esc_html($modified_date),
1152
- 'headline' => saswp_get_the_title(),
1153
- 'name' => saswp_get_the_title(),
1154
- 'keywords' => tie_get_plain_terms( get_the_ID(), 'post_tag' ),
1155
- 'url' => trailingslashit(saswp_get_permalink()),
1156
- 'description' => saswp_get_the_excerpt(),
1157
- 'articleBody' => saswp_get_the_content(),
1158
- 'copyrightYear' => get_the_time( 'Y' ),
1159
- 'author' => saswp_get_author_details()
1160
-
1161
- );
1162
-
1163
- $total_score = (int) get_post_meta( get_the_ID(), 'taq_review_score', true );
1164
-
1165
- if( ! empty( $total_score ) && $total_score > 0 ){
1166
-
1167
- $total_score = round( ($total_score*5)/100, 1 );
1168
-
1169
- }
1170
-
1171
- $input1['itemReviewed'] = array(
1172
- '@type' => 'Thing',
1173
- 'name' => saswp_get_the_title(),
1174
- );
 
 
 
 
 
 
 
 
1175
 
1176
- $input1['reviewRating'] = array(
1177
- '@type' => 'Rating',
1178
- 'worstRating' => 1,
1179
- 'bestRating' => 5,
1180
- 'ratingValue' => esc_attr($total_score),
1181
- 'description' => get_post_meta( get_the_ID(), 'taq_review_summary', true ),
1182
- );
1183
-
1184
- } else {
1185
-
1186
- $schema_data = saswp_get_schema_data($schema_post_id, 'saswp_review_schema_details');
1187
-
1188
- if(isset($schema_data['saswp_review_schema_item_type'])){
1189
-
1190
- $input1['@context'] = saswp_context_url();
1191
- $input1['@type'] = esc_attr($schema_type);
1192
- $input1['url'] = trailingslashit(saswp_get_permalink());
1193
- $input1['datePublished'] = esc_html($date);
1194
- $input1['dateModified'] = esc_html($modified_date);
1195
- $input1['reviewBody'] = saswp_get_the_excerpt();
1196
- $input1['description'] = saswp_get_the_excerpt();
1197
- $input1['itemReviewed']['@type'] = esc_attr($schema_data['saswp_review_schema_item_type']);
1198
-
1199
- $service = new saswp_output_service();
1200
-
1201
-
1202
- switch ($schema_data['saswp_review_schema_item_type']) {
1203
-
1204
- case 'Article':
1205
-
1206
- $markup = $service->saswp_schema_markup_generator($schema_data['saswp_review_schema_item_type']);
1207
- $input1['itemReviewed'] = $markup;
1208
-
1209
- break;
1210
- case 'Adultentertainment':
1211
- $input1 = $input1;
1212
- break;
1213
- case 'Blog':
1214
- $input1 = $input1;
1215
- break;
1216
- case 'Book':
1217
-
1218
- if(isset($schema_data['saswp_review_schema_isbn'])){
1219
-
1220
- $input1['itemReviewed']['isbn'] = $schema_data['saswp_review_schema_isbn'];
1221
-
1222
- }
1223
- if($review_author) {
1224
-
1225
- $input1['itemReviewed']['author']['@type'] = 'Person';
1226
- $input1['itemReviewed']['author']['name'] = esc_attr($review_author);
1227
- $input1['itemReviewed']['author']['sameAs'] = esc_url($schema_data['saswp_review_schema_author_sameas']);
1228
-
1229
- }
1230
- break;
1231
- case 'Movie':
1232
- if($review_author){
1233
- $input1['author']['sameAs'] = trailingslashit(saswp_get_permalink());
1234
- }
1235
- break;
1236
- case 'WebPage':
1237
- $markup = $service->saswp_schema_markup_generator($schema_data['saswp_review_schema_item_type']);
1238
- $input1['itemReviewed'] = $markup;
1239
- break;
1240
- case 'WebSite':
1241
- break;
1242
- default:
1243
- $input1 = $input1;
1244
- break;
1245
- }
1246
-
1247
- if(!empty($publisher)){
1248
- $input1 = array_merge($input1, $publisher);
1249
  }
1250
 
1251
- if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
1252
-
1253
- $service = new saswp_output_service();
1254
- $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
1255
-
1256
- }
1257
- }
1258
-
1259
- }
1260
-
1261
- $input1 = apply_filters('saswp_modify_review_schema_output', $input1 );
1262
- }
1263
 
1264
  if( 'VideoObject' === $schema_type){
1265
 
@@ -1598,7 +1523,7 @@ function saswp_archive_output(){
1598
  $service_object = new saswp_output_service();
1599
  $logo = $service_object->saswp_get_publisher(true);
1600
 
1601
- if ( is_category() ) {
1602
 
1603
  $category_posts = array();
1604
  $item_list = array();
@@ -1664,31 +1589,34 @@ function saswp_archive_output(){
1664
  endwhile;
1665
 
1666
  wp_reset_postdata();
1667
-
1668
- $category = get_the_category();
1669
- $category_id = intval($category[0]->term_id);
 
 
 
 
 
1670
  $category_link = get_category_link( $category_id );
1671
- $category_link = get_term_link( $category[0]->term_id , 'category' );
1672
  $category_headline = single_cat_title( '', false ) . __(' Category', 'schema-wp');
1673
 
1674
- $collection_page = array
1675
- (
1676
  '@context' => saswp_context_url(),
1677
  '@type' => "CollectionPage",
1678
  '@id' => trailingslashit(esc_url($category_link)).'#CollectionPage',
1679
  'headline' => esc_attr($category_headline),
1680
- 'description' => strip_tags(category_description()),
1681
  'url' => esc_url($category_link),
1682
  'hasPart' => $category_posts
1683
  );
1684
 
1685
- $blog_page = array
1686
- (
1687
  '@context' => saswp_context_url(),
1688
  '@type' => "Blog",
1689
  '@id' => trailingslashit(esc_url($category_link)).'#Blog',
1690
  'headline' => esc_attr($category_headline),
1691
- 'description' => strip_tags(category_description()),
1692
  'url' => esc_url($category_link),
1693
  'blogPost' => $category_posts
1694
  );
@@ -1702,7 +1630,9 @@ function saswp_archive_output(){
1702
  }else{
1703
  $output = array($item_list_schema, $collection_page, array());
1704
  }
1705
-
 
 
1706
  return apply_filters('saswp_modify_archive_output', $output);
1707
 
1708
  endif;
100
  $sd_tumblr[] = $sd_data['sd_tumblr'];
101
  $sd_social_profile[] = $sd_tumblr;
102
  }
103
+
104
+ $sd_yelp = array();
105
+ if(isset($sd_data['sd_yelp']) && !empty($sd_data['sd_yelp']) && isset($sd_data['saswp-yelp-enable']) && $sd_data['saswp-yelp-enable'] ==1){
106
+ $sd_yelp[] = $sd_data['sd_yelp'];
107
+ $sd_social_profile[] = $sd_yelp;
108
+ }
109
 
110
  $platform = array();
111
 
1136
 
1137
  }
1138
  }
1139
+
1140
+ if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah') ){
 
 
 
 
 
 
 
1141
 
1142
+ remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
1143
+
1144
+ $input1 = array(
1145
+ '@context' => saswp_context_url(),
1146
+ '@type' => 'Review',
1147
+ '@id' => trailingslashit(saswp_get_permalink()).'#review',
1148
+ 'dateCreated' => esc_html($date),
1149
+ 'datePublished' => esc_html($date),
1150
+ 'dateModified' => esc_html($modified_date),
1151
+ 'headline' => saswp_get_the_title(),
1152
+ 'name' => saswp_get_the_title(),
1153
+ 'keywords' => tie_get_plain_terms( get_the_ID(), 'post_tag' ),
1154
+ 'url' => trailingslashit(saswp_get_permalink()),
1155
+ 'description' => saswp_get_the_excerpt(),
1156
+ 'articleBody' => saswp_get_the_content(),
1157
+ 'copyrightYear' => get_the_time( 'Y' ),
1158
+ 'author' => saswp_get_author_details()
1159
+
1160
+ );
1161
+
1162
+ $total_score = (int) get_post_meta( get_the_ID(), 'taq_review_score', true );
1163
+
1164
+ if( ! empty( $total_score ) && $total_score > 0 ){
1165
+
1166
+ $total_score = round( ($total_score*5)/100, 1 );
1167
+
1168
+ }
1169
+
1170
+ $input1['itemReviewed'] = array(
1171
+ '@type' => 'Organization',
1172
+ 'name' => saswp_get_the_title(),
1173
+ );
1174
+
1175
+ $input1['reviewRating'] = array(
1176
+ '@type' => 'Rating',
1177
+ 'worstRating' => 1,
1178
+ 'bestRating' => 5,
1179
+ 'ratingValue' => esc_attr($total_score),
1180
+ 'description' => get_post_meta( get_the_ID(), 'taq_review_summary', true ),
1181
+ );
1182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  }
1184
 
1185
+ $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1186
+
1187
+ }
 
 
 
 
 
 
 
 
 
1188
 
1189
  if( 'VideoObject' === $schema_type){
1190
 
1523
  $service_object = new saswp_output_service();
1524
  $logo = $service_object->saswp_get_publisher(true);
1525
 
1526
+ if ( is_category() || is_tax() ) {
1527
 
1528
  $category_posts = array();
1529
  $item_list = array();
1589
  endwhile;
1590
 
1591
  wp_reset_postdata();
1592
+
1593
+ $output = array();
1594
+
1595
+ $category = get_queried_object();
1596
+
1597
+ if(is_object($category)){
1598
+
1599
+ $category_id = intval($category->term_id);
1600
  $category_link = get_category_link( $category_id );
1601
+ $category_link = get_term_link( $category_id);
1602
  $category_headline = single_cat_title( '', false ) . __(' Category', 'schema-wp');
1603
 
1604
+ $collection_page = array(
 
1605
  '@context' => saswp_context_url(),
1606
  '@type' => "CollectionPage",
1607
  '@id' => trailingslashit(esc_url($category_link)).'#CollectionPage',
1608
  'headline' => esc_attr($category_headline),
1609
+ 'description' => strip_tags(term_description($category_id)),
1610
  'url' => esc_url($category_link),
1611
  'hasPart' => $category_posts
1612
  );
1613
 
1614
+ $blog_page = array(
 
1615
  '@context' => saswp_context_url(),
1616
  '@type' => "Blog",
1617
  '@id' => trailingslashit(esc_url($category_link)).'#Blog',
1618
  'headline' => esc_attr($category_headline),
1619
+ 'description' => strip_tags(term_description($category_id)),
1620
  'url' => esc_url($category_link),
1621
  'blogPost' => $category_posts
1622
  );
1630
  }else{
1631
  $output = array($item_list_schema, $collection_page, array());
1632
  }
1633
+
1634
+ }
1635
+
1636
  return apply_filters('saswp_modify_archive_output', $output);
1637
 
1638
  endif;
output/output_post_specific.php CHANGED
@@ -293,7 +293,7 @@ function saswp_post_specific_schema_output() {
293
 
294
  }
295
 
296
- if( 'JobPosting' === $schema_type){
297
 
298
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
299
 
@@ -337,7 +337,7 @@ function saswp_post_specific_schema_output() {
337
 
338
  }
339
 
340
- if( 'Mosque' === $schema_type){
341
 
342
  $howto_image = get_post_meta( get_the_ID(), 'saswp_mosque_schema_image_'.$schema_id.'_detail',true);
343
 
@@ -544,8 +544,7 @@ function saswp_post_specific_schema_output() {
544
  if( 'TouristDestination' === $schema_type){
545
 
546
  $howto_image = get_post_meta( get_the_ID(), 'saswp_td_schema_image_'.$schema_id.'_detail',true);
547
-
548
-
549
  $input1['@context'] = saswp_context_url();
550
  $input1['@type'] = 'TouristDestination';
551
  $input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
@@ -722,8 +721,7 @@ function saswp_post_specific_schema_output() {
722
  $tool = get_post_meta($schema_post_id, 'howto_tool_'.$schema_id, true);
723
  $step = get_post_meta($schema_post_id, 'howto_step_'.$schema_id, true);
724
  $supply = get_post_meta($schema_post_id, 'howto_supply_'.$schema_id, true);
725
-
726
-
727
  $input1['@context'] = saswp_context_url();
728
  $input1['@type'] = 'HowTo';
729
  $input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
@@ -929,8 +927,7 @@ function saswp_post_specific_schema_output() {
929
  $cause = get_post_meta($schema_post_id, 'mc_cause_'.$schema_id, true);
930
  $symptom = get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true);
931
  $riskfactro = get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true);
932
-
933
-
934
  $input1['@context'] = saswp_context_url();
935
  $input1['@type'] = 'MedicalCondition';
936
  $input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
293
 
294
  }
295
 
296
+ if( 'JobPosting' === $schema_type){
297
 
298
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
299
 
337
 
338
  }
339
 
340
+ if( 'Mosque' === $schema_type){
341
 
342
  $howto_image = get_post_meta( get_the_ID(), 'saswp_mosque_schema_image_'.$schema_id.'_detail',true);
343
 
544
  if( 'TouristDestination' === $schema_type){
545
 
546
  $howto_image = get_post_meta( get_the_ID(), 'saswp_td_schema_image_'.$schema_id.'_detail',true);
547
+
 
548
  $input1['@context'] = saswp_context_url();
549
  $input1['@type'] = 'TouristDestination';
550
  $input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
721
  $tool = get_post_meta($schema_post_id, 'howto_tool_'.$schema_id, true);
722
  $step = get_post_meta($schema_post_id, 'howto_step_'.$schema_id, true);
723
  $supply = get_post_meta($schema_post_id, 'howto_supply_'.$schema_id, true);
724
+
 
725
  $input1['@context'] = saswp_context_url();
726
  $input1['@type'] = 'HowTo';
727
  $input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
927
  $cause = get_post_meta($schema_post_id, 'mc_cause_'.$schema_id, true);
928
  $symptom = get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true);
929
  $riskfactro = get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true);
930
+
 
931
  $input1['@context'] = saswp_context_url();
932
  $input1['@type'] = 'MedicalCondition';
933
  $input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
output/review-output.php CHANGED
@@ -106,7 +106,7 @@ Class saswp_review_output{
106
  );
107
 
108
  $input1['itemReviewed'] = array(
109
- '@type' => 'Thing',
110
  'name' => saswp_get_the_title(),
111
  );
112
 
106
  );
107
 
108
  $input1['itemReviewed'] = array(
109
+ '@type' => 'Organization',
110
  'name' => saswp_get_the_title(),
111
  );
112
 
output/service.php CHANGED
@@ -3469,8 +3469,7 @@ Class saswp_output_service{
3469
  if($site_name){
3470
 
3471
  $publisher['publisher']['@type'] = 'Organization';
3472
- $publisher['publisher']['name'] = esc_attr($site_name);
3473
-
3474
 
3475
  if($logo !='' && $height !='' && $width !=''){
3476
 
3469
  if($site_name){
3470
 
3471
  $publisher['publisher']['@type'] = 'Organization';
3472
+ $publisher['publisher']['name'] = esc_attr($site_name);
 
3473
 
3474
  if($logo !='' && $height !='' && $width !=''){
3475
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: magazine3
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.2
6
- Stable tag: 1.9.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -114,6 +114,12 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
114
 
115
  == Changelog ==
116
 
 
 
 
 
 
 
117
  = 1.9.9 (28 Sept 2019) =
118
 
119
  * Added: Post category in modify meta list. #509
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.2
6
+ Stable tag: 1.9.10
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
114
 
115
  == Changelog ==
116
 
117
+ = 1.9.10 (3 Oct 2019) =
118
+
119
+ * Added: Field to enter Yelp link to Knowledge Graph Social Fields section #517
120
+ * Fixed: Breadcrumb list error on custom taxonomy #523
121
+ * Fixed: ItemList and CollectionPage schema are not being added on custom texonomy page #521
122
+
123
  = 1.9.9 (28 Sept 2019) =
124
 
125
  * Added: Post category in modify meta list. #509
reviews/reviews_admin.php CHANGED
@@ -141,7 +141,7 @@ class saswp_reviews_admin {
141
  case 'select':
142
 
143
  $input = sprintf(
144
- '<select class="afw_select" id="%s" name="%s" %s>',
145
  esc_attr($meta_field['id']),
146
  esc_attr($meta_field['id']),
147
  $attributes
@@ -160,7 +160,7 @@ class saswp_reviews_admin {
160
  break;
161
  case 'textarea':
162
  $input = sprintf(
163
- '<textarea class="afw_textarea" id="%s" name="%s" rows="5">%s</textarea>',
164
  esc_attr($meta_field['id']),
165
  esc_attr($meta_field['id']),
166
  $meta_value
@@ -177,9 +177,9 @@ class saswp_reviews_admin {
177
  break;
178
  case 'media':
179
  $media_value = array();
180
- $media_key = $meta_field['id'].'_detail';
181
 
182
- $media_value_meta = get_post_meta( $post->ID, $media_key, true );
183
 
184
  if(!empty($media_value_meta)){
185
  $media_value = $media_value_meta;
@@ -208,22 +208,17 @@ class saswp_reviews_admin {
208
  </div>';
209
 
210
  }
211
- $input = sprintf(
212
- '<fieldset><input style="width: 80%%" id="%s" name="%s" type="text" value="%s">'
213
- . '<input data-id="media" style="width: 19%%" class="button" id="%s_button" name="%s_button" type="button" value="Upload" />'
214
  . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_height" class="upload-height" name="'.esc_attr($meta_field['id']).'_height" id="'.esc_attr($meta_field['id']).'_height" value="'.esc_attr($media_height).'">'
215
  . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_width" class="upload-width" name="'.esc_attr($meta_field['id']).'_width" id="'.esc_attr($meta_field['id']).'_width" value="'.esc_attr($media_width).'">'
216
- . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_thumbnail" class="upload-thumbnail" name="'.esc_attr($meta_field['id']).'_thumbnail" id="'.esc_attr($meta_field['id']).'_thumbnail" value="'.esc_attr($media_thumbnail).'">'
217
  . '<div class="saswp_image_div_'.esc_attr($meta_field['id']).'">'
218
  . $image_pre
219
  . '</div>'
220
- .'</fieldset>',
221
- $meta_field['id'],
222
- $meta_field['id'],
223
- $media_thumbnail,
224
- $meta_field['id'],
225
- $meta_field['id']
226
- );
227
  break;
228
  case 'star':
229
 
@@ -263,7 +258,7 @@ class saswp_reviews_admin {
263
  }
264
 
265
  $allowed_html = saswp_expanded_allowed_tags();
266
- echo '<table class="form-table saswp-ad-type-table"><tbody>' . wp_kses($output, $allowed_html) . '</tbody></table>';
267
  }
268
 
269
  /**
141
  case 'select':
142
 
143
  $input = sprintf(
144
+ '<select class="saswp_select" id="%s" name="%s" %s>',
145
  esc_attr($meta_field['id']),
146
  esc_attr($meta_field['id']),
147
  $attributes
160
  break;
161
  case 'textarea':
162
  $input = sprintf(
163
+ '<textarea class="saswp_textarea" id="%s" name="%s" rows="5">%s</textarea>',
164
  esc_attr($meta_field['id']),
165
  esc_attr($meta_field['id']),
166
  $meta_value
177
  break;
178
  case 'media':
179
  $media_value = array();
180
+ $media_key = $meta_field['id'].'_detail';
181
 
182
+ $media_value_meta = get_post_meta( $post->ID, $media_key, true );
183
 
184
  if(!empty($media_value_meta)){
185
  $media_value = $media_value_meta;
208
  </div>';
209
 
210
  }
211
+
212
+ $input = '<fieldset><input style="width: 80%" id="'. esc_attr($meta_field['id']).'" name="'. esc_attr($meta_field['id']).'" type="text" value="'.esc_url($media_thumbnail).'">'
213
+ . '<input data-id="media" style="width: 19%" class="button" id="'. esc_attr($meta_field['id']).'_button" name="'. esc_attr($meta_field['id']).'_button" type="button" value="Upload" />'
214
  . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_height" class="upload-height" name="'.esc_attr($meta_field['id']).'_height" id="'.esc_attr($meta_field['id']).'_height" value="'.esc_attr($media_height).'">'
215
  . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_width" class="upload-width" name="'.esc_attr($meta_field['id']).'_width" id="'.esc_attr($meta_field['id']).'_width" value="'.esc_attr($media_width).'">'
216
+ . '<input type="hidden" data-id="'.esc_attr($meta_field['id']).'_thumbnail" class="upload-thumbnail" name="'.esc_attr($meta_field['id']).'_thumbnail" id="'.esc_attr($meta_field['id']).'_thumbnail" value="'.esc_url($media_thumbnail).'">'
217
  . '<div class="saswp_image_div_'.esc_attr($meta_field['id']).'">'
218
  . $image_pre
219
  . '</div>'
220
+ .'</fieldset>';
221
+
 
 
 
 
 
222
  break;
223
  case 'star':
224
 
258
  }
259
 
260
  $allowed_html = saswp_expanded_allowed_tags();
261
+ echo '<table class="form-table saswp-review-content-table"><tbody>' . wp_kses($output, $allowed_html) . '</tbody></table>';
262
  }
263
 
264
  /**
reviews/reviews_service.php CHANGED
@@ -127,12 +127,12 @@ class saswp_reviews_service {
127
  $output.= '<div class="saswp-g-review-panel">
128
  <div class="saswp-glg-review-body">
129
  <div class="saswp-rv-img">
130
- <img src="'.esc_url($img_src).'" alt="'.$review['saswp_reviewer_name'].'">
131
  </div>
132
  <div class="saswp-rv-cnt">
133
  <div class="saswp-str-rtng">
134
  <div class="saswp-str">
135
- <span class="saswp-athr">'.$review['saswp_reviewer_name'].'</span>
136
  '.$starating.'
137
  </div>
138
  <span class="saswp-g-plus">
@@ -390,7 +390,7 @@ class saswp_reviews_service {
390
 
391
  }
392
 
393
- }
394
 
395
  }
396
 
127
  $output.= '<div class="saswp-g-review-panel">
128
  <div class="saswp-glg-review-body">
129
  <div class="saswp-rv-img">
130
+ <img src="'.esc_url($img_src).'" alt="'.esc_attr($review['saswp_reviewer_name']).'">
131
  </div>
132
  <div class="saswp-rv-cnt">
133
  <div class="saswp-str-rtng">
134
  <div class="saswp-str">
135
+ <span class="saswp-athr">'.esc_attr($review['saswp_reviewer_name']).'</span>
136
  '.$starating.'
137
  </div>
138
  <span class="saswp-g-plus">
390
 
391
  }
392
 
393
+ }
394
 
395
  }
396
 
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP
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.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.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
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.10
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.10');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
view/post_specific.php CHANGED
@@ -448,7 +448,7 @@ class saswp_post_specific {
448
  if(!empty($this->all_schema)){
449
  $schema_count = count($this->all_schema);
450
  }
451
- $custom_option = get_option('custom_schema_post_enable_'.esc_attr($post->ID));
452
  if($schema_count > 0){
453
 
454
  $show_post_types = get_post_types();
@@ -1223,20 +1223,7 @@ class saswp_post_specific {
1223
  $meta_field['id'] == 'saswp_product_schema_rating_'.$schema_id ||
1224
  $meta_field['id'] == 'saswp_review_schema_rating_'.$schema_id ||
1225
  $meta_field['id'] == 'local_rating_'.$schema_id ||
1226
- $meta_field['id'] == 'saswp_software_schema_rating_'.$schema_id ||
1227
-
1228
- $meta_field['id'] == 'saswp_article_rating_'.$schema_id ||
1229
- $meta_field['id'] == 'saswp_article_review_count_'.$schema_id ||
1230
-
1231
- $meta_field['id'] == 'saswp_newsarticle_rating_'.$schema_id ||
1232
- $meta_field['id'] == 'saswp_newsarticle_review_count_'.$schema_id ||
1233
-
1234
- $meta_field['id'] == 'saswp_blogposting_rating_'.$schema_id ||
1235
- $meta_field['id'] == 'saswp_blogposting_review_count_'.$schema_id ||
1236
-
1237
- $meta_field['id'] == 'saswp_tech_article_rating_'.$schema_id ||
1238
- $meta_field['id'] == 'saswp_tech_article_review_count_'.$schema_id ||
1239
-
1240
  $meta_field['id'] == 'saswp_service_schema_review_count_'.$schema_id ||
1241
  $meta_field['id'] == 'saswp_product_schema_review_count_'.$schema_id ||
1242
  $meta_field['id'] == 'saswp_review_schema_review_count_'.$schema_id ||
448
  if(!empty($this->all_schema)){
449
  $schema_count = count($this->all_schema);
450
  }
451
+
452
  if($schema_count > 0){
453
 
454
  $show_post_types = get_post_types();
1223
  $meta_field['id'] == 'saswp_product_schema_rating_'.$schema_id ||
1224
  $meta_field['id'] == 'saswp_review_schema_rating_'.$schema_id ||
1225
  $meta_field['id'] == 'local_rating_'.$schema_id ||
1226
+ $meta_field['id'] == 'saswp_software_schema_rating_'.$schema_id ||
 
 
 
 
 
 
 
 
 
 
 
 
 
1227
  $meta_field['id'] == 'saswp_service_schema_review_count_'.$schema_id ||
1228
  $meta_field['id'] == 'saswp_product_schema_review_count_'.$schema_id ||
1229
  $meta_field['id'] == 'saswp_review_schema_review_count_'.$schema_id ||
view/schema_type.php CHANGED
@@ -379,9 +379,6 @@ function saswp_get_item_reviewed_fields(){
379
 
380
  }
381
 
382
-
383
-
384
-
385
  if ( empty( $meta_value ) ) {
386
 
387
  $meta_value = $meta_field['default'];
@@ -1254,11 +1251,10 @@ function saswp_schema_type_meta_box_callback( $post) {
1254
  }
1255
 
1256
  ?>
1257
-
1258
-
1259
  </table>
1260
  <table class="option-table-class">
1261
- <tr><td></td><td><a style="float:right;" class="button button-primary saswp-add-custom-fields"><?php echo esc_html__( 'Add Field', 'schema-and-structured-data-for-wp' ); ?></a></td></tr>
1262
  </table>
1263
 
1264
  </div>
379
 
380
  }
381
 
 
 
 
382
  if ( empty( $meta_value ) ) {
383
 
384
  $meta_value = $meta_field['default'];
1251
  }
1252
 
1253
  ?>
1254
+
 
1255
  </table>
1256
  <table class="option-table-class">
1257
+ <tr><td><a class="button button-primary saswp-add-custom-fields"><?php echo esc_html__( 'Modify', 'schema-and-structured-data-for-wp' ); ?></a></td><td></td></tr>
1258
  </table>
1259
 
1260
  </div>