Version Description
(03 Sept 2019) =
- Added: DataFeed Schema type #411
- Enhancement: Remove button to modified Schema Output item #456.
- Bug Fixed: Compatibility code for The SEO Framework results in invalid output. #452
- Bug Fixed: Custom fields for products has the wrong identifier. #453
- Bug Fixed: Custom fields does not fetch post values #454
- Bug Fixed: Add field in Modify Schema Output defaults to null #455
- Bug Fixed: @context property value should be changed based on site ssl certificate #447
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.4 |
Comparing to | |
See all releases |
Code changes from version 1.9.3 to 1.9.4
- admin_section/common-function.php +11 -0
- admin_section/css/main-style.css +15 -11
- admin_section/css/main-style.min.css +1 -1
- admin_section/css/saswp-add-new.css +3 -0
- admin_section/css/saswp-add-new.min.css +1 -1
- admin_section/js/main-script.js +71 -29
- admin_section/js/main-script.min.js +1 -1928
- core/array-list/schemas.php +1 -0
- output/compatibility.php +1 -1
- output/flexmls.php +1 -1
- output/function.php +1 -1
- output/output.php +52 -2224
- output/output_post_specific.php +2246 -0
- output/review-output.php +1 -1
- output/service.php +96 -26
- readme.txt +11 -1
- reviews/reviews_service.php +1 -1
- structured-data-for-wp.php +3 -2
- view/paywall.php +1 -108
- view/post_specific.php +86 -12
- view/schema_type.php +124 -2
admin_section/common-function.php
CHANGED
@@ -2388,4 +2388,15 @@ function saswp_on_activation(){
|
|
2388 |
|
2389 |
}
|
2390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2391 |
}
|
2388 |
|
2389 |
}
|
2390 |
|
2391 |
+
}
|
2392 |
+
|
2393 |
+
function saswp_context_url(){
|
2394 |
+
|
2395 |
+
$url = 'http://schema.org';
|
2396 |
+
|
2397 |
+
if(is_ssl()){
|
2398 |
+
$url = 'https://schema.org';
|
2399 |
+
}
|
2400 |
+
|
2401 |
+
return $url;
|
2402 |
}
|
admin_section/css/main-style.css
CHANGED
@@ -1019,16 +1019,7 @@ Google review module ends here
|
|
1019 |
}
|
1020 |
/*** How to schema css starts here ***/
|
1021 |
|
1022 |
-
.saswp-
|
1023 |
-
.saswp-how-to-tool-table-div,
|
1024 |
-
.saswp-how-to-step-table-div,
|
1025 |
-
.saswp-tvseries-actor-table-div,
|
1026 |
-
.saswp-tvseries-season-table-div,
|
1027 |
-
.saswp-mc-symptom-table-div,
|
1028 |
-
.saswp-mc-risk_factor-table-div,
|
1029 |
-
.saswp-trip-itinerary-table-div,
|
1030 |
-
.saswp-faq-question-table-div,
|
1031 |
-
.saswp-mc-cause-table-div
|
1032 |
{
|
1033 |
border: 1px solid #aaa;
|
1034 |
margin-top: 5px;
|
@@ -1176,4 +1167,17 @@ Google review module ends here
|
|
1176 |
}
|
1177 |
.select2-container{
|
1178 |
width:100% !important;
|
1179 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1019 |
}
|
1020 |
/*** How to schema css starts here ***/
|
1021 |
|
1022 |
+
.saswp-dynamic-properties
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1023 |
{
|
1024 |
border: 1px solid #aaa;
|
1025 |
margin-top: 5px;
|
1167 |
}
|
1168 |
.select2-container{
|
1169 |
width:100% !important;
|
1170 |
+
}
|
1171 |
+
.saswp-schema-modify-section{
|
1172 |
+
margin-top: 15px;
|
1173 |
+
border-top: 1px solid #eee;
|
1174 |
+
padding-top: 15px;
|
1175 |
+
}
|
1176 |
+
.saswp-custom-meta-list{
|
1177 |
+
border: 1px solid #aaa;
|
1178 |
+
border-radius: 4px;
|
1179 |
+
}
|
1180 |
+
.saswp-custom-fields-table tr td:nth-child(3n+3) input{
|
1181 |
+
border: 1px solid #aaa;
|
1182 |
+
border-radius: 4px;
|
1183 |
+
}
|
admin_section/css/main-style.min.css
CHANGED
@@ -1 +1 @@
|
|
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}.saswp-wdi-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.saswp-wdi-rate-stars svg{fill:#ffb900}.saswp-wdi-rate-stars svg:hover{fill:#ffb900}.saswp-wdi-rate-stars svg:hover~svg{fill:none}.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%}.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}.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+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0y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MDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+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-faq-question-table-div,.saswp-how-to-step-table-div,.saswp-how-to-supply-table-div,.saswp-how-to-tool-table-div,.saswp-mc-cause-table-div,.saswp-mc-risk_factor-table-div,.saswp-mc-symptom-table-div,.saswp-trip-itinerary-table-div,.saswp-tvseries-actor-table-div,.saswp-tvseries-season-table-div{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}
|
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}.saswp-wdi-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.saswp-wdi-rate-stars svg{fill:#ffb900}.saswp-wdi-rate-stars svg:hover{fill:#ffb900}.saswp-wdi-rate-stars svg:hover~svg{fill:none}.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%}.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}.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/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4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ogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+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}
|
admin_section/css/saswp-add-new.css
CHANGED
@@ -2436,4 +2436,7 @@ body .amp_install_center {text-align: center}
|
|
2436 |
}
|
2437 |
.saswp-schem-type-note, .saswp-job-posting-note{
|
2438 |
color: chocolate;
|
|
|
|
|
|
|
2439 |
}
|
2436 |
}
|
2437 |
.saswp-schem-type-note, .saswp-job-posting-note{
|
2438 |
color: chocolate;
|
2439 |
+
}
|
2440 |
+
.saswp_modify_schema_checkbox{
|
2441 |
+
display: none;
|
2442 |
}
|
admin_section/css/saswp-add-new.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.merlin__body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;margin:0 auto;padding:0!important;background:#f1f1f1;box-shadow:none;font-size:14px;line-height:1.7em;-webkit-align-items:center;align-items:center;-webkit-box-align:center;-webkit-box-pack:center;-ms-flex-align:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}h1{margin:0 0 20px;padding:0;border:0;color:#444;font-size:20px;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p{margin:0;font-size:14px;line-height:1.7em}.merlin__input{display:block;width:70%;margin:14px auto 0;padding:4px 8px;border-radius:3px;font-size:12px}.lead+.merlin__button--knockout{z-index:-1}p.lead{z-index:9999;-webkit-animation:vanishOut .8s linear alternate;animation:vanishOut .8s linear alternate}p.success{-webkit-animation:vanishIn .7s linear alternate;animation:vanishIn .7s linear alternate}@-webkit-keyframes vanishIn{0%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(70px);filter:blur(70px)}100%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}}@keyframes vanishIn{0%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(70px);filter:blur(70px)}100%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}}@media screen and (prefers-reduced-motion:reduce){@-webkit-keyframes vanishIn{0%{opacity:0}100%{opacity:1}}@keyframes vanishIn{0%{opacity:0}100%{opacity:1}}}@-webkit-keyframes vanishOut{0%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}100%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(50px);filter:blur(50px)}}@keyframes vanishOut{0%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}100%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(50px);filter:blur(50px)}}@media screen and (prefers-reduced-motion:reduce){@-webkit-keyframes vanishOut{0%{opacity:1}100%{opacity:0}}@keyframes vanishOut{0%{opacity:1}100%{opacity:0}}}.hidden{display:none;overflow:hidden;clip:rect(1px,1px,1px,1px);position:absolute;width:1px;height:1px;padding:0;border:0;-webkit-clip-path:circle(1% at 1% 1%);clip-path:circle(1% at 1% 1%)}.huh-container,.huh-launcher{display:none!important}.icon.icon--merlin{position:absolute;right:15px;bottom:15px;width:50px;height:75px;margin:0}.merlin__helper{position:absolute;right:80px;bottom:40px}@-webkit-keyframes moveup{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}30%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}90%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}100%{opacity:0;-webkit-transform:translateY(-48px) scale(.99);transform:translateY(-48px) scale(.99);-webkit-transform-origin:top right;transform-origin:top right}}@keyframes moveup{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}30%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}90%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}100%{opacity:0;-webkit-transform:translateY(-48px) scale(.99);transform:translateY(-48px) scale(.99);-webkit-transform-origin:top right;transform-origin:top right}}@-webkit-keyframes fadeout{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-30px) scale(.94);transform:translateY(-30px) scale(.94);-webkit-transform-origin:top right;transform-origin:top right}}@keyframes fadeout{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-30px) scale(.94);transform:translateY(-30px) scale(.94);-webkit-transform-origin:top right;transform-origin:top right}}@-webkit-keyframes thirdmessgae{0%{overflow:hidden}100%{overflow:visibile}}@keyframes thirdmessgae{0%{overflow:hidden}100%{overflow:visibile}}.from-me{position:relative;position:absolute;right:0;bottom:10px;width:300px;margin-bottom:0;padding:6px 15px 7px;border-radius:12px;opacity:0;color:#fff;background:#0b93f6;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);transition:opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);transition:transform .5s cubic-bezier(.694,.5,.1,1),opacity .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .5s cubic-bezier(.694,.5,.1,1),opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);-webkit-transform:translateY(50px) translateX(10px) scale(.1);-ms-transform:translateY(50px) translateX(10px) scale(.1);transform:translateY(50px) translateX(10px) scale(.1)}.loaded .from-me:not(.is-third-message){opacity:1;-webkit-transform:translateY(0) translateX(0) scale(1);-ms-transform:translateY(0) translateX(0) scale(1);transform:translateY(0) translateX(0) scale(1);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right}.loaded .from-me.with-second-message{-webkit-animation:moveup 1.7s ease-out 4.2s forwards;animation:moveup 1.7s ease-out 4.2s forwards}.loaded .from-me.is-third-message{opacity:1;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;transition:opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 7s,opacity .3s cubic-bezier(.694,0,.335,1) 7.1s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 7s,opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right}.from-me a{color:#fff}.from-me p{font-size:13px}.from-me::before{position:absolute;z-index:0;right:-7px;bottom:-2px;height:20px;border-right:20px solid #0b93f6;border-bottom-left-radius:16px 14px;content:"";-webkit-transform:translate(0,-2px)}.from-me::after{position:absolute;z-index:0;right:-56px;bottom:-2px;width:26px;height:20px;border-bottom-left-radius:10px;background:#f1f1f1;content:"";-webkit-transform:translate(-30px,-2px)}.chat-bubble{position:absolute;right:12px;bottom:8px;width:24px;height:34px;margin-left:auto;opacity:0;background:#ddd;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;transition:opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 4.2s,opacity .3s cubic-bezier(.694,0,.335,1) 4.3s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 4.2s,opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;-webkit-transform:translateY(50px) translateX(10px) scale(.1);-ms-transform:translateY(50px) translateX(10px) scale(.1);transform:translateY(50px) translateX(10px) scale(.1)}.loaded .chat-bubble{opacity:1;-webkit-transform:translateY(0) translateX(0) scale(1);-ms-transform:translateY(0) translateX(0) scale(1);transform:translateY(0) translateX(0) scale(1);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right;-webkit-animation:fadeout .3s ease-out 6.5s forwards;animation:fadeout .3s ease-out 6.5s forwards}.chat-bubble:before{display:block;position:absolute;z-index:1;left:-17px;width:34px;height:34px;border-radius:50%;background:#ddd;content:""}.chat-bubble:after{display:block;position:absolute;z-index:1;right:-17px;width:34px;height:34px;border-radius:50%;background:#ddd;content:""}.chat-bubble .tail{position:absolute;right:-17px;bottom:-1px;width:15px;height:15px;border-radius:50%;background:#ddd}.chat-bubble .tail::before{display:block;position:absolute;right:-3px;bottom:-4px;width:5px;height:5px;border-radius:50%;background:#ddd;content:""}.chat-bubble .loading{position:absolute;z-index:10;top:14px;left:0;width:30px}.chat-bubble .loading .dot{display:block;float:left;width:6px;height:6px;margin:0 0 0 3px;border-radius:50%;background:#c1c1c1}.chat-bubble .loading .dot:first-child{margin:0}.chat-bubble .loading .dot.one{-webkit-animation:cycleOne 1s ease-in-out infinite;animation:cycleOne 1s ease-in-out infinite}.chat-bubble .loading .dot.two{-webkit-animation:cycleTwo 1s ease-in-out infinite}.chat-bubble .loading .dot.three{-webkit-animation:cycleThree 1s ease-in-out infinite;animation:cycleThree 1s ease-in-out infinite}@-webkit-keyframes cycleOne{0%{background:rgba(150,150,150,.4)}33.333%{background:#969696}66.6667%{background:rgba(150,150,150,.4)}100%{background:rgba(150,150,150,.4)}}@keyframes cycleOne{0%{background:rgba(150,150,150,.4)}33.333%{background:#969696}66.6667%{background:rgba(150,150,150,.4)}100%{background:rgba(150,150,150,.4)}}@-webkit-keyframes cycleTwo{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:#969696}100%{background:rgba(150,150,150,.4)}}@keyframes cycleTwo{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:#969696}100%{background:rgba(150,150,150,.4)}}@-webkit-keyframes cycleThree{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:rgba(150,150,150,.4)}100%{background:#969696}}@keyframes cycleThree{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:rgba(150,150,150,.4)}100%{background:#969696}}.dots{display:block;position:relative;z-index:0;top:10px;max-width:140px;margin:0 auto;padding:0;line-height:1;list-style:none;cursor:default}.merlin__content--ready .dots{display:none}.merlin__content--content .dots{-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1)}body.exiting .merlin__content--content .dots{opacity:0}.dots li{display:inline-block;position:relative;z-index:9999;top:-.15em;width:6px;height:6px;margin:0 1px;padding:0;border-radius:999px;background:#e3e3e3;-webkit-transition:background .3s cubic-bezier(.694,0,.335,1);transition:background .3s cubic-bezier(.694,0,.335,1)}.dots li.done{background:#ed1c25}.dots li.active{-webkit-animation:popIn .9s forwards;animation:popIn .9s forwards;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media screen and (prefers-reduced-motion:reduce){.dots li.active{background:#ed1c25;-webkit-animation:none;animation:none}}.dots li.active::after{display:inline-block;position:absolute;z-index:-1;left:0;width:7px;height:7px;border-radius:999px;content:"";-webkit-transition:box-shadow .3s cubic-bezier(.694,0,.335,1);transition:box-shadow .3s cubic-bezier(.694,0,.335,1);-webkit-animation:sonarEffect .4s ease-out .3s;animation:sonarEffect .4s ease-out .3s}@media screen and (prefers-reduced-motion:reduce){.dots li.active::after{-webkit-animation:none;animation:none}}@-webkit-keyframes sonarEffect{0%{opacity:1}40%{opacity:.5;box-shadow:0 0 0 1px #aae4ff}100%{opacity:0;box-shadow:0 0 0 1px #aae4ff;-webkit-transform:scale(1.6);transform:scale(1.6)}}@keyframes sonarEffect{0%{opacity:1}40%{opacity:.5;box-shadow:0 0 0 1px #aae4ff}100%{opacity:0;box-shadow:0 0 0 1px #aae4ff;-webkit-transform:scale(1.6);transform:scale(1.6)}}@-webkit-keyframes popIn{0%{background:#e3e3e3}55%{background:#e3e3e3;-webkit-transform:scale(1);transform:scale(1)}65%{background:#ed1c25;-webkit-transform:scale(1.6);transform:scale(1.6)}85%{background:#ed1c25;-webkit-transform:scale(.8);transform:scale(.8)}95%{background:#ed1c25;-webkit-transform:scale(1.2);transform:scale(1.2)}100%{background:#ed1c25;-webkit-transform:scale(1);transform:scale(1)}}@keyframes popIn{0%{background:#e3e3e3}55%{background:#e3e3e3;-webkit-transform:scale(1);transform:scale(1)}65%{background:#ed1c25;-webkit-transform:scale(1.6);transform:scale(1.6)}85%{background:#ed1c25;-webkit-transform:scale(.8);transform:scale(.8)}95%{background:#ed1c25;-webkit-transform:scale(1.2);transform:scale(1.2)}100%{background:#ed1c25;-webkit-transform:scale(1);transform:scale(1)}}svg:not(:root){overflow:hidden}.icon{max-width:100%;margin-bottom:2.8em;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.js--finished .icon:not(.icon--checkmark){opacity:0;-webkit-transition:opacity .4s cubic-bezier(.694,0,.335,1) 0s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:opacity .4s cubic-bezier(.694,0,.335,1) 0s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .4s cubic-bezier(.694,0,.335,1),opacity .4s cubic-bezier(.694,0,.335,1) 0s,filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .4s cubic-bezier(.694,0,.335,1),opacity .4s cubic-bezier(.694,0,.335,1) 0s,filter .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);-webkit-filter:blur(10px);filter:blur(10px)}.merlin__content{display:block;overflow:hidden;zoom:1;position:relative;box-sizing:border-box;width:650px;margin:.5em auto 0;padding:140px 33px 35px;border-radiuwidth:600s: 7px;color:#444;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.07);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center}.merlin__content--transition{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1) 0,-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;-webkit-transform:translateX(50%) scale(.95);-ms-transform:translateX(50%) scale(.95);transform:translateX(50%) scale(.95);-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){.merlin__content--transition{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(2px);filter:blur(2px)}}.merlin__content--welcome .merlin__content--transition{opacity:1;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(0);filter:blur(0)}.merlin__content--plugins .merlin__content__footer.no-plugins,.merlin__content--welcome .merlin__content__footer{padding-top:22px}.merlin__content--plugins .merlin__content__footer{padding-top:3px}.merlin__content--license .merlin__content__footer{padding-top:5px}.merlin__content--ready{padding-bottom:12px}body.loaded .merlin__content--transition{opacity:1;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(0);filter:blur(0)}body.exiting .merlin__content--transition{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .7s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .7s cubic-bezier(.694,0,.335,1) 0,-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;-webkit-transform:translateX(-40%) scale(.96);-ms-transform:translateX(-40%) scale(.96);transform:translateX(-40%) scale(.96);-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){body.exiting .merlin__content--transition{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(2px);filter:blur(2px)}}.merlin__content--welcome{opacity:0;-webkit-transition:opacity .4s cubic-bezier(.694,0,.335,1);transition:opacity .4s cubic-bezier(.694,0,.335,1);-webkit-animation:animation 1s linear both .2s;animation:animation 1s linear both .2s}body.loaded .merlin__content--welcome{opacity:1}@media screen and (prefers-reduced-motion:reduce){.merlin__content--welcome{opacity:1;-webkit-animation:none;animation:none}}@-webkit-keyframes animation{0%{-webkit-transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}4.5%{-webkit-transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1)}5.51%{-webkit-transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1)}9.01%{-webkit-transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1)}11.01%{-webkit-transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}13.51%{-webkit-transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1)}16.52%{-webkit-transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1)}17.92%{-webkit-transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1)}21.92%{-webkit-transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1)}29.03%{-webkit-transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}34.63%{-webkit-transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1)}36.24%{-webkit-transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1)}40.14%{-webkit-transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1)}50.55%{-webkit-transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}62.36%{-webkit-transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1)}79.08%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}84.68%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes animation{0%{-webkit-transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}4.5%{-webkit-transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1)}5.51%{-webkit-transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1)}9.01%{-webkit-transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1)}11.01%{-webkit-transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}13.51%{-webkit-transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1)}16.52%{-webkit-transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1)}17.92%{-webkit-transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1)}21.92%{-webkit-transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1)}29.03%{-webkit-transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}34.63%{-webkit-transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1)}36.24%{-webkit-transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1)}40.14%{-webkit-transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1)}50.55%{-webkit-transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}62.36%{-webkit-transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1)}79.08%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}84.68%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}.merlin__button{display:inline-block;overflow:hidden;position:relative;padding:8px 18px 9px;border:0;border-radius:4px;color:#a1a5a8;background:#fff;font-size:15px;font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;text-decoration:none;cursor:pointer;-webkit-transition:color 150ms cubic-bezier(.694,0,.335,1),background 150ms cubic-bezier(.694,0,.335,1);transition:color 150ms cubic-bezier(.694,0,.335,1),background 150ms cubic-bezier(.694,0,.335,1)}@media screen and (prefers-reduced-motion:reduce){.merlin__button{-webkit-transition:color 50ms ease-in-out,background 50ms ease-in-out;transition:color 50ms ease-in-out,background 50ms ease-in-out}}.merlin__button:hover{background:#f4f4f4}.merlin__button:hover .chevron::after,.merlin__button:hover .chevron::before{background:#a1a5a8}.merlin__button:active{background:#ebebeb}.merlin__button span{display:inline-block}.merlin__button--colorchange{-webkit-animation:colorchange .8s infinite alternate;animation:colorchange .8s infinite alternate}.merlin__button--fullwidth{display:block;z-index:999;width:60%;margin:0 auto;padding-top:9px;padding-bottom:10px;font-size:14px}.merlin__button--next,.merlin__button--skip{position:absolute;bottom:12px}.merlin__button--next{right:12px;color:#ed1c25}.merlin__button--next:active,.merlin__button--next:hover{color:#111}.merlin__button--next:focus{outline:0;box-shadow:none}.merlin__button--skip{left:12px}.merlin__button--skip:active,.merlin__button--skip:hover{color:#666}.merlin__button--blue{color:#fff;background:#ed1c25}.merlin__button--blue:active,.merlin__button--blue:hover{color:#fff;background:#333}.merlin__button--knockout{margin-left:-10px;padding-top:10px;padding-right:25px;color:#cbcbcb;background:#fff;font-size:14px;font-weight:500;-webkit-transition:color .9s cubic-bezier(.694,0,.335,1);transition:color .9s cubic-bezier(.694,0,.335,1)}.merlin__button--knockout:active,.merlin__button--knockout:hover{color:#a1a5a8;background:0 0}.merlin__button--no-chevron{margin-top:3px;margin-left:0;padding-right:18px}.merlin__button--loading:active,.merlin__button--loading:hover{background:0 0}.merlin__button--loading__text{-webkit-transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,-webkit-filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,-webkit-filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,filter 4.1s cubic-bezier(.18,1,.21,1),-webkit-filter 4.1s cubic-bezier(.18,1,.21,1)}.merlin__button--loading__spinner{position:absolute;top:50%;left:50%;opacity:0;-webkit-transition:opacity .1s ease,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,transform .8s cubic-bezier(.18,1,.21,1) .3s,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.merlin__button--loading .merlin__button--loading__text{opacity:0;-webkit-filter:blur(100px);filter:blur(100px)}.merlin__button--loading .merlin__button--loading__spinner{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#skip{display:inline-block;visibility:visible;z-index:1;opacity:1}#close{display:none;visibility:hidden;z-index:-1;opacity:0}@-webkit-keyframes colorchange{0%{background:#fff}100%{background:#f4f4f4}}@keyframes colorchange{0%{background:#fff}100%{background:#f4f4f4}}.chevron{display:block;position:absolute;z-index:1;top:58%;right:10px;-webkit-transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1),-ms-transform-origin .9s cubic-bezier(.86,0,.07,1)}.chevron::after,.chevron::before{display:block;position:absolute;z-index:1;top:50%;width:10px;height:2px;border-radius:2px;background:#d1d1d1;content:" ";-webkit-transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1),-ms-transform-origin .9s cubic-bezier(.86,0,.07,1);-webkit-backface-visibility:hidden;backface-visibility:hidden}.chevron::before{right:50%;-webkit-transform:rotate(40deg) scaleY(1);-ms-transform:rotate(40deg) scaleY(1);transform:rotate(40deg) scaleY(1);-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.chevron::after{left:50%;-webkit-transform:rotate(-40deg) scaleY(1);-ms-transform:rotate(-40deg) scaleY(1);transform:rotate(-40deg) scaleY(1);-webkit-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%}.merlin__drawer--open .chevron{top:44%}.merlin__drawer--open .chevron::before{-webkit-transform:rotate(-40deg) scaleY(1);-ms-transform:rotate(-40deg) scaleY(1);transform:rotate(-40deg) scaleY(1);-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.merlin__drawer--open .chevron::after{-webkit-transform:rotate(40deg) scaleY(1);-ms-transform:rotate(40deg) scaleY(1);transform:rotate(40deg) scaleY(1);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin-spinner{display:block;position:absolute;top:calc(50% - 10px);left:calc(50% - 10px);width:20px;height:20px;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 50ms;transition:opacity .3s cubic-bezier(.694,0,.335,1) 50ms;-webkit-animation:container-rotate 1.6s linear infinite;animation:container-rotate 1.6s linear infinite}.exiting .merlin-spinner{opacity:0}.merlin-spinner-line{display:block;position:absolute;width:100%;height:100%;opacity:0;-webkit-transition:border-color .3s cubic-bezier(.694,0,.335,1);transition:border-color .3s cubic-bezier(.694,0,.335,1)}.merlin-spinner-line--1{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-1-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-1-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--2{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-2-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-2-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--3{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-3-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-3-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--4{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-4-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-4-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-ticker{overflow:hidden;position:absolute;top:0;left:45%;box-sizing:border-box;width:20%;height:100%;border-color:inherit}.merlin-spinner-line-cog{display:inline-block;overflow:hidden;position:relative;width:50%;height:100%;border-color:inherit}.merlin-spinner-line-cog-inner{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:200%;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-radius:50%;-webkit-animation:none;animation:none}.merlin-spinner-line-cog-inner--left{border-right-color:transparent;-webkit-transform:rotate(129deg);-ms-transform:rotate(129deg);transform:rotate(129deg);-webkit-animation:left-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both;animation:left-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-cog-inner--right{left:-100%;border-left-color:transparent;-webkit-transform:rotate(-129deg);-ms-transform:rotate(-129deg);transform:rotate(-129deg);-webkit-animation:right-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both;animation:right-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-cog-inner--center{left:-450%;width:1000%}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes left-spin{0%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@keyframes left-spin{0%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes right-spin{0%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}@keyframes right-spin{0%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}@-webkit-keyframes line-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes line-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@-webkit-keyframes line-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes line-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@-webkit-keyframes line-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@keyframes line-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@-webkit-keyframes line-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}@keyframes line-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}.return-to-dashboard{display:block;margin-top:1em;padding:1em;color:#b5b5b5;font-size:13px;text-align:center;text-decoration:none;-webkit-transition:color 150ms ease,opacity .3s cubic-bezier(.694,0,.335,1) 150ms;transition:color 150ms ease,opacity .3s cubic-bezier(.694,0,.335,1) 150ms}@media screen and (prefers-reduced-motion:reduce){.return-to-dashboard{opacity:1!important}}.merlin__body--welcome .return-to-dashboard{opacity:0}.merlin__body--welcome.loaded .return-to-dashboard{opacity:1}.return-to-dashboard:hover{color:#ed1c25;box-shadow:0 0 10px rgba(0,0,0,.06)}.merlin__drawer{overflow:hidden;max-height:0;margin:0;opacity:0;-webkit-transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s;transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);pointer-events:none}.merlin__drawer li{position:relative;margin:0;padding:4px 0;opacity:0;text-align:center;-webkit-transition:.25s ease;transition:.25s ease;-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}.merlin__drawer li:last-child{padding-bottom:0}.merlin__drawer li:nth-of-type(10){-webkit-transition-delay:.2s;transition-delay:.2s}.merlin__drawer li:nth-of-type(9){-webkit-transition-delay:.18s;transition-delay:.18s}.merlin__drawer li:nth-of-type(8){-webkit-transition-delay:.16s;transition-delay:.16s}.merlin__drawer li:nth-of-type(7){-webkit-transition-delay:.14s;transition-delay:.14s}.merlin__drawer li:nth-of-type(6){-webkit-transition-delay:.12s;transition-delay:.12s}.merlin__drawer li:nth-of-type(5){-webkit-transition-delay:.1s;transition-delay:.1s}.merlin__drawer li:nth-of-type(4){-webkit-transition-delay:80ms;transition-delay:80ms}.merlin__drawer li:nth-of-type(3){-webkit-transition-delay:60ms;transition-delay:60ms}.merlin__drawer li:nth-of-type(2){-webkit-transition-delay:40ms;transition-delay:40ms}.merlin__drawer li:nth-of-type(1){-webkit-transition-delay:20ms;transition-delay:20ms}.merlin__drawer--open .merlin__drawer{max-height:400px;opacity:1;-webkit-transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s;transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);pointer-events:inherit}.merlin__drawer--open .merlin__drawer li{opacity:1;-webkit-transition:.4s ease;transition:.4s ease;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.merlin__drawer--open .merlin__drawer li:nth-of-type(1){-webkit-transition-delay:.15s;transition-delay:.15s}.merlin__drawer--open .merlin__drawer li:nth-of-type(2){-webkit-transition-delay:.3s;transition-delay:.3s}.merlin__drawer--open .merlin__drawer li:nth-of-type(3){-webkit-transition-delay:.45s;transition-delay:.45s}.merlin__drawer--open .merlin__drawer li:nth-of-type(4){-webkit-transition-delay:.6s;transition-delay:.6s}.merlin__drawer--open .merlin__drawer li:nth-of-type(5){-webkit-transition-delay:.75s;transition-delay:.75s}.merlin__drawer--open .merlin__drawer li:nth-of-type(6){-webkit-transition-delay:.9s;transition-delay:.9s}.merlin__drawer--open .merlin__drawer li:nth-of-type(7){-webkit-transition-delay:1.05s;transition-delay:1.05s}.merlin__drawer--open .merlin__drawer li:nth-of-type(8){-webkit-transition-delay:1.2s;transition-delay:1.2s}.merlin__drawer--open .merlin__drawer li:nth-of-type(9){-webkit-transition-delay:1.35s;transition-delay:1.35s}.merlin__drawer--open .merlin__drawer li:nth-of-type(10){-webkit-transition-delay:1.5s;transition-delay:1.5s}.merlin__drawer--open .merlin__button--knockout{color:#a1a5a8}.merlin__drawer--open .chevron::after,.merlin__drawer--open .chevron::before{background:#a1a5a8}.merlin__drawer--open .merlin__button--next{-webkit-animation:colorchange 1s infinite alternate 1s;animation:colorchange 1s infinite alternate 1s}.merlin__drawer--open .merlin__button--loading{-webkit-animation:none;animation:none}.merlin__drawer--open #skip{display:none;visibility:hidden;z-index:-1;opacity:0}.merlin__drawer--open #close{display:inline-block;visibility:visible;z-index:1;opacity:1}.merlin__drawer--import-content{padding-top:3px}.merlin__drawer--import-content li{padding:2px 0;text-align:left}.merlin__drawer--import-content li:hover span{color:#ed1c25}.merlin__drawer--import-content label{display:inline-block;position:relative;width:100%;cursor:pointer}.merlin__drawer--import-content label span{-webkit-transition:color .1s;transition:color .1s}.merlin__drawer--import-content label i{display:inline-block;float:right;position:relative;width:13px;height:13px;margin-top:3px;border:2px solid #b2b7ba;border-radius:50%;background-color:transparent;text-align:left;-webkit-transition:border-color .1s,background-color .1s,-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,transform 350ms cubic-bezier(.78,-1.22,.17,1.89),-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center}.merlin__drawer--import-content label i:before{position:absolute;top:.4em;left:.2em;width:0;height:2px;border-radius:2px;background:#ed1c25;content:"";-webkit-transition:width 50ms ease 50ms;transition:width 50ms ease 50ms;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin__drawer--import-content label i:after{position:absolute;top:.67em;left:4px;width:0;height:2px;border-radius:2px;background:#ed1c25;content:"";-webkit-transition:width 50ms ease;transition:width 50ms ease;-webkit-transform:rotate(310deg);-ms-transform:rotate(310deg);transform:rotate(310deg);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin__drawer--import-content label:hover i{border-color:#ed1c25}.merlin__drawer--import-content .checkbox{display:none!important}.merlin__drawer--import-content .checkbox:checked+label.installing i{border-color:#ffb900;background-color:#ffb900;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1),border-color .4s cubic-bezier(.18,1,.21,1);transition:background-color .4s cubic-bezier(.18,1,.21,1),border-color .4s cubic-bezier(.18,1,.21,1)}.merlin__drawer--import-content .checkbox:checked+label.success i{border-color:#46b450;background-color:#46b450;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms;transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms}.merlin__drawer--import-content .checkbox:checked+label.error i{border-color:#d54e21;background-color:#d54e21;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms;transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms}.merlin__drawer--import-content .checkbox:checked+label i{border-color:#ed1c25;background-color:#ed1c25;-webkit-transform:scale(1.2);-ms-transform:scale(1.2);transform:scale(1.2)}.merlin__drawer--import-content .checkbox:checked+label i:after{width:9px;background:#fff;-webkit-transition:width 50ms ease .1s;transition:width 50ms ease .1s}.merlin__drawer--import-content .checkbox:checked+label i:before{width:5px;background:#fff;-webkit-transition:width 50ms ease .1s;transition:width 50ms ease .1s}.merlin__drawer--open .merlin__drawer--install-plugins{padding-bottom:1px}.merlin__drawer--install-plugins li span{display:none}.merlin__drawer--install-plugins li .spinner{display:inline-block;visibility:visible;position:absolute;right:10px;margin-top:2px;opacity:0;-webkit-transition:opacity .2s cubic-bezier(.694,0,.335,1);transition:opacity .2s cubic-bezier(.694,0,.335,1)}.merlin__drawer--install-plugins.installing li .spinner{opacity:1}.merlin__drawer--install-plugins.installing li span{opacity:0}.merlin__drawer--open .merlin__drawer--extras{padding-bottom:30px}.icon--checkmark{display:none;position:absolute;top:-110px;left:calc(50% - 40px);width:80px;height:80px;border-radius:50%;box-shadow:inset 0 0 0 #46b450;-webkit-animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both;animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both;stroke:#fff;stroke-miterlimit:10;stroke-width:2}.js--finished .icon--checkmark{display:inline-block}.icon--checkmark__check{-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards;animation:stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards;stroke-dasharray:48;stroke-dashoffset:48}.icon--checkmark__circle{-webkit-animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards;animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards;fill:none;stroke:#46b450;stroke-dasharray:166;stroke-dashoffset:166;stroke-miterlimit:10;stroke-width:2}@-webkit-keyframes stroke{100%{stroke-dashoffset:0}}@keyframes stroke{100%{stroke-dashoffset:0}}@-webkit-keyframes scale{0%,100%{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@keyframes scale{0%,100%{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@-webkit-keyframes fill{100%{box-shadow:inset 0 0 0 100px #46b450}}@keyframes fill{100%{box-shadow:inset 0 0 0 100px #46b450}}.merlin__content__footer{clear:both;margin-top:2.75em}.merlin__content__footer:after,.merlin__content__footer:before{display:table;content:""}.merlin__content__footer:after{clear:both}.merlin__content__footer--fullwidth{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1);transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);-webkit-transform-origin:top;-ms-transform-origin:top;transform-origin:top;-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){.merlin__content__footer--fullwidth{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-filter:blur(2px);filter:blur(2px)}}body.loaded .merlin__content__footer--fullwidth{opacity:1;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-filter:blur(0);filter:blur(0)}.merlin__content--license .merlin__content__footer{margin-top:-.24em}.merlin__content--ready .merlin__content__footer{margin-top:1.9em}.merlin__content--ready .merlin__content__footer .merlin__button--knockout{margin-top:10px}.merlin__content--content .merlin__content__footer{-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1)}body.exiting .merlin__content--content .merlin__content__footer{opacity:0}.saswp_install_wizard{text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:1px;color:rgba(0,0,0,.3)}.saswp_branding{background-image:url(../images/sd-logo-white.png);padding:40px;background-size:80px;background-repeat:no-repeat;position:absolute;left:calc(50% - 40px);top:-110px}.merlin__button--loading:before{background-image:url(data:image/gif;base64,R0lGODlhUABQAKUAAAQCBISGhMTGxERCRCQiJKSmpOTm5GRiZBQSFPT29JSWlLS2tNTW1DQyNHR2dAwKDFRWVKyurOzu7BwaHIyOjCwqLGxqbPz+/JyenOTi5AQGBIyKjNTS1ExKTCQmJKyqrOzq7GRmZBQWFPz6/JyanLy+vNza3Dw+PHx+fAwODFxeXLSytPTy9BweHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBwAuACwAAAAAUABQAAAG/kCXcEgsGo/IpHLJbDqf0Kh0Sq1ar9jskyXQKgUs73JUaCEMYqMB0SqM0kbTQAMAUOBESh3QYeBdFyQidS0kCX9CCRgtdQgYb2IJB3QAISCIRSAheweHWgYndSIrF5hGIwuDACdo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l1TlU5);content:" ";display:inline-block;background-size:30px;background-repeat:no-repeat;width:53px;height:35px;position:absolute;right:-3px;top:3px;opacity:.7;background-position:0 3px}body .amp_install_center{text-align:center}#ampforwp-design-select{width:170px;height:30px;position:relative;top:-15px}.amp_install_theme_preview{margin-bottom:-30px}.amp_install_logo_preview{max-width:180px;height:auto;border-radius:8px;box-shadow:1px 1px 10px rgba(0,0,0,.25)}.saswp_fields{width:100%}.saswp_fields label{width:40%;display:inline-block}.saswp_fields select{width:50%}.saswp-placement-or-group{text-decoration:none;margin-left:8px;margin-bottom:8px;align-items:flex-start;text-align:center;cursor:pointer;color:buttontext;background-color:buttonface;box-sizing:border-box;padding:2px 6px 3px;border-width:2px;border-style:outset}.option-table-class select{width:100%}.option-table-class input[type=text]{width:100%}.option-table-class{width:100%}.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-placement-group{margin-bottom:5px}#saswp_amp_select{border:0}.saswp_hide{display:none}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}
|
1 |
+
.merlin__body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;margin:0 auto;padding:0!important;background:#f1f1f1;box-shadow:none;font-size:14px;line-height:1.7em;-webkit-align-items:center;align-items:center;-webkit-box-align:center;-webkit-box-pack:center;-ms-flex-align:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}h1{margin:0 0 20px;padding:0;border:0;color:#444;font-size:20px;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p{margin:0;font-size:14px;line-height:1.7em}.merlin__input{display:block;width:70%;margin:14px auto 0;padding:4px 8px;border-radius:3px;font-size:12px}.lead+.merlin__button--knockout{z-index:-1}p.lead{z-index:9999;-webkit-animation:vanishOut .8s linear alternate;animation:vanishOut .8s linear alternate}p.success{-webkit-animation:vanishIn .7s linear alternate;animation:vanishIn .7s linear alternate}@-webkit-keyframes vanishIn{0%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(70px);filter:blur(70px)}100%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}}@keyframes vanishIn{0%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(70px);filter:blur(70px)}100%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}}@media screen and (prefers-reduced-motion:reduce){@-webkit-keyframes vanishIn{0%{opacity:0}100%{opacity:1}}@keyframes vanishIn{0%{opacity:0}100%{opacity:1}}}@-webkit-keyframes vanishOut{0%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}100%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(50px);filter:blur(50px)}}@keyframes vanishOut{0%{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(0);filter:blur(0)}100%{opacity:0;-webkit-transform:scale(2,2);transform:scale(2,2);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-filter:blur(50px);filter:blur(50px)}}@media screen and (prefers-reduced-motion:reduce){@-webkit-keyframes vanishOut{0%{opacity:1}100%{opacity:0}}@keyframes vanishOut{0%{opacity:1}100%{opacity:0}}}.hidden{display:none;overflow:hidden;clip:rect(1px,1px,1px,1px);position:absolute;width:1px;height:1px;padding:0;border:0;-webkit-clip-path:circle(1% at 1% 1%);clip-path:circle(1% at 1% 1%)}.huh-container,.huh-launcher{display:none!important}.icon.icon--merlin{position:absolute;right:15px;bottom:15px;width:50px;height:75px;margin:0}.merlin__helper{position:absolute;right:80px;bottom:40px}@-webkit-keyframes moveup{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}30%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}90%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}100%{opacity:0;-webkit-transform:translateY(-48px) scale(.99);transform:translateY(-48px) scale(.99);-webkit-transform-origin:top right;transform-origin:top right}}@keyframes moveup{0%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}30%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}90%{opacity:1;-webkit-transform:translateY(-42px);transform:translateY(-42px)}100%{opacity:0;-webkit-transform:translateY(-48px) scale(.99);transform:translateY(-48px) scale(.99);-webkit-transform-origin:top right;transform-origin:top right}}@-webkit-keyframes fadeout{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-30px) scale(.94);transform:translateY(-30px) scale(.94);-webkit-transform-origin:top right;transform-origin:top right}}@keyframes fadeout{0%{opacity:1}100%{opacity:0;-webkit-transform:translateY(-30px) scale(.94);transform:translateY(-30px) scale(.94);-webkit-transform-origin:top right;transform-origin:top right}}@-webkit-keyframes thirdmessgae{0%{overflow:hidden}100%{overflow:visibile}}@keyframes thirdmessgae{0%{overflow:hidden}100%{overflow:visibile}}.from-me{position:relative;position:absolute;right:0;bottom:10px;width:300px;margin-bottom:0;padding:6px 15px 7px;border-radius:12px;opacity:0;color:#fff;background:#0b93f6;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);transition:opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);transition:transform .5s cubic-bezier(.694,.5,.1,1),opacity .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .5s cubic-bezier(.694,.5,.1,1),opacity .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1);-webkit-transform:translateY(50px) translateX(10px) scale(.1);-ms-transform:translateY(50px) translateX(10px) scale(.1);transform:translateY(50px) translateX(10px) scale(.1)}.loaded .from-me:not(.is-third-message){opacity:1;-webkit-transform:translateY(0) translateX(0) scale(1);-ms-transform:translateY(0) translateX(0) scale(1);transform:translateY(0) translateX(0) scale(1);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right}.loaded .from-me.with-second-message{-webkit-animation:moveup 1.7s ease-out 4.2s forwards;animation:moveup 1.7s ease-out 4.2s forwards}.loaded .from-me.is-third-message{opacity:1;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;transition:opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 7s,opacity .3s cubic-bezier(.694,0,.335,1) 7.1s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 7s,opacity .3s cubic-bezier(.694,0,.335,1) 7.1s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 7s;-webkit-transform:scale(1) translateY(0);-ms-transform:scale(1) translateY(0);transform:scale(1) translateY(0);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right}.from-me a{color:#fff}.from-me p{font-size:13px}.from-me::before{position:absolute;z-index:0;right:-7px;bottom:-2px;height:20px;border-right:20px solid #0b93f6;border-bottom-left-radius:16px 14px;content:"";-webkit-transform:translate(0,-2px)}.from-me::after{position:absolute;z-index:0;right:-56px;bottom:-2px;width:26px;height:20px;border-bottom-left-radius:10px;background:#f1f1f1;content:"";-webkit-transform:translate(-30px,-2px)}.chat-bubble{position:absolute;right:12px;bottom:8px;width:24px;height:34px;margin-left:auto;opacity:0;background:#ddd;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;transition:opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 4.2s,opacity .3s cubic-bezier(.694,0,.335,1) 4.3s;transition:transform .5s cubic-bezier(.694,.5,.1,1) 4.2s,opacity .3s cubic-bezier(.694,0,.335,1) 4.3s,-webkit-transform .5s cubic-bezier(.694,.5,.1,1) 4.2s;-webkit-transform:translateY(50px) translateX(10px) scale(.1);-ms-transform:translateY(50px) translateX(10px) scale(.1);transform:translateY(50px) translateX(10px) scale(.1)}.loaded .chat-bubble{opacity:1;-webkit-transform:translateY(0) translateX(0) scale(1);-ms-transform:translateY(0) translateX(0) scale(1);transform:translateY(0) translateX(0) scale(1);-webkit-transform-origin:right;-ms-transform-origin:right;transform-origin:right;-webkit-animation:fadeout .3s ease-out 6.5s forwards;animation:fadeout .3s ease-out 6.5s forwards}.chat-bubble:before{display:block;position:absolute;z-index:1;left:-17px;width:34px;height:34px;border-radius:50%;background:#ddd;content:""}.chat-bubble:after{display:block;position:absolute;z-index:1;right:-17px;width:34px;height:34px;border-radius:50%;background:#ddd;content:""}.chat-bubble .tail{position:absolute;right:-17px;bottom:-1px;width:15px;height:15px;border-radius:50%;background:#ddd}.chat-bubble .tail::before{display:block;position:absolute;right:-3px;bottom:-4px;width:5px;height:5px;border-radius:50%;background:#ddd;content:""}.chat-bubble .loading{position:absolute;z-index:10;top:14px;left:0;width:30px}.chat-bubble .loading .dot{display:block;float:left;width:6px;height:6px;margin:0 0 0 3px;border-radius:50%;background:#c1c1c1}.chat-bubble .loading .dot:first-child{margin:0}.chat-bubble .loading .dot.one{-webkit-animation:cycleOne 1s ease-in-out infinite;animation:cycleOne 1s ease-in-out infinite}.chat-bubble .loading .dot.two{-webkit-animation:cycleTwo 1s ease-in-out infinite}.chat-bubble .loading .dot.three{-webkit-animation:cycleThree 1s ease-in-out infinite;animation:cycleThree 1s ease-in-out infinite}@-webkit-keyframes cycleOne{0%{background:rgba(150,150,150,.4)}33.333%{background:#969696}66.6667%{background:rgba(150,150,150,.4)}100%{background:rgba(150,150,150,.4)}}@keyframes cycleOne{0%{background:rgba(150,150,150,.4)}33.333%{background:#969696}66.6667%{background:rgba(150,150,150,.4)}100%{background:rgba(150,150,150,.4)}}@-webkit-keyframes cycleTwo{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:#969696}100%{background:rgba(150,150,150,.4)}}@keyframes cycleTwo{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:#969696}100%{background:rgba(150,150,150,.4)}}@-webkit-keyframes cycleThree{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:rgba(150,150,150,.4)}100%{background:#969696}}@keyframes cycleThree{0%{background:rgba(150,150,150,.4)}33.333%{background:rgba(150,150,150,.4)}66.6667%{background:rgba(150,150,150,.4)}100%{background:#969696}}.dots{display:block;position:relative;z-index:0;top:10px;max-width:140px;margin:0 auto;padding:0;line-height:1;list-style:none;cursor:default}.merlin__content--ready .dots{display:none}.merlin__content--content .dots{-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1)}body.exiting .merlin__content--content .dots{opacity:0}.dots li{display:inline-block;position:relative;z-index:9999;top:-.15em;width:6px;height:6px;margin:0 1px;padding:0;border-radius:999px;background:#e3e3e3;-webkit-transition:background .3s cubic-bezier(.694,0,.335,1);transition:background .3s cubic-bezier(.694,0,.335,1)}.dots li.done{background:#ed1c25}.dots li.active{-webkit-animation:popIn .9s forwards;animation:popIn .9s forwards;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media screen and (prefers-reduced-motion:reduce){.dots li.active{background:#ed1c25;-webkit-animation:none;animation:none}}.dots li.active::after{display:inline-block;position:absolute;z-index:-1;left:0;width:7px;height:7px;border-radius:999px;content:"";-webkit-transition:box-shadow .3s cubic-bezier(.694,0,.335,1);transition:box-shadow .3s cubic-bezier(.694,0,.335,1);-webkit-animation:sonarEffect .4s ease-out .3s;animation:sonarEffect .4s ease-out .3s}@media screen and (prefers-reduced-motion:reduce){.dots li.active::after{-webkit-animation:none;animation:none}}@-webkit-keyframes sonarEffect{0%{opacity:1}40%{opacity:.5;box-shadow:0 0 0 1px #aae4ff}100%{opacity:0;box-shadow:0 0 0 1px #aae4ff;-webkit-transform:scale(1.6);transform:scale(1.6)}}@keyframes sonarEffect{0%{opacity:1}40%{opacity:.5;box-shadow:0 0 0 1px #aae4ff}100%{opacity:0;box-shadow:0 0 0 1px #aae4ff;-webkit-transform:scale(1.6);transform:scale(1.6)}}@-webkit-keyframes popIn{0%{background:#e3e3e3}55%{background:#e3e3e3;-webkit-transform:scale(1);transform:scale(1)}65%{background:#ed1c25;-webkit-transform:scale(1.6);transform:scale(1.6)}85%{background:#ed1c25;-webkit-transform:scale(.8);transform:scale(.8)}95%{background:#ed1c25;-webkit-transform:scale(1.2);transform:scale(1.2)}100%{background:#ed1c25;-webkit-transform:scale(1);transform:scale(1)}}@keyframes popIn{0%{background:#e3e3e3}55%{background:#e3e3e3;-webkit-transform:scale(1);transform:scale(1)}65%{background:#ed1c25;-webkit-transform:scale(1.6);transform:scale(1.6)}85%{background:#ed1c25;-webkit-transform:scale(.8);transform:scale(.8)}95%{background:#ed1c25;-webkit-transform:scale(1.2);transform:scale(1.2)}100%{background:#ed1c25;-webkit-transform:scale(1);transform:scale(1)}}svg:not(:root){overflow:hidden}.icon{max-width:100%;margin-bottom:2.8em;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.js--finished .icon:not(.icon--checkmark){opacity:0;-webkit-transition:opacity .4s cubic-bezier(.694,0,.335,1) 0s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:opacity .4s cubic-bezier(.694,0,.335,1) 0s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .4s cubic-bezier(.694,0,.335,1),opacity .4s cubic-bezier(.694,0,.335,1) 0s,filter .3s cubic-bezier(.694,0,.335,1) .1s;transition:transform .4s cubic-bezier(.694,0,.335,1),opacity .4s cubic-bezier(.694,0,.335,1) 0s,filter .3s cubic-bezier(.694,0,.335,1) .1s,-webkit-transform .4s cubic-bezier(.694,0,.335,1),-webkit-filter .3s cubic-bezier(.694,0,.335,1) .1s;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);-webkit-filter:blur(10px);filter:blur(10px)}.merlin__content{display:block;overflow:hidden;zoom:1;position:relative;box-sizing:border-box;width:650px;margin:.5em auto 0;padding:140px 33px 35px;border-radiuwidth:600s: 7px;color:#444;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.07);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center}.merlin__content--transition{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1) 0,-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1) 0;-webkit-transform:translateX(50%) scale(.95);-ms-transform:translateX(50%) scale(.95);transform:translateX(50%) scale(.95);-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){.merlin__content--transition{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(2px);filter:blur(2px)}}.merlin__content--welcome .merlin__content--transition{opacity:1;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(0);filter:blur(0)}.merlin__content--plugins .merlin__content__footer.no-plugins,.merlin__content--welcome .merlin__content__footer{padding-top:22px}.merlin__content--plugins .merlin__content__footer{padding-top:3px}.merlin__content--license .merlin__content__footer{padding-top:5px}.merlin__content--ready{padding-bottom:12px}body.loaded .merlin__content--transition{opacity:1;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(0);filter:blur(0)}body.exiting .merlin__content--transition{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .7s cubic-bezier(.694,0,.335,1) 0;transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .7s cubic-bezier(.694,0,.335,1) 0,-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .7s cubic-bezier(.694,0,.335,1) 0;-webkit-transform:translateX(-40%) scale(.96);-ms-transform:translateX(-40%) scale(.96);transform:translateX(-40%) scale(.96);-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){body.exiting .merlin__content--transition{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0) scale(1);-ms-transform:translateX(0) scale(1);transform:translateX(0) scale(1);-webkit-filter:blur(2px);filter:blur(2px)}}.merlin__content--welcome{opacity:0;-webkit-transition:opacity .4s cubic-bezier(.694,0,.335,1);transition:opacity .4s cubic-bezier(.694,0,.335,1);-webkit-animation:animation 1s linear both .2s;animation:animation 1s linear both .2s}body.loaded .merlin__content--welcome{opacity:1}@media screen and (prefers-reduced-motion:reduce){.merlin__content--welcome{opacity:1;-webkit-animation:none;animation:none}}@-webkit-keyframes animation{0%{-webkit-transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}4.5%{-webkit-transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1)}5.51%{-webkit-transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1)}9.01%{-webkit-transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1)}11.01%{-webkit-transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}13.51%{-webkit-transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1)}16.52%{-webkit-transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1)}17.92%{-webkit-transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1)}21.92%{-webkit-transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1)}29.03%{-webkit-transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}34.63%{-webkit-transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1)}36.24%{-webkit-transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1)}40.14%{-webkit-transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1)}50.55%{-webkit-transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}62.36%{-webkit-transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1)}79.08%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}84.68%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}@keyframes animation{0%{-webkit-transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.5,0,0,0,0,.5,0,0,0,0,1,0,0,0,0,1)}4.5%{-webkit-transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.718,0,0,0,0,.743,0,0,0,0,1,0,0,0,0,1)}5.51%{-webkit-transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.762,0,0,0,0,.794,0,0,0,0,1,0,0,0,0,1)}9.01%{-webkit-transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.888,0,0,0,0,.94,0,0,0,0,1,0,0,0,0,1)}11.01%{-webkit-transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.941,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}13.51%{-webkit-transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.989,0,0,0,0,1.044,0,0,0,0,1,0,0,0,0,1)}16.52%{-webkit-transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.024,0,0,0,0,1.067,0,0,0,0,1,0,0,0,0,1)}17.92%{-webkit-transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.033,0,0,0,0,1.07,0,0,0,0,1,0,0,0,0,1)}21.92%{-webkit-transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.042,0,0,0,0,1.057,0,0,0,0,1,0,0,0,0,1)}29.03%{-webkit-transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.028,0,0,0,0,1.016,0,0,0,0,1,0,0,0,0,1)}34.63%{-webkit-transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.013,0,0,0,0,.997,0,0,0,0,1,0,0,0,0,1)}36.24%{-webkit-transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.009,0,0,0,0,.994,0,0,0,0,1,0,0,0,0,1)}40.14%{-webkit-transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1.003,0,0,0,0,.992,0,0,0,0,1,0,0,0,0,1)}50.55%{-webkit-transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.997,0,0,0,0,.998,0,0,0,0,1,0,0,0,0,1)}62.36%{-webkit-transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(.999,0,0,0,0,1.001,0,0,0,0,1,0,0,0,0,1)}79.08%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}84.68%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}100%{-webkit-transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}}.merlin__button{display:inline-block;overflow:hidden;position:relative;padding:8px 18px 9px;border:0;border-radius:4px;color:#a1a5a8;background:#fff;font-size:15px;font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;text-decoration:none;cursor:pointer;-webkit-transition:color 150ms cubic-bezier(.694,0,.335,1),background 150ms cubic-bezier(.694,0,.335,1);transition:color 150ms cubic-bezier(.694,0,.335,1),background 150ms cubic-bezier(.694,0,.335,1)}@media screen and (prefers-reduced-motion:reduce){.merlin__button{-webkit-transition:color 50ms ease-in-out,background 50ms ease-in-out;transition:color 50ms ease-in-out,background 50ms ease-in-out}}.merlin__button:hover{background:#f4f4f4}.merlin__button:hover .chevron::after,.merlin__button:hover .chevron::before{background:#a1a5a8}.merlin__button:active{background:#ebebeb}.merlin__button span{display:inline-block}.merlin__button--colorchange{-webkit-animation:colorchange .8s infinite alternate;animation:colorchange .8s infinite alternate}.merlin__button--fullwidth{display:block;z-index:999;width:60%;margin:0 auto;padding-top:9px;padding-bottom:10px;font-size:14px}.merlin__button--next,.merlin__button--skip{position:absolute;bottom:12px}.merlin__button--next{right:12px;color:#ed1c25}.merlin__button--next:active,.merlin__button--next:hover{color:#111}.merlin__button--next:focus{outline:0;box-shadow:none}.merlin__button--skip{left:12px}.merlin__button--skip:active,.merlin__button--skip:hover{color:#666}.merlin__button--blue{color:#fff;background:#ed1c25}.merlin__button--blue:active,.merlin__button--blue:hover{color:#fff;background:#333}.merlin__button--knockout{margin-left:-10px;padding-top:10px;padding-right:25px;color:#cbcbcb;background:#fff;font-size:14px;font-weight:500;-webkit-transition:color .9s cubic-bezier(.694,0,.335,1);transition:color .9s cubic-bezier(.694,0,.335,1)}.merlin__button--knockout:active,.merlin__button--knockout:hover{color:#a1a5a8;background:0 0}.merlin__button--no-chevron{margin-top:3px;margin-left:0;padding-right:18px}.merlin__button--loading:active,.merlin__button--loading:hover{background:0 0}.merlin__button--loading__text{-webkit-transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,-webkit-filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,-webkit-filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,filter 4.1s cubic-bezier(.18,1,.21,1);transition:opacity .4s cubic-bezier(.18,1,.21,1) .4s,filter 4.1s cubic-bezier(.18,1,.21,1),-webkit-filter 4.1s cubic-bezier(.18,1,.21,1)}.merlin__button--loading__spinner{position:absolute;top:50%;left:50%;opacity:0;-webkit-transition:opacity .1s ease,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,transform .8s cubic-bezier(.18,1,.21,1) .3s;transition:opacity .1s ease,transform .8s cubic-bezier(.18,1,.21,1) .3s,-webkit-transform .8s cubic-bezier(.18,1,.21,1) .3s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.merlin__button--loading .merlin__button--loading__text{opacity:0;-webkit-filter:blur(100px);filter:blur(100px)}.merlin__button--loading .merlin__button--loading__spinner{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#skip{display:inline-block;visibility:visible;z-index:1;opacity:1}#close{display:none;visibility:hidden;z-index:-1;opacity:0}@-webkit-keyframes colorchange{0%{background:#fff}100%{background:#f4f4f4}}@keyframes colorchange{0%{background:#fff}100%{background:#f4f4f4}}.chevron{display:block;position:absolute;z-index:1;top:58%;right:10px;-webkit-transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1),-ms-transform-origin .9s cubic-bezier(.86,0,.07,1)}.chevron::after,.chevron::before{display:block;position:absolute;z-index:1;top:50%;width:10px;height:2px;border-radius:2px;background:#d1d1d1;content:" ";-webkit-transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1);transition:transform .9s cubic-bezier(.86,0,.07,1),transform-origin .9s cubic-bezier(.86,0,.07,1),top .9s cubic-bezier(.86,0,.07,1),background 150ms cubic-bezier(.694,0,.335,1),-webkit-transform .9s cubic-bezier(.86,0,.07,1),-webkit-transform-origin .9s cubic-bezier(.86,0,.07,1),-ms-transform-origin .9s cubic-bezier(.86,0,.07,1);-webkit-backface-visibility:hidden;backface-visibility:hidden}.chevron::before{right:50%;-webkit-transform:rotate(40deg) scaleY(1);-ms-transform:rotate(40deg) scaleY(1);transform:rotate(40deg) scaleY(1);-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.chevron::after{left:50%;-webkit-transform:rotate(-40deg) scaleY(1);-ms-transform:rotate(-40deg) scaleY(1);transform:rotate(-40deg) scaleY(1);-webkit-transform-origin:0 100%;-ms-transform-origin:0 100%;transform-origin:0 100%}.merlin__drawer--open .chevron{top:44%}.merlin__drawer--open .chevron::before{-webkit-transform:rotate(-40deg) scaleY(1);-ms-transform:rotate(-40deg) scaleY(1);transform:rotate(-40deg) scaleY(1);-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.merlin__drawer--open .chevron::after{-webkit-transform:rotate(40deg) scaleY(1);-ms-transform:rotate(40deg) scaleY(1);transform:rotate(40deg) scaleY(1);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin-spinner{display:block;position:absolute;top:calc(50% - 10px);left:calc(50% - 10px);width:20px;height:20px;-webkit-transition:opacity .3s cubic-bezier(.694,0,.335,1) 50ms;transition:opacity .3s cubic-bezier(.694,0,.335,1) 50ms;-webkit-animation:container-rotate 1.6s linear infinite;animation:container-rotate 1.6s linear infinite}.exiting .merlin-spinner{opacity:0}.merlin-spinner-line{display:block;position:absolute;width:100%;height:100%;opacity:0;-webkit-transition:border-color .3s cubic-bezier(.694,0,.335,1);transition:border-color .3s cubic-bezier(.694,0,.335,1)}.merlin-spinner-line--1{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-1-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-1-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--2{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-2-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-2-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--3{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-3-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-3-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line--4{border-color:#ed1c25;-webkit-animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-4-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both;animation:fill-unfill-rotate 4.8s cubic-bezier(.4,0,.2,1) infinite both,line-4-fade-in-out 4.8s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-ticker{overflow:hidden;position:absolute;top:0;left:45%;box-sizing:border-box;width:20%;height:100%;border-color:inherit}.merlin-spinner-line-cog{display:inline-block;overflow:hidden;position:relative;width:50%;height:100%;border-color:inherit}.merlin-spinner-line-cog-inner{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:200%;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-radius:50%;-webkit-animation:none;animation:none}.merlin-spinner-line-cog-inner--left{border-right-color:transparent;-webkit-transform:rotate(129deg);-ms-transform:rotate(129deg);transform:rotate(129deg);-webkit-animation:left-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both;animation:left-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-cog-inner--right{left:-100%;border-left-color:transparent;-webkit-transform:rotate(-129deg);-ms-transform:rotate(-129deg);transform:rotate(-129deg);-webkit-animation:right-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both;animation:right-spin 1.2s cubic-bezier(.4,0,.2,1) infinite both}.merlin-spinner-line-cog-inner--center{left:-450%;width:1000%}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes left-spin{0%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@keyframes left-spin{0%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes right-spin{0%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}@keyframes right-spin{0%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}@-webkit-keyframes line-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes line-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@-webkit-keyframes line-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes line-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@-webkit-keyframes line-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@keyframes line-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@-webkit-keyframes line-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}@keyframes line-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}.return-to-dashboard{display:block;margin-top:1em;padding:1em;color:#b5b5b5;font-size:13px;text-align:center;text-decoration:none;-webkit-transition:color 150ms ease,opacity .3s cubic-bezier(.694,0,.335,1) 150ms;transition:color 150ms ease,opacity .3s cubic-bezier(.694,0,.335,1) 150ms}@media screen and (prefers-reduced-motion:reduce){.return-to-dashboard{opacity:1!important}}.merlin__body--welcome .return-to-dashboard{opacity:0}.merlin__body--welcome.loaded .return-to-dashboard{opacity:1}.return-to-dashboard:hover{color:#ed1c25;box-shadow:0 0 10px rgba(0,0,0,.06)}.merlin__drawer{overflow:hidden;max-height:0;margin:0;opacity:0;-webkit-transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s;transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .6s,max-height .7s cubic-bezier(.33,0,.2,1) 0s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);pointer-events:none}.merlin__drawer li{position:relative;margin:0;padding:4px 0;opacity:0;text-align:center;-webkit-transition:.25s ease;transition:.25s ease;-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}.merlin__drawer li:last-child{padding-bottom:0}.merlin__drawer li:nth-of-type(10){-webkit-transition-delay:.2s;transition-delay:.2s}.merlin__drawer li:nth-of-type(9){-webkit-transition-delay:.18s;transition-delay:.18s}.merlin__drawer li:nth-of-type(8){-webkit-transition-delay:.16s;transition-delay:.16s}.merlin__drawer li:nth-of-type(7){-webkit-transition-delay:.14s;transition-delay:.14s}.merlin__drawer li:nth-of-type(6){-webkit-transition-delay:.12s;transition-delay:.12s}.merlin__drawer li:nth-of-type(5){-webkit-transition-delay:.1s;transition-delay:.1s}.merlin__drawer li:nth-of-type(4){-webkit-transition-delay:80ms;transition-delay:80ms}.merlin__drawer li:nth-of-type(3){-webkit-transition-delay:60ms;transition-delay:60ms}.merlin__drawer li:nth-of-type(2){-webkit-transition-delay:40ms;transition-delay:40ms}.merlin__drawer li:nth-of-type(1){-webkit-transition-delay:20ms;transition-delay:20ms}.merlin__drawer--open .merlin__drawer{max-height:400px;opacity:1;-webkit-transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s;transition:transform .6s cubic-bezier(.75,0,.25,1),padding .6s cubic-bezier(.75,0,.25,1),opacity .3s linear .2s,max-height .9s cubic-bezier(.33,0,.2,1) .1s,-webkit-transform .6s cubic-bezier(.75,0,.25,1);-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);pointer-events:inherit}.merlin__drawer--open .merlin__drawer li{opacity:1;-webkit-transition:.4s ease;transition:.4s ease;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.merlin__drawer--open .merlin__drawer li:nth-of-type(1){-webkit-transition-delay:.15s;transition-delay:.15s}.merlin__drawer--open .merlin__drawer li:nth-of-type(2){-webkit-transition-delay:.3s;transition-delay:.3s}.merlin__drawer--open .merlin__drawer li:nth-of-type(3){-webkit-transition-delay:.45s;transition-delay:.45s}.merlin__drawer--open .merlin__drawer li:nth-of-type(4){-webkit-transition-delay:.6s;transition-delay:.6s}.merlin__drawer--open .merlin__drawer li:nth-of-type(5){-webkit-transition-delay:.75s;transition-delay:.75s}.merlin__drawer--open .merlin__drawer li:nth-of-type(6){-webkit-transition-delay:.9s;transition-delay:.9s}.merlin__drawer--open .merlin__drawer li:nth-of-type(7){-webkit-transition-delay:1.05s;transition-delay:1.05s}.merlin__drawer--open .merlin__drawer li:nth-of-type(8){-webkit-transition-delay:1.2s;transition-delay:1.2s}.merlin__drawer--open .merlin__drawer li:nth-of-type(9){-webkit-transition-delay:1.35s;transition-delay:1.35s}.merlin__drawer--open .merlin__drawer li:nth-of-type(10){-webkit-transition-delay:1.5s;transition-delay:1.5s}.merlin__drawer--open .merlin__button--knockout{color:#a1a5a8}.merlin__drawer--open .chevron::after,.merlin__drawer--open .chevron::before{background:#a1a5a8}.merlin__drawer--open .merlin__button--next{-webkit-animation:colorchange 1s infinite alternate 1s;animation:colorchange 1s infinite alternate 1s}.merlin__drawer--open .merlin__button--loading{-webkit-animation:none;animation:none}.merlin__drawer--open #skip{display:none;visibility:hidden;z-index:-1;opacity:0}.merlin__drawer--open #close{display:inline-block;visibility:visible;z-index:1;opacity:1}.merlin__drawer--import-content{padding-top:3px}.merlin__drawer--import-content li{padding:2px 0;text-align:left}.merlin__drawer--import-content li:hover span{color:#ed1c25}.merlin__drawer--import-content label{display:inline-block;position:relative;width:100%;cursor:pointer}.merlin__drawer--import-content label span{-webkit-transition:color .1s;transition:color .1s}.merlin__drawer--import-content label i{display:inline-block;float:right;position:relative;width:13px;height:13px;margin-top:3px;border:2px solid #b2b7ba;border-radius:50%;background-color:transparent;text-align:left;-webkit-transition:border-color .1s,background-color .1s,-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,transform 350ms cubic-bezier(.78,-1.22,.17,1.89);transition:border-color .1s,background-color .1s,transform 350ms cubic-bezier(.78,-1.22,.17,1.89),-webkit-transform 350ms cubic-bezier(.78,-1.22,.17,1.89);-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center}.merlin__drawer--import-content label i:before{position:absolute;top:.4em;left:.2em;width:0;height:2px;border-radius:2px;background:#ed1c25;content:"";-webkit-transition:width 50ms ease 50ms;transition:width 50ms ease 50ms;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin__drawer--import-content label i:after{position:absolute;top:.67em;left:4px;width:0;height:2px;border-radius:2px;background:#ed1c25;content:"";-webkit-transition:width 50ms ease;transition:width 50ms ease;-webkit-transform:rotate(310deg);-ms-transform:rotate(310deg);transform:rotate(310deg);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.merlin__drawer--import-content label:hover i{border-color:#ed1c25}.merlin__drawer--import-content .checkbox{display:none!important}.merlin__drawer--import-content .checkbox:checked+label.installing i{border-color:#ffb900;background-color:#ffb900;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1),border-color .4s cubic-bezier(.18,1,.21,1);transition:background-color .4s cubic-bezier(.18,1,.21,1),border-color .4s cubic-bezier(.18,1,.21,1)}.merlin__drawer--import-content .checkbox:checked+label.success i{border-color:#46b450;background-color:#46b450;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms;transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms}.merlin__drawer--import-content .checkbox:checked+label.error i{border-color:#d54e21;background-color:#d54e21;-webkit-transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms;transition:background-color .4s cubic-bezier(.18,1,.21,1) 220ms,border-color .4s cubic-bezier(.18,1,.21,1) 220ms}.merlin__drawer--import-content .checkbox:checked+label i{border-color:#ed1c25;background-color:#ed1c25;-webkit-transform:scale(1.2);-ms-transform:scale(1.2);transform:scale(1.2)}.merlin__drawer--import-content .checkbox:checked+label i:after{width:9px;background:#fff;-webkit-transition:width 50ms ease .1s;transition:width 50ms ease .1s}.merlin__drawer--import-content .checkbox:checked+label i:before{width:5px;background:#fff;-webkit-transition:width 50ms ease .1s;transition:width 50ms ease .1s}.merlin__drawer--open .merlin__drawer--install-plugins{padding-bottom:1px}.merlin__drawer--install-plugins li span{display:none}.merlin__drawer--install-plugins li .spinner{display:inline-block;visibility:visible;position:absolute;right:10px;margin-top:2px;opacity:0;-webkit-transition:opacity .2s cubic-bezier(.694,0,.335,1);transition:opacity .2s cubic-bezier(.694,0,.335,1)}.merlin__drawer--install-plugins.installing li .spinner{opacity:1}.merlin__drawer--install-plugins.installing li span{opacity:0}.merlin__drawer--open .merlin__drawer--extras{padding-bottom:30px}.icon--checkmark{display:none;position:absolute;top:-110px;left:calc(50% - 40px);width:80px;height:80px;border-radius:50%;box-shadow:inset 0 0 0 #46b450;-webkit-animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both;animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both;stroke:#fff;stroke-miterlimit:10;stroke-width:2}.js--finished .icon--checkmark{display:inline-block}.icon--checkmark__check{-webkit-transform-origin:50% 50%;-ms-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards;animation:stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards;stroke-dasharray:48;stroke-dashoffset:48}.icon--checkmark__circle{-webkit-animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards;animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards;fill:none;stroke:#46b450;stroke-dasharray:166;stroke-dashoffset:166;stroke-miterlimit:10;stroke-width:2}@-webkit-keyframes stroke{100%{stroke-dashoffset:0}}@keyframes stroke{100%{stroke-dashoffset:0}}@-webkit-keyframes scale{0%,100%{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@keyframes scale{0%,100%{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@-webkit-keyframes fill{100%{box-shadow:inset 0 0 0 100px #46b450}}@keyframes fill{100%{box-shadow:inset 0 0 0 100px #46b450}}.merlin__content__footer{clear:both;margin-top:2.75em}.merlin__content__footer:after,.merlin__content__footer:before{display:table;content:""}.merlin__content__footer:after{clear:both}.merlin__content__footer--fullwidth{opacity:0;-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1);transition:transform .5s cubic-bezier(.694,0,.335,1),opacity .5s cubic-bezier(.694,0,.335,1),filter .5s cubic-bezier(.694,0,.335,1),-webkit-transform .5s cubic-bezier(.694,0,.335,1),-webkit-filter .5s cubic-bezier(.694,0,.335,1);-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);-webkit-transform-origin:top;-ms-transform-origin:top;transform-origin:top;-webkit-filter:blur(10px);filter:blur(10px)}@media screen and (prefers-reduced-motion:reduce){.merlin__content__footer--fullwidth{-webkit-transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,-webkit-filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out;transition:opacity .3s ease-in-out,filter .3s ease-in-out,-webkit-filter .3s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-filter:blur(2px);filter:blur(2px)}}body.loaded .merlin__content__footer--fullwidth{opacity:1;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-filter:blur(0);filter:blur(0)}.merlin__content--license .merlin__content__footer{margin-top:-.24em}.merlin__content--ready .merlin__content__footer{margin-top:1.9em}.merlin__content--ready .merlin__content__footer .merlin__button--knockout{margin-top:10px}.merlin__content--content .merlin__content__footer{-webkit-transition:opacity .5s cubic-bezier(.694,0,.335,1);transition:opacity .5s cubic-bezier(.694,0,.335,1)}body.exiting .merlin__content--content .merlin__content__footer{opacity:0}.saswp_install_wizard{text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:1px;color:rgba(0,0,0,.3)}.saswp_branding{background-image:url(../images/sd-logo-white.png);padding:40px;background-size:80px;background-repeat:no-repeat;position:absolute;left:calc(50% - 40px);top:-110px}.merlin__button--loading:before{background-image:url(data:image/gif;base64,R0lGODlhUABQAKUAAAQCBISGhMTGxERCRCQiJKSmpOTm5GRiZBQSFPT29JSWlLS2tNTW1DQyNHR2dAwKDFRWVKyurOzu7BwaHIyOjCwqLGxqbPz+/JyenOTi5AQGBIyKjNTS1ExKTCQmJKyqrOzq7GRmZBQWFPz6/JyanLy+vN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WQQZydzsjEMGQ6EMOoXJERCxgB3OoKBAR5hYYECZKoRQQmIYKFIqo2wEACoV2nQAoxU7KGBHFiMEECvsURQwTNkrOABBycUQO2DL5zAQRxzfFDBpUPrJNACCv7MAYELKaBwwQMqqPDABSikQIAfc5jRwqu7FCDBAdjOYfDBWRwggZtXUsBAAJ+pxu8GI3yQggYBiAdwFUEAADs3RDRKWkJ6RE1TdGNrV0NWOCs1aFNVWTMvNXhQOCsrRHR0c0U2a1dGYWhVS1BDVDBEMzJYQ1F1b0dpN1l1TlU5);content:" ";display:inline-block;background-size:30px;background-repeat:no-repeat;width:53px;height:35px;position:absolute;right:-3px;top:3px;opacity:.7;background-position:0 3px}body .amp_install_center{text-align:center}#ampforwp-design-select{width:170px;height:30px;position:relative;top:-15px}.amp_install_theme_preview{margin-bottom:-30px}.amp_install_logo_preview{max-width:180px;height:auto;border-radius:8px;box-shadow:1px 1px 10px rgba(0,0,0,.25)}.saswp_fields{width:100%}.saswp_fields label{width:40%;display:inline-block}.saswp_fields select{width:50%}.saswp-placement-or-group{text-decoration:none;margin-left:8px;margin-bottom:8px;align-items:flex-start;text-align:center;cursor:pointer;color:buttontext;background-color:buttonface;box-sizing:border-box;padding:2px 6px 3px;border-width:2px;border-style:outset}.option-table-class select{width:100%}.option-table-class input[type=text]{width:100%}.option-table-class{width:100%}.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-placement-group{margin-bottom:5px}#saswp_amp_select{border:0}.saswp_hide{display:none}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp_modify_schema_checkbox{display:none}
|
admin_section/js/main-script.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
var saswp_meta_list = [];
|
2 |
var saswp_meta_fields = [];
|
3 |
-
var saswp_meta_list_fields =
|
4 |
|
5 |
function getParameterByName(name, url) {
|
6 |
if (!url){
|
@@ -14,18 +14,21 @@ function getParameterByName(name, url) {
|
|
14 |
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
15 |
}
|
16 |
|
17 |
-
|
18 |
|
19 |
jQuery('.saswp-datepicker-picker').datepicker({
|
20 |
-
dateFormat: "yy-mm-dd",
|
21 |
-
minDate: 0
|
22 |
});
|
23 |
|
24 |
}
|
25 |
|
26 |
|
27 |
-
function saswp_meta_list_html(response, fields,
|
28 |
|
|
|
|
|
|
|
|
|
29 |
var re_html = '';
|
30 |
re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
|
31 |
$.each(response, function(key,value){
|
@@ -51,12 +54,13 @@ function getParameterByName(name, url) {
|
|
51 |
html += '</td>';
|
52 |
html += '<td>';
|
53 |
html += re_html;
|
54 |
-
html += '</td>';
|
|
|
55 |
html += '</tr>';
|
56 |
$(".saswp-custom-fields-table").append(html);
|
57 |
|
58 |
}else{
|
59 |
-
$(id).html(re_html);
|
60 |
}
|
61 |
|
62 |
}
|
@@ -64,19 +68,19 @@ function getParameterByName(name, url) {
|
|
64 |
|
65 |
|
66 |
|
67 |
-
function saswp_get_meta_list(type, fields, id, fields_name){
|
68 |
if (!saswp_meta_list[type]) {
|
69 |
|
70 |
$.get(ajaxurl,
|
71 |
{ action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
72 |
function(response){
|
73 |
saswp_meta_list[type] = response[type];
|
74 |
-
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id);
|
75 |
|
76 |
},'json');
|
77 |
|
78 |
}else{
|
79 |
-
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id);
|
80 |
}
|
81 |
|
82 |
}
|
@@ -117,14 +121,14 @@ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, sc
|
|
117 |
|
118 |
var html = '';
|
119 |
|
120 |
-
html += '<div class="saswp-'+div_type+'-table-div" data-id="'+index+'">'
|
121 |
+ '<a class="saswp-table-close">X</a>'
|
122 |
+ '<table class="form-table saswp-'+div_type+'-table">'
|
123 |
|
124 |
$.each(schema_fields, function(eachindex, element){
|
125 |
|
126 |
var meta_class = "";
|
127 |
-
if(element.name == 'saswp_tvseries_season_published_date'){
|
128 |
meta_class = "saswp-datepicker-picker";
|
129 |
}
|
130 |
|
@@ -475,6 +479,33 @@ jQuery(document).ready(function($){
|
|
475 |
}
|
476 |
break;
|
477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
case 'saswp-for-wordpress-checkbox':
|
479 |
|
480 |
if ($(this).is(':checked')) {
|
@@ -1486,16 +1517,16 @@ jQuery(document).ready(function($){
|
|
1486 |
|
1487 |
$(document).on('change','.saswp-custom-fields-name',function(){
|
1488 |
|
1489 |
-
var type = 'text';
|
|
|
1490 |
var fields_name = $(this).val();
|
1491 |
var str2 = "image";
|
1492 |
if(fields_name.indexOf(str2) != -1){
|
1493 |
type = 'image';
|
1494 |
-
}
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1499 |
});
|
1500 |
|
1501 |
$(document).on("click", '.saswp-skip-button', function(e){
|
@@ -1535,6 +1566,10 @@ jQuery(document).ready(function($){
|
|
1535 |
|
1536 |
//How to schema js ends here
|
1537 |
|
|
|
|
|
|
|
|
|
1538 |
|
1539 |
$(document).on("change",".saswp-custom-meta-list", function(){
|
1540 |
|
@@ -1542,14 +1577,18 @@ jQuery(document).ready(function($){
|
|
1542 |
var field_name = $(this).parent().parent('tr').find(".saswp-custom-fields-name").val();
|
1543 |
var html = '';
|
1544 |
if(meta_val == 'manual_text'){
|
1545 |
-
html
|
1546 |
-
|
1547 |
-
|
1548 |
-
if(meta_val == 'custom_field'){
|
1549 |
html += '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+field_name+']">';
|
1550 |
-
html += '</select></td>';
|
1551 |
-
|
|
|
|
|
|
|
1552 |
}
|
|
|
1553 |
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1554 |
$(this).parent().parent('tr').append(html);
|
1555 |
saswpCustomSelect2();
|
@@ -1561,16 +1600,17 @@ jQuery(document).ready(function($){
|
|
1561 |
var post_id = $('#post_ID').val();
|
1562 |
if(schema_type !=''){
|
1563 |
|
1564 |
-
if(!saswp_meta_list_fields){
|
1565 |
|
1566 |
$.ajax({
|
1567 |
type: "POST",
|
1568 |
url:ajaxurl,
|
1569 |
dataType: "json",
|
1570 |
data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1571 |
-
success:function(response){
|
1572 |
-
|
1573 |
-
|
|
|
1574 |
|
1575 |
},
|
1576 |
error: function(response){
|
@@ -1580,7 +1620,9 @@ jQuery(document).ready(function($){
|
|
1580 |
|
1581 |
|
1582 |
}else{
|
1583 |
-
|
|
|
|
|
1584 |
}
|
1585 |
|
1586 |
}
|
1 |
var saswp_meta_list = [];
|
2 |
var saswp_meta_fields = [];
|
3 |
+
var saswp_meta_list_fields = [];
|
4 |
|
5 |
function getParameterByName(name, url) {
|
6 |
if (!url){
|
14 |
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
15 |
}
|
16 |
|
17 |
+
function saswp_schema_datepicker(){
|
18 |
|
19 |
jQuery('.saswp-datepicker-picker').datepicker({
|
20 |
+
dateFormat: "yy-mm-dd",
|
|
|
21 |
});
|
22 |
|
23 |
}
|
24 |
|
25 |
|
26 |
+
function saswp_meta_list_html(response, fields, f_name, id, tr){
|
27 |
|
28 |
+
var field_name = f_name;
|
29 |
+
if(field_name == null){
|
30 |
+
field_name = Object.keys(fields)[0];
|
31 |
+
}
|
32 |
var re_html = '';
|
33 |
re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
|
34 |
$.each(response, function(key,value){
|
54 |
html += '</td>';
|
55 |
html += '<td>';
|
56 |
html += re_html;
|
57 |
+
html += '</td>';
|
58 |
+
html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
59 |
html += '</tr>';
|
60 |
$(".saswp-custom-fields-table").append(html);
|
61 |
|
62 |
}else{
|
63 |
+
$(id).html(re_html);
|
64 |
}
|
65 |
|
66 |
}
|
68 |
|
69 |
|
70 |
|
71 |
+
function saswp_get_meta_list(type, fields, id, fields_name, tr){
|
72 |
if (!saswp_meta_list[type]) {
|
73 |
|
74 |
$.get(ajaxurl,
|
75 |
{ action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
76 |
function(response){
|
77 |
saswp_meta_list[type] = response[type];
|
78 |
+
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id, tr);
|
79 |
|
80 |
},'json');
|
81 |
|
82 |
}else{
|
83 |
+
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id, tr);
|
84 |
}
|
85 |
|
86 |
}
|
121 |
|
122 |
var html = '';
|
123 |
|
124 |
+
html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
|
125 |
+ '<a class="saswp-table-close">X</a>'
|
126 |
+ '<table class="form-table saswp-'+div_type+'-table">'
|
127 |
|
128 |
$.each(schema_fields, function(eachindex, element){
|
129 |
|
130 |
var meta_class = "";
|
131 |
+
if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created'){
|
132 |
meta_class = "saswp-datepicker-picker";
|
133 |
}
|
134 |
|
479 |
}
|
480 |
break;
|
481 |
|
482 |
+
case 'saswp-squirrly-seo-checkbox':
|
483 |
+
saswp_compatibliy_notes(current, id);
|
484 |
+
if ($(this).is(':checked')) {
|
485 |
+
$("#saswp-squirrly-seo").val(1);
|
486 |
+
}else{
|
487 |
+
$("#saswp-squirrly-seo").val(0);
|
488 |
+
}
|
489 |
+
break;
|
490 |
+
|
491 |
+
case 'saswp-wp-recipe-maker-checkbox':
|
492 |
+
saswp_compatibliy_notes(current, id);
|
493 |
+
if ($(this).is(':checked')) {
|
494 |
+
$("#saswp-wp-recipe-maker").val(1);
|
495 |
+
}else{
|
496 |
+
$("#saswp-wp-recipe-maker").val(0);
|
497 |
+
}
|
498 |
+
break;
|
499 |
+
|
500 |
+
case 'saswp-wpsso-core-checkbox':
|
501 |
+
saswp_compatibliy_notes(current, id);
|
502 |
+
if ($(this).is(':checked')) {
|
503 |
+
$("#saswp-wpsso-core").val(1);
|
504 |
+
}else{
|
505 |
+
$("#saswp-wpsso-core").val(0);
|
506 |
+
}
|
507 |
+
break;
|
508 |
+
|
509 |
case 'saswp-for-wordpress-checkbox':
|
510 |
|
511 |
if ($(this).is(':checked')) {
|
1517 |
|
1518 |
$(document).on('change','.saswp-custom-fields-name',function(){
|
1519 |
|
1520 |
+
var type = 'text';
|
1521 |
+
var tr = $(this).parent().parent('tr');
|
1522 |
var fields_name = $(this).val();
|
1523 |
var str2 = "image";
|
1524 |
if(fields_name.indexOf(str2) != -1){
|
1525 |
type = 'image';
|
1526 |
+
}
|
1527 |
+
var id = $(this).parent().parent('tr').find("td:eq(1)");
|
1528 |
+
saswp_get_meta_list(type, null, id, fields_name, tr);
|
1529 |
+
|
|
|
1530 |
});
|
1531 |
|
1532 |
$(document).on("click", '.saswp-skip-button', function(e){
|
1566 |
|
1567 |
//How to schema js ends here
|
1568 |
|
1569 |
+
$(document).on("click", ".saswp-rmv-modify_row", function(e){
|
1570 |
+
e.preventDefault();
|
1571 |
+
$(this).parent().parent().remove();
|
1572 |
+
});
|
1573 |
|
1574 |
$(document).on("change",".saswp-custom-meta-list", function(){
|
1575 |
|
1577 |
var field_name = $(this).parent().parent('tr').find(".saswp-custom-fields-name").val();
|
1578 |
var html = '';
|
1579 |
if(meta_val == 'manual_text'){
|
1580 |
+
html += '<td><input type="text" name="saswp_fixed_text['+field_name+']"></td>';
|
1581 |
+
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1582 |
+
|
1583 |
+
}else if(meta_val == 'custom_field'){
|
1584 |
html += '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+field_name+']">';
|
1585 |
+
html += '</select></td>';
|
1586 |
+
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1587 |
+
}else{
|
1588 |
+
html += '<td></td>';
|
1589 |
+
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1590 |
}
|
1591 |
+
|
1592 |
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1593 |
$(this).parent().parent('tr').append(html);
|
1594 |
saswpCustomSelect2();
|
1600 |
var post_id = $('#post_ID').val();
|
1601 |
if(schema_type !=''){
|
1602 |
|
1603 |
+
if(!saswp_meta_list_fields[schema_type]){
|
1604 |
|
1605 |
$.ajax({
|
1606 |
type: "POST",
|
1607 |
url:ajaxurl,
|
1608 |
dataType: "json",
|
1609 |
data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1610 |
+
success:function(response){
|
1611 |
+
|
1612 |
+
saswp_meta_list_fields[schema_type] = response;
|
1613 |
+
saswp_get_meta_list('text', saswp_meta_list_fields[schema_type], null, null, null);
|
1614 |
|
1615 |
},
|
1616 |
error: function(response){
|
1620 |
|
1621 |
|
1622 |
}else{
|
1623 |
+
|
1624 |
+
saswp_get_meta_list('text', saswp_meta_list_fields[schema_type], null, null, null);
|
1625 |
+
|
1626 |
}
|
1627 |
|
1628 |
}
|
admin_section/js/main-script.min.js
CHANGED
@@ -1,1928 +1 @@
|
|
1 |
-
var saswp_meta_list = [];
|
2 |
-
var saswp_meta_fields = [];
|
3 |
-
var saswp_meta_list_fields = null;
|
4 |
-
|
5 |
-
function getParameterByName(name, url) {
|
6 |
-
if (!url){
|
7 |
-
url = window.location.href;
|
8 |
-
}
|
9 |
-
name = name.replace(/[\[\]]/g, "\\$&");
|
10 |
-
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
11 |
-
results = regex.exec(url);
|
12 |
-
if (!results) return null;
|
13 |
-
if (!results[2]) return "";
|
14 |
-
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
15 |
-
}
|
16 |
-
|
17 |
-
function saswp_schema_datepicker(){
|
18 |
-
|
19 |
-
jQuery('.saswp-datepicker-picker').datepicker({
|
20 |
-
dateFormat: "yy-mm-dd",
|
21 |
-
minDate: 0
|
22 |
-
});
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
function saswp_meta_list_html(response, fields, field_name, id){
|
28 |
-
|
29 |
-
var re_html = '';
|
30 |
-
re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
|
31 |
-
$.each(response, function(key,value){
|
32 |
-
|
33 |
-
re_html += '<optgroup label="'+value['label']+'">';
|
34 |
-
|
35 |
-
$.each(value['meta-list'], function(key, value){
|
36 |
-
re_html += '<option value="'+key+'">'+value+'</option>';
|
37 |
-
});
|
38 |
-
re_html += '</optgroup>';
|
39 |
-
|
40 |
-
});
|
41 |
-
re_html += '</select>';
|
42 |
-
|
43 |
-
if(fields){
|
44 |
-
var html = '<tr>';
|
45 |
-
html += '<td>';
|
46 |
-
html += '<select class="saswp-custom-fields-name">';
|
47 |
-
$.each(fields, function(key,value){
|
48 |
-
html += '<option value="'+key+'">'+value+'</option>';
|
49 |
-
});
|
50 |
-
html += '</select>';
|
51 |
-
html += '</td>';
|
52 |
-
html += '<td>';
|
53 |
-
html += re_html;
|
54 |
-
html += '</td>';
|
55 |
-
html += '</tr>';
|
56 |
-
$(".saswp-custom-fields-table").append(html);
|
57 |
-
|
58 |
-
}else{
|
59 |
-
$(id).html(re_html);
|
60 |
-
}
|
61 |
-
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
function saswp_get_meta_list(type, fields, id, fields_name){
|
68 |
-
if (!saswp_meta_list[type]) {
|
69 |
-
|
70 |
-
$.get(ajaxurl,
|
71 |
-
{ action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
72 |
-
function(response){
|
73 |
-
saswp_meta_list[type] = response[type];
|
74 |
-
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id);
|
75 |
-
|
76 |
-
},'json');
|
77 |
-
|
78 |
-
}else{
|
79 |
-
saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id);
|
80 |
-
}
|
81 |
-
|
82 |
-
}
|
83 |
-
|
84 |
-
function saswp_get_post_specific_schema_fields(index, meta_name, div_type, schema_id, fields_type){
|
85 |
-
|
86 |
-
if (!saswp_meta_fields[fields_type]) {
|
87 |
-
|
88 |
-
$.get(ajaxurl,
|
89 |
-
{ action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
90 |
-
function(response){
|
91 |
-
saswp_meta_fields[fields_type] = response;
|
92 |
-
console.log(saswp_meta_fields);
|
93 |
-
var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
|
94 |
-
|
95 |
-
if(html){
|
96 |
-
$('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
|
97 |
-
saswp_schema_datepicker();
|
98 |
-
}
|
99 |
-
|
100 |
-
},'json');
|
101 |
-
|
102 |
-
}else{
|
103 |
-
|
104 |
-
var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
|
105 |
-
|
106 |
-
if(html){
|
107 |
-
$('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
|
108 |
-
saswp_schema_datepicker();
|
109 |
-
}
|
110 |
-
|
111 |
-
}
|
112 |
-
|
113 |
-
|
114 |
-
}
|
115 |
-
|
116 |
-
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
117 |
-
|
118 |
-
var html = '';
|
119 |
-
|
120 |
-
html += '<div class="saswp-'+div_type+'-table-div" data-id="'+index+'">'
|
121 |
-
+ '<a class="saswp-table-close">X</a>'
|
122 |
-
+ '<table class="form-table saswp-'+div_type+'-table">'
|
123 |
-
|
124 |
-
$.each(schema_fields, function(eachindex, element){
|
125 |
-
|
126 |
-
var meta_class = "";
|
127 |
-
if(element.name == 'saswp_tvseries_season_published_date'){
|
128 |
-
meta_class = "saswp-datepicker-picker";
|
129 |
-
}
|
130 |
-
|
131 |
-
switch(element.type) {
|
132 |
-
|
133 |
-
case "text":
|
134 |
-
|
135 |
-
html += '<tr>'
|
136 |
-
+ '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="text" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
|
137 |
-
+ '</tr>';
|
138 |
-
|
139 |
-
break;
|
140 |
-
|
141 |
-
case "textarea":
|
142 |
-
|
143 |
-
html += '<tr>'
|
144 |
-
+ '<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>'
|
145 |
-
+ '</tr>';
|
146 |
-
|
147 |
-
break;
|
148 |
-
case "select":
|
149 |
-
|
150 |
-
var options_html = "";
|
151 |
-
$.each(element.options, function(opt_index, opt_element){
|
152 |
-
options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
|
153 |
-
});
|
154 |
-
|
155 |
-
html += '<tr>'
|
156 |
-
+ '<th>'+element.label+'</th>'
|
157 |
-
+ '<td>'
|
158 |
-
|
159 |
-
+ '<select id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']">'
|
160 |
-
+ options_html
|
161 |
-
+ '</select>'
|
162 |
-
|
163 |
-
+ '</td>'
|
164 |
-
+ '</tr>';
|
165 |
-
|
166 |
-
break;
|
167 |
-
|
168 |
-
case "media":
|
169 |
-
|
170 |
-
html += '<tr>'
|
171 |
-
+ '<th>'+element.label+'</th>'
|
172 |
-
+ '<td>'
|
173 |
-
+ '<fieldset>'
|
174 |
-
+ '<input style="width:80%" type="text" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+element.name+'_'+index+'_'+schema_id+'">'
|
175 |
-
+ '<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">'
|
176 |
-
+ '<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">'
|
177 |
-
+ '<div class="saswp_image_div_'+element.name+'_'+index+'_'+schema_id+'">'
|
178 |
-
+ '</div>'
|
179 |
-
+ '</fieldset>'
|
180 |
-
+ '</td>'
|
181 |
-
+ '</tr>';
|
182 |
-
|
183 |
-
break;
|
184 |
-
default:
|
185 |
-
// code block
|
186 |
-
}
|
187 |
-
|
188 |
-
});
|
189 |
-
html += '</table>'
|
190 |
-
+ '</div>';
|
191 |
-
|
192 |
-
return html;
|
193 |
-
|
194 |
-
}
|
195 |
-
|
196 |
-
jQuery(document).ready(function($){
|
197 |
-
|
198 |
-
/* Newletters js starts here */
|
199 |
-
|
200 |
-
if(saswp_localize_data.do_tour){
|
201 |
-
|
202 |
-
var content = '<h3>Thanks for using Structured Data!</h3>';
|
203 |
-
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>';
|
204 |
-
content += '<style type="text/css">';
|
205 |
-
content += '.wp-pointer-buttons{ padding:0; overflow: hidden; }';
|
206 |
-
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; }';
|
207 |
-
content += '</style>';
|
208 |
-
content += '<div id="afw_mc_embed_signup">';
|
209 |
-
content += '<form action="//app.mailerlite.com/webforms/submit/o1s7u3" data-id="258182" data-code="o1s7u3" method="POST" target="_blank">';
|
210 |
-
content += '<div id="afw_mc_embed_signup_scroll">';
|
211 |
-
content += '<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">';
|
212 |
-
content += '<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">';
|
213 |
-
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;">';
|
214 |
-
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+'">';
|
215 |
-
content += '<input type="hidden" name="ml-submit" value="1" />';
|
216 |
-
content += '</div>';
|
217 |
-
content += '<div id="mce-responses">';
|
218 |
-
content += '<div class="response" id="mce-error-response" style="display:none"></div>';
|
219 |
-
content += '<div class="response" id="mce-success-response" style="display:none"></div>';
|
220 |
-
content += '</div>';
|
221 |
-
content += '<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>';
|
222 |
-
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;">';
|
223 |
-
content += '</div>';
|
224 |
-
content += '</form>';
|
225 |
-
content += '</div>';
|
226 |
-
|
227 |
-
var setup;
|
228 |
-
var wp_pointers_tour_opts = {
|
229 |
-
content:content,
|
230 |
-
position:{
|
231 |
-
edge:"top",
|
232 |
-
align:"left"
|
233 |
-
}
|
234 |
-
};
|
235 |
-
|
236 |
-
wp_pointers_tour_opts = $.extend (wp_pointers_tour_opts, {
|
237 |
-
buttons: function (event, t) {
|
238 |
-
button= jQuery ('<a id="pointer-close" class="button-secondary">' + saswp_localize_data.button1 + '</a>');
|
239 |
-
button_2= jQuery ('#pointer-close.button');
|
240 |
-
button.bind ('click.pointer', function () {
|
241 |
-
t.element.pointer ('close');
|
242 |
-
});
|
243 |
-
button_2.on('click', function() {
|
244 |
-
t.element.pointer ('close');
|
245 |
-
} );
|
246 |
-
return button;
|
247 |
-
},
|
248 |
-
close: function () {
|
249 |
-
$.post (saswp_localize_data.ajax_url, {
|
250 |
-
pointer: 'saswp_subscribe_pointer222',
|
251 |
-
action: 'dismiss-wp-pointer'
|
252 |
-
});
|
253 |
-
},
|
254 |
-
show: function(event, t){
|
255 |
-
t.pointer.css({'left':'170px', 'top':'160px'});
|
256 |
-
}
|
257 |
-
});
|
258 |
-
setup = function () {
|
259 |
-
$(saswp_localize_data.displayID).pointer(wp_pointers_tour_opts).pointer('open');
|
260 |
-
if (saswp_localize_data.button2) {
|
261 |
-
jQuery ('#pointer-close').after ('<a id="pointer-primary" class="button-primary">' + saswp_localize_data.button2+ '</a>');
|
262 |
-
jQuery ('#pointer-primary').click (function () {
|
263 |
-
saswp_localize_data.function_name;
|
264 |
-
});
|
265 |
-
jQuery ('#pointer-close').click (function () {
|
266 |
-
$.post (saswp_localize_data.ajax_url, {
|
267 |
-
pointer: 'saswp_subscribe_pointer222',
|
268 |
-
action: 'dismiss-wp-pointer'
|
269 |
-
});
|
270 |
-
});
|
271 |
-
}
|
272 |
-
};
|
273 |
-
if (wp_pointers_tour_opts.position && wp_pointers_tour_opts.position.defer_loading) {
|
274 |
-
$(window).bind('load.wp-pointers', setup);
|
275 |
-
}
|
276 |
-
else {
|
277 |
-
setup ();
|
278 |
-
}
|
279 |
-
|
280 |
-
}
|
281 |
-
|
282 |
-
/* Newletters js ends here */
|
283 |
-
|
284 |
-
|
285 |
-
$(".saswp-tabs a").click(function(e){
|
286 |
-
var href = $(this).attr('href');
|
287 |
-
var currentTab = getParameterByName('tab',href);
|
288 |
-
if(!currentTab){
|
289 |
-
currentTab = "general";
|
290 |
-
}
|
291 |
-
$(this).siblings().removeClass("nav-tab-active");
|
292 |
-
$(this).addClass("nav-tab-active");
|
293 |
-
$(".form-wrap").find(".saswp-"+currentTab).siblings().hide();
|
294 |
-
$(".form-wrap .saswp-"+currentTab).show();
|
295 |
-
window.history.pushState("", "", href);
|
296 |
-
return false;
|
297 |
-
});
|
298 |
-
|
299 |
-
$(".saswp-schame-type-select").change(function(){
|
300 |
-
$(".saswp-custom-fields-table").html('');
|
301 |
-
var schematype = $ (this).val();
|
302 |
-
|
303 |
-
$(".saswp-option-table-class tr").each(function(index,value){
|
304 |
-
if(index>0){
|
305 |
-
$(this).hide();
|
306 |
-
$(this).find('select').attr('disabled', true);
|
307 |
-
}
|
308 |
-
});
|
309 |
-
if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
|
310 |
-
|
311 |
-
$(".saswp-enable-speakable").parent().parent().show();
|
312 |
-
}else{
|
313 |
-
$(".saswp-enable-speakable").parent().parent().hide();
|
314 |
-
}
|
315 |
-
|
316 |
-
if(schematype == 'local_business'){
|
317 |
-
$(".saswp-option-table-class tr").eq(1).show();
|
318 |
-
$(".saswp-business-text-field-tr").show();
|
319 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
320 |
-
// $("#saswp_dayofweek").attr('disabled', false);
|
321 |
-
$('.select-post-type').val('show_globally').trigger('change');
|
322 |
-
}
|
323 |
-
if(schematype == 'Service'){
|
324 |
-
$(".saswp-service-text-field-tr").show();
|
325 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
326 |
-
}
|
327 |
-
if(schematype == 'Review'){
|
328 |
-
$(".saswp-review-text-field-tr").show();
|
329 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
330 |
-
saswp_item_reviewed_call();
|
331 |
-
}
|
332 |
-
if(schematype == 'Product'){
|
333 |
-
$(".saswp-product-text-field-tr").show();
|
334 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
335 |
-
}
|
336 |
-
if(schematype == 'Event'){
|
337 |
-
$(".saswp-event-text-field-tr").show();
|
338 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
339 |
-
}
|
340 |
-
if(schematype == 'AudioObject'){
|
341 |
-
$(".saswp-audio-text-field-tr").show();
|
342 |
-
}
|
343 |
-
if(schematype == 'SoftwareApplication'){
|
344 |
-
$(".saswp-softwareapplication-text-field-tr").show();
|
345 |
-
}
|
346 |
-
|
347 |
-
$(".saswp-schem-type-note").addClass('saswp_hide');
|
348 |
-
if(schematype == 'qanda'){
|
349 |
-
$(".saswp-schem-type-note").removeClass('saswp_hide');
|
350 |
-
}
|
351 |
-
|
352 |
-
$(".saswp-job-posting-note").addClass('saswp_hide');
|
353 |
-
|
354 |
-
// if(schematype == 'JobPosting'){
|
355 |
-
// $(".saswp-job-posting-note").removeClass('saswp_hide');
|
356 |
-
// }
|
357 |
-
|
358 |
-
saswp_enable_rating_review();
|
359 |
-
});
|
360 |
-
|
361 |
-
$("#saswp_business_type").change(function(){
|
362 |
-
var businesstype = $ (this).val();
|
363 |
-
var schematype = $(".saswp-schame-type-select").val();
|
364 |
-
|
365 |
-
$(".saswp-option-table-class tr").each(function(index,value){
|
366 |
-
if(index>1){
|
367 |
-
$(this).hide();
|
368 |
-
$(this).find('select').attr('disabled', true);
|
369 |
-
}
|
370 |
-
});
|
371 |
-
|
372 |
-
if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
|
373 |
-
|
374 |
-
$(".saswp-enable-speakable").parent().parent().show();
|
375 |
-
}else{
|
376 |
-
$(".saswp-enable-speakable").parent().parent().hide();
|
377 |
-
}
|
378 |
-
|
379 |
-
if(schematype == 'local_business'){
|
380 |
-
$(".saswp-"+businesstype+'-tr').show();
|
381 |
-
$(".saswp-business-text-field-tr").show();
|
382 |
-
$(".saswp-"+businesstype+'-tr').find('select').attr('disabled', false);
|
383 |
-
// $("#saswp_dayofweek").attr('disabled', false);
|
384 |
-
}
|
385 |
-
if(schematype == 'Service'){
|
386 |
-
$(".saswp-service-text-field-tr").show();
|
387 |
-
$(".saswp-service-text-field-tr").find('select').attr('disabled', false);
|
388 |
-
}
|
389 |
-
if(schematype == 'Product'){
|
390 |
-
$(".saswp-product-text-field-tr").show();
|
391 |
-
$(".saswp-product-text-field-tr").find('select').attr('disabled', false);
|
392 |
-
}
|
393 |
-
if(schematype == 'AudioObject'){
|
394 |
-
$(".saswp-audio-text-field-tr").show();
|
395 |
-
}
|
396 |
-
if(schematype == 'SoftwareApplication'){
|
397 |
-
$(".saswp-softwareapplication-text-field-tr").show();
|
398 |
-
}
|
399 |
-
|
400 |
-
if(schematype == 'Review'){
|
401 |
-
$(".saswp-review-text-field-tr").show();
|
402 |
-
$(".saswp-review-text-field-tr").find('select').attr('disabled', false);
|
403 |
-
}
|
404 |
-
if(schematype == 'Event'){
|
405 |
-
$(".saswp-event-text-field-tr").show();
|
406 |
-
$(".saswp-event-text-field-tr").find('select').attr('disabled', false);
|
407 |
-
}
|
408 |
-
saswp_enable_rating_review();
|
409 |
-
}).change();
|
410 |
-
|
411 |
-
|
412 |
-
//Settings page jquery starts here
|
413 |
-
|
414 |
-
|
415 |
-
function saswp_compatibliy_notes(current, id){
|
416 |
-
|
417 |
-
var plugin_name = id.replace('-checkbox','');
|
418 |
-
var text = $("#"+plugin_name).next('p').text();
|
419 |
-
|
420 |
-
if (current.is(':checked') && text !=='') {
|
421 |
-
$("#"+plugin_name).next('p').removeClass('saswp_hide');
|
422 |
-
}else{
|
423 |
-
|
424 |
-
if($("#"+plugin_name).next('p').attr('data-id') == 1){
|
425 |
-
$("#"+plugin_name).next('p').text('This feature is only available in pro version');
|
426 |
-
}else{
|
427 |
-
$("#"+plugin_name).next('p').addClass('saswp_hide');
|
428 |
-
}
|
429 |
-
}
|
430 |
-
|
431 |
-
}
|
432 |
-
|
433 |
-
|
434 |
-
$(".saswp-checkbox").change(function(){
|
435 |
-
|
436 |
-
var id = $(this).attr("id");
|
437 |
-
var current = $(this);
|
438 |
-
|
439 |
-
|
440 |
-
switch(id){
|
441 |
-
|
442 |
-
case 'saswp-the-seo-framework-checkbox':
|
443 |
-
saswp_compatibliy_notes(current, id);
|
444 |
-
if ($(this).is(':checked')) {
|
445 |
-
$("#saswp-the-seo-framework").val(1);
|
446 |
-
}else{
|
447 |
-
$("#saswp-the-seo-framework").val(0);
|
448 |
-
}
|
449 |
-
break;
|
450 |
-
|
451 |
-
case 'saswp-seo-press-checkbox':
|
452 |
-
saswp_compatibliy_notes(current, id);
|
453 |
-
if ($(this).is(':checked')) {
|
454 |
-
$("#saswp-seo-press").val(1);
|
455 |
-
}else{
|
456 |
-
$("#saswp-seo-press").val(0);
|
457 |
-
}
|
458 |
-
break;
|
459 |
-
|
460 |
-
case 'saswp-aiosp-checkbox':
|
461 |
-
saswp_compatibliy_notes(current, id);
|
462 |
-
if ($(this).is(':checked')) {
|
463 |
-
$("#saswp-aiosp").val(1);
|
464 |
-
}else{
|
465 |
-
$("#saswp-aiosp").val(0);
|
466 |
-
}
|
467 |
-
break;
|
468 |
-
|
469 |
-
case 'saswp-smart-crawl-checkbox':
|
470 |
-
saswp_compatibliy_notes(current, id);
|
471 |
-
if ($(this).is(':checked')) {
|
472 |
-
$("#saswp-smart-crawl").val(1);
|
473 |
-
}else{
|
474 |
-
$("#saswp-smart-crawl").val(0);
|
475 |
-
}
|
476 |
-
break;
|
477 |
-
|
478 |
-
case 'saswp-squirrly-seo-checkbox':
|
479 |
-
saswp_compatibliy_notes(current, id);
|
480 |
-
if ($(this).is(':checked')) {
|
481 |
-
$("#saswp-squirrly-seo").val(1);
|
482 |
-
}else{
|
483 |
-
$("#saswp-squirrly-seo").val(0);
|
484 |
-
}
|
485 |
-
break;
|
486 |
-
|
487 |
-
case 'saswp-wp-recipe-maker-checkbox':
|
488 |
-
saswp_compatibliy_notes(current, id);
|
489 |
-
if ($(this).is(':checked')) {
|
490 |
-
$("#saswp-wp-recipe-maker").val(1);
|
491 |
-
}else{
|
492 |
-
$("#saswp-wp-recipe-maker").val(0);
|
493 |
-
}
|
494 |
-
break;
|
495 |
-
|
496 |
-
case 'saswp-wpsso-core-checkbox':
|
497 |
-
saswp_compatibliy_notes(current, id);
|
498 |
-
if ($(this).is(':checked')) {
|
499 |
-
$("#saswp-wpsso-core").val(1);
|
500 |
-
}else{
|
501 |
-
$("#saswp-wpsso-core").val(0);
|
502 |
-
}
|
503 |
-
break;
|
504 |
-
|
505 |
-
case 'saswp-for-wordpress-checkbox':
|
506 |
-
|
507 |
-
if ($(this).is(':checked')) {
|
508 |
-
$("#saswp-for-wordpress").val(1);
|
509 |
-
}else{
|
510 |
-
$("#saswp-for-wordpress").val(0);
|
511 |
-
}
|
512 |
-
break;
|
513 |
-
case 'saswp-facebook-enable-checkbox':
|
514 |
-
|
515 |
-
if ($(this).is(':checked')) {
|
516 |
-
$("#saswp-facebook-enable").val(1);
|
517 |
-
$("#sd_facebook").show();
|
518 |
-
}else{
|
519 |
-
$("#saswp-facebook-enable").val(0);
|
520 |
-
$("#sd_facebook").hide();
|
521 |
-
}
|
522 |
-
break;
|
523 |
-
case 'saswp-twitter-enable-checkbox':
|
524 |
-
|
525 |
-
if ($(this).is(':checked')) {
|
526 |
-
$("#saswp-twitter-enable").val(1);
|
527 |
-
$("#sd_twitter").show();
|
528 |
-
}else{
|
529 |
-
$("#saswp-twitter-enable").val(0);
|
530 |
-
$("#sd_twitter").hide();
|
531 |
-
}
|
532 |
-
break;
|
533 |
-
case 'saswp-google-plus-enable-checkbox':
|
534 |
-
|
535 |
-
if ($(this).is(':checked')) {
|
536 |
-
$("#saswp-google-plus-enable").val(1);
|
537 |
-
$("#sd_google_plus").show();
|
538 |
-
}else{
|
539 |
-
$("#saswp-google-plus-enable").val(0);
|
540 |
-
$("#sd_google_plus").hide();
|
541 |
-
}
|
542 |
-
break;
|
543 |
-
case 'saswp-instagram-enable-checkbox':
|
544 |
-
|
545 |
-
if ($(this).is(':checked')) {
|
546 |
-
$("#saswp-instagram-enable").val(1);
|
547 |
-
$("#sd_instagram").show();
|
548 |
-
}else{
|
549 |
-
$("#saswp-instagram-enable").val(0);
|
550 |
-
$("#sd_instagram").hide();
|
551 |
-
}
|
552 |
-
break;
|
553 |
-
case 'saswp-youtube-enable-checkbox':
|
554 |
-
|
555 |
-
if ($(this).is(':checked')) {
|
556 |
-
$("#sd_youtube").show();
|
557 |
-
$("#saswp-youtube-enable").val(1);
|
558 |
-
}else{
|
559 |
-
$("#saswp-youtube-enable").val(0);
|
560 |
-
$("#sd_youtube").hide();
|
561 |
-
}
|
562 |
-
break;
|
563 |
-
case 'saswp-linkedin-enable-checkbox':
|
564 |
-
|
565 |
-
if ($(this).is(':checked')) {
|
566 |
-
$("#saswp-linkedin-enable").val(1);
|
567 |
-
$("#sd_linkedin").show();
|
568 |
-
}else{
|
569 |
-
$("#saswp-linkedin-enable").val(0);
|
570 |
-
$("#sd_linkedin").hide();
|
571 |
-
}
|
572 |
-
break;
|
573 |
-
case 'saswp-pinterest-enable-checkbox':
|
574 |
-
|
575 |
-
if ($(this).is(':checked')) {
|
576 |
-
$("#saswp-pinterest-enable").val(1);
|
577 |
-
$("#sd_pinterest").show();
|
578 |
-
}else{
|
579 |
-
$("#saswp-pinterest-enable").val(0);
|
580 |
-
$("#sd_pinterest").hide();
|
581 |
-
}
|
582 |
-
break;
|
583 |
-
case 'saswp-soundcloud-enable-checkbox':
|
584 |
-
|
585 |
-
if ($(this).is(':checked')) {
|
586 |
-
$("#saswp-soundcloud-enable").val(1);
|
587 |
-
$("#sd_soundcloud").show();
|
588 |
-
}else{
|
589 |
-
$("#saswp-soundcloud-enable").val(0);
|
590 |
-
$("#sd_soundcloud").hide();
|
591 |
-
}
|
592 |
-
break;
|
593 |
-
case 'saswp-tumblr-enable-checkbox':
|
594 |
-
|
595 |
-
if ($(this).is(':checked')) {
|
596 |
-
$("#saswp-tumblr-enable").val(1);
|
597 |
-
$("#sd_tumblr").show();
|
598 |
-
}else{
|
599 |
-
$("#saswp-tumblr-enable").val(0);
|
600 |
-
$("#sd_tumblr").hide();
|
601 |
-
}
|
602 |
-
break;
|
603 |
-
case 'saswp-for-amp-checkbox':
|
604 |
-
|
605 |
-
if ($(this).is(':checked')) {
|
606 |
-
$("#saswp-for-amp").val(1);
|
607 |
-
}else{
|
608 |
-
$("#saswp-for-amp").val(0);
|
609 |
-
}
|
610 |
-
break;
|
611 |
-
case 'saswp_kb_contact_1_checkbox':
|
612 |
-
|
613 |
-
if ($(this).is(':checked')) {
|
614 |
-
$("#saswp_kb_contact_1").val(1);
|
615 |
-
$("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').removeClass("saswp-display-none");
|
616 |
-
}else{
|
617 |
-
$("#saswp_kb_contact_1").val(0);
|
618 |
-
$("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').addClass("saswp-display-none");
|
619 |
-
}
|
620 |
-
break;
|
621 |
-
case 'saswp-logo-dimensions-check':
|
622 |
-
|
623 |
-
if ($(this).is(':checked')) {
|
624 |
-
$("#saswp-logo-dimensions").val(1);
|
625 |
-
$("#saswp-logo-width, #saswp-logo-height").parent().parent('li').show();
|
626 |
-
}else{
|
627 |
-
$("#saswp-logo-dimensions").val(0);
|
628 |
-
$("#saswp-logo-width, #saswp-logo-height").parent().parent('li').hide();
|
629 |
-
}
|
630 |
-
break;
|
631 |
-
case 'saswp_archive_schema_checkbox':
|
632 |
-
|
633 |
-
if ($(this).is(':checked')) {
|
634 |
-
$("#saswp_archive_schema").val(1);
|
635 |
-
$(".saswp_archive_schema_type_class").parent().parent().show();
|
636 |
-
}else{
|
637 |
-
$("#saswp_archive_schema").val(0);
|
638 |
-
$(".saswp_archive_schema_type_class").parent().parent().hide();
|
639 |
-
}
|
640 |
-
break;
|
641 |
-
|
642 |
-
case 'saswp_website_schema_checkbox':
|
643 |
-
|
644 |
-
if ($(this).is(':checked')) {
|
645 |
-
$("#saswp_website_schema").val(1);
|
646 |
-
$("#saswp_search_box_schema").parent().parent().show();
|
647 |
-
}else{
|
648 |
-
$("#saswp_website_schema").val(0);
|
649 |
-
$("#saswp_search_box_schema").parent().parent().hide();
|
650 |
-
}
|
651 |
-
break;
|
652 |
-
|
653 |
-
case 'saswp_search_box_schema_checkbox':
|
654 |
-
|
655 |
-
if ($(this).is(':checked')) {
|
656 |
-
$("#saswp_search_box_schema").val(1);
|
657 |
-
}else{
|
658 |
-
$("#saswp_search_box_schema").val(0);
|
659 |
-
}
|
660 |
-
break;
|
661 |
-
|
662 |
-
case 'saswp_breadcrumb_schema_checkbox':
|
663 |
-
|
664 |
-
if ($(this).is(':checked')) {
|
665 |
-
$("#saswp_breadcrumb_schema").val(1);
|
666 |
-
}else{
|
667 |
-
$("#saswp_breadcrumb_schema").val(0);
|
668 |
-
}
|
669 |
-
break;
|
670 |
-
|
671 |
-
case 'saswp_comments_schema_checkbox':
|
672 |
-
|
673 |
-
if ($(this).is(':checked')) {
|
674 |
-
$("#saswp_comments_schema").val(1);
|
675 |
-
}else{
|
676 |
-
$("#saswp_comments_schema").val(0);
|
677 |
-
}
|
678 |
-
break;
|
679 |
-
|
680 |
-
case 'saswp-compativility-checkbox':
|
681 |
-
|
682 |
-
if ($(this).is(':checked')) {
|
683 |
-
$("#saswp-flexmlx-compativility").val(1);
|
684 |
-
}else{
|
685 |
-
$("#saswp-flexmlx-compativility").val(0);
|
686 |
-
}
|
687 |
-
break;
|
688 |
-
|
689 |
-
case 'saswp-review-module-checkbox':
|
690 |
-
|
691 |
-
if ($(this).is(':checked')) {
|
692 |
-
$("#saswp-review-module").val(1);
|
693 |
-
}else{
|
694 |
-
$("#saswp-review-module").val(0);
|
695 |
-
}
|
696 |
-
break;
|
697 |
-
|
698 |
-
case 'saswp-kk-star-raring-checkbox':
|
699 |
-
|
700 |
-
saswp_compatibliy_notes(current, id);
|
701 |
-
if ($(this).is(':checked')) {
|
702 |
-
$("#saswp-kk-star-raring").val(1);
|
703 |
-
}else{
|
704 |
-
$("#saswp-kk-star-raring").val(0);
|
705 |
-
}
|
706 |
-
break;
|
707 |
-
case 'saswp-woocommerce-checkbox':
|
708 |
-
saswp_compatibliy_notes(current, id);
|
709 |
-
if ($(this).is(':checked')) {
|
710 |
-
$("#saswp-woocommerce").val(1);
|
711 |
-
}else{
|
712 |
-
$("#saswp-woocommerce").val(0);
|
713 |
-
}
|
714 |
-
break;
|
715 |
-
|
716 |
-
case 'saswp-extra-checkbox':
|
717 |
-
saswp_compatibliy_notes(current, id);
|
718 |
-
if ($(this).is(':checked')) {
|
719 |
-
$("#saswp-extra").val(1);
|
720 |
-
}else{
|
721 |
-
$("#saswp-extra").val(0);
|
722 |
-
}
|
723 |
-
break;
|
724 |
-
|
725 |
-
case 'saswp-dw-question-answer-checkbox':
|
726 |
-
saswp_compatibliy_notes(current, id);
|
727 |
-
if ($(this).is(':checked')) {
|
728 |
-
$("#saswp-dw-question-answer").val(1);
|
729 |
-
}else{
|
730 |
-
$("#saswp-dw-question-answer").val(0);
|
731 |
-
}
|
732 |
-
break;
|
733 |
-
|
734 |
-
case 'saswp-wp-job-manager-checkbox':
|
735 |
-
saswp_compatibliy_notes(current, id);
|
736 |
-
if ($(this).is(':checked')) {
|
737 |
-
$("#saswp-wp-job-manager").val(1);
|
738 |
-
}else{
|
739 |
-
$("#saswp-wp-job-manager").val(0);
|
740 |
-
}
|
741 |
-
break;
|
742 |
-
|
743 |
-
case 'saswp-yoast-checkbox':
|
744 |
-
saswp_compatibliy_notes(current, id);
|
745 |
-
if ($(this).is(':checked')) {
|
746 |
-
$("#saswp-yoast").val(1);
|
747 |
-
}else{
|
748 |
-
$("#saswp-yoast").val(0);
|
749 |
-
}
|
750 |
-
break;
|
751 |
-
|
752 |
-
case 'saswp-rankmath-checkbox':
|
753 |
-
saswp_compatibliy_notes(current, id);
|
754 |
-
if ($(this).is(':checked')) {
|
755 |
-
$("#saswp-rankmath").val(1);
|
756 |
-
}else{
|
757 |
-
$("#saswp-rankmath").val(0);
|
758 |
-
}
|
759 |
-
break;
|
760 |
-
|
761 |
-
case 'saswp-tagyeem-checkbox':
|
762 |
-
saswp_compatibliy_notes(current, id);
|
763 |
-
if ($(this).is(':checked')) {
|
764 |
-
$("#saswp-tagyeem").val(1);
|
765 |
-
}else{
|
766 |
-
$("#saswp-tagyeem").val(0);
|
767 |
-
}
|
768 |
-
break;
|
769 |
-
|
770 |
-
case 'saswp-the-events-calendar-checkbox':
|
771 |
-
saswp_compatibliy_notes(current, id);
|
772 |
-
if ($(this).is(':checked')) {
|
773 |
-
$("#saswp-the-events-calendar").val(1);
|
774 |
-
}else{
|
775 |
-
$("#saswp-the-events-calendar").val(0);
|
776 |
-
}
|
777 |
-
break;
|
778 |
-
|
779 |
-
|
780 |
-
case 'saswp-woocommerce-booking-checkbox':
|
781 |
-
saswp_compatibliy_notes(current, id);
|
782 |
-
if ($(this).is(':checked')) {
|
783 |
-
$("#saswp-woocommerce-booking").val(1);
|
784 |
-
$("#saswp-woocommerce-booking-main").val(1);
|
785 |
-
}else{
|
786 |
-
$("#saswp-woocommerce-booking").val(0);
|
787 |
-
$("#saswp-woocommerce-booking-main").val(0);
|
788 |
-
}
|
789 |
-
break;
|
790 |
-
|
791 |
-
case 'saswp-woocommerce-booking-main-checkbox':
|
792 |
-
saswp_compatibliy_notes(current, id);
|
793 |
-
if ($(this).is(':checked')) {
|
794 |
-
$("#saswp-woocommerce-booking-main").val(1);
|
795 |
-
$("#saswp-woocommerce-booking").val(1);
|
796 |
-
}else{
|
797 |
-
$("#saswp-woocommerce-booking-main").val(0);
|
798 |
-
$("#saswp-woocommerce-booking").val(0);
|
799 |
-
}
|
800 |
-
break;
|
801 |
-
|
802 |
-
case 'saswp-woocommerce-membership-checkbox':
|
803 |
-
saswp_compatibliy_notes(current, id);
|
804 |
-
if ($(this).is(':checked')) {
|
805 |
-
$("#saswp-woocommerce-membership").val(1);
|
806 |
-
}else{
|
807 |
-
$("#saswp-woocommerce-membership").val(0);
|
808 |
-
}
|
809 |
-
break;
|
810 |
-
|
811 |
-
case 'saswp-defragment-checkbox':
|
812 |
-
|
813 |
-
if ($(this).is(':checked')) {
|
814 |
-
$("#saswp-defragment").val(1);
|
815 |
-
}else{
|
816 |
-
$("#saswp-defragment").val(0);
|
817 |
-
}
|
818 |
-
break;
|
819 |
-
|
820 |
-
case 'saswp-cooked-checkbox':
|
821 |
-
saswp_compatibliy_notes(current, id);
|
822 |
-
if ($(this).is(':checked')) {
|
823 |
-
$("#saswp-cooked").val(1);
|
824 |
-
}else{
|
825 |
-
$("#saswp-cooked").val(0);
|
826 |
-
}
|
827 |
-
break;
|
828 |
-
|
829 |
-
case 'saswp-flexmlx-compativility-checkbox':
|
830 |
-
saswp_compatibliy_notes(current, id);
|
831 |
-
if ($(this).is(':checked')) {
|
832 |
-
$("#saswp-flexmlx-compativility").val(1);
|
833 |
-
}else{
|
834 |
-
$("#saswp-flexmlx-compativility").val(0);
|
835 |
-
}
|
836 |
-
break;
|
837 |
-
|
838 |
-
case 'saswp-shopper-approved-review-checkbox':
|
839 |
-
saswp_compatibliy_notes(current, id);
|
840 |
-
if ($(this).is(':checked')) {
|
841 |
-
$("#saswp-shopper-approved-review").val(1);
|
842 |
-
$(".saswp-s-reviews-settings-table").parent().parent().parent().show();
|
843 |
-
}else{
|
844 |
-
$("#saswp-shopper-approved-review").val(0);
|
845 |
-
$(".saswp-s-reviews-settings-table").parent().parent().parent().hide();
|
846 |
-
}
|
847 |
-
break;
|
848 |
-
|
849 |
-
case 'saswp-google-review-checkbox':
|
850 |
-
|
851 |
-
if ($(this).is(':checked')) {
|
852 |
-
|
853 |
-
$("#saswp-google-review").val(1);
|
854 |
-
|
855 |
-
if($("#saswp-google-rv-free-checkbox").length){
|
856 |
-
|
857 |
-
$("#saswp-google-review-free").parent().parent().show();
|
858 |
-
|
859 |
-
if($("#saswp-google-rv-free-checkbox").is(":checked")){
|
860 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
861 |
-
}else{
|
862 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
863 |
-
}
|
864 |
-
}else{
|
865 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
866 |
-
}
|
867 |
-
$(".saswp-g-reviews-settings-table").parent().parent().parent().show();
|
868 |
-
|
869 |
-
}else{
|
870 |
-
|
871 |
-
$("#saswp-google-review").val(0);
|
872 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
873 |
-
$(".saswp-g-reviews-settings-table").parent().parent().parent().hide();
|
874 |
-
|
875 |
-
if($("#saswp-google-rv-free-checkbox").length){
|
876 |
-
$("#saswp-google-review-free").parent().parent().hide();
|
877 |
-
|
878 |
-
}
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
}
|
885 |
-
break;
|
886 |
-
|
887 |
-
case 'saswp-google-rv-free-checkbox':
|
888 |
-
|
889 |
-
if($("#saswp-google-review-checkbox").is(":checked")){
|
890 |
-
if ($(this).is(':checked')) {
|
891 |
-
$("#saswp-google-review-free").val(1);
|
892 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
893 |
-
}else{
|
894 |
-
$("#saswp-google-review-free").val(0);
|
895 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
896 |
-
}
|
897 |
-
|
898 |
-
}else{
|
899 |
-
$("#saswp-google-review-free").val(0);
|
900 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
901 |
-
}
|
902 |
-
|
903 |
-
|
904 |
-
break;
|
905 |
-
|
906 |
-
|
907 |
-
case 'saswp-markup-footer-checkbox':
|
908 |
-
|
909 |
-
if ($(this).is(':checked')) {
|
910 |
-
$("#saswp-markup-footer").val(1);
|
911 |
-
}else{
|
912 |
-
$("#saswp-markup-footer").val(0);
|
913 |
-
}
|
914 |
-
break;
|
915 |
-
|
916 |
-
case 'saswp-pretty-print-checkbox':
|
917 |
-
|
918 |
-
if ($(this).is(':checked')) {
|
919 |
-
$("#saswp-pretty-print").val(1);
|
920 |
-
}else{
|
921 |
-
$("#saswp-pretty-print").val(0);
|
922 |
-
}
|
923 |
-
break;
|
924 |
-
|
925 |
-
case 'saswp-wppostratings-raring-checkbox':
|
926 |
-
saswp_compatibliy_notes(current, id);
|
927 |
-
if ($(this).is(':checked')) {
|
928 |
-
$("#saswp-wppostratings-raring").val(1);
|
929 |
-
}else{
|
930 |
-
$("#saswp-wppostratings-raring").val(0);
|
931 |
-
}
|
932 |
-
break;
|
933 |
-
|
934 |
-
case 'saswp-bbpress-checkbox':
|
935 |
-
saswp_compatibliy_notes(current, id);
|
936 |
-
if ($(this).is(':checked')) {
|
937 |
-
$("#saswp-bbpress").val(1);
|
938 |
-
}else{
|
939 |
-
$("#saswp-bbpress").val(0);
|
940 |
-
}
|
941 |
-
break;
|
942 |
-
|
943 |
-
case 'saswp-microdata-cleanup-checkbox':
|
944 |
-
|
945 |
-
if ($(this).is(':checked')) {
|
946 |
-
$("#saswp-microdata-cleanup").val(1);
|
947 |
-
}else{
|
948 |
-
$("#saswp-microdata-cleanup").val(0);
|
949 |
-
}
|
950 |
-
break;
|
951 |
-
|
952 |
-
|
953 |
-
default:
|
954 |
-
break;
|
955 |
-
}
|
956 |
-
|
957 |
-
}).change();
|
958 |
-
|
959 |
-
$("#saswp_kb_type").change(function(){
|
960 |
-
|
961 |
-
var datatype = $(this).val();
|
962 |
-
|
963 |
-
$(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass('saswp_hide');
|
964 |
-
$(".saswp_kg_logo").parent().parent().parent().addClass('saswp_hide');
|
965 |
-
$("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
|
966 |
-
|
967 |
-
|
968 |
-
if(datatype == 'Organization'){
|
969 |
-
|
970 |
-
$(".saswp_org_fields").parent().parent().removeClass('saswp_hide');
|
971 |
-
$(".saswp_person_fields").parent().parent().addClass('saswp_hide');
|
972 |
-
$(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
|
973 |
-
$("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
|
974 |
-
}
|
975 |
-
if(datatype == 'Person'){
|
976 |
-
|
977 |
-
$(".saswp_org_fields").parent().parent().addClass('saswp_hide');
|
978 |
-
$(".saswp_person_fields").parent().parent().removeClass('saswp_hide');
|
979 |
-
$(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
|
980 |
-
$("#sd-person-image").parent().parent().parent().removeClass('saswp_hide');
|
981 |
-
}
|
982 |
-
|
983 |
-
}).change();
|
984 |
-
|
985 |
-
$(document).on("click", "input[data-id=media]" ,function(e) { // Application Icon upload
|
986 |
-
e.preventDefault();
|
987 |
-
var current = $(this);
|
988 |
-
var button = current;
|
989 |
-
var id = button.attr('id').replace('_button', '');
|
990 |
-
var saswpMediaUploader = wp.media({
|
991 |
-
title: "Application Icon",
|
992 |
-
button: {
|
993 |
-
text: "Select Icon"
|
994 |
-
},
|
995 |
-
multiple: false, // Set this to true to allow multiple files to be selected
|
996 |
-
library:{type : 'image'}
|
997 |
-
})
|
998 |
-
.on("select", function() {
|
999 |
-
var attachment = saswpMediaUploader.state().get('selection').first().toJSON();
|
1000 |
-
|
1001 |
-
$("#"+id).val(attachment.url);
|
1002 |
-
$("input[data-id='"+id+"_id']").val(attachment.id);
|
1003 |
-
$("input[data-id='"+id+"_height']").val(attachment.height);
|
1004 |
-
$("input[data-id='"+id+"_width']").val(attachment.width);
|
1005 |
-
$("input[data-id='"+id+"_thumbnail']").val(attachment.url);
|
1006 |
-
|
1007 |
-
if(current.attr('id') === 'sd_default_image_button'){
|
1008 |
-
|
1009 |
-
$("#sd_default_image_width").val(attachment.width);
|
1010 |
-
$("#sd_default_image_height").val(attachment.height);
|
1011 |
-
|
1012 |
-
}
|
1013 |
-
var smaller_img_notice = '';
|
1014 |
-
if("saswp_image_div_"+id == 'saswp_image_div_sd_default_image' && attachment.height < 1200){
|
1015 |
-
smaller_img_notice = '<p class="saswp_warning">Image size is smaller than recommended size</p>';
|
1016 |
-
}
|
1017 |
-
|
1018 |
-
$(".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);
|
1019 |
-
|
1020 |
-
})
|
1021 |
-
.open();
|
1022 |
-
});
|
1023 |
-
|
1024 |
-
$(document).on("click", ".saswp_prev_close", function(e){
|
1025 |
-
e.preventDefault();
|
1026 |
-
|
1027 |
-
var id = $(this).attr('data-id');
|
1028 |
-
console.log(id);
|
1029 |
-
$(this).parent().remove();
|
1030 |
-
$("#"+id).val('');
|
1031 |
-
$("input[data-id='"+id+"_id']").val('');
|
1032 |
-
$("input[data-id='"+id+"_height']").val('');
|
1033 |
-
$("input[data-id='"+id+"_width']").val('');
|
1034 |
-
$("input[data-id='"+id+"_thumbnail']").val('');
|
1035 |
-
|
1036 |
-
if(id === 'sd_default_image'){
|
1037 |
-
|
1038 |
-
$("#sd_default_image_width").val('');
|
1039 |
-
$("#sd_default_image_height").val('');
|
1040 |
-
|
1041 |
-
}
|
1042 |
-
|
1043 |
-
|
1044 |
-
});
|
1045 |
-
|
1046 |
-
//Settings page jquery ends here
|
1047 |
-
|
1048 |
-
|
1049 |
-
$(document).on("change",".saswp-schema-type-toggle", function(e){
|
1050 |
-
var schema_id = $(this).attr("data-schema-id");
|
1051 |
-
var post_id = $(this).attr("data-post-id");
|
1052 |
-
if($(this).is(':checked')){
|
1053 |
-
var status = 1;
|
1054 |
-
}else{
|
1055 |
-
var status = 0;
|
1056 |
-
}
|
1057 |
-
$.ajax({
|
1058 |
-
type: "POST",
|
1059 |
-
url:ajaxurl,
|
1060 |
-
dataType: "json",
|
1061 |
-
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},
|
1062 |
-
success:function(response){
|
1063 |
-
},
|
1064 |
-
error: function(response){
|
1065 |
-
console.log(response);
|
1066 |
-
}
|
1067 |
-
});
|
1068 |
-
|
1069 |
-
});
|
1070 |
-
|
1071 |
-
|
1072 |
-
$(document).on("click",".saswp-reset-data", function(e){
|
1073 |
-
e.preventDefault();
|
1074 |
-
|
1075 |
-
var saswp_confirm = confirm("Are you sure?");
|
1076 |
-
|
1077 |
-
if(saswp_confirm == true){
|
1078 |
-
|
1079 |
-
$.ajax({
|
1080 |
-
type: "POST",
|
1081 |
-
url:ajaxurl,
|
1082 |
-
dataType: "json",
|
1083 |
-
data:{action:"saswp_reset_all_settings", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1084 |
-
success:function(response){
|
1085 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1086 |
-
},
|
1087 |
-
error: function(response){
|
1088 |
-
console.log(response);
|
1089 |
-
}
|
1090 |
-
});
|
1091 |
-
|
1092 |
-
}
|
1093 |
-
|
1094 |
-
|
1095 |
-
});
|
1096 |
-
|
1097 |
-
//Licensing jquery starts here
|
1098 |
-
$(document).on("click",".saswp_license_activation", function(e){
|
1099 |
-
e.preventDefault();
|
1100 |
-
var current = $(this);
|
1101 |
-
current.addClass('updating-message');
|
1102 |
-
var license_status = $(this).attr('license-status');
|
1103 |
-
var add_on = $(this).attr('add-on');
|
1104 |
-
var license_key = $("#"+add_on+"_addon_license_key").val();
|
1105 |
-
|
1106 |
-
if(license_status && add_on && license_key){
|
1107 |
-
|
1108 |
-
$.ajax({
|
1109 |
-
type: "POST",
|
1110 |
-
url:ajaxurl,
|
1111 |
-
dataType: "json",
|
1112 |
-
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},
|
1113 |
-
success:function(response){
|
1114 |
-
|
1115 |
-
$("#"+add_on+"_addon_license_key_status").val(response['status']);
|
1116 |
-
|
1117 |
-
if(response['status'] =='active'){
|
1118 |
-
$(".saswp-"+add_on+"-dashicons").addClass('dashicons-yes');
|
1119 |
-
$(".saswp-"+add_on+"-dashicons").removeClass('dashicons-no-alt');
|
1120 |
-
$(".saswp-"+add_on+"-dashicons").css("color", "green");
|
1121 |
-
|
1122 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "inactive");
|
1123 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").text("Deactivate");
|
1124 |
-
|
1125 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text('Activated');
|
1126 |
-
|
1127 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "green");
|
1128 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
|
1129 |
-
|
1130 |
-
}else{
|
1131 |
-
|
1132 |
-
$(".saswp-"+add_on+"-dashicons").addClass('dashicons-no-alt');
|
1133 |
-
$(".saswp-"+add_on+"-dashicons").removeClass('dashicons-yes');
|
1134 |
-
$(".saswp-"+add_on+"-dashicons").css("color", "red");
|
1135 |
-
|
1136 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "active");
|
1137 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").text("Activate");
|
1138 |
-
|
1139 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "red");
|
1140 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
|
1141 |
-
}
|
1142 |
-
current.removeClass('updating-message');
|
1143 |
-
},
|
1144 |
-
error: function(response){
|
1145 |
-
console.log(response);
|
1146 |
-
}
|
1147 |
-
});
|
1148 |
-
|
1149 |
-
}else{
|
1150 |
-
alert('Please enter value license key');
|
1151 |
-
current.removeClass('updating-message');
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
});
|
1155 |
-
//Licensing jquery ends here
|
1156 |
-
//query form send starts here
|
1157 |
-
|
1158 |
-
$(".saswp-send-query").on("click", function(e){
|
1159 |
-
e.preventDefault();
|
1160 |
-
var message = $("#saswp_query_message").val();
|
1161 |
-
if($.trim(message) !=''){
|
1162 |
-
$.ajax({
|
1163 |
-
type: "POST",
|
1164 |
-
url:ajaxurl,
|
1165 |
-
dataType: "json",
|
1166 |
-
data:{action:"saswp_send_query_message", message:message, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1167 |
-
success:function(response){
|
1168 |
-
if(response['status'] =='t'){
|
1169 |
-
$(".saswp-query-success").show();
|
1170 |
-
$(".saswp-query-error").hide();
|
1171 |
-
}else{
|
1172 |
-
console.log('dd');
|
1173 |
-
$(".saswp-query-success").hide();
|
1174 |
-
$(".saswp-query-error").show();
|
1175 |
-
}
|
1176 |
-
},
|
1177 |
-
error: function(response){
|
1178 |
-
console.log(response);
|
1179 |
-
}
|
1180 |
-
});
|
1181 |
-
}else{
|
1182 |
-
alert('Please enter the message');
|
1183 |
-
}
|
1184 |
-
|
1185 |
-
});
|
1186 |
-
|
1187 |
-
//Importer from schema plugin starts here
|
1188 |
-
|
1189 |
-
$(".saswp-import-plugins").on("click", function(e){
|
1190 |
-
e.preventDefault();
|
1191 |
-
var current_selection = $(this);
|
1192 |
-
current_selection.addClass('updating-message');
|
1193 |
-
var plugin_name = $(this).attr('data-id');
|
1194 |
-
$.get(ajaxurl,
|
1195 |
-
{ action:"saswp_import_plugin_data", plugin_name:plugin_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1196 |
-
function(response){
|
1197 |
-
if(response['status'] =='t'){
|
1198 |
-
$(current_selection).parent().find(".saswp-imported-message").text(response['message']);
|
1199 |
-
$(current_selection).parent().find(".saswp-imported-message").removeClass('saswp-error');
|
1200 |
-
setTimeout(function(){ location.reload(); }, 2000);
|
1201 |
-
}else{
|
1202 |
-
$(current_selection).parent().find(".saswp-imported-message").addClass('saswp-error');
|
1203 |
-
$(current_selection).parent().find(".saswp-imported-message").text(response['message']);
|
1204 |
-
}
|
1205 |
-
current_selection.removeClass('updating-message');
|
1206 |
-
},'json');
|
1207 |
-
});
|
1208 |
-
|
1209 |
-
|
1210 |
-
$(".saswp-feedback-no-thanks").on("click", function(e){
|
1211 |
-
e.preventDefault();
|
1212 |
-
$.get(ajaxurl,
|
1213 |
-
{ action:"saswp_feeback_no_thanks"},
|
1214 |
-
function(response){
|
1215 |
-
if(response['status'] =='t'){
|
1216 |
-
$(".saswp-feedback-notice").hide();
|
1217 |
-
}
|
1218 |
-
},'json');
|
1219 |
-
});
|
1220 |
-
|
1221 |
-
$(".saswp-feedback-remindme").on("click", function(e){
|
1222 |
-
e.preventDefault();
|
1223 |
-
$.get(ajaxurl,
|
1224 |
-
{ action:"saswp_feeback_remindme"},
|
1225 |
-
function(response){
|
1226 |
-
if(response['status'] =='t'){
|
1227 |
-
$(".saswp-feedback-notice").hide();
|
1228 |
-
}
|
1229 |
-
},'json');
|
1230 |
-
});
|
1231 |
-
|
1232 |
-
$(document).on("change",'.saswp-local-business-type-select', function(e){
|
1233 |
-
e.preventDefault();
|
1234 |
-
var current = $(this);
|
1235 |
-
var business_type = $(this).val();
|
1236 |
-
$.get(ajaxurl,
|
1237 |
-
{ action:"saswp_get_sub_business_ajax", business_type:business_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1238 |
-
function(response){
|
1239 |
-
|
1240 |
-
if(response['status'] =='t'){
|
1241 |
-
$(".saswp-local-business-name-select").parents('tr').remove();
|
1242 |
-
var schema_id = current.parents('.saswp-post-specific-wrapper').attr('data-id');
|
1243 |
-
var html ='<tr><th><label for="saswp_business_name_'+schema_id+'">Sub Business Type</label></th>';
|
1244 |
-
html +='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+schema_id+'" name="saswp_business_name_'+schema_id+'">';
|
1245 |
-
$.each(response['result'], function(index, element){
|
1246 |
-
html +='<option value="'+index+'">'+element+'</option>';
|
1247 |
-
});
|
1248 |
-
html +='</select></td>';
|
1249 |
-
html +='</tr>';
|
1250 |
-
current.parents('.form-table tr:first').after(html);
|
1251 |
-
}else{
|
1252 |
-
$(".saswp-local-business-name-select").parents('tr').remove();
|
1253 |
-
}
|
1254 |
-
},'json');
|
1255 |
-
});
|
1256 |
-
|
1257 |
-
|
1258 |
-
function saswp_item_reviewed_call(){
|
1259 |
-
|
1260 |
-
$(".saswp-item-reviewed").change(function(e){
|
1261 |
-
e.preventDefault();
|
1262 |
-
var schema_type ="";
|
1263 |
-
|
1264 |
-
if($('select#schema_type option:selected').val()){
|
1265 |
-
schema_type = $('select#schema_type option:selected').val();
|
1266 |
-
}
|
1267 |
-
if($(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
1268 |
-
schema_type = $(".saswp-tab-links.selected").attr('saswp-schema-type');
|
1269 |
-
}
|
1270 |
-
|
1271 |
-
if(schema_type === 'Review'){
|
1272 |
-
|
1273 |
-
var current = $(this);
|
1274 |
-
var item = $(this).val();
|
1275 |
-
var post_id = saswp_localize_data.post_id;
|
1276 |
-
var schema_id = $(current).attr('data-id');
|
1277 |
-
var post_specific = $(current).attr('post-specific');
|
1278 |
-
$.get(ajaxurl,
|
1279 |
-
{ 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},
|
1280 |
-
function(response){
|
1281 |
-
|
1282 |
-
$(current).parent().parent().nextAll().remove(".saswp-review-tr");
|
1283 |
-
$(current).parent().parent().after(response);
|
1284 |
-
|
1285 |
-
});
|
1286 |
-
|
1287 |
-
}
|
1288 |
-
|
1289 |
-
|
1290 |
-
}).change();
|
1291 |
-
|
1292 |
-
}
|
1293 |
-
saswp_item_reviewed_call();
|
1294 |
-
|
1295 |
-
function saswpAddTimepicker(){
|
1296 |
-
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1297 |
-
}
|
1298 |
-
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1299 |
-
|
1300 |
-
$(document).on("click",".saswp-add-custom-schema", function(e){
|
1301 |
-
|
1302 |
-
e.preventDefault();
|
1303 |
-
|
1304 |
-
$(".saswp-add-custom-schema-field").removeClass('saswp_hide');
|
1305 |
-
$(this).hide();
|
1306 |
-
|
1307 |
-
});
|
1308 |
-
|
1309 |
-
$(document).on("click", ".saswp-delete-custom-schema", function(e){
|
1310 |
-
|
1311 |
-
e.preventDefault();
|
1312 |
-
|
1313 |
-
$("#saswp_custom_schema_field").val('');
|
1314 |
-
$(".saswp-add-custom-schema-field").addClass('saswp_hide');
|
1315 |
-
$(".saswp-add-custom-schema").show();
|
1316 |
-
|
1317 |
-
});
|
1318 |
-
|
1319 |
-
$(".saswp-modify_schema_post_enable").on("click", function(e){
|
1320 |
-
var current = $(this);
|
1321 |
-
current.addClass('updating-message');
|
1322 |
-
e.preventDefault();
|
1323 |
-
$.get(ajaxurl,
|
1324 |
-
{ action:"saswp_modify_schema_post_enable", post_id: saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1325 |
-
function(response){
|
1326 |
-
current.remove();
|
1327 |
-
$(".saswp-add-custom-schema-div").remove();
|
1328 |
-
$("#post_specific .inside").append(response);
|
1329 |
-
current.removeClass('updating-message');
|
1330 |
-
saswpAddTimepicker();
|
1331 |
-
saswp_schema_datepicker();
|
1332 |
-
saswp_enable_rating_review();
|
1333 |
-
saswp_item_reviewed_call();
|
1334 |
-
});
|
1335 |
-
|
1336 |
-
});
|
1337 |
-
saswp_schema_datepicker();
|
1338 |
-
|
1339 |
-
saswp_reviews_datepicker();
|
1340 |
-
function saswp_reviews_datepicker(){
|
1341 |
-
|
1342 |
-
$('.saswp-reviews-datepicker-picker').datepicker({
|
1343 |
-
dateFormat: "yy-mm-dd"
|
1344 |
-
});
|
1345 |
-
}
|
1346 |
-
|
1347 |
-
//Review js starts here
|
1348 |
-
|
1349 |
-
$(document).on("click", ".saswp-add-more-item",function(e){
|
1350 |
-
e.preventDefault();
|
1351 |
-
var rows = $('.saswp-review-item-list-table tr').length;
|
1352 |
-
console.log(rows);
|
1353 |
-
var html = '<tr class="saswp-review-item-tr">';
|
1354 |
-
html += '<td>Review Item Feature</td>';
|
1355 |
-
html += '<td><input type="text" name="saswp-review-item-feature[]"></td>';
|
1356 |
-
html += '<td>Rating</td>';
|
1357 |
-
html += '<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>';
|
1358 |
-
html += '<td><a type="button" class="saswp-remove-review-item button">x</a></td>';
|
1359 |
-
html += '</tr>';
|
1360 |
-
$(".saswp-review-item-list-table").append(html);
|
1361 |
-
|
1362 |
-
});
|
1363 |
-
|
1364 |
-
$(document).on("click", ".saswp-remove-review-item", function(e){
|
1365 |
-
e.preventDefault();
|
1366 |
-
$(this).parent().parent('tr').remove();
|
1367 |
-
});
|
1368 |
-
|
1369 |
-
$(document).on("focusout", ".saswp-review-item-tr input[type=number]", function(e){
|
1370 |
-
e.preventDefault();
|
1371 |
-
var total_rating = 0;
|
1372 |
-
var element_count = $(".saswp-review-item-tr input[type=number]").length;
|
1373 |
-
$(".saswp-review-item-tr input[type=number]").each(function(index, element){
|
1374 |
-
if($(element).val() ==''){
|
1375 |
-
total_rating += parseFloat(0);
|
1376 |
-
}else{
|
1377 |
-
total_rating += parseFloat($(element).val());
|
1378 |
-
}
|
1379 |
-
|
1380 |
-
});
|
1381 |
-
var over_all_rating = total_rating / element_count;
|
1382 |
-
$("#saswp-review-item-over-all").val(over_all_rating);
|
1383 |
-
});
|
1384 |
-
|
1385 |
-
$("#saswp-review-location").change(function(){
|
1386 |
-
var location = $(this).val();
|
1387 |
-
$(".saswp-review-shortcode").addClass('saswp_hide');
|
1388 |
-
if(location == 3){
|
1389 |
-
$(".saswp-review-shortcode").removeClass('saswp_hide');
|
1390 |
-
}
|
1391 |
-
}).change();
|
1392 |
-
|
1393 |
-
$("#saswp-review-item-enable").change(function(){
|
1394 |
-
if ($(this).is(':checked')) {
|
1395 |
-
$(".saswp-review-fields").show();
|
1396 |
-
}else{
|
1397 |
-
$(".saswp-review-fields").hide();
|
1398 |
-
}
|
1399 |
-
}).change();
|
1400 |
-
|
1401 |
-
$(document).on("click", ".saswp-restore-post-schema", function(e){
|
1402 |
-
e.preventDefault();
|
1403 |
-
var current = $(this);
|
1404 |
-
current.addClass('updating-message');
|
1405 |
-
|
1406 |
-
if($(".saswp-post-specific-schema-ids").val()){
|
1407 |
-
var schema_ids = JSON.parse($(".saswp-post-specific-schema-ids").val());
|
1408 |
-
}
|
1409 |
-
|
1410 |
-
$.post(ajaxurl,
|
1411 |
-
{ action:"saswp_restore_schema", schema_ids:schema_ids,post_id: saswp_localize_data.post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1412 |
-
function(response){
|
1413 |
-
if(response['status'] =='t'){
|
1414 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1415 |
-
}else{
|
1416 |
-
alert(response['msg']);
|
1417 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1418 |
-
}
|
1419 |
-
current.removeClass('updating-message');
|
1420 |
-
},'json');
|
1421 |
-
});
|
1422 |
-
|
1423 |
-
//Review js ends here
|
1424 |
-
|
1425 |
-
$(document).on("click","div.saswp-tab ul.saswp-tab-nav a", function(e){
|
1426 |
-
e.preventDefault();
|
1427 |
-
var attr = $(this).attr('data-id');
|
1428 |
-
$(".saswp-post-specific-wrapper").hide();
|
1429 |
-
$("#"+attr).show();
|
1430 |
-
$('div.saswp-tab ul.saswp-tab-nav a').removeClass('selected');
|
1431 |
-
$('div.saswp-tab ul.saswp-tab-nav li').removeClass('selected');
|
1432 |
-
$(this).addClass('selected');
|
1433 |
-
$(this).parent().addClass('selected');
|
1434 |
-
saswp_enable_rating_review();
|
1435 |
-
});
|
1436 |
-
|
1437 |
-
|
1438 |
-
$('#saswp-global-tabs a:first').addClass('saswp-global-selected');
|
1439 |
-
$('.saswp-global-container').hide();
|
1440 |
-
|
1441 |
-
var hash = window.location.hash;
|
1442 |
-
|
1443 |
-
if(hash == '#saswp-default-container'){
|
1444 |
-
$('.saswp-global-container:eq(2)').show();
|
1445 |
-
}else{
|
1446 |
-
$('.saswp-global-container:first').show();
|
1447 |
-
}
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
$('#saswp-global-tabs a').click(function(){
|
1452 |
-
var t = $(this).attr('data-id');
|
1453 |
-
|
1454 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1455 |
-
$('#saswp-global-tabs a').removeClass('saswp-global-selected');
|
1456 |
-
$(this).addClass('saswp-global-selected');
|
1457 |
-
|
1458 |
-
$('.saswp-global-container').hide();
|
1459 |
-
$('#'+t).show();
|
1460 |
-
}
|
1461 |
-
});
|
1462 |
-
|
1463 |
-
|
1464 |
-
$('#saswp-tools-tabs a:first').addClass('saswp-global-selected');
|
1465 |
-
$('.saswp-tools-container').hide();
|
1466 |
-
$('.saswp-tools-container:first').show();
|
1467 |
-
|
1468 |
-
$('#saswp-tools-tabs a').click(function(){
|
1469 |
-
var t = $(this).attr('data-id');
|
1470 |
-
|
1471 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1472 |
-
$('#saswp-tools-tabs a').removeClass('saswp-global-selected');
|
1473 |
-
$(this).addClass('saswp-global-selected');
|
1474 |
-
|
1475 |
-
$('.saswp-tools-container').hide();
|
1476 |
-
$('#'+t).show();
|
1477 |
-
}
|
1478 |
-
});
|
1479 |
-
|
1480 |
-
|
1481 |
-
$('#saswp-review-tabs a:first').addClass('saswp-global-selected');
|
1482 |
-
$('.saswp-review-container').hide();
|
1483 |
-
$('.saswp-review-container:first').show();
|
1484 |
-
|
1485 |
-
$('#saswp-review-tabs a').click(function(){
|
1486 |
-
var t = $(this).attr('data-id');
|
1487 |
-
|
1488 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1489 |
-
$('#saswp-review-tabs a').removeClass('saswp-global-selected');
|
1490 |
-
$(this).addClass('saswp-global-selected');
|
1491 |
-
|
1492 |
-
$('.saswp-review-container').hide();
|
1493 |
-
$('#'+t).show();
|
1494 |
-
}
|
1495 |
-
});
|
1496 |
-
|
1497 |
-
|
1498 |
-
//Importer from schema plugin ends here
|
1499 |
-
|
1500 |
-
//custom fields modify schema starts here
|
1501 |
-
|
1502 |
-
//Changing the url of add new schema type
|
1503 |
-
$('a[href="'+saswp_localize_data.new_url_selector+'"]').attr( 'href', saswp_localize_data.new_url_href);
|
1504 |
-
|
1505 |
-
|
1506 |
-
$("#saswp_enable_custom_field").change(function(){
|
1507 |
-
if ($(this).is(':checked')) {
|
1508 |
-
$(".saswp-custom-fields-div").show();
|
1509 |
-
}else{
|
1510 |
-
$(".saswp-custom-fields-div").hide();
|
1511 |
-
}
|
1512 |
-
});
|
1513 |
-
|
1514 |
-
$(document).on('change','.saswp-custom-fields-name',function(){
|
1515 |
-
|
1516 |
-
var type = 'text';
|
1517 |
-
var fields_name = $(this).val();
|
1518 |
-
var str2 = "image";
|
1519 |
-
if(fields_name.indexOf(str2) != -1){
|
1520 |
-
type = 'image';
|
1521 |
-
}
|
1522 |
-
|
1523 |
-
var id = $(this).parent().parent('tr').find("td:eq(1)");
|
1524 |
-
saswp_get_meta_list(type, null, id, fields_name);
|
1525 |
-
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1526 |
-
});
|
1527 |
-
|
1528 |
-
$(document).on("click", '.saswp-skip-button', function(e){
|
1529 |
-
e.preventDefault();
|
1530 |
-
$(this).parent().parent().hide();
|
1531 |
-
|
1532 |
-
$.post(ajaxurl,
|
1533 |
-
{ action:"saswp_skip_wizard", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1534 |
-
function(response){
|
1535 |
-
|
1536 |
-
},'json');
|
1537 |
-
|
1538 |
-
});
|
1539 |
-
|
1540 |
-
$(document).on("click", ".saswp_add_schema_fields_on_fly", function(e){
|
1541 |
-
e.preventDefault();
|
1542 |
-
|
1543 |
-
var schema_id = $(this).attr('data-id');
|
1544 |
-
var fields_type = $(this).attr('fields_type');
|
1545 |
-
var div_type = $(this).attr('div_type');
|
1546 |
-
|
1547 |
-
var count = $(".saswp-"+div_type+"-table-div").length;
|
1548 |
-
var index = $( ".saswp-"+div_type+"-table-div:nth-child("+count+")" ).attr('data-id');
|
1549 |
-
index = ++index;
|
1550 |
-
|
1551 |
-
if(!index){
|
1552 |
-
index = 0;
|
1553 |
-
}
|
1554 |
-
|
1555 |
-
saswp_get_post_specific_schema_fields(index, fields_type, div_type, schema_id, fields_type+'_');
|
1556 |
-
|
1557 |
-
});
|
1558 |
-
|
1559 |
-
$(document).on("click", ".saswp-table-close", function(){
|
1560 |
-
$(this).parent().remove();
|
1561 |
-
});
|
1562 |
-
|
1563 |
-
//How to schema js ends here
|
1564 |
-
|
1565 |
-
|
1566 |
-
$(document).on("change",".saswp-custom-meta-list", function(){
|
1567 |
-
|
1568 |
-
var meta_val = $(this).val();
|
1569 |
-
var field_name = $(this).parent().parent('tr').find(".saswp-custom-fields-name").val();
|
1570 |
-
var html = '';
|
1571 |
-
if(meta_val == 'manual_text'){
|
1572 |
-
html = '<td><input type="text" name="saswp_fixed_text['+field_name+']"></td>';
|
1573 |
-
}
|
1574 |
-
|
1575 |
-
if(meta_val == 'custom_field'){
|
1576 |
-
html += '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+field_name+']">';
|
1577 |
-
html += '</select></td>';
|
1578 |
-
|
1579 |
-
}
|
1580 |
-
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1581 |
-
$(this).parent().parent('tr').append(html);
|
1582 |
-
saswpCustomSelect2();
|
1583 |
-
|
1584 |
-
});
|
1585 |
-
|
1586 |
-
$(document).on("click", '.saswp-add-custom-fields', function(){
|
1587 |
-
var schema_type = $('select#schema_type option:selected').val();
|
1588 |
-
var post_id = $('#post_ID').val();
|
1589 |
-
if(schema_type !=''){
|
1590 |
-
|
1591 |
-
if(!saswp_meta_list_fields){
|
1592 |
-
|
1593 |
-
$.ajax({
|
1594 |
-
type: "POST",
|
1595 |
-
url:ajaxurl,
|
1596 |
-
dataType: "json",
|
1597 |
-
data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1598 |
-
success:function(response){
|
1599 |
-
saswp_meta_list_fields = response;
|
1600 |
-
saswp_get_meta_list('text', saswp_meta_list_fields, null, null);
|
1601 |
-
|
1602 |
-
},
|
1603 |
-
error: function(response){
|
1604 |
-
console.log(response);
|
1605 |
-
}
|
1606 |
-
});
|
1607 |
-
|
1608 |
-
|
1609 |
-
}else{
|
1610 |
-
saswp_get_meta_list('text', saswp_meta_list_fields, null, null);
|
1611 |
-
}
|
1612 |
-
|
1613 |
-
}
|
1614 |
-
});
|
1615 |
-
saswpCustomSelect2();
|
1616 |
-
function saswpCustomSelect2(){
|
1617 |
-
if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
|
1618 |
-
|
1619 |
-
$('.saswp-custom-fields-select2').select2({
|
1620 |
-
ajax: {
|
1621 |
-
type: "POST",
|
1622 |
-
url: ajaxurl, // AJAX URL is predefined in WordPress admin
|
1623 |
-
dataType: 'json',
|
1624 |
-
delay: 250, // delay in ms while typing when to perform a AJAX search
|
1625 |
-
data: function (params) {
|
1626 |
-
return {
|
1627 |
-
saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
|
1628 |
-
q: params.term, // search query
|
1629 |
-
action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
|
1630 |
-
};
|
1631 |
-
},
|
1632 |
-
processResults: function( data ) {
|
1633 |
-
return {
|
1634 |
-
results: data
|
1635 |
-
};
|
1636 |
-
},
|
1637 |
-
cache: true
|
1638 |
-
},
|
1639 |
-
minimumInputLength: 2 // the minimum of symbols to input before perform a search
|
1640 |
-
});
|
1641 |
-
|
1642 |
-
}
|
1643 |
-
|
1644 |
-
}
|
1645 |
-
|
1646 |
-
function saswp_enable_rating_review(){
|
1647 |
-
var schema_type ="";
|
1648 |
-
if($('select#schema_type option:selected').val()){
|
1649 |
-
schema_type = $('select#schema_type option:selected').val();
|
1650 |
-
}
|
1651 |
-
if($(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
1652 |
-
schema_type = $(".saswp-tab-links.selected").attr('saswp-schema-type');
|
1653 |
-
}
|
1654 |
-
|
1655 |
-
if(schema_type){
|
1656 |
-
$(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
|
1657 |
-
|
1658 |
-
if($(this).is(':checked')){
|
1659 |
-
$(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
|
1660 |
-
}else{
|
1661 |
-
$(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
1662 |
-
}
|
1663 |
-
|
1664 |
-
}).change();
|
1665 |
-
}
|
1666 |
-
|
1667 |
-
}
|
1668 |
-
saswp_enable_rating_review();
|
1669 |
-
|
1670 |
-
//custom fields modify schema ends here
|
1671 |
-
|
1672 |
-
|
1673 |
-
//Google review js starts here
|
1674 |
-
|
1675 |
-
$('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr( 'href', saswp_localize_data.collection_post_add_new_url);
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
$(document).on("click", '.saswp_coonect_google_place', function(){
|
1680 |
-
|
1681 |
-
var place_id = $("#saswp_google_place_id").val();
|
1682 |
-
var language = $("#saswp_language_list").val();
|
1683 |
-
var google_api = $("#saswp_googel_api").val();
|
1684 |
-
|
1685 |
-
if(place_id !=''){
|
1686 |
-
$.ajax({
|
1687 |
-
type: "POST",
|
1688 |
-
url:ajaxurl,
|
1689 |
-
dataType: "json",
|
1690 |
-
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},
|
1691 |
-
success:function(response){
|
1692 |
-
console.log(response['status']);
|
1693 |
-
},
|
1694 |
-
error: function(response){
|
1695 |
-
console.log(response);
|
1696 |
-
}
|
1697 |
-
});
|
1698 |
-
}
|
1699 |
-
});
|
1700 |
-
|
1701 |
-
//google review js ends here
|
1702 |
-
|
1703 |
-
//Adding settings button beside add schema type button on schema type list page
|
1704 |
-
|
1705 |
-
if ('saswp' == saswp_localize_data.post_type && saswp_localize_data.page_now == 'edit.php') {
|
1706 |
-
|
1707 |
-
jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>");
|
1708 |
-
|
1709 |
-
}
|
1710 |
-
|
1711 |
-
//star rating stars here
|
1712 |
-
if(typeof(saswp_reviews_data) !== 'undefined'){
|
1713 |
-
|
1714 |
-
$(".saswp-rating-div").rateYo({
|
1715 |
-
|
1716 |
-
rating: saswp_reviews_data.rating_val,
|
1717 |
-
halfStar: true,
|
1718 |
-
//normalFill: "#ffd700",
|
1719 |
-
readOnly: saswp_reviews_data.readonly,
|
1720 |
-
onSet: function (rating, rateYoInstance) {
|
1721 |
-
$(this).next().val(rating);
|
1722 |
-
console.log(rating);
|
1723 |
-
}
|
1724 |
-
|
1725 |
-
});
|
1726 |
-
|
1727 |
-
}
|
1728 |
-
$(document).on("click", ".saswp-add-g-location-btn", function(e){
|
1729 |
-
|
1730 |
-
var blocks_field = '';
|
1731 |
-
|
1732 |
-
if($("#saswp_google_place_api_key").length){
|
1733 |
-
|
1734 |
-
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">';
|
1735 |
-
}else{
|
1736 |
-
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">';
|
1737 |
-
}
|
1738 |
-
|
1739 |
-
e.preventDefault();
|
1740 |
-
var html = '';
|
1741 |
-
html += '<tr>'
|
1742 |
-
+ '<td style="width:12%;"><strong>Place Id</strong></td>'
|
1743 |
-
+ '<td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td>'
|
1744 |
-
+ '<td style="width:10%;"><strong>Reviews</strong></td>'
|
1745 |
-
+ '<td style="width:10%;">'+blocks_field+'</td>'
|
1746 |
-
+ '<td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td>'
|
1747 |
-
+ '<td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td>'
|
1748 |
-
+ '<td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td>'
|
1749 |
-
+ '</tr>';
|
1750 |
-
if(html){
|
1751 |
-
$(".saswp-g-reviews-settings-table").append(html);
|
1752 |
-
}
|
1753 |
-
|
1754 |
-
});
|
1755 |
-
|
1756 |
-
function saswp_fetch_s_approved_reviews(current){
|
1757 |
-
|
1758 |
-
current.addClass('updating-message');
|
1759 |
-
$.get(ajaxurl,
|
1760 |
-
{ action:"saswp_fetch_s_approved_reviews", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1761 |
-
function(response){
|
1762 |
-
current.removeClass('updating-message');
|
1763 |
-
console.log(response);
|
1764 |
-
if(response['status']){
|
1765 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1766 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1767 |
-
}else{
|
1768 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1769 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1770 |
-
}
|
1771 |
-
|
1772 |
-
},'json');
|
1773 |
-
|
1774 |
-
}
|
1775 |
-
|
1776 |
-
function saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page, loop_run){
|
1777 |
-
current.addClass('updating-message');
|
1778 |
-
$.get(ajaxurl,
|
1779 |
-
{ action:"saswp_add_s_approved_reviews",site_id:site_id,token:token,limit:limit,api_key:api_key,page:page, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1780 |
-
function(response){
|
1781 |
-
current.removeClass('updating-message');
|
1782 |
-
console.log(response);
|
1783 |
-
if(response['status']){
|
1784 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1785 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1786 |
-
}else{
|
1787 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1788 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1789 |
-
}
|
1790 |
-
page++;
|
1791 |
-
if(page <loop_run){
|
1792 |
-
saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page);
|
1793 |
-
}else{
|
1794 |
-
saswp_fetch_s_approved_reviews(current);
|
1795 |
-
}
|
1796 |
-
},'json');
|
1797 |
-
|
1798 |
-
}
|
1799 |
-
|
1800 |
-
$(document).on("click",".saswp-fetch-s-approved-reviews", function(e){
|
1801 |
-
|
1802 |
-
e.preventDefault();
|
1803 |
-
var current = $(this);
|
1804 |
-
current.addClass('updating-message');
|
1805 |
-
var site_id = $("#saswp_s_approved_site_id").val();
|
1806 |
-
var token = $("#saswp_s_approved_token").val();
|
1807 |
-
var limit = $("#saswp_s_approved_reviews").val();
|
1808 |
-
var api_key = $("#reviews_addon_license_key").val();
|
1809 |
-
var loop_run = 1;
|
1810 |
-
var page = 0;
|
1811 |
-
|
1812 |
-
if(limit > 100){
|
1813 |
-
var div_limit = limit/100;
|
1814 |
-
var div_remainder = limit%100;
|
1815 |
-
loop_run = div_limit;
|
1816 |
-
|
1817 |
-
if(div_remainder){
|
1818 |
-
loop_run++;
|
1819 |
-
}
|
1820 |
-
|
1821 |
-
}
|
1822 |
-
|
1823 |
-
if(site_id && token && api_key){
|
1824 |
-
|
1825 |
-
saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page, loop_run);
|
1826 |
-
|
1827 |
-
}else{
|
1828 |
-
current.removeClass('updating-message');
|
1829 |
-
alert('Fill the site id and token with valid api key');
|
1830 |
-
}
|
1831 |
-
|
1832 |
-
});
|
1833 |
-
|
1834 |
-
|
1835 |
-
$(document).on("click", '.saswp-fetch-g-reviews', function(){
|
1836 |
-
|
1837 |
-
var current = $(this);
|
1838 |
-
var premium_status = 'free';
|
1839 |
-
current.addClass('updating-message');
|
1840 |
-
|
1841 |
-
var location = $(this).parent().parent().find('.saswp-g-location-field').val();
|
1842 |
-
var blocks = $(this).parent().parent().find('.saswp-g-blocks-field').val();
|
1843 |
-
var g_api = $("#saswp_google_place_api_key").val();
|
1844 |
-
var reviews_api = $("#reviews_addon_license_key").val();
|
1845 |
-
var reviews_api_status = $("#reviews_addon_license_key_status").val();
|
1846 |
-
|
1847 |
-
if($("#saswp_google_place_api_key").length){
|
1848 |
-
premium_status = 'free';
|
1849 |
-
}else{
|
1850 |
-
premium_status = 'premium';
|
1851 |
-
}
|
1852 |
-
|
1853 |
-
if(premium_status == 'premium'){
|
1854 |
-
|
1855 |
-
if(blocks > 0){
|
1856 |
-
|
1857 |
-
var blocks_remainder = blocks % 10;
|
1858 |
-
|
1859 |
-
if(blocks_remainder != 0){
|
1860 |
-
|
1861 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Reviews count should be in step of 10');
|
1862 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1863 |
-
current.removeClass('updating-message');
|
1864 |
-
return false;
|
1865 |
-
|
1866 |
-
}
|
1867 |
-
|
1868 |
-
}else{
|
1869 |
-
alert('Blocks value is zero');
|
1870 |
-
current.removeClass('updating-message');
|
1871 |
-
return false;
|
1872 |
-
}
|
1873 |
-
|
1874 |
-
}
|
1875 |
-
|
1876 |
-
if(location !='' && (reviews_api || g_api)){
|
1877 |
-
$.ajax({
|
1878 |
-
type: "POST",
|
1879 |
-
url:ajaxurl,
|
1880 |
-
dataType: "json",
|
1881 |
-
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},
|
1882 |
-
success:function(response){
|
1883 |
-
if(response['status'] =='t'){
|
1884 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Success');
|
1885 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1886 |
-
}else{
|
1887 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1888 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1889 |
-
}
|
1890 |
-
current.removeClass('updating-message');
|
1891 |
-
},
|
1892 |
-
error: function(response){
|
1893 |
-
console.log(response);
|
1894 |
-
}
|
1895 |
-
});
|
1896 |
-
}else{
|
1897 |
-
if(location ==''){
|
1898 |
-
alert('Please enter place id');
|
1899 |
-
}
|
1900 |
-
if(g_api ==''){
|
1901 |
-
alert('Please enter api key');
|
1902 |
-
}
|
1903 |
-
if(reviews_api ==''){
|
1904 |
-
alert('Please enter reviews api key');
|
1905 |
-
}
|
1906 |
-
current.removeClass('updating-message');
|
1907 |
-
}
|
1908 |
-
});
|
1909 |
-
|
1910 |
-
//rating ends here
|
1911 |
-
|
1912 |
-
$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){
|
1913 |
-
var current = $(this);
|
1914 |
-
|
1915 |
-
current.parent().find('.saswp-phone-validation').remove();
|
1916 |
-
|
1917 |
-
var pnumber = $(this).val();
|
1918 |
-
var p_regex = /^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/;
|
1919 |
-
|
1920 |
-
if(!p_regex.test(pnumber)){
|
1921 |
-
current.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>');
|
1922 |
-
}else{
|
1923 |
-
current.parent().find('.saswp-phone-validation').remove();
|
1924 |
-
}
|
1925 |
-
|
1926 |
-
});
|
1927 |
-
|
1928 |
-
});
|
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){var o=a;null==o&&(o=Object.keys(s)[0]);var n="";if(n+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+o+']">',$.each(e,function(e,s){n+='<optgroup label="'+s.label+'">',$.each(s["meta-list"],function(e,s){n+='<option value="'+e+'">'+s+"</option>"}),n+="</optgroup>"}),n+="</select>",s){var p="<tr>";p+="<td>",p+='<select class="saswp-custom-fields-name">',$.each(s,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),p+="</select>",p+="</td>",p+="<td>",p+=n,p+="</td>",p+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',p+="</tr>",$(".saswp-custom-fields-table").append(p)}else $(t).html(n)}function saswp_get_meta_list(e,s,a,t,i){saswp_meta_list[e]?saswp_meta_list_html(saswp_meta_list[e],s,t,a,i):$.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(o){saswp_meta_list[e]=o[e],saswp_meta_list_html(saswp_meta_list[e],s,t,a,i)},"json")}function saswp_get_post_specific_schema_fields(e,s,a,t,i){if(saswp_meta_fields[i]){var o=saswp_fields_html_generator(e,t,i,a,saswp_meta_fields[i]);o&&($(".saswp-"+a+'-section[data-id="'+t+'"]').append(o),saswp_schema_datepicker())}else $.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:s,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){saswp_meta_fields[i]=s,console.log(saswp_meta_fields);var o=saswp_fields_html_generator(e,t,i,a,s);o&&($(".saswp-"+a+'-section[data-id="'+t+'"]').append(o),saswp_schema_datepicker())},"json")}function saswp_fields_html_generator(e,s,a,t,i){var o="";return o+='<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">',$.each(i,function(t,i){var n="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name||(n="saswp-datepicker-picker"),i.type){case"text":o+="<tr><th>"+i.label+'</th><td><input class="'+n+'" style="width:100%" type="text" id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']"></td></tr>';break;case"textarea":o+="<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="";$.each(i.options,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),o+="<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":o+="<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>'}}),o+="</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 o(){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(),o=saswp_localize_data.post_id,n=e(t).attr("data-id"),p=e(t).attr("post-specific");e.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_id:n,post_specific:p,item:i,post_id:o,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 n(){"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,o,n,p){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_add_s_approved_reviews",site_id:a,token:t,limit:i,api_key:o,page:n,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")),++n<p?c(s,a,t,i,o,n):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),o()),"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-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 o="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&s.height<1200&&(o='<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>'+o)}).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"),o=e("#"+i+"_addon_license_key").val();t&&i&&o?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:o,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")}),o(),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(),o()})}),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")&&(s="image"),saswp_get_meta_list(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).attr("data-id"),t=e(this).attr("fields_type"),i=e(this).attr("div_type"),o=e(".saswp-"+i+"-table-div").length,n=e(".saswp-"+i+"-table-div:nth-child("+o+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(n,t,i,a,t+"_")}),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(this).val(),a=e(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),t="";"manual_text"==s?(t+='<td><input type="text" name="saswp_fixed_text['+a+']"></td>',t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"custom_field"==s?(t+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+a+']">',t+="</select></td>",t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):(t+="<td></td>",t+='<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(t),n()}),e(document).on("click",".saswp-add-custom-fields",function(){var s=e("select#schema_type option:selected").val(),a=e("#post_ID").val();""!=s&&(saswp_meta_list_fields[s]?saswp_get_meta_list("text",saswp_meta_list_fields[s],null,null,null):e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:a,schema_type:s,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){saswp_meta_list_fields[s]=e,saswp_get_meta_list("text",saswp_meta_list_fields[s],null,null,null)},error:function(e){console.log(e)}}))}),n(),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(),o=e("#saswp_s_approved_reviews").val(),n=e("#reviews_addon_license_key").val(),p=1;o>100&&(p=o/100,o%100&&p++);t&&i&&n?c(a,t,i,o,n,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(),o=e("#saswp_google_place_api_key").val(),n=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&&(n||o)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:p,reviews_api:n,location:t,blocks:i,g_api:o,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"),""==o&&alert("Please enter api key"),""==n&&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="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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/array-list/schemas.php
CHANGED
@@ -11,6 +11,7 @@ return array(
|
|
11 |
'Blogposting' => 'Blogposting',
|
12 |
'Course' => 'Course',
|
13 |
'DiscussionForumPosting' => 'DiscussionForumPosting',
|
|
|
14 |
'FAQ' => 'FAQ',
|
15 |
'HowTo' => 'HowTo',
|
16 |
'NewsArticle' => 'NewsArticle',
|
11 |
'Blogposting' => 'Blogposting',
|
12 |
'Course' => 'Course',
|
13 |
'DiscussionForumPosting' => 'DiscussionForumPosting',
|
14 |
+
'DataFeed' => 'DataFeed',
|
15 |
'FAQ' => 'FAQ',
|
16 |
'HowTo' => 'HowTo',
|
17 |
'NewsArticle' => 'NewsArticle',
|
output/compatibility.php
CHANGED
@@ -68,7 +68,7 @@ class saswp_output_compatibility{
|
|
68 |
|
69 |
public function saswp_the_seo_framework_override(){
|
70 |
|
71 |
-
add_filter('the_seo_framework_receive_json_data', '
|
72 |
}
|
73 |
public function saswp_squirrly_seo_override(){
|
74 |
add_filter('sq_json_ld', '__return_false',99);
|
68 |
|
69 |
public function saswp_the_seo_framework_override(){
|
70 |
|
71 |
+
add_filter('the_seo_framework_receive_json_data', '__return_null');
|
72 |
}
|
73 |
public function saswp_squirrly_seo_override(){
|
74 |
add_filter('sq_json_ld', '__return_false',99);
|
output/flexmls.php
CHANGED
@@ -277,7 +277,7 @@ class saswp_flexmls_list extends flexmlsConnectPageCore{
|
|
277 |
|
278 |
$input = array();
|
279 |
$input = array(
|
280 |
-
"@context" =>
|
281 |
"@type" => ["Product", "Apartment"],
|
282 |
"name" => esc_attr($result['StandardFields']['UnparsedFirstLineAddress']),
|
283 |
"description" => isset($result['StandardFields']['PublicRemarks'])? $result['StandardFields']['PublicRemarks']:strip_tags(get_the_excerpt()),
|
277 |
|
278 |
$input = array();
|
279 |
$input = array(
|
280 |
+
"@context" => saswp_context_url(),
|
281 |
"@type" => ["Product", "Apartment"],
|
282 |
"name" => esc_attr($result['StandardFields']['UnparsedFirstLineAddress']),
|
283 |
"description" => isset($result['StandardFields']['PublicRemarks'])? $result['StandardFields']['PublicRemarks']:strip_tags(get_the_excerpt()),
|
output/function.php
CHANGED
@@ -198,7 +198,7 @@ function saswp_schema_markup_output() {
|
|
198 |
|
199 |
}
|
200 |
|
201 |
-
$final_output['@context'] =
|
202 |
|
203 |
$final_output['@graph'][] = $kb_schema_output;
|
204 |
$final_output['@graph'][] = $kb_website_output;
|
198 |
|
199 |
}
|
200 |
|
201 |
+
$final_output['@context'] = saswp_context_url();
|
202 |
|
203 |
$final_output['@graph'][] = $kb_schema_output;
|
204 |
$final_output['@graph'][] = $kb_website_output;
|
output/output.php
CHANGED
@@ -120,7 +120,7 @@ function saswp_kb_schema_output() {
|
|
120 |
|
121 |
|
122 |
$input = array(
|
123 |
-
'@context' =>
|
124 |
'@type' => 'Organization',
|
125 |
'@id' => $site_url.'#Organization',
|
126 |
'name' => saswp_remove_warnings($sd_data, 'sd_name', 'saswp_string'),
|
@@ -169,7 +169,7 @@ function saswp_kb_schema_output() {
|
|
169 |
}
|
170 |
|
171 |
$input = array(
|
172 |
-
'@context' =>
|
173 |
'@type' => esc_attr($sd_data['saswp_kb_type']),
|
174 |
'name' => esc_attr($sd_data['sd-person-name']),
|
175 |
'url' => esc_url($sd_data['sd-person-url']),
|
@@ -298,7 +298,7 @@ function saswp_schema_output() {
|
|
298 |
|
299 |
if( 'VideoGame' === $schema_type){
|
300 |
|
301 |
-
$input1['@context'] =
|
302 |
$input1['@type'] = 'VideoGame';
|
303 |
$input1['@id'] = trailingslashit(get_permalink()).'#VideoGame';
|
304 |
$input1['author']['@type'] = 'Organization';
|
@@ -313,7 +313,7 @@ function saswp_schema_output() {
|
|
313 |
|
314 |
if( 'MedicalCondition' === $schema_type){
|
315 |
|
316 |
-
$input1['@context'] =
|
317 |
$input1['@type'] = 'MedicalCondition';
|
318 |
$input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
|
319 |
$input1['associatedAnatomy']['@type'] = 'AnatomicalStructure';
|
@@ -328,7 +328,7 @@ function saswp_schema_output() {
|
|
328 |
|
329 |
if( 'TVSeries' === $schema_type){
|
330 |
|
331 |
-
$input1['@context'] =
|
332 |
$input1['@type'] = 'TVSeries';
|
333 |
$input1['@id'] = trailingslashit(get_permalink()).'#TVSeries';
|
334 |
$input1['author']['@type'] = 'Person';
|
@@ -342,7 +342,7 @@ function saswp_schema_output() {
|
|
342 |
|
343 |
if( 'HowTo' === $schema_type){
|
344 |
|
345 |
-
$input1['@context'] =
|
346 |
$input1['@type'] = 'HowTo';
|
347 |
$input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
|
348 |
$input1['estimatedCost']['@type'] = 'MonetaryAmount';
|
@@ -356,7 +356,7 @@ function saswp_schema_output() {
|
|
356 |
|
357 |
if( 'Trip' === $schema_type){
|
358 |
|
359 |
-
$input1['@context'] =
|
360 |
$input1['@type'] = 'Trip';
|
361 |
$input1['@id'] = trailingslashit(get_permalink()).'#Trip';
|
362 |
|
@@ -369,7 +369,7 @@ function saswp_schema_output() {
|
|
369 |
|
370 |
if( 'SingleFamilyResidence' === $schema_type){
|
371 |
|
372 |
-
$input1['@context'] =
|
373 |
$input1['@type'] = 'SingleFamilyResidence';
|
374 |
$input1['@id'] = trailingslashit(get_permalink()).'#SingleFamilyResidence';
|
375 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -383,7 +383,7 @@ function saswp_schema_output() {
|
|
383 |
|
384 |
if( 'House' === $schema_type){
|
385 |
|
386 |
-
$input1['@context'] =
|
387 |
$input1['@type'] = 'House';
|
388 |
$input1['@id'] = trailingslashit(get_permalink()).'#House';
|
389 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -397,7 +397,7 @@ function saswp_schema_output() {
|
|
397 |
|
398 |
if( 'Apartment' === $schema_type){
|
399 |
|
400 |
-
$input1['@context'] =
|
401 |
$input1['@type'] = 'Apartment';
|
402 |
$input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
|
403 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -411,7 +411,7 @@ function saswp_schema_output() {
|
|
411 |
|
412 |
if( 'TouristDestination' === $schema_type){
|
413 |
|
414 |
-
$input1['@context'] =
|
415 |
$input1['@type'] = 'TouristDestination';
|
416 |
$input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
|
417 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -425,7 +425,7 @@ function saswp_schema_output() {
|
|
425 |
|
426 |
if( 'TouristAttraction' === $schema_type){
|
427 |
|
428 |
-
$input1['@context'] =
|
429 |
$input1['@type'] = 'TouristAttraction';
|
430 |
$input1['@id'] = trailingslashit(get_permalink()).'#TouristAttraction';
|
431 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -439,7 +439,7 @@ function saswp_schema_output() {
|
|
439 |
|
440 |
if( 'LandmarksOrHistoricalBuildings' === $schema_type){
|
441 |
|
442 |
-
$input1['@context'] =
|
443 |
$input1['@type'] = 'LandmarksOrHistoricalBuildings';
|
444 |
$input1['@id'] = trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings';
|
445 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -453,7 +453,7 @@ function saswp_schema_output() {
|
|
453 |
|
454 |
if( 'HinduTemple' === $schema_type){
|
455 |
|
456 |
-
$input1['@context'] =
|
457 |
$input1['@type'] = 'HinduTemple';
|
458 |
$input1['@id'] = trailingslashit(get_permalink()).'#HinduTemple';
|
459 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -467,7 +467,7 @@ function saswp_schema_output() {
|
|
467 |
|
468 |
if( 'Church' === $schema_type){
|
469 |
|
470 |
-
$input1['@context'] =
|
471 |
$input1['@type'] = 'Church';
|
472 |
$input1['@id'] = trailingslashit(get_permalink()).'#Church';
|
473 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -481,7 +481,7 @@ function saswp_schema_output() {
|
|
481 |
|
482 |
if( 'Mosque' === $schema_type){
|
483 |
|
484 |
-
$input1['@context'] =
|
485 |
$input1['@type'] = 'Mosque';
|
486 |
$input1['@id'] = trailingslashit(get_permalink()).'#Mosque';
|
487 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -495,7 +495,7 @@ function saswp_schema_output() {
|
|
495 |
|
496 |
if( 'JobPosting' === $schema_type){
|
497 |
|
498 |
-
$input1['@context'] =
|
499 |
$input1['@type'] = 'JobPosting';
|
500 |
$input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
|
501 |
$input1['hiringOrganization']['@type'] = 'Organization';
|
@@ -513,7 +513,7 @@ function saswp_schema_output() {
|
|
513 |
|
514 |
if( 'Person' === $schema_type){
|
515 |
|
516 |
-
$input1['@context'] =
|
517 |
$input1['@type'] = 'Person';
|
518 |
$input1['@id'] = trailingslashit(get_permalink()).'#Person';
|
519 |
$input1['address']['@type'] = 'PostalAddress';
|
@@ -534,7 +534,7 @@ function saswp_schema_output() {
|
|
534 |
}
|
535 |
|
536 |
$input1 = array(
|
537 |
-
'@context' =>
|
538 |
'@type' => $schema_type ,
|
539 |
'@id' => trailingslashit(get_permalink()).'#course',
|
540 |
'name' => saswp_get_the_title(),
|
@@ -570,7 +570,7 @@ function saswp_schema_output() {
|
|
570 |
|
571 |
if(isset($sd_data['saswp-bbpress']) && $sd_data['saswp-bbpress'] == 1 && is_plugin_active('bbpress/bbpress.php')){
|
572 |
$input1 = array(
|
573 |
-
'@context' =>
|
574 |
'@type' => 'DiscussionForumPosting' ,
|
575 |
'@id' => bbp_get_topic_permalink().'#discussionforumposting',
|
576 |
'mainEntityOfPage' => bbp_get_topic_permalink(),
|
@@ -584,7 +584,7 @@ function saswp_schema_output() {
|
|
584 |
'author' => saswp_get_author_details(),
|
585 |
'interactionStatistic' => array(
|
586 |
'@type' => 'InteractionCounter',
|
587 |
-
'interactionType' => '
|
588 |
'userInteractionCount' => bbp_get_topic_reply_count(),
|
589 |
)
|
590 |
);
|
@@ -592,7 +592,7 @@ function saswp_schema_output() {
|
|
592 |
}else{
|
593 |
|
594 |
$input1 = array(
|
595 |
-
'@context' =>
|
596 |
'@type' => 'DiscussionForumPosting' ,
|
597 |
'@id' => trailingslashit(get_permalink()).'#blogposting',
|
598 |
'url' => trailingslashit(get_permalink()),
|
@@ -631,7 +631,7 @@ function saswp_schema_output() {
|
|
631 |
if( 'Blogposting' === $schema_type){
|
632 |
|
633 |
$input1 = array(
|
634 |
-
'@context' =>
|
635 |
'@type' => 'BlogPosting' ,
|
636 |
'@id' => trailingslashit(get_permalink()).'#blogposting',
|
637 |
'mainEntityOfPage' => trailingslashit(get_permalink()),
|
@@ -674,7 +674,7 @@ function saswp_schema_output() {
|
|
674 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_audio_schema_details');
|
675 |
|
676 |
$input1 = array(
|
677 |
-
'@context' =>
|
678 |
'@type' => $schema_type ,
|
679 |
'@id' => trailingslashit(get_permalink()).'#audioobject',
|
680 |
'name' => saswp_remove_warnings($schema_data, 'saswp_audio_schema_name', 'saswp_string'),
|
@@ -731,7 +731,7 @@ function saswp_schema_output() {
|
|
731 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_event_schema_details');
|
732 |
|
733 |
$input1 = array(
|
734 |
-
'@context' =>
|
735 |
'@type' => $schema_type ,
|
736 |
'@id' => trailingslashit(get_permalink()).'#event',
|
737 |
'name' => saswp_remove_warnings($schema_data, 'saswp_event_schema_name', 'saswp_string'),
|
@@ -796,7 +796,7 @@ function saswp_schema_output() {
|
|
796 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_software_schema_details');
|
797 |
|
798 |
$input1 = array(
|
799 |
-
'@context' =>
|
800 |
'@type' => $schema_type ,
|
801 |
'@id' => trailingslashit(get_permalink()).'#softwareapplication',
|
802 |
'name' => saswp_remove_warnings($schema_data, 'saswp_software_schema_name', 'saswp_string'),
|
@@ -930,7 +930,7 @@ function saswp_schema_output() {
|
|
930 |
}
|
931 |
|
932 |
$input1 = array(
|
933 |
-
'@context' =>
|
934 |
'@type' => $schema_type ,
|
935 |
'@id' => trailingslashit(get_permalink()).'#recipe',
|
936 |
'url' => trailingslashit(get_permalink()),
|
@@ -1004,7 +1004,7 @@ function saswp_schema_output() {
|
|
1004 |
if((isset($sd_data['saswp-woocommerce']) && $sd_data['saswp-woocommerce'] == 1) && !empty($product_details)){
|
1005 |
|
1006 |
$input1 = array(
|
1007 |
-
'@context' =>
|
1008 |
'@type' => 'Product',
|
1009 |
'@id' => trailingslashit(get_permalink()).'#product',
|
1010 |
'url' => trailingslashit(get_permalink()),
|
@@ -1076,7 +1076,14 @@ function saswp_schema_output() {
|
|
1076 |
}
|
1077 |
}else{
|
1078 |
|
1079 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1080 |
|
1081 |
}
|
1082 |
|
@@ -1095,7 +1102,7 @@ function saswp_schema_output() {
|
|
1095 |
}
|
1096 |
$word_count = saswp_reading_time_and_word_count();
|
1097 |
$input1 = array(
|
1098 |
-
'@context' =>
|
1099 |
'@type' => $schema_type ,
|
1100 |
'@id' => trailingslashit(get_permalink()).'#newsarticle',
|
1101 |
'url' => trailingslashit(get_permalink()),
|
@@ -1151,7 +1158,7 @@ function saswp_schema_output() {
|
|
1151 |
$service_offer_arr = explode(',', $service_offer_str);
|
1152 |
|
1153 |
$input1 = array(
|
1154 |
-
'@context' =>
|
1155 |
'@type' => $schema_type ,
|
1156 |
'@id' => trailingslashit(get_permalink()).'#service',
|
1157 |
'name' => saswp_remove_warnings($schema_data, 'saswp_service_schema_name', 'saswp_string'),
|
@@ -1239,7 +1246,7 @@ function saswp_schema_output() {
|
|
1239 |
remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
|
1240 |
|
1241 |
$input1 = array(
|
1242 |
-
'@context' =>
|
1243 |
'@type' => 'Review',
|
1244 |
'@id' => trailingslashit(get_permalink()).'#review',
|
1245 |
'dateCreated' => esc_html($date),
|
@@ -1291,7 +1298,7 @@ function saswp_schema_output() {
|
|
1291 |
|
1292 |
}
|
1293 |
|
1294 |
-
$input1['@context'] =
|
1295 |
$input1['@type'] = esc_attr($schema_type);
|
1296 |
$input1['url'] = trailingslashit(get_permalink());
|
1297 |
$input1['datePublished'] = esc_html($date);
|
@@ -1504,7 +1511,7 @@ function saswp_schema_output() {
|
|
1504 |
$description = get_bloginfo('description');
|
1505 |
}
|
1506 |
$input1 = array(
|
1507 |
-
'@context' =>
|
1508 |
'@type' => 'VideoObject',
|
1509 |
'@id' => trailingslashit(get_permalink()).'#videoobject',
|
1510 |
'url' => trailingslashit(get_permalink()),
|
@@ -1564,7 +1571,7 @@ function saswp_schema_output() {
|
|
1564 |
}
|
1565 |
|
1566 |
$input1 = array(
|
1567 |
-
'@context' =>
|
1568 |
'@type' => esc_attr($local_business),
|
1569 |
'@id' => trailingslashit(get_permalink()).'#'. strtolower(esc_attr($local_business)),
|
1570 |
'name' => saswp_remove_warnings($business_details, 'local_business_name', 'saswp_string'),
|
@@ -1776,2185 +1783,6 @@ function saswp_schema_output() {
|
|
1776 |
|
1777 |
return apply_filters('saswp_modify_schema_output', $all_schema_output);
|
1778 |
}
|
1779 |
-
|
1780 |
-
/**
|
1781 |
-
* Function generates json markup for the all added schema type in the current post metabox
|
1782 |
-
* @global type $post
|
1783 |
-
* @global type $sd_data
|
1784 |
-
* @return type json
|
1785 |
-
*/
|
1786 |
-
function saswp_post_specific_schema_output() {
|
1787 |
-
|
1788 |
-
global $post;
|
1789 |
-
global $sd_data;
|
1790 |
-
|
1791 |
-
$logo = '';
|
1792 |
-
$height = '';
|
1793 |
-
$width = '';
|
1794 |
-
$site_name = '';
|
1795 |
-
|
1796 |
-
$service_object = new saswp_output_service();
|
1797 |
-
$default_logo = $service_object->saswp_get_publisher(true);
|
1798 |
-
|
1799 |
-
if(!empty($default_logo)){
|
1800 |
-
|
1801 |
-
$logo = $default_logo['url'];
|
1802 |
-
$height = $default_logo['height'];
|
1803 |
-
$width = $default_logo['width'];
|
1804 |
-
|
1805 |
-
}
|
1806 |
-
|
1807 |
-
if(isset($sd_data['sd_name']) && $sd_data['sd_name'] !=''){
|
1808 |
-
$site_name = $sd_data['sd_name'];
|
1809 |
-
}else{
|
1810 |
-
$site_name = get_bloginfo();
|
1811 |
-
}
|
1812 |
-
|
1813 |
-
|
1814 |
-
$all_schema_output = array();
|
1815 |
-
$all_schemas = json_decode(get_transient('saswp_transient_schema_ids'), true);
|
1816 |
-
|
1817 |
-
if(!$all_schemas){
|
1818 |
-
|
1819 |
-
$all_schemas = saswp_get_saved_schema_ids();
|
1820 |
-
|
1821 |
-
}
|
1822 |
-
|
1823 |
-
$schema_enable = get_post_meta($post->ID, 'saswp_enable_disable_schema', true);
|
1824 |
-
|
1825 |
-
if($all_schemas){
|
1826 |
-
|
1827 |
-
foreach($all_schemas as $schema){
|
1828 |
-
|
1829 |
-
$input1 = array();
|
1830 |
-
|
1831 |
-
$schema_id = $schema;
|
1832 |
-
$schema_type = esc_sql ( get_post_meta($schema_id, 'schema_type', true) );
|
1833 |
-
$schema_post_id = $post->ID;
|
1834 |
-
$all_post_meta = esc_sql ( get_post_meta($schema_post_id, $key='', true) );
|
1835 |
-
|
1836 |
-
if(is_singular() && isset($schema_enable[$schema_id]) && $schema_enable[$schema_id] == 1 ){
|
1837 |
-
|
1838 |
-
$saswp_review_details = esc_sql ( get_post_meta(get_the_ID(), 'saswp_review_details', true));
|
1839 |
-
|
1840 |
-
$aggregateRating = array();
|
1841 |
-
$saswp_over_all_rating ='';
|
1842 |
-
|
1843 |
-
if(isset($saswp_review_details['saswp-review-item-over-all'])){
|
1844 |
-
|
1845 |
-
$saswp_over_all_rating = $saswp_review_details['saswp-review-item-over-all'];
|
1846 |
-
|
1847 |
-
}
|
1848 |
-
$saswp_review_item_enable = 0;
|
1849 |
-
|
1850 |
-
if(isset($saswp_review_details['saswp-review-item-enable'])){
|
1851 |
-
|
1852 |
-
$saswp_review_item_enable = $saswp_review_details['saswp-review-item-enable'];
|
1853 |
-
|
1854 |
-
}
|
1855 |
-
$saswp_review_count = "1";
|
1856 |
-
|
1857 |
-
|
1858 |
-
if($saswp_over_all_rating && $saswp_review_count && $saswp_review_item_enable ==1 && isset($sd_data['saswp-review-module']) && $sd_data['saswp-review-module'] ==1){
|
1859 |
-
|
1860 |
-
$aggregateRating = array(
|
1861 |
-
"@type" => "AggregateRating",
|
1862 |
-
"ratingValue" => esc_attr($saswp_over_all_rating),
|
1863 |
-
"reviewCount" => esc_attr($saswp_review_count)
|
1864 |
-
);
|
1865 |
-
}
|
1866 |
-
|
1867 |
-
$extra_theme_review = array();
|
1868 |
-
$service_object = new saswp_output_service();
|
1869 |
-
$extra_theme_review = $service_object->saswp_extra_theme_review_details(get_the_ID());
|
1870 |
-
|
1871 |
-
|
1872 |
-
if( 'Person' === $schema_type){
|
1873 |
-
|
1874 |
-
$image = get_post_meta( get_the_ID(), 'saswp_trip_schema_image_'.$schema_id.'_detail',true);
|
1875 |
-
|
1876 |
-
$input1['@context'] = 'http://schema.org';
|
1877 |
-
$input1['@type'] = 'Person';
|
1878 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#Person';
|
1879 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_url_'.$schema_id, 'saswp_array');
|
1880 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_name_'.$schema_id, 'saswp_array');
|
1881 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_description_'.$schema_id, 'saswp_array');
|
1882 |
-
$input1['gender'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_gender_'.$schema_id, 'saswp_array');
|
1883 |
-
$input1['birthDate'] = isset($all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0])&& $all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0] !='' ? date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0])):'';
|
1884 |
-
$input1['nationality'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_nationality_'.$schema_id, 'saswp_array');
|
1885 |
-
$input1['jobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_job_title_'.$schema_id, 'saswp_array');
|
1886 |
-
|
1887 |
-
$input1['address']['@type'] = 'PostalAddress';
|
1888 |
-
$input1['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_street_address_'.$schema_id, 'saswp_array');
|
1889 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_country_'.$schema_id, 'saswp_array');
|
1890 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_locality_'.$schema_id, 'saswp_array');
|
1891 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_region_'.$schema_id, 'saswp_array');
|
1892 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_postal_code_'.$schema_id, 'saswp_array');
|
1893 |
-
|
1894 |
-
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_telephone_'.$schema_id, 'saswp_array');
|
1895 |
-
$input1['email'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_email_'.$schema_id, 'saswp_array');
|
1896 |
-
|
1897 |
-
if(!(empty($image))){
|
1898 |
-
|
1899 |
-
$input1['image']['@type'] = 'ImageObject';
|
1900 |
-
$input1['image']['url'] = isset($image['thumbnail']) ? esc_url($image['thumbnail']):'';
|
1901 |
-
$input1['image']['height'] = isset($image['width']) ? esc_attr($image['width']) :'';
|
1902 |
-
$input1['image']['width'] = isset($image['height']) ? esc_attr($image['height']) :'';
|
1903 |
-
|
1904 |
-
}
|
1905 |
-
|
1906 |
-
}
|
1907 |
-
|
1908 |
-
if( 'Trip' === $schema_type){
|
1909 |
-
|
1910 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_trip_schema_image_'.$schema_id.'_detail',true);
|
1911 |
-
|
1912 |
-
|
1913 |
-
$input1['@context'] = 'http://schema.org';
|
1914 |
-
$input1['@type'] = 'Trip';
|
1915 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#Trip';
|
1916 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_url_'.$schema_id, 'saswp_array');
|
1917 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_name_'.$schema_id, 'saswp_array');
|
1918 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_description_'.$schema_id, 'saswp_array');
|
1919 |
-
|
1920 |
-
if(!(empty($howto_image))){
|
1921 |
-
|
1922 |
-
$input1['image']['@type'] = 'ImageObject';
|
1923 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
1924 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
1925 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
1926 |
-
|
1927 |
-
}
|
1928 |
-
|
1929 |
-
|
1930 |
-
$itinerary = esc_sql ( get_post_meta($schema_post_id, 'trip_itinerary_'.$schema_id, true) );
|
1931 |
-
|
1932 |
-
$itinerary_arr = array();
|
1933 |
-
|
1934 |
-
if(!empty($itinerary)){
|
1935 |
-
|
1936 |
-
foreach($itinerary as $val){
|
1937 |
-
|
1938 |
-
$supply_data = array();
|
1939 |
-
$supply_data['@type'] = $val['saswp_trip_itinerary_type'];
|
1940 |
-
$supply_data['name'] = $val['saswp_trip_itinerary_name'];
|
1941 |
-
$supply_data['description'] = $val['saswp_trip_itinerary_description'];
|
1942 |
-
$supply_data['url'] = $val['saswp_trip_itinerary_url'];
|
1943 |
-
|
1944 |
-
|
1945 |
-
$itinerary_arr[] = $supply_data;
|
1946 |
-
}
|
1947 |
-
$input1['itinerary'] = $itinerary_arr;
|
1948 |
-
}
|
1949 |
-
|
1950 |
-
}
|
1951 |
-
|
1952 |
-
if( 'FAQ' === $schema_type){
|
1953 |
-
|
1954 |
-
$input1['@context'] = 'http://schema.org';
|
1955 |
-
$input1['@type'] = 'FAQPage';
|
1956 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#FAQPage';
|
1957 |
-
|
1958 |
-
$faq_question = esc_sql ( get_post_meta($schema_post_id, 'faq_question_'.$schema_id, true) );
|
1959 |
-
|
1960 |
-
$faq_question_arr = array();
|
1961 |
-
|
1962 |
-
if(!empty($faq_question)){
|
1963 |
-
|
1964 |
-
foreach($faq_question as $val){
|
1965 |
-
|
1966 |
-
$supply_data = array();
|
1967 |
-
$supply_data['@type'] = 'Question';
|
1968 |
-
$supply_data['name'] = $val['saswp_faq_question_name'];
|
1969 |
-
$supply_data['acceptedAnswer']['@type'] = 'Answer';
|
1970 |
-
$supply_data['acceptedAnswer']['text'] = $val['saswp_faq_question_answer'];
|
1971 |
-
|
1972 |
-
$faq_question_arr[] = $supply_data;
|
1973 |
-
}
|
1974 |
-
$input1['mainEntity'] = $faq_question_arr;
|
1975 |
-
}
|
1976 |
-
|
1977 |
-
}
|
1978 |
-
|
1979 |
-
if( 'JobPosting' === $schema_type){
|
1980 |
-
|
1981 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
|
1982 |
-
|
1983 |
-
|
1984 |
-
$input1['@context'] = 'http://schema.org';
|
1985 |
-
$input1['@type'] = 'JobPosting';
|
1986 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
|
1987 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_url_'.$schema_id, 'saswp_array');
|
1988 |
-
$input1['title'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_title_'.$schema_id, 'saswp_array');
|
1989 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_description_'.$schema_id, 'saswp_array');
|
1990 |
-
$input1['datePosted'] = isset($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id][0])):'';
|
1991 |
-
$input1['validThrough'] = isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0])):'';
|
1992 |
-
$input1['employmentType'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_employment_type_'.$schema_id, 'saswp_array');
|
1993 |
-
|
1994 |
-
$input1['hiringOrganization']['@type'] = 'Organization';
|
1995 |
-
$input1['hiringOrganization']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_ho_name_'.$schema_id, 'saswp_array');
|
1996 |
-
$input1['hiringOrganization']['sameAs'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_ho_url_'.$schema_id, 'saswp_array');
|
1997 |
-
|
1998 |
-
if(!(empty($howto_image))){
|
1999 |
-
|
2000 |
-
$input1['hiringOrganization']['logo']['@type'] = 'ImageObject';
|
2001 |
-
$input1['hiringOrganization']['logo']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2002 |
-
$input1['hiringOrganization']['logo']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2003 |
-
$input1['hiringOrganization']['logo']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2004 |
-
|
2005 |
-
}
|
2006 |
-
|
2007 |
-
$input1['jobLocation']['@type'] = 'Place';
|
2008 |
-
$input1['jobLocation']['address']['@type'] = 'PostalAddress';
|
2009 |
-
$input1['jobLocation']['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_street_address_'.$schema_id, 'saswp_array');
|
2010 |
-
$input1['jobLocation']['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_locality_'.$schema_id, 'saswp_array');
|
2011 |
-
$input1['jobLocation']['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_region_'.$schema_id, 'saswp_array');
|
2012 |
-
$input1['jobLocation']['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_country_'.$schema_id, 'saswp_array');
|
2013 |
-
$input1['jobLocation']['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_postalcode_'.$schema_id, 'saswp_array');
|
2014 |
-
|
2015 |
-
|
2016 |
-
$input1['baseSalary']['@type'] = 'MonetaryAmount';
|
2017 |
-
$input1['baseSalary']['currency'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_currency_'.$schema_id, 'saswp_array');
|
2018 |
-
$input1['baseSalary']['value']['@type'] = 'QuantitativeValue';
|
2019 |
-
$input1['baseSalary']['value']['value'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_value_'.$schema_id, 'saswp_array');
|
2020 |
-
$input1['baseSalary']['value']['unitText'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_unittext_'.$schema_id, 'saswp_array');
|
2021 |
-
|
2022 |
-
}
|
2023 |
-
|
2024 |
-
if( 'Mosque' === $schema_type){
|
2025 |
-
|
2026 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_mosque_schema_image_'.$schema_id.'_detail',true);
|
2027 |
-
|
2028 |
-
|
2029 |
-
$input1['@context'] = 'http://schema.org';
|
2030 |
-
$input1['@type'] = 'Mosque';
|
2031 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#Mosque';
|
2032 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_url_'.$schema_id, 'saswp_array');
|
2033 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_name_'.$schema_id, 'saswp_array');
|
2034 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_description_'.$schema_id, 'saswp_array');
|
2035 |
-
|
2036 |
-
if(!(empty($howto_image))){
|
2037 |
-
|
2038 |
-
$input1['image']['@type'] = 'ImageObject';
|
2039 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2040 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2041 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2042 |
-
|
2043 |
-
}
|
2044 |
-
|
2045 |
-
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_is_accesible_free_'.$schema_id, 'saswp_array');
|
2046 |
-
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
2047 |
-
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_hasmap_'.$schema_id, 'saswp_array');
|
2048 |
-
|
2049 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2050 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_country_'.$schema_id, 'saswp_array');
|
2051 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_locality_'.$schema_id, 'saswp_array');
|
2052 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_region_'.$schema_id, 'saswp_array');
|
2053 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_postal_code_'.$schema_id, 'saswp_array');
|
2054 |
-
|
2055 |
-
}
|
2056 |
-
|
2057 |
-
if( 'Church' === $schema_type){
|
2058 |
-
|
2059 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_church_schema_image_'.$schema_id.'_detail',true);
|
2060 |
-
|
2061 |
-
|
2062 |
-
$input1['@context'] = 'http://schema.org';
|
2063 |
-
$input1['@type'] = 'Church';
|
2064 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#Church';
|
2065 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_url_'.$schema_id, 'saswp_array');
|
2066 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_name_'.$schema_id, 'saswp_array');
|
2067 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_description_'.$schema_id, 'saswp_array');
|
2068 |
-
|
2069 |
-
if(!(empty($howto_image))){
|
2070 |
-
|
2071 |
-
$input1['image']['@type'] = 'ImageObject';
|
2072 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2073 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2074 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2075 |
-
|
2076 |
-
}
|
2077 |
-
|
2078 |
-
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
2079 |
-
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
2080 |
-
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_hasmap_'.$schema_id, 'saswp_array');
|
2081 |
-
|
2082 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2083 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_country_'.$schema_id, 'saswp_array');
|
2084 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_locality_'.$schema_id, 'saswp_array');
|
2085 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_region_'.$schema_id, 'saswp_array');
|
2086 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_postal_code_'.$schema_id, 'saswp_array');
|
2087 |
-
|
2088 |
-
}
|
2089 |
-
|
2090 |
-
if( 'HinduTemple' === $schema_type){
|
2091 |
-
|
2092 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_hindutemple_schema_image_'.$schema_id.'_detail',true);
|
2093 |
-
|
2094 |
-
|
2095 |
-
$input1['@context'] = 'http://schema.org';
|
2096 |
-
$input1['@type'] = 'HinduTemple';
|
2097 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#HinduTemple';
|
2098 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_url_'.$schema_id, 'saswp_array');
|
2099 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_name_'.$schema_id, 'saswp_array');
|
2100 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_description_'.$schema_id, 'saswp_array');
|
2101 |
-
|
2102 |
-
if(!(empty($howto_image))){
|
2103 |
-
|
2104 |
-
$input1['image']['@type'] = 'ImageObject';
|
2105 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2106 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2107 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2108 |
-
|
2109 |
-
}
|
2110 |
-
|
2111 |
-
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_is_accesible_free_'.$schema_id, 'saswp_array');
|
2112 |
-
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
2113 |
-
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_hasmap_'.$schema_id, 'saswp_array');
|
2114 |
-
|
2115 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2116 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_country_'.$schema_id, 'saswp_array');
|
2117 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_locality_'.$schema_id, 'saswp_array');
|
2118 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_region_'.$schema_id, 'saswp_array');
|
2119 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_postal_code_'.$schema_id, 'saswp_array');
|
2120 |
-
|
2121 |
-
}
|
2122 |
-
|
2123 |
-
if( 'LandmarksOrHistoricalBuildings' === $schema_type){
|
2124 |
-
|
2125 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_lorh_schema_image_'.$schema_id.'_detail',true);
|
2126 |
-
|
2127 |
-
|
2128 |
-
$input1['@context'] = 'http://schema.org';
|
2129 |
-
$input1['@type'] = 'LandmarksOrHistoricalBuildings';
|
2130 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings';
|
2131 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_url_'.$schema_id, 'saswp_array');
|
2132 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_name_'.$schema_id, 'saswp_array');
|
2133 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_description_'.$schema_id, 'saswp_array');
|
2134 |
-
|
2135 |
-
if(!(empty($howto_image))){
|
2136 |
-
|
2137 |
-
$input1['image']['@type'] = 'ImageObject';
|
2138 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2139 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2140 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2141 |
-
|
2142 |
-
}
|
2143 |
-
|
2144 |
-
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_hasmap_'.$schema_id, 'saswp_array');
|
2145 |
-
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
2146 |
-
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
2147 |
-
|
2148 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2149 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_country_'.$schema_id, 'saswp_array');
|
2150 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_locality_'.$schema_id, 'saswp_array');
|
2151 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_region_'.$schema_id, 'saswp_array');
|
2152 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
2153 |
-
|
2154 |
-
}
|
2155 |
-
|
2156 |
-
if( 'TouristAttraction' === $schema_type){
|
2157 |
-
|
2158 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_ta_schema_image_'.$schema_id.'_detail',true);
|
2159 |
-
|
2160 |
-
|
2161 |
-
$input1['@context'] = 'http://schema.org';
|
2162 |
-
$input1['@type'] = 'TouristAttraction';
|
2163 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#TouristAttraction';
|
2164 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_url_'.$schema_id, 'saswp_array');
|
2165 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_name_'.$schema_id, 'saswp_array');
|
2166 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_description_'.$schema_id, 'saswp_array');
|
2167 |
-
|
2168 |
-
if(!(empty($howto_image))){
|
2169 |
-
|
2170 |
-
$input1['image']['@type'] = 'ImageObject';
|
2171 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2172 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2173 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2174 |
-
|
2175 |
-
}
|
2176 |
-
|
2177 |
-
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
2178 |
-
|
2179 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2180 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_country_'.$schema_id, 'saswp_array');
|
2181 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_locality_'.$schema_id, 'saswp_array');
|
2182 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_region_'.$schema_id, 'saswp_array');
|
2183 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
2184 |
-
|
2185 |
-
}
|
2186 |
-
|
2187 |
-
if( 'TouristDestination' === $schema_type){
|
2188 |
-
|
2189 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_td_schema_image_'.$schema_id.'_detail',true);
|
2190 |
-
|
2191 |
-
|
2192 |
-
$input1['@context'] = 'http://schema.org';
|
2193 |
-
$input1['@type'] = 'TouristDestination';
|
2194 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
|
2195 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_url_'.$schema_id, 'saswp_array');
|
2196 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_name_'.$schema_id, 'saswp_array');
|
2197 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_description_'.$schema_id, 'saswp_array');
|
2198 |
-
|
2199 |
-
if(!(empty($howto_image))){
|
2200 |
-
|
2201 |
-
$input1['image']['@type'] = 'ImageObject';
|
2202 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2203 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2204 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2205 |
-
|
2206 |
-
}
|
2207 |
-
|
2208 |
-
|
2209 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2210 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_country_'.$schema_id, 'saswp_array');
|
2211 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_locality_'.$schema_id, 'saswp_array');
|
2212 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_region_'.$schema_id, 'saswp_array');
|
2213 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
2214 |
-
|
2215 |
-
}
|
2216 |
-
|
2217 |
-
if( 'Apartment' === $schema_type){
|
2218 |
-
|
2219 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_apartment_schema_image_'.$schema_id.'_detail',true);
|
2220 |
-
|
2221 |
-
|
2222 |
-
$input1['@context'] = 'http://schema.org';
|
2223 |
-
$input1['@type'] = 'Apartment';
|
2224 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
|
2225 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
|
2226 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
|
2227 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
|
2228 |
-
|
2229 |
-
if(!(empty($howto_image))){
|
2230 |
-
|
2231 |
-
$input1['image']['@type'] = 'ImageObject';
|
2232 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2233 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2234 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2235 |
-
|
2236 |
-
}
|
2237 |
-
|
2238 |
-
$input1['numberOfRooms'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_numberofrooms_'.$schema_id, 'saswp_array');
|
2239 |
-
|
2240 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2241 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_country_'.$schema_id, 'saswp_array');
|
2242 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_locality_'.$schema_id, 'saswp_array');
|
2243 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_region_'.$schema_id, 'saswp_array');
|
2244 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_postalcode_'.$schema_id, 'saswp_array');
|
2245 |
-
|
2246 |
-
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_telephone_'.$schema_id, 'saswp_array');
|
2247 |
-
|
2248 |
-
}
|
2249 |
-
|
2250 |
-
if( 'House' === $schema_type){
|
2251 |
-
|
2252 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_house_schema_image_'.$schema_id.'_detail',true);
|
2253 |
-
|
2254 |
-
|
2255 |
-
$input1['@context'] = 'http://schema.org';
|
2256 |
-
$input1['@type'] = 'House';
|
2257 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#House';
|
2258 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_url_'.$schema_id, 'saswp_array');
|
2259 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_name_'.$schema_id, 'saswp_array');
|
2260 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_description_'.$schema_id, 'saswp_array');
|
2261 |
-
|
2262 |
-
if(!(empty($howto_image))){
|
2263 |
-
|
2264 |
-
$input1['image']['@type'] = 'ImageObject';
|
2265 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2266 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2267 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2268 |
-
|
2269 |
-
}
|
2270 |
-
|
2271 |
-
$input1['petsAllowed'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_pets_allowed_'.$schema_id, 'saswp_array');
|
2272 |
-
|
2273 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2274 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_country_'.$schema_id, 'saswp_array');
|
2275 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_locality_'.$schema_id, 'saswp_array');
|
2276 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_region_'.$schema_id, 'saswp_array');
|
2277 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_postalcode_'.$schema_id, 'saswp_array');
|
2278 |
-
|
2279 |
-
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_telephone_'.$schema_id, 'saswp_array');
|
2280 |
-
|
2281 |
-
}
|
2282 |
-
|
2283 |
-
if( 'SingleFamilyResidence' === $schema_type){
|
2284 |
-
|
2285 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_sfr_schema_image_'.$schema_id.'_detail',true);
|
2286 |
-
|
2287 |
-
$input1['@context'] = 'http://schema.org';
|
2288 |
-
$input1['@type'] = 'SingleFamilyResidence';
|
2289 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#SingleFamilyResidence';
|
2290 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_url_'.$schema_id, 'saswp_array');
|
2291 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_name_'.$schema_id, 'saswp_array');
|
2292 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_description_'.$schema_id, 'saswp_array');
|
2293 |
-
|
2294 |
-
if(!(empty($howto_image))){
|
2295 |
-
|
2296 |
-
$input1['image']['@type'] = 'ImageObject';
|
2297 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2298 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2299 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2300 |
-
|
2301 |
-
}
|
2302 |
-
$input1['numberOfRooms'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_numberofrooms_'.$schema_id, 'saswp_array');
|
2303 |
-
$input1['petsAllowed'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_pets_allowed_'.$schema_id, 'saswp_array');
|
2304 |
-
|
2305 |
-
$input1['address']['@type'] = 'PostalAddress';
|
2306 |
-
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_country_'.$schema_id, 'saswp_array');
|
2307 |
-
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_locality_'.$schema_id, 'saswp_array');
|
2308 |
-
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_region_'.$schema_id, 'saswp_array');
|
2309 |
-
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_postalcode_'.$schema_id, 'saswp_array');
|
2310 |
-
|
2311 |
-
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_telephone_'.$schema_id, 'saswp_array');
|
2312 |
-
|
2313 |
-
}
|
2314 |
-
|
2315 |
-
if( 'HowTo' === $schema_type){
|
2316 |
-
|
2317 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_howto_schema_image_'.$schema_id.'_detail',true);
|
2318 |
-
|
2319 |
-
|
2320 |
-
$tool = esc_sql ( get_post_meta($schema_post_id, 'howto_tool_'.$schema_id, true) );
|
2321 |
-
$step = esc_sql ( get_post_meta($schema_post_id, 'howto_step_'.$schema_id, true) );
|
2322 |
-
$supply = esc_sql ( get_post_meta($schema_post_id, 'howto_supply_'.$schema_id, true) );
|
2323 |
-
|
2324 |
-
|
2325 |
-
$input1['@context'] = 'http://schema.org';
|
2326 |
-
$input1['@type'] = 'HowTo';
|
2327 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
|
2328 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_name_'.$schema_id, 'saswp_array');
|
2329 |
-
$input1['datePublished'] = isset($all_post_meta['saswp_howto_ec_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_howto_ec_schema_date_published_'.$schema_id][0])):'';
|
2330 |
-
$input1['dateModified'] = isset($all_post_meta['saswp_howto_ec_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_howto_ec_schema_date_modified_'.$schema_id][0])):'';
|
2331 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_description_'.$schema_id, 'saswp_array');
|
2332 |
-
|
2333 |
-
if(!(empty($howto_image))){
|
2334 |
-
|
2335 |
-
$input1['image']['@type'] = 'ImageObject';
|
2336 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2337 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2338 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2339 |
-
|
2340 |
-
}
|
2341 |
-
|
2342 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array') !='')
|
2343 |
-
{
|
2344 |
-
$input1['estimatedCost']['@type'] = 'MonetaryAmount';
|
2345 |
-
$input1['estimatedCost']['currency']= saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array');
|
2346 |
-
$input1['estimatedCost']['value'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array');
|
2347 |
-
}
|
2348 |
-
|
2349 |
-
|
2350 |
-
$supply_arr = array();
|
2351 |
-
if(!empty($supply)){
|
2352 |
-
|
2353 |
-
foreach($supply as $val){
|
2354 |
-
|
2355 |
-
$supply_data = array();
|
2356 |
-
|
2357 |
-
if($val['saswp_howto_supply_name'] || $val['saswp_howto_supply_url']){
|
2358 |
-
$supply_data['@type'] = 'HowToSupply';
|
2359 |
-
$supply_data['name'] = $val['saswp_howto_supply_name'];
|
2360 |
-
$supply_data['url'] = $val['saswp_howto_supply_url'];
|
2361 |
-
}
|
2362 |
-
|
2363 |
-
|
2364 |
-
|
2365 |
-
if(isset($val['saswp_howto_supply_image_id']) && $val['saswp_howto_supply_image_id'] !=''){
|
2366 |
-
|
2367 |
-
$image_details = wp_get_attachment_image_src($val['saswp_howto_supply_image_id']);
|
2368 |
-
|
2369 |
-
$supply_data['image']['@type'] = 'ImageObject';
|
2370 |
-
$supply_data['image']['url'] = esc_url($image_details[0]);
|
2371 |
-
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
2372 |
-
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
}
|
2377 |
-
$supply_arr[] = $supply_data;
|
2378 |
-
}
|
2379 |
-
$input1['supply'] = $supply_arr;
|
2380 |
-
}
|
2381 |
-
|
2382 |
-
$tool_arr = array();
|
2383 |
-
if(!empty($tool)){
|
2384 |
-
|
2385 |
-
foreach($tool as $val){
|
2386 |
-
|
2387 |
-
$supply_data = array();
|
2388 |
-
|
2389 |
-
if($val['saswp_howto_tool_name'] || $val['saswp_howto_tool_url']){
|
2390 |
-
$supply_data['@type'] = 'HowToTool';
|
2391 |
-
$supply_data['name'] = $val['saswp_howto_tool_name'];
|
2392 |
-
$supply_data['url'] = $val['saswp_howto_tool_url'];
|
2393 |
-
}
|
2394 |
-
|
2395 |
-
if(isset($val['saswp_howto_tool_image_id']) && $val['saswp_howto_tool_image_id'] !=''){
|
2396 |
-
|
2397 |
-
$image_details = wp_get_attachment_image_src($val['saswp_howto_tool_image_id']);
|
2398 |
-
|
2399 |
-
$supply_data['image']['@type'] = 'ImageObject';
|
2400 |
-
$supply_data['image']['url'] = esc_url($image_details[0]);
|
2401 |
-
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
2402 |
-
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
}
|
2407 |
-
$tool_arr[] = $supply_data;
|
2408 |
-
}
|
2409 |
-
$input1['tool'] = $tool_arr;
|
2410 |
-
}
|
2411 |
-
|
2412 |
-
//step
|
2413 |
-
|
2414 |
-
$step_arr = array();
|
2415 |
-
if(!empty($step)){
|
2416 |
-
|
2417 |
-
foreach($step as $key => $val){
|
2418 |
-
|
2419 |
-
$supply_data = array();
|
2420 |
-
$direction = array();
|
2421 |
-
$tip = array();
|
2422 |
-
|
2423 |
-
if($val['saswp_howto_direction_text']){
|
2424 |
-
$direction['@type'] = 'HowToDirection';
|
2425 |
-
$direction['text'] = $val['saswp_howto_direction_text'];
|
2426 |
-
}
|
2427 |
-
|
2428 |
-
if($val['saswp_howto_tip_text']){
|
2429 |
-
|
2430 |
-
$tip['@type'] = 'HowToTip';
|
2431 |
-
$tip['text'] = $val['saswp_howto_tip_text'];
|
2432 |
-
|
2433 |
-
}
|
2434 |
-
|
2435 |
-
$supply_data['@type'] = 'HowToStep';
|
2436 |
-
$supply_data['url'] = trailingslashit(get_permalink()).'#step'.++$key;
|
2437 |
-
$supply_data['name'] = $val['saswp_howto_step_name'];
|
2438 |
-
|
2439 |
-
if($direction['text'] || $tip['text']){
|
2440 |
-
$supply_data['itemListElement'] = array($direction, $tip);
|
2441 |
-
}
|
2442 |
-
|
2443 |
-
if(isset($val['saswp_howto_step_image_id']) && $val['saswp_howto_step_image_id'] !=''){
|
2444 |
-
|
2445 |
-
$image_details = wp_get_attachment_image_src($val['saswp_howto_step_image_id']);
|
2446 |
-
$supply_data['image']['@type'] = 'ImageObject';
|
2447 |
-
$supply_data['image']['url'] = esc_url($image_details[0]);
|
2448 |
-
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
2449 |
-
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
2450 |
-
|
2451 |
-
}
|
2452 |
-
|
2453 |
-
$step_arr[] = $supply_data;
|
2454 |
-
|
2455 |
-
}
|
2456 |
-
|
2457 |
-
$input1['step'] = $step_arr;
|
2458 |
-
|
2459 |
-
}
|
2460 |
-
|
2461 |
-
$input1['totalTime'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_totaltime_'.$schema_id, 'saswp_array');
|
2462 |
-
|
2463 |
-
}
|
2464 |
-
|
2465 |
-
if( 'TVSeries' === $schema_type){
|
2466 |
-
|
2467 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_tvseries_schema_image_'.$schema_id.'_detail',true);
|
2468 |
-
|
2469 |
-
|
2470 |
-
$actor = esc_sql ( get_post_meta($schema_post_id, 'tvseries_actor_'.$schema_id, true) );
|
2471 |
-
$season = esc_sql ( get_post_meta($schema_post_id, 'tvseries_season_'.$schema_id, true) );
|
2472 |
-
|
2473 |
-
$input1['@context'] = 'http://schema.org';
|
2474 |
-
$input1['@type'] = 'TVSeries';
|
2475 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#TVSeries';
|
2476 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_name_'.$schema_id, 'saswp_array');
|
2477 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_description_'.$schema_id, 'saswp_array');
|
2478 |
-
|
2479 |
-
if(!(empty($howto_image))){
|
2480 |
-
|
2481 |
-
$input1['image']['@type'] = 'ImageObject';
|
2482 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2483 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2484 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2485 |
-
|
2486 |
-
}
|
2487 |
-
|
2488 |
-
$input1['author']['@type'] = 'Person';
|
2489 |
-
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_author_name_'.$schema_id, 'saswp_array');
|
2490 |
-
|
2491 |
-
$supply_arr = array();
|
2492 |
-
if(!empty($actor)){
|
2493 |
-
|
2494 |
-
foreach($actor as $val){
|
2495 |
-
|
2496 |
-
$supply_data = array();
|
2497 |
-
$supply_data['@type'] = 'Person';
|
2498 |
-
$supply_data['name'] = $val['saswp_tvseries_actor_name'];
|
2499 |
-
|
2500 |
-
$supply_arr[] = $supply_data;
|
2501 |
-
}
|
2502 |
-
$input1['actor'] = $supply_arr;
|
2503 |
-
}
|
2504 |
-
|
2505 |
-
$tool_arr = array();
|
2506 |
-
if(!empty($season)){
|
2507 |
-
|
2508 |
-
foreach($season as $val){
|
2509 |
-
|
2510 |
-
$supply_data = array();
|
2511 |
-
$supply_data['@type'] = 'TVSeason';
|
2512 |
-
$supply_data['datePublished'] = $val['saswp_tvseries_season_published_date'];
|
2513 |
-
$supply_data['name'] = $val['saswp_tvseries_season_name'];
|
2514 |
-
$supply_data['numberOfEpisodes'] = $val['saswp_tvseries_season_episodes'];
|
2515 |
-
|
2516 |
-
$tool_arr[] = $supply_data;
|
2517 |
-
}
|
2518 |
-
$input1['containsSeason'] = $tool_arr;
|
2519 |
-
}
|
2520 |
-
|
2521 |
-
}
|
2522 |
-
|
2523 |
-
if( 'MedicalCondition' === $schema_type){
|
2524 |
-
|
2525 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_mc_schema_image_'.$schema_id.'_detail',true);
|
2526 |
-
|
2527 |
-
$cause = esc_sql ( get_post_meta($schema_post_id, 'mc_cause_'.$schema_id, true));
|
2528 |
-
$symptom = esc_sql ( get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true));
|
2529 |
-
$riskfactro = esc_sql ( get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true));
|
2530 |
-
|
2531 |
-
|
2532 |
-
$input1['@context'] = 'http://schema.org';
|
2533 |
-
$input1['@type'] = 'MedicalCondition';
|
2534 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
|
2535 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_name_'.$schema_id, 'saswp_array');
|
2536 |
-
$input1['alternateName'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_alternate_name_'.$schema_id, 'saswp_array');
|
2537 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_description_'.$schema_id, 'saswp_array');
|
2538 |
-
|
2539 |
-
if(!(empty($howto_image))){
|
2540 |
-
|
2541 |
-
$input1['image']['@type'] = 'ImageObject';
|
2542 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2543 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2544 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2545 |
-
|
2546 |
-
}
|
2547 |
-
|
2548 |
-
$input1['associatedAnatomy']['@type'] = 'AnatomicalStructure';
|
2549 |
-
$input1['associatedAnatomy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_anatomy_name_'.$schema_id, 'saswp_array');
|
2550 |
-
|
2551 |
-
$input1['code']['@type'] = 'MedicalCode';
|
2552 |
-
$input1['code']['code'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_medical_code_'.$schema_id, 'saswp_array');
|
2553 |
-
$input1['code']['codingSystem'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_coding_system_'.$schema_id, 'saswp_array');
|
2554 |
-
|
2555 |
-
$cause_arr = array();
|
2556 |
-
if(!empty($cause)){
|
2557 |
-
|
2558 |
-
foreach($cause as $val){
|
2559 |
-
|
2560 |
-
$supply_data = array();
|
2561 |
-
$supply_data['@type'] = 'MedicalCause';
|
2562 |
-
$supply_data['name'] = $val['saswp_mc_cause_name'];
|
2563 |
-
|
2564 |
-
$cause_arr[] = $supply_data;
|
2565 |
-
}
|
2566 |
-
$input1['cause'] = $cause_arr;
|
2567 |
-
}
|
2568 |
-
|
2569 |
-
$symptom_arr = array();
|
2570 |
-
if(!empty($symptom)){
|
2571 |
-
|
2572 |
-
foreach($symptom as $val){
|
2573 |
-
|
2574 |
-
$supply_data = array();
|
2575 |
-
$supply_data['@type'] = 'MedicalSymptom';
|
2576 |
-
$supply_data['name'] = $val['saswp_mc_symptom_name'];
|
2577 |
-
|
2578 |
-
$symptom_arr[] = $supply_data;
|
2579 |
-
}
|
2580 |
-
$input1['signOrSymptom'] = $symptom_arr;
|
2581 |
-
}
|
2582 |
-
|
2583 |
-
$riskfactor_arr = array();
|
2584 |
-
if(!empty($riskfactro)){
|
2585 |
-
|
2586 |
-
foreach($riskfactro as $val){
|
2587 |
-
|
2588 |
-
$supply_data = array();
|
2589 |
-
$supply_data['@type'] = 'MedicalRiskFactor';
|
2590 |
-
$supply_data['name'] = $val['saswp_mc_risk_factor_name'];
|
2591 |
-
|
2592 |
-
$riskfactor_arr[] = $supply_data;
|
2593 |
-
}
|
2594 |
-
$input1['riskFactor'] = $riskfactor_arr;
|
2595 |
-
}
|
2596 |
-
|
2597 |
-
}
|
2598 |
-
|
2599 |
-
if( 'VideoGame' === $schema_type){
|
2600 |
-
|
2601 |
-
$howto_image = get_post_meta( get_the_ID(), 'saswp_vg_schema_image_'.$schema_id.'_detail',true);
|
2602 |
-
|
2603 |
-
|
2604 |
-
$input1['@context'] = 'http://schema.org';
|
2605 |
-
$input1['@type'] = 'VideoGame';
|
2606 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#VideoGame';
|
2607 |
-
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_name_'.$schema_id, 'saswp_array');
|
2608 |
-
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_url_'.$schema_id, 'saswp_array');
|
2609 |
-
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_description_'.$schema_id, 'saswp_array');
|
2610 |
-
|
2611 |
-
if(!(empty($howto_image))){
|
2612 |
-
|
2613 |
-
$input1['image']['@type'] = 'ImageObject';
|
2614 |
-
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
2615 |
-
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
2616 |
-
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
2617 |
-
|
2618 |
-
}
|
2619 |
-
|
2620 |
-
$input1['operatingSystem'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_operating_system_'.$schema_id, 'saswp_array');
|
2621 |
-
$input1['applicationCategory'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_application_category_'.$schema_id, 'saswp_array');
|
2622 |
-
|
2623 |
-
$input1['author']['@type'] = 'Organization';
|
2624 |
-
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_author_name_'.$schema_id, 'saswp_array');
|
2625 |
-
|
2626 |
-
$input1['offers']['@type'] = 'Offer';
|
2627 |
-
$input1['offers']['price'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_'.$schema_id, 'saswp_array');
|
2628 |
-
$input1['offers']['priceCurrency'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_currency_'.$schema_id, 'saswp_array');
|
2629 |
-
$input1['offers']['availability'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_availability_'.$schema_id, 'saswp_array');
|
2630 |
-
|
2631 |
-
|
2632 |
-
$input1['publisher'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_publisher_'.$schema_id, 'saswp_array');
|
2633 |
-
$input1['genre'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_genre_'.$schema_id, 'saswp_array');
|
2634 |
-
$input1['processorRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_processor_requirements_'.$schema_id, 'saswp_array');
|
2635 |
-
$input1['memoryRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_memory_requirements_'.$schema_id, 'saswp_array');
|
2636 |
-
$input1['storageRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_storage_requirements_'.$schema_id, 'saswp_array');
|
2637 |
-
$input1['gamePlatform'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_game_platform_'.$schema_id, 'saswp_array');
|
2638 |
-
$input1['cheatCode'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_cheat_code_'.$schema_id, 'saswp_array');
|
2639 |
-
|
2640 |
-
|
2641 |
-
if( saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_review_count_'.$schema_id, 'saswp_array')){
|
2642 |
-
|
2643 |
-
$input1['aggregateRating']['@type'] = 'AggregateRating';
|
2644 |
-
$input1['aggregateRating']['ratingValue'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_rating_'.$schema_id, 'saswp_array');
|
2645 |
-
$input1['aggregateRating']['ratingCount'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_review_count_'.$schema_id, 'saswp_array');
|
2646 |
-
|
2647 |
-
}
|
2648 |
-
|
2649 |
-
|
2650 |
-
|
2651 |
-
}
|
2652 |
-
|
2653 |
-
if( 'qanda' === $schema_type){
|
2654 |
-
|
2655 |
-
if(trim(saswp_remove_warnings($all_post_meta, 'saswp_qa_question_title_'.$schema_id, 'saswp_array')) ==''){
|
2656 |
-
|
2657 |
-
$service_object = new saswp_output_service();
|
2658 |
-
$input1 = $service_object->saswp_dw_question_answers_details(get_the_ID());
|
2659 |
-
|
2660 |
-
}else{
|
2661 |
-
|
2662 |
-
$input1 = array(
|
2663 |
-
'@context' => 'http://schema.org',
|
2664 |
-
'@type' => 'QAPage',
|
2665 |
-
'@id' => trailingslashit(get_permalink()).'#qapage',
|
2666 |
-
'mainEntity' => array(
|
2667 |
-
'@type' => 'Question' ,
|
2668 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_question_title_'.$schema_id, 'saswp_array'),
|
2669 |
-
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_question_description_'.$schema_id, 'saswp_array'),
|
2670 |
-
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_upvote_count_'.$schema_id, 'saswp_array'),
|
2671 |
-
'dateCreated' => isset($all_post_meta['saswp_qa_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_date_created_'.$schema_id][0])):'',
|
2672 |
-
'author' => array('@type' => 'Person','name' =>saswp_remove_warnings($all_post_meta, 'saswp_qa_question_author_name_'.$schema_id, 'saswp_array')) ,
|
2673 |
-
'answerCount' => 2 ,
|
2674 |
-
'acceptedAnswer' => array(
|
2675 |
-
'@type' => 'Answer',
|
2676 |
-
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_upvote_count_'.$schema_id, 'saswp_array'),
|
2677 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_url_'.$schema_id, 'saswp_array'),
|
2678 |
-
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_text_'.$schema_id, 'saswp_array'),
|
2679 |
-
'dateCreated' => isset($all_post_meta['saswp_qa_accepted_answer_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_accepted_answer_date_created_'.$schema_id][0])):'',
|
2680 |
-
'author' => array('@type' => 'Person', 'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_author_name_'.$schema_id, 'saswp_array')),
|
2681 |
-
) ,
|
2682 |
-
'suggestedAnswer' => array(
|
2683 |
-
'@type' => 'Answer',
|
2684 |
-
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_upvote_count_'.$schema_id, 'saswp_array'),
|
2685 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_url_'.$schema_id, 'saswp_array'),
|
2686 |
-
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_text_'.$schema_id, 'saswp_array'),
|
2687 |
-
'dateCreated' => isset($all_post_meta['saswp_qa_suggested_answer_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_suggested_answer_date_created_'.$schema_id][0])):'',
|
2688 |
-
'author' => array('@type' => 'Person', 'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_author_name_'.$schema_id, 'saswp_array')),
|
2689 |
-
) ,
|
2690 |
-
)
|
2691 |
-
);
|
2692 |
-
}
|
2693 |
-
}
|
2694 |
-
|
2695 |
-
if( 'Event' === $schema_type){
|
2696 |
-
|
2697 |
-
$event_image = get_post_meta( get_the_ID(), 'saswp_event_schema_image_'.$schema_id.'_detail',true);
|
2698 |
-
|
2699 |
-
$input1 = array(
|
2700 |
-
'@context' => 'http://schema.org',
|
2701 |
-
'@type' => 'Event' ,
|
2702 |
-
'@id' => trailingslashit(get_permalink()).'#event',
|
2703 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_name_'.$schema_id, 'saswp_array'),
|
2704 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_description_'.$schema_id, 'saswp_array'),
|
2705 |
-
'startDate' => isset($all_post_meta['saswp_event_schema_start_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_start_date_'.$schema_id][0])):'',
|
2706 |
-
'endDate' => isset($all_post_meta['saswp_event_schema_end_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_end_date_'.$schema_id][0])):'',
|
2707 |
-
'image' => array(
|
2708 |
-
'@type' =>'ImageObject',
|
2709 |
-
'url' => isset($event_image['thumbnail']) ? esc_url($event_image['thumbnail']):'' ,
|
2710 |
-
'width' => isset($event_image['width']) ? esc_attr($event_image['width']) :'' ,
|
2711 |
-
'height' => isset($event_image['height']) ? esc_attr($event_image['height']) :'' ,
|
2712 |
-
),
|
2713 |
-
'location' => array(
|
2714 |
-
'@type' => 'Place',
|
2715 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_name_'.$schema_id, 'saswp_array'),
|
2716 |
-
'address' => array(
|
2717 |
-
'@type' => 'PostalAddress',
|
2718 |
-
'streetAddress' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_streetaddress_'.$schema_id, 'saswp_array'),
|
2719 |
-
'addressLocality' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_locality_'.$schema_id, 'saswp_array'),
|
2720 |
-
'postalCode' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_postalcode_'.$schema_id, 'saswp_array'),
|
2721 |
-
'addressRegion' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_region_'.$schema_id, 'saswp_array'),
|
2722 |
-
)
|
2723 |
-
),
|
2724 |
-
'offers' => array(
|
2725 |
-
'@type' => 'Offer',
|
2726 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_url_'.$schema_id, 'saswp_array'),
|
2727 |
-
'price' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_price_'.$schema_id, 'saswp_array'),
|
2728 |
-
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_price_currency_'.$schema_id, 'saswp_array'),
|
2729 |
-
'availability' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_availability_'.$schema_id, 'saswp_array'),
|
2730 |
-
'validFrom' => isset($all_post_meta['saswp_event_schema_validfrom_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_validfrom_'.$schema_id][0])):'',
|
2731 |
-
),
|
2732 |
-
'performer' => array(
|
2733 |
-
'@type' => 'PerformingGroup',
|
2734 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_performer_name_'.$schema_id, 'saswp_array'),
|
2735 |
-
),
|
2736 |
-
);
|
2737 |
-
|
2738 |
-
if(!empty($aggregateRating)){
|
2739 |
-
$input1['aggregateRating'] = $aggregateRating;
|
2740 |
-
}
|
2741 |
-
if(!empty($extra_theme_review)){
|
2742 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
2743 |
-
}
|
2744 |
-
|
2745 |
-
}
|
2746 |
-
|
2747 |
-
if( 'DiscussionForumPosting' === $schema_type){
|
2748 |
-
|
2749 |
-
$event_image = get_post_meta( get_the_ID(), 'saswp_dfp_image_'.$schema_id.'_detail',true);
|
2750 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_dfp_organization_logo_'.$schema_id.'_detail',true);
|
2751 |
-
$input1 = array(
|
2752 |
-
'@context' => 'http://schema.org',
|
2753 |
-
'@type' => 'DiscussionForumPosting' ,
|
2754 |
-
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_url_'.$schema_id, 'saswp_array').'#blogposting',
|
2755 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2756 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_headline_'.$schema_id, 'saswp_array'),
|
2757 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_description_'.$schema_id, 'saswp_array'),
|
2758 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_url_'.$schema_id, 'saswp_array'),
|
2759 |
-
'image' => array(
|
2760 |
-
'@type' =>'ImageObject',
|
2761 |
-
'url' => isset($event_image['thumbnail']) ? esc_url($event_image['thumbnail']):'' ,
|
2762 |
-
'width' => isset($event_image['width']) ? esc_attr($event_image['width']) :'' ,
|
2763 |
-
'height' => isset($event_image['height']) ? esc_attr($event_image['height']) :'' ,
|
2764 |
-
),
|
2765 |
-
'datePublished' => isset($all_post_meta['saswp_dfp_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_dfp_date_published_'.$schema_id][0])):'',
|
2766 |
-
'dateModified' => isset($all_post_meta['saswp_dfp_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_dfp_date_modified_'.$schema_id][0])):'',
|
2767 |
-
'author' => array(
|
2768 |
-
'@type' => 'Person',
|
2769 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_name_'.$schema_id, 'saswp_array'),
|
2770 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_description_'.$schema_id, 'saswp_array')
|
2771 |
-
),
|
2772 |
-
'publisher' => array(
|
2773 |
-
'@type' => 'Organization',
|
2774 |
-
'logo' => array(
|
2775 |
-
'@type' => 'ImageObject',
|
2776 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_organization_logo_'.$schema_id, 'saswp_array'),
|
2777 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
2778 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
2779 |
-
),
|
2780 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_organization_name_'.$schema_id, 'saswp_array'),
|
2781 |
-
),
|
2782 |
-
);
|
2783 |
-
}
|
2784 |
-
|
2785 |
-
if( 'Course' === $schema_type){
|
2786 |
-
|
2787 |
-
$input1 = array(
|
2788 |
-
'@context' => 'http://schema.org',
|
2789 |
-
'@type' => 'Course' ,
|
2790 |
-
'@id' => trailingslashit(get_permalink()).'#course',
|
2791 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
|
2792 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
|
2793 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_course_url_'.$schema_id, 'saswp_array'),
|
2794 |
-
'datePublished' => isset($all_post_meta['saswp_course_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_course_date_published_'.$schema_id][0])):'',
|
2795 |
-
'dateModified' => isset($all_post_meta['saswp_course_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_course_date_modified_'.$schema_id][0])):'',
|
2796 |
-
'provider' => array(
|
2797 |
-
'@type' => 'Organization',
|
2798 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_provider_name_'.$schema_id, 'saswp_array'),
|
2799 |
-
'sameAs' => saswp_remove_warnings($all_post_meta, 'saswp_course_sameas_'.$schema_id, 'saswp_array')
|
2800 |
-
)
|
2801 |
-
);
|
2802 |
-
|
2803 |
-
if(!empty($aggregateRating)){
|
2804 |
-
|
2805 |
-
$input1['aggregateRating'] = $aggregateRating;
|
2806 |
-
|
2807 |
-
}
|
2808 |
-
if(!empty($extra_theme_review)){
|
2809 |
-
|
2810 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
2811 |
-
|
2812 |
-
}
|
2813 |
-
|
2814 |
-
}
|
2815 |
-
|
2816 |
-
if( 'Blogposting' === $schema_type){
|
2817 |
-
|
2818 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_blogposting_organization_logo_'.$schema_id.'_detail',true);
|
2819 |
-
$input1 = array(
|
2820 |
-
'@context' => 'http://schema.org',
|
2821 |
-
'@type' => 'Blogposting' ,
|
2822 |
-
'@id' => trailingslashit(get_permalink()).'#Blogposting',
|
2823 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2824 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_headline_'.$schema_id, 'saswp_array'),
|
2825 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_description_'.$schema_id, 'saswp_array'),
|
2826 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_keywords_'.$schema_id, 'saswp_array'),
|
2827 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_name_'.$schema_id, 'saswp_array'),
|
2828 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_url_'.$schema_id, 'saswp_array'),
|
2829 |
-
'datePublished' => isset($all_post_meta['saswp_blogposting_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_published_'.$schema_id][0])):'',
|
2830 |
-
'dateModified' => isset($all_post_meta['saswp_blogposting_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_modified_'.$schema_id][0])):'',
|
2831 |
-
'author' => array(
|
2832 |
-
'@type' => 'Person',
|
2833 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array'),
|
2834 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array')
|
2835 |
-
),
|
2836 |
-
'publisher' => array(
|
2837 |
-
'@type' => 'Organization',
|
2838 |
-
'logo' => array(
|
2839 |
-
'@type' => 'ImageObject',
|
2840 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_organization_logo_'.$schema_id, 'saswp_array'),
|
2841 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
2842 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
2843 |
-
),
|
2844 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_organization_name_'.$schema_id, 'saswp_array'),
|
2845 |
-
),
|
2846 |
-
);
|
2847 |
-
|
2848 |
-
|
2849 |
-
|
2850 |
-
if(isset($all_post_meta['saswp_blogposting_speakable_'.$schema_id]) && $all_post_meta['saswp_blogposting_speakable_'.$schema_id][0] == 1 ){
|
2851 |
-
|
2852 |
-
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
2853 |
-
$input1['speakable']['xpath'] = array(
|
2854 |
-
"/html/head/title",
|
2855 |
-
"/html/head/meta[@name='description']/@content"
|
2856 |
-
);
|
2857 |
-
|
2858 |
-
}
|
2859 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_blogposting_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_blogposting_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_blogposting_review_count_'.$schema_id, 'saswp_array')){
|
2860 |
-
|
2861 |
-
$input1['aggregateRating'] = array(
|
2862 |
-
"@type" => "AggregateRating",
|
2863 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_rating_'.$schema_id, 'saswp_array'),
|
2864 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_review_count_'.$schema_id, 'saswp_array')
|
2865 |
-
);
|
2866 |
-
}
|
2867 |
-
|
2868 |
-
if(!empty($aggregateRating)){
|
2869 |
-
$input1['aggregateRating'] = $aggregateRating;
|
2870 |
-
}
|
2871 |
-
if(!empty($extra_theme_review)){
|
2872 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
2873 |
-
}
|
2874 |
-
}
|
2875 |
-
|
2876 |
-
if( 'AudioObject' === $schema_type){
|
2877 |
-
|
2878 |
-
$input1 = array(
|
2879 |
-
'@context' => 'http://schema.org',
|
2880 |
-
'@type' => $schema_type,
|
2881 |
-
'@id' => trailingslashit(get_permalink()).'#audioobject',
|
2882 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_name_'.$schema_id, 'saswp_array'),
|
2883 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_description_'.$schema_id, 'saswp_array'),
|
2884 |
-
'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_contenturl_'.$schema_id, 'saswp_array'),
|
2885 |
-
'duration' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_duration_'.$schema_id, 'saswp_array'),
|
2886 |
-
'encodingFormat' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_encoding_format_'.$schema_id, 'saswp_array'),
|
2887 |
-
'datePublished' => isset($all_post_meta['saswp_audio_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_published_'.$schema_id][0])):'',
|
2888 |
-
'dateModified' => isset($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id][0])):'',
|
2889 |
-
'author' => array(
|
2890 |
-
'@type' => 'Person',
|
2891 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_name_'.$schema_id, 'saswp_array'),
|
2892 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_description_'.$schema_id, 'saswp_array')
|
2893 |
-
),
|
2894 |
-
|
2895 |
-
);
|
2896 |
-
if(!empty($aggregateRating)){
|
2897 |
-
$input1['aggregateRating'] = $aggregateRating;
|
2898 |
-
}
|
2899 |
-
if(!empty($extra_theme_review)){
|
2900 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
2901 |
-
}
|
2902 |
-
}
|
2903 |
-
|
2904 |
-
if( 'SoftwareApplication' === $schema_type){
|
2905 |
-
|
2906 |
-
$input1 = array(
|
2907 |
-
'@context' => 'http://schema.org',
|
2908 |
-
'@type' => 'SoftwareApplication',
|
2909 |
-
'@id' => trailingslashit(get_permalink()).'#softwareapplication',
|
2910 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_name_'.$schema_id, 'saswp_array'),
|
2911 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_description_'.$schema_id, 'saswp_array'),
|
2912 |
-
'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_operating_system_'.$schema_id, 'saswp_array'),
|
2913 |
-
'applicationCategory' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_application_category_'.$schema_id, 'saswp_array'),
|
2914 |
-
'offers' => array(
|
2915 |
-
'@type' => 'Offer',
|
2916 |
-
'price' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_price_'.$schema_id, 'saswp_array'),
|
2917 |
-
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_price_currency_'.$schema_id, 'saswp_array'),
|
2918 |
-
),
|
2919 |
-
'datePublished' => isset($all_post_meta['saswp_software_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_software_schema_date_published_'.$schema_id][0])):'',
|
2920 |
-
'dateModified' => isset($all_post_meta['saswp_software_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_software_schema_date_modified_'.$schema_id][0])):'',
|
2921 |
-
|
2922 |
-
);
|
2923 |
-
|
2924 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_software_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
2925 |
-
|
2926 |
-
$input1['aggregateRating'] = array(
|
2927 |
-
"@type" => "AggregateRating",
|
2928 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_'.$schema_id, 'saswp_array'),
|
2929 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_count_'.$schema_id, 'saswp_array')
|
2930 |
-
);
|
2931 |
-
}
|
2932 |
-
|
2933 |
-
if(!empty($aggregateRating)){
|
2934 |
-
$input1['aggregateRating'] = $aggregateRating;
|
2935 |
-
}
|
2936 |
-
if(!empty($extra_theme_review)){
|
2937 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
2938 |
-
}
|
2939 |
-
}
|
2940 |
-
|
2941 |
-
if( 'WebPage' === $schema_type){
|
2942 |
-
|
2943 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_webpage_organization_logo_'.$schema_id.'_detail',true);
|
2944 |
-
$input1 = array(
|
2945 |
-
'@context' => 'http://schema.org',
|
2946 |
-
'@type' => 'WebPage' ,
|
2947 |
-
'@id' => trailingslashit(get_permalink()).'#webpage',
|
2948 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_name_'.$schema_id, 'saswp_array'),
|
2949 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_url_'.$schema_id, 'saswp_array'),
|
2950 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
2951 |
-
'mainEntity' => array(
|
2952 |
-
'@type' => 'Article',
|
2953 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2954 |
-
'image' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_image_'.$schema_id, 'saswp_array'),
|
2955 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_headline_'.$schema_id, 'saswp_array'),
|
2956 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
2957 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_keywords_'.$schema_id, 'saswp_array'),
|
2958 |
-
'datePublished' => isset($all_post_meta['saswp_webpage_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_webpage_date_published_'.$schema_id][0])):'',
|
2959 |
-
'dateModified' => isset($all_post_meta['saswp_webpage_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_webpage_date_modified_'.$schema_id][0])):'',
|
2960 |
-
'author' => array(
|
2961 |
-
'@type' => 'Person',
|
2962 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_name_'.$schema_id, 'saswp_array'),
|
2963 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_description_'.$schema_id, 'saswp_array'),
|
2964 |
-
),
|
2965 |
-
'publisher' => array(
|
2966 |
-
'@type' => 'Organization',
|
2967 |
-
'logo' => array(
|
2968 |
-
'@type' => 'ImageObject',
|
2969 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_organization_logo_'.$schema_id, 'saswp_array'),
|
2970 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
2971 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
2972 |
-
),
|
2973 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_organization_name_'.$schema_id, 'saswp_array'),
|
2974 |
-
),
|
2975 |
-
),
|
2976 |
-
|
2977 |
-
|
2978 |
-
);
|
2979 |
-
|
2980 |
-
|
2981 |
-
if(isset($all_post_meta['saswp_webpage_speakable_'.$schema_id]) && $all_post_meta['saswp_webpage_speakable_'.$schema_id][0] == 1){
|
2982 |
-
|
2983 |
-
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
2984 |
-
$input1['speakable']['xpath'] = array(
|
2985 |
-
"/html/head/title",
|
2986 |
-
"/html/head/meta[@name='description']/@content"
|
2987 |
-
);
|
2988 |
-
|
2989 |
-
}
|
2990 |
-
|
2991 |
-
if(!empty($aggregateRating)){
|
2992 |
-
|
2993 |
-
$input1['mainEntity']['aggregateRating'] = $aggregateRating;
|
2994 |
-
|
2995 |
-
}
|
2996 |
-
|
2997 |
-
if(!empty($extra_theme_review)){
|
2998 |
-
|
2999 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3000 |
-
|
3001 |
-
}
|
3002 |
-
}
|
3003 |
-
|
3004 |
-
if( 'Article' === $schema_type ){
|
3005 |
-
|
3006 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
|
3007 |
-
|
3008 |
-
$input1 = array(
|
3009 |
-
'@context' => 'http://schema.org',
|
3010 |
-
'@type' => 'Article',
|
3011 |
-
'@id' => trailingslashit(get_permalink()).'#article',
|
3012 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3013 |
-
'image' => saswp_remove_warnings($all_post_meta, 'saswp_article_image_'.$schema_id, 'saswp_array'),
|
3014 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_article_headline_'.$schema_id, 'saswp_array'),
|
3015 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_description_'.$schema_id, 'saswp_array'),
|
3016 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_article_keywords_'.$schema_id, 'saswp_array'),
|
3017 |
-
'datePublished' => isset($all_post_meta['saswp_article_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_article_date_published_'.$schema_id][0])):'',
|
3018 |
-
'dateModified' => isset($all_post_meta['saswp_article_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_article_date_modified_'.$schema_id][0])):'',
|
3019 |
-
'author' => array(
|
3020 |
-
'@type' => 'Person',
|
3021 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array'),
|
3022 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array')
|
3023 |
-
),
|
3024 |
-
'publisher' => array(
|
3025 |
-
'@type' => 'Organization',
|
3026 |
-
'logo' => array(
|
3027 |
-
'@type' => 'ImageObject',
|
3028 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_organization_logo_'.$schema_id, 'saswp_array'),
|
3029 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
3030 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
3031 |
-
),
|
3032 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_organization_name_'.$schema_id, 'saswp_array'),
|
3033 |
-
),
|
3034 |
-
|
3035 |
-
);
|
3036 |
-
|
3037 |
-
if(isset($all_post_meta['saswp_article_speakable_'.$schema_id]) && $all_post_meta['saswp_article_speakable_'.$schema_id][0] == 1){
|
3038 |
-
|
3039 |
-
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
3040 |
-
$input1['speakable']['xpath'] = array(
|
3041 |
-
"/html/head/title",
|
3042 |
-
"/html/head/meta[@name='description']/@content"
|
3043 |
-
);
|
3044 |
-
|
3045 |
-
}
|
3046 |
-
|
3047 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_article_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_article_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_article_review_count_'.$schema_id, 'saswp_array')){
|
3048 |
-
|
3049 |
-
$input1['aggregateRating'] = array(
|
3050 |
-
"@type" => "AggregateRating",
|
3051 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_article_rating_'.$schema_id, 'saswp_array'),
|
3052 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_article_review_count_'.$schema_id, 'saswp_array')
|
3053 |
-
);
|
3054 |
-
}
|
3055 |
-
|
3056 |
-
if(!empty($extra_theme_review)){
|
3057 |
-
|
3058 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3059 |
-
|
3060 |
-
}
|
3061 |
-
}
|
3062 |
-
|
3063 |
-
if( 'TechArticle' === $schema_type ){
|
3064 |
-
|
3065 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
|
3066 |
-
|
3067 |
-
$input1 = array(
|
3068 |
-
'@context' => 'http://schema.org',
|
3069 |
-
'@type' => 'TechArticle',
|
3070 |
-
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
3071 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3072 |
-
'image' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_image_'.$schema_id, 'saswp_array'),
|
3073 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_headline_'.$schema_id, 'saswp_array'),
|
3074 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_description_'.$schema_id, 'saswp_array'),
|
3075 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_keywords_'.$schema_id, 'saswp_array'),
|
3076 |
-
'datePublished' => isset($all_post_meta['saswp_tech_article_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0])):'',
|
3077 |
-
'dateModified' => isset($all_post_meta['saswp_tech_article_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0])):'',
|
3078 |
-
'author' => array(
|
3079 |
-
'@type' => 'Person',
|
3080 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array'),
|
3081 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array')
|
3082 |
-
),
|
3083 |
-
'publisher' => array(
|
3084 |
-
'@type' => 'Organization',
|
3085 |
-
'logo' => array(
|
3086 |
-
'@type' => 'ImageObject',
|
3087 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_organization_logo_'.$schema_id, 'saswp_array'),
|
3088 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
3089 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
3090 |
-
),
|
3091 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_organization_name_'.$schema_id, 'saswp_array'),
|
3092 |
-
),
|
3093 |
-
|
3094 |
-
);
|
3095 |
-
|
3096 |
-
if(isset($all_post_meta['saswp_tech_article_speakable_'.$schema_id]) && $all_post_meta['saswp_tech_article_speakable_'.$schema_id][0] == 1){
|
3097 |
-
|
3098 |
-
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
3099 |
-
$input1['speakable']['xpath'] = array(
|
3100 |
-
"/html/head/title",
|
3101 |
-
"/html/head/meta[@name='description']/@content"
|
3102 |
-
);
|
3103 |
-
|
3104 |
-
}
|
3105 |
-
|
3106 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_tech_article_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_tech_article_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_tech_article_review_count_'.$schema_id, 'saswp_array')){
|
3107 |
-
|
3108 |
-
$input1['aggregateRating'] = array(
|
3109 |
-
"@type" => "AggregateRating",
|
3110 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_rating_'.$schema_id, 'saswp_array'),
|
3111 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_review_count_'.$schema_id, 'saswp_array')
|
3112 |
-
);
|
3113 |
-
}
|
3114 |
-
|
3115 |
-
|
3116 |
-
if(!empty($extra_theme_review)){
|
3117 |
-
|
3118 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3119 |
-
|
3120 |
-
}
|
3121 |
-
}
|
3122 |
-
|
3123 |
-
if( 'Recipe' === $schema_type){
|
3124 |
-
|
3125 |
-
$recipe_logo = get_post_meta( get_the_ID(), 'saswp_recipe_organization_logo_'.$schema_id.'_detail',true);
|
3126 |
-
$recipe_image = get_post_meta( get_the_ID(), 'saswp_recipe_image_'.$schema_id.'_detail',true);
|
3127 |
-
$recipe_author_image = get_post_meta( get_the_ID(), 'saswp_recipe_author_image_'.$schema_id.'_detail',true);
|
3128 |
-
|
3129 |
-
$ingredient = array();
|
3130 |
-
$instruction = array();
|
3131 |
-
|
3132 |
-
if(isset($all_post_meta['saswp_recipe_ingredient_'.$schema_id])){
|
3133 |
-
|
3134 |
-
$explod = explode(';', $all_post_meta['saswp_recipe_ingredient_'.$schema_id][0]);
|
3135 |
-
|
3136 |
-
if($explod){
|
3137 |
-
|
3138 |
-
foreach ($explod as $val){
|
3139 |
-
|
3140 |
-
$ingredient[] = $val;
|
3141 |
-
|
3142 |
-
}
|
3143 |
-
|
3144 |
-
}
|
3145 |
-
|
3146 |
-
|
3147 |
-
|
3148 |
-
}
|
3149 |
-
|
3150 |
-
if(isset($all_post_meta['saswp_recipe_instructions_'.$schema_id])){
|
3151 |
-
|
3152 |
-
$explod = explode(';', $all_post_meta['saswp_recipe_instructions_'.$schema_id][0]);
|
3153 |
-
|
3154 |
-
if($explod){
|
3155 |
-
|
3156 |
-
foreach ($explod as $val){
|
3157 |
-
|
3158 |
-
$instruction[] = array(
|
3159 |
-
'@type' => "HowToStep",
|
3160 |
-
'text' => $val,
|
3161 |
-
);
|
3162 |
-
|
3163 |
-
}
|
3164 |
-
|
3165 |
-
}
|
3166 |
-
|
3167 |
-
}
|
3168 |
-
|
3169 |
-
$input1 = array(
|
3170 |
-
'@context' => 'http://schema.org',
|
3171 |
-
'@type' => $schema_type ,
|
3172 |
-
'@id' => trailingslashit(get_permalink()).'#recipe',
|
3173 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_url_'.$schema_id, 'saswp_array'),
|
3174 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_name_'.$schema_id, 'saswp_array'),
|
3175 |
-
'image' =>array(
|
3176 |
-
'@type' => 'ImageObject',
|
3177 |
-
'url' => saswp_remove_warnings( $recipe_image, 'thumbnail', 'saswp_string'),
|
3178 |
-
'width' => saswp_remove_warnings( $recipe_image, 'width', 'saswp_string'),
|
3179 |
-
'height' => saswp_remove_warnings( $recipe_image , 'height', 'saswp_string'),
|
3180 |
-
),
|
3181 |
-
'author' => array(
|
3182 |
-
'@type' => 'Person',
|
3183 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_name_'.$schema_id, 'saswp_array'),
|
3184 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_description_'.$schema_id, 'saswp_array'),
|
3185 |
-
'Image' => array(
|
3186 |
-
'@type' => 'ImageObject',
|
3187 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_image_'.$schema_id, 'saswp_array'),
|
3188 |
-
'height' => saswp_remove_warnings($recipe_author_image, 'height', 'saswp_string'),
|
3189 |
-
'width' => saswp_remove_warnings($recipe_author_image, 'width', 'saswp_string')
|
3190 |
-
),
|
3191 |
-
),
|
3192 |
-
|
3193 |
-
|
3194 |
-
'prepTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_preptime_'.$schema_id, 'saswp_array'),
|
3195 |
-
'cookTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_cooktime_'.$schema_id, 'saswp_array'),
|
3196 |
-
'totalTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_totaltime_'.$schema_id, 'saswp_array'),
|
3197 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_keywords_'.$schema_id, 'saswp_array'),
|
3198 |
-
'recipeYield' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_recipeyield_'.$schema_id, 'saswp_array'),
|
3199 |
-
'recipeCategory' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_category_'.$schema_id, 'saswp_array'),
|
3200 |
-
'recipeCuisine' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_cuisine_'.$schema_id, 'saswp_array'),
|
3201 |
-
'nutrition' => array(
|
3202 |
-
'@type' => "NutritionInformation",
|
3203 |
-
'calories' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_nutrition_'.$schema_id, 'saswp_array'),
|
3204 |
-
),
|
3205 |
-
'recipeIngredient' => $ingredient,
|
3206 |
-
'recipeInstructions' => $instruction,
|
3207 |
-
'datePublished' => isset($all_post_meta['saswp_recipe_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_date_published_'.$schema_id][0])):'',
|
3208 |
-
'dateModified' => isset($all_post_meta['saswp_recipe_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_date_modified_'.$schema_id][0])):'',
|
3209 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_description_'.$schema_id, 'saswp_array'),
|
3210 |
-
'mainEntity' => array(
|
3211 |
-
'@type' => 'WebPage',
|
3212 |
-
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_main_entity_'.$schema_id, 'saswp_array'),
|
3213 |
-
'publisher' => array(
|
3214 |
-
'@type' => 'Organization',
|
3215 |
-
'logo' => array(
|
3216 |
-
'@type' => 'ImageObject',
|
3217 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_organization_logo_'.$schema_id, 'saswp_array'),
|
3218 |
-
'width' => saswp_remove_warnings($recipe_logo, 'width', 'saswp_string'),
|
3219 |
-
'height' => saswp_remove_warnings($recipe_logo, 'height', 'saswp_string'),
|
3220 |
-
),
|
3221 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_organization_name_'.$schema_id, 'saswp_array'),
|
3222 |
-
),
|
3223 |
-
),
|
3224 |
-
|
3225 |
-
|
3226 |
-
);
|
3227 |
-
|
3228 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_name_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_thumbnailurl_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_description_'.$schema_id, 'saswp_array') !=''){
|
3229 |
-
|
3230 |
-
$input1['video']['@type'] = 'VideoObject';
|
3231 |
-
$input1['video']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_name_'.$schema_id, 'saswp_array');
|
3232 |
-
$input1['video']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_description_'.$schema_id, 'saswp_array');
|
3233 |
-
$input1['video']['thumbnailUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_thumbnailurl_'.$schema_id, 'saswp_array');
|
3234 |
-
$input1['video']['contentUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_contenturl_'.$schema_id, 'saswp_array');
|
3235 |
-
$input1['video']['embedUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_embedurl_'.$schema_id, 'saswp_array');
|
3236 |
-
$input1['video']['uploadDate'] = isset($all_post_meta['saswp_recipe_video_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_video_upload_date_'.$schema_id][0])):'';
|
3237 |
-
$input1['video']['duration'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_duration_'.$schema_id, 'saswp_array');
|
3238 |
-
}
|
3239 |
-
|
3240 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_review_count_'.$schema_id, 'saswp_array')){
|
3241 |
-
|
3242 |
-
$input1['aggregateRating'] = array(
|
3243 |
-
"@type" => "AggregateRating",
|
3244 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_rating_'.$schema_id, 'saswp_array'),
|
3245 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_review_count_'.$schema_id, 'saswp_array')
|
3246 |
-
);
|
3247 |
-
}
|
3248 |
-
|
3249 |
-
if(!empty($aggregateRating)){
|
3250 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3251 |
-
}
|
3252 |
-
if(!empty($extra_theme_review)){
|
3253 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3254 |
-
}
|
3255 |
-
}
|
3256 |
-
|
3257 |
-
if( 'Product' === $schema_type){
|
3258 |
-
|
3259 |
-
$product_image = get_post_meta( get_the_ID(), 'saswp_product_schema_image_'.$schema_id.'_detail',true);
|
3260 |
-
$input1 = array(
|
3261 |
-
'@context' => 'http://schema.org',
|
3262 |
-
'@type' => 'Product',
|
3263 |
-
'@id' => trailingslashit(get_permalink()).'#product',
|
3264 |
-
'url' => trailingslashit(get_permalink()),
|
3265 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_name_'.$schema_id, 'saswp_array'),
|
3266 |
-
'sku' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_sku_'.$schema_id, 'saswp_array'),
|
3267 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_description_'.$schema_id, 'saswp_array'),
|
3268 |
-
'image' =>array(
|
3269 |
-
'@type' => 'ImageObject',
|
3270 |
-
'url' => saswp_remove_warnings($product_image, 'thumbnail', 'saswp_string'),
|
3271 |
-
'width' => saswp_remove_warnings($product_image, 'width', 'saswp_string'),
|
3272 |
-
'height' => saswp_remove_warnings($product_image, 'height', 'saswp_string'),
|
3273 |
-
),
|
3274 |
-
'offers' => array(
|
3275 |
-
'@type' => 'Offer',
|
3276 |
-
'availability' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_availability_'.$schema_id, 'saswp_array'),
|
3277 |
-
'itemCondition' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_condition_'.$schema_id, 'saswp_array'),
|
3278 |
-
'price' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_price_'.$schema_id, 'saswp_array'),
|
3279 |
-
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_currency_'.$schema_id, 'saswp_array'),
|
3280 |
-
'url' => trailingslashit(get_permalink()),
|
3281 |
-
'priceValidUntil' => isset($all_post_meta['saswp_product_schema_priceValidUntil_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_product_schema_priceValidUntil_'.$schema_id][0])):'',
|
3282 |
-
),
|
3283 |
-
'brand' => array('@type' => 'Thing',
|
3284 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_brand_name_'.$schema_id, 'saswp_array'),
|
3285 |
-
)
|
3286 |
-
);
|
3287 |
-
|
3288 |
-
if(isset($all_post_meta['saswp_product_schema_gtin8_'.$schema_id])){
|
3289 |
-
$input1['gtin8'] = esc_attr($all_post_meta['saswp_product_schema_gtin8_'.$schema_id][0]);
|
3290 |
-
}
|
3291 |
-
if(isset($all_post_meta['saswp_product_schema_mpn_'.$schema_id])){
|
3292 |
-
$input1['mpn'] = esc_attr($all_post_meta['saswp_product_schema_mpn_'.$schema_id][0]);
|
3293 |
-
}
|
3294 |
-
if(isset($all_post_meta['saswp_product_schema_isbn_'.$schema_id])){
|
3295 |
-
$input1['isbn'] = esc_attr($all_post_meta['saswp_product_schema_isbn_'.$schema_id][0]);
|
3296 |
-
}
|
3297 |
-
|
3298 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_product_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')){
|
3299 |
-
|
3300 |
-
$input1['aggregateRating'] = array(
|
3301 |
-
"@type" => "AggregateRating",
|
3302 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array'),
|
3303 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')
|
3304 |
-
);
|
3305 |
-
}
|
3306 |
-
|
3307 |
-
if(!empty($aggregateRating)){
|
3308 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3309 |
-
}
|
3310 |
-
if(!empty($extra_theme_review)){
|
3311 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3312 |
-
}
|
3313 |
-
|
3314 |
-
$service = new saswp_output_service();
|
3315 |
-
$product_details = $service->saswp_woocommerce_product_details(get_the_ID());
|
3316 |
-
|
3317 |
-
|
3318 |
-
if(!empty($product_details['product_reviews'])){
|
3319 |
-
|
3320 |
-
$reviews = array();
|
3321 |
-
|
3322 |
-
foreach ($product_details['product_reviews'] as $review){
|
3323 |
-
|
3324 |
-
|
3325 |
-
$review_fields = array();
|
3326 |
-
|
3327 |
-
$review_fields['@type'] = 'Review';
|
3328 |
-
$review_fields['author'] = esc_attr($review['author']);
|
3329 |
-
$review_fields['datePublished'] = esc_html($review['datePublished']);
|
3330 |
-
$review_fields['description'] = $review['description'];
|
3331 |
-
|
3332 |
-
if(isset($review['reviewRating']) && $review['reviewRating'] !=''){
|
3333 |
-
|
3334 |
-
$review_fields['reviewRating']['@type'] = 'Rating';
|
3335 |
-
$review_fields['reviewRating']['bestRating'] = '5';
|
3336 |
-
$review_fields['reviewRating']['ratingValue'] = esc_attr($review['reviewRating']);
|
3337 |
-
$review_fields['reviewRating']['worstRating'] = '1';
|
3338 |
-
|
3339 |
-
}
|
3340 |
-
|
3341 |
-
|
3342 |
-
|
3343 |
-
$reviews[] = $review_fields;
|
3344 |
-
|
3345 |
-
}
|
3346 |
-
$input1['review'] = $reviews;
|
3347 |
-
}
|
3348 |
-
|
3349 |
-
|
3350 |
-
}
|
3351 |
-
|
3352 |
-
if( 'NewsArticle' === $schema_type ){
|
3353 |
-
|
3354 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_newsarticle_organization_logo_'.$schema_id.'_detail',true);
|
3355 |
-
$author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
|
3356 |
-
|
3357 |
-
$input1 = array(
|
3358 |
-
'@context' => 'http://schema.org',
|
3359 |
-
'@type' => 'NewsArticle' ,
|
3360 |
-
'@id' => trailingslashit(get_permalink()).'#newsarticle',
|
3361 |
-
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3362 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_URL_'.$schema_id, 'saswp_array'),
|
3363 |
-
'image' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_image_'.$schema_id, 'saswp_array'),
|
3364 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_headline_'.$schema_id, 'saswp_array'),
|
3365 |
-
'datePublished' => isset($all_post_meta['saswp_newsarticle_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_newsarticle_date_published_'.$schema_id][0])):'',
|
3366 |
-
'dateModified' => isset($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id][0])):'',
|
3367 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_description_'.$schema_id, 'saswp_array'),
|
3368 |
-
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_keywords_'.$schema_id, 'saswp_array'),
|
3369 |
-
'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_section_'.$schema_id, 'saswp_array'),
|
3370 |
-
'articleBody' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_body_'.$schema_id, 'saswp_array'),
|
3371 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_name_'.$schema_id, 'saswp_array'),
|
3372 |
-
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_thumbnailurl_'.$schema_id, 'saswp_array'),
|
3373 |
-
'wordCount' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_word_count_'.$schema_id, 'saswp_array'),
|
3374 |
-
'timeRequired' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_timerequired_'.$schema_id, 'saswp_array'),
|
3375 |
-
'mainEntity' => array(
|
3376 |
-
'@type' => 'WebPage',
|
3377 |
-
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_id_'.$schema_id, 'saswp_array'),
|
3378 |
-
),
|
3379 |
-
'author' => array(
|
3380 |
-
'@type' => 'Person',
|
3381 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_name_'.$schema_id, 'saswp_array'),
|
3382 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_description_'.$schema_id, 'saswp_array'),
|
3383 |
-
'Image' => array(
|
3384 |
-
'@type' => 'ImageObject',
|
3385 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_image_'.$schema_id, 'saswp_array'),
|
3386 |
-
'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
|
3387 |
-
'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
|
3388 |
-
),
|
3389 |
-
),
|
3390 |
-
'publisher' => array(
|
3391 |
-
'@type' => 'Organization',
|
3392 |
-
'logo' => array(
|
3393 |
-
'@type' => 'ImageObject',
|
3394 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_organization_logo_'.$schema_id, 'saswp_array'),
|
3395 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
3396 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
3397 |
-
),
|
3398 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_organization_name_'.$schema_id, 'saswp_array'),
|
3399 |
-
),
|
3400 |
-
);
|
3401 |
-
|
3402 |
-
if(isset($all_post_meta['saswp_newsarticle_speakable_'.$schema_id]) && $all_post_meta['saswp_newsarticle_speakable_'.$schema_id][0] == 1){
|
3403 |
-
|
3404 |
-
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
3405 |
-
$input1['speakable']['xpath'] = array(
|
3406 |
-
"/html/head/title",
|
3407 |
-
"/html/head/meta[@name='description']/@content"
|
3408 |
-
);
|
3409 |
-
|
3410 |
-
}
|
3411 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_review_count_'.$schema_id, 'saswp_array')){
|
3412 |
-
|
3413 |
-
$input1['aggregateRating'] = array(
|
3414 |
-
"@type" => "AggregateRating",
|
3415 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_rating_'.$schema_id, 'saswp_array'),
|
3416 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_review_count_'.$schema_id, 'saswp_array')
|
3417 |
-
);
|
3418 |
-
}
|
3419 |
-
|
3420 |
-
if(!empty($aggregateRating)){
|
3421 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3422 |
-
}
|
3423 |
-
}
|
3424 |
-
|
3425 |
-
if( 'VideoObject' === $schema_type){
|
3426 |
-
|
3427 |
-
$slogo = get_post_meta( get_the_ID(), 'saswp_video_object_organization_logo_'.$schema_id.'_detail',true);
|
3428 |
-
$author_image = get_post_meta( get_the_ID(), 'saswp_video_object_author_image_'.$schema_id.'_detail',true);
|
3429 |
-
|
3430 |
-
$input1 = array(
|
3431 |
-
'@context' => 'http://schema.org',
|
3432 |
-
'@type' => 'VideoObject',
|
3433 |
-
'@id' => trailingslashit(get_permalink()).'#videoobject',
|
3434 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_url_'.$schema_id, 'saswp_array'),
|
3435 |
-
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_headline_'.$schema_id, 'saswp_array'),
|
3436 |
-
'datePublished' => isset($all_post_meta['saswp_video_object_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_date_published_'.$schema_id][0])):'',
|
3437 |
-
'dateModified' => isset($all_post_meta['saswp_video_object_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_date_modified_'.$schema_id][0])):'',
|
3438 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_description_'.$schema_id, 'saswp_array'),
|
3439 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_name_'.$schema_id, 'saswp_array'),
|
3440 |
-
'uploadDate' => isset($all_post_meta['saswp_video_object_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_upload_date_'.$schema_id][0])):'',
|
3441 |
-
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_thumbnail_url_'.$schema_id, 'saswp_array'),
|
3442 |
-
'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_content_url_'.$schema_id, 'saswp_array'),
|
3443 |
-
'embedUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_embed_url_'.$schema_id, 'saswp_array'),
|
3444 |
-
'mainEntity' => array(
|
3445 |
-
'@type' => 'WebPage',
|
3446 |
-
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_main_entity_id_'.$schema_id, 'saswp_array'),
|
3447 |
-
),
|
3448 |
-
'author' => array(
|
3449 |
-
'@type' => 'Person',
|
3450 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_name_'.$schema_id, 'saswp_array'),
|
3451 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_description_'.$schema_id, 'saswp_array'),
|
3452 |
-
'Image' => array(
|
3453 |
-
'@type' => 'ImageObject',
|
3454 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_image_'.$schema_id, 'saswp_array'),
|
3455 |
-
'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
|
3456 |
-
'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
|
3457 |
-
),
|
3458 |
-
),
|
3459 |
-
'publisher' => array(
|
3460 |
-
'@type' => 'Organization',
|
3461 |
-
'logo' => array(
|
3462 |
-
'@type' => 'ImageObject',
|
3463 |
-
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_organization_logo_'.$schema_id, 'saswp_array'),
|
3464 |
-
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
3465 |
-
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
3466 |
-
),
|
3467 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_organization_name_'.$schema_id, 'saswp_array'),
|
3468 |
-
),
|
3469 |
-
);
|
3470 |
-
if(!empty($aggregateRating)){
|
3471 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3472 |
-
}
|
3473 |
-
if(!empty($extra_theme_review)){
|
3474 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3475 |
-
}
|
3476 |
-
|
3477 |
-
}
|
3478 |
-
|
3479 |
-
if( 'Service' === $schema_type ){
|
3480 |
-
|
3481 |
-
$area_served_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_area_served_'.$schema_id, 'saswp_array');
|
3482 |
-
$area_served_arr = explode(',', $area_served_str);
|
3483 |
-
|
3484 |
-
$service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_service_offer_'.$schema_id, 'saswp_array');
|
3485 |
-
$service_offer_arr = explode(',', $service_offer_str);
|
3486 |
-
|
3487 |
-
$input1 = array(
|
3488 |
-
'@context' => 'http://schema.org',
|
3489 |
-
'@type' => $schema_type ,
|
3490 |
-
'@id' => trailingslashit(get_permalink()).'#service',
|
3491 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array'),
|
3492 |
-
'serviceType' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_type_'.$schema_id, 'saswp_array'),
|
3493 |
-
'provider' => array(
|
3494 |
-
'@type' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_provider_type_'.$schema_id, 'saswp_array'),
|
3495 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_provider_name_'.$schema_id, 'saswp_array'),
|
3496 |
-
'image' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_image_'.$schema_id, 'saswp_array'),
|
3497 |
-
'@id' => trailingslashit(get_permalink()),
|
3498 |
-
'address' => array(
|
3499 |
-
'@type' => 'PostalAddress',
|
3500 |
-
'addressLocality' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_locality_'.$schema_id, 'saswp_array'),
|
3501 |
-
'postalCode' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_postal_code_'.$schema_id, 'saswp_array'),
|
3502 |
-
'telephone' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_telephone_'.$schema_id, 'saswp_array')
|
3503 |
-
),
|
3504 |
-
'priceRange' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_price_range_'.$schema_id, 'saswp_array'),
|
3505 |
-
),
|
3506 |
-
'description' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_description_'.$schema_id, 'saswp_array'),
|
3507 |
-
);
|
3508 |
-
$areaServed = array();
|
3509 |
-
foreach($area_served_arr as $area){
|
3510 |
-
$areaServed[] = array(
|
3511 |
-
'@type' => 'City',
|
3512 |
-
'name' => $area
|
3513 |
-
);
|
3514 |
-
}
|
3515 |
-
$serviceOffer = array();
|
3516 |
-
foreach($service_offer_arr as $offer){
|
3517 |
-
$serviceOffer[] = array(
|
3518 |
-
'@type' => 'Offer',
|
3519 |
-
'name' => $offer
|
3520 |
-
);
|
3521 |
-
}
|
3522 |
-
$input1['areaServed'] = $areaServed;
|
3523 |
-
$input1['hasOfferCatalog'] = array(
|
3524 |
-
'@type' => 'OfferCatalog',
|
3525 |
-
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array'),
|
3526 |
-
'itemListElement' => $serviceOffer
|
3527 |
-
);
|
3528 |
-
|
3529 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_service_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
3530 |
-
$input1['aggregateRating'] = array(
|
3531 |
-
"@type" => "AggregateRating",
|
3532 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_rating_'.$schema_id, 'saswp_array'),
|
3533 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_review_count_'.$schema_id, 'saswp_array')
|
3534 |
-
);
|
3535 |
-
}
|
3536 |
-
if(!empty($aggregateRating)){
|
3537 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3538 |
-
}
|
3539 |
-
if(!empty($extra_theme_review)){
|
3540 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3541 |
-
}
|
3542 |
-
}
|
3543 |
-
|
3544 |
-
if( 'Review' === $schema_type ){
|
3545 |
-
|
3546 |
-
if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah')){
|
3547 |
-
|
3548 |
-
remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
|
3549 |
-
|
3550 |
-
}
|
3551 |
-
|
3552 |
-
$service = new saswp_output_service();
|
3553 |
-
|
3554 |
-
$review_author = get_the_author();
|
3555 |
-
|
3556 |
-
if(isset($all_post_meta['saswp_review_schema_author_'.$schema_id])){
|
3557 |
-
|
3558 |
-
$review_author = $all_post_meta['saswp_review_schema_author_'.$schema_id][0];
|
3559 |
-
|
3560 |
-
}
|
3561 |
-
|
3562 |
-
$input1['@context'] = 'http://schema.org';
|
3563 |
-
$input1['@type'] = 'Review';
|
3564 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#review';
|
3565 |
-
$input1['url'] = trailingslashit(get_permalink());
|
3566 |
-
$input1['datePublished'] = get_the_date("Y-m-d\TH:i:s\Z");
|
3567 |
-
$input1['dateModified'] = get_the_modified_date("Y-m-d\TH:i:s\Z");
|
3568 |
-
|
3569 |
-
if($review_author){
|
3570 |
-
|
3571 |
-
$input1['author']['@type'] = 'Person';
|
3572 |
-
$input1['author']['name'] = esc_attr($review_author);
|
3573 |
-
|
3574 |
-
if(isset($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id])){
|
3575 |
-
|
3576 |
-
$input1['author']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id][0]);
|
3577 |
-
|
3578 |
-
}
|
3579 |
-
|
3580 |
-
}
|
3581 |
-
|
3582 |
-
if($site_name && $logo && $width && $height){
|
3583 |
-
|
3584 |
-
$input1['publisher']['@type'] = 'Organization';
|
3585 |
-
$input1['publisher']['name'] = esc_attr($site_name);
|
3586 |
-
$input1['publisher']['logo']['@type'] = 'ImageObject';
|
3587 |
-
$input1['publisher']['logo']['url'] = esc_url($logo);
|
3588 |
-
$input1['publisher']['logo']['width'] = esc_attr($width);
|
3589 |
-
$input1['publisher']['logo']['height'] = esc_attr($height);
|
3590 |
-
|
3591 |
-
}
|
3592 |
-
|
3593 |
-
if(isset($all_post_meta['saswp_review_schema_description_'.$schema_id])){
|
3594 |
-
|
3595 |
-
$input1['reviewBody'] = $all_post_meta['saswp_review_schema_description_'.$schema_id][0];
|
3596 |
-
$input1['description'] = $all_post_meta['saswp_review_schema_description_'.$schema_id][0];
|
3597 |
-
}else {
|
3598 |
-
$input1['reviewBody'] = saswp_get_the_excerpt();
|
3599 |
-
$input1['description'] = saswp_get_the_excerpt();
|
3600 |
-
}
|
3601 |
-
|
3602 |
-
if(isset($all_post_meta['saswp_review_schema_item_type_'.$schema_id])){
|
3603 |
-
$input1['itemReviewed']['@type'] = esc_attr($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
3604 |
-
}
|
3605 |
-
if(isset($all_post_meta['saswp_review_schema_name_'.$schema_id])){
|
3606 |
-
$input1['itemReviewed']['name'] = esc_attr($all_post_meta['saswp_review_schema_name_'.$schema_id][0]);
|
3607 |
-
}
|
3608 |
-
if(isset($all_post_meta['saswp_review_schema_url_'.$schema_id])){
|
3609 |
-
$input1['itemReviewed']['url'] = esc_url($all_post_meta['saswp_review_schema_url_'.$schema_id][0]);
|
3610 |
-
}
|
3611 |
-
|
3612 |
-
if(isset($all_post_meta['saswp_review_schema_price_range_'.$schema_id])){
|
3613 |
-
|
3614 |
-
$input1['itemReviewed']['priceRange'] = esc_attr($all_post_meta['saswp_review_schema_price_range_'.$schema_id][0]);
|
3615 |
-
|
3616 |
-
}
|
3617 |
-
|
3618 |
-
if(isset($all_post_meta['saswp_review_schema_telephone_'.$schema_id])){
|
3619 |
-
|
3620 |
-
$input1['itemReviewed']['telephone'] = esc_attr($all_post_meta['saswp_review_schema_telephone_'.$schema_id][0]);
|
3621 |
-
|
3622 |
-
}
|
3623 |
-
|
3624 |
-
if(isset($all_post_meta['saswp_review_schema_servescuisine_'.$schema_id])){
|
3625 |
-
|
3626 |
-
$input1['itemReviewed']['servesCuisine'] = esc_attr($all_post_meta['saswp_review_schema_servescuisine_'.$schema_id][0]);
|
3627 |
-
|
3628 |
-
}
|
3629 |
-
|
3630 |
-
if(isset($all_post_meta['saswp_review_schema_menu_'.$schema_id])){
|
3631 |
-
|
3632 |
-
$input1['itemReviewed']['hasMenu'] = esc_url($all_post_meta['saswp_review_schema_menu_'.$schema_id][0]);
|
3633 |
-
|
3634 |
-
}
|
3635 |
-
|
3636 |
-
if(isset($all_post_meta['saswp_review_schema_itemreviewed_sameas_'.$schema_id])){
|
3637 |
-
|
3638 |
-
$input1['itemReviewed']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_itemreviewed_sameas_'.$schema_id][0]);
|
3639 |
-
|
3640 |
-
}
|
3641 |
-
|
3642 |
-
|
3643 |
-
if(isset($all_post_meta['saswp_review_schema_director_'.$schema_id])){
|
3644 |
-
|
3645 |
-
$input1['itemReviewed']['director'] = esc_attr($all_post_meta['saswp_review_schema_director_'.$schema_id][0]);
|
3646 |
-
|
3647 |
-
}
|
3648 |
-
if(isset($all_post_meta['saswp_review_schema_date_created_'.$schema_id])){
|
3649 |
-
|
3650 |
-
$input1['itemReviewed']['dateCreated'] = isset($all_post_meta['saswp_review_schema_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_review_schema_date_created_'.$schema_id][0])):'';
|
3651 |
-
|
3652 |
-
}
|
3653 |
-
|
3654 |
-
$review_image = get_post_meta( get_the_ID(), 'saswp_review_schema_image_'.$schema_id.'_detail',true);
|
3655 |
-
|
3656 |
-
if(!empty($review_image)){
|
3657 |
-
|
3658 |
-
$input1['itemReviewed']['image']['@type'] = 'ImageObject';
|
3659 |
-
$input1['itemReviewed']['image']['url'] = esc_url($review_image['thumbnail']);
|
3660 |
-
$input1['itemReviewed']['image']['width'] = esc_attr($review_image['width']);
|
3661 |
-
$input1['itemReviewed']['image']['height'] = esc_attr($review_image['height']);
|
3662 |
-
|
3663 |
-
}
|
3664 |
-
|
3665 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_review_schema_street_address_'.$schema_id, 'saswp_array') !='' || saswp_remove_warnings($all_post_meta, 'saswp_review_schema_locality_'.$schema_id, 'saswp_array') !=''){
|
3666 |
-
|
3667 |
-
|
3668 |
-
$input1['itemReviewed']['address']['@type'] = 'PostalAddress';
|
3669 |
-
$input1['itemReviewed']['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_street_address_'.$schema_id, 'saswp_array');
|
3670 |
-
$input1['itemReviewed']['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_locality_'.$schema_id, 'saswp_array');
|
3671 |
-
$input1['itemReviewed']['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_region_'.$schema_id, 'saswp_array');
|
3672 |
-
$input1['itemReviewed']['address']['postalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_postal_code_'.$schema_id, 'saswp_array');
|
3673 |
-
$input1['itemReviewed']['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_country_'.$schema_id, 'saswp_array');
|
3674 |
-
|
3675 |
-
}
|
3676 |
-
|
3677 |
-
switch ($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]) {
|
3678 |
-
|
3679 |
-
case 'Article':
|
3680 |
-
|
3681 |
-
$markup = $service->saswp_schema_markup_generator($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
3682 |
-
$input1['itemReviewed'] = $markup;
|
3683 |
-
|
3684 |
-
break;
|
3685 |
-
case 'Adultentertainment':
|
3686 |
-
$input1 = $input1;
|
3687 |
-
break;
|
3688 |
-
case 'Blog':
|
3689 |
-
$input1 = $input1;
|
3690 |
-
break;
|
3691 |
-
case 'Book':
|
3692 |
-
|
3693 |
-
if(isset($all_post_meta['saswp_review_schema_isbn_'.$schema_id])){
|
3694 |
-
|
3695 |
-
$input1['itemReviewed']['isbn'] = $all_post_meta['saswp_review_schema_isbn_'.$schema_id];
|
3696 |
-
|
3697 |
-
}
|
3698 |
-
if($review_author) {
|
3699 |
-
|
3700 |
-
$input1['itemReviewed']['author']['@type'] = 'Person';
|
3701 |
-
$input1['itemReviewed']['author']['name'] = esc_attr($review_author);
|
3702 |
-
$input1['itemReviewed']['author']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id][0]);
|
3703 |
-
|
3704 |
-
}
|
3705 |
-
|
3706 |
-
break;
|
3707 |
-
case 'Casino':
|
3708 |
-
break;
|
3709 |
-
case 'Diet':
|
3710 |
-
break;
|
3711 |
-
case 'Episode':
|
3712 |
-
break;
|
3713 |
-
case 'ExercisePlan':
|
3714 |
-
break;
|
3715 |
-
case 'Game':
|
3716 |
-
break;
|
3717 |
-
case 'Movie':
|
3718 |
-
|
3719 |
-
if($review_author){
|
3720 |
-
|
3721 |
-
$input1['author']['sameAs'] = trailingslashit(get_permalink());
|
3722 |
-
|
3723 |
-
}
|
3724 |
-
|
3725 |
-
break;
|
3726 |
-
case 'MusicPlaylist':
|
3727 |
-
break;
|
3728 |
-
case 'MusicRecording':
|
3729 |
-
break;
|
3730 |
-
case 'Photograph':
|
3731 |
-
break;
|
3732 |
-
case 'Recipe':
|
3733 |
-
break;
|
3734 |
-
case 'Restaurant':
|
3735 |
-
break;
|
3736 |
-
case 'Series':
|
3737 |
-
break;
|
3738 |
-
case 'SoftwareApplication':
|
3739 |
-
break;
|
3740 |
-
case 'VisualArtwork':
|
3741 |
-
break;
|
3742 |
-
case 'WebPage':
|
3743 |
-
|
3744 |
-
$markup = $service->saswp_schema_markup_generator($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
3745 |
-
$input1['itemReviewed'] = $markup;
|
3746 |
-
|
3747 |
-
break;
|
3748 |
-
case 'WebSite':
|
3749 |
-
break;
|
3750 |
-
|
3751 |
-
default:
|
3752 |
-
$input1 = $input1;
|
3753 |
-
break;
|
3754 |
-
}
|
3755 |
-
|
3756 |
-
if(saswp_remove_warnings($all_post_meta, 'saswp_review_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
3757 |
-
|
3758 |
-
$input1['reviewRating'] = array(
|
3759 |
-
"@type" => "Rating",
|
3760 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_review_schema_rating_'.$schema_id, 'saswp_array'),
|
3761 |
-
"bestRating" => saswp_remove_warnings($all_post_meta, 'saswp_review_schema_review_count_'.$schema_id, 'saswp_array')
|
3762 |
-
);
|
3763 |
-
}
|
3764 |
-
unset($input1['aggregateRating']);
|
3765 |
-
|
3766 |
-
}
|
3767 |
-
|
3768 |
-
if( 'local_business' === $schema_type){
|
3769 |
-
|
3770 |
-
$operation_days = explode( "rn", esc_html( stripslashes(saswp_remove_warnings($all_post_meta, 'saswp_dayofweek_'.$schema_id, 'saswp_array'))) );;
|
3771 |
-
$business_sub_name = '';
|
3772 |
-
$business_type = saswp_remove_warnings($all_post_meta, 'saswp_business_type_'.$schema_id, 'saswp_array');
|
3773 |
-
$post_specific_obj = new saswp_post_specific();
|
3774 |
-
|
3775 |
-
if(array_key_exists($business_type, $post_specific_obj->_local_sub_business)){
|
3776 |
-
|
3777 |
-
$check_business_type = $post_specific_obj->_local_sub_business[$business_type];
|
3778 |
-
|
3779 |
-
if(!empty($check_business_type)){
|
3780 |
-
|
3781 |
-
$business_sub_name = saswp_remove_warnings($all_post_meta, 'saswp_business_name_'.$schema_id, 'saswp_array');
|
3782 |
-
|
3783 |
-
}
|
3784 |
-
|
3785 |
-
}
|
3786 |
-
|
3787 |
-
if($business_sub_name){
|
3788 |
-
|
3789 |
-
$local_business = $business_sub_name;
|
3790 |
-
|
3791 |
-
}else if($business_type){
|
3792 |
-
|
3793 |
-
$local_business = $business_type;
|
3794 |
-
|
3795 |
-
}else{
|
3796 |
-
|
3797 |
-
$local_business = 'LocalBusiness';
|
3798 |
-
|
3799 |
-
}
|
3800 |
-
|
3801 |
-
$local_image = get_post_meta( get_the_ID(), 'local_business_logo_'.$schema_id.'_detail',true);
|
3802 |
-
|
3803 |
-
$input1 = array(
|
3804 |
-
'@context' => 'http://schema.org',
|
3805 |
-
'@type' => $local_business ,
|
3806 |
-
'@id' => trailingslashit(get_permalink()).'#'. strtolower($local_business),
|
3807 |
-
'name' => saswp_remove_warnings($all_post_meta, 'local_business_name_'.$schema_id, 'saswp_array'),
|
3808 |
-
'url' => saswp_remove_warnings($all_post_meta, 'local_business_name_url_'.$schema_id, 'saswp_array'),
|
3809 |
-
'description' => saswp_remove_warnings($all_post_meta, 'local_business_description_'.$schema_id, 'saswp_array'),
|
3810 |
-
'image' => array(
|
3811 |
-
'@type' => 'ImageObject',
|
3812 |
-
'url' => saswp_remove_warnings($local_image, 'thumbnail', 'saswp_string'),
|
3813 |
-
'width' => saswp_remove_warnings($local_image, 'width', 'saswp_string'),
|
3814 |
-
'height' => saswp_remove_warnings($local_image, 'height', 'saswp_string'),
|
3815 |
-
),
|
3816 |
-
'address' => array(
|
3817 |
-
"@type" => "PostalAddress",
|
3818 |
-
"streetAddress" => saswp_remove_warnings($all_post_meta, 'local_street_address_'.$schema_id, 'saswp_array'),
|
3819 |
-
"addressLocality" => saswp_remove_warnings($all_post_meta, 'local_city_'.$schema_id, 'saswp_array'),
|
3820 |
-
"addressRegion" => saswp_remove_warnings($all_post_meta, 'local_state_'.$schema_id, 'saswp_array'),
|
3821 |
-
"postalCode" => saswp_remove_warnings($all_post_meta, 'local_postal_code_'.$schema_id, 'saswp_array'),
|
3822 |
-
),
|
3823 |
-
'telephone' => saswp_remove_warnings($all_post_meta, 'local_phone_'.$schema_id, 'saswp_array'),
|
3824 |
-
'openingHours' => $operation_days,
|
3825 |
-
);
|
3826 |
-
|
3827 |
-
|
3828 |
-
|
3829 |
-
if(isset($all_post_meta['local_enable_rating_'.$schema_id]) && saswp_remove_warnings($all_post_meta, 'local_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'local_review_count_'.$schema_id, 'saswp_array')){
|
3830 |
-
|
3831 |
-
$input1['aggregateRating'] = array(
|
3832 |
-
"@type" => "AggregateRating",
|
3833 |
-
"ratingValue" => saswp_remove_warnings($all_post_meta, 'local_rating_'.$schema_id, 'saswp_array'),
|
3834 |
-
"reviewCount" => saswp_remove_warnings($all_post_meta, 'local_review_count_'.$schema_id, 'saswp_array')
|
3835 |
-
);
|
3836 |
-
}
|
3837 |
-
|
3838 |
-
if(!empty($aggregateRating)){
|
3839 |
-
$input1['aggregateRating'] = $aggregateRating;
|
3840 |
-
}
|
3841 |
-
if(!empty($extra_theme_review)){
|
3842 |
-
$input1 = array_merge($input1, $extra_theme_review);
|
3843 |
-
}
|
3844 |
-
if(isset($all_post_meta['local_price_range_'.$schema_id][0])){
|
3845 |
-
$input1['priceRange'] = esc_attr($all_post_meta['local_price_range_'.$schema_id][0]);
|
3846 |
-
}
|
3847 |
-
|
3848 |
-
if(isset($all_post_meta['local_accepts_reservations_'.$schema_id][0])){
|
3849 |
-
$input1['acceptsReservations'] = esc_attr($all_post_meta['local_price_accepts_reservations_'.$schema_id][0]);
|
3850 |
-
}
|
3851 |
-
|
3852 |
-
if(isset($all_post_meta['local_serves_cuisine_'.$schema_id][0])){
|
3853 |
-
$input1['servesCuisine'] = esc_attr($all_post_meta['local_serves_cuisine_'.$schema_id][0]);
|
3854 |
-
}
|
3855 |
-
|
3856 |
-
//social fields starts here
|
3857 |
-
|
3858 |
-
$local_social = array();
|
3859 |
-
|
3860 |
-
if(isset($all_post_meta['local_facebook_'.$schema_id][0]) && $all_post_meta['local_facebook_'.$schema_id][0] !=''){
|
3861 |
-
$local_social[] = esc_url($all_post_meta['local_facebook_'.$schema_id][0]);
|
3862 |
-
}
|
3863 |
-
if(isset($all_post_meta['local_twitter_'.$schema_id][0]) && $all_post_meta['local_twitter_'.$schema_id][0] !=''){
|
3864 |
-
$local_social[] = esc_url($all_post_meta['local_twitter_'.$schema_id][0]);
|
3865 |
-
}
|
3866 |
-
if(isset($all_post_meta['local_instagram_'.$schema_id][0]) && $all_post_meta['local_instagram_'.$schema_id][0] !=''){
|
3867 |
-
$local_social[] = esc_url($all_post_meta['local_instagram_'.$schema_id][0]);
|
3868 |
-
}
|
3869 |
-
if(isset($all_post_meta['local_pinterest_'.$schema_id][0]) && $all_post_meta['local_pinterest_'.$schema_id][0] !=''){
|
3870 |
-
$local_social[] = esc_url($all_post_meta['local_pinterest_'.$schema_id][0]);
|
3871 |
-
}
|
3872 |
-
if(isset($all_post_meta['local_linkedin_'.$schema_id][0]) && $all_post_meta['local_linkedin_'.$schema_id][0] !=''){
|
3873 |
-
$local_social[] = esc_url($all_post_meta['local_linkedin_'.$schema_id][0]);
|
3874 |
-
}
|
3875 |
-
if(isset($all_post_meta['local_soundcloud_'.$schema_id][0]) && $all_post_meta['local_soundcloud_'.$schema_id][0] !=''){
|
3876 |
-
$local_social[] = esc_url($all_post_meta['local_soundcloud_'.$schema_id][0]);
|
3877 |
-
}
|
3878 |
-
if(isset($all_post_meta['local_tumblr_'.$schema_id][0]) && $all_post_meta['local_tumblr_'.$schema_id][0] !=''){
|
3879 |
-
$local_social[] = esc_url($all_post_meta['local_tumblr_'.$schema_id][0]);
|
3880 |
-
}
|
3881 |
-
if(isset($all_post_meta['local_youtube_'.$schema_id][0]) && $all_post_meta['local_youtube_'.$schema_id][0] !=''){
|
3882 |
-
$local_social[] = esc_url($all_post_meta['local_youtube_'.$schema_id][0]);
|
3883 |
-
}
|
3884 |
-
|
3885 |
-
if(!empty($local_social)){
|
3886 |
-
$input1['sameAs'] = $local_social;
|
3887 |
-
}
|
3888 |
-
//social fields ends here
|
3889 |
-
|
3890 |
-
if(isset($all_post_meta['local_menu_'.$schema_id][0])){
|
3891 |
-
$input1['hasMenu'] = esc_url($all_post_meta['local_menu_'.$schema_id][0]);
|
3892 |
-
}
|
3893 |
-
|
3894 |
-
if(isset($all_post_meta['local_hasmap_'.$schema_id][0])){
|
3895 |
-
$input1['hasMap'] = esc_url($all_post_meta['local_hasmap_'.$schema_id][0]);
|
3896 |
-
}
|
3897 |
-
|
3898 |
-
if(isset($all_post_meta['local_latitude_'.$schema_id][0]) && isset($all_post_meta['local_longitude_'.$schema_id][0])){
|
3899 |
-
|
3900 |
-
$input1['geo']['@type'] = 'GeoCoordinates';
|
3901 |
-
$input1['geo']['latitude'] = $all_post_meta['local_latitude_'.$schema_id][0];
|
3902 |
-
$input1['geo']['longitude'] = $all_post_meta['local_longitude_'.$schema_id][0];
|
3903 |
-
|
3904 |
-
}
|
3905 |
-
|
3906 |
-
|
3907 |
-
}
|
3908 |
-
|
3909 |
-
|
3910 |
-
if($schema_type != 'Review'){
|
3911 |
-
|
3912 |
-
//kk star rating
|
3913 |
-
|
3914 |
-
$kkstar_aggregateRating = saswp_extract_kk_star_ratings();
|
3915 |
-
|
3916 |
-
if(!empty($kkstar_aggregateRating)){
|
3917 |
-
$input1['aggregateRating'] = $kkstar_aggregateRating;
|
3918 |
-
}
|
3919 |
-
|
3920 |
-
//wp post-rating star rating
|
3921 |
-
|
3922 |
-
$wp_post_rating_ar = saswp_extract_wp_post_ratings();
|
3923 |
-
|
3924 |
-
if(!empty($wp_post_rating_ar)){
|
3925 |
-
$input1['aggregateRating'] = $wp_post_rating_ar;
|
3926 |
-
}
|
3927 |
-
|
3928 |
-
|
3929 |
-
}
|
3930 |
-
|
3931 |
-
|
3932 |
-
if( !empty($input1) && !isset($input1['image'])){
|
3933 |
-
|
3934 |
-
$service_object = new saswp_output_service();
|
3935 |
-
$input2 = $service_object->saswp_get_fetaure_image();
|
3936 |
-
|
3937 |
-
if(!empty($input2)){
|
3938 |
-
|
3939 |
-
$input1 = array_merge($input1,$input2);
|
3940 |
-
|
3941 |
-
}
|
3942 |
-
}
|
3943 |
-
|
3944 |
-
$input1 = apply_filters('saswp_modify_woocommerce_membership_schema', $input1);
|
3945 |
-
|
3946 |
-
if(!empty($input1)){
|
3947 |
-
|
3948 |
-
$all_schema_output[] = $input1;
|
3949 |
-
|
3950 |
-
}
|
3951 |
-
}
|
3952 |
-
}
|
3953 |
-
}
|
3954 |
-
|
3955 |
-
return apply_filters('saswp_modify_schema_output', $all_schema_output);
|
3956 |
-
}
|
3957 |
-
|
3958 |
/**
|
3959 |
* Function generates breadcrumbs schema markup
|
3960 |
* @global type $sd_data
|
@@ -3974,7 +1802,7 @@ function saswp_schema_breadcrumb_output(){
|
|
3974 |
if(!empty($bread_crumb_list)){
|
3975 |
|
3976 |
$input = array(
|
3977 |
-
'@context' =>
|
3978 |
'@type' => 'BreadcrumbList' ,
|
3979 |
'@id' => trailingslashit(get_permalink()).'#breadcrumb' ,
|
3980 |
'itemListElement' => $bread_crumb_list,
|
@@ -4007,7 +1835,7 @@ function saswp_kb_website_output(){
|
|
4007 |
if($site_url && $site_name){
|
4008 |
|
4009 |
$input = array(
|
4010 |
-
'@context' =>
|
4011 |
'@type' => 'WebSite',
|
4012 |
'@id' => $site_url.'#website',
|
4013 |
'headline' => $site_name,
|
@@ -4124,7 +1952,7 @@ function saswp_archive_output(){
|
|
4124 |
$category_headline = single_cat_title( '', false ) . __(' Category', 'schema-wp');
|
4125 |
$input = array
|
4126 |
(
|
4127 |
-
'@context' =>
|
4128 |
'@type' => "CollectionPage",
|
4129 |
'headline' => esc_attr($category_headline),
|
4130 |
'description' => strip_tags(category_description()),
|
@@ -4218,7 +2046,7 @@ function saswp_about_page_output(){
|
|
4218 |
$publisher = $service_object->saswp_get_publisher();
|
4219 |
|
4220 |
$input = array(
|
4221 |
-
"@context" =>
|
4222 |
"@type" => "AboutPage",
|
4223 |
"mainEntityOfPage" => array(
|
4224 |
"@type" => "WebPage",
|
@@ -4263,7 +2091,7 @@ function saswp_contact_page_output(){
|
|
4263 |
|
4264 |
$input = array(
|
4265 |
|
4266 |
-
"@context" =>
|
4267 |
"@type" => "ContactPage",
|
4268 |
"mainEntityOfPage" => array(
|
4269 |
"@type" => "WebPage",
|
@@ -4320,7 +2148,7 @@ function saswp_site_navigation_output(){
|
|
4320 |
foreach($menuItems as $items){
|
4321 |
|
4322 |
$navObj[] = array(
|
4323 |
-
"@context" =>
|
4324 |
"@type" => "SiteNavigationElement",
|
4325 |
"@id" => trailingslashit(get_home_url()).'#'.$menu_name->name,
|
4326 |
"name" => esc_attr($items->title),
|
@@ -4333,7 +2161,7 @@ function saswp_site_navigation_output(){
|
|
4333 |
|
4334 |
if($navObj){
|
4335 |
|
4336 |
-
$input['@context'] =
|
4337 |
$input['@graph'] = $navObj;
|
4338 |
|
4339 |
}
|
@@ -4369,7 +2197,7 @@ function saswp_site_navigation_fallback(){
|
|
4369 |
foreach($menuItems as $items){
|
4370 |
|
4371 |
$navObj[] = array(
|
4372 |
-
"@context" =>
|
4373 |
"@type" => "SiteNavigationElement",
|
4374 |
"@id" => trailingslashit(get_home_url()).$type,
|
4375 |
"name" => esc_attr($items->title),
|
@@ -4387,7 +2215,7 @@ function saswp_site_navigation_fallback(){
|
|
4387 |
foreach($menuItems as $items){
|
4388 |
|
4389 |
$navObj[] = array(
|
4390 |
-
"@context" =>
|
4391 |
"@type" => "SiteNavigationElement",
|
4392 |
"@id" => trailingslashit(get_home_url()).$type,
|
4393 |
"name" => esc_attr($items->title),
|
@@ -4410,7 +2238,7 @@ function saswp_site_navigation_fallback(){
|
|
4410 |
|
4411 |
if($navObj){
|
4412 |
|
4413 |
-
$input['@context'] =
|
4414 |
$input['@graph'] = $navObj;
|
4415 |
|
4416 |
}
|
120 |
|
121 |
|
122 |
$input = array(
|
123 |
+
'@context' =>saswp_context_url(),
|
124 |
'@type' => 'Organization',
|
125 |
'@id' => $site_url.'#Organization',
|
126 |
'name' => saswp_remove_warnings($sd_data, 'sd_name', 'saswp_string'),
|
169 |
}
|
170 |
|
171 |
$input = array(
|
172 |
+
'@context' => saswp_context_url(),
|
173 |
'@type' => esc_attr($sd_data['saswp_kb_type']),
|
174 |
'name' => esc_attr($sd_data['sd-person-name']),
|
175 |
'url' => esc_url($sd_data['sd-person-url']),
|
298 |
|
299 |
if( 'VideoGame' === $schema_type){
|
300 |
|
301 |
+
$input1['@context'] = saswp_context_url();
|
302 |
$input1['@type'] = 'VideoGame';
|
303 |
$input1['@id'] = trailingslashit(get_permalink()).'#VideoGame';
|
304 |
$input1['author']['@type'] = 'Organization';
|
313 |
|
314 |
if( 'MedicalCondition' === $schema_type){
|
315 |
|
316 |
+
$input1['@context'] = saswp_context_url();
|
317 |
$input1['@type'] = 'MedicalCondition';
|
318 |
$input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
|
319 |
$input1['associatedAnatomy']['@type'] = 'AnatomicalStructure';
|
328 |
|
329 |
if( 'TVSeries' === $schema_type){
|
330 |
|
331 |
+
$input1['@context'] = saswp_context_url();
|
332 |
$input1['@type'] = 'TVSeries';
|
333 |
$input1['@id'] = trailingslashit(get_permalink()).'#TVSeries';
|
334 |
$input1['author']['@type'] = 'Person';
|
342 |
|
343 |
if( 'HowTo' === $schema_type){
|
344 |
|
345 |
+
$input1['@context'] = saswp_context_url();
|
346 |
$input1['@type'] = 'HowTo';
|
347 |
$input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
|
348 |
$input1['estimatedCost']['@type'] = 'MonetaryAmount';
|
356 |
|
357 |
if( 'Trip' === $schema_type){
|
358 |
|
359 |
+
$input1['@context'] = saswp_context_url();
|
360 |
$input1['@type'] = 'Trip';
|
361 |
$input1['@id'] = trailingslashit(get_permalink()).'#Trip';
|
362 |
|
369 |
|
370 |
if( 'SingleFamilyResidence' === $schema_type){
|
371 |
|
372 |
+
$input1['@context'] = saswp_context_url();
|
373 |
$input1['@type'] = 'SingleFamilyResidence';
|
374 |
$input1['@id'] = trailingslashit(get_permalink()).'#SingleFamilyResidence';
|
375 |
$input1['address']['@type'] = 'PostalAddress';
|
383 |
|
384 |
if( 'House' === $schema_type){
|
385 |
|
386 |
+
$input1['@context'] = saswp_context_url();
|
387 |
$input1['@type'] = 'House';
|
388 |
$input1['@id'] = trailingslashit(get_permalink()).'#House';
|
389 |
$input1['address']['@type'] = 'PostalAddress';
|
397 |
|
398 |
if( 'Apartment' === $schema_type){
|
399 |
|
400 |
+
$input1['@context'] = saswp_context_url();
|
401 |
$input1['@type'] = 'Apartment';
|
402 |
$input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
|
403 |
$input1['address']['@type'] = 'PostalAddress';
|
411 |
|
412 |
if( 'TouristDestination' === $schema_type){
|
413 |
|
414 |
+
$input1['@context'] = saswp_context_url();
|
415 |
$input1['@type'] = 'TouristDestination';
|
416 |
$input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
|
417 |
$input1['address']['@type'] = 'PostalAddress';
|
425 |
|
426 |
if( 'TouristAttraction' === $schema_type){
|
427 |
|
428 |
+
$input1['@context'] = saswp_context_url();
|
429 |
$input1['@type'] = 'TouristAttraction';
|
430 |
$input1['@id'] = trailingslashit(get_permalink()).'#TouristAttraction';
|
431 |
$input1['address']['@type'] = 'PostalAddress';
|
439 |
|
440 |
if( 'LandmarksOrHistoricalBuildings' === $schema_type){
|
441 |
|
442 |
+
$input1['@context'] = saswp_context_url();
|
443 |
$input1['@type'] = 'LandmarksOrHistoricalBuildings';
|
444 |
$input1['@id'] = trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings';
|
445 |
$input1['address']['@type'] = 'PostalAddress';
|
453 |
|
454 |
if( 'HinduTemple' === $schema_type){
|
455 |
|
456 |
+
$input1['@context'] = saswp_context_url();
|
457 |
$input1['@type'] = 'HinduTemple';
|
458 |
$input1['@id'] = trailingslashit(get_permalink()).'#HinduTemple';
|
459 |
$input1['address']['@type'] = 'PostalAddress';
|
467 |
|
468 |
if( 'Church' === $schema_type){
|
469 |
|
470 |
+
$input1['@context'] = saswp_context_url();
|
471 |
$input1['@type'] = 'Church';
|
472 |
$input1['@id'] = trailingslashit(get_permalink()).'#Church';
|
473 |
$input1['address']['@type'] = 'PostalAddress';
|
481 |
|
482 |
if( 'Mosque' === $schema_type){
|
483 |
|
484 |
+
$input1['@context'] = saswp_context_url();
|
485 |
$input1['@type'] = 'Mosque';
|
486 |
$input1['@id'] = trailingslashit(get_permalink()).'#Mosque';
|
487 |
$input1['address']['@type'] = 'PostalAddress';
|
495 |
|
496 |
if( 'JobPosting' === $schema_type){
|
497 |
|
498 |
+
$input1['@context'] = saswp_context_url();
|
499 |
$input1['@type'] = 'JobPosting';
|
500 |
$input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
|
501 |
$input1['hiringOrganization']['@type'] = 'Organization';
|
513 |
|
514 |
if( 'Person' === $schema_type){
|
515 |
|
516 |
+
$input1['@context'] = saswp_context_url();
|
517 |
$input1['@type'] = 'Person';
|
518 |
$input1['@id'] = trailingslashit(get_permalink()).'#Person';
|
519 |
$input1['address']['@type'] = 'PostalAddress';
|
534 |
}
|
535 |
|
536 |
$input1 = array(
|
537 |
+
'@context' => saswp_context_url(),
|
538 |
'@type' => $schema_type ,
|
539 |
'@id' => trailingslashit(get_permalink()).'#course',
|
540 |
'name' => saswp_get_the_title(),
|
570 |
|
571 |
if(isset($sd_data['saswp-bbpress']) && $sd_data['saswp-bbpress'] == 1 && is_plugin_active('bbpress/bbpress.php')){
|
572 |
$input1 = array(
|
573 |
+
'@context' => saswp_context_url(),
|
574 |
'@type' => 'DiscussionForumPosting' ,
|
575 |
'@id' => bbp_get_topic_permalink().'#discussionforumposting',
|
576 |
'mainEntityOfPage' => bbp_get_topic_permalink(),
|
584 |
'author' => saswp_get_author_details(),
|
585 |
'interactionStatistic' => array(
|
586 |
'@type' => 'InteractionCounter',
|
587 |
+
'interactionType' => saswp_context_url().'/CommentAction',
|
588 |
'userInteractionCount' => bbp_get_topic_reply_count(),
|
589 |
)
|
590 |
);
|
592 |
}else{
|
593 |
|
594 |
$input1 = array(
|
595 |
+
'@context' => saswp_context_url(),
|
596 |
'@type' => 'DiscussionForumPosting' ,
|
597 |
'@id' => trailingslashit(get_permalink()).'#blogposting',
|
598 |
'url' => trailingslashit(get_permalink()),
|
631 |
if( 'Blogposting' === $schema_type){
|
632 |
|
633 |
$input1 = array(
|
634 |
+
'@context' => saswp_context_url(),
|
635 |
'@type' => 'BlogPosting' ,
|
636 |
'@id' => trailingslashit(get_permalink()).'#blogposting',
|
637 |
'mainEntityOfPage' => trailingslashit(get_permalink()),
|
674 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_audio_schema_details');
|
675 |
|
676 |
$input1 = array(
|
677 |
+
'@context' => saswp_context_url(),
|
678 |
'@type' => $schema_type ,
|
679 |
'@id' => trailingslashit(get_permalink()).'#audioobject',
|
680 |
'name' => saswp_remove_warnings($schema_data, 'saswp_audio_schema_name', 'saswp_string'),
|
731 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_event_schema_details');
|
732 |
|
733 |
$input1 = array(
|
734 |
+
'@context' => saswp_context_url(),
|
735 |
'@type' => $schema_type ,
|
736 |
'@id' => trailingslashit(get_permalink()).'#event',
|
737 |
'name' => saswp_remove_warnings($schema_data, 'saswp_event_schema_name', 'saswp_string'),
|
796 |
$schema_data = saswp_get_schema_data($schema_post_id, 'saswp_software_schema_details');
|
797 |
|
798 |
$input1 = array(
|
799 |
+
'@context' => saswp_context_url(),
|
800 |
'@type' => $schema_type ,
|
801 |
'@id' => trailingslashit(get_permalink()).'#softwareapplication',
|
802 |
'name' => saswp_remove_warnings($schema_data, 'saswp_software_schema_name', 'saswp_string'),
|
930 |
}
|
931 |
|
932 |
$input1 = array(
|
933 |
+
'@context' => saswp_context_url(),
|
934 |
'@type' => $schema_type ,
|
935 |
'@id' => trailingslashit(get_permalink()).'#recipe',
|
936 |
'url' => trailingslashit(get_permalink()),
|
1004 |
if((isset($sd_data['saswp-woocommerce']) && $sd_data['saswp-woocommerce'] == 1) && !empty($product_details)){
|
1005 |
|
1006 |
$input1 = array(
|
1007 |
+
'@context' => saswp_context_url(),
|
1008 |
'@type' => 'Product',
|
1009 |
'@id' => trailingslashit(get_permalink()).'#product',
|
1010 |
'url' => trailingslashit(get_permalink()),
|
1076 |
}
|
1077 |
}else{
|
1078 |
|
1079 |
+
$input1['@context'] = saswp_context_url();
|
1080 |
+
$input1['@type'] = 'Product';
|
1081 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Product';
|
1082 |
+
|
1083 |
+
if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
|
1084 |
+
$service = new saswp_output_service();
|
1085 |
+
$input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
|
1086 |
+
}
|
1087 |
|
1088 |
}
|
1089 |
|
1102 |
}
|
1103 |
$word_count = saswp_reading_time_and_word_count();
|
1104 |
$input1 = array(
|
1105 |
+
'@context' => saswp_context_url(),
|
1106 |
'@type' => $schema_type ,
|
1107 |
'@id' => trailingslashit(get_permalink()).'#newsarticle',
|
1108 |
'url' => trailingslashit(get_permalink()),
|
1158 |
$service_offer_arr = explode(',', $service_offer_str);
|
1159 |
|
1160 |
$input1 = array(
|
1161 |
+
'@context' => saswp_context_url(),
|
1162 |
'@type' => $schema_type ,
|
1163 |
'@id' => trailingslashit(get_permalink()).'#service',
|
1164 |
'name' => saswp_remove_warnings($schema_data, 'saswp_service_schema_name', 'saswp_string'),
|
1246 |
remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
|
1247 |
|
1248 |
$input1 = array(
|
1249 |
+
'@context' => saswp_context_url(),
|
1250 |
'@type' => 'Review',
|
1251 |
'@id' => trailingslashit(get_permalink()).'#review',
|
1252 |
'dateCreated' => esc_html($date),
|
1298 |
|
1299 |
}
|
1300 |
|
1301 |
+
$input1['@context'] = saswp_context_url();
|
1302 |
$input1['@type'] = esc_attr($schema_type);
|
1303 |
$input1['url'] = trailingslashit(get_permalink());
|
1304 |
$input1['datePublished'] = esc_html($date);
|
1511 |
$description = get_bloginfo('description');
|
1512 |
}
|
1513 |
$input1 = array(
|
1514 |
+
'@context' => saswp_context_url(),
|
1515 |
'@type' => 'VideoObject',
|
1516 |
'@id' => trailingslashit(get_permalink()).'#videoobject',
|
1517 |
'url' => trailingslashit(get_permalink()),
|
1571 |
}
|
1572 |
|
1573 |
$input1 = array(
|
1574 |
+
'@context' => saswp_context_url(),
|
1575 |
'@type' => esc_attr($local_business),
|
1576 |
'@id' => trailingslashit(get_permalink()).'#'. strtolower(esc_attr($local_business)),
|
1577 |
'name' => saswp_remove_warnings($business_details, 'local_business_name', 'saswp_string'),
|
1783 |
|
1784 |
return apply_filters('saswp_modify_schema_output', $all_schema_output);
|
1785 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1786 |
/**
|
1787 |
* Function generates breadcrumbs schema markup
|
1788 |
* @global type $sd_data
|
1802 |
if(!empty($bread_crumb_list)){
|
1803 |
|
1804 |
$input = array(
|
1805 |
+
'@context' => saswp_context_url(),
|
1806 |
'@type' => 'BreadcrumbList' ,
|
1807 |
'@id' => trailingslashit(get_permalink()).'#breadcrumb' ,
|
1808 |
'itemListElement' => $bread_crumb_list,
|
1835 |
if($site_url && $site_name){
|
1836 |
|
1837 |
$input = array(
|
1838 |
+
'@context' => saswp_context_url(),
|
1839 |
'@type' => 'WebSite',
|
1840 |
'@id' => $site_url.'#website',
|
1841 |
'headline' => $site_name,
|
1952 |
$category_headline = single_cat_title( '', false ) . __(' Category', 'schema-wp');
|
1953 |
$input = array
|
1954 |
(
|
1955 |
+
'@context' => saswp_context_url(),
|
1956 |
'@type' => "CollectionPage",
|
1957 |
'headline' => esc_attr($category_headline),
|
1958 |
'description' => strip_tags(category_description()),
|
2046 |
$publisher = $service_object->saswp_get_publisher();
|
2047 |
|
2048 |
$input = array(
|
2049 |
+
"@context" => saswp_context_url(),
|
2050 |
"@type" => "AboutPage",
|
2051 |
"mainEntityOfPage" => array(
|
2052 |
"@type" => "WebPage",
|
2091 |
|
2092 |
$input = array(
|
2093 |
|
2094 |
+
"@context" => saswp_context_url(),
|
2095 |
"@type" => "ContactPage",
|
2096 |
"mainEntityOfPage" => array(
|
2097 |
"@type" => "WebPage",
|
2148 |
foreach($menuItems as $items){
|
2149 |
|
2150 |
$navObj[] = array(
|
2151 |
+
"@context" => saswp_context_url(),
|
2152 |
"@type" => "SiteNavigationElement",
|
2153 |
"@id" => trailingslashit(get_home_url()).'#'.$menu_name->name,
|
2154 |
"name" => esc_attr($items->title),
|
2161 |
|
2162 |
if($navObj){
|
2163 |
|
2164 |
+
$input['@context'] = saswp_context_url();
|
2165 |
$input['@graph'] = $navObj;
|
2166 |
|
2167 |
}
|
2197 |
foreach($menuItems as $items){
|
2198 |
|
2199 |
$navObj[] = array(
|
2200 |
+
"@context" => saswp_context_url(),
|
2201 |
"@type" => "SiteNavigationElement",
|
2202 |
"@id" => trailingslashit(get_home_url()).$type,
|
2203 |
"name" => esc_attr($items->title),
|
2215 |
foreach($menuItems as $items){
|
2216 |
|
2217 |
$navObj[] = array(
|
2218 |
+
"@context" => saswp_context_url(),
|
2219 |
"@type" => "SiteNavigationElement",
|
2220 |
"@id" => trailingslashit(get_home_url()).$type,
|
2221 |
"name" => esc_attr($items->title),
|
2238 |
|
2239 |
if($navObj){
|
2240 |
|
2241 |
+
$input['@context'] = saswp_context_url();
|
2242 |
$input['@graph'] = $navObj;
|
2243 |
|
2244 |
}
|
output/output_post_specific.php
ADDED
@@ -0,0 +1,2246 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Output Page
|
4 |
+
*
|
5 |
+
* @author Magazine3
|
6 |
+
* @category Frontend
|
7 |
+
* @path output_post_specific/output_post_specific
|
8 |
+
* @version 1.0
|
9 |
+
*/
|
10 |
+
if (! defined('ABSPATH') ) exit;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Function generates json markup for the all added schema type in the current post metabox
|
14 |
+
* @global type $post
|
15 |
+
* @global type $sd_data
|
16 |
+
* @return type json
|
17 |
+
*/
|
18 |
+
function saswp_post_specific_schema_output() {
|
19 |
+
|
20 |
+
global $post;
|
21 |
+
global $sd_data;
|
22 |
+
|
23 |
+
$logo = '';
|
24 |
+
$height = '';
|
25 |
+
$width = '';
|
26 |
+
$site_name = '';
|
27 |
+
|
28 |
+
$service_object = new saswp_output_service();
|
29 |
+
$default_logo = $service_object->saswp_get_publisher(true);
|
30 |
+
|
31 |
+
if(!empty($default_logo)){
|
32 |
+
|
33 |
+
$logo = $default_logo['url'];
|
34 |
+
$height = $default_logo['height'];
|
35 |
+
$width = $default_logo['width'];
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
if(isset($sd_data['sd_name']) && $sd_data['sd_name'] !=''){
|
40 |
+
$site_name = $sd_data['sd_name'];
|
41 |
+
}else{
|
42 |
+
$site_name = get_bloginfo();
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
$all_schema_output = array();
|
47 |
+
$all_schemas = json_decode(get_transient('saswp_transient_schema_ids'), true);
|
48 |
+
|
49 |
+
if(!$all_schemas){
|
50 |
+
|
51 |
+
$all_schemas = saswp_get_saved_schema_ids();
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
$schema_enable = get_post_meta($post->ID, 'saswp_enable_disable_schema', true);
|
56 |
+
|
57 |
+
if($all_schemas){
|
58 |
+
|
59 |
+
foreach($all_schemas as $schema){
|
60 |
+
|
61 |
+
$input1 = array();
|
62 |
+
|
63 |
+
$schema_id = $schema;
|
64 |
+
$schema_type = esc_sql ( get_post_meta($schema_id, 'schema_type', true) );
|
65 |
+
$schema_post_id = $post->ID;
|
66 |
+
$all_post_meta = esc_sql ( get_post_meta($schema_post_id, $key='', true) );
|
67 |
+
|
68 |
+
if(is_singular() && isset($schema_enable[$schema_id]) && $schema_enable[$schema_id] == 1 ){
|
69 |
+
|
70 |
+
$saswp_review_details = esc_sql ( get_post_meta(get_the_ID(), 'saswp_review_details', true));
|
71 |
+
|
72 |
+
$aggregateRating = array();
|
73 |
+
$saswp_over_all_rating ='';
|
74 |
+
|
75 |
+
if(isset($saswp_review_details['saswp-review-item-over-all'])){
|
76 |
+
|
77 |
+
$saswp_over_all_rating = $saswp_review_details['saswp-review-item-over-all'];
|
78 |
+
|
79 |
+
}
|
80 |
+
$saswp_review_item_enable = 0;
|
81 |
+
|
82 |
+
if(isset($saswp_review_details['saswp-review-item-enable'])){
|
83 |
+
|
84 |
+
$saswp_review_item_enable = $saswp_review_details['saswp-review-item-enable'];
|
85 |
+
|
86 |
+
}
|
87 |
+
$saswp_review_count = "1";
|
88 |
+
|
89 |
+
|
90 |
+
if($saswp_over_all_rating && $saswp_review_count && $saswp_review_item_enable ==1 && isset($sd_data['saswp-review-module']) && $sd_data['saswp-review-module'] ==1){
|
91 |
+
|
92 |
+
$aggregateRating = array(
|
93 |
+
"@type" => "AggregateRating",
|
94 |
+
"ratingValue" => esc_attr($saswp_over_all_rating),
|
95 |
+
"reviewCount" => esc_attr($saswp_review_count)
|
96 |
+
);
|
97 |
+
}
|
98 |
+
|
99 |
+
$extra_theme_review = array();
|
100 |
+
$service_object = new saswp_output_service();
|
101 |
+
$extra_theme_review = $service_object->saswp_extra_theme_review_details(get_the_ID());
|
102 |
+
|
103 |
+
|
104 |
+
if( 'Person' === $schema_type){
|
105 |
+
|
106 |
+
$image = get_post_meta( get_the_ID(), 'saswp_trip_schema_image_'.$schema_id.'_detail',true);
|
107 |
+
|
108 |
+
$input1['@context'] = saswp_context_url();
|
109 |
+
$input1['@type'] = 'Person';
|
110 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Person';
|
111 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_url_'.$schema_id, 'saswp_array');
|
112 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_name_'.$schema_id, 'saswp_array');
|
113 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_description_'.$schema_id, 'saswp_array');
|
114 |
+
$input1['gender'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_gender_'.$schema_id, 'saswp_array');
|
115 |
+
$input1['birthDate'] = isset($all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0])&& $all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0] !='' ? date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_person_schema_date_of_birth_'.$schema_id][0])):'';
|
116 |
+
$input1['nationality'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_nationality_'.$schema_id, 'saswp_array');
|
117 |
+
$input1['jobTitle'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_job_title_'.$schema_id, 'saswp_array');
|
118 |
+
|
119 |
+
$input1['address']['@type'] = 'PostalAddress';
|
120 |
+
$input1['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_street_address_'.$schema_id, 'saswp_array');
|
121 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_country_'.$schema_id, 'saswp_array');
|
122 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_locality_'.$schema_id, 'saswp_array');
|
123 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_region_'.$schema_id, 'saswp_array');
|
124 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_postal_code_'.$schema_id, 'saswp_array');
|
125 |
+
|
126 |
+
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_telephone_'.$schema_id, 'saswp_array');
|
127 |
+
$input1['email'] = saswp_remove_warnings($all_post_meta, 'saswp_person_schema_email_'.$schema_id, 'saswp_array');
|
128 |
+
|
129 |
+
if(!(empty($image))){
|
130 |
+
|
131 |
+
$input1['image']['@type'] = 'ImageObject';
|
132 |
+
$input1['image']['url'] = isset($image['thumbnail']) ? esc_url($image['thumbnail']):'';
|
133 |
+
$input1['image']['height'] = isset($image['width']) ? esc_attr($image['width']) :'';
|
134 |
+
$input1['image']['width'] = isset($image['height']) ? esc_attr($image['height']) :'';
|
135 |
+
|
136 |
+
}
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
if( 'Trip' === $schema_type){
|
141 |
+
|
142 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_trip_schema_image_'.$schema_id.'_detail',true);
|
143 |
+
|
144 |
+
|
145 |
+
$input1['@context'] = saswp_context_url();
|
146 |
+
$input1['@type'] = 'Trip';
|
147 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Trip';
|
148 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_url_'.$schema_id, 'saswp_array');
|
149 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_name_'.$schema_id, 'saswp_array');
|
150 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_trip_schema_description_'.$schema_id, 'saswp_array');
|
151 |
+
|
152 |
+
if(!(empty($howto_image))){
|
153 |
+
|
154 |
+
$input1['image']['@type'] = 'ImageObject';
|
155 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
156 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
157 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
158 |
+
|
159 |
+
}
|
160 |
+
|
161 |
+
|
162 |
+
$itinerary = esc_sql ( get_post_meta($schema_post_id, 'trip_itinerary_'.$schema_id, true) );
|
163 |
+
|
164 |
+
$itinerary_arr = array();
|
165 |
+
|
166 |
+
if(!empty($itinerary)){
|
167 |
+
|
168 |
+
foreach($itinerary as $val){
|
169 |
+
|
170 |
+
$supply_data = array();
|
171 |
+
$supply_data['@type'] = $val['saswp_trip_itinerary_type'];
|
172 |
+
$supply_data['name'] = $val['saswp_trip_itinerary_name'];
|
173 |
+
$supply_data['description'] = $val['saswp_trip_itinerary_description'];
|
174 |
+
$supply_data['url'] = $val['saswp_trip_itinerary_url'];
|
175 |
+
|
176 |
+
|
177 |
+
$itinerary_arr[] = $supply_data;
|
178 |
+
}
|
179 |
+
$input1['itinerary'] = $itinerary_arr;
|
180 |
+
}
|
181 |
+
|
182 |
+
}
|
183 |
+
|
184 |
+
if( 'FAQ' === $schema_type){
|
185 |
+
|
186 |
+
$input1['@context'] = saswp_context_url();
|
187 |
+
$input1['@type'] = 'FAQPage';
|
188 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#FAQPage';
|
189 |
+
|
190 |
+
$faq_question = esc_sql ( get_post_meta($schema_post_id, 'faq_question_'.$schema_id, true) );
|
191 |
+
|
192 |
+
$faq_question_arr = array();
|
193 |
+
|
194 |
+
if(!empty($faq_question)){
|
195 |
+
|
196 |
+
foreach($faq_question as $val){
|
197 |
+
|
198 |
+
$supply_data = array();
|
199 |
+
$supply_data['@type'] = 'Question';
|
200 |
+
$supply_data['name'] = $val['saswp_faq_question_name'];
|
201 |
+
$supply_data['acceptedAnswer']['@type'] = 'Answer';
|
202 |
+
$supply_data['acceptedAnswer']['text'] = $val['saswp_faq_question_answer'];
|
203 |
+
|
204 |
+
$faq_question_arr[] = $supply_data;
|
205 |
+
}
|
206 |
+
$input1['mainEntity'] = $faq_question_arr;
|
207 |
+
}
|
208 |
+
|
209 |
+
}
|
210 |
+
|
211 |
+
if( 'JobPosting' === $schema_type){
|
212 |
+
|
213 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
|
214 |
+
|
215 |
+
|
216 |
+
$input1['@context'] = saswp_context_url();
|
217 |
+
$input1['@type'] = 'JobPosting';
|
218 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
|
219 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_url_'.$schema_id, 'saswp_array');
|
220 |
+
$input1['title'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_title_'.$schema_id, 'saswp_array');
|
221 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_description_'.$schema_id, 'saswp_array');
|
222 |
+
$input1['datePosted'] = isset($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_dateposted_'.$schema_id][0])):'';
|
223 |
+
$input1['validThrough'] = isset($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_jobposting_schema_validthrough_'.$schema_id][0])):'';
|
224 |
+
$input1['employmentType'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_employment_type_'.$schema_id, 'saswp_array');
|
225 |
+
|
226 |
+
$input1['hiringOrganization']['@type'] = 'Organization';
|
227 |
+
$input1['hiringOrganization']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_ho_name_'.$schema_id, 'saswp_array');
|
228 |
+
$input1['hiringOrganization']['sameAs'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_ho_url_'.$schema_id, 'saswp_array');
|
229 |
+
|
230 |
+
if(!(empty($howto_image))){
|
231 |
+
|
232 |
+
$input1['hiringOrganization']['logo']['@type'] = 'ImageObject';
|
233 |
+
$input1['hiringOrganization']['logo']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
234 |
+
$input1['hiringOrganization']['logo']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
235 |
+
$input1['hiringOrganization']['logo']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
236 |
+
|
237 |
+
}
|
238 |
+
|
239 |
+
$input1['jobLocation']['@type'] = 'Place';
|
240 |
+
$input1['jobLocation']['address']['@type'] = 'PostalAddress';
|
241 |
+
$input1['jobLocation']['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_street_address_'.$schema_id, 'saswp_array');
|
242 |
+
$input1['jobLocation']['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_locality_'.$schema_id, 'saswp_array');
|
243 |
+
$input1['jobLocation']['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_region_'.$schema_id, 'saswp_array');
|
244 |
+
$input1['jobLocation']['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_country_'.$schema_id, 'saswp_array');
|
245 |
+
$input1['jobLocation']['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_postalcode_'.$schema_id, 'saswp_array');
|
246 |
+
|
247 |
+
|
248 |
+
$input1['baseSalary']['@type'] = 'MonetaryAmount';
|
249 |
+
$input1['baseSalary']['currency'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_currency_'.$schema_id, 'saswp_array');
|
250 |
+
$input1['baseSalary']['value']['@type'] = 'QuantitativeValue';
|
251 |
+
$input1['baseSalary']['value']['value'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_value_'.$schema_id, 'saswp_array');
|
252 |
+
$input1['baseSalary']['value']['unitText'] = saswp_remove_warnings($all_post_meta, 'saswp_jobposting_schema_bs_unittext_'.$schema_id, 'saswp_array');
|
253 |
+
|
254 |
+
}
|
255 |
+
|
256 |
+
if( 'Mosque' === $schema_type){
|
257 |
+
|
258 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_mosque_schema_image_'.$schema_id.'_detail',true);
|
259 |
+
|
260 |
+
|
261 |
+
$input1['@context'] = saswp_context_url();
|
262 |
+
$input1['@type'] = 'Mosque';
|
263 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Mosque';
|
264 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_url_'.$schema_id, 'saswp_array');
|
265 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_name_'.$schema_id, 'saswp_array');
|
266 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_description_'.$schema_id, 'saswp_array');
|
267 |
+
|
268 |
+
if(!(empty($howto_image))){
|
269 |
+
|
270 |
+
$input1['image']['@type'] = 'ImageObject';
|
271 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
272 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
273 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
274 |
+
|
275 |
+
}
|
276 |
+
|
277 |
+
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_is_accesible_free_'.$schema_id, 'saswp_array');
|
278 |
+
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
279 |
+
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_hasmap_'.$schema_id, 'saswp_array');
|
280 |
+
|
281 |
+
$input1['address']['@type'] = 'PostalAddress';
|
282 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_country_'.$schema_id, 'saswp_array');
|
283 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_locality_'.$schema_id, 'saswp_array');
|
284 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_region_'.$schema_id, 'saswp_array');
|
285 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_mosque_schema_postal_code_'.$schema_id, 'saswp_array');
|
286 |
+
|
287 |
+
}
|
288 |
+
|
289 |
+
if( 'Church' === $schema_type){
|
290 |
+
|
291 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_church_schema_image_'.$schema_id.'_detail',true);
|
292 |
+
|
293 |
+
|
294 |
+
$input1['@context'] = saswp_context_url();
|
295 |
+
$input1['@type'] = 'Church';
|
296 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Church';
|
297 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_url_'.$schema_id, 'saswp_array');
|
298 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_name_'.$schema_id, 'saswp_array');
|
299 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_description_'.$schema_id, 'saswp_array');
|
300 |
+
|
301 |
+
if(!(empty($howto_image))){
|
302 |
+
|
303 |
+
$input1['image']['@type'] = 'ImageObject';
|
304 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
305 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
306 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
307 |
+
|
308 |
+
}
|
309 |
+
|
310 |
+
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
311 |
+
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
312 |
+
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_hasmap_'.$schema_id, 'saswp_array');
|
313 |
+
|
314 |
+
$input1['address']['@type'] = 'PostalAddress';
|
315 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_country_'.$schema_id, 'saswp_array');
|
316 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_locality_'.$schema_id, 'saswp_array');
|
317 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_region_'.$schema_id, 'saswp_array');
|
318 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_church_schema_postal_code_'.$schema_id, 'saswp_array');
|
319 |
+
|
320 |
+
}
|
321 |
+
|
322 |
+
if( 'HinduTemple' === $schema_type){
|
323 |
+
|
324 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_hindutemple_schema_image_'.$schema_id.'_detail',true);
|
325 |
+
|
326 |
+
|
327 |
+
$input1['@context'] = saswp_context_url();
|
328 |
+
$input1['@type'] = 'HinduTemple';
|
329 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#HinduTemple';
|
330 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_url_'.$schema_id, 'saswp_array');
|
331 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_name_'.$schema_id, 'saswp_array');
|
332 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_description_'.$schema_id, 'saswp_array');
|
333 |
+
|
334 |
+
if(!(empty($howto_image))){
|
335 |
+
|
336 |
+
$input1['image']['@type'] = 'ImageObject';
|
337 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
338 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
339 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
340 |
+
|
341 |
+
}
|
342 |
+
|
343 |
+
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_is_accesible_free_'.$schema_id, 'saswp_array');
|
344 |
+
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
345 |
+
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_hasmap_'.$schema_id, 'saswp_array');
|
346 |
+
|
347 |
+
$input1['address']['@type'] = 'PostalAddress';
|
348 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_country_'.$schema_id, 'saswp_array');
|
349 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_locality_'.$schema_id, 'saswp_array');
|
350 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_region_'.$schema_id, 'saswp_array');
|
351 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_hindutemple_schema_postal_code_'.$schema_id, 'saswp_array');
|
352 |
+
|
353 |
+
}
|
354 |
+
|
355 |
+
if( 'LandmarksOrHistoricalBuildings' === $schema_type){
|
356 |
+
|
357 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_lorh_schema_image_'.$schema_id.'_detail',true);
|
358 |
+
|
359 |
+
|
360 |
+
$input1['@context'] = saswp_context_url();
|
361 |
+
$input1['@type'] = 'LandmarksOrHistoricalBuildings';
|
362 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#LandmarksOrHistoricalBuildings';
|
363 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_url_'.$schema_id, 'saswp_array');
|
364 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_name_'.$schema_id, 'saswp_array');
|
365 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_description_'.$schema_id, 'saswp_array');
|
366 |
+
|
367 |
+
if(!(empty($howto_image))){
|
368 |
+
|
369 |
+
$input1['image']['@type'] = 'ImageObject';
|
370 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
371 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
372 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
373 |
+
|
374 |
+
}
|
375 |
+
|
376 |
+
$input1['hasMap'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_hasmap_'.$schema_id, 'saswp_array');
|
377 |
+
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
378 |
+
$input1['maximumAttendeeCapacity'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_maximum_a_capacity_'.$schema_id, 'saswp_array');
|
379 |
+
|
380 |
+
$input1['address']['@type'] = 'PostalAddress';
|
381 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_country_'.$schema_id, 'saswp_array');
|
382 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_locality_'.$schema_id, 'saswp_array');
|
383 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_region_'.$schema_id, 'saswp_array');
|
384 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
385 |
+
|
386 |
+
}
|
387 |
+
|
388 |
+
if( 'TouristAttraction' === $schema_type){
|
389 |
+
|
390 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_ta_schema_image_'.$schema_id.'_detail',true);
|
391 |
+
|
392 |
+
|
393 |
+
$input1['@context'] = saswp_context_url();
|
394 |
+
$input1['@type'] = 'TouristAttraction';
|
395 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#TouristAttraction';
|
396 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_url_'.$schema_id, 'saswp_array');
|
397 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_name_'.$schema_id, 'saswp_array');
|
398 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_description_'.$schema_id, 'saswp_array');
|
399 |
+
|
400 |
+
if(!(empty($howto_image))){
|
401 |
+
|
402 |
+
$input1['image']['@type'] = 'ImageObject';
|
403 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
404 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
405 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
406 |
+
|
407 |
+
}
|
408 |
+
|
409 |
+
$input1['isAccessibleForFree'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_is_acceesible_free_'.$schema_id, 'saswp_array');
|
410 |
+
|
411 |
+
$input1['address']['@type'] = 'PostalAddress';
|
412 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_country_'.$schema_id, 'saswp_array');
|
413 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_locality_'.$schema_id, 'saswp_array');
|
414 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_region_'.$schema_id, 'saswp_array');
|
415 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_ta_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
416 |
+
|
417 |
+
}
|
418 |
+
|
419 |
+
if( 'TouristDestination' === $schema_type){
|
420 |
+
|
421 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_td_schema_image_'.$schema_id.'_detail',true);
|
422 |
+
|
423 |
+
|
424 |
+
$input1['@context'] = saswp_context_url();
|
425 |
+
$input1['@type'] = 'TouristDestination';
|
426 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#TouristDestination';
|
427 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_url_'.$schema_id, 'saswp_array');
|
428 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_name_'.$schema_id, 'saswp_array');
|
429 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_description_'.$schema_id, 'saswp_array');
|
430 |
+
|
431 |
+
if(!(empty($howto_image))){
|
432 |
+
|
433 |
+
$input1['image']['@type'] = 'ImageObject';
|
434 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
435 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
436 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
437 |
+
|
438 |
+
}
|
439 |
+
|
440 |
+
|
441 |
+
$input1['address']['@type'] = 'PostalAddress';
|
442 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_country_'.$schema_id, 'saswp_array');
|
443 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_locality_'.$schema_id, 'saswp_array');
|
444 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_region_'.$schema_id, 'saswp_array');
|
445 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_td_schema_address_postal_code_'.$schema_id, 'saswp_array');
|
446 |
+
|
447 |
+
}
|
448 |
+
|
449 |
+
if( 'Apartment' === $schema_type){
|
450 |
+
|
451 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_apartment_schema_image_'.$schema_id.'_detail',true);
|
452 |
+
|
453 |
+
|
454 |
+
$input1['@context'] = saswp_context_url();
|
455 |
+
$input1['@type'] = 'Apartment';
|
456 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
|
457 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
|
458 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
|
459 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
|
460 |
+
|
461 |
+
if(!(empty($howto_image))){
|
462 |
+
|
463 |
+
$input1['image']['@type'] = 'ImageObject';
|
464 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
465 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
466 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
467 |
+
|
468 |
+
}
|
469 |
+
|
470 |
+
$input1['numberOfRooms'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_numberofrooms_'.$schema_id, 'saswp_array');
|
471 |
+
|
472 |
+
$input1['address']['@type'] = 'PostalAddress';
|
473 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_country_'.$schema_id, 'saswp_array');
|
474 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_locality_'.$schema_id, 'saswp_array');
|
475 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_region_'.$schema_id, 'saswp_array');
|
476 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_postalcode_'.$schema_id, 'saswp_array');
|
477 |
+
|
478 |
+
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_telephone_'.$schema_id, 'saswp_array');
|
479 |
+
|
480 |
+
}
|
481 |
+
|
482 |
+
if( 'House' === $schema_type){
|
483 |
+
|
484 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_house_schema_image_'.$schema_id.'_detail',true);
|
485 |
+
|
486 |
+
|
487 |
+
$input1['@context'] = saswp_context_url();
|
488 |
+
$input1['@type'] = 'House';
|
489 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#House';
|
490 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_url_'.$schema_id, 'saswp_array');
|
491 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_name_'.$schema_id, 'saswp_array');
|
492 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_description_'.$schema_id, 'saswp_array');
|
493 |
+
|
494 |
+
if(!(empty($howto_image))){
|
495 |
+
|
496 |
+
$input1['image']['@type'] = 'ImageObject';
|
497 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
498 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
499 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
500 |
+
|
501 |
+
}
|
502 |
+
|
503 |
+
$input1['petsAllowed'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_pets_allowed_'.$schema_id, 'saswp_array');
|
504 |
+
|
505 |
+
$input1['address']['@type'] = 'PostalAddress';
|
506 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_country_'.$schema_id, 'saswp_array');
|
507 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_locality_'.$schema_id, 'saswp_array');
|
508 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_region_'.$schema_id, 'saswp_array');
|
509 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_postalcode_'.$schema_id, 'saswp_array');
|
510 |
+
|
511 |
+
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_telephone_'.$schema_id, 'saswp_array');
|
512 |
+
|
513 |
+
}
|
514 |
+
|
515 |
+
if( 'SingleFamilyResidence' === $schema_type){
|
516 |
+
|
517 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_sfr_schema_image_'.$schema_id.'_detail',true);
|
518 |
+
|
519 |
+
$input1['@context'] = saswp_context_url();
|
520 |
+
$input1['@type'] = 'SingleFamilyResidence';
|
521 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#SingleFamilyResidence';
|
522 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_url_'.$schema_id, 'saswp_array');
|
523 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_name_'.$schema_id, 'saswp_array');
|
524 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_description_'.$schema_id, 'saswp_array');
|
525 |
+
|
526 |
+
if(!(empty($howto_image))){
|
527 |
+
|
528 |
+
$input1['image']['@type'] = 'ImageObject';
|
529 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
530 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
531 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
532 |
+
|
533 |
+
}
|
534 |
+
$input1['numberOfRooms'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_numberofrooms_'.$schema_id, 'saswp_array');
|
535 |
+
$input1['petsAllowed'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_pets_allowed_'.$schema_id, 'saswp_array');
|
536 |
+
|
537 |
+
$input1['address']['@type'] = 'PostalAddress';
|
538 |
+
$input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_country_'.$schema_id, 'saswp_array');
|
539 |
+
$input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_locality_'.$schema_id, 'saswp_array');
|
540 |
+
$input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_region_'.$schema_id, 'saswp_array');
|
541 |
+
$input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_postalcode_'.$schema_id, 'saswp_array');
|
542 |
+
|
543 |
+
$input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_sfr_schema_telephone_'.$schema_id, 'saswp_array');
|
544 |
+
|
545 |
+
}
|
546 |
+
|
547 |
+
if( 'HowTo' === $schema_type){
|
548 |
+
|
549 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_howto_schema_image_'.$schema_id.'_detail',true);
|
550 |
+
|
551 |
+
|
552 |
+
$tool = esc_sql ( get_post_meta($schema_post_id, 'howto_tool_'.$schema_id, true) );
|
553 |
+
$step = esc_sql ( get_post_meta($schema_post_id, 'howto_step_'.$schema_id, true) );
|
554 |
+
$supply = esc_sql ( get_post_meta($schema_post_id, 'howto_supply_'.$schema_id, true) );
|
555 |
+
|
556 |
+
|
557 |
+
$input1['@context'] = saswp_context_url();
|
558 |
+
$input1['@type'] = 'HowTo';
|
559 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
|
560 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_name_'.$schema_id, 'saswp_array');
|
561 |
+
$input1['datePublished'] = isset($all_post_meta['saswp_howto_ec_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_howto_ec_schema_date_published_'.$schema_id][0])):'';
|
562 |
+
$input1['dateModified'] = isset($all_post_meta['saswp_howto_ec_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_howto_ec_schema_date_modified_'.$schema_id][0])):'';
|
563 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_description_'.$schema_id, 'saswp_array');
|
564 |
+
|
565 |
+
if(!(empty($howto_image))){
|
566 |
+
|
567 |
+
$input1['image']['@type'] = 'ImageObject';
|
568 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
569 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
570 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
571 |
+
|
572 |
+
}
|
573 |
+
|
574 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array') !='')
|
575 |
+
{
|
576 |
+
$input1['estimatedCost']['@type'] = 'MonetaryAmount';
|
577 |
+
$input1['estimatedCost']['currency']= saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_currency_'.$schema_id, 'saswp_array');
|
578 |
+
$input1['estimatedCost']['value'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_ec_schema_value_'.$schema_id, 'saswp_array');
|
579 |
+
}
|
580 |
+
|
581 |
+
|
582 |
+
$supply_arr = array();
|
583 |
+
if(!empty($supply)){
|
584 |
+
|
585 |
+
foreach($supply as $val){
|
586 |
+
|
587 |
+
$supply_data = array();
|
588 |
+
|
589 |
+
if($val['saswp_howto_supply_name'] || $val['saswp_howto_supply_url']){
|
590 |
+
$supply_data['@type'] = 'HowToSupply';
|
591 |
+
$supply_data['name'] = $val['saswp_howto_supply_name'];
|
592 |
+
$supply_data['url'] = $val['saswp_howto_supply_url'];
|
593 |
+
}
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
if(isset($val['saswp_howto_supply_image_id']) && $val['saswp_howto_supply_image_id'] !=''){
|
598 |
+
|
599 |
+
$image_details = wp_get_attachment_image_src($val['saswp_howto_supply_image_id']);
|
600 |
+
|
601 |
+
$supply_data['image']['@type'] = 'ImageObject';
|
602 |
+
$supply_data['image']['url'] = esc_url($image_details[0]);
|
603 |
+
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
604 |
+
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
605 |
+
|
606 |
+
|
607 |
+
|
608 |
+
}
|
609 |
+
$supply_arr[] = $supply_data;
|
610 |
+
}
|
611 |
+
$input1['supply'] = $supply_arr;
|
612 |
+
}
|
613 |
+
|
614 |
+
$tool_arr = array();
|
615 |
+
if(!empty($tool)){
|
616 |
+
|
617 |
+
foreach($tool as $val){
|
618 |
+
|
619 |
+
$supply_data = array();
|
620 |
+
|
621 |
+
if($val['saswp_howto_tool_name'] || $val['saswp_howto_tool_url']){
|
622 |
+
$supply_data['@type'] = 'HowToTool';
|
623 |
+
$supply_data['name'] = $val['saswp_howto_tool_name'];
|
624 |
+
$supply_data['url'] = $val['saswp_howto_tool_url'];
|
625 |
+
}
|
626 |
+
|
627 |
+
if(isset($val['saswp_howto_tool_image_id']) && $val['saswp_howto_tool_image_id'] !=''){
|
628 |
+
|
629 |
+
$image_details = wp_get_attachment_image_src($val['saswp_howto_tool_image_id']);
|
630 |
+
|
631 |
+
$supply_data['image']['@type'] = 'ImageObject';
|
632 |
+
$supply_data['image']['url'] = esc_url($image_details[0]);
|
633 |
+
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
634 |
+
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
635 |
+
|
636 |
+
|
637 |
+
|
638 |
+
}
|
639 |
+
$tool_arr[] = $supply_data;
|
640 |
+
}
|
641 |
+
$input1['tool'] = $tool_arr;
|
642 |
+
}
|
643 |
+
|
644 |
+
//step
|
645 |
+
|
646 |
+
$step_arr = array();
|
647 |
+
if(!empty($step)){
|
648 |
+
|
649 |
+
foreach($step as $key => $val){
|
650 |
+
|
651 |
+
$supply_data = array();
|
652 |
+
$direction = array();
|
653 |
+
$tip = array();
|
654 |
+
|
655 |
+
if($val['saswp_howto_direction_text']){
|
656 |
+
$direction['@type'] = 'HowToDirection';
|
657 |
+
$direction['text'] = $val['saswp_howto_direction_text'];
|
658 |
+
}
|
659 |
+
|
660 |
+
if($val['saswp_howto_tip_text']){
|
661 |
+
|
662 |
+
$tip['@type'] = 'HowToTip';
|
663 |
+
$tip['text'] = $val['saswp_howto_tip_text'];
|
664 |
+
|
665 |
+
}
|
666 |
+
|
667 |
+
$supply_data['@type'] = 'HowToStep';
|
668 |
+
$supply_data['url'] = trailingslashit(get_permalink()).'#step'.++$key;
|
669 |
+
$supply_data['name'] = $val['saswp_howto_step_name'];
|
670 |
+
|
671 |
+
if($direction['text'] || $tip['text']){
|
672 |
+
$supply_data['itemListElement'] = array($direction, $tip);
|
673 |
+
}
|
674 |
+
|
675 |
+
if(isset($val['saswp_howto_step_image_id']) && $val['saswp_howto_step_image_id'] !=''){
|
676 |
+
|
677 |
+
$image_details = wp_get_attachment_image_src($val['saswp_howto_step_image_id']);
|
678 |
+
$supply_data['image']['@type'] = 'ImageObject';
|
679 |
+
$supply_data['image']['url'] = esc_url($image_details[0]);
|
680 |
+
$supply_data['image']['width'] = esc_attr($image_details[1]);
|
681 |
+
$supply_data['image']['height'] = esc_attr($image_details[2]);
|
682 |
+
|
683 |
+
}
|
684 |
+
|
685 |
+
$step_arr[] = $supply_data;
|
686 |
+
|
687 |
+
}
|
688 |
+
|
689 |
+
$input1['step'] = $step_arr;
|
690 |
+
|
691 |
+
}
|
692 |
+
|
693 |
+
$input1['totalTime'] = saswp_remove_warnings($all_post_meta, 'saswp_howto_schema_totaltime_'.$schema_id, 'saswp_array');
|
694 |
+
|
695 |
+
}
|
696 |
+
|
697 |
+
if( 'TVSeries' === $schema_type){
|
698 |
+
|
699 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_tvseries_schema_image_'.$schema_id.'_detail',true);
|
700 |
+
|
701 |
+
|
702 |
+
$actor = esc_sql ( get_post_meta($schema_post_id, 'tvseries_actor_'.$schema_id, true) );
|
703 |
+
$season = esc_sql ( get_post_meta($schema_post_id, 'tvseries_season_'.$schema_id, true) );
|
704 |
+
|
705 |
+
$input1['@context'] = saswp_context_url();
|
706 |
+
$input1['@type'] = 'TVSeries';
|
707 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#TVSeries';
|
708 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_name_'.$schema_id, 'saswp_array');
|
709 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_description_'.$schema_id, 'saswp_array');
|
710 |
+
|
711 |
+
if(!(empty($howto_image))){
|
712 |
+
|
713 |
+
$input1['image']['@type'] = 'ImageObject';
|
714 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
715 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
716 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
717 |
+
|
718 |
+
}
|
719 |
+
|
720 |
+
$input1['author']['@type'] = 'Person';
|
721 |
+
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_tvseries_schema_author_name_'.$schema_id, 'saswp_array');
|
722 |
+
|
723 |
+
$supply_arr = array();
|
724 |
+
if(!empty($actor)){
|
725 |
+
|
726 |
+
foreach($actor as $val){
|
727 |
+
|
728 |
+
$supply_data = array();
|
729 |
+
$supply_data['@type'] = 'Person';
|
730 |
+
$supply_data['name'] = $val['saswp_tvseries_actor_name'];
|
731 |
+
|
732 |
+
$supply_arr[] = $supply_data;
|
733 |
+
}
|
734 |
+
$input1['actor'] = $supply_arr;
|
735 |
+
}
|
736 |
+
|
737 |
+
$tool_arr = array();
|
738 |
+
if(!empty($season)){
|
739 |
+
|
740 |
+
foreach($season as $val){
|
741 |
+
|
742 |
+
$supply_data = array();
|
743 |
+
$supply_data['@type'] = 'TVSeason';
|
744 |
+
$supply_data['datePublished'] = $val['saswp_tvseries_season_published_date'];
|
745 |
+
$supply_data['name'] = $val['saswp_tvseries_season_name'];
|
746 |
+
$supply_data['numberOfEpisodes'] = $val['saswp_tvseries_season_episodes'];
|
747 |
+
|
748 |
+
$tool_arr[] = $supply_data;
|
749 |
+
}
|
750 |
+
$input1['containsSeason'] = $tool_arr;
|
751 |
+
}
|
752 |
+
|
753 |
+
}
|
754 |
+
|
755 |
+
if( 'MedicalCondition' === $schema_type){
|
756 |
+
|
757 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_mc_schema_image_'.$schema_id.'_detail',true);
|
758 |
+
|
759 |
+
$cause = esc_sql ( get_post_meta($schema_post_id, 'mc_cause_'.$schema_id, true));
|
760 |
+
$symptom = esc_sql ( get_post_meta($schema_post_id, 'mc_symptom_'.$schema_id, true));
|
761 |
+
$riskfactro = esc_sql ( get_post_meta($schema_post_id, 'mc_risk_factor_'.$schema_id, true));
|
762 |
+
|
763 |
+
|
764 |
+
$input1['@context'] = saswp_context_url();
|
765 |
+
$input1['@type'] = 'MedicalCondition';
|
766 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#MedicalCondition';
|
767 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_name_'.$schema_id, 'saswp_array');
|
768 |
+
$input1['alternateName'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_alternate_name_'.$schema_id, 'saswp_array');
|
769 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_description_'.$schema_id, 'saswp_array');
|
770 |
+
|
771 |
+
if(!(empty($howto_image))){
|
772 |
+
|
773 |
+
$input1['image']['@type'] = 'ImageObject';
|
774 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
775 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
776 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
777 |
+
|
778 |
+
}
|
779 |
+
|
780 |
+
$input1['associatedAnatomy']['@type'] = 'AnatomicalStructure';
|
781 |
+
$input1['associatedAnatomy']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_anatomy_name_'.$schema_id, 'saswp_array');
|
782 |
+
|
783 |
+
$input1['code']['@type'] = 'MedicalCode';
|
784 |
+
$input1['code']['code'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_medical_code_'.$schema_id, 'saswp_array');
|
785 |
+
$input1['code']['codingSystem'] = saswp_remove_warnings($all_post_meta, 'saswp_mc_schema_coding_system_'.$schema_id, 'saswp_array');
|
786 |
+
|
787 |
+
$cause_arr = array();
|
788 |
+
if(!empty($cause)){
|
789 |
+
|
790 |
+
foreach($cause as $val){
|
791 |
+
|
792 |
+
$supply_data = array();
|
793 |
+
$supply_data['@type'] = 'MedicalCause';
|
794 |
+
$supply_data['name'] = $val['saswp_mc_cause_name'];
|
795 |
+
|
796 |
+
$cause_arr[] = $supply_data;
|
797 |
+
}
|
798 |
+
$input1['cause'] = $cause_arr;
|
799 |
+
}
|
800 |
+
|
801 |
+
$symptom_arr = array();
|
802 |
+
if(!empty($symptom)){
|
803 |
+
|
804 |
+
foreach($symptom as $val){
|
805 |
+
|
806 |
+
$supply_data = array();
|
807 |
+
$supply_data['@type'] = 'MedicalSymptom';
|
808 |
+
$supply_data['name'] = $val['saswp_mc_symptom_name'];
|
809 |
+
|
810 |
+
$symptom_arr[] = $supply_data;
|
811 |
+
}
|
812 |
+
$input1['signOrSymptom'] = $symptom_arr;
|
813 |
+
}
|
814 |
+
|
815 |
+
$riskfactor_arr = array();
|
816 |
+
if(!empty($riskfactro)){
|
817 |
+
|
818 |
+
foreach($riskfactro as $val){
|
819 |
+
|
820 |
+
$supply_data = array();
|
821 |
+
$supply_data['@type'] = 'MedicalRiskFactor';
|
822 |
+
$supply_data['name'] = $val['saswp_mc_risk_factor_name'];
|
823 |
+
|
824 |
+
$riskfactor_arr[] = $supply_data;
|
825 |
+
}
|
826 |
+
$input1['riskFactor'] = $riskfactor_arr;
|
827 |
+
}
|
828 |
+
|
829 |
+
}
|
830 |
+
|
831 |
+
if( 'VideoGame' === $schema_type){
|
832 |
+
|
833 |
+
$howto_image = get_post_meta( get_the_ID(), 'saswp_vg_schema_image_'.$schema_id.'_detail',true);
|
834 |
+
|
835 |
+
|
836 |
+
$input1['@context'] = saswp_context_url();
|
837 |
+
$input1['@type'] = 'VideoGame';
|
838 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#VideoGame';
|
839 |
+
$input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_name_'.$schema_id, 'saswp_array');
|
840 |
+
$input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_url_'.$schema_id, 'saswp_array');
|
841 |
+
$input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_description_'.$schema_id, 'saswp_array');
|
842 |
+
|
843 |
+
if(!(empty($howto_image))){
|
844 |
+
|
845 |
+
$input1['image']['@type'] = 'ImageObject';
|
846 |
+
$input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
|
847 |
+
$input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
|
848 |
+
$input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
|
849 |
+
|
850 |
+
}
|
851 |
+
|
852 |
+
$input1['operatingSystem'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_operating_system_'.$schema_id, 'saswp_array');
|
853 |
+
$input1['applicationCategory'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_application_category_'.$schema_id, 'saswp_array');
|
854 |
+
|
855 |
+
$input1['author']['@type'] = 'Organization';
|
856 |
+
$input1['author']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_author_name_'.$schema_id, 'saswp_array');
|
857 |
+
|
858 |
+
$input1['offers']['@type'] = 'Offer';
|
859 |
+
$input1['offers']['price'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_'.$schema_id, 'saswp_array');
|
860 |
+
$input1['offers']['priceCurrency'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_currency_'.$schema_id, 'saswp_array');
|
861 |
+
$input1['offers']['availability'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_price_availability_'.$schema_id, 'saswp_array');
|
862 |
+
|
863 |
+
|
864 |
+
$input1['publisher'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_publisher_'.$schema_id, 'saswp_array');
|
865 |
+
$input1['genre'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_genre_'.$schema_id, 'saswp_array');
|
866 |
+
$input1['processorRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_processor_requirements_'.$schema_id, 'saswp_array');
|
867 |
+
$input1['memoryRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_memory_requirements_'.$schema_id, 'saswp_array');
|
868 |
+
$input1['storageRequirements'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_storage_requirements_'.$schema_id, 'saswp_array');
|
869 |
+
$input1['gamePlatform'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_game_platform_'.$schema_id, 'saswp_array');
|
870 |
+
$input1['cheatCode'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_cheat_code_'.$schema_id, 'saswp_array');
|
871 |
+
|
872 |
+
|
873 |
+
if( saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_review_count_'.$schema_id, 'saswp_array')){
|
874 |
+
|
875 |
+
$input1['aggregateRating']['@type'] = 'AggregateRating';
|
876 |
+
$input1['aggregateRating']['ratingValue'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_rating_'.$schema_id, 'saswp_array');
|
877 |
+
$input1['aggregateRating']['ratingCount'] = saswp_remove_warnings($all_post_meta, 'saswp_vg_schema_review_count_'.$schema_id, 'saswp_array');
|
878 |
+
|
879 |
+
}
|
880 |
+
|
881 |
+
|
882 |
+
|
883 |
+
}
|
884 |
+
|
885 |
+
if( 'qanda' === $schema_type){
|
886 |
+
|
887 |
+
if(trim(saswp_remove_warnings($all_post_meta, 'saswp_qa_question_title_'.$schema_id, 'saswp_array')) ==''){
|
888 |
+
|
889 |
+
$service_object = new saswp_output_service();
|
890 |
+
$input1 = $service_object->saswp_dw_question_answers_details(get_the_ID());
|
891 |
+
|
892 |
+
}else{
|
893 |
+
|
894 |
+
$input1 = array(
|
895 |
+
'@context' => saswp_context_url(),
|
896 |
+
'@type' => 'QAPage',
|
897 |
+
'@id' => trailingslashit(get_permalink()).'#qapage',
|
898 |
+
'mainEntity' => array(
|
899 |
+
'@type' => 'Question' ,
|
900 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_question_title_'.$schema_id, 'saswp_array'),
|
901 |
+
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_question_description_'.$schema_id, 'saswp_array'),
|
902 |
+
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_upvote_count_'.$schema_id, 'saswp_array'),
|
903 |
+
'dateCreated' => isset($all_post_meta['saswp_qa_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_date_created_'.$schema_id][0])):'',
|
904 |
+
'author' => array('@type' => 'Person','name' =>saswp_remove_warnings($all_post_meta, 'saswp_qa_question_author_name_'.$schema_id, 'saswp_array')) ,
|
905 |
+
'answerCount' => 2 ,
|
906 |
+
'acceptedAnswer' => array(
|
907 |
+
'@type' => 'Answer',
|
908 |
+
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_upvote_count_'.$schema_id, 'saswp_array'),
|
909 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_url_'.$schema_id, 'saswp_array'),
|
910 |
+
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_answer_text_'.$schema_id, 'saswp_array'),
|
911 |
+
'dateCreated' => isset($all_post_meta['saswp_qa_accepted_answer_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_accepted_answer_date_created_'.$schema_id][0])):'',
|
912 |
+
'author' => array('@type' => 'Person', 'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_accepted_author_name_'.$schema_id, 'saswp_array')),
|
913 |
+
) ,
|
914 |
+
'suggestedAnswer' => array(
|
915 |
+
'@type' => 'Answer',
|
916 |
+
'upvoteCount' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_upvote_count_'.$schema_id, 'saswp_array'),
|
917 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_url_'.$schema_id, 'saswp_array'),
|
918 |
+
'text' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_answer_text_'.$schema_id, 'saswp_array'),
|
919 |
+
'dateCreated' => isset($all_post_meta['saswp_qa_suggested_answer_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_qa_suggested_answer_date_created_'.$schema_id][0])):'',
|
920 |
+
'author' => array('@type' => 'Person', 'name' => saswp_remove_warnings($all_post_meta, 'saswp_qa_suggested_author_name_'.$schema_id, 'saswp_array')),
|
921 |
+
) ,
|
922 |
+
)
|
923 |
+
);
|
924 |
+
}
|
925 |
+
}
|
926 |
+
|
927 |
+
if( 'DataFeed' === $schema_type){
|
928 |
+
|
929 |
+
|
930 |
+
$input1 = array(
|
931 |
+
'@context' => saswp_context_url(),
|
932 |
+
'@type' => 'DataFeed' ,
|
933 |
+
'@id' => trailingslashit(get_permalink()).'#DataFeed',
|
934 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_data_feed_schema_name_'.$schema_id, 'saswp_array'),
|
935 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_data_feed_schema_description_'.$schema_id, 'saswp_array'),
|
936 |
+
'dateModified' => isset($all_post_meta['saswp_data_feed_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_data_feed_schema_date_modified_'.$schema_id][0])):'',
|
937 |
+
'license' => saswp_remove_warnings($all_post_meta, 'saswp_data_feed_schema_license_'.$schema_id, 'saswp_array'),
|
938 |
+
);
|
939 |
+
|
940 |
+
|
941 |
+
$performer = esc_sql ( get_post_meta($schema_post_id, 'feed_element_'.$schema_id, true) );
|
942 |
+
|
943 |
+
$performer_arr = array();
|
944 |
+
|
945 |
+
if(!empty($performer)){
|
946 |
+
|
947 |
+
foreach($performer as $val){
|
948 |
+
|
949 |
+
$supply_data = array();
|
950 |
+
$supply_data['@type'] = 'DataFeedItem';
|
951 |
+
$supply_data['dateCreated'] = isset($val['saswp_feed_element_date_created'])?date('Y-m-d\TH:i:s\Z',strtotime($val['saswp_feed_element_date_created'])):'';
|
952 |
+
$supply_data['item'] = array(
|
953 |
+
'@type' => 'Person',
|
954 |
+
'name' => $val['saswp_feed_element_name'],
|
955 |
+
'email' => $val['saswp_feed_element_email'],
|
956 |
+
);
|
957 |
+
|
958 |
+
$performer_arr[] = $supply_data;
|
959 |
+
}
|
960 |
+
|
961 |
+
$input1['dataFeedElement'] = $performer_arr;
|
962 |
+
|
963 |
+
}
|
964 |
+
|
965 |
+
}
|
966 |
+
|
967 |
+
if( 'Event' === $schema_type){
|
968 |
+
|
969 |
+
$event_image = get_post_meta( get_the_ID(), 'saswp_event_schema_image_'.$schema_id.'_detail',true);
|
970 |
+
|
971 |
+
$input1 = array(
|
972 |
+
'@context' => saswp_context_url(),
|
973 |
+
'@type' => 'Event' ,
|
974 |
+
'@id' => trailingslashit(get_permalink()).'#event',
|
975 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_name_'.$schema_id, 'saswp_array'),
|
976 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_description_'.$schema_id, 'saswp_array'),
|
977 |
+
'startDate' => isset($all_post_meta['saswp_event_schema_start_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_start_date_'.$schema_id][0])):'',
|
978 |
+
'endDate' => isset($all_post_meta['saswp_event_schema_end_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_end_date_'.$schema_id][0])):'',
|
979 |
+
'image' => array(
|
980 |
+
'@type' =>'ImageObject',
|
981 |
+
'url' => isset($event_image['thumbnail']) ? esc_url($event_image['thumbnail']):'' ,
|
982 |
+
'width' => isset($event_image['width']) ? esc_attr($event_image['width']) :'' ,
|
983 |
+
'height' => isset($event_image['height']) ? esc_attr($event_image['height']) :'' ,
|
984 |
+
),
|
985 |
+
'location' => array(
|
986 |
+
'@type' => 'Place',
|
987 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_name_'.$schema_id, 'saswp_array'),
|
988 |
+
'address' => array(
|
989 |
+
'@type' => 'PostalAddress',
|
990 |
+
'streetAddress' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_streetaddress_'.$schema_id, 'saswp_array'),
|
991 |
+
'addressLocality' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_locality_'.$schema_id, 'saswp_array'),
|
992 |
+
'postalCode' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_postalcode_'.$schema_id, 'saswp_array'),
|
993 |
+
'addressRegion' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_location_region_'.$schema_id, 'saswp_array'),
|
994 |
+
)
|
995 |
+
),
|
996 |
+
'offers' => array(
|
997 |
+
'@type' => 'Offer',
|
998 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_url_'.$schema_id, 'saswp_array'),
|
999 |
+
'price' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_price_'.$schema_id, 'saswp_array'),
|
1000 |
+
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_price_currency_'.$schema_id, 'saswp_array'),
|
1001 |
+
'availability' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_availability_'.$schema_id, 'saswp_array'),
|
1002 |
+
'validFrom' => isset($all_post_meta['saswp_event_schema_validfrom_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_event_schema_validfrom_'.$schema_id][0])):'',
|
1003 |
+
)
|
1004 |
+
);
|
1005 |
+
|
1006 |
+
|
1007 |
+
$performer = esc_sql ( get_post_meta($schema_post_id, 'performer_'.$schema_id, true) );
|
1008 |
+
|
1009 |
+
$performer_arr = array();
|
1010 |
+
|
1011 |
+
if(!empty($performer)){
|
1012 |
+
|
1013 |
+
foreach($performer as $val){
|
1014 |
+
|
1015 |
+
$supply_data = array();
|
1016 |
+
$supply_data['@type'] = $val['saswp_event_performer_type'];
|
1017 |
+
$supply_data['name'] = $val['saswp_event_performer_name'];
|
1018 |
+
$supply_data['url'] = $val['saswp_event_performer_url'];
|
1019 |
+
|
1020 |
+
$performer_arr[] = $supply_data;
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
$input1['performer'] = $performer_arr;
|
1024 |
+
|
1025 |
+
}
|
1026 |
+
|
1027 |
+
|
1028 |
+
if(!empty($aggregateRating)){
|
1029 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1030 |
+
}
|
1031 |
+
if(!empty($extra_theme_review)){
|
1032 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
if( 'DiscussionForumPosting' === $schema_type){
|
1038 |
+
|
1039 |
+
$event_image = get_post_meta( get_the_ID(), 'saswp_dfp_image_'.$schema_id.'_detail',true);
|
1040 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_dfp_organization_logo_'.$schema_id.'_detail',true);
|
1041 |
+
$input1 = array(
|
1042 |
+
'@context' => saswp_context_url(),
|
1043 |
+
'@type' => 'DiscussionForumPosting' ,
|
1044 |
+
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_url_'.$schema_id, 'saswp_array').'#blogposting',
|
1045 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1046 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_headline_'.$schema_id, 'saswp_array'),
|
1047 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_description_'.$schema_id, 'saswp_array'),
|
1048 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_url_'.$schema_id, 'saswp_array'),
|
1049 |
+
'image' => array(
|
1050 |
+
'@type' =>'ImageObject',
|
1051 |
+
'url' => isset($event_image['thumbnail']) ? esc_url($event_image['thumbnail']):'' ,
|
1052 |
+
'width' => isset($event_image['width']) ? esc_attr($event_image['width']) :'' ,
|
1053 |
+
'height' => isset($event_image['height']) ? esc_attr($event_image['height']) :'' ,
|
1054 |
+
),
|
1055 |
+
'datePublished' => isset($all_post_meta['saswp_dfp_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_dfp_date_published_'.$schema_id][0])):'',
|
1056 |
+
'dateModified' => isset($all_post_meta['saswp_dfp_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_dfp_date_modified_'.$schema_id][0])):'',
|
1057 |
+
'author' => array(
|
1058 |
+
'@type' => 'Person',
|
1059 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_name_'.$schema_id, 'saswp_array'),
|
1060 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_description_'.$schema_id, 'saswp_array')
|
1061 |
+
),
|
1062 |
+
'publisher' => array(
|
1063 |
+
'@type' => 'Organization',
|
1064 |
+
'logo' => array(
|
1065 |
+
'@type' => 'ImageObject',
|
1066 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_organization_logo_'.$schema_id, 'saswp_array'),
|
1067 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1068 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1069 |
+
),
|
1070 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_organization_name_'.$schema_id, 'saswp_array'),
|
1071 |
+
),
|
1072 |
+
);
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
if( 'Course' === $schema_type){
|
1076 |
+
|
1077 |
+
$input1 = array(
|
1078 |
+
'@context' => saswp_context_url(),
|
1079 |
+
'@type' => 'Course' ,
|
1080 |
+
'@id' => trailingslashit(get_permalink()).'#course',
|
1081 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_name_'.$schema_id, 'saswp_array'),
|
1082 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_course_description_'.$schema_id, 'saswp_array'),
|
1083 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_course_url_'.$schema_id, 'saswp_array'),
|
1084 |
+
'datePublished' => isset($all_post_meta['saswp_course_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_course_date_published_'.$schema_id][0])):'',
|
1085 |
+
'dateModified' => isset($all_post_meta['saswp_course_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_course_date_modified_'.$schema_id][0])):'',
|
1086 |
+
'provider' => array(
|
1087 |
+
'@type' => 'Organization',
|
1088 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_course_provider_name_'.$schema_id, 'saswp_array'),
|
1089 |
+
'sameAs' => saswp_remove_warnings($all_post_meta, 'saswp_course_sameas_'.$schema_id, 'saswp_array')
|
1090 |
+
)
|
1091 |
+
);
|
1092 |
+
|
1093 |
+
if(!empty($aggregateRating)){
|
1094 |
+
|
1095 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1096 |
+
|
1097 |
+
}
|
1098 |
+
if(!empty($extra_theme_review)){
|
1099 |
+
|
1100 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1101 |
+
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
if( 'Blogposting' === $schema_type){
|
1107 |
+
|
1108 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_blogposting_organization_logo_'.$schema_id.'_detail',true);
|
1109 |
+
$input1 = array(
|
1110 |
+
'@context' => saswp_context_url(),
|
1111 |
+
'@type' => 'Blogposting' ,
|
1112 |
+
'@id' => trailingslashit(get_permalink()).'#Blogposting',
|
1113 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1114 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_headline_'.$schema_id, 'saswp_array'),
|
1115 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_description_'.$schema_id, 'saswp_array'),
|
1116 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_keywords_'.$schema_id, 'saswp_array'),
|
1117 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_name_'.$schema_id, 'saswp_array'),
|
1118 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_url_'.$schema_id, 'saswp_array'),
|
1119 |
+
'datePublished' => isset($all_post_meta['saswp_blogposting_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_published_'.$schema_id][0])):'',
|
1120 |
+
'dateModified' => isset($all_post_meta['saswp_blogposting_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_modified_'.$schema_id][0])):'',
|
1121 |
+
'author' => array(
|
1122 |
+
'@type' => 'Person',
|
1123 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array'),
|
1124 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array')
|
1125 |
+
),
|
1126 |
+
'publisher' => array(
|
1127 |
+
'@type' => 'Organization',
|
1128 |
+
'logo' => array(
|
1129 |
+
'@type' => 'ImageObject',
|
1130 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_organization_logo_'.$schema_id, 'saswp_array'),
|
1131 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1132 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1133 |
+
),
|
1134 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_organization_name_'.$schema_id, 'saswp_array'),
|
1135 |
+
),
|
1136 |
+
);
|
1137 |
+
|
1138 |
+
|
1139 |
+
|
1140 |
+
if(isset($all_post_meta['saswp_blogposting_speakable_'.$schema_id]) && $all_post_meta['saswp_blogposting_speakable_'.$schema_id][0] == 1 ){
|
1141 |
+
|
1142 |
+
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
1143 |
+
$input1['speakable']['xpath'] = array(
|
1144 |
+
"/html/head/title",
|
1145 |
+
"/html/head/meta[@name='description']/@content"
|
1146 |
+
);
|
1147 |
+
|
1148 |
+
}
|
1149 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_blogposting_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_blogposting_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_blogposting_review_count_'.$schema_id, 'saswp_array')){
|
1150 |
+
|
1151 |
+
$input1['aggregateRating'] = array(
|
1152 |
+
"@type" => "AggregateRating",
|
1153 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_rating_'.$schema_id, 'saswp_array'),
|
1154 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_review_count_'.$schema_id, 'saswp_array')
|
1155 |
+
);
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
if(!empty($aggregateRating)){
|
1159 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1160 |
+
}
|
1161 |
+
if(!empty($extra_theme_review)){
|
1162 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1163 |
+
}
|
1164 |
+
}
|
1165 |
+
|
1166 |
+
if( 'AudioObject' === $schema_type){
|
1167 |
+
|
1168 |
+
$input1 = array(
|
1169 |
+
'@context' => saswp_context_url(),
|
1170 |
+
'@type' => $schema_type,
|
1171 |
+
'@id' => trailingslashit(get_permalink()).'#audioobject',
|
1172 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_name_'.$schema_id, 'saswp_array'),
|
1173 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_description_'.$schema_id, 'saswp_array'),
|
1174 |
+
'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_contenturl_'.$schema_id, 'saswp_array'),
|
1175 |
+
'duration' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_duration_'.$schema_id, 'saswp_array'),
|
1176 |
+
'encodingFormat' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_encoding_format_'.$schema_id, 'saswp_array'),
|
1177 |
+
'datePublished' => isset($all_post_meta['saswp_audio_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_published_'.$schema_id][0])):'',
|
1178 |
+
'dateModified' => isset($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id][0])):'',
|
1179 |
+
'author' => array(
|
1180 |
+
'@type' => 'Person',
|
1181 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_name_'.$schema_id, 'saswp_array'),
|
1182 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_description_'.$schema_id, 'saswp_array')
|
1183 |
+
),
|
1184 |
+
|
1185 |
+
);
|
1186 |
+
if(!empty($aggregateRating)){
|
1187 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1188 |
+
}
|
1189 |
+
if(!empty($extra_theme_review)){
|
1190 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1191 |
+
}
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
if( 'SoftwareApplication' === $schema_type){
|
1195 |
+
|
1196 |
+
$input1 = array(
|
1197 |
+
'@context' => saswp_context_url(),
|
1198 |
+
'@type' => 'SoftwareApplication',
|
1199 |
+
'@id' => trailingslashit(get_permalink()).'#softwareapplication',
|
1200 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_name_'.$schema_id, 'saswp_array'),
|
1201 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_description_'.$schema_id, 'saswp_array'),
|
1202 |
+
'operatingSystem' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_operating_system_'.$schema_id, 'saswp_array'),
|
1203 |
+
'applicationCategory' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_application_category_'.$schema_id, 'saswp_array'),
|
1204 |
+
'offers' => array(
|
1205 |
+
'@type' => 'Offer',
|
1206 |
+
'price' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_price_'.$schema_id, 'saswp_array'),
|
1207 |
+
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_price_currency_'.$schema_id, 'saswp_array'),
|
1208 |
+
),
|
1209 |
+
'datePublished' => isset($all_post_meta['saswp_software_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_software_schema_date_published_'.$schema_id][0])):'',
|
1210 |
+
'dateModified' => isset($all_post_meta['saswp_software_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_software_schema_date_modified_'.$schema_id][0])):'',
|
1211 |
+
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_software_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
1215 |
+
|
1216 |
+
$input1['aggregateRating'] = array(
|
1217 |
+
"@type" => "AggregateRating",
|
1218 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_'.$schema_id, 'saswp_array'),
|
1219 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_software_schema_rating_count_'.$schema_id, 'saswp_array')
|
1220 |
+
);
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
if(!empty($aggregateRating)){
|
1224 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1225 |
+
}
|
1226 |
+
if(!empty($extra_theme_review)){
|
1227 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1228 |
+
}
|
1229 |
+
}
|
1230 |
+
|
1231 |
+
if( 'WebPage' === $schema_type){
|
1232 |
+
|
1233 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_webpage_organization_logo_'.$schema_id.'_detail',true);
|
1234 |
+
$input1 = array(
|
1235 |
+
'@context' => saswp_context_url(),
|
1236 |
+
'@type' => 'WebPage' ,
|
1237 |
+
'@id' => trailingslashit(get_permalink()).'#webpage',
|
1238 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_name_'.$schema_id, 'saswp_array'),
|
1239 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_url_'.$schema_id, 'saswp_array'),
|
1240 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
1241 |
+
'mainEntity' => array(
|
1242 |
+
'@type' => 'Article',
|
1243 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1244 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_image_'.$schema_id, 'saswp_array'),
|
1245 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_headline_'.$schema_id, 'saswp_array'),
|
1246 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_description_'.$schema_id, 'saswp_array'),
|
1247 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_keywords_'.$schema_id, 'saswp_array'),
|
1248 |
+
'datePublished' => isset($all_post_meta['saswp_webpage_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_webpage_date_published_'.$schema_id][0])):'',
|
1249 |
+
'dateModified' => isset($all_post_meta['saswp_webpage_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_webpage_date_modified_'.$schema_id][0])):'',
|
1250 |
+
'author' => array(
|
1251 |
+
'@type' => 'Person',
|
1252 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_name_'.$schema_id, 'saswp_array'),
|
1253 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_description_'.$schema_id, 'saswp_array'),
|
1254 |
+
),
|
1255 |
+
'publisher' => array(
|
1256 |
+
'@type' => 'Organization',
|
1257 |
+
'logo' => array(
|
1258 |
+
'@type' => 'ImageObject',
|
1259 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_organization_logo_'.$schema_id, 'saswp_array'),
|
1260 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1261 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1262 |
+
),
|
1263 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_organization_name_'.$schema_id, 'saswp_array'),
|
1264 |
+
),
|
1265 |
+
),
|
1266 |
+
|
1267 |
+
|
1268 |
+
);
|
1269 |
+
|
1270 |
+
|
1271 |
+
if(isset($all_post_meta['saswp_webpage_speakable_'.$schema_id]) && $all_post_meta['saswp_webpage_speakable_'.$schema_id][0] == 1){
|
1272 |
+
|
1273 |
+
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
1274 |
+
$input1['speakable']['xpath'] = array(
|
1275 |
+
"/html/head/title",
|
1276 |
+
"/html/head/meta[@name='description']/@content"
|
1277 |
+
);
|
1278 |
+
|
1279 |
+
}
|
1280 |
+
|
1281 |
+
if(!empty($aggregateRating)){
|
1282 |
+
|
1283 |
+
$input1['mainEntity']['aggregateRating'] = $aggregateRating;
|
1284 |
+
|
1285 |
+
}
|
1286 |
+
|
1287 |
+
if(!empty($extra_theme_review)){
|
1288 |
+
|
1289 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1290 |
+
|
1291 |
+
}
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
if( 'Article' === $schema_type ){
|
1295 |
+
|
1296 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
|
1297 |
+
|
1298 |
+
$input1 = array(
|
1299 |
+
'@context' => saswp_context_url(),
|
1300 |
+
'@type' => 'Article',
|
1301 |
+
'@id' => trailingslashit(get_permalink()).'#article',
|
1302 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1303 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_article_image_'.$schema_id, 'saswp_array'),
|
1304 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_article_headline_'.$schema_id, 'saswp_array'),
|
1305 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_description_'.$schema_id, 'saswp_array'),
|
1306 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_article_keywords_'.$schema_id, 'saswp_array'),
|
1307 |
+
'datePublished' => isset($all_post_meta['saswp_article_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_article_date_published_'.$schema_id][0])):'',
|
1308 |
+
'dateModified' => isset($all_post_meta['saswp_article_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_article_date_modified_'.$schema_id][0])):'',
|
1309 |
+
'author' => array(
|
1310 |
+
'@type' => 'Person',
|
1311 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array'),
|
1312 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array')
|
1313 |
+
),
|
1314 |
+
'publisher' => array(
|
1315 |
+
'@type' => 'Organization',
|
1316 |
+
'logo' => array(
|
1317 |
+
'@type' => 'ImageObject',
|
1318 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_organization_logo_'.$schema_id, 'saswp_array'),
|
1319 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1320 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1321 |
+
),
|
1322 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_organization_name_'.$schema_id, 'saswp_array'),
|
1323 |
+
),
|
1324 |
+
|
1325 |
+
);
|
1326 |
+
|
1327 |
+
if(isset($all_post_meta['saswp_article_speakable_'.$schema_id]) && $all_post_meta['saswp_article_speakable_'.$schema_id][0] == 1){
|
1328 |
+
|
1329 |
+
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
1330 |
+
$input1['speakable']['xpath'] = array(
|
1331 |
+
"/html/head/title",
|
1332 |
+
"/html/head/meta[@name='description']/@content"
|
1333 |
+
);
|
1334 |
+
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_article_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_article_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_article_review_count_'.$schema_id, 'saswp_array')){
|
1338 |
+
|
1339 |
+
$input1['aggregateRating'] = array(
|
1340 |
+
"@type" => "AggregateRating",
|
1341 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_article_rating_'.$schema_id, 'saswp_array'),
|
1342 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_article_review_count_'.$schema_id, 'saswp_array')
|
1343 |
+
);
|
1344 |
+
}
|
1345 |
+
|
1346 |
+
if(!empty($extra_theme_review)){
|
1347 |
+
|
1348 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1349 |
+
|
1350 |
+
}
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
if( 'TechArticle' === $schema_type ){
|
1354 |
+
|
1355 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
|
1356 |
+
|
1357 |
+
$input1 = array(
|
1358 |
+
'@context' => saswp_context_url(),
|
1359 |
+
'@type' => 'TechArticle',
|
1360 |
+
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
1361 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1362 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_image_'.$schema_id, 'saswp_array'),
|
1363 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_headline_'.$schema_id, 'saswp_array'),
|
1364 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_description_'.$schema_id, 'saswp_array'),
|
1365 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_keywords_'.$schema_id, 'saswp_array'),
|
1366 |
+
'datePublished' => isset($all_post_meta['saswp_tech_article_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0])):'',
|
1367 |
+
'dateModified' => isset($all_post_meta['saswp_tech_article_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0])):'',
|
1368 |
+
'author' => array(
|
1369 |
+
'@type' => 'Person',
|
1370 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array'),
|
1371 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array')
|
1372 |
+
),
|
1373 |
+
'publisher' => array(
|
1374 |
+
'@type' => 'Organization',
|
1375 |
+
'logo' => array(
|
1376 |
+
'@type' => 'ImageObject',
|
1377 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_organization_logo_'.$schema_id, 'saswp_array'),
|
1378 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1379 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1380 |
+
),
|
1381 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_organization_name_'.$schema_id, 'saswp_array'),
|
1382 |
+
),
|
1383 |
+
|
1384 |
+
);
|
1385 |
+
|
1386 |
+
if(isset($all_post_meta['saswp_tech_article_speakable_'.$schema_id]) && $all_post_meta['saswp_tech_article_speakable_'.$schema_id][0] == 1){
|
1387 |
+
|
1388 |
+
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
1389 |
+
$input1['speakable']['xpath'] = array(
|
1390 |
+
"/html/head/title",
|
1391 |
+
"/html/head/meta[@name='description']/@content"
|
1392 |
+
);
|
1393 |
+
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_tech_article_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_tech_article_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_tech_article_review_count_'.$schema_id, 'saswp_array')){
|
1397 |
+
|
1398 |
+
$input1['aggregateRating'] = array(
|
1399 |
+
"@type" => "AggregateRating",
|
1400 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_rating_'.$schema_id, 'saswp_array'),
|
1401 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_review_count_'.$schema_id, 'saswp_array')
|
1402 |
+
);
|
1403 |
+
}
|
1404 |
+
|
1405 |
+
|
1406 |
+
if(!empty($extra_theme_review)){
|
1407 |
+
|
1408 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1409 |
+
|
1410 |
+
}
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
if( 'Recipe' === $schema_type){
|
1414 |
+
|
1415 |
+
$recipe_logo = get_post_meta( get_the_ID(), 'saswp_recipe_organization_logo_'.$schema_id.'_detail',true);
|
1416 |
+
$recipe_image = get_post_meta( get_the_ID(), 'saswp_recipe_image_'.$schema_id.'_detail',true);
|
1417 |
+
$recipe_author_image = get_post_meta( get_the_ID(), 'saswp_recipe_author_image_'.$schema_id.'_detail',true);
|
1418 |
+
|
1419 |
+
$ingredient = array();
|
1420 |
+
$instruction = array();
|
1421 |
+
|
1422 |
+
if(isset($all_post_meta['saswp_recipe_ingredient_'.$schema_id])){
|
1423 |
+
|
1424 |
+
$explod = explode(';', $all_post_meta['saswp_recipe_ingredient_'.$schema_id][0]);
|
1425 |
+
|
1426 |
+
if($explod){
|
1427 |
+
|
1428 |
+
foreach ($explod as $val){
|
1429 |
+
|
1430 |
+
$ingredient[] = $val;
|
1431 |
+
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
}
|
1435 |
+
|
1436 |
+
|
1437 |
+
|
1438 |
+
}
|
1439 |
+
|
1440 |
+
if(isset($all_post_meta['saswp_recipe_instructions_'.$schema_id])){
|
1441 |
+
|
1442 |
+
$explod = explode(';', $all_post_meta['saswp_recipe_instructions_'.$schema_id][0]);
|
1443 |
+
|
1444 |
+
if($explod){
|
1445 |
+
|
1446 |
+
foreach ($explod as $val){
|
1447 |
+
|
1448 |
+
$instruction[] = array(
|
1449 |
+
'@type' => "HowToStep",
|
1450 |
+
'text' => $val,
|
1451 |
+
);
|
1452 |
+
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
}
|
1456 |
+
|
1457 |
+
}
|
1458 |
+
|
1459 |
+
$input1 = array(
|
1460 |
+
'@context' => saswp_context_url(),
|
1461 |
+
'@type' => $schema_type ,
|
1462 |
+
'@id' => trailingslashit(get_permalink()).'#recipe',
|
1463 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_url_'.$schema_id, 'saswp_array'),
|
1464 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_name_'.$schema_id, 'saswp_array'),
|
1465 |
+
'image' =>array(
|
1466 |
+
'@type' => 'ImageObject',
|
1467 |
+
'url' => saswp_remove_warnings( $recipe_image, 'thumbnail', 'saswp_string'),
|
1468 |
+
'width' => saswp_remove_warnings( $recipe_image, 'width', 'saswp_string'),
|
1469 |
+
'height' => saswp_remove_warnings( $recipe_image , 'height', 'saswp_string'),
|
1470 |
+
),
|
1471 |
+
'author' => array(
|
1472 |
+
'@type' => 'Person',
|
1473 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_name_'.$schema_id, 'saswp_array'),
|
1474 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_description_'.$schema_id, 'saswp_array'),
|
1475 |
+
'Image' => array(
|
1476 |
+
'@type' => 'ImageObject',
|
1477 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_author_image_'.$schema_id, 'saswp_array'),
|
1478 |
+
'height' => saswp_remove_warnings($recipe_author_image, 'height', 'saswp_string'),
|
1479 |
+
'width' => saswp_remove_warnings($recipe_author_image, 'width', 'saswp_string')
|
1480 |
+
),
|
1481 |
+
),
|
1482 |
+
|
1483 |
+
|
1484 |
+
'prepTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_preptime_'.$schema_id, 'saswp_array'),
|
1485 |
+
'cookTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_cooktime_'.$schema_id, 'saswp_array'),
|
1486 |
+
'totalTime' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_totaltime_'.$schema_id, 'saswp_array'),
|
1487 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_keywords_'.$schema_id, 'saswp_array'),
|
1488 |
+
'recipeYield' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_recipeyield_'.$schema_id, 'saswp_array'),
|
1489 |
+
'recipeCategory' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_category_'.$schema_id, 'saswp_array'),
|
1490 |
+
'recipeCuisine' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_cuisine_'.$schema_id, 'saswp_array'),
|
1491 |
+
'nutrition' => array(
|
1492 |
+
'@type' => "NutritionInformation",
|
1493 |
+
'calories' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_nutrition_'.$schema_id, 'saswp_array'),
|
1494 |
+
),
|
1495 |
+
'recipeIngredient' => $ingredient,
|
1496 |
+
'recipeInstructions' => $instruction,
|
1497 |
+
'datePublished' => isset($all_post_meta['saswp_recipe_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_date_published_'.$schema_id][0])):'',
|
1498 |
+
'dateModified' => isset($all_post_meta['saswp_recipe_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_date_modified_'.$schema_id][0])):'',
|
1499 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_description_'.$schema_id, 'saswp_array'),
|
1500 |
+
'mainEntity' => array(
|
1501 |
+
'@type' => 'WebPage',
|
1502 |
+
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_main_entity_'.$schema_id, 'saswp_array'),
|
1503 |
+
'publisher' => array(
|
1504 |
+
'@type' => 'Organization',
|
1505 |
+
'logo' => array(
|
1506 |
+
'@type' => 'ImageObject',
|
1507 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_organization_logo_'.$schema_id, 'saswp_array'),
|
1508 |
+
'width' => saswp_remove_warnings($recipe_logo, 'width', 'saswp_string'),
|
1509 |
+
'height' => saswp_remove_warnings($recipe_logo, 'height', 'saswp_string'),
|
1510 |
+
),
|
1511 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_recipe_organization_name_'.$schema_id, 'saswp_array'),
|
1512 |
+
),
|
1513 |
+
),
|
1514 |
+
|
1515 |
+
|
1516 |
+
);
|
1517 |
+
|
1518 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_name_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_thumbnailurl_'.$schema_id, 'saswp_array') !='' && saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_description_'.$schema_id, 'saswp_array') !=''){
|
1519 |
+
|
1520 |
+
$input1['video']['@type'] = 'VideoObject';
|
1521 |
+
$input1['video']['name'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_name_'.$schema_id, 'saswp_array');
|
1522 |
+
$input1['video']['description'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_description_'.$schema_id, 'saswp_array');
|
1523 |
+
$input1['video']['thumbnailUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_thumbnailurl_'.$schema_id, 'saswp_array');
|
1524 |
+
$input1['video']['contentUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_contenturl_'.$schema_id, 'saswp_array');
|
1525 |
+
$input1['video']['embedUrl'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_embedurl_'.$schema_id, 'saswp_array');
|
1526 |
+
$input1['video']['uploadDate'] = isset($all_post_meta['saswp_recipe_video_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_recipe_video_upload_date_'.$schema_id][0])):'';
|
1527 |
+
$input1['video']['duration'] = saswp_remove_warnings($all_post_meta, 'saswp_recipe_video_duration_'.$schema_id, 'saswp_array');
|
1528 |
+
}
|
1529 |
+
|
1530 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_review_count_'.$schema_id, 'saswp_array')){
|
1531 |
+
|
1532 |
+
$input1['aggregateRating'] = array(
|
1533 |
+
"@type" => "AggregateRating",
|
1534 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_rating_'.$schema_id, 'saswp_array'),
|
1535 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_recipe_schema_review_count_'.$schema_id, 'saswp_array')
|
1536 |
+
);
|
1537 |
+
}
|
1538 |
+
|
1539 |
+
if(!empty($aggregateRating)){
|
1540 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1541 |
+
}
|
1542 |
+
if(!empty($extra_theme_review)){
|
1543 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1544 |
+
}
|
1545 |
+
}
|
1546 |
+
|
1547 |
+
if( 'Product' === $schema_type){
|
1548 |
+
|
1549 |
+
$product_image = get_post_meta( get_the_ID(), 'saswp_product_schema_image_'.$schema_id.'_detail',true);
|
1550 |
+
$input1 = array(
|
1551 |
+
'@context' => saswp_context_url(),
|
1552 |
+
'@type' => 'Product',
|
1553 |
+
'@id' => trailingslashit(get_permalink()).'#product',
|
1554 |
+
'url' => trailingslashit(get_permalink()),
|
1555 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_name_'.$schema_id, 'saswp_array'),
|
1556 |
+
'sku' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_sku_'.$schema_id, 'saswp_array'),
|
1557 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_description_'.$schema_id, 'saswp_array'),
|
1558 |
+
'image' =>array(
|
1559 |
+
'@type' => 'ImageObject',
|
1560 |
+
'url' => saswp_remove_warnings($product_image, 'thumbnail', 'saswp_string'),
|
1561 |
+
'width' => saswp_remove_warnings($product_image, 'width', 'saswp_string'),
|
1562 |
+
'height' => saswp_remove_warnings($product_image, 'height', 'saswp_string'),
|
1563 |
+
),
|
1564 |
+
'offers' => array(
|
1565 |
+
'@type' => 'Offer',
|
1566 |
+
'availability' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_availability_'.$schema_id, 'saswp_array'),
|
1567 |
+
'itemCondition' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_condition_'.$schema_id, 'saswp_array'),
|
1568 |
+
'price' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_price_'.$schema_id, 'saswp_array'),
|
1569 |
+
'priceCurrency' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_currency_'.$schema_id, 'saswp_array'),
|
1570 |
+
'url' => trailingslashit(get_permalink()),
|
1571 |
+
'priceValidUntil' => isset($all_post_meta['saswp_product_schema_priceValidUntil_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_product_schema_priceValidUntil_'.$schema_id][0])):'',
|
1572 |
+
),
|
1573 |
+
'brand' => array('@type' => 'Thing',
|
1574 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_brand_name_'.$schema_id, 'saswp_array'),
|
1575 |
+
)
|
1576 |
+
);
|
1577 |
+
|
1578 |
+
if(isset($all_post_meta['saswp_product_schema_gtin8_'.$schema_id])){
|
1579 |
+
$input1['gtin8'] = esc_attr($all_post_meta['saswp_product_schema_gtin8_'.$schema_id][0]);
|
1580 |
+
}
|
1581 |
+
if(isset($all_post_meta['saswp_product_schema_mpn_'.$schema_id])){
|
1582 |
+
$input1['mpn'] = esc_attr($all_post_meta['saswp_product_schema_mpn_'.$schema_id][0]);
|
1583 |
+
}
|
1584 |
+
if(isset($all_post_meta['saswp_product_schema_isbn_'.$schema_id])){
|
1585 |
+
$input1['isbn'] = esc_attr($all_post_meta['saswp_product_schema_isbn_'.$schema_id][0]);
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_product_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')){
|
1589 |
+
|
1590 |
+
$input1['aggregateRating'] = array(
|
1591 |
+
"@type" => "AggregateRating",
|
1592 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array'),
|
1593 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')
|
1594 |
+
);
|
1595 |
+
}
|
1596 |
+
|
1597 |
+
if(!empty($aggregateRating)){
|
1598 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1599 |
+
}
|
1600 |
+
if(!empty($extra_theme_review)){
|
1601 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1602 |
+
}
|
1603 |
+
|
1604 |
+
$service = new saswp_output_service();
|
1605 |
+
$product_details = $service->saswp_woocommerce_product_details(get_the_ID());
|
1606 |
+
|
1607 |
+
|
1608 |
+
if(!empty($product_details['product_reviews'])){
|
1609 |
+
|
1610 |
+
$reviews = array();
|
1611 |
+
|
1612 |
+
foreach ($product_details['product_reviews'] as $review){
|
1613 |
+
|
1614 |
+
|
1615 |
+
$review_fields = array();
|
1616 |
+
|
1617 |
+
$review_fields['@type'] = 'Review';
|
1618 |
+
$review_fields['author'] = esc_attr($review['author']);
|
1619 |
+
$review_fields['datePublished'] = esc_html($review['datePublished']);
|
1620 |
+
$review_fields['description'] = $review['description'];
|
1621 |
+
|
1622 |
+
if(isset($review['reviewRating']) && $review['reviewRating'] !=''){
|
1623 |
+
|
1624 |
+
$review_fields['reviewRating']['@type'] = 'Rating';
|
1625 |
+
$review_fields['reviewRating']['bestRating'] = '5';
|
1626 |
+
$review_fields['reviewRating']['ratingValue'] = esc_attr($review['reviewRating']);
|
1627 |
+
$review_fields['reviewRating']['worstRating'] = '1';
|
1628 |
+
|
1629 |
+
}
|
1630 |
+
|
1631 |
+
|
1632 |
+
|
1633 |
+
$reviews[] = $review_fields;
|
1634 |
+
|
1635 |
+
}
|
1636 |
+
$input1['review'] = $reviews;
|
1637 |
+
}
|
1638 |
+
|
1639 |
+
|
1640 |
+
}
|
1641 |
+
|
1642 |
+
if( 'NewsArticle' === $schema_type ){
|
1643 |
+
|
1644 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_newsarticle_organization_logo_'.$schema_id.'_detail',true);
|
1645 |
+
$author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
|
1646 |
+
|
1647 |
+
$input1 = array(
|
1648 |
+
'@context' => saswp_context_url(),
|
1649 |
+
'@type' => 'NewsArticle' ,
|
1650 |
+
'@id' => trailingslashit(get_permalink()).'#newsarticle',
|
1651 |
+
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
1652 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_URL_'.$schema_id, 'saswp_array'),
|
1653 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_image_'.$schema_id, 'saswp_array'),
|
1654 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_headline_'.$schema_id, 'saswp_array'),
|
1655 |
+
'datePublished' => isset($all_post_meta['saswp_newsarticle_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_newsarticle_date_published_'.$schema_id][0])):'',
|
1656 |
+
'dateModified' => isset($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id][0])):'',
|
1657 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_description_'.$schema_id, 'saswp_array'),
|
1658 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_keywords_'.$schema_id, 'saswp_array'),
|
1659 |
+
'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_section_'.$schema_id, 'saswp_array'),
|
1660 |
+
'articleBody' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_body_'.$schema_id, 'saswp_array'),
|
1661 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_name_'.$schema_id, 'saswp_array'),
|
1662 |
+
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_thumbnailurl_'.$schema_id, 'saswp_array'),
|
1663 |
+
'wordCount' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_word_count_'.$schema_id, 'saswp_array'),
|
1664 |
+
'timeRequired' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_timerequired_'.$schema_id, 'saswp_array'),
|
1665 |
+
'mainEntity' => array(
|
1666 |
+
'@type' => 'WebPage',
|
1667 |
+
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_id_'.$schema_id, 'saswp_array'),
|
1668 |
+
),
|
1669 |
+
'author' => array(
|
1670 |
+
'@type' => 'Person',
|
1671 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_name_'.$schema_id, 'saswp_array'),
|
1672 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_description_'.$schema_id, 'saswp_array'),
|
1673 |
+
'Image' => array(
|
1674 |
+
'@type' => 'ImageObject',
|
1675 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_image_'.$schema_id, 'saswp_array'),
|
1676 |
+
'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
|
1677 |
+
'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
|
1678 |
+
),
|
1679 |
+
),
|
1680 |
+
'publisher' => array(
|
1681 |
+
'@type' => 'Organization',
|
1682 |
+
'logo' => array(
|
1683 |
+
'@type' => 'ImageObject',
|
1684 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_organization_logo_'.$schema_id, 'saswp_array'),
|
1685 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1686 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1687 |
+
),
|
1688 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_organization_name_'.$schema_id, 'saswp_array'),
|
1689 |
+
),
|
1690 |
+
);
|
1691 |
+
|
1692 |
+
if(isset($all_post_meta['saswp_newsarticle_speakable_'.$schema_id]) && $all_post_meta['saswp_newsarticle_speakable_'.$schema_id][0] == 1){
|
1693 |
+
|
1694 |
+
$input1['speakable']['@type'] = 'SpeakableSpecification';
|
1695 |
+
$input1['speakable']['xpath'] = array(
|
1696 |
+
"/html/head/title",
|
1697 |
+
"/html/head/meta[@name='description']/@content"
|
1698 |
+
);
|
1699 |
+
|
1700 |
+
}
|
1701 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_review_count_'.$schema_id, 'saswp_array')){
|
1702 |
+
|
1703 |
+
$input1['aggregateRating'] = array(
|
1704 |
+
"@type" => "AggregateRating",
|
1705 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_rating_'.$schema_id, 'saswp_array'),
|
1706 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_review_count_'.$schema_id, 'saswp_array')
|
1707 |
+
);
|
1708 |
+
}
|
1709 |
+
|
1710 |
+
if(!empty($aggregateRating)){
|
1711 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1712 |
+
}
|
1713 |
+
}
|
1714 |
+
|
1715 |
+
if( 'VideoObject' === $schema_type){
|
1716 |
+
|
1717 |
+
$slogo = get_post_meta( get_the_ID(), 'saswp_video_object_organization_logo_'.$schema_id.'_detail',true);
|
1718 |
+
$author_image = get_post_meta( get_the_ID(), 'saswp_video_object_author_image_'.$schema_id.'_detail',true);
|
1719 |
+
|
1720 |
+
$input1 = array(
|
1721 |
+
'@context' => saswp_context_url(),
|
1722 |
+
'@type' => 'VideoObject',
|
1723 |
+
'@id' => trailingslashit(get_permalink()).'#videoobject',
|
1724 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_url_'.$schema_id, 'saswp_array'),
|
1725 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_headline_'.$schema_id, 'saswp_array'),
|
1726 |
+
'datePublished' => isset($all_post_meta['saswp_video_object_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_date_published_'.$schema_id][0])):'',
|
1727 |
+
'dateModified' => isset($all_post_meta['saswp_video_object_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_date_modified_'.$schema_id][0])):'',
|
1728 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_description_'.$schema_id, 'saswp_array'),
|
1729 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_name_'.$schema_id, 'saswp_array'),
|
1730 |
+
'uploadDate' => isset($all_post_meta['saswp_video_object_upload_date_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_video_object_upload_date_'.$schema_id][0])):'',
|
1731 |
+
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_thumbnail_url_'.$schema_id, 'saswp_array'),
|
1732 |
+
'contentUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_content_url_'.$schema_id, 'saswp_array'),
|
1733 |
+
'embedUrl' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_embed_url_'.$schema_id, 'saswp_array'),
|
1734 |
+
'mainEntity' => array(
|
1735 |
+
'@type' => 'WebPage',
|
1736 |
+
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_main_entity_id_'.$schema_id, 'saswp_array'),
|
1737 |
+
),
|
1738 |
+
'author' => array(
|
1739 |
+
'@type' => 'Person',
|
1740 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_name_'.$schema_id, 'saswp_array'),
|
1741 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_description_'.$schema_id, 'saswp_array'),
|
1742 |
+
'Image' => array(
|
1743 |
+
'@type' => 'ImageObject',
|
1744 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_image_'.$schema_id, 'saswp_array'),
|
1745 |
+
'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
|
1746 |
+
'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
|
1747 |
+
),
|
1748 |
+
),
|
1749 |
+
'publisher' => array(
|
1750 |
+
'@type' => 'Organization',
|
1751 |
+
'logo' => array(
|
1752 |
+
'@type' => 'ImageObject',
|
1753 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_organization_logo_'.$schema_id, 'saswp_array'),
|
1754 |
+
'width' => saswp_remove_warnings($slogo, 'width', 'saswp_string'),
|
1755 |
+
'height' => saswp_remove_warnings($slogo, 'height', 'saswp_string'),
|
1756 |
+
),
|
1757 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_organization_name_'.$schema_id, 'saswp_array'),
|
1758 |
+
),
|
1759 |
+
);
|
1760 |
+
if(!empty($aggregateRating)){
|
1761 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1762 |
+
}
|
1763 |
+
if(!empty($extra_theme_review)){
|
1764 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1765 |
+
}
|
1766 |
+
|
1767 |
+
}
|
1768 |
+
|
1769 |
+
if( 'Service' === $schema_type ){
|
1770 |
+
|
1771 |
+
$area_served_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_area_served_'.$schema_id, 'saswp_array');
|
1772 |
+
$area_served_arr = explode(',', $area_served_str);
|
1773 |
+
|
1774 |
+
$service_offer_str = saswp_remove_warnings($all_post_meta, 'saswp_service_schema_service_offer_'.$schema_id, 'saswp_array');
|
1775 |
+
$service_offer_arr = explode(',', $service_offer_str);
|
1776 |
+
|
1777 |
+
$input1 = array(
|
1778 |
+
'@context' => saswp_context_url(),
|
1779 |
+
'@type' => $schema_type ,
|
1780 |
+
'@id' => trailingslashit(get_permalink()).'#service',
|
1781 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array'),
|
1782 |
+
'serviceType' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_type_'.$schema_id, 'saswp_array'),
|
1783 |
+
'provider' => array(
|
1784 |
+
'@type' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_provider_type_'.$schema_id, 'saswp_array'),
|
1785 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_provider_name_'.$schema_id, 'saswp_array'),
|
1786 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_image_'.$schema_id, 'saswp_array'),
|
1787 |
+
'@id' => trailingslashit(get_permalink()),
|
1788 |
+
'address' => array(
|
1789 |
+
'@type' => 'PostalAddress',
|
1790 |
+
'addressLocality' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_locality_'.$schema_id, 'saswp_array'),
|
1791 |
+
'postalCode' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_postal_code_'.$schema_id, 'saswp_array'),
|
1792 |
+
'telephone' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_telephone_'.$schema_id, 'saswp_array')
|
1793 |
+
),
|
1794 |
+
'priceRange' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_price_range_'.$schema_id, 'saswp_array'),
|
1795 |
+
),
|
1796 |
+
'description' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_description_'.$schema_id, 'saswp_array'),
|
1797 |
+
);
|
1798 |
+
$areaServed = array();
|
1799 |
+
foreach($area_served_arr as $area){
|
1800 |
+
$areaServed[] = array(
|
1801 |
+
'@type' => 'City',
|
1802 |
+
'name' => $area
|
1803 |
+
);
|
1804 |
+
}
|
1805 |
+
$serviceOffer = array();
|
1806 |
+
foreach($service_offer_arr as $offer){
|
1807 |
+
$serviceOffer[] = array(
|
1808 |
+
'@type' => 'Offer',
|
1809 |
+
'name' => $offer
|
1810 |
+
);
|
1811 |
+
}
|
1812 |
+
$input1['areaServed'] = $areaServed;
|
1813 |
+
$input1['hasOfferCatalog'] = array(
|
1814 |
+
'@type' => 'OfferCatalog',
|
1815 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_name_'.$schema_id, 'saswp_array'),
|
1816 |
+
'itemListElement' => $serviceOffer
|
1817 |
+
);
|
1818 |
+
|
1819 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_service_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
1820 |
+
$input1['aggregateRating'] = array(
|
1821 |
+
"@type" => "AggregateRating",
|
1822 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_rating_'.$schema_id, 'saswp_array'),
|
1823 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'saswp_service_schema_review_count_'.$schema_id, 'saswp_array')
|
1824 |
+
);
|
1825 |
+
}
|
1826 |
+
if(!empty($aggregateRating)){
|
1827 |
+
$input1['aggregateRating'] = $aggregateRating;
|
1828 |
+
}
|
1829 |
+
if(!empty($extra_theme_review)){
|
1830 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
1831 |
+
}
|
1832 |
+
}
|
1833 |
+
|
1834 |
+
if( 'Review' === $schema_type ){
|
1835 |
+
|
1836 |
+
if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah')){
|
1837 |
+
|
1838 |
+
remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
|
1839 |
+
|
1840 |
+
}
|
1841 |
+
|
1842 |
+
$service = new saswp_output_service();
|
1843 |
+
|
1844 |
+
$review_author = get_the_author();
|
1845 |
+
|
1846 |
+
if(isset($all_post_meta['saswp_review_schema_author_'.$schema_id])){
|
1847 |
+
|
1848 |
+
$review_author = $all_post_meta['saswp_review_schema_author_'.$schema_id][0];
|
1849 |
+
|
1850 |
+
}
|
1851 |
+
|
1852 |
+
$input1['@context'] = saswp_context_url();
|
1853 |
+
$input1['@type'] = 'Review';
|
1854 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#review';
|
1855 |
+
$input1['url'] = trailingslashit(get_permalink());
|
1856 |
+
$input1['datePublished'] = get_the_date("Y-m-d\TH:i:s\Z");
|
1857 |
+
$input1['dateModified'] = get_the_modified_date("Y-m-d\TH:i:s\Z");
|
1858 |
+
|
1859 |
+
if($review_author){
|
1860 |
+
|
1861 |
+
$input1['author']['@type'] = 'Person';
|
1862 |
+
$input1['author']['name'] = esc_attr($review_author);
|
1863 |
+
|
1864 |
+
if(isset($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id])){
|
1865 |
+
|
1866 |
+
$input1['author']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id][0]);
|
1867 |
+
|
1868 |
+
}
|
1869 |
+
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
if($site_name && $logo && $width && $height){
|
1873 |
+
|
1874 |
+
$input1['publisher']['@type'] = 'Organization';
|
1875 |
+
$input1['publisher']['name'] = esc_attr($site_name);
|
1876 |
+
$input1['publisher']['logo']['@type'] = 'ImageObject';
|
1877 |
+
$input1['publisher']['logo']['url'] = esc_url($logo);
|
1878 |
+
$input1['publisher']['logo']['width'] = esc_attr($width);
|
1879 |
+
$input1['publisher']['logo']['height'] = esc_attr($height);
|
1880 |
+
|
1881 |
+
}
|
1882 |
+
|
1883 |
+
if(isset($all_post_meta['saswp_review_schema_description_'.$schema_id])){
|
1884 |
+
|
1885 |
+
$input1['reviewBody'] = $all_post_meta['saswp_review_schema_description_'.$schema_id][0];
|
1886 |
+
$input1['description'] = $all_post_meta['saswp_review_schema_description_'.$schema_id][0];
|
1887 |
+
}else {
|
1888 |
+
$input1['reviewBody'] = saswp_get_the_excerpt();
|
1889 |
+
$input1['description'] = saswp_get_the_excerpt();
|
1890 |
+
}
|
1891 |
+
|
1892 |
+
if(isset($all_post_meta['saswp_review_schema_item_type_'.$schema_id])){
|
1893 |
+
$input1['itemReviewed']['@type'] = esc_attr($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
1894 |
+
}
|
1895 |
+
if(isset($all_post_meta['saswp_review_schema_name_'.$schema_id])){
|
1896 |
+
$input1['itemReviewed']['name'] = esc_attr($all_post_meta['saswp_review_schema_name_'.$schema_id][0]);
|
1897 |
+
}
|
1898 |
+
if(isset($all_post_meta['saswp_review_schema_url_'.$schema_id])){
|
1899 |
+
$input1['itemReviewed']['url'] = esc_url($all_post_meta['saswp_review_schema_url_'.$schema_id][0]);
|
1900 |
+
}
|
1901 |
+
|
1902 |
+
if(isset($all_post_meta['saswp_review_schema_price_range_'.$schema_id])){
|
1903 |
+
|
1904 |
+
$input1['itemReviewed']['priceRange'] = esc_attr($all_post_meta['saswp_review_schema_price_range_'.$schema_id][0]);
|
1905 |
+
|
1906 |
+
}
|
1907 |
+
|
1908 |
+
if(isset($all_post_meta['saswp_review_schema_telephone_'.$schema_id])){
|
1909 |
+
|
1910 |
+
$input1['itemReviewed']['telephone'] = esc_attr($all_post_meta['saswp_review_schema_telephone_'.$schema_id][0]);
|
1911 |
+
|
1912 |
+
}
|
1913 |
+
|
1914 |
+
if(isset($all_post_meta['saswp_review_schema_servescuisine_'.$schema_id])){
|
1915 |
+
|
1916 |
+
$input1['itemReviewed']['servesCuisine'] = esc_attr($all_post_meta['saswp_review_schema_servescuisine_'.$schema_id][0]);
|
1917 |
+
|
1918 |
+
}
|
1919 |
+
|
1920 |
+
if(isset($all_post_meta['saswp_review_schema_menu_'.$schema_id])){
|
1921 |
+
|
1922 |
+
$input1['itemReviewed']['hasMenu'] = esc_url($all_post_meta['saswp_review_schema_menu_'.$schema_id][0]);
|
1923 |
+
|
1924 |
+
}
|
1925 |
+
|
1926 |
+
if(isset($all_post_meta['saswp_review_schema_itemreviewed_sameas_'.$schema_id])){
|
1927 |
+
|
1928 |
+
$input1['itemReviewed']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_itemreviewed_sameas_'.$schema_id][0]);
|
1929 |
+
|
1930 |
+
}
|
1931 |
+
|
1932 |
+
|
1933 |
+
if(isset($all_post_meta['saswp_review_schema_director_'.$schema_id])){
|
1934 |
+
|
1935 |
+
$input1['itemReviewed']['director'] = esc_attr($all_post_meta['saswp_review_schema_director_'.$schema_id][0]);
|
1936 |
+
|
1937 |
+
}
|
1938 |
+
if(isset($all_post_meta['saswp_review_schema_date_created_'.$schema_id])){
|
1939 |
+
|
1940 |
+
$input1['itemReviewed']['dateCreated'] = isset($all_post_meta['saswp_review_schema_date_created_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_review_schema_date_created_'.$schema_id][0])):'';
|
1941 |
+
|
1942 |
+
}
|
1943 |
+
|
1944 |
+
$review_image = get_post_meta( get_the_ID(), 'saswp_review_schema_image_'.$schema_id.'_detail',true);
|
1945 |
+
|
1946 |
+
if(!empty($review_image)){
|
1947 |
+
|
1948 |
+
$input1['itemReviewed']['image']['@type'] = 'ImageObject';
|
1949 |
+
$input1['itemReviewed']['image']['url'] = esc_url($review_image['thumbnail']);
|
1950 |
+
$input1['itemReviewed']['image']['width'] = esc_attr($review_image['width']);
|
1951 |
+
$input1['itemReviewed']['image']['height'] = esc_attr($review_image['height']);
|
1952 |
+
|
1953 |
+
}
|
1954 |
+
|
1955 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_review_schema_street_address_'.$schema_id, 'saswp_array') !='' || saswp_remove_warnings($all_post_meta, 'saswp_review_schema_locality_'.$schema_id, 'saswp_array') !=''){
|
1956 |
+
|
1957 |
+
|
1958 |
+
$input1['itemReviewed']['address']['@type'] = 'PostalAddress';
|
1959 |
+
$input1['itemReviewed']['address']['streetAddress'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_street_address_'.$schema_id, 'saswp_array');
|
1960 |
+
$input1['itemReviewed']['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_locality_'.$schema_id, 'saswp_array');
|
1961 |
+
$input1['itemReviewed']['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_region_'.$schema_id, 'saswp_array');
|
1962 |
+
$input1['itemReviewed']['address']['postalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_postal_code_'.$schema_id, 'saswp_array');
|
1963 |
+
$input1['itemReviewed']['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_review_schema_country_'.$schema_id, 'saswp_array');
|
1964 |
+
|
1965 |
+
}
|
1966 |
+
|
1967 |
+
switch ($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]) {
|
1968 |
+
|
1969 |
+
case 'Article':
|
1970 |
+
|
1971 |
+
$markup = $service->saswp_schema_markup_generator($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
1972 |
+
$input1['itemReviewed'] = $markup;
|
1973 |
+
|
1974 |
+
break;
|
1975 |
+
case 'Adultentertainment':
|
1976 |
+
$input1 = $input1;
|
1977 |
+
break;
|
1978 |
+
case 'Blog':
|
1979 |
+
$input1 = $input1;
|
1980 |
+
break;
|
1981 |
+
case 'Book':
|
1982 |
+
|
1983 |
+
if(isset($all_post_meta['saswp_review_schema_isbn_'.$schema_id])){
|
1984 |
+
|
1985 |
+
$input1['itemReviewed']['isbn'] = $all_post_meta['saswp_review_schema_isbn_'.$schema_id];
|
1986 |
+
|
1987 |
+
}
|
1988 |
+
if($review_author) {
|
1989 |
+
|
1990 |
+
$input1['itemReviewed']['author']['@type'] = 'Person';
|
1991 |
+
$input1['itemReviewed']['author']['name'] = esc_attr($review_author);
|
1992 |
+
$input1['itemReviewed']['author']['sameAs'] = esc_url($all_post_meta['saswp_review_schema_author_sameas_'.$schema_id][0]);
|
1993 |
+
|
1994 |
+
}
|
1995 |
+
|
1996 |
+
break;
|
1997 |
+
case 'Casino':
|
1998 |
+
break;
|
1999 |
+
case 'Diet':
|
2000 |
+
break;
|
2001 |
+
case 'Episode':
|
2002 |
+
break;
|
2003 |
+
case 'ExercisePlan':
|
2004 |
+
break;
|
2005 |
+
case 'Game':
|
2006 |
+
break;
|
2007 |
+
case 'Movie':
|
2008 |
+
|
2009 |
+
if($review_author){
|
2010 |
+
|
2011 |
+
$input1['author']['sameAs'] = trailingslashit(get_permalink());
|
2012 |
+
|
2013 |
+
}
|
2014 |
+
|
2015 |
+
break;
|
2016 |
+
case 'MusicPlaylist':
|
2017 |
+
break;
|
2018 |
+
case 'MusicRecording':
|
2019 |
+
break;
|
2020 |
+
case 'Photograph':
|
2021 |
+
break;
|
2022 |
+
case 'Recipe':
|
2023 |
+
break;
|
2024 |
+
case 'Restaurant':
|
2025 |
+
break;
|
2026 |
+
case 'Series':
|
2027 |
+
break;
|
2028 |
+
case 'SoftwareApplication':
|
2029 |
+
break;
|
2030 |
+
case 'VisualArtwork':
|
2031 |
+
break;
|
2032 |
+
case 'WebPage':
|
2033 |
+
|
2034 |
+
$markup = $service->saswp_schema_markup_generator($all_post_meta['saswp_review_schema_item_type_'.$schema_id][0]);
|
2035 |
+
$input1['itemReviewed'] = $markup;
|
2036 |
+
|
2037 |
+
break;
|
2038 |
+
case 'WebSite':
|
2039 |
+
break;
|
2040 |
+
|
2041 |
+
default:
|
2042 |
+
$input1 = $input1;
|
2043 |
+
break;
|
2044 |
+
}
|
2045 |
+
|
2046 |
+
if(saswp_remove_warnings($all_post_meta, 'saswp_review_schema_enable_rating_'.$schema_id, 'saswp_array') == 1){
|
2047 |
+
|
2048 |
+
$input1['reviewRating'] = array(
|
2049 |
+
"@type" => "Rating",
|
2050 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'saswp_review_schema_rating_'.$schema_id, 'saswp_array'),
|
2051 |
+
"bestRating" => saswp_remove_warnings($all_post_meta, 'saswp_review_schema_review_count_'.$schema_id, 'saswp_array')
|
2052 |
+
);
|
2053 |
+
}
|
2054 |
+
unset($input1['aggregateRating']);
|
2055 |
+
|
2056 |
+
}
|
2057 |
+
|
2058 |
+
if( 'local_business' === $schema_type){
|
2059 |
+
|
2060 |
+
$operation_days = explode( "rn", esc_html( stripslashes(saswp_remove_warnings($all_post_meta, 'saswp_dayofweek_'.$schema_id, 'saswp_array'))) );;
|
2061 |
+
$business_sub_name = '';
|
2062 |
+
$business_type = saswp_remove_warnings($all_post_meta, 'saswp_business_type_'.$schema_id, 'saswp_array');
|
2063 |
+
$post_specific_obj = new saswp_post_specific();
|
2064 |
+
|
2065 |
+
if(array_key_exists($business_type, $post_specific_obj->_local_sub_business)){
|
2066 |
+
|
2067 |
+
$check_business_type = $post_specific_obj->_local_sub_business[$business_type];
|
2068 |
+
|
2069 |
+
if(!empty($check_business_type)){
|
2070 |
+
|
2071 |
+
$business_sub_name = saswp_remove_warnings($all_post_meta, 'saswp_business_name_'.$schema_id, 'saswp_array');
|
2072 |
+
|
2073 |
+
}
|
2074 |
+
|
2075 |
+
}
|
2076 |
+
|
2077 |
+
if($business_sub_name){
|
2078 |
+
|
2079 |
+
$local_business = $business_sub_name;
|
2080 |
+
|
2081 |
+
}else if($business_type){
|
2082 |
+
|
2083 |
+
$local_business = $business_type;
|
2084 |
+
|
2085 |
+
}else{
|
2086 |
+
|
2087 |
+
$local_business = 'LocalBusiness';
|
2088 |
+
|
2089 |
+
}
|
2090 |
+
|
2091 |
+
$local_image = get_post_meta( get_the_ID(), 'local_business_logo_'.$schema_id.'_detail',true);
|
2092 |
+
|
2093 |
+
$input1 = array(
|
2094 |
+
'@context' => saswp_context_url(),
|
2095 |
+
'@type' => $local_business ,
|
2096 |
+
'@id' => trailingslashit(get_permalink()).'#'. strtolower($local_business),
|
2097 |
+
'name' => saswp_remove_warnings($all_post_meta, 'local_business_name_'.$schema_id, 'saswp_array'),
|
2098 |
+
'url' => saswp_remove_warnings($all_post_meta, 'local_business_name_url_'.$schema_id, 'saswp_array'),
|
2099 |
+
'description' => saswp_remove_warnings($all_post_meta, 'local_business_description_'.$schema_id, 'saswp_array'),
|
2100 |
+
'image' => array(
|
2101 |
+
'@type' => 'ImageObject',
|
2102 |
+
'url' => saswp_remove_warnings($local_image, 'thumbnail', 'saswp_string'),
|
2103 |
+
'width' => saswp_remove_warnings($local_image, 'width', 'saswp_string'),
|
2104 |
+
'height' => saswp_remove_warnings($local_image, 'height', 'saswp_string'),
|
2105 |
+
),
|
2106 |
+
'address' => array(
|
2107 |
+
"@type" => "PostalAddress",
|
2108 |
+
"streetAddress" => saswp_remove_warnings($all_post_meta, 'local_street_address_'.$schema_id, 'saswp_array'),
|
2109 |
+
"addressLocality" => saswp_remove_warnings($all_post_meta, 'local_city_'.$schema_id, 'saswp_array'),
|
2110 |
+
"addressRegion" => saswp_remove_warnings($all_post_meta, 'local_state_'.$schema_id, 'saswp_array'),
|
2111 |
+
"postalCode" => saswp_remove_warnings($all_post_meta, 'local_postal_code_'.$schema_id, 'saswp_array'),
|
2112 |
+
),
|
2113 |
+
'telephone' => saswp_remove_warnings($all_post_meta, 'local_phone_'.$schema_id, 'saswp_array'),
|
2114 |
+
'openingHours' => $operation_days,
|
2115 |
+
);
|
2116 |
+
|
2117 |
+
|
2118 |
+
|
2119 |
+
if(isset($all_post_meta['local_enable_rating_'.$schema_id]) && saswp_remove_warnings($all_post_meta, 'local_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'local_review_count_'.$schema_id, 'saswp_array')){
|
2120 |
+
|
2121 |
+
$input1['aggregateRating'] = array(
|
2122 |
+
"@type" => "AggregateRating",
|
2123 |
+
"ratingValue" => saswp_remove_warnings($all_post_meta, 'local_rating_'.$schema_id, 'saswp_array'),
|
2124 |
+
"reviewCount" => saswp_remove_warnings($all_post_meta, 'local_review_count_'.$schema_id, 'saswp_array')
|
2125 |
+
);
|
2126 |
+
}
|
2127 |
+
|
2128 |
+
if(!empty($aggregateRating)){
|
2129 |
+
$input1['aggregateRating'] = $aggregateRating;
|
2130 |
+
}
|
2131 |
+
if(!empty($extra_theme_review)){
|
2132 |
+
$input1 = array_merge($input1, $extra_theme_review);
|
2133 |
+
}
|
2134 |
+
if(isset($all_post_meta['local_price_range_'.$schema_id][0])){
|
2135 |
+
$input1['priceRange'] = esc_attr($all_post_meta['local_price_range_'.$schema_id][0]);
|
2136 |
+
}
|
2137 |
+
|
2138 |
+
if(isset($all_post_meta['local_accepts_reservations_'.$schema_id][0])){
|
2139 |
+
$input1['acceptsReservations'] = esc_attr($all_post_meta['local_price_accepts_reservations_'.$schema_id][0]);
|
2140 |
+
}
|
2141 |
+
|
2142 |
+
if(isset($all_post_meta['local_serves_cuisine_'.$schema_id][0])){
|
2143 |
+
$input1['servesCuisine'] = esc_attr($all_post_meta['local_serves_cuisine_'.$schema_id][0]);
|
2144 |
+
}
|
2145 |
+
|
2146 |
+
//social fields starts here
|
2147 |
+
|
2148 |
+
$local_social = array();
|
2149 |
+
|
2150 |
+
if(isset($all_post_meta['local_facebook_'.$schema_id][0]) && $all_post_meta['local_facebook_'.$schema_id][0] !=''){
|
2151 |
+
$local_social[] = esc_url($all_post_meta['local_facebook_'.$schema_id][0]);
|
2152 |
+
}
|
2153 |
+
if(isset($all_post_meta['local_twitter_'.$schema_id][0]) && $all_post_meta['local_twitter_'.$schema_id][0] !=''){
|
2154 |
+
$local_social[] = esc_url($all_post_meta['local_twitter_'.$schema_id][0]);
|
2155 |
+
}
|
2156 |
+
if(isset($all_post_meta['local_instagram_'.$schema_id][0]) && $all_post_meta['local_instagram_'.$schema_id][0] !=''){
|
2157 |
+
$local_social[] = esc_url($all_post_meta['local_instagram_'.$schema_id][0]);
|
2158 |
+
}
|
2159 |
+
if(isset($all_post_meta['local_pinterest_'.$schema_id][0]) && $all_post_meta['local_pinterest_'.$schema_id][0] !=''){
|
2160 |
+
$local_social[] = esc_url($all_post_meta['local_pinterest_'.$schema_id][0]);
|
2161 |
+
}
|
2162 |
+
if(isset($all_post_meta['local_linkedin_'.$schema_id][0]) && $all_post_meta['local_linkedin_'.$schema_id][0] !=''){
|
2163 |
+
$local_social[] = esc_url($all_post_meta['local_linkedin_'.$schema_id][0]);
|
2164 |
+
}
|
2165 |
+
if(isset($all_post_meta['local_soundcloud_'.$schema_id][0]) && $all_post_meta['local_soundcloud_'.$schema_id][0] !=''){
|
2166 |
+
$local_social[] = esc_url($all_post_meta['local_soundcloud_'.$schema_id][0]);
|
2167 |
+
}
|
2168 |
+
if(isset($all_post_meta['local_tumblr_'.$schema_id][0]) && $all_post_meta['local_tumblr_'.$schema_id][0] !=''){
|
2169 |
+
$local_social[] = esc_url($all_post_meta['local_tumblr_'.$schema_id][0]);
|
2170 |
+
}
|
2171 |
+
if(isset($all_post_meta['local_youtube_'.$schema_id][0]) && $all_post_meta['local_youtube_'.$schema_id][0] !=''){
|
2172 |
+
$local_social[] = esc_url($all_post_meta['local_youtube_'.$schema_id][0]);
|
2173 |
+
}
|
2174 |
+
|
2175 |
+
if(!empty($local_social)){
|
2176 |
+
$input1['sameAs'] = $local_social;
|
2177 |
+
}
|
2178 |
+
//social fields ends here
|
2179 |
+
|
2180 |
+
if(isset($all_post_meta['local_menu_'.$schema_id][0])){
|
2181 |
+
$input1['hasMenu'] = esc_url($all_post_meta['local_menu_'.$schema_id][0]);
|
2182 |
+
}
|
2183 |
+
|
2184 |
+
if(isset($all_post_meta['local_hasmap_'.$schema_id][0])){
|
2185 |
+
$input1['hasMap'] = esc_url($all_post_meta['local_hasmap_'.$schema_id][0]);
|
2186 |
+
}
|
2187 |
+
|
2188 |
+
if(isset($all_post_meta['local_latitude_'.$schema_id][0]) && isset($all_post_meta['local_longitude_'.$schema_id][0])){
|
2189 |
+
|
2190 |
+
$input1['geo']['@type'] = 'GeoCoordinates';
|
2191 |
+
$input1['geo']['latitude'] = $all_post_meta['local_latitude_'.$schema_id][0];
|
2192 |
+
$input1['geo']['longitude'] = $all_post_meta['local_longitude_'.$schema_id][0];
|
2193 |
+
|
2194 |
+
}
|
2195 |
+
|
2196 |
+
|
2197 |
+
}
|
2198 |
+
|
2199 |
+
|
2200 |
+
if($schema_type != 'Review'){
|
2201 |
+
|
2202 |
+
//kk star rating
|
2203 |
+
|
2204 |
+
$kkstar_aggregateRating = saswp_extract_kk_star_ratings();
|
2205 |
+
|
2206 |
+
if(!empty($kkstar_aggregateRating)){
|
2207 |
+
$input1['aggregateRating'] = $kkstar_aggregateRating;
|
2208 |
+
}
|
2209 |
+
|
2210 |
+
//wp post-rating star rating
|
2211 |
+
|
2212 |
+
$wp_post_rating_ar = saswp_extract_wp_post_ratings();
|
2213 |
+
|
2214 |
+
if(!empty($wp_post_rating_ar)){
|
2215 |
+
$input1['aggregateRating'] = $wp_post_rating_ar;
|
2216 |
+
}
|
2217 |
+
|
2218 |
+
|
2219 |
+
}
|
2220 |
+
|
2221 |
+
|
2222 |
+
if( !empty($input1) && !isset($input1['image'])){
|
2223 |
+
|
2224 |
+
$service_object = new saswp_output_service();
|
2225 |
+
$input2 = $service_object->saswp_get_fetaure_image();
|
2226 |
+
|
2227 |
+
if(!empty($input2)){
|
2228 |
+
|
2229 |
+
$input1 = array_merge($input1,$input2);
|
2230 |
+
|
2231 |
+
}
|
2232 |
+
}
|
2233 |
+
|
2234 |
+
$input1 = apply_filters('saswp_modify_woocommerce_membership_schema', $input1);
|
2235 |
+
|
2236 |
+
if(!empty($input1)){
|
2237 |
+
|
2238 |
+
$all_schema_output[] = $input1;
|
2239 |
+
|
2240 |
+
}
|
2241 |
+
}
|
2242 |
+
}
|
2243 |
+
}
|
2244 |
+
|
2245 |
+
return apply_filters('saswp_modify_schema_output', $all_schema_output);
|
2246 |
+
}
|
output/review-output.php
CHANGED
@@ -77,7 +77,7 @@ Class saswp_review_output{
|
|
77 |
$total_score = esc_attr(number_format((float)$overall_rating, 2, '.', ''));
|
78 |
|
79 |
$input1 = array(
|
80 |
-
'@context' =>
|
81 |
'@type' => 'Review',
|
82 |
'dateCreated' => esc_html($date),
|
83 |
'datePublished' => esc_html($date),
|
77 |
$total_score = esc_attr(number_format((float)$overall_rating, 2, '.', ''));
|
78 |
|
79 |
$input1 = array(
|
80 |
+
'@context' => saswp_context_url(),
|
81 |
'@type' => 'Review',
|
82 |
'dateCreated' => esc_html($date),
|
83 |
'datePublished' => esc_html($date),
|
output/service.php
CHANGED
@@ -14,7 +14,6 @@ Class saswp_output_service{
|
|
14 |
|
15 |
private $_meta_list = null;
|
16 |
|
17 |
-
|
18 |
public function __construct() {
|
19 |
|
20 |
if($this->_meta_list == null){
|
@@ -131,8 +130,10 @@ Class saswp_output_service{
|
|
131 |
|
132 |
public function saswp_get_meta_list_value($key, $field, $schema_post_id){
|
133 |
|
134 |
-
|
135 |
-
|
|
|
|
|
136 |
|
137 |
$response = null;
|
138 |
|
@@ -196,7 +197,7 @@ Class saswp_output_service{
|
|
196 |
|
197 |
break;
|
198 |
case 'custom_field':
|
199 |
-
$response =
|
200 |
break;
|
201 |
case 'featured_img':
|
202 |
$image_id = get_post_thumbnail_id();
|
@@ -242,7 +243,8 @@ Class saswp_output_service{
|
|
242 |
}
|
243 |
|
244 |
default:
|
245 |
-
|
|
|
246 |
|
247 |
break;
|
248 |
}
|
@@ -312,6 +314,35 @@ Class saswp_output_service{
|
|
312 |
$input1['Publisher']['logo']['url'] = $custom_fields['saswp_article_organization_logo'];
|
313 |
}
|
314 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
|
316 |
case 'local_business':
|
317 |
|
@@ -846,16 +877,31 @@ Class saswp_output_service{
|
|
846 |
}
|
847 |
if(isset($custom_fields['saswp_product_availability'])){
|
848 |
$input1['offers']['availability'] = $custom_fields['saswp_product_availability'];
|
|
|
|
|
|
|
849 |
}
|
850 |
if(isset($custom_fields['saswp_product_price'])){
|
851 |
$input1['offers']['price'] = $custom_fields['saswp_product_price'];
|
|
|
|
|
|
|
|
|
|
|
852 |
}
|
853 |
if(isset($custom_fields['saswp_product_currency'])){
|
854 |
$input1['offers']['priceCurrency'] = $custom_fields['saswp_product_currency'];
|
|
|
855 |
}
|
856 |
if(isset($custom_fields['saswp_product_priceValidUntil'])){
|
857 |
$input1['offers']['priceValidUntil'] = $custom_fields['saswp_product_priceValidUntil'];
|
858 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
859 |
}
|
860 |
break;
|
861 |
|
@@ -1958,7 +2004,7 @@ Class saswp_output_service{
|
|
1958 |
|
1959 |
$dw_qa['suggestedAnswer'] = $suggested_answer;
|
1960 |
|
1961 |
-
$qa_page['@context'] =
|
1962 |
$qa_page['@type'] = 'QAPage';
|
1963 |
$qa_page['mainEntity'] = $dw_qa;
|
1964 |
return $qa_page;
|
@@ -2059,7 +2105,7 @@ Class saswp_output_service{
|
|
2059 |
$dw_qa['acceptedAnswer'] = $accepted_answer;
|
2060 |
$dw_qa['suggestedAnswer'] = $suggested_answer;
|
2061 |
|
2062 |
-
$qa_page['@context'] =
|
2063 |
$qa_page['@type'] = 'QAPage';
|
2064 |
$qa_page['mainEntity'] = $dw_qa;
|
2065 |
}
|
@@ -2301,19 +2347,20 @@ Class saswp_output_service{
|
|
2301 |
case 'Product':
|
2302 |
|
2303 |
$meta_field = array(
|
2304 |
-
'
|
2305 |
-
'
|
2306 |
-
'
|
2307 |
-
'
|
2308 |
-
'
|
2309 |
-
'
|
2310 |
-
'
|
2311 |
-
'
|
2312 |
-
'
|
2313 |
-
'
|
2314 |
-
'
|
2315 |
-
'
|
2316 |
-
'
|
|
|
2317 |
);
|
2318 |
break;
|
2319 |
|
@@ -2696,6 +2743,30 @@ Class saswp_output_service{
|
|
2696 |
'saswp_mc_schema_diagnosis_name' => 'Diagnosis Name'
|
2697 |
);
|
2698 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2699 |
|
2700 |
default:
|
2701 |
break;
|
@@ -2752,7 +2823,7 @@ Class saswp_output_service{
|
|
2752 |
case 'TechArticle':
|
2753 |
|
2754 |
$input1 = array(
|
2755 |
-
'@context' =>
|
2756 |
'@type' => 'TechArticle',
|
2757 |
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
2758 |
'url' => get_permalink(),
|
@@ -2781,7 +2852,7 @@ Class saswp_output_service{
|
|
2781 |
|
2782 |
case 'Article':
|
2783 |
$input1 = array(
|
2784 |
-
'@context' =>
|
2785 |
'@type' => 'Article',
|
2786 |
'@id' => trailingslashit(get_permalink()).'#article',
|
2787 |
'url' => get_permalink(),
|
@@ -2815,7 +2886,7 @@ Class saswp_output_service{
|
|
2815 |
}
|
2816 |
|
2817 |
$input1 = array(
|
2818 |
-
'@context' =>
|
2819 |
'@type' => 'WebPage' ,
|
2820 |
'@id' => trailingslashit(get_permalink()).'#webpage',
|
2821 |
'name' => saswp_get_the_title(),
|
@@ -3068,8 +3139,7 @@ Class saswp_output_service{
|
|
3068 |
|
3069 |
}
|
3070 |
|
3071 |
-
}
|
3072 |
-
|
3073 |
|
3074 |
if($site_name){
|
3075 |
|
14 |
|
15 |
private $_meta_list = null;
|
16 |
|
|
|
17 |
public function __construct() {
|
18 |
|
19 |
if($this->_meta_list == null){
|
130 |
|
131 |
public function saswp_get_meta_list_value($key, $field, $schema_post_id){
|
132 |
|
133 |
+
global $post;
|
134 |
+
|
135 |
+
$fixed_text = get_post_meta($schema_post_id, 'saswp_fixed_text', true) ;
|
136 |
+
$cus_field = get_post_meta($schema_post_id, 'saswp_custom_meta_field', true);
|
137 |
|
138 |
$response = null;
|
139 |
|
197 |
|
198 |
break;
|
199 |
case 'custom_field':
|
200 |
+
$response = get_post_meta($post->ID, $cus_field[$key], true);
|
201 |
break;
|
202 |
case 'featured_img':
|
203 |
$image_id = get_post_thumbnail_id();
|
243 |
}
|
244 |
|
245 |
default:
|
246 |
+
|
247 |
+
$response = get_post_meta($post->ID, $field, true );
|
248 |
|
249 |
break;
|
250 |
}
|
314 |
$input1['Publisher']['logo']['url'] = $custom_fields['saswp_article_organization_logo'];
|
315 |
}
|
316 |
break;
|
317 |
+
|
318 |
+
case 'HowTo':
|
319 |
+
|
320 |
+
if(isset($custom_fields['saswp_howto_schema_name'])){
|
321 |
+
$input1['name'] = $custom_fields['saswp_howto_schema_name'];
|
322 |
+
}
|
323 |
+
if(isset($custom_fields['saswp_howto_schema_description'])){
|
324 |
+
$input1['description'] = $custom_fields['saswp_howto_schema_description'];
|
325 |
+
}
|
326 |
+
if(isset($custom_fields['saswp_howto_ec_schema_currency'])){
|
327 |
+
$input1['estimatedCost']['currency'] = $custom_fields['saswp_howto_ec_schema_currency'];
|
328 |
+
}
|
329 |
+
if(isset($custom_fields['saswp_howto_ec_schema_value'])){
|
330 |
+
$input1['estimatedCost']['value'] = $custom_fields['saswp_howto_ec_schema_value'];
|
331 |
+
}
|
332 |
+
if(isset($custom_fields['saswp_howto_schema_totaltime'])){
|
333 |
+
$input1['totalTime'] = $custom_fields['saswp_howto_schema_totaltime'];
|
334 |
+
}
|
335 |
+
if(isset($custom_fields['saswp_howto_ec_schema_date_published'])){
|
336 |
+
$input1['datePublished'] = $custom_fields['saswp_howto_ec_schema_date_published'];
|
337 |
+
}
|
338 |
+
if(isset($custom_fields['saswp_howto_ec_schema_date_modified'])){
|
339 |
+
$input1['dateModified'] = $custom_fields['saswp_howto_ec_schema_date_modified'];
|
340 |
+
}
|
341 |
+
if(isset($custom_fields['saswp_howto_schema_image'])){
|
342 |
+
$input1['image'] = $custom_fields['saswp_howto_schema_image'];
|
343 |
+
}
|
344 |
+
|
345 |
+
break;
|
346 |
|
347 |
case 'local_business':
|
348 |
|
877 |
}
|
878 |
if(isset($custom_fields['saswp_product_availability'])){
|
879 |
$input1['offers']['availability'] = $custom_fields['saswp_product_availability'];
|
880 |
+
if(isset($custom_fields['saswp_product_url'])){
|
881 |
+
$input1['offers']['url'] = $custom_fields['saswp_product_url'];
|
882 |
+
}
|
883 |
}
|
884 |
if(isset($custom_fields['saswp_product_price'])){
|
885 |
$input1['offers']['price'] = $custom_fields['saswp_product_price'];
|
886 |
+
|
887 |
+
if(isset($custom_fields['saswp_product_url'])){
|
888 |
+
$input1['offers']['url'] = $custom_fields['saswp_product_url'];
|
889 |
+
}
|
890 |
+
|
891 |
}
|
892 |
if(isset($custom_fields['saswp_product_currency'])){
|
893 |
$input1['offers']['priceCurrency'] = $custom_fields['saswp_product_currency'];
|
894 |
+
$input1['offers']['url'] = $custom_fields['saswp_product_url'];
|
895 |
}
|
896 |
if(isset($custom_fields['saswp_product_priceValidUntil'])){
|
897 |
$input1['offers']['priceValidUntil'] = $custom_fields['saswp_product_priceValidUntil'];
|
898 |
+
|
899 |
+
}
|
900 |
+
if(isset($custom_fields['saswp_product_condition'])){
|
901 |
+
$input1['offers']['itemCondition'] = $custom_fields['saswp_product_condition'];
|
902 |
+
}
|
903 |
+
if(isset($custom_fields['saswp_product_sku'])){
|
904 |
+
$input1['sku'] = $custom_fields['saswp_product_sku'];
|
905 |
}
|
906 |
break;
|
907 |
|
2004 |
|
2005 |
$dw_qa['suggestedAnswer'] = $suggested_answer;
|
2006 |
|
2007 |
+
$qa_page['@context'] = saswp_context_url();
|
2008 |
$qa_page['@type'] = 'QAPage';
|
2009 |
$qa_page['mainEntity'] = $dw_qa;
|
2010 |
return $qa_page;
|
2105 |
$dw_qa['acceptedAnswer'] = $accepted_answer;
|
2106 |
$dw_qa['suggestedAnswer'] = $suggested_answer;
|
2107 |
|
2108 |
+
$qa_page['@context'] = saswp_context_url();
|
2109 |
$qa_page['@type'] = 'QAPage';
|
2110 |
$qa_page['mainEntity'] = $dw_qa;
|
2111 |
}
|
2347 |
case 'Product':
|
2348 |
|
2349 |
$meta_field = array(
|
2350 |
+
'saswp_product_url' => 'URL',
|
2351 |
+
'saswp_product_name' => 'Name',
|
2352 |
+
'saswp_product_description' => 'Description',
|
2353 |
+
'saswp_product_image' => 'Image',
|
2354 |
+
'saswp_product_brand' => 'Brand Name',
|
2355 |
+
'saswp_product_price' => 'Price',
|
2356 |
+
'saswp_product_priceValidUntil' => 'Price Valid Until',
|
2357 |
+
'saswp_product_currency' => 'Currency',
|
2358 |
+
'saswp_product_availability' => 'Availability',
|
2359 |
+
'saswp_product_condition' => 'Product Condition',
|
2360 |
+
'saswp_product_sku' => 'SKU',
|
2361 |
+
'saswp_product_mpn' => 'MPN',
|
2362 |
+
'saswp_product_isbn' => 'ISBN',
|
2363 |
+
'saswp_product_gtin8' => 'GTIN 8',
|
2364 |
);
|
2365 |
break;
|
2366 |
|
2743 |
'saswp_mc_schema_diagnosis_name' => 'Diagnosis Name'
|
2744 |
);
|
2745 |
break;
|
2746 |
+
|
2747 |
+
case 'DataFeed':
|
2748 |
+
|
2749 |
+
$meta_field = array(
|
2750 |
+
'saswp_data_feed_schema_name' => 'Name',
|
2751 |
+
'saswp_data_feed_schema_description' => 'Description',
|
2752 |
+
'saswp_data_feed_schema_date_modified' => 'DateModified',
|
2753 |
+
'saswp_data_feed_schema_date_license' => 'License',
|
2754 |
+
);
|
2755 |
+
break;
|
2756 |
+
|
2757 |
+
case 'HowTo':
|
2758 |
+
|
2759 |
+
$meta_field = array(
|
2760 |
+
'saswp_howto_schema_name' => 'Name',
|
2761 |
+
'saswp_howto_schema_description' => 'Description',
|
2762 |
+
'saswp_howto_schema_image' => 'Image',
|
2763 |
+
'saswp_howto_ec_schema_currency' => 'Estimated Cost Currency',
|
2764 |
+
'saswp_howto_ec_schema_value' => 'Estimated Cost Value',
|
2765 |
+
'saswp_howto_schema_totaltime' => 'Total Time',
|
2766 |
+
'saswp_howto_ec_schema_date_published' => 'Date Published',
|
2767 |
+
'saswp_howto_ec_schema_date_modified' => 'Date Modified',
|
2768 |
+
);
|
2769 |
+
break;
|
2770 |
|
2771 |
default:
|
2772 |
break;
|
2823 |
case 'TechArticle':
|
2824 |
|
2825 |
$input1 = array(
|
2826 |
+
'@context' => saswp_context_url(),
|
2827 |
'@type' => 'TechArticle',
|
2828 |
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
2829 |
'url' => get_permalink(),
|
2852 |
|
2853 |
case 'Article':
|
2854 |
$input1 = array(
|
2855 |
+
'@context' => saswp_context_url(),
|
2856 |
'@type' => 'Article',
|
2857 |
'@id' => trailingslashit(get_permalink()).'#article',
|
2858 |
'url' => get_permalink(),
|
2886 |
}
|
2887 |
|
2888 |
$input1 = array(
|
2889 |
+
'@context' => saswp_context_url(),
|
2890 |
'@type' => 'WebPage' ,
|
2891 |
'@id' => trailingslashit(get_permalink()).'#webpage',
|
2892 |
'name' => saswp_get_the_title(),
|
3139 |
|
3140 |
}
|
3141 |
|
3142 |
+
}
|
|
|
3143 |
|
3144 |
if($site_name){
|
3145 |
|
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.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -111,6 +111,16 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
= 1.9.3 (30 Aug 2019) =
|
116 |
|
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.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.9.4 (03 Sept 2019) =
|
115 |
+
|
116 |
+
* Added: DataFeed Schema type #411
|
117 |
+
* Enhancement: Remove button to modified Schema Output item #456.
|
118 |
+
* Bug Fixed: Compatibility code for The SEO Framework results in invalid output. #452
|
119 |
+
* Bug Fixed: Custom fields for products has the wrong identifier. #453
|
120 |
+
* Bug Fixed: Custom fields does not fetch post values #454
|
121 |
+
* Bug Fixed: Add field in Modify Schema Output defaults to null #455
|
122 |
+
* Bug Fixed: @context property value should be changed based on site ssl certificate #447
|
123 |
+
|
124 |
|
125 |
= 1.9.3 (30 Aug 2019) =
|
126 |
|
reviews/reviews_service.php
CHANGED
@@ -50,7 +50,7 @@ class saswp_reviews_service {
|
|
50 |
$modified_date = get_the_modified_date("Y-m-d\TH:i:s\Z");
|
51 |
|
52 |
$input1 = array(
|
53 |
-
'@context' =>
|
54 |
'@type' => 'Review',
|
55 |
'dateCreated' => esc_html($date),
|
56 |
'datePublished' => esc_html($date),
|
50 |
$modified_date = get_the_modified_date("Y-m-d\TH:i:s\Z");
|
51 |
|
52 |
$input1 = array(
|
53 |
+
'@context' => saswp_context_url(),
|
54 |
'@type' => 'Review',
|
55 |
'dateCreated' => esc_html($date),
|
56 |
'datePublished' => esc_html($date),
|
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.
|
6 |
Text Domain: schema-and-structured-data-for-wp
|
7 |
Domain Path: /languages
|
8 |
Author: Magazine3
|
@@ -13,7 +13,7 @@ License: GPL2
|
|
13 |
// Exit if accessed directly.
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
-
define('SASWP_VERSION', '1.9.
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
@@ -28,6 +28,7 @@ define('SASWP_EDD_STORE_URL', 'http://structured-data-for-wp.com/');
|
|
28 |
// including the output file
|
29 |
require_once SASWP_DIR_NAME .'/output/function.php';
|
30 |
require_once SASWP_DIR_NAME .'/output/output.php';
|
|
|
31 |
|
32 |
if ( ! function_exists( 'is_plugin_active' ) )
|
33 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
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.4
|
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.4');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
28 |
// including the output file
|
29 |
require_once SASWP_DIR_NAME .'/output/function.php';
|
30 |
require_once SASWP_DIR_NAME .'/output/output.php';
|
31 |
+
require_once SASWP_DIR_NAME .'/output/output_post_specific.php';
|
32 |
|
33 |
if ( ! function_exists( 'is_plugin_active' ) )
|
34 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
view/paywall.php
CHANGED
@@ -42,11 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
42 |
wp_nonce_field( 'saswp_schema_options_nonce', 'saswp_schema_options_nonce' );
|
43 |
|
44 |
$schema_options = esc_sql ( get_post_meta($post->ID, 'schema_options', true) );
|
45 |
-
|
46 |
-
$meta_list = esc_sql ( get_post_meta($post->ID, 'saswp_meta_list_val', true) );
|
47 |
-
$fixed_text = esc_sql ( get_post_meta($post->ID, 'saswp_fixed_text', true) );
|
48 |
-
$cus_field = esc_sql ( get_post_meta($post->ID, 'saswp_custom_meta_field', true) );
|
49 |
-
|
50 |
?>
|
51 |
|
52 |
<div class="misc-pub-section">
|
@@ -77,110 +73,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
77 |
</table>
|
78 |
|
79 |
</div>
|
80 |
-
<!-- custom fields for schema output starts here -->
|
81 |
|
82 |
-
<div class="misc-pub-section">
|
83 |
-
<table class="option-table-class">
|
84 |
-
<tr><td><label><?php echo esc_html__( 'Modify Schema Output', 'schema-and-structured-data-for-wp' ) ?></label></td><td><input type="checkbox" id="saswp_enable_custom_field" name="saswp_enable_custom_field" value="1" <?php if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field']==1){echo 'checked'; }?>></td></tr>
|
85 |
-
</table>
|
86 |
-
<div class="saswp-custom-fields-div" <?php if(!isset($schema_options['enable_custom_field']) || $schema_options['enable_custom_field'] ==0){echo 'style="display:none;"'; }?>>
|
87 |
-
<table class="saswp-custom-fields-table">
|
88 |
-
|
89 |
-
<?php
|
90 |
-
|
91 |
-
if(!empty($meta_list)){
|
92 |
-
|
93 |
-
$schema_type = esc_sql ( get_post_meta($post->ID, 'schema_type', true) );
|
94 |
-
|
95 |
-
$service = new saswp_output_service();
|
96 |
-
$meta_fields = $service->saswp_get_all_schema_type_fields($schema_type);
|
97 |
-
|
98 |
-
foreach($meta_list as $fieldkey => $fieldval){
|
99 |
-
|
100 |
-
$option = '';
|
101 |
-
echo '<tr>';
|
102 |
-
echo '<td><select class="saswp-custom-fields-name">';
|
103 |
-
|
104 |
-
foreach ($meta_fields as $key =>$val){
|
105 |
-
|
106 |
-
if( $fieldkey == $key){
|
107 |
-
|
108 |
-
$option .='<option value="'.esc_attr($key).'" selected>'.esc_attr($val).'</option>';
|
109 |
-
|
110 |
-
}else{
|
111 |
-
|
112 |
-
$option .='<option value="'.esc_attr($key).'">'.esc_attr($val).'</option>';
|
113 |
-
|
114 |
-
}
|
115 |
-
|
116 |
-
}
|
117 |
-
|
118 |
-
|
119 |
-
echo $option;
|
120 |
-
echo '</select>';
|
121 |
-
echo '</td>';
|
122 |
-
|
123 |
-
$list_html = '';
|
124 |
-
$meta_list_fields = include(SASWP_DIR_NAME . '/core/array-list/meta_list.php');
|
125 |
-
|
126 |
-
$meta_list_arr = $meta_list_fields['text'];
|
127 |
-
|
128 |
-
if (strpos($fieldkey, 'image') !== false) {
|
129 |
-
$meta_list_arr = $meta_list_fields['image'];
|
130 |
-
}
|
131 |
-
|
132 |
-
foreach($meta_list_arr as $list){
|
133 |
-
|
134 |
-
$list_html.= '<optgroup label="'.$list['label'].'">';
|
135 |
-
|
136 |
-
foreach ($list['meta-list'] as $key => $val){
|
137 |
-
|
138 |
-
if( $fieldval == $key){
|
139 |
-
$list_html.= '<option value="'.esc_attr($key).'" selected>'.esc_html($val).'</option>';
|
140 |
-
}else{
|
141 |
-
$list_html.= '<option value="'.esc_attr($key).'">'.esc_html($val).'</option>';
|
142 |
-
}
|
143 |
-
|
144 |
-
}
|
145 |
-
|
146 |
-
$list_html.= '</optgroup>';
|
147 |
-
|
148 |
-
}
|
149 |
-
echo '<td>';
|
150 |
-
echo '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['.$fieldkey.']">';
|
151 |
-
echo $list_html;
|
152 |
-
echo '</select>';
|
153 |
-
echo '</td>';
|
154 |
-
|
155 |
-
|
156 |
-
if($fieldval == 'manual_text'){
|
157 |
-
echo '<td><input type="text" name="saswp_fixed_text['.esc_attr($fieldkey).']" value="'.esc_html($fixed_text[$fieldkey]).'"></td>';
|
158 |
-
}
|
159 |
-
|
160 |
-
if($fieldval == 'custom_field'){
|
161 |
-
echo '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['.esc_attr($fieldkey).']">';
|
162 |
-
echo '<option value="'.esc_attr($cus_field[$fieldkey]).'">'.preg_replace( '/^_/', '', esc_html( str_replace( '_', ' ', $cus_field[$fieldkey] ) ) ).'</option>';
|
163 |
-
echo '</select></td>';
|
164 |
-
}
|
165 |
-
|
166 |
-
echo '</tr>';
|
167 |
-
|
168 |
-
}
|
169 |
-
|
170 |
-
}
|
171 |
-
|
172 |
-
?>
|
173 |
-
|
174 |
-
|
175 |
-
</table>
|
176 |
-
<table class="option-table-class">
|
177 |
-
<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>
|
178 |
-
</table>
|
179 |
-
|
180 |
-
</div>
|
181 |
-
|
182 |
-
</div>
|
183 |
-
<!-- custom fields for schema output ends here -->
|
184 |
<?php
|
185 |
}
|
186 |
|
42 |
wp_nonce_field( 'saswp_schema_options_nonce', 'saswp_schema_options_nonce' );
|
43 |
|
44 |
$schema_options = esc_sql ( get_post_meta($post->ID, 'schema_options', true) );
|
45 |
+
|
|
|
|
|
|
|
|
|
46 |
?>
|
47 |
|
48 |
<div class="misc-pub-section">
|
73 |
</table>
|
74 |
|
75 |
</div>
|
|
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
<?php
|
78 |
}
|
79 |
|
view/post_specific.php
CHANGED
@@ -21,9 +21,15 @@ class saswp_post_specific {
|
|
21 |
public $_local_sub_business = array();
|
22 |
|
23 |
private $schema_type_element = array(
|
|
|
|
|
|
|
24 |
'FAQ' => array(
|
25 |
'faq-question' => 'faq_question',
|
26 |
),
|
|
|
|
|
|
|
27 |
'HowTo' => array(
|
28 |
'how-to-supply' => 'howto_supply',
|
29 |
'how-to-tool' => 'howto_tool',
|
@@ -209,6 +215,56 @@ class saswp_post_specific {
|
|
209 |
$meta_fields = array();
|
210 |
switch ($meta_name) {
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
case 'howto_supply':
|
213 |
|
214 |
$meta_fields = array(
|
@@ -436,9 +492,7 @@ class saswp_post_specific {
|
|
436 |
$label = '<label for="' . $meta_field['name'] . '">' . esc_html__( $meta_field['label'], 'schema-and-structured-data-for-wp' ) . '</label>';
|
437 |
|
438 |
switch ( $meta_field['type'] ) {
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
case 'media':
|
443 |
$name = $meta_field['name'].'_'.$index.'_'.$schema_id;
|
444 |
|
@@ -502,7 +556,7 @@ class saswp_post_specific {
|
|
502 |
|
503 |
$class = '';
|
504 |
|
505 |
-
if (strpos($meta_field['name'].'_'.$index.'_'.$schema_id, 'published_date') !== false){
|
506 |
|
507 |
$class = 'class="saswp-datepicker-picker"';
|
508 |
}
|
@@ -557,7 +611,7 @@ class saswp_post_specific {
|
|
557 |
$i = 0;
|
558 |
foreach ($howto_supply as $supply){
|
559 |
|
560 |
-
$supply_html .= '<div class="saswp-'.$key.'-table-div" data-id="'.$i.'">';
|
561 |
$supply_html .= '<a class="saswp-table-close">X</a>';
|
562 |
$supply_html .= $this->saswp_get_dynamic_html($schema_id, $value, $i, $supply);
|
563 |
$supply_html .= '</div>';
|
@@ -2170,13 +2224,7 @@ class saswp_post_specific {
|
|
2170 |
'id' => 'saswp_event_schema_image_'.$schema_id,
|
2171 |
'type' => 'media',
|
2172 |
'default' => $event_schema_details['saswp_event_schema_image']['url']
|
2173 |
-
),
|
2174 |
-
array(
|
2175 |
-
'label' => 'Performer Name',
|
2176 |
-
'id' => 'saswp_event_schema_performer_name_'.$schema_id,
|
2177 |
-
'type' => 'text',
|
2178 |
-
'default' => $event_schema_details['saswp_event_schema_performer_name']
|
2179 |
-
),
|
2180 |
array(
|
2181 |
'label' => 'Price',
|
2182 |
'id' => 'saswp_event_schema_price_'.$schema_id,
|
@@ -4431,6 +4479,32 @@ class saswp_post_specific {
|
|
4431 |
);
|
4432 |
break;
|
4433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4434 |
default:
|
4435 |
break;
|
4436 |
}
|
21 |
public $_local_sub_business = array();
|
22 |
|
23 |
private $schema_type_element = array(
|
24 |
+
'DataFeed' => array(
|
25 |
+
'feed_element' => 'feed_element',
|
26 |
+
),
|
27 |
'FAQ' => array(
|
28 |
'faq-question' => 'faq_question',
|
29 |
),
|
30 |
+
'Event' => array(
|
31 |
+
'performer' => 'performer',
|
32 |
+
),
|
33 |
'HowTo' => array(
|
34 |
'how-to-supply' => 'howto_supply',
|
35 |
'how-to-tool' => 'howto_tool',
|
215 |
$meta_fields = array();
|
216 |
switch ($meta_name) {
|
217 |
|
218 |
+
case 'feed_element':
|
219 |
+
|
220 |
+
$meta_fields = array(
|
221 |
+
|
222 |
+
array(
|
223 |
+
'label' => 'Date Created',
|
224 |
+
'name' => 'saswp_feed_element_date_created',
|
225 |
+
'type' => 'text',
|
226 |
+
),
|
227 |
+
array(
|
228 |
+
'label' => 'Feed Element Name',
|
229 |
+
'name' => 'saswp_feed_element_name',
|
230 |
+
'type' => 'text',
|
231 |
+
),
|
232 |
+
array(
|
233 |
+
'label' => 'Feed Element email',
|
234 |
+
'name' => 'saswp_feed_element_email',
|
235 |
+
'type' => 'text',
|
236 |
+
)
|
237 |
+
);
|
238 |
+
|
239 |
+
break;
|
240 |
+
|
241 |
+
case 'performer':
|
242 |
+
|
243 |
+
$meta_fields = array(
|
244 |
+
|
245 |
+
array(
|
246 |
+
'label' => 'Performer Type',
|
247 |
+
'name' => 'saswp_event_performer_type',
|
248 |
+
'type' => 'select',
|
249 |
+
'options' => array(
|
250 |
+
'MusicGroup' => 'MusicGroup',
|
251 |
+
'Person' => 'Person'
|
252 |
+
)
|
253 |
+
),
|
254 |
+
array(
|
255 |
+
'label' => 'Performer Name',
|
256 |
+
'name' => 'saswp_event_performer_name',
|
257 |
+
'type' => 'text',
|
258 |
+
),
|
259 |
+
array(
|
260 |
+
'label' => 'Performer URL',
|
261 |
+
'name' => 'saswp_event_performer_url',
|
262 |
+
'type' => 'text',
|
263 |
+
)
|
264 |
+
);
|
265 |
+
|
266 |
+
break;
|
267 |
+
|
268 |
case 'howto_supply':
|
269 |
|
270 |
$meta_fields = array(
|
492 |
$label = '<label for="' . $meta_field['name'] . '">' . esc_html__( $meta_field['label'], 'schema-and-structured-data-for-wp' ) . '</label>';
|
493 |
|
494 |
switch ( $meta_field['type'] ) {
|
495 |
+
|
|
|
|
|
496 |
case 'media':
|
497 |
$name = $meta_field['name'].'_'.$index.'_'.$schema_id;
|
498 |
|
556 |
|
557 |
$class = '';
|
558 |
|
559 |
+
if ((strpos($meta_field['name'].'_'.$index.'_'.$schema_id, 'published_date') !== false) || (strpos($meta_field['name'].'_'.$index.'_'.$schema_id, 'date_created') !== false)){
|
560 |
|
561 |
$class = 'class="saswp-datepicker-picker"';
|
562 |
}
|
611 |
$i = 0;
|
612 |
foreach ($howto_supply as $supply){
|
613 |
|
614 |
+
$supply_html .= '<div class="saswp-'.$key.'-table-div saswp-dynamic-properties" data-id="'.$i.'">';
|
615 |
$supply_html .= '<a class="saswp-table-close">X</a>';
|
616 |
$supply_html .= $this->saswp_get_dynamic_html($schema_id, $value, $i, $supply);
|
617 |
$supply_html .= '</div>';
|
2224 |
'id' => 'saswp_event_schema_image_'.$schema_id,
|
2225 |
'type' => 'media',
|
2226 |
'default' => $event_schema_details['saswp_event_schema_image']['url']
|
2227 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
2228 |
array(
|
2229 |
'label' => 'Price',
|
2230 |
'id' => 'saswp_event_schema_price_'.$schema_id,
|
4479 |
);
|
4480 |
break;
|
4481 |
|
4482 |
+
case 'DataFeed':
|
4483 |
+
|
4484 |
+
$meta_field = array(
|
4485 |
+
array(
|
4486 |
+
'label' => 'Name',
|
4487 |
+
'id' => 'saswp_data_feed_schema_name_'.$schema_id,
|
4488 |
+
'type' => 'text',
|
4489 |
+
),
|
4490 |
+
array(
|
4491 |
+
'label' => 'Description',
|
4492 |
+
'id' => 'saswp_data_feed_schema_description_'.$schema_id,
|
4493 |
+
'type' => 'text',
|
4494 |
+
),
|
4495 |
+
array(
|
4496 |
+
'label' => 'DateModified',
|
4497 |
+
'id' => 'saswp_data_feed_schema_date_modified_'.$schema_id,
|
4498 |
+
'type' => 'text',
|
4499 |
+
),
|
4500 |
+
array(
|
4501 |
+
'label' => 'License',
|
4502 |
+
'id' => 'saswp_data_feed_schema_license_'.$schema_id,
|
4503 |
+
'type' => 'text',
|
4504 |
+
)
|
4505 |
+
);
|
4506 |
+
break;
|
4507 |
+
|
4508 |
default:
|
4509 |
break;
|
4510 |
}
|
view/schema_type.php
CHANGED
@@ -590,7 +590,14 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
590 |
$product_details = array();
|
591 |
$event_details = array();
|
592 |
|
|
|
|
|
593 |
if($post){
|
|
|
|
|
|
|
|
|
|
|
594 |
|
595 |
$schema_type = esc_sql ( get_post_meta($post->ID, 'schema_type', true) );
|
596 |
|
@@ -879,7 +886,10 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
879 |
?>
|
880 |
<!-- Below variable $style_business_type is static -->
|
881 |
<div class="misc-pub-section">
|
882 |
-
|
|
|
|
|
|
|
883 |
<tr>
|
884 |
<td><label for="schema_type"><?php echo esc_html__( 'Schema Type' ,'schema-and-structured-data-for-wp');?></label></td>
|
885 |
<td><select class="saswp-schame-type-select" id="schema_type" name="schema_type">
|
@@ -1579,7 +1589,119 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
1579 |
</td>
|
1580 |
</tr>
|
1581 |
</table>
|
1582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1583 |
</div>
|
1584 |
<?php
|
1585 |
}
|
590 |
$product_details = array();
|
591 |
$event_details = array();
|
592 |
|
593 |
+
|
594 |
+
|
595 |
if($post){
|
596 |
+
|
597 |
+
$schema_options = esc_sql ( get_post_meta($post->ID, 'schema_options', true) );
|
598 |
+
$meta_list = esc_sql ( get_post_meta($post->ID, 'saswp_meta_list_val', true) );
|
599 |
+
$fixed_text = esc_sql ( get_post_meta($post->ID, 'saswp_fixed_text', true) );
|
600 |
+
$cus_field = esc_sql ( get_post_meta($post->ID, 'saswp_custom_meta_field', true) );
|
601 |
|
602 |
$schema_type = esc_sql ( get_post_meta($post->ID, 'schema_type', true) );
|
603 |
|
886 |
?>
|
887 |
<!-- Below variable $style_business_type is static -->
|
888 |
<div class="misc-pub-section">
|
889 |
+
|
890 |
+
<div class="saswp-schema-type-section">
|
891 |
+
|
892 |
+
<table class="option-table-class saswp-option-table-class">
|
893 |
<tr>
|
894 |
<td><label for="schema_type"><?php echo esc_html__( 'Schema Type' ,'schema-and-structured-data-for-wp');?></label></td>
|
895 |
<td><select class="saswp-schame-type-select" id="schema_type" name="schema_type">
|
1589 |
</td>
|
1590 |
</tr>
|
1591 |
</table>
|
1592 |
+
|
1593 |
+
</div>
|
1594 |
+
|
1595 |
+
<div class="saswp-schema-modify-section">
|
1596 |
+
|
1597 |
+
<!-- custom fields for schema output starts here -->
|
1598 |
+
|
1599 |
+
<table class="option-table-class saswp_modify_schema_checkbox">
|
1600 |
+
<tr><td><label><?php echo esc_html__( 'Modify Schema Output', 'schema-and-structured-data-for-wp' ) ?></label></td><td><input type="checkbox" id="saswp_enable_custom_field" name="saswp_enable_custom_field" value="1" <?php if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field']==1){echo 'checked'; }?>></td></tr>
|
1601 |
+
</table>
|
1602 |
+
<div class="saswp-custom-fields-div" <?php if(!isset($schema_options['enable_custom_field']) || $schema_options['enable_custom_field'] ==0){echo 'style="display:none;"'; }?>>
|
1603 |
+
<table class="saswp-custom-fields-table">
|
1604 |
+
|
1605 |
+
<?php
|
1606 |
+
|
1607 |
+
if(!empty($meta_list)){
|
1608 |
+
|
1609 |
+
$schema_type = esc_sql ( get_post_meta($post->ID, 'schema_type', true) );
|
1610 |
+
|
1611 |
+
$service = new saswp_output_service();
|
1612 |
+
$meta_fields = $service->saswp_get_all_schema_type_fields($schema_type);
|
1613 |
+
|
1614 |
+
foreach($meta_list as $fieldkey => $fieldval){
|
1615 |
+
|
1616 |
+
$option = '';
|
1617 |
+
echo '<tr>';
|
1618 |
+
echo '<td><select class="saswp-custom-fields-name">';
|
1619 |
+
|
1620 |
+
foreach ($meta_fields as $key =>$val){
|
1621 |
+
|
1622 |
+
if( $fieldkey == $key){
|
1623 |
+
|
1624 |
+
$option .='<option value="'.esc_attr($key).'" selected>'.esc_attr($val).'</option>';
|
1625 |
+
|
1626 |
+
}else{
|
1627 |
+
|
1628 |
+
$option .='<option value="'.esc_attr($key).'">'.esc_attr($val).'</option>';
|
1629 |
+
|
1630 |
+
}
|
1631 |
+
|
1632 |
+
}
|
1633 |
+
|
1634 |
+
|
1635 |
+
echo $option;
|
1636 |
+
echo '</select>';
|
1637 |
+
echo '</td>';
|
1638 |
+
|
1639 |
+
$list_html = '';
|
1640 |
+
$meta_list_fields = include(SASWP_DIR_NAME . '/core/array-list/meta_list.php');
|
1641 |
+
|
1642 |
+
$meta_list_arr = $meta_list_fields['text'];
|
1643 |
+
|
1644 |
+
if (strpos($fieldkey, 'image') !== false) {
|
1645 |
+
$meta_list_arr = $meta_list_fields['image'];
|
1646 |
+
}
|
1647 |
+
|
1648 |
+
foreach($meta_list_arr as $list){
|
1649 |
+
|
1650 |
+
$list_html.= '<optgroup label="'.$list['label'].'">';
|
1651 |
+
|
1652 |
+
foreach ($list['meta-list'] as $key => $val){
|
1653 |
+
|
1654 |
+
if( $fieldval == $key){
|
1655 |
+
$list_html.= '<option value="'.esc_attr($key).'" selected>'.esc_html($val).'</option>';
|
1656 |
+
}else{
|
1657 |
+
$list_html.= '<option value="'.esc_attr($key).'">'.esc_html($val).'</option>';
|
1658 |
+
}
|
1659 |
+
|
1660 |
+
}
|
1661 |
+
|
1662 |
+
$list_html.= '</optgroup>';
|
1663 |
+
|
1664 |
+
}
|
1665 |
+
echo '<td>';
|
1666 |
+
echo '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['.$fieldkey.']">';
|
1667 |
+
echo $list_html;
|
1668 |
+
echo '</select>';
|
1669 |
+
echo '</td>';
|
1670 |
+
|
1671 |
+
|
1672 |
+
if($fieldval == 'manual_text'){
|
1673 |
+
echo '<td><input type="text" name="saswp_fixed_text['.esc_attr($fieldkey).']" value="'.esc_html($fixed_text[$fieldkey]).'"></td>';
|
1674 |
+
}else if($fieldval == 'custom_field'){
|
1675 |
+
echo '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['.esc_attr($fieldkey).']">';
|
1676 |
+
echo '<option value="'.esc_attr($cus_field[$fieldkey]).'">'.preg_replace( '/^_/', '', esc_html( str_replace( '_', ' ', $cus_field[$fieldkey] ) ) ).'</option>';
|
1677 |
+
echo '</select></td>';
|
1678 |
+
}else{
|
1679 |
+
echo '<td></td>';
|
1680 |
+
}
|
1681 |
+
|
1682 |
+
echo '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1683 |
+
|
1684 |
+
echo '</tr>';
|
1685 |
+
|
1686 |
+
}
|
1687 |
+
|
1688 |
+
}
|
1689 |
+
|
1690 |
+
?>
|
1691 |
+
|
1692 |
+
|
1693 |
+
</table>
|
1694 |
+
<table class="option-table-class">
|
1695 |
+
<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>
|
1696 |
+
</table>
|
1697 |
+
|
1698 |
+
</div>
|
1699 |
+
|
1700 |
+
|
1701 |
+
<!-- custom fields for schema output ends here -->
|
1702 |
+
|
1703 |
+
</div>
|
1704 |
+
|
1705 |
</div>
|
1706 |
<?php
|
1707 |
}
|