Version Description
(5 Oct 2019) =
- Added: Add support for Event Subcategory schema #418
- Fixed: Additional CSS not working on FAQ blocks #529
- Fixed: HowTo Block time is not being added in json markup when days and hours are empty #531
- Fixed: Improved the db query #493
- Fixed: Error and performance issues #497
- Fixed: Review Link is not working properly #510
- Fixed: Bug in defragmented schema ( Corporation being invalid for Publisher ) #505
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.11 |
Comparing to | |
See all releases |
Code changes from version 1.9.10 to 1.9.11
- admin_section/css/main-style.css +14 -0
- admin_section/css/main-style.min.css +1 -1249
- admin_section/js/main-script.js +271 -379
- admin_section/js/main-script.min.js +1 -1892
- admin_section/structure_admin.php +36 -0
- core/array-list/local-sub-business.php +33 -1
- modules/gutenberg/includes/class-gutenberg.php +34 -7
- output/function.php +6 -5
- output/output.php +34 -9
- output/output_post_specific.php +13 -2
- output/service.php +29 -20
- readme.txt +16 -2
- reviews/reviews_service.php +1 -1
- reviews/reviews_setup.php +5 -4
- structured-data-for-wp.php +2 -2
- view/post_specific.php +67 -36
- view/schema_type.php +53 -50
admin_section/css/main-style.css
CHANGED
@@ -1064,6 +1064,7 @@ Google review module ends here
|
|
1064 |
background: #f9f9f9;
|
1065 |
border: 1px solid #d8d8d8;
|
1066 |
border-bottom: none;
|
|
|
1067 |
}
|
1068 |
.saswp-rev-mod .saswp-knowledge-field{
|
1069 |
width:100%;
|
@@ -1232,4 +1233,17 @@ a.saswp-revws-lnk{
|
|
1232 |
}
|
1233 |
.saswp-custom-fields-table .saswp_prev_close{
|
1234 |
font-size: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1235 |
}
|
1064 |
background: #f9f9f9;
|
1065 |
border: 1px solid #d8d8d8;
|
1066 |
border-bottom: none;
|
1067 |
+
box-sizing: border-box;
|
1068 |
}
|
1069 |
.saswp-rev-mod .saswp-knowledge-field{
|
1070 |
width:100%;
|
1233 |
}
|
1234 |
.saswp-custom-fields-table .saswp_prev_close{
|
1235 |
font-size: 15px;
|
1236 |
+
}
|
1237 |
+
.saswp-review-content-table td:nth-child(2){
|
1238 |
+
width: 50%;
|
1239 |
+
float: left;
|
1240 |
+
}
|
1241 |
+
.saswp-review-content-table input{
|
1242 |
+
width: 100%;
|
1243 |
+
}
|
1244 |
+
.saswp-review-content-table select{
|
1245 |
+
width: 100%;
|
1246 |
+
}
|
1247 |
+
.saswp-review-content-table textarea{
|
1248 |
+
width: 100%;
|
1249 |
}
|
admin_section/css/main-style.min.css
CHANGED
@@ -1,1249 +1 @@
|
|
1 |
-
/*
|
2 |
-
To change this license header, choose License Headers in Project Properties.
|
3 |
-
To change this template file, choose Tools | Templates
|
4 |
-
and open the template in the editor.
|
5 |
-
*/
|
6 |
-
/*
|
7 |
-
Created on : Jul 27, 2018, 5:36:26 PM
|
8 |
-
Author : Magazine3
|
9 |
-
*/
|
10 |
-
.saswp_warning{
|
11 |
-
color: #ef6c00 !important;
|
12 |
-
}
|
13 |
-
|
14 |
-
.saswp_hide{
|
15 |
-
display: none;
|
16 |
-
}
|
17 |
-
.saswp-general table th{
|
18 |
-
width: auto;
|
19 |
-
font-weight: 600;
|
20 |
-
padding: 0px;
|
21 |
-
}
|
22 |
-
.saswp-general table{
|
23 |
-
margin-top: 0px;
|
24 |
-
}
|
25 |
-
.saswp-general table td{
|
26 |
-
padding: 5px;
|
27 |
-
}
|
28 |
-
.saswp-knowledge table th{
|
29 |
-
width: auto;
|
30 |
-
padding: 0px;
|
31 |
-
}
|
32 |
-
.saswp-knowledge table{
|
33 |
-
margin-top: 0px;
|
34 |
-
}
|
35 |
-
.saswp-knowledge table td{
|
36 |
-
padding: 5px;
|
37 |
-
}
|
38 |
-
.saswp-schema table th{
|
39 |
-
width: auto;
|
40 |
-
padding: 0px;
|
41 |
-
}
|
42 |
-
.saswp-schema table{
|
43 |
-
margin-top: 0px;
|
44 |
-
}
|
45 |
-
.saswp-schema table td{
|
46 |
-
padding: 5px;
|
47 |
-
}
|
48 |
-
.saswp-amp table th{
|
49 |
-
width: auto;
|
50 |
-
padding: 0px;
|
51 |
-
}
|
52 |
-
.saswp-amp table{
|
53 |
-
margin-top: 0px;
|
54 |
-
}
|
55 |
-
.saswp-amp table td{
|
56 |
-
padding: 5px;
|
57 |
-
}
|
58 |
-
.saswp-help table th{
|
59 |
-
width: auto;
|
60 |
-
padding: 0px;
|
61 |
-
}
|
62 |
-
.saswp-support table th{
|
63 |
-
width: auto;
|
64 |
-
padding: 0px;
|
65 |
-
}
|
66 |
-
.saswp-review table th{
|
67 |
-
width: auto;
|
68 |
-
padding: 0px;
|
69 |
-
}
|
70 |
-
.saswp-help table{
|
71 |
-
margin-top: 0px;
|
72 |
-
}
|
73 |
-
.saswp-help table td{
|
74 |
-
padding: 5px;
|
75 |
-
}
|
76 |
-
.saswp-settings-list{
|
77 |
-
display:inline-block;
|
78 |
-
width:100%
|
79 |
-
}
|
80 |
-
.saswp-settings-list li{
|
81 |
-
padding-left:0px;
|
82 |
-
}
|
83 |
-
.saswp-settings-list li div label{
|
84 |
-
font-weight: 600;
|
85 |
-
}
|
86 |
-
.saswp-general h2{
|
87 |
-
margin-bottom: 0px;
|
88 |
-
}
|
89 |
-
.saswp-knowledge h2{
|
90 |
-
margin-bottom: 0px;
|
91 |
-
}
|
92 |
-
.saswp-schema h2{
|
93 |
-
margin-bottom: 0px;
|
94 |
-
}
|
95 |
-
.saswp-help h2{
|
96 |
-
margin-bottom: 0px;
|
97 |
-
}
|
98 |
-
.saswp-settings-form p.submit{
|
99 |
-
margin-top:0px;
|
100 |
-
}
|
101 |
-
.saswp_qanda_p{
|
102 |
-
font-weight: 500;
|
103 |
-
}
|
104 |
-
.saswp-display-none{
|
105 |
-
display: none !important;
|
106 |
-
}
|
107 |
-
.saswp-placement-groups{
|
108 |
-
border: 1px solid #e5e5e5;
|
109 |
-
}
|
110 |
-
.saswp-query-success{
|
111 |
-
color: #006600;
|
112 |
-
}
|
113 |
-
.saswp-query-error{
|
114 |
-
color: #bf3322;
|
115 |
-
}
|
116 |
-
.saswp-tools table th{
|
117 |
-
width: auto;
|
118 |
-
padding: 0px;
|
119 |
-
}
|
120 |
-
.saswp-tools table{
|
121 |
-
margin-top: 0px;
|
122 |
-
}
|
123 |
-
.saswp-tools table td{
|
124 |
-
padding: 5px;
|
125 |
-
}
|
126 |
-
.saswp-tools-field-title strong{
|
127 |
-
padding-right: 130px;
|
128 |
-
}
|
129 |
-
.saswp-tools .saswp-tooltip{
|
130 |
-
width: 230px;
|
131 |
-
}
|
132 |
-
.saswp-tools .saswp-knowledge-label {
|
133 |
-
float: left;
|
134 |
-
}
|
135 |
-
.saswp-error{
|
136 |
-
color: #ff0000 !important;
|
137 |
-
}
|
138 |
-
/*
|
139 |
-
Tooltip css starts here
|
140 |
-
|
141 |
-
*/
|
142 |
-
.saswp-tooltip {
|
143 |
-
position: relative;
|
144 |
-
display: inline-block;
|
145 |
-
}
|
146 |
-
.saswp-tooltip .saswp-tooltiptext {
|
147 |
-
visibility: hidden;
|
148 |
-
width: 200px;
|
149 |
-
background-color: black;
|
150 |
-
color: #fff;
|
151 |
-
text-align: center;
|
152 |
-
border-radius: 6px;
|
153 |
-
padding: 5px 0;
|
154 |
-
|
155 |
-
/* Position the tooltip */
|
156 |
-
position: absolute;
|
157 |
-
z-index: 1;
|
158 |
-
bottom: 100%;
|
159 |
-
left: 50%;
|
160 |
-
margin-left: -25px;
|
161 |
-
}
|
162 |
-
/*.saswp-tooltip:hover .saswp-tooltiptext {
|
163 |
-
visibility: visible;
|
164 |
-
}*/
|
165 |
-
|
166 |
-
.saswp-tooltiptext::after {
|
167 |
-
content: "";
|
168 |
-
position: absolute;
|
169 |
-
top: 100%;
|
170 |
-
left: 10%;
|
171 |
-
margin-left: -5px;
|
172 |
-
border-width: 5px;
|
173 |
-
border-style: solid;
|
174 |
-
border-color: black transparent transparent transparent;
|
175 |
-
}
|
176 |
-
|
177 |
-
/*
|
178 |
-
Tooltip css ends here
|
179 |
-
|
180 |
-
*/
|
181 |
-
.saswp-knowledge-base .saswp-knowledge-label{
|
182 |
-
width:200px;
|
183 |
-
float:left;
|
184 |
-
clear: both;
|
185 |
-
|
186 |
-
}
|
187 |
-
.saswp-knowledge-base .saswp-knowledge-field{
|
188 |
-
width:75%;
|
189 |
-
float:right;
|
190 |
-
}
|
191 |
-
|
192 |
-
.saswp-social-fileds ul{
|
193 |
-
display: grid;
|
194 |
-
grid-template-columns: 26.5% 1fr;
|
195 |
-
}
|
196 |
-
.saswp-social-fileds li{
|
197 |
-
display: flex;
|
198 |
-
}
|
199 |
-
.saswp-social-fileds .saswp-knowledge-field{
|
200 |
-
width: 100%;
|
201 |
-
margin-left: 10px;
|
202 |
-
}
|
203 |
-
.saswp-social-fileds .saswp-knowledge-field input{
|
204 |
-
float: right;
|
205 |
-
margin: inherit;
|
206 |
-
}
|
207 |
-
.saswp-schema-type-fields .saswp-knowledge-label{
|
208 |
-
width:200px;
|
209 |
-
float:left;
|
210 |
-
clear: both;
|
211 |
-
}
|
212 |
-
.saswp-schema-type-fields .saswp-knowledge-field{
|
213 |
-
width:75%;
|
214 |
-
float:right;
|
215 |
-
}
|
216 |
-
.saswp-settings-first-div{
|
217 |
-
width: 70%;
|
218 |
-
}
|
219 |
-
.saswp-settings-container{
|
220 |
-
display: inline-flex;
|
221 |
-
width: 100%;
|
222 |
-
}
|
223 |
-
.saswp-settings-second-div{
|
224 |
-
float: right;
|
225 |
-
position: relative;
|
226 |
-
top: 20px;
|
227 |
-
margin-right: 30px;
|
228 |
-
margin-top: 37px;
|
229 |
-
}
|
230 |
-
.saswp-feedback-panel{
|
231 |
-
height: 200px;
|
232 |
-
width: 280px;
|
233 |
-
background: #ffffff;
|
234 |
-
position: relative;
|
235 |
-
|
236 |
-
}
|
237 |
-
.saswp-start-quck-setup{
|
238 |
-
position: relative;
|
239 |
-
float: inherit;
|
240 |
-
top: 7px;
|
241 |
-
left:15px;
|
242 |
-
}
|
243 |
-
.saswp-feedback-panel ul{
|
244 |
-
list-style-type: circle;
|
245 |
-
list-style:decimal;
|
246 |
-
padding-left: 30px;
|
247 |
-
font-size: 15px;
|
248 |
-
|
249 |
-
}
|
250 |
-
.saswp-feedback-panel a{
|
251 |
-
text-decoration: none;
|
252 |
-
|
253 |
-
}
|
254 |
-
.saswp-feedback-panel h2{
|
255 |
-
text-align: center;
|
256 |
-
padding-top: 18px;
|
257 |
-
|
258 |
-
}
|
259 |
-
.saswp-social-sharing-buttons {
|
260 |
-
text-align: center;
|
261 |
-
padding-top: 20px;
|
262 |
-
|
263 |
-
|
264 |
-
}
|
265 |
-
.saswp-facebook-share{
|
266 |
-
background: #3B5998;
|
267 |
-
box-shadow: 0 0px 0 #1b95e0 !important;
|
268 |
-
color: #fff !important;
|
269 |
-
line-height: 20px !important;
|
270 |
-
height: 21px !important;
|
271 |
-
border-radius: 3px;
|
272 |
-
margin-right: 5px;
|
273 |
-
}
|
274 |
-
.saswp-social-sharing-buttons a{
|
275 |
-
text-align: center;
|
276 |
-
padding: 8px;
|
277 |
-
|
278 |
-
|
279 |
-
}
|
280 |
-
.twitter-share-button{
|
281 |
-
background: #1b95e0 !important;
|
282 |
-
box-shadow: 0 0px 0 #1b95e0 !important;
|
283 |
-
color:#fff !important;
|
284 |
-
line-height: 20px !important;
|
285 |
-
height: 21px !important;
|
286 |
-
border-radius: 3px;
|
287 |
-
margin-left: 5px;
|
288 |
-
|
289 |
-
}
|
290 |
-
.saswp-placement-button{
|
291 |
-
padding: 3px 10px;
|
292 |
-
color: #0d0d0d;
|
293 |
-
font-size: 14px;
|
294 |
-
border: 1px solid #aaa;
|
295 |
-
border-radius: 2px;
|
296 |
-
background: linear-gradient(#ededed, #ffffff);
|
297 |
-
}
|
298 |
-
.saswp-placement-table td {
|
299 |
-
padding: 5px 10px !important;
|
300 |
-
}
|
301 |
-
.saswp-archive-div .saswp-knowledge-field{
|
302 |
-
float: right;
|
303 |
-
width: 75%;
|
304 |
-
padding-bottom: 10px;
|
305 |
-
}
|
306 |
-
.saswp-archive-div .saswp-knowledge-label{
|
307 |
-
float:left;
|
308 |
-
clear: both;
|
309 |
-
}
|
310 |
-
|
311 |
-
.saswp-amp .saswp-knowledge-field{
|
312 |
-
float: right;
|
313 |
-
width: 75%;
|
314 |
-
padding-bottom: 10px;
|
315 |
-
}
|
316 |
-
.saswp-amp .saswp-knowledge-label{
|
317 |
-
float:left;
|
318 |
-
clear: both;
|
319 |
-
}
|
320 |
-
|
321 |
-
.saswp-review .saswp-knowledge-field{
|
322 |
-
float: right;
|
323 |
-
width: 75%;
|
324 |
-
padding-bottom: 10px;
|
325 |
-
}
|
326 |
-
.saswp-review .saswp-knowledge-label{
|
327 |
-
float:left;
|
328 |
-
clear: both;
|
329 |
-
}
|
330 |
-
|
331 |
-
.saswp-compativility-div .saswp-knowledge-field{
|
332 |
-
float: right;
|
333 |
-
width: 75%;
|
334 |
-
padding-bottom: 10px;
|
335 |
-
}
|
336 |
-
.saswp-compativility-div .saswp-knowledge-label{
|
337 |
-
float:left;
|
338 |
-
clear: both;
|
339 |
-
}
|
340 |
-
.saswp-compativility-div li {
|
341 |
-
display: inline-flex;
|
342 |
-
}
|
343 |
-
.saswp-seller-div .saswp-knowledge-label{
|
344 |
-
float: left;
|
345 |
-
|
346 |
-
clear: both;
|
347 |
-
}
|
348 |
-
.saswp-seller-div .saswp-knowledge-field{
|
349 |
-
float: left;
|
350 |
-
width: 70%;
|
351 |
-
}
|
352 |
-
.saswp-post-specific-tab-wrapper{
|
353 |
-
display: inline-block;
|
354 |
-
width: 25%;
|
355 |
-
vertical-align: top;
|
356 |
-
box-sizing: border-box;
|
357 |
-
padding-right:10px;
|
358 |
-
}
|
359 |
-
.saswp-post-specific-container{
|
360 |
-
display: inline-block;
|
361 |
-
width: calc(75% - 1px );
|
362 |
-
border-left: 1px solid #eee;
|
363 |
-
}
|
364 |
-
.saswp-post-specific-wrapper{
|
365 |
-
padding: 10px;
|
366 |
-
}
|
367 |
-
.saswp-tab a.selected {
|
368 |
-
background-color: #ccc;
|
369 |
-
}
|
370 |
-
.saswp-tab-links{
|
371 |
-
display: block;
|
372 |
-
background-color: inherit;
|
373 |
-
color: black;
|
374 |
-
padding: 6px 10px;
|
375 |
-
outline: none;
|
376 |
-
text-align: left;
|
377 |
-
cursor: pointer;
|
378 |
-
transition: 0.3s;
|
379 |
-
font-size: 15px;
|
380 |
-
width: 130px;
|
381 |
-
overflow: hidden;
|
382 |
-
margin-right: 10px;
|
383 |
-
}
|
384 |
-
.saswp-star-rating{
|
385 |
-
cursor: pointer;
|
386 |
-
}
|
387 |
-
.saswp-post-specific-wrapper select{
|
388 |
-
width: 100%;
|
389 |
-
}
|
390 |
-
.saswp-review-tables{
|
391 |
-
width: 100%;
|
392 |
-
}
|
393 |
-
.saswp-over-all-raring{
|
394 |
-
float: right;
|
395 |
-
}
|
396 |
-
|
397 |
-
.saswp-review-pros-and-cons{
|
398 |
-
position: relative;
|
399 |
-
clear:both;
|
400 |
-
}
|
401 |
-
.saswp-review-pros-and-cons > div:first{
|
402 |
-
padding-left: 10px;
|
403 |
-
}
|
404 |
-
.saswp-review-pros-and-cons > div{
|
405 |
-
width: 49%;
|
406 |
-
display: inline-block;
|
407 |
-
}
|
408 |
-
.saswp-review-pros-and-cons > div:nth-child(2){
|
409 |
-
padding-left: 12px;
|
410 |
-
}
|
411 |
-
.saswp-wp-ediot-desc{
|
412 |
-
margin-bottom: -23px;
|
413 |
-
display: block;
|
414 |
-
}
|
415 |
-
.saswp-review-description{
|
416 |
-
margin-top: 40px;
|
417 |
-
padding-top: 10px;
|
418 |
-
border-top: 1px solid #eee;
|
419 |
-
}
|
420 |
-
.saswp-review-pros-and-cons{
|
421 |
-
margin-top: 40px;
|
422 |
-
padding-top: 10px;
|
423 |
-
border-top: 1px solid #eee;
|
424 |
-
}
|
425 |
-
.saspw-review-item-list{
|
426 |
-
margin-top: 20px;
|
427 |
-
border-top: 1px solid #eee;
|
428 |
-
}
|
429 |
-
.saswp-review-item-list-table{
|
430 |
-
padding-bottom: 10px;
|
431 |
-
}
|
432 |
-
#sasw-review input[type=text] {
|
433 |
-
width: 180px;
|
434 |
-
}
|
435 |
-
#sasw-review input[type=number] {
|
436 |
-
width: 180px;
|
437 |
-
}
|
438 |
-
#saswp-review-item-enable{
|
439 |
-
width: 10px;
|
440 |
-
}
|
441 |
-
.saswp-enable-review-on-post{
|
442 |
-
padding-bottom: 10px;
|
443 |
-
}
|
444 |
-
.saswp-enable-review-on-post label{
|
445 |
-
font-weight: 500;
|
446 |
-
}
|
447 |
-
/*
|
448 |
-
Compatibility tab css starts here
|
449 |
-
*/
|
450 |
-
.saswp-compatibility table th{
|
451 |
-
width: auto;
|
452 |
-
padding: 0px;
|
453 |
-
}
|
454 |
-
.saswp-compatibility .saswp-knowledge-label {
|
455 |
-
float: left;
|
456 |
-
clear: both;
|
457 |
-
}
|
458 |
-
.saswp-tools .saswp-knowledge-label {
|
459 |
-
float: left;
|
460 |
-
clear: both;
|
461 |
-
}
|
462 |
-
.saswp-tools .saswp-knowledge-field {
|
463 |
-
float: right;
|
464 |
-
width: 69%;
|
465 |
-
padding-bottom: 10px;
|
466 |
-
}
|
467 |
-
.saswp_kg_logo, .saswp_person_fields{
|
468 |
-
background-color: #fff !important;
|
469 |
-
}
|
470 |
-
.saswp_image_thumbnail{
|
471 |
-
padding-top: 5px;
|
472 |
-
display: inline-block;
|
473 |
-
}
|
474 |
-
.saswp-compatibility .saswp-knowledge-field {
|
475 |
-
float: right;
|
476 |
-
width: 75%;
|
477 |
-
padding-bottom: 10px;
|
478 |
-
}
|
479 |
-
.saswp-schem-type-note, .saswp-job-posting-note{
|
480 |
-
color: chocolate;
|
481 |
-
}
|
482 |
-
.saswp-custom-fields-name{
|
483 |
-
border: 1px solid #aaa;
|
484 |
-
border-radius: 4px;
|
485 |
-
}
|
486 |
-
/*
|
487 |
-
Compatibility tab css ends
|
488 |
-
*/
|
489 |
-
.saswp-option-table-class p{
|
490 |
-
margin: auto;
|
491 |
-
font-style: italic;
|
492 |
-
color: #666;
|
493 |
-
}
|
494 |
-
/*
|
495 |
-
On/Off Buttons starts here
|
496 |
-
*/
|
497 |
-
.saswp-switch {
|
498 |
-
position: relative;
|
499 |
-
display: inline-block;
|
500 |
-
width: 40px;
|
501 |
-
height: 22px;
|
502 |
-
border: 20px;
|
503 |
-
}
|
504 |
-
|
505 |
-
.saswp-switch input {
|
506 |
-
opacity: 0;
|
507 |
-
width: 0;
|
508 |
-
height: 0;
|
509 |
-
}
|
510 |
-
|
511 |
-
.saswp-slider {
|
512 |
-
position: absolute;
|
513 |
-
cursor: pointer;
|
514 |
-
top: 0;
|
515 |
-
left: 0;
|
516 |
-
right: 0;
|
517 |
-
bottom: 0;
|
518 |
-
background-color: #5a6783;
|
519 |
-
transition: .4s;
|
520 |
-
border-radius: 20px;
|
521 |
-
}
|
522 |
-
|
523 |
-
.saswp-slider:before {
|
524 |
-
position: absolute;
|
525 |
-
content: "";
|
526 |
-
height: 15px;
|
527 |
-
width: 15px;
|
528 |
-
left: 4px;
|
529 |
-
bottom: 4px;
|
530 |
-
background-color: white;
|
531 |
-
transition: .4s;
|
532 |
-
border-radius: 20px;
|
533 |
-
}
|
534 |
-
|
535 |
-
input:checked + .saswp-slider {
|
536 |
-
background-color: #61bd3b;
|
537 |
-
border-radius: 30px;
|
538 |
-
}
|
539 |
-
|
540 |
-
input:focus + .saswp-slider {
|
541 |
-
box-shadow: 0 0 1px #2196F3;
|
542 |
-
}
|
543 |
-
|
544 |
-
input:checked + .saswp-slider:before {
|
545 |
-
|
546 |
-
transform: translateX(15px);
|
547 |
-
}
|
548 |
-
|
549 |
-
/* Rounded sliders */
|
550 |
-
.saswp-slider.saswp-round {
|
551 |
-
border-radius: 34px;
|
552 |
-
}
|
553 |
-
|
554 |
-
.saswp-slider.saswp-round:before {
|
555 |
-
border-radius: 50%;
|
556 |
-
}
|
557 |
-
|
558 |
-
.saswp-tab-nav li{
|
559 |
-
display: flex;
|
560 |
-
align-items: center;
|
561 |
-
justify-content: space-between;
|
562 |
-
margin-bottom:10px;
|
563 |
-
border-bottom: 1px solid #eee;
|
564 |
-
}
|
565 |
-
|
566 |
-
.saswp-tab-nav .selected{
|
567 |
-
background-color: #ccc;
|
568 |
-
}
|
569 |
-
.saswp-single-post-restore .saswp-switch{
|
570 |
-
height: 28px;
|
571 |
-
}
|
572 |
-
.saswp-single-post-restore .saswp-slider:before{
|
573 |
-
height: 20px;
|
574 |
-
}
|
575 |
-
/*
|
576 |
-
On/Off Buttons ends here
|
577 |
-
*/
|
578 |
-
.option-table-class {width:100%;}
|
579 |
-
.option-table-class tr td {padding: 10px 10px 10px 10px ;}
|
580 |
-
.option-table-class tr > td{width: 30%;}
|
581 |
-
.option-table-class tr td:last-child{width: 60%;}
|
582 |
-
|
583 |
-
.saswp-custom-fields-table{
|
584 |
-
width: 100%;
|
585 |
-
}
|
586 |
-
.saswp-custom-fields-table input{
|
587 |
-
width: 100%;
|
588 |
-
}
|
589 |
-
.saswp-custom-fields-table tr td {padding: 10px 10px 10px 10px ;}
|
590 |
-
.saswp-custom-fields-table td{
|
591 |
-
width: 30%;
|
592 |
-
vertical-align: top;
|
593 |
-
}
|
594 |
-
|
595 |
-
.saswp-option-table-class input[type="text"], .saswp-option-table-class select{
|
596 |
-
width:100%;
|
597 |
-
}
|
598 |
-
.saswp-paywall-table-class input[type="text"], .saswp-paywall-table-class select{
|
599 |
-
width:100%;
|
600 |
-
}
|
601 |
-
|
602 |
-
/*
|
603 |
-
Compatibility tab css starts here
|
604 |
-
*/
|
605 |
-
.saswp-email_schema table th{
|
606 |
-
width: auto;
|
607 |
-
padding: 0px;
|
608 |
-
}
|
609 |
-
.saswp-email_schema .saswp-knowledge-label {
|
610 |
-
float: left;
|
611 |
-
clear: both;
|
612 |
-
}
|
613 |
-
.saswp-email_schema .saswp-knowledge-field {
|
614 |
-
float: right;
|
615 |
-
width: 75%;
|
616 |
-
padding-bottom: 10px;
|
617 |
-
}
|
618 |
-
/*
|
619 |
-
Compatibility tab css ends
|
620 |
-
*/
|
621 |
-
.saswp-add-on-plugin label{
|
622 |
-
margin-top: 10px;
|
623 |
-
}
|
624 |
-
.saswp-add-on-plugin span{
|
625 |
-
width: 250px;
|
626 |
-
display: inline-block;
|
627 |
-
}
|
628 |
-
.saswp-knowledge-label label[for="saswp_search_box_schema_checkbox"] {
|
629 |
-
padding-left: 10px;
|
630 |
-
}
|
631 |
-
|
632 |
-
.saswp-knowledge-label label[for="saswp-woocommerce-booking-checkbox"] {
|
633 |
-
padding-left: 10px;
|
634 |
-
}
|
635 |
-
|
636 |
-
.saswp-knowledge-label label[for="saswp-woocommerce-membership-checkbox"] {
|
637 |
-
padding-left: 10px;
|
638 |
-
}
|
639 |
-
|
640 |
-
.saswp-global-selected{
|
641 |
-
color: #000000;
|
642 |
-
font-weight: 500;
|
643 |
-
}
|
644 |
-
#saswp-global-tabs a{
|
645 |
-
cursor: pointer;
|
646 |
-
}
|
647 |
-
#saswp-global-tabs{
|
648 |
-
padding-left: 5px;
|
649 |
-
}
|
650 |
-
#saswp-tools-tabs a{
|
651 |
-
cursor: pointer;
|
652 |
-
}
|
653 |
-
#saswp-review-tabs a{
|
654 |
-
cursor: pointer;
|
655 |
-
}
|
656 |
-
#saswp-tools-tabs{
|
657 |
-
padding-left: 5px;
|
658 |
-
}
|
659 |
-
.saswp-need-help {
|
660 |
-
padding-left: 60px;
|
661 |
-
}
|
662 |
-
.saswp-heading{
|
663 |
-
display: inline-flex;
|
664 |
-
align-items: baseline;
|
665 |
-
}
|
666 |
-
.saswp-heading h2{
|
667 |
-
margin-bottom: 0px;
|
668 |
-
}
|
669 |
-
.saswp-view-docs a{
|
670 |
-
margin-right: 5px !important;
|
671 |
-
margin-top: 10px !important;
|
672 |
-
float: right;
|
673 |
-
}
|
674 |
-
.saswp-tabs .nav-tab{
|
675 |
-
margin-left: 4px;
|
676 |
-
}
|
677 |
-
|
678 |
-
/*
|
679 |
-
Google review module starts here
|
680 |
-
*/
|
681 |
-
.saswp-panel {
|
682 |
-
padding: 7px 18px;
|
683 |
-
background-color: white;
|
684 |
-
box-shadow: 0px 0px 20px 1px #d2cccc;
|
685 |
-
}
|
686 |
-
|
687 |
-
/*** Review Design CSS ****/
|
688 |
-
.saswp-g-review-header{
|
689 |
-
margin-top: 50px;
|
690 |
-
}
|
691 |
-
.saswp-g-review-body{
|
692 |
-
display:inline-grid;
|
693 |
-
grid-template-columns: 1fr 300px;
|
694 |
-
grid-gap:30px;
|
695 |
-
margin-top:30px;
|
696 |
-
}
|
697 |
-
.saswp-review-list{}
|
698 |
-
.saswp-channel-list{
|
699 |
-
margin-right: 15px;
|
700 |
-
}
|
701 |
-
.saswp-input-fields{
|
702 |
-
display: inline-flex;
|
703 |
-
align-items: center;
|
704 |
-
margin-bottom: 8px;
|
705 |
-
width: 100%;
|
706 |
-
}
|
707 |
-
.saswp-input-fields label{
|
708 |
-
width: 130px;
|
709 |
-
}
|
710 |
-
.saswp-input-fields select{
|
711 |
-
width:100%;
|
712 |
-
}
|
713 |
-
.saswp-panel h3{
|
714 |
-
font-size: 20px;
|
715 |
-
line-height: 1.4;
|
716 |
-
color: #222;
|
717 |
-
text-align: center;
|
718 |
-
margin: 10px 0px 20px 0px;
|
719 |
-
}
|
720 |
-
.saswp-input-fields a.button-primary{
|
721 |
-
margin-top:10px;
|
722 |
-
}
|
723 |
-
.saswp-glg-review-body{
|
724 |
-
display: grid;
|
725 |
-
grid-template-columns: 100px 1fr;
|
726 |
-
grid-gap: 20px;
|
727 |
-
background: #fff;
|
728 |
-
padding: 20px;
|
729 |
-
box-shadow: 0px 0px 20px 1px #d2cccc;
|
730 |
-
margin-bottom: 30px;
|
731 |
-
}
|
732 |
-
.saswp-g-plus{
|
733 |
-
float: right;
|
734 |
-
font-size: 15px;
|
735 |
-
}
|
736 |
-
.saswp-rtng{
|
737 |
-
padding-left: 5px;
|
738 |
-
font-size: 14px;
|
739 |
-
}
|
740 |
-
.saswp-pt-dt {
|
741 |
-
font-size: 12px;
|
742 |
-
color: #999;
|
743 |
-
font-weight: 600;
|
744 |
-
margin-top: 5px;
|
745 |
-
display: inline-block;
|
746 |
-
}
|
747 |
-
.saswp-str{
|
748 |
-
display: inline-block;
|
749 |
-
width: 100%;
|
750 |
-
vertical-align: middle;
|
751 |
-
}
|
752 |
-
.saswp-athr{
|
753 |
-
font-size: 15px;
|
754 |
-
line-height: 1.4;
|
755 |
-
color: #000;
|
756 |
-
font-weight: bold;
|
757 |
-
display: inline-block;
|
758 |
-
vertical-align: middle;
|
759 |
-
}
|
760 |
-
.saswp-str-rtng .saswp-rvw-str{
|
761 |
-
display: inline-block;
|
762 |
-
vertical-align: middle;
|
763 |
-
padding-left: 10px;
|
764 |
-
width: auto;
|
765 |
-
}
|
766 |
-
.saswp-rv-cnt p{
|
767 |
-
font-size: 16px;
|
768 |
-
line-height: 1.6;
|
769 |
-
color: #000;
|
770 |
-
margin: 10px 0px 0px 0px;
|
771 |
-
}
|
772 |
-
.saswp-rv-img img{
|
773 |
-
max-width:100px;
|
774 |
-
border-radius: 100%;
|
775 |
-
}
|
776 |
-
/*
|
777 |
-
Google review module ends here
|
778 |
-
*/
|
779 |
-
|
780 |
-
/** Premium Feature CSS **/
|
781 |
-
.saswp-premium_features table th, .saswp-services table th{
|
782 |
-
width: auto;
|
783 |
-
padding: 0px;
|
784 |
-
}
|
785 |
-
.saswp-features-blocks{
|
786 |
-
display: inline-grid;
|
787 |
-
grid-template-columns: 1fr 1fr;
|
788 |
-
grid-gap: 20px;
|
789 |
-
}
|
790 |
-
.saswp-features-blocks li{
|
791 |
-
background:#fff;
|
792 |
-
padding: 25px;
|
793 |
-
border: 1px solid #d8d8d8;
|
794 |
-
}
|
795 |
-
.saswp-features-blocks li a{
|
796 |
-
text-decoration: none;
|
797 |
-
}
|
798 |
-
.saswp-ele-ic{
|
799 |
-
border-radius: 256px;
|
800 |
-
display: inline-block;
|
801 |
-
padding:8px 10px 8px 10px;
|
802 |
-
width: 70px;
|
803 |
-
margin-right: 20px;
|
804 |
-
float: left;
|
805 |
-
}
|
806 |
-
.saswp-ele-ic img{
|
807 |
-
width:100%;
|
808 |
-
}
|
809 |
-
.saswp-ele-1{
|
810 |
-
background: #96588a;
|
811 |
-
}
|
812 |
-
.saswp-ele-2{
|
813 |
-
background: #00a97e;
|
814 |
-
}
|
815 |
-
.saswp-ele-3{
|
816 |
-
background: #cacaca;
|
817 |
-
}.saswp-ele-4{
|
818 |
-
background: #9c56cc;
|
819 |
-
}
|
820 |
-
.saswp-ele-tlt h3{
|
821 |
-
margin:0;
|
822 |
-
font-size: 18px;
|
823 |
-
line-height: 1.4;
|
824 |
-
}
|
825 |
-
.saswp-ele-tlt p{
|
826 |
-
margin-top:10px;
|
827 |
-
}
|
828 |
-
.saswp-sts-btn{
|
829 |
-
box-sizing: border-box;
|
830 |
-
height: 52px;
|
831 |
-
margin-top: 20px;
|
832 |
-
padding: 6px 15px;
|
833 |
-
border: 1px solid #e5e5e5;
|
834 |
-
border-radius: 3px;
|
835 |
-
display: flex;
|
836 |
-
align-items: center;
|
837 |
-
justify-content: space-between;
|
838 |
-
}
|
839 |
-
.saswp-d-btn{
|
840 |
-
background: #d2150a;
|
841 |
-
padding: 6px 18px;
|
842 |
-
border-radius: 30px;
|
843 |
-
font-size: 14px;
|
844 |
-
color: #fff;
|
845 |
-
}
|
846 |
-
.form-wrap .saswp-sts-txt{
|
847 |
-
font-size: 16px;
|
848 |
-
color:#000;
|
849 |
-
}
|
850 |
-
.saswp-sts-txt span{
|
851 |
-
color:#bebfc0;
|
852 |
-
padding-left:5px;
|
853 |
-
}
|
854 |
-
|
855 |
-
/** star rating Feature CSS **/
|
856 |
-
.saswp_review_platform .saswp-g-plus{
|
857 |
-
float: left;
|
858 |
-
}
|
859 |
-
.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}
|
860 |
-
.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG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4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}
|
861 |
-
/*** Review Design CSS ****/
|
862 |
-
.saswp-g-review-header{
|
863 |
-
margin-top: 50px;
|
864 |
-
}
|
865 |
-
.saswp-g-review-body{
|
866 |
-
display:inline-grid;
|
867 |
-
grid-template-columns: 1fr 300px;
|
868 |
-
grid-gap:30px;
|
869 |
-
margin-top:30px;
|
870 |
-
width:100%;
|
871 |
-
}
|
872 |
-
.saswp-review-list{}
|
873 |
-
.saswp-channel-list{
|
874 |
-
margin-right: 15px;
|
875 |
-
}
|
876 |
-
.saswp-input-fields{
|
877 |
-
display: inline-flex;
|
878 |
-
align-items: center;
|
879 |
-
margin-bottom: 8px;
|
880 |
-
width: 100%;
|
881 |
-
}
|
882 |
-
.saswp-input-fields label{
|
883 |
-
width: 130px;
|
884 |
-
}
|
885 |
-
.saswp-panel h3{
|
886 |
-
font-size: 20px;
|
887 |
-
line-height: 1.4;
|
888 |
-
color: #222;
|
889 |
-
text-align: center;
|
890 |
-
margin: 10px 0px 20px 0px;
|
891 |
-
}
|
892 |
-
.saswp-input-fields a.button-primary{
|
893 |
-
margin-top:10px;
|
894 |
-
}
|
895 |
-
.saswp-glg-review-body{
|
896 |
-
display: grid;
|
897 |
-
grid-template-columns: 100px 1fr;
|
898 |
-
grid-gap: 20px;
|
899 |
-
background: #fff;
|
900 |
-
padding: 20px;
|
901 |
-
box-shadow: 0px 0px 20px 1px #d2cccc;
|
902 |
-
margin-bottom: 30px;
|
903 |
-
}
|
904 |
-
.saswp-g-plus{
|
905 |
-
float: right;
|
906 |
-
font-size: 15px;
|
907 |
-
width: 20px;
|
908 |
-
height: 20px;
|
909 |
-
}
|
910 |
-
.saswp-g-plus img{
|
911 |
-
max-width:100%;
|
912 |
-
}
|
913 |
-
.saswp-rtng{
|
914 |
-
padding-left: 5px;
|
915 |
-
font-size: 14px;
|
916 |
-
}
|
917 |
-
.saswp-pt-dt {
|
918 |
-
font-size: 12px;
|
919 |
-
color: #999;
|
920 |
-
font-weight: 600;
|
921 |
-
margin-top: 5px;
|
922 |
-
display: inline-block;
|
923 |
-
}
|
924 |
-
.saswp-athr{
|
925 |
-
font-size: 15px;
|
926 |
-
line-height: 1.4;
|
927 |
-
color: #000;
|
928 |
-
font-weight: bold;
|
929 |
-
}
|
930 |
-
.saswp-rv-cnt p{
|
931 |
-
font-size: 16px;
|
932 |
-
line-height: 1.6;
|
933 |
-
color: #000;
|
934 |
-
margin: 10px 0px 0px 0px;
|
935 |
-
}
|
936 |
-
.saswp-rv-img img{
|
937 |
-
max-width:100px;
|
938 |
-
}
|
939 |
-
.saswp-g-review-header div{
|
940 |
-
margin-top:10px;
|
941 |
-
}
|
942 |
-
|
943 |
-
/*** Upgrade Pro CSS ***/
|
944 |
-
.saswp-upgrade-pro{
|
945 |
-
background: #fff;
|
946 |
-
padding: 25px;
|
947 |
-
border: 1px solid #d8d8d8;
|
948 |
-
display: inline-block;
|
949 |
-
margin-top: 10px;
|
950 |
-
width: 81%;
|
951 |
-
}
|
952 |
-
.saswp-upgrade-pro h2{
|
953 |
-
font-size: 20px;
|
954 |
-
margin: 0;
|
955 |
-
color: #23282d;
|
956 |
-
font-weight: 600;
|
957 |
-
text-align: center;
|
958 |
-
}
|
959 |
-
.saswp-upgrade-pro ul{
|
960 |
-
margin: 25px 0px 20px 0px;
|
961 |
-
display: inline-block;
|
962 |
-
}
|
963 |
-
.saswp-upgrade-pro ul li{
|
964 |
-
position: relative;
|
965 |
-
padding-left: 30px;
|
966 |
-
font-size: 14px;
|
967 |
-
line-height: 1.4;
|
968 |
-
margin-bottom: 10px;
|
969 |
-
}
|
970 |
-
.saswp-upgrade-pro ul li:before {
|
971 |
-
content: "";
|
972 |
-
background-image: url(../images/check.png);
|
973 |
-
background-repeat: no-repeat;
|
974 |
-
background-size: 20px;
|
975 |
-
width: 20px;
|
976 |
-
height: 20px;
|
977 |
-
position: absolute;
|
978 |
-
left: 2px;
|
979 |
-
top: 2px;
|
980 |
-
}
|
981 |
-
.saswp-upgrade-pro a{
|
982 |
-
background: #d2150a;
|
983 |
-
padding: 10px 0px;
|
984 |
-
display: block;
|
985 |
-
text-align: center;
|
986 |
-
color: #fff;
|
987 |
-
text-decoration: none;
|
988 |
-
font-size: 16px;
|
989 |
-
font-weight: 600;
|
990 |
-
letter-spacing: 1px;
|
991 |
-
border-radius: 5px;
|
992 |
-
}
|
993 |
-
.saswp_image_prev{
|
994 |
-
max-width: 200px;
|
995 |
-
max-height: 200px;
|
996 |
-
float: left;
|
997 |
-
padding-left:2px;
|
998 |
-
}
|
999 |
-
.saswp_prev_close {
|
1000 |
-
position: relative;
|
1001 |
-
width:30px;
|
1002 |
-
height:30px;
|
1003 |
-
top: 12px;
|
1004 |
-
font-size: 20px;
|
1005 |
-
top: -5px;
|
1006 |
-
text-decoration:none;
|
1007 |
-
}
|
1008 |
-
.saswp-add-custom-schema-div{
|
1009 |
-
margin-top: 10px;
|
1010 |
-
border-top: 1px solid #eee;
|
1011 |
-
padding-top: 5px;
|
1012 |
-
}
|
1013 |
-
|
1014 |
-
.saswp-nav-menu-list label{
|
1015 |
-
padding-left: 10px;
|
1016 |
-
}
|
1017 |
-
/*** How to schema css starts here ***/
|
1018 |
-
|
1019 |
-
.saswp-dynamic-properties
|
1020 |
-
{
|
1021 |
-
border: 1px solid #aaa;
|
1022 |
-
margin-top: 5px;
|
1023 |
-
margin-bottom: 5px;
|
1024 |
-
|
1025 |
-
}
|
1026 |
-
.saswp-table-close{
|
1027 |
-
float: right;
|
1028 |
-
cursor: pointer;
|
1029 |
-
}
|
1030 |
-
.saswp-table-create-onajax table th, .saswp-table-create-onajax table td{
|
1031 |
-
padding: 5px;
|
1032 |
-
}
|
1033 |
-
.saswp-table-create-onajax select{
|
1034 |
-
width: 98%;
|
1035 |
-
}
|
1036 |
-
|
1037 |
-
/*** How to schema css ends here ***/
|
1038 |
-
|
1039 |
-
.saswp-g-reviews-settings-table input{
|
1040 |
-
width: 100%;
|
1041 |
-
}
|
1042 |
-
.saswp-s-reviews-settings-table input{
|
1043 |
-
width: 100%;
|
1044 |
-
}
|
1045 |
-
.saswp_rv_module_pro_notice{
|
1046 |
-
border: 1px solid #d8d8d8;
|
1047 |
-
background: #fff;
|
1048 |
-
}
|
1049 |
-
|
1050 |
-
/*** Review Module section ***/
|
1051 |
-
|
1052 |
-
.saswp-settings-list .saswp-rev-mod{
|
1053 |
-
width: 100%;
|
1054 |
-
display: inline-block;
|
1055 |
-
margin-top: 20px;
|
1056 |
-
}
|
1057 |
-
.saswp-rev-mod .saswp-knowledge-label{
|
1058 |
-
width: 100%;
|
1059 |
-
display: inline-block;
|
1060 |
-
padding: 10px 16px;
|
1061 |
-
font-weight: 600;
|
1062 |
-
font-size: 16px;
|
1063 |
-
color: #333;
|
1064 |
-
background: #f9f9f9;
|
1065 |
-
border: 1px solid #d8d8d8;
|
1066 |
-
border-bottom: none;
|
1067 |
-
box-sizing: border-box;
|
1068 |
-
}
|
1069 |
-
.saswp-rev-mod .saswp-knowledge-field{
|
1070 |
-
width:100%;
|
1071 |
-
display: inline-block;
|
1072 |
-
}
|
1073 |
-
.saswp-rev-mod .saswp_rv_module_pro_notice{
|
1074 |
-
padding:20px;
|
1075 |
-
}
|
1076 |
-
.saswp_cmpny_lst{
|
1077 |
-
width:100%;
|
1078 |
-
display: inline-block;
|
1079 |
-
margin-top:30px;
|
1080 |
-
}
|
1081 |
-
.saswp_rv_module_pro_notice ul{
|
1082 |
-
margin: 15px 0px 20px 0px;
|
1083 |
-
width: 100%;
|
1084 |
-
display: inline-grid;
|
1085 |
-
grid-template-columns: 1fr 1fr 1fr;
|
1086 |
-
grid-gap: 20px;
|
1087 |
-
border-bottom: 1px solid #eee;
|
1088 |
-
padding-bottom: 20px;
|
1089 |
-
}
|
1090 |
-
.saswp_rv_module_pro_notice ul li{
|
1091 |
-
position: relative;
|
1092 |
-
font-size: 15px;
|
1093 |
-
line-height: 1.5;
|
1094 |
-
color: #444;
|
1095 |
-
margin: 0;
|
1096 |
-
}
|
1097 |
-
.saswp_rv_module_pro_notice ul li span{
|
1098 |
-
padding-left:3px;
|
1099 |
-
}
|
1100 |
-
/*.saswp_rv_module_pro_notice ul li.check-img:before{
|
1101 |
-
content: "";
|
1102 |
-
background-image: url(../images/check.png);
|
1103 |
-
background-repeat: no-repeat;
|
1104 |
-
background-size: 16px;
|
1105 |
-
width: 16px;
|
1106 |
-
height: 16px;
|
1107 |
-
position: absolute;
|
1108 |
-
left: 2px;
|
1109 |
-
top: 6px;
|
1110 |
-
}*/
|
1111 |
-
.saswp_rv_module_pro_notice h2{
|
1112 |
-
text-align: center;
|
1113 |
-
font-size: 31px;
|
1114 |
-
}
|
1115 |
-
.saswp_rv_module_pro_notice .saswp_desc{
|
1116 |
-
text-align: center;
|
1117 |
-
font-size: 18px;
|
1118 |
-
font-style: normal;
|
1119 |
-
color: #000;
|
1120 |
-
}
|
1121 |
-
.saswp_rv_module_pro_notice .saswp_desc a{
|
1122 |
-
font-style: italic;
|
1123 |
-
}
|
1124 |
-
.saswp_rv_module_pro_notice .saswp_lst{
|
1125 |
-
color: #808080;
|
1126 |
-
font-family: georgia;
|
1127 |
-
font-style: italic;
|
1128 |
-
font-style: italic;
|
1129 |
-
font-size: 15px;
|
1130 |
-
font-weight: 600;
|
1131 |
-
}
|
1132 |
-
.saswp_rv_module_pro_notice .saswp_avlbl{
|
1133 |
-
color: #2a902e;
|
1134 |
-
font-family: georgia;
|
1135 |
-
font-style: italic;
|
1136 |
-
font-size: 15px;
|
1137 |
-
font-weight: 600;
|
1138 |
-
}
|
1139 |
-
.saswp_rv_module_pro_notice ul li img{
|
1140 |
-
width:20px;
|
1141 |
-
height:20px;
|
1142 |
-
position: relative;
|
1143 |
-
top: 4px;
|
1144 |
-
}
|
1145 |
-
.saswp-rev-btn{
|
1146 |
-
width:100%;
|
1147 |
-
display: inline-block;
|
1148 |
-
margin-top:20px;
|
1149 |
-
text-align: center;
|
1150 |
-
}
|
1151 |
-
.saswp-rev-btn span{
|
1152 |
-
display: block;
|
1153 |
-
font-size: 13px;
|
1154 |
-
margin-bottom: 15px;
|
1155 |
-
}
|
1156 |
-
.saswp-rev-btn a{
|
1157 |
-
padding: 12px 18px;
|
1158 |
-
display: inline-block;
|
1159 |
-
text-decoration: none;
|
1160 |
-
border-radius: 5px;
|
1161 |
-
background: #0085ba;
|
1162 |
-
color: #fff;
|
1163 |
-
font-weight: 600;
|
1164 |
-
font-size: 18px;
|
1165 |
-
}
|
1166 |
-
.select2-container{
|
1167 |
-
width:100% !important;
|
1168 |
-
}
|
1169 |
-
.saswp-schema-modify-section{
|
1170 |
-
margin-top: 15px;
|
1171 |
-
border-top: 1px solid #eee;
|
1172 |
-
padding-top: 15px;
|
1173 |
-
}
|
1174 |
-
.saswp-custom-meta-list{
|
1175 |
-
border: 1px solid #aaa;
|
1176 |
-
border-radius: 4px;
|
1177 |
-
}
|
1178 |
-
.saswp-custom-fields-table tr td:nth-child(3n+3) input{
|
1179 |
-
border: 1px solid #aaa;
|
1180 |
-
border-radius: 4px;
|
1181 |
-
}
|
1182 |
-
/** Notification CSS **/
|
1183 |
-
.updated.notice p{
|
1184 |
-
display: flex;
|
1185 |
-
width: 100%;
|
1186 |
-
align-items: center;
|
1187 |
-
}
|
1188 |
-
.updated.notice .dashicons-thumbs-up{
|
1189 |
-
margin-right:10px;
|
1190 |
-
}
|
1191 |
-
a.saswp-feedback-remindme, a.saswp-feedback-no-thanks{
|
1192 |
-
display: inline-block;
|
1193 |
-
cursor: pointer;
|
1194 |
-
}
|
1195 |
-
.saswp-feedback-remindme:after{
|
1196 |
-
content:",";
|
1197 |
-
display: inline-block;
|
1198 |
-
margin-right:5px;
|
1199 |
-
padding-left: 5px
|
1200 |
-
}
|
1201 |
-
a.saswp-revws-lnk{
|
1202 |
-
display: inline-block;
|
1203 |
-
background: #0085ba;
|
1204 |
-
padding: 12px 20px;
|
1205 |
-
color: #fff;
|
1206 |
-
text-decoration: none;
|
1207 |
-
border-radius: 3px;
|
1208 |
-
margin-left: 20px;
|
1209 |
-
font-size: 14px;
|
1210 |
-
line-height: 0.6;
|
1211 |
-
}
|
1212 |
-
.saswp-update-notice-btns{
|
1213 |
-
display: inline-block;
|
1214 |
-
width: 100%;
|
1215 |
-
margin-bottom: 5px;
|
1216 |
-
}
|
1217 |
-
.saswp-about-contact-page{
|
1218 |
-
width:75%;
|
1219 |
-
float:right;
|
1220 |
-
}
|
1221 |
-
.saswp-about-contact-page-tooltip{
|
1222 |
-
float:left;
|
1223 |
-
clear: both;
|
1224 |
-
}
|
1225 |
-
.saswp-quick-setup{
|
1226 |
-
float: left;
|
1227 |
-
}
|
1228 |
-
.saswp_add_schema_fields_on_fly{
|
1229 |
-
margin-bottom: 5px !important;
|
1230 |
-
}
|
1231 |
-
.saswp-custom-fields-table .saswp_image_prev{
|
1232 |
-
max-width:62px !important;
|
1233 |
-
}
|
1234 |
-
.saswp-custom-fields-table .saswp_prev_close{
|
1235 |
-
font-size: 15px;
|
1236 |
-
}
|
1237 |
-
.saswp-review-content-table td:nth-child(2){
|
1238 |
-
width: 50%;
|
1239 |
-
float: left;
|
1240 |
-
}
|
1241 |
-
.saswp-review-content-table input{
|
1242 |
-
width: 100%;
|
1243 |
-
}
|
1244 |
-
.saswp-review-content-table select{
|
1245 |
-
width: 100%;
|
1246 |
-
}
|
1247 |
-
.saswp-review-content-table textarea{
|
1248 |
-
width: 100%;
|
1249 |
-
}
|
1 |
+
.saswp_warning{color:#ef6c00!important}.saswp_hide{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-general table{margin-top:0}.saswp-general table td{padding:5px}.saswp-knowledge table th{width:auto;padding:0}.saswp-knowledge table{margin-top:0}.saswp-knowledge table td{padding:5px}.saswp-schema table th{width:auto;padding:0}.saswp-schema table{margin-top:0}.saswp-schema table td{padding:5px}.saswp-amp table th{width:auto;padding:0}.saswp-amp table{margin-top:0}.saswp-amp table td{padding:5px}.saswp-help table th{width:auto;padding:0}.saswp-support table th{width:auto;padding:0}.saswp-review table th{width:auto;padding:0}.saswp-help table{margin-top:0}.saswp-help table td{padding:5px}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-settings-list li div label{font-weight:600}.saswp-general h2{margin-bottom:0}.saswp-knowledge h2{margin-bottom:0}.saswp-schema h2{margin-bottom:0}.saswp-help h2{margin-bottom:0}.saswp-settings-form p.submit{margin-top:0}.saswp_qanda_p{font-weight:500}.saswp-display-none{display:none!important}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools table th{width:auto;padding:0}.saswp-tools table{margin-top:0}.saswp-tools table td{padding:5px}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-tools .saswp-knowledge-label{float:left}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.saswp-knowledge-base .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-knowledge-base .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds li{display:flex}.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-settings-first-div{width:70%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:30px;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style-type:circle;list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel a{text-decoration:none}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-archive-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-archive-div .saswp-knowledge-label{float:left;clear:both}.saswp-amp .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-amp .saswp-knowledge-label{float:left;clear:both}.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-review .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-compativility-div .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-label{float:left;clear:both}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box;padding-right:10px}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}.saswp-post-specific-wrapper{padding:10px}.saswp-tab a.selected{background-color:#ccc}.saswp-tab-links{display:block;background-color:inherit;color:#000;padding:6px 10px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:130px;overflow:hidden;margin-right:10px}.saswp-star-rating{cursor:pointer}.saswp-post-specific-wrapper select{width:100%}.saswp-review-tables{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=text]{width:180px}#sasw-review input[type=number]{width:180px}#saswp-review-item-enable{width:10px}.saswp-enable-review-on-post{padding-bottom:10px}.saswp-enable-review-on-post label{font-weight:500}.saswp-compatibility table th{width:auto;padding:0}.saswp-compatibility .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:10px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-compatibility .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:40px;height:22px;border:20px}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#5a6783;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#61bd3b;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #eee}.saswp-tab-nav .selected{background-color:#ccc}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.option-table-class{width:100%}.option-table-class tr td{padding:10px 10px 10px 10px}.option-table-class tr>td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table{width:100%}.saswp-custom-fields-table input{width:100%}.saswp-custom-fields-table tr td{padding:10px 10px 10px 10px}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{color:#000;font-weight:500}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 8px 10px;width:70px;margin-right:20px;float:left}.saswp-ele-ic img{width:100%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-ele-tlt p{margin-top:10px}.saswp-sts-btn{box-sizing:border-box;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz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4wMCBCdWlsZCAwKSAgLS0+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;box-sizing:border-box}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px 0;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px;padding-left:5px}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-about-contact-page{width:75%;float:right}.saswp-about-contact-page-tooltip{float:left;clear:both}.saswp-quick-setup{float:left}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}.saswp-custom-fields-table .saswp_image_prev{max-width:62px!important}.saswp-custom-fields-table .saswp_prev_close{font-size:15px}.saswp-review-content-table td:nth-child(2){width:50%;float:left}.saswp-review-content-table input{width:100%}.saswp-review-content-table select{width:100%}.saswp-review-content-table textarea{width:100%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin_section/js/main-script.js
CHANGED
@@ -1,27 +1,142 @@
|
|
1 |
-
var saswp_meta_list = [];
|
2 |
-
var saswp_meta_fields = [];
|
3 |
-
var saswp_meta_list_fields = [];
|
4 |
-
|
5 |
-
function
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
jQuery('.saswp-datepicker-picker').datepicker({
|
20 |
dateFormat: "yy-mm-dd",
|
21 |
});
|
22 |
|
23 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
|
27 |
|
@@ -72,9 +187,6 @@ function getParameterByName(name, url) {
|
|
72 |
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
|
79 |
if (!saswp_meta_list[type]) {
|
80 |
|
@@ -126,7 +238,7 @@ function getParameterByName(name, url) {
|
|
126 |
|
127 |
}
|
128 |
|
129 |
-
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
130 |
|
131 |
var html = '';
|
132 |
|
@@ -206,12 +318,119 @@ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, sc
|
|
206 |
return html;
|
207 |
|
208 |
}
|
209 |
-
|
210 |
jQuery(document).ready(function($){
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
/* Newletters js starts here */
|
213 |
|
214 |
-
|
215 |
|
216 |
var content = '<h3>Thanks for using Structured Data!</h3>';
|
217 |
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>';
|
@@ -220,7 +439,7 @@ jQuery(document).ready(function($){
|
|
220 |
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; }';
|
221 |
content += '</style>';
|
222 |
content += '<div id="afw_mc_embed_signup">';
|
223 |
-
content += '<form action="//app.mailerlite.com/webforms/submit/
|
224 |
content += '<div id="afw_mc_embed_signup_scroll">';
|
225 |
content += '<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">';
|
226 |
content += '<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">';
|
@@ -330,45 +549,22 @@ jQuery(document).ready(function($){
|
|
330 |
if(schematype == 'local_business'){
|
331 |
$(".saswp-option-table-class tr").eq(1).show();
|
332 |
$(".saswp-business-text-field-tr").show();
|
333 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
334 |
-
// $("#saswp_dayofweek").attr('disabled', false);
|
335 |
$('.select-post-type').val('show_globally').trigger('change');
|
336 |
}
|
337 |
if(schematype == 'Service'){
|
338 |
$(".saswp-service-text-field-tr").show();
|
339 |
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
340 |
}
|
|
|
|
|
|
|
|
|
341 |
if(schematype == 'Review'){
|
342 |
$(".saswp-review-text-field-tr").show();
|
343 |
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
344 |
saswp_item_reviewed_call();
|
345 |
-
}
|
346 |
-
if(schematype == 'Product'){
|
347 |
-
$(".saswp-product-text-field-tr").show();
|
348 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
349 |
-
}
|
350 |
-
if(schematype == 'Event'){
|
351 |
-
$(".saswp-event-text-field-tr").show();
|
352 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
353 |
-
}
|
354 |
-
if(schematype == 'AudioObject'){
|
355 |
-
$(".saswp-audio-text-field-tr").show();
|
356 |
-
}
|
357 |
-
if(schematype == 'SoftwareApplication'){
|
358 |
-
$(".saswp-softwareapplication-text-field-tr").show();
|
359 |
-
}
|
360 |
-
|
361 |
-
$(".saswp-schem-type-note").addClass('saswp_hide');
|
362 |
-
if(schematype == 'qanda'){
|
363 |
-
$(".saswp-schem-type-note").removeClass('saswp_hide');
|
364 |
-
}
|
365 |
-
|
366 |
-
$(".saswp-job-posting-note").addClass('saswp_hide');
|
367 |
-
|
368 |
-
// if(schematype == 'JobPosting'){
|
369 |
-
// $(".saswp-job-posting-note").removeClass('saswp_hide');
|
370 |
-
// }
|
371 |
-
|
372 |
saswp_enable_rating_review();
|
373 |
});
|
374 |
|
@@ -393,58 +589,23 @@ jQuery(document).ready(function($){
|
|
393 |
if(schematype == 'local_business'){
|
394 |
$(".saswp-"+businesstype+'-tr').show();
|
395 |
$(".saswp-business-text-field-tr").show();
|
396 |
-
$(".saswp-"+businesstype+'-tr').find('select').attr('disabled', false);
|
397 |
-
// $("#saswp_dayofweek").attr('disabled', false);
|
398 |
}
|
399 |
-
|
400 |
-
$(".saswp-service-text-field-tr").show();
|
401 |
-
$(".saswp-service-text-field-tr").find('select').attr('disabled', false);
|
402 |
-
}
|
403 |
-
if(schematype == 'Product'){
|
404 |
-
$(".saswp-product-text-field-tr").show();
|
405 |
-
$(".saswp-product-text-field-tr").find('select').attr('disabled', false);
|
406 |
-
}
|
407 |
-
if(schematype == 'AudioObject'){
|
408 |
-
$(".saswp-audio-text-field-tr").show();
|
409 |
-
}
|
410 |
-
if(schematype == 'SoftwareApplication'){
|
411 |
-
$(".saswp-softwareapplication-text-field-tr").show();
|
412 |
-
}
|
413 |
-
|
414 |
if(schematype == 'Review'){
|
415 |
$(".saswp-review-text-field-tr").show();
|
416 |
$(".saswp-review-text-field-tr").find('select').attr('disabled', false);
|
417 |
}
|
418 |
if(schematype == 'Event'){
|
419 |
-
$(".saswp-event-text-field-tr").show();
|
420 |
-
$(".saswp-
|
421 |
}
|
|
|
422 |
saswp_enable_rating_review();
|
423 |
}).change();
|
424 |
|
425 |
|
426 |
-
//Settings page jquery starts here
|
427 |
-
|
428 |
-
|
429 |
-
function saswp_compatibliy_notes(current, id){
|
430 |
-
|
431 |
-
var plugin_name = id.replace('-checkbox','');
|
432 |
-
var text = $("#"+plugin_name).next('p').text();
|
433 |
-
|
434 |
-
if (current.is(':checked') && text !=='') {
|
435 |
-
$("#"+plugin_name).next('p').removeClass('saswp_hide');
|
436 |
-
}else{
|
437 |
-
|
438 |
-
if($("#"+plugin_name).next('p').attr('data-id') == 1){
|
439 |
-
$("#"+plugin_name).next('p').text('This feature is only available in pro version');
|
440 |
-
}else{
|
441 |
-
$("#"+plugin_name).next('p').addClass('saswp_hide');
|
442 |
-
}
|
443 |
-
}
|
444 |
-
|
445 |
-
}
|
446 |
-
|
447 |
-
|
448 |
$(".saswp-checkbox").change(function(){
|
449 |
|
450 |
var id = $(this).attr("id");
|
@@ -614,6 +775,17 @@ jQuery(document).ready(function($){
|
|
614 |
$("#sd_tumblr").hide();
|
615 |
}
|
616 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
617 |
case 'saswp-for-amp-checkbox':
|
618 |
|
619 |
if ($(this).is(':checked')) {
|
@@ -1077,7 +1249,6 @@ jQuery(document).ready(function($){
|
|
1077 |
|
1078 |
//Settings page jquery ends here
|
1079 |
|
1080 |
-
|
1081 |
$(document).on("change",".saswp-schema-type-toggle", function(e){
|
1082 |
var schema_id = $(this).attr("data-schema-id");
|
1083 |
var post_id = $(this).attr("data-post-id");
|
@@ -1285,48 +1456,9 @@ jQuery(document).ready(function($){
|
|
1285 |
}
|
1286 |
},'json');
|
1287 |
});
|
1288 |
-
|
1289 |
-
|
1290 |
-
function saswp_item_reviewed_call(){
|
1291 |
-
|
1292 |
-
$(".saswp-item-reviewed").change(function(e){
|
1293 |
-
e.preventDefault();
|
1294 |
-
var schema_type ="";
|
1295 |
-
|
1296 |
-
if($('select#schema_type option:selected').val()){
|
1297 |
-
schema_type = $('select#schema_type option:selected').val();
|
1298 |
-
}
|
1299 |
-
if($(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
1300 |
-
schema_type = $(".saswp-tab-links.selected").attr('saswp-schema-type');
|
1301 |
-
}
|
1302 |
-
|
1303 |
-
if(schema_type === 'Review'){
|
1304 |
-
|
1305 |
-
var current = $(this);
|
1306 |
-
var item = $(this).val();
|
1307 |
-
var post_id = saswp_localize_data.post_id;
|
1308 |
-
var schema_id = $(current).attr('data-id');
|
1309 |
-
var post_specific = $(current).attr('post-specific');
|
1310 |
-
$.get(ajaxurl,
|
1311 |
-
{ 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},
|
1312 |
-
function(response){
|
1313 |
-
|
1314 |
-
$(current).parent().parent().nextAll().remove(".saswp-review-tr");
|
1315 |
-
$(current).parent().parent().after(response);
|
1316 |
-
|
1317 |
-
});
|
1318 |
-
|
1319 |
-
}
|
1320 |
-
|
1321 |
-
|
1322 |
-
}).change();
|
1323 |
-
|
1324 |
-
}
|
1325 |
saswp_item_reviewed_call();
|
1326 |
-
|
1327 |
-
function saswpAddTimepicker(){
|
1328 |
-
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1329 |
-
}
|
1330 |
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1331 |
|
1332 |
$(document).on("click",".saswp-add-custom-schema", function(e){
|
@@ -1368,13 +1500,7 @@ jQuery(document).ready(function($){
|
|
1368 |
});
|
1369 |
saswp_schema_datepicker();
|
1370 |
|
1371 |
-
saswp_reviews_datepicker();
|
1372 |
-
function saswp_reviews_datepicker(){
|
1373 |
-
|
1374 |
-
$('.saswp-reviews-datepicker-picker').datepicker({
|
1375 |
-
dateFormat: "yy-mm-dd"
|
1376 |
-
});
|
1377 |
-
}
|
1378 |
|
1379 |
//Review js starts here
|
1380 |
|
@@ -1691,60 +1817,8 @@ jQuery(document).ready(function($){
|
|
1691 |
|
1692 |
}
|
1693 |
});
|
1694 |
-
saswpCustomSelect2();
|
1695 |
-
|
1696 |
-
if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
|
1697 |
-
|
1698 |
-
$('.saswp-custom-fields-select2').select2({
|
1699 |
-
ajax: {
|
1700 |
-
type: "POST",
|
1701 |
-
url: ajaxurl, // AJAX URL is predefined in WordPress admin
|
1702 |
-
dataType: 'json',
|
1703 |
-
delay: 250, // delay in ms while typing when to perform a AJAX search
|
1704 |
-
data: function (params) {
|
1705 |
-
return {
|
1706 |
-
saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
|
1707 |
-
q: params.term, // search query
|
1708 |
-
action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
|
1709 |
-
};
|
1710 |
-
},
|
1711 |
-
processResults: function( data ) {
|
1712 |
-
return {
|
1713 |
-
results: data
|
1714 |
-
};
|
1715 |
-
},
|
1716 |
-
cache: true
|
1717 |
-
},
|
1718 |
-
minimumInputLength: 2 // the minimum of symbols to input before perform a search
|
1719 |
-
});
|
1720 |
-
|
1721 |
-
}
|
1722 |
-
|
1723 |
-
}
|
1724 |
-
|
1725 |
-
function saswp_enable_rating_review(){
|
1726 |
-
var schema_type ="";
|
1727 |
-
if($('select#schema_type option:selected').val()){
|
1728 |
-
schema_type = $('select#schema_type option:selected').val();
|
1729 |
-
}
|
1730 |
-
if($(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
1731 |
-
schema_type = $(".saswp-tab-links.selected").attr('saswp-schema-type');
|
1732 |
-
}
|
1733 |
-
|
1734 |
-
if(schema_type){
|
1735 |
-
$(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
|
1736 |
-
|
1737 |
-
if($(this).is(':checked')){
|
1738 |
-
$(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
|
1739 |
-
}else{
|
1740 |
-
$(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
1741 |
-
}
|
1742 |
-
|
1743 |
-
}).change();
|
1744 |
-
}
|
1745 |
-
|
1746 |
-
}
|
1747 |
-
saswp_enable_rating_review();
|
1748 |
|
1749 |
//custom fields modify schema ends here
|
1750 |
|
@@ -1803,189 +1877,7 @@ jQuery(document).ready(function($){
|
|
1803 |
|
1804 |
});
|
1805 |
|
1806 |
-
}
|
1807 |
-
$(document).on("click", ".saswp-add-g-location-btn", function(e){
|
1808 |
-
|
1809 |
-
var blocks_field = '';
|
1810 |
-
|
1811 |
-
if($("#saswp_google_place_api_key").length){
|
1812 |
-
|
1813 |
-
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">';
|
1814 |
-
}else{
|
1815 |
-
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">';
|
1816 |
-
}
|
1817 |
-
|
1818 |
-
e.preventDefault();
|
1819 |
-
var html = '';
|
1820 |
-
html += '<tr>'
|
1821 |
-
+ '<td style="width:12%;"><strong>Place Id</strong></td>'
|
1822 |
-
+ '<td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td>'
|
1823 |
-
+ '<td style="width:10%;"><strong>Reviews</strong></td>'
|
1824 |
-
+ '<td style="width:10%;">'+blocks_field+'</td>'
|
1825 |
-
+ '<td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td>'
|
1826 |
-
+ '<td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td>'
|
1827 |
-
+ '<td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td>'
|
1828 |
-
+ '</tr>';
|
1829 |
-
if(html){
|
1830 |
-
$(".saswp-g-reviews-settings-table").append(html);
|
1831 |
-
}
|
1832 |
-
|
1833 |
-
});
|
1834 |
-
|
1835 |
-
function saswp_fetch_s_approved_reviews(current){
|
1836 |
-
|
1837 |
-
current.addClass('updating-message');
|
1838 |
-
$.get(ajaxurl,
|
1839 |
-
{ action:"saswp_fetch_s_approved_reviews", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1840 |
-
function(response){
|
1841 |
-
current.removeClass('updating-message');
|
1842 |
-
console.log(response);
|
1843 |
-
if(response['status']){
|
1844 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1845 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1846 |
-
}else{
|
1847 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1848 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1849 |
-
}
|
1850 |
-
|
1851 |
-
},'json');
|
1852 |
-
|
1853 |
-
}
|
1854 |
-
|
1855 |
-
function saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page, loop_run){
|
1856 |
-
current.addClass('updating-message');
|
1857 |
-
$.get(ajaxurl,
|
1858 |
-
{ 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},
|
1859 |
-
function(response){
|
1860 |
-
current.removeClass('updating-message');
|
1861 |
-
console.log(response);
|
1862 |
-
if(response['status']){
|
1863 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1864 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1865 |
-
}else{
|
1866 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1867 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1868 |
-
}
|
1869 |
-
page++;
|
1870 |
-
if(page <loop_run){
|
1871 |
-
saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page);
|
1872 |
-
}else{
|
1873 |
-
saswp_fetch_s_approved_reviews(current);
|
1874 |
-
}
|
1875 |
-
},'json');
|
1876 |
-
|
1877 |
-
}
|
1878 |
-
|
1879 |
-
$(document).on("click",".saswp-fetch-s-approved-reviews", function(e){
|
1880 |
-
|
1881 |
-
e.preventDefault();
|
1882 |
-
var current = $(this);
|
1883 |
-
current.addClass('updating-message');
|
1884 |
-
var site_id = $("#saswp_s_approved_site_id").val();
|
1885 |
-
var token = $("#saswp_s_approved_token").val();
|
1886 |
-
var limit = $("#saswp_s_approved_reviews").val();
|
1887 |
-
var api_key = $("#reviews_addon_license_key").val();
|
1888 |
-
var loop_run = 1;
|
1889 |
-
var page = 0;
|
1890 |
-
|
1891 |
-
if(limit > 100){
|
1892 |
-
var div_limit = limit/100;
|
1893 |
-
var div_remainder = limit%100;
|
1894 |
-
loop_run = div_limit;
|
1895 |
-
|
1896 |
-
if(div_remainder){
|
1897 |
-
loop_run++;
|
1898 |
-
}
|
1899 |
-
|
1900 |
-
}
|
1901 |
-
|
1902 |
-
if(site_id && token && api_key){
|
1903 |
-
|
1904 |
-
saswp_add_s_approved_reviews(current, site_id, token, limit, api_key, page, loop_run);
|
1905 |
-
|
1906 |
-
}else{
|
1907 |
-
current.removeClass('updating-message');
|
1908 |
-
alert('Fill the site id and token with valid api key');
|
1909 |
-
}
|
1910 |
-
|
1911 |
-
});
|
1912 |
-
|
1913 |
-
|
1914 |
-
$(document).on("click", '.saswp-fetch-g-reviews', function(){
|
1915 |
-
|
1916 |
-
var current = $(this);
|
1917 |
-
var premium_status = 'free';
|
1918 |
-
current.addClass('updating-message');
|
1919 |
-
|
1920 |
-
var location = $(this).parent().parent().find('.saswp-g-location-field').val();
|
1921 |
-
var blocks = $(this).parent().parent().find('.saswp-g-blocks-field').val();
|
1922 |
-
var g_api = $("#saswp_google_place_api_key").val();
|
1923 |
-
var reviews_api = $("#reviews_addon_license_key").val();
|
1924 |
-
var reviews_api_status = $("#reviews_addon_license_key_status").val();
|
1925 |
-
|
1926 |
-
if($("#saswp_google_place_api_key").length){
|
1927 |
-
premium_status = 'free';
|
1928 |
-
}else{
|
1929 |
-
premium_status = 'premium';
|
1930 |
-
}
|
1931 |
-
|
1932 |
-
if(premium_status == 'premium'){
|
1933 |
-
|
1934 |
-
if(blocks > 0){
|
1935 |
-
|
1936 |
-
var blocks_remainder = blocks % 10;
|
1937 |
-
|
1938 |
-
if(blocks_remainder != 0){
|
1939 |
-
|
1940 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Reviews count should be in step of 10');
|
1941 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1942 |
-
current.removeClass('updating-message');
|
1943 |
-
return false;
|
1944 |
-
|
1945 |
-
}
|
1946 |
-
|
1947 |
-
}else{
|
1948 |
-
alert('Blocks value is zero');
|
1949 |
-
current.removeClass('updating-message');
|
1950 |
-
return false;
|
1951 |
-
}
|
1952 |
-
|
1953 |
-
}
|
1954 |
-
|
1955 |
-
if(location !='' && (reviews_api || g_api)){
|
1956 |
-
$.ajax({
|
1957 |
-
type: "POST",
|
1958 |
-
url:ajaxurl,
|
1959 |
-
dataType: "json",
|
1960 |
-
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},
|
1961 |
-
success:function(response){
|
1962 |
-
if(response['status'] =='t'){
|
1963 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Success');
|
1964 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
1965 |
-
}else{
|
1966 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
1967 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
1968 |
-
}
|
1969 |
-
current.removeClass('updating-message');
|
1970 |
-
},
|
1971 |
-
error: function(response){
|
1972 |
-
console.log(response);
|
1973 |
-
}
|
1974 |
-
});
|
1975 |
-
}else{
|
1976 |
-
if(location ==''){
|
1977 |
-
alert('Please enter place id');
|
1978 |
-
}
|
1979 |
-
if(g_api ==''){
|
1980 |
-
alert('Please enter api key');
|
1981 |
-
}
|
1982 |
-
if(reviews_api ==''){
|
1983 |
-
alert('Please enter reviews api key');
|
1984 |
-
}
|
1985 |
-
current.removeClass('updating-message');
|
1986 |
-
}
|
1987 |
-
});
|
1988 |
-
|
1989 |
//rating ends here
|
1990 |
|
1991 |
$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){
|
1 |
+
var saswp_meta_list = [];
|
2 |
+
var saswp_meta_fields = [];
|
3 |
+
var saswp_meta_list_fields = [];
|
4 |
+
|
5 |
+
function saswp_enable_rating_review(){
|
6 |
+
var schema_type = "";
|
7 |
+
if(jQuery('select#schema_type option:selected').val()){
|
8 |
+
schema_type = jQuery('select#schema_type option:selected').val();
|
9 |
+
}
|
10 |
+
if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
11 |
+
schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
|
12 |
+
}
|
13 |
+
|
14 |
+
if(schema_type){
|
15 |
+
jQuery(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
|
16 |
+
|
17 |
+
if(jQuery(this).is(':checked')){
|
18 |
+
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
|
19 |
+
}else{
|
20 |
+
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
21 |
+
}
|
22 |
+
|
23 |
+
}).change();
|
24 |
+
}
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
function getParameterByName(name, url) {
|
29 |
+
if (!url){
|
30 |
+
url = window.location.href;
|
31 |
+
}
|
32 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
33 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
34 |
+
results = regex.exec(url);
|
35 |
+
if (!results) return null;
|
36 |
+
if (!results[2]) return "";
|
37 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
38 |
+
}
|
39 |
+
|
40 |
+
function saswpCustomSelect2(){
|
41 |
+
if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
|
42 |
+
|
43 |
+
jQuery('.saswp-custom-fields-select2').select2({
|
44 |
+
ajax: {
|
45 |
+
type: "POST",
|
46 |
+
url: ajaxurl, // AJAX URL is predefined in WordPress admin
|
47 |
+
dataType: 'json',
|
48 |
+
delay: 250, // delay in ms while typing when to perform a AJAX search
|
49 |
+
data: function (params) {
|
50 |
+
return {
|
51 |
+
saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
|
52 |
+
q: params.term, // search query
|
53 |
+
action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
|
54 |
+
};
|
55 |
+
},
|
56 |
+
processResults: function( data ) {
|
57 |
+
return {
|
58 |
+
results: data
|
59 |
+
};
|
60 |
+
},
|
61 |
+
cache: true
|
62 |
+
},
|
63 |
+
minimumInputLength: 2 // the minimum of symbols to input before perform a search
|
64 |
+
});
|
65 |
+
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
|
70 |
+
function saswp_reviews_datepicker(){
|
71 |
+
|
72 |
+
jQuery('.saswp-reviews-datepicker-picker').datepicker({
|
73 |
+
dateFormat: "yy-mm-dd"
|
74 |
+
});
|
75 |
+
}
|
76 |
+
|
77 |
+
function saswp_schema_datepicker(){
|
78 |
|
79 |
jQuery('.saswp-datepicker-picker').datepicker({
|
80 |
dateFormat: "yy-mm-dd",
|
81 |
});
|
82 |
|
83 |
}
|
84 |
+
|
85 |
+
function saswpAddTimepicker(){
|
86 |
+
jQuery('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
87 |
+
}
|
88 |
+
|
89 |
+
function saswp_item_reviewed_call(){
|
90 |
+
|
91 |
+
jQuery(".saswp-item-reviewed").change(function(e){
|
92 |
+
e.preventDefault();
|
93 |
+
var schema_type ="";
|
94 |
+
|
95 |
+
if(jQuery('select#schema_type option:selected').val()){
|
96 |
+
schema_type = jQuery('select#schema_type option:selected').val();
|
97 |
+
}
|
98 |
+
if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
99 |
+
schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
|
100 |
+
}
|
101 |
+
|
102 |
+
if(schema_type === 'Review'){
|
103 |
+
|
104 |
+
var current = jQuery(this);
|
105 |
+
var item = jQuery(this).val();
|
106 |
+
var post_id = saswp_localize_data.post_id;
|
107 |
+
var schema_id = jQuery(current).attr('data-id');
|
108 |
+
var post_specific = jQuery(current).attr('post-specific');
|
109 |
+
jQuery.get(ajaxurl,
|
110 |
+
{ action:"saswp_get_item_reviewed_fields",schema_id:schema_id, post_specific:post_specific ,item:item, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
111 |
+
function(response){
|
112 |
+
|
113 |
+
jQuery(current).parent().parent().nextAll().remove(".saswp-review-tr");
|
114 |
+
jQuery(current).parent().parent().after(response);
|
115 |
+
|
116 |
+
});
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
|
121 |
+
}).change();
|
122 |
+
|
123 |
+
}
|
124 |
+
|
125 |
+
function saswp_compatibliy_notes(current, id){
|
126 |
+
|
127 |
+
var plugin_name = id.replace('-checkbox','');
|
128 |
+
var text = jQuery("#"+plugin_name).next('p').text();
|
129 |
+
|
130 |
+
if (current.is(':checked') && text !=='') {
|
131 |
+
jQuery("#"+plugin_name).next('p').removeClass('saswp_hide');
|
132 |
+
}else{
|
133 |
+
if(jQuery("#"+plugin_name).next('p').attr('data-id') == 1){
|
134 |
+
jQuery("#"+plugin_name).next('p').text('This feature is only available in pro version');
|
135 |
+
}else{
|
136 |
+
jQuery("#"+plugin_name).next('p').addClass('saswp_hide');
|
137 |
+
}
|
138 |
+
}
|
139 |
+
}
|
140 |
|
141 |
function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
|
142 |
|
187 |
|
188 |
}
|
189 |
|
|
|
|
|
|
|
190 |
function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
|
191 |
if (!saswp_meta_list[type]) {
|
192 |
|
238 |
|
239 |
}
|
240 |
|
241 |
+
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
242 |
|
243 |
var html = '';
|
244 |
|
318 |
return html;
|
319 |
|
320 |
}
|
321 |
+
|
322 |
jQuery(document).ready(function($){
|
323 |
|
324 |
+
/* Google Reviews js starts here */
|
325 |
+
|
326 |
+
$(document).on("click", ".saswp-add-g-location-btn", function(e){
|
327 |
+
|
328 |
+
var blocks_field = '';
|
329 |
+
|
330 |
+
if($("#saswp_google_place_api_key").length){
|
331 |
+
|
332 |
+
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">';
|
333 |
+
}else{
|
334 |
+
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">';
|
335 |
+
}
|
336 |
+
|
337 |
+
e.preventDefault();
|
338 |
+
var html = '';
|
339 |
+
html += '<tr>'
|
340 |
+
+ '<td style="width:12%;"><strong>Place Id</strong></td>'
|
341 |
+
+ '<td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td>'
|
342 |
+
+ '<td style="width:10%;"><strong>Reviews</strong></td>'
|
343 |
+
+ '<td style="width:10%;">'+blocks_field+'</td>'
|
344 |
+
+ '<td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td>'
|
345 |
+
+ '<td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td>'
|
346 |
+
+ '<td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td>'
|
347 |
+
+ '</tr>';
|
348 |
+
if(html){
|
349 |
+
$(".saswp-g-reviews-settings-table").append(html);
|
350 |
+
}
|
351 |
+
|
352 |
+
});
|
353 |
+
|
354 |
+
$(document).on("click", '.saswp-fetch-g-reviews', function(){
|
355 |
+
|
356 |
+
var current = $(this);
|
357 |
+
var premium_status = 'free';
|
358 |
+
current.addClass('updating-message');
|
359 |
+
|
360 |
+
var location = $(this).parent().parent().find('.saswp-g-location-field').val();
|
361 |
+
var blocks = $(this).parent().parent().find('.saswp-g-blocks-field').val();
|
362 |
+
var g_api = $("#saswp_google_place_api_key").val();
|
363 |
+
var reviews_api = $("#reviews_addon_license_key").val();
|
364 |
+
var reviews_api_status = $("#reviews_addon_license_key_status").val();
|
365 |
+
|
366 |
+
if($("#saswp_google_place_api_key").length){
|
367 |
+
premium_status = 'free';
|
368 |
+
}else{
|
369 |
+
premium_status = 'premium';
|
370 |
+
}
|
371 |
+
|
372 |
+
if(premium_status == 'premium'){
|
373 |
+
|
374 |
+
if(blocks > 0){
|
375 |
+
|
376 |
+
var blocks_remainder = blocks % 10;
|
377 |
+
|
378 |
+
if(blocks_remainder != 0){
|
379 |
+
|
380 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').text('Reviews count should be in step of 10');
|
381 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
382 |
+
current.removeClass('updating-message');
|
383 |
+
return false;
|
384 |
+
|
385 |
+
}
|
386 |
+
|
387 |
+
}else{
|
388 |
+
alert('Blocks value is zero');
|
389 |
+
current.removeClass('updating-message');
|
390 |
+
return false;
|
391 |
+
}
|
392 |
+
|
393 |
+
}
|
394 |
+
|
395 |
+
if(location !='' && (reviews_api || g_api)){
|
396 |
+
$.ajax({
|
397 |
+
type: "POST",
|
398 |
+
url:ajaxurl,
|
399 |
+
dataType: "json",
|
400 |
+
data:{action:"saswp_fetch_google_reviews",reviews_api_status:reviews_api_status, reviews_api:reviews_api,location:location,blocks:blocks,g_api:g_api,premium_status:premium_status, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
401 |
+
success:function(response){
|
402 |
+
if(response['status'] =='t'){
|
403 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').text('Success');
|
404 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
405 |
+
}else{
|
406 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
407 |
+
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
408 |
+
}
|
409 |
+
current.removeClass('updating-message');
|
410 |
+
},
|
411 |
+
error: function(response){
|
412 |
+
console.log(response);
|
413 |
+
}
|
414 |
+
});
|
415 |
+
}else{
|
416 |
+
if(location ==''){
|
417 |
+
alert('Please enter place id');
|
418 |
+
}
|
419 |
+
if(g_api ==''){
|
420 |
+
alert('Please enter api key');
|
421 |
+
}
|
422 |
+
if(reviews_api ==''){
|
423 |
+
alert('Please enter reviews api key');
|
424 |
+
}
|
425 |
+
current.removeClass('updating-message');
|
426 |
+
}
|
427 |
+
});
|
428 |
+
|
429 |
+
/* Google Reviews js ends here */
|
430 |
+
|
431 |
/* Newletters js starts here */
|
432 |
|
433 |
+
if(saswp_localize_data.do_tour){
|
434 |
|
435 |
var content = '<h3>Thanks for using Structured Data!</h3>';
|
436 |
content += '<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>';
|
439 |
content += '.wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }';
|
440 |
content += '</style>';
|
441 |
content += '<div id="afw_mc_embed_signup">';
|
442 |
+
content += '<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">';
|
443 |
content += '<div id="afw_mc_embed_signup_scroll">';
|
444 |
content += '<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">';
|
445 |
content += '<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">';
|
549 |
if(schematype == 'local_business'){
|
550 |
$(".saswp-option-table-class tr").eq(1).show();
|
551 |
$(".saswp-business-text-field-tr").show();
|
552 |
+
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
|
|
553 |
$('.select-post-type').val('show_globally').trigger('change');
|
554 |
}
|
555 |
if(schematype == 'Service'){
|
556 |
$(".saswp-service-text-field-tr").show();
|
557 |
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
558 |
}
|
559 |
+
if(schematype == 'Event'){
|
560 |
+
$(".saswp-event-text-field-tr").show();
|
561 |
+
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
562 |
+
}
|
563 |
if(schematype == 'Review'){
|
564 |
$(".saswp-review-text-field-tr").show();
|
565 |
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
566 |
saswp_item_reviewed_call();
|
567 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
saswp_enable_rating_review();
|
569 |
});
|
570 |
|
589 |
if(schematype == 'local_business'){
|
590 |
$(".saswp-"+businesstype+'-tr').show();
|
591 |
$(".saswp-business-text-field-tr").show();
|
592 |
+
$(".saswp-"+businesstype+'-tr').find('select').attr('disabled', false);
|
|
|
593 |
}
|
594 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
if(schematype == 'Review'){
|
596 |
$(".saswp-review-text-field-tr").show();
|
597 |
$(".saswp-review-text-field-tr").find('select').attr('disabled', false);
|
598 |
}
|
599 |
if(schematype == 'Event'){
|
600 |
+
$(".saswp-event-text-field-tr").show();
|
601 |
+
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
602 |
}
|
603 |
+
|
604 |
saswp_enable_rating_review();
|
605 |
}).change();
|
606 |
|
607 |
|
608 |
+
//Settings page jquery starts here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
$(".saswp-checkbox").change(function(){
|
610 |
|
611 |
var id = $(this).attr("id");
|
775 |
$("#sd_tumblr").hide();
|
776 |
}
|
777 |
break;
|
778 |
+
case 'saswp-yelp-enable-checkbox':
|
779 |
+
|
780 |
+
if ($(this).is(':checked')) {
|
781 |
+
$("#saswp-yelp-enable").val(1);
|
782 |
+
$("#sd_yelp").show();
|
783 |
+
}else{
|
784 |
+
$("#saswp-yelp-enable").val(0);
|
785 |
+
$("#sd_yelp").hide();
|
786 |
+
}
|
787 |
+
break;
|
788 |
+
|
789 |
case 'saswp-for-amp-checkbox':
|
790 |
|
791 |
if ($(this).is(':checked')) {
|
1249 |
|
1250 |
//Settings page jquery ends here
|
1251 |
|
|
|
1252 |
$(document).on("change",".saswp-schema-type-toggle", function(e){
|
1253 |
var schema_id = $(this).attr("data-schema-id");
|
1254 |
var post_id = $(this).attr("data-post-id");
|
1456 |
}
|
1457 |
},'json');
|
1458 |
});
|
1459 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1460 |
saswp_item_reviewed_call();
|
1461 |
+
|
|
|
|
|
|
|
1462 |
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1463 |
|
1464 |
$(document).on("click",".saswp-add-custom-schema", function(e){
|
1500 |
});
|
1501 |
saswp_schema_datepicker();
|
1502 |
|
1503 |
+
saswp_reviews_datepicker();
|
|
|
|
|
|
|
|
|
|
|
|
|
1504 |
|
1505 |
//Review js starts here
|
1506 |
|
1817 |
|
1818 |
}
|
1819 |
});
|
1820 |
+
saswpCustomSelect2();
|
1821 |
+
saswp_enable_rating_review();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1822 |
|
1823 |
//custom fields modify schema ends here
|
1824 |
|
1877 |
|
1878 |
});
|
1879 |
|
1880 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1881 |
//rating ends here
|
1882 |
|
1883 |
$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){
|
admin_section/js/main-script.min.js
CHANGED
@@ -1,1892 +1 @@
|
|
1 |
-
var saswp_meta_list = [];
|
2 |
-
var saswp_meta_fields = [];
|
3 |
-
var saswp_meta_list_fields = [];
|
4 |
-
|
5 |
-
function saswp_enable_rating_review(){
|
6 |
-
var schema_type = "";
|
7 |
-
if(jQuery('select#schema_type option:selected').val()){
|
8 |
-
schema_type = jQuery('select#schema_type option:selected').val();
|
9 |
-
}
|
10 |
-
if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
11 |
-
schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
|
12 |
-
}
|
13 |
-
|
14 |
-
if(schema_type){
|
15 |
-
jQuery(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
|
16 |
-
|
17 |
-
if(jQuery(this).is(':checked')){
|
18 |
-
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
|
19 |
-
}else{
|
20 |
-
jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
|
21 |
-
}
|
22 |
-
|
23 |
-
}).change();
|
24 |
-
}
|
25 |
-
|
26 |
-
}
|
27 |
-
|
28 |
-
function getParameterByName(name, url) {
|
29 |
-
if (!url){
|
30 |
-
url = window.location.href;
|
31 |
-
}
|
32 |
-
name = name.replace(/[\[\]]/g, "\\$&");
|
33 |
-
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
34 |
-
results = regex.exec(url);
|
35 |
-
if (!results) return null;
|
36 |
-
if (!results[2]) return "";
|
37 |
-
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
38 |
-
}
|
39 |
-
|
40 |
-
function saswpCustomSelect2(){
|
41 |
-
if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
|
42 |
-
|
43 |
-
jQuery('.saswp-custom-fields-select2').select2({
|
44 |
-
ajax: {
|
45 |
-
type: "POST",
|
46 |
-
url: ajaxurl, // AJAX URL is predefined in WordPress admin
|
47 |
-
dataType: 'json',
|
48 |
-
delay: 250, // delay in ms while typing when to perform a AJAX search
|
49 |
-
data: function (params) {
|
50 |
-
return {
|
51 |
-
saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
|
52 |
-
q: params.term, // search query
|
53 |
-
action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
|
54 |
-
};
|
55 |
-
},
|
56 |
-
processResults: function( data ) {
|
57 |
-
return {
|
58 |
-
results: data
|
59 |
-
};
|
60 |
-
},
|
61 |
-
cache: true
|
62 |
-
},
|
63 |
-
minimumInputLength: 2 // the minimum of symbols to input before perform a search
|
64 |
-
});
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
-
function saswp_reviews_datepicker(){
|
71 |
-
|
72 |
-
jQuery('.saswp-reviews-datepicker-picker').datepicker({
|
73 |
-
dateFormat: "yy-mm-dd"
|
74 |
-
});
|
75 |
-
}
|
76 |
-
|
77 |
-
function saswp_schema_datepicker(){
|
78 |
-
|
79 |
-
jQuery('.saswp-datepicker-picker').datepicker({
|
80 |
-
dateFormat: "yy-mm-dd",
|
81 |
-
});
|
82 |
-
|
83 |
-
}
|
84 |
-
|
85 |
-
function saswpAddTimepicker(){
|
86 |
-
jQuery('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
87 |
-
}
|
88 |
-
|
89 |
-
function saswp_item_reviewed_call(){
|
90 |
-
|
91 |
-
jQuery(".saswp-item-reviewed").change(function(e){
|
92 |
-
e.preventDefault();
|
93 |
-
var schema_type ="";
|
94 |
-
|
95 |
-
if(jQuery('select#schema_type option:selected').val()){
|
96 |
-
schema_type = jQuery('select#schema_type option:selected').val();
|
97 |
-
}
|
98 |
-
if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
|
99 |
-
schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
|
100 |
-
}
|
101 |
-
|
102 |
-
if(schema_type === 'Review'){
|
103 |
-
|
104 |
-
var current = jQuery(this);
|
105 |
-
var item = jQuery(this).val();
|
106 |
-
var post_id = saswp_localize_data.post_id;
|
107 |
-
var schema_id = jQuery(current).attr('data-id');
|
108 |
-
var post_specific = jQuery(current).attr('post-specific');
|
109 |
-
jQuery.get(ajaxurl,
|
110 |
-
{ action:"saswp_get_item_reviewed_fields",schema_id:schema_id, post_specific:post_specific ,item:item, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
111 |
-
function(response){
|
112 |
-
|
113 |
-
jQuery(current).parent().parent().nextAll().remove(".saswp-review-tr");
|
114 |
-
jQuery(current).parent().parent().after(response);
|
115 |
-
|
116 |
-
});
|
117 |
-
|
118 |
-
}
|
119 |
-
|
120 |
-
|
121 |
-
}).change();
|
122 |
-
|
123 |
-
}
|
124 |
-
|
125 |
-
function saswp_compatibliy_notes(current, id){
|
126 |
-
|
127 |
-
var plugin_name = id.replace('-checkbox','');
|
128 |
-
var text = jQuery("#"+plugin_name).next('p').text();
|
129 |
-
|
130 |
-
if (current.is(':checked') && text !=='') {
|
131 |
-
jQuery("#"+plugin_name).next('p').removeClass('saswp_hide');
|
132 |
-
}else{
|
133 |
-
if(jQuery("#"+plugin_name).next('p').attr('data-id') == 1){
|
134 |
-
jQuery("#"+plugin_name).next('p').text('This feature is only available in pro version');
|
135 |
-
}else{
|
136 |
-
jQuery("#"+plugin_name).next('p').addClass('saswp_hide');
|
137 |
-
}
|
138 |
-
}
|
139 |
-
}
|
140 |
-
|
141 |
-
function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
|
142 |
-
|
143 |
-
var field_name = f_name;
|
144 |
-
if(field_name == null){
|
145 |
-
field_name = Object.keys(fields)[0];
|
146 |
-
}
|
147 |
-
var re_html = '';
|
148 |
-
re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
|
149 |
-
jQuery.each(response, function(key,value){
|
150 |
-
|
151 |
-
re_html += '<optgroup label="'+value['label']+'">';
|
152 |
-
|
153 |
-
jQuery.each(value['meta-list'], function(key, value){
|
154 |
-
re_html += '<option value="'+key+'">'+value+'</option>';
|
155 |
-
});
|
156 |
-
re_html += '</optgroup>';
|
157 |
-
|
158 |
-
});
|
159 |
-
re_html += '</select>';
|
160 |
-
|
161 |
-
if(fields){
|
162 |
-
var html = '<tr>';
|
163 |
-
html += '<td>';
|
164 |
-
html += '<select class="saswp-custom-fields-name">';
|
165 |
-
jQuery.each(fields, function(key,value){
|
166 |
-
html += '<option value="'+key+'">'+value+'</option>';
|
167 |
-
});
|
168 |
-
html += '</select>';
|
169 |
-
html += '</td>';
|
170 |
-
html += '<td>';
|
171 |
-
html += re_html;
|
172 |
-
html += '</td>';
|
173 |
-
html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
174 |
-
html += '</tr>';
|
175 |
-
jQuery(".saswp-custom-fields-table").append(html);
|
176 |
-
if(current_fly != null){
|
177 |
-
current_fly.removeClass('updating-message');
|
178 |
-
}
|
179 |
-
|
180 |
-
|
181 |
-
}else{
|
182 |
-
jQuery(id).html(re_html);
|
183 |
-
if(current_fly != null){
|
184 |
-
current_fly.removeClass('updating-message');
|
185 |
-
}
|
186 |
-
}
|
187 |
-
|
188 |
-
}
|
189 |
-
|
190 |
-
function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
|
191 |
-
if (!saswp_meta_list[type]) {
|
192 |
-
|
193 |
-
jQuery.get(ajaxurl,
|
194 |
-
{ action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
195 |
-
function(response){
|
196 |
-
saswp_meta_list[type] = response[type];
|
197 |
-
saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
|
198 |
-
|
199 |
-
},'json');
|
200 |
-
|
201 |
-
}else{
|
202 |
-
saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
|
203 |
-
}
|
204 |
-
|
205 |
-
}
|
206 |
-
|
207 |
-
function saswp_get_post_specific_schema_fields(current_fly, index, meta_name, div_type, schema_id, fields_type){
|
208 |
-
|
209 |
-
if (!saswp_meta_fields[fields_type]) {
|
210 |
-
|
211 |
-
jQuery.get(ajaxurl,
|
212 |
-
{ action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
213 |
-
function(response){
|
214 |
-
saswp_meta_fields[fields_type] = response;
|
215 |
-
console.log(saswp_meta_fields);
|
216 |
-
var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
|
217 |
-
|
218 |
-
if(html){
|
219 |
-
jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
|
220 |
-
saswp_schema_datepicker();
|
221 |
-
current_fly.removeClass('updating-message');
|
222 |
-
}
|
223 |
-
|
224 |
-
},'json');
|
225 |
-
|
226 |
-
}else{
|
227 |
-
|
228 |
-
var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
|
229 |
-
|
230 |
-
if(html){
|
231 |
-
jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
|
232 |
-
saswp_schema_datepicker();
|
233 |
-
current_fly.removeClass('updating-message');
|
234 |
-
}
|
235 |
-
|
236 |
-
}
|
237 |
-
|
238 |
-
|
239 |
-
}
|
240 |
-
|
241 |
-
function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
|
242 |
-
|
243 |
-
var html = '';
|
244 |
-
|
245 |
-
html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
|
246 |
-
+ '<a class="saswp-table-close">X</a>'
|
247 |
-
+ '<table class="form-table saswp-'+div_type+'-table">'
|
248 |
-
|
249 |
-
jQuery.each(schema_fields, function(eachindex, element){
|
250 |
-
|
251 |
-
var meta_class = "";
|
252 |
-
if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created' || element.name == 'saswp_product_reviews_created_date'){
|
253 |
-
meta_class = "saswp-datepicker-picker";
|
254 |
-
}
|
255 |
-
|
256 |
-
switch(element.type) {
|
257 |
-
|
258 |
-
case "number":
|
259 |
-
case "text":
|
260 |
-
|
261 |
-
html += '<tr>'
|
262 |
-
+ '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="'+element.type+'" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
|
263 |
-
+ '</tr>';
|
264 |
-
|
265 |
-
break;
|
266 |
-
|
267 |
-
case "textarea":
|
268 |
-
|
269 |
-
html += '<tr>'
|
270 |
-
+ '<th>'+element.label+'</th><td><textarea style="width: 100%" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']" rows="5"></textarea></td>'
|
271 |
-
+ '</tr>';
|
272 |
-
|
273 |
-
break;
|
274 |
-
case "select":
|
275 |
-
|
276 |
-
var options_html = "";
|
277 |
-
jQuery.each(element.options, function(opt_index, opt_element){
|
278 |
-
options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
|
279 |
-
});
|
280 |
-
|
281 |
-
html += '<tr>'
|
282 |
-
+ '<th>'+element.label+'</th>'
|
283 |
-
+ '<td>'
|
284 |
-
|
285 |
-
+ '<select id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']">'
|
286 |
-
+ options_html
|
287 |
-
+ '</select>'
|
288 |
-
|
289 |
-
+ '</td>'
|
290 |
-
+ '</tr>';
|
291 |
-
|
292 |
-
break;
|
293 |
-
|
294 |
-
case "media":
|
295 |
-
|
296 |
-
html += '<tr>'
|
297 |
-
+ '<th>'+element.label+'</th>'
|
298 |
-
+ '<td>'
|
299 |
-
+ '<fieldset>'
|
300 |
-
+ '<input style="width:80%" type="text" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+element.name+'_'+index+'_'+schema_id+'">'
|
301 |
-
+ '<input type="hidden" data-id="'+element.name+'_'+index+'_'+schema_id+'_id" name="'+fields_type+schema_id+'['+index+']['+element.name+'_id]" id="'+element.name+'_'+index+'_'+schema_id+'_id">'
|
302 |
-
+ '<input data-id="media" style="width: 19%" class="button" id="'+element.name+'_'+index+'_'+schema_id+'_button" name="'+element.name+'_'+index+'_'+schema_id+'_button" type="button" value="Upload">'
|
303 |
-
+ '<div class="saswp_image_div_'+element.name+'_'+index+'_'+schema_id+'">'
|
304 |
-
+ '</div>'
|
305 |
-
+ '</fieldset>'
|
306 |
-
+ '</td>'
|
307 |
-
+ '</tr>';
|
308 |
-
|
309 |
-
break;
|
310 |
-
default:
|
311 |
-
// code block
|
312 |
-
}
|
313 |
-
|
314 |
-
});
|
315 |
-
html += '</table>'
|
316 |
-
+ '</div>';
|
317 |
-
|
318 |
-
return html;
|
319 |
-
|
320 |
-
}
|
321 |
-
|
322 |
-
jQuery(document).ready(function($){
|
323 |
-
|
324 |
-
/* Google Reviews js starts here */
|
325 |
-
|
326 |
-
$(document).on("click", ".saswp-add-g-location-btn", function(e){
|
327 |
-
|
328 |
-
var blocks_field = '';
|
329 |
-
|
330 |
-
if($("#saswp_google_place_api_key").length){
|
331 |
-
|
332 |
-
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">';
|
333 |
-
}else{
|
334 |
-
blocks_field = '<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">';
|
335 |
-
}
|
336 |
-
|
337 |
-
e.preventDefault();
|
338 |
-
var html = '';
|
339 |
-
html += '<tr>'
|
340 |
-
+ '<td style="width:12%;"><strong>Place Id</strong></td>'
|
341 |
-
+ '<td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td>'
|
342 |
-
+ '<td style="width:10%;"><strong>Reviews</strong></td>'
|
343 |
-
+ '<td style="width:10%;">'+blocks_field+'</td>'
|
344 |
-
+ '<td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td>'
|
345 |
-
+ '<td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td>'
|
346 |
-
+ '<td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td>'
|
347 |
-
+ '</tr>';
|
348 |
-
if(html){
|
349 |
-
$(".saswp-g-reviews-settings-table").append(html);
|
350 |
-
}
|
351 |
-
|
352 |
-
});
|
353 |
-
|
354 |
-
$(document).on("click", '.saswp-fetch-g-reviews', function(){
|
355 |
-
|
356 |
-
var current = $(this);
|
357 |
-
var premium_status = 'free';
|
358 |
-
current.addClass('updating-message');
|
359 |
-
|
360 |
-
var location = $(this).parent().parent().find('.saswp-g-location-field').val();
|
361 |
-
var blocks = $(this).parent().parent().find('.saswp-g-blocks-field').val();
|
362 |
-
var g_api = $("#saswp_google_place_api_key").val();
|
363 |
-
var reviews_api = $("#reviews_addon_license_key").val();
|
364 |
-
var reviews_api_status = $("#reviews_addon_license_key_status").val();
|
365 |
-
|
366 |
-
if($("#saswp_google_place_api_key").length){
|
367 |
-
premium_status = 'free';
|
368 |
-
}else{
|
369 |
-
premium_status = 'premium';
|
370 |
-
}
|
371 |
-
|
372 |
-
if(premium_status == 'premium'){
|
373 |
-
|
374 |
-
if(blocks > 0){
|
375 |
-
|
376 |
-
var blocks_remainder = blocks % 10;
|
377 |
-
|
378 |
-
if(blocks_remainder != 0){
|
379 |
-
|
380 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Reviews count should be in step of 10');
|
381 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
382 |
-
current.removeClass('updating-message');
|
383 |
-
return false;
|
384 |
-
|
385 |
-
}
|
386 |
-
|
387 |
-
}else{
|
388 |
-
alert('Blocks value is zero');
|
389 |
-
current.removeClass('updating-message');
|
390 |
-
return false;
|
391 |
-
}
|
392 |
-
|
393 |
-
}
|
394 |
-
|
395 |
-
if(location !='' && (reviews_api || g_api)){
|
396 |
-
$.ajax({
|
397 |
-
type: "POST",
|
398 |
-
url:ajaxurl,
|
399 |
-
dataType: "json",
|
400 |
-
data:{action:"saswp_fetch_google_reviews",reviews_api_status:reviews_api_status, reviews_api:reviews_api,location:location,blocks:blocks,g_api:g_api,premium_status:premium_status, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
401 |
-
success:function(response){
|
402 |
-
if(response['status'] =='t'){
|
403 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text('Success');
|
404 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "green");
|
405 |
-
}else{
|
406 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').text(response['message']);
|
407 |
-
current.parent().parent().find('.saswp-rv-fetched-msg').css("color", "#988f1b");
|
408 |
-
}
|
409 |
-
current.removeClass('updating-message');
|
410 |
-
},
|
411 |
-
error: function(response){
|
412 |
-
console.log(response);
|
413 |
-
}
|
414 |
-
});
|
415 |
-
}else{
|
416 |
-
if(location ==''){
|
417 |
-
alert('Please enter place id');
|
418 |
-
}
|
419 |
-
if(g_api ==''){
|
420 |
-
alert('Please enter api key');
|
421 |
-
}
|
422 |
-
if(reviews_api ==''){
|
423 |
-
alert('Please enter reviews api key');
|
424 |
-
}
|
425 |
-
current.removeClass('updating-message');
|
426 |
-
}
|
427 |
-
});
|
428 |
-
|
429 |
-
/* Google Reviews js ends here */
|
430 |
-
|
431 |
-
/* Newletters js starts here */
|
432 |
-
|
433 |
-
if(saswp_localize_data.do_tour){
|
434 |
-
|
435 |
-
var content = '<h3>Thanks for using Structured Data!</h3>';
|
436 |
-
content += '<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>';
|
437 |
-
content += '<style type="text/css">';
|
438 |
-
content += '.wp-pointer-buttons{ padding:0; overflow: hidden; }';
|
439 |
-
content += '.wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }';
|
440 |
-
content += '</style>';
|
441 |
-
content += '<div id="afw_mc_embed_signup">';
|
442 |
-
content += '<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">';
|
443 |
-
content += '<div id="afw_mc_embed_signup_scroll">';
|
444 |
-
content += '<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">';
|
445 |
-
content += '<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">';
|
446 |
-
content += '<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">';
|
447 |
-
content += '<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">';
|
448 |
-
content += '<input type="hidden" name="ml-submit" value="1" />';
|
449 |
-
content += '</div>';
|
450 |
-
content += '<div id="mce-responses">';
|
451 |
-
content += '<div class="response" id="mce-error-response" style="display:none"></div>';
|
452 |
-
content += '<div class="response" id="mce-success-response" style="display:none"></div>';
|
453 |
-
content += '</div>';
|
454 |
-
content += '<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>';
|
455 |
-
content += '<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">';
|
456 |
-
content += '</div>';
|
457 |
-
content += '</form>';
|
458 |
-
content += '</div>';
|
459 |
-
|
460 |
-
var setup;
|
461 |
-
var wp_pointers_tour_opts = {
|
462 |
-
content:content,
|
463 |
-
position:{
|
464 |
-
edge:"top",
|
465 |
-
align:"left"
|
466 |
-
}
|
467 |
-
};
|
468 |
-
|
469 |
-
wp_pointers_tour_opts = $.extend (wp_pointers_tour_opts, {
|
470 |
-
buttons: function (event, t) {
|
471 |
-
button= jQuery ('<a id="pointer-close" class="button-secondary">' + saswp_localize_data.button1 + '</a>');
|
472 |
-
button_2= jQuery ('#pointer-close.button');
|
473 |
-
button.bind ('click.pointer', function () {
|
474 |
-
t.element.pointer ('close');
|
475 |
-
});
|
476 |
-
button_2.on('click', function() {
|
477 |
-
t.element.pointer ('close');
|
478 |
-
} );
|
479 |
-
return button;
|
480 |
-
},
|
481 |
-
close: function () {
|
482 |
-
$.post (saswp_localize_data.ajax_url, {
|
483 |
-
pointer: 'saswp_subscribe_pointer',
|
484 |
-
action: 'dismiss-wp-pointer'
|
485 |
-
});
|
486 |
-
},
|
487 |
-
show: function(event, t){
|
488 |
-
t.pointer.css({'left':'170px', 'top':'160px'});
|
489 |
-
}
|
490 |
-
});
|
491 |
-
setup = function () {
|
492 |
-
$(saswp_localize_data.displayID).pointer(wp_pointers_tour_opts).pointer('open');
|
493 |
-
if (saswp_localize_data.button2) {
|
494 |
-
jQuery ('#pointer-close').after ('<a id="pointer-primary" class="button-primary">' + saswp_localize_data.button2+ '</a>');
|
495 |
-
jQuery ('#pointer-primary').click (function () {
|
496 |
-
saswp_localize_data.function_name;
|
497 |
-
});
|
498 |
-
jQuery ('#pointer-close').click (function () {
|
499 |
-
$.post (saswp_localize_data.ajax_url, {
|
500 |
-
pointer: 'saswp_subscribe_pointer',
|
501 |
-
action: 'dismiss-wp-pointer'
|
502 |
-
});
|
503 |
-
});
|
504 |
-
}
|
505 |
-
};
|
506 |
-
if (wp_pointers_tour_opts.position && wp_pointers_tour_opts.position.defer_loading) {
|
507 |
-
$(window).bind('load.wp-pointers', setup);
|
508 |
-
}
|
509 |
-
else {
|
510 |
-
setup ();
|
511 |
-
}
|
512 |
-
|
513 |
-
}
|
514 |
-
|
515 |
-
/* Newletters js ends here */
|
516 |
-
|
517 |
-
|
518 |
-
$(".saswp-tabs a").click(function(e){
|
519 |
-
var href = $(this).attr('href');
|
520 |
-
var currentTab = getParameterByName('tab',href);
|
521 |
-
if(!currentTab){
|
522 |
-
currentTab = "general";
|
523 |
-
}
|
524 |
-
$(this).siblings().removeClass("nav-tab-active");
|
525 |
-
$(this).addClass("nav-tab-active");
|
526 |
-
$(".form-wrap").find(".saswp-"+currentTab).siblings().hide();
|
527 |
-
$(".form-wrap .saswp-"+currentTab).show();
|
528 |
-
window.history.pushState("", "", href);
|
529 |
-
return false;
|
530 |
-
});
|
531 |
-
|
532 |
-
$(".saswp-schame-type-select").change(function(){
|
533 |
-
$(".saswp-custom-fields-table").html('');
|
534 |
-
var schematype = $(this).val();
|
535 |
-
|
536 |
-
$(".saswp-option-table-class tr").each(function(index,value){
|
537 |
-
if(index>0){
|
538 |
-
$(this).hide();
|
539 |
-
$(this).find('select').attr('disabled', true);
|
540 |
-
}
|
541 |
-
});
|
542 |
-
if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
|
543 |
-
|
544 |
-
$(".saswp-enable-speakable").parent().parent().show();
|
545 |
-
}else{
|
546 |
-
$(".saswp-enable-speakable").parent().parent().hide();
|
547 |
-
}
|
548 |
-
|
549 |
-
if(schematype == 'local_business'){
|
550 |
-
$(".saswp-option-table-class tr").eq(1).show();
|
551 |
-
$(".saswp-business-text-field-tr").show();
|
552 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
553 |
-
// $("#saswp_dayofweek").attr('disabled', false);
|
554 |
-
$('.select-post-type').val('show_globally').trigger('change');
|
555 |
-
}
|
556 |
-
if(schematype == 'Service'){
|
557 |
-
$(".saswp-service-text-field-tr").show();
|
558 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
559 |
-
}
|
560 |
-
if(schematype == 'Review'){
|
561 |
-
$(".saswp-review-text-field-tr").show();
|
562 |
-
$(".saswp-option-table-class tr").find('select').attr('disabled', false);
|
563 |
-
saswp_item_reviewed_call();
|
564 |
-
}
|
565 |
-
saswp_enable_rating_review();
|
566 |
-
});
|
567 |
-
|
568 |
-
$("#saswp_business_type").change(function(){
|
569 |
-
var businesstype = $ (this).val();
|
570 |
-
var schematype = $(".saswp-schame-type-select").val();
|
571 |
-
|
572 |
-
$(".saswp-option-table-class tr").each(function(index,value){
|
573 |
-
if(index>1){
|
574 |
-
$(this).hide();
|
575 |
-
$(this).find('select').attr('disabled', true);
|
576 |
-
}
|
577 |
-
});
|
578 |
-
|
579 |
-
if(schematype == 'TechArticle' || schematype == 'Article' || schematype == 'Blogposting' || schematype == 'NewsArticle' || schematype == 'WebPage'){
|
580 |
-
|
581 |
-
$(".saswp-enable-speakable").parent().parent().show();
|
582 |
-
}else{
|
583 |
-
$(".saswp-enable-speakable").parent().parent().hide();
|
584 |
-
}
|
585 |
-
|
586 |
-
if(schematype == 'local_business'){
|
587 |
-
$(".saswp-"+businesstype+'-tr').show();
|
588 |
-
$(".saswp-business-text-field-tr").show();
|
589 |
-
$(".saswp-"+businesstype+'-tr').find('select').attr('disabled', false);
|
590 |
-
}
|
591 |
-
|
592 |
-
if(schematype == 'Review'){
|
593 |
-
$(".saswp-review-text-field-tr").show();
|
594 |
-
$(".saswp-review-text-field-tr").find('select').attr('disabled', false);
|
595 |
-
}
|
596 |
-
|
597 |
-
saswp_enable_rating_review();
|
598 |
-
}).change();
|
599 |
-
|
600 |
-
|
601 |
-
//Settings page jquery starts here
|
602 |
-
$(".saswp-checkbox").change(function(){
|
603 |
-
|
604 |
-
var id = $(this).attr("id");
|
605 |
-
var current = $(this);
|
606 |
-
|
607 |
-
|
608 |
-
switch(id){
|
609 |
-
|
610 |
-
case 'saswp-the-seo-framework-checkbox':
|
611 |
-
saswp_compatibliy_notes(current, id);
|
612 |
-
if ($(this).is(':checked')) {
|
613 |
-
$("#saswp-the-seo-framework").val(1);
|
614 |
-
}else{
|
615 |
-
$("#saswp-the-seo-framework").val(0);
|
616 |
-
}
|
617 |
-
break;
|
618 |
-
|
619 |
-
case 'saswp-seo-press-checkbox':
|
620 |
-
saswp_compatibliy_notes(current, id);
|
621 |
-
if ($(this).is(':checked')) {
|
622 |
-
$("#saswp-seo-press").val(1);
|
623 |
-
}else{
|
624 |
-
$("#saswp-seo-press").val(0);
|
625 |
-
}
|
626 |
-
break;
|
627 |
-
|
628 |
-
case 'saswp-aiosp-checkbox':
|
629 |
-
saswp_compatibliy_notes(current, id);
|
630 |
-
if ($(this).is(':checked')) {
|
631 |
-
$("#saswp-aiosp").val(1);
|
632 |
-
}else{
|
633 |
-
$("#saswp-aiosp").val(0);
|
634 |
-
}
|
635 |
-
break;
|
636 |
-
|
637 |
-
case 'saswp-smart-crawl-checkbox':
|
638 |
-
saswp_compatibliy_notes(current, id);
|
639 |
-
if ($(this).is(':checked')) {
|
640 |
-
$("#saswp-smart-crawl").val(1);
|
641 |
-
}else{
|
642 |
-
$("#saswp-smart-crawl").val(0);
|
643 |
-
}
|
644 |
-
break;
|
645 |
-
|
646 |
-
case 'saswp-squirrly-seo-checkbox':
|
647 |
-
saswp_compatibliy_notes(current, id);
|
648 |
-
if ($(this).is(':checked')) {
|
649 |
-
$("#saswp-squirrly-seo").val(1);
|
650 |
-
}else{
|
651 |
-
$("#saswp-squirrly-seo").val(0);
|
652 |
-
}
|
653 |
-
break;
|
654 |
-
|
655 |
-
case 'saswp-wp-recipe-maker-checkbox':
|
656 |
-
saswp_compatibliy_notes(current, id);
|
657 |
-
if ($(this).is(':checked')) {
|
658 |
-
$("#saswp-wp-recipe-maker").val(1);
|
659 |
-
}else{
|
660 |
-
$("#saswp-wp-recipe-maker").val(0);
|
661 |
-
}
|
662 |
-
break;
|
663 |
-
|
664 |
-
case 'saswp-wpsso-core-checkbox':
|
665 |
-
saswp_compatibliy_notes(current, id);
|
666 |
-
if ($(this).is(':checked')) {
|
667 |
-
$("#saswp-wpsso-core").val(1);
|
668 |
-
}else{
|
669 |
-
$("#saswp-wpsso-core").val(0);
|
670 |
-
}
|
671 |
-
break;
|
672 |
-
|
673 |
-
case 'saswp-for-wordpress-checkbox':
|
674 |
-
|
675 |
-
if ($(this).is(':checked')) {
|
676 |
-
$("#saswp-for-wordpress").val(1);
|
677 |
-
}else{
|
678 |
-
$("#saswp-for-wordpress").val(0);
|
679 |
-
}
|
680 |
-
break;
|
681 |
-
case 'saswp-facebook-enable-checkbox':
|
682 |
-
|
683 |
-
if ($(this).is(':checked')) {
|
684 |
-
$("#saswp-facebook-enable").val(1);
|
685 |
-
$("#sd_facebook").show();
|
686 |
-
}else{
|
687 |
-
$("#saswp-facebook-enable").val(0);
|
688 |
-
$("#sd_facebook").hide();
|
689 |
-
}
|
690 |
-
break;
|
691 |
-
case 'saswp-twitter-enable-checkbox':
|
692 |
-
|
693 |
-
if ($(this).is(':checked')) {
|
694 |
-
$("#saswp-twitter-enable").val(1);
|
695 |
-
$("#sd_twitter").show();
|
696 |
-
}else{
|
697 |
-
$("#saswp-twitter-enable").val(0);
|
698 |
-
$("#sd_twitter").hide();
|
699 |
-
}
|
700 |
-
break;
|
701 |
-
case 'saswp-google-plus-enable-checkbox':
|
702 |
-
|
703 |
-
if ($(this).is(':checked')) {
|
704 |
-
$("#saswp-google-plus-enable").val(1);
|
705 |
-
$("#sd_google_plus").show();
|
706 |
-
}else{
|
707 |
-
$("#saswp-google-plus-enable").val(0);
|
708 |
-
$("#sd_google_plus").hide();
|
709 |
-
}
|
710 |
-
break;
|
711 |
-
case 'saswp-instagram-enable-checkbox':
|
712 |
-
|
713 |
-
if ($(this).is(':checked')) {
|
714 |
-
$("#saswp-instagram-enable").val(1);
|
715 |
-
$("#sd_instagram").show();
|
716 |
-
}else{
|
717 |
-
$("#saswp-instagram-enable").val(0);
|
718 |
-
$("#sd_instagram").hide();
|
719 |
-
}
|
720 |
-
break;
|
721 |
-
case 'saswp-youtube-enable-checkbox':
|
722 |
-
|
723 |
-
if ($(this).is(':checked')) {
|
724 |
-
$("#sd_youtube").show();
|
725 |
-
$("#saswp-youtube-enable").val(1);
|
726 |
-
}else{
|
727 |
-
$("#saswp-youtube-enable").val(0);
|
728 |
-
$("#sd_youtube").hide();
|
729 |
-
}
|
730 |
-
break;
|
731 |
-
case 'saswp-linkedin-enable-checkbox':
|
732 |
-
|
733 |
-
if ($(this).is(':checked')) {
|
734 |
-
$("#saswp-linkedin-enable").val(1);
|
735 |
-
$("#sd_linkedin").show();
|
736 |
-
}else{
|
737 |
-
$("#saswp-linkedin-enable").val(0);
|
738 |
-
$("#sd_linkedin").hide();
|
739 |
-
}
|
740 |
-
break;
|
741 |
-
case 'saswp-pinterest-enable-checkbox':
|
742 |
-
|
743 |
-
if ($(this).is(':checked')) {
|
744 |
-
$("#saswp-pinterest-enable").val(1);
|
745 |
-
$("#sd_pinterest").show();
|
746 |
-
}else{
|
747 |
-
$("#saswp-pinterest-enable").val(0);
|
748 |
-
$("#sd_pinterest").hide();
|
749 |
-
}
|
750 |
-
break;
|
751 |
-
case 'saswp-soundcloud-enable-checkbox':
|
752 |
-
|
753 |
-
if ($(this).is(':checked')) {
|
754 |
-
$("#saswp-soundcloud-enable").val(1);
|
755 |
-
$("#sd_soundcloud").show();
|
756 |
-
}else{
|
757 |
-
$("#saswp-soundcloud-enable").val(0);
|
758 |
-
$("#sd_soundcloud").hide();
|
759 |
-
}
|
760 |
-
break;
|
761 |
-
case 'saswp-tumblr-enable-checkbox':
|
762 |
-
|
763 |
-
if ($(this).is(':checked')) {
|
764 |
-
$("#saswp-tumblr-enable").val(1);
|
765 |
-
$("#sd_tumblr").show();
|
766 |
-
}else{
|
767 |
-
$("#saswp-tumblr-enable").val(0);
|
768 |
-
$("#sd_tumblr").hide();
|
769 |
-
}
|
770 |
-
break;
|
771 |
-
case 'saswp-yelp-enable-checkbox':
|
772 |
-
|
773 |
-
if ($(this).is(':checked')) {
|
774 |
-
$("#saswp-yelp-enable").val(1);
|
775 |
-
$("#sd_yelp").show();
|
776 |
-
}else{
|
777 |
-
$("#saswp-yelp-enable").val(0);
|
778 |
-
$("#sd_yelp").hide();
|
779 |
-
}
|
780 |
-
break;
|
781 |
-
|
782 |
-
case 'saswp-for-amp-checkbox':
|
783 |
-
|
784 |
-
if ($(this).is(':checked')) {
|
785 |
-
$("#saswp-for-amp").val(1);
|
786 |
-
}else{
|
787 |
-
$("#saswp-for-amp").val(0);
|
788 |
-
}
|
789 |
-
break;
|
790 |
-
case 'saswp_kb_contact_1_checkbox':
|
791 |
-
|
792 |
-
if ($(this).is(':checked')) {
|
793 |
-
$("#saswp_kb_contact_1").val(1);
|
794 |
-
$("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').removeClass("saswp-display-none");
|
795 |
-
}else{
|
796 |
-
$("#saswp_kb_contact_1").val(0);
|
797 |
-
$("#saswp_kb_telephone, #saswp_contact_type").parent().parent('li').addClass("saswp-display-none");
|
798 |
-
}
|
799 |
-
break;
|
800 |
-
case 'saswp-logo-dimensions-check':
|
801 |
-
|
802 |
-
if ($(this).is(':checked')) {
|
803 |
-
$("#saswp-logo-dimensions").val(1);
|
804 |
-
$("#saswp-logo-width, #saswp-logo-height").parent().parent('li').show();
|
805 |
-
}else{
|
806 |
-
$("#saswp-logo-dimensions").val(0);
|
807 |
-
$("#saswp-logo-width, #saswp-logo-height").parent().parent('li').hide();
|
808 |
-
}
|
809 |
-
break;
|
810 |
-
case 'saswp_archive_schema_checkbox':
|
811 |
-
|
812 |
-
if ($(this).is(':checked')) {
|
813 |
-
$("#saswp_archive_schema").val(1);
|
814 |
-
$(".saswp_archive_schema_type_class").parent().parent().show();
|
815 |
-
}else{
|
816 |
-
$("#saswp_archive_schema").val(0);
|
817 |
-
$(".saswp_archive_schema_type_class").parent().parent().hide();
|
818 |
-
}
|
819 |
-
break;
|
820 |
-
|
821 |
-
case 'saswp_website_schema_checkbox':
|
822 |
-
|
823 |
-
if ($(this).is(':checked')) {
|
824 |
-
$("#saswp_website_schema").val(1);
|
825 |
-
$("#saswp_search_box_schema").parent().parent().show();
|
826 |
-
}else{
|
827 |
-
$("#saswp_website_schema").val(0);
|
828 |
-
$("#saswp_search_box_schema").parent().parent().hide();
|
829 |
-
}
|
830 |
-
break;
|
831 |
-
|
832 |
-
case 'saswp_search_box_schema_checkbox':
|
833 |
-
|
834 |
-
if ($(this).is(':checked')) {
|
835 |
-
$("#saswp_search_box_schema").val(1);
|
836 |
-
}else{
|
837 |
-
$("#saswp_search_box_schema").val(0);
|
838 |
-
}
|
839 |
-
break;
|
840 |
-
|
841 |
-
case 'saswp_breadcrumb_schema_checkbox':
|
842 |
-
|
843 |
-
if ($(this).is(':checked')) {
|
844 |
-
$("#saswp_breadcrumb_schema").val(1);
|
845 |
-
}else{
|
846 |
-
$("#saswp_breadcrumb_schema").val(0);
|
847 |
-
}
|
848 |
-
break;
|
849 |
-
|
850 |
-
case 'saswp_comments_schema_checkbox':
|
851 |
-
|
852 |
-
if ($(this).is(':checked')) {
|
853 |
-
$("#saswp_comments_schema").val(1);
|
854 |
-
}else{
|
855 |
-
$("#saswp_comments_schema").val(0);
|
856 |
-
}
|
857 |
-
break;
|
858 |
-
|
859 |
-
case 'saswp-compativility-checkbox':
|
860 |
-
|
861 |
-
if ($(this).is(':checked')) {
|
862 |
-
$("#saswp-flexmlx-compativility").val(1);
|
863 |
-
}else{
|
864 |
-
$("#saswp-flexmlx-compativility").val(0);
|
865 |
-
}
|
866 |
-
break;
|
867 |
-
|
868 |
-
case 'saswp-review-module-checkbox':
|
869 |
-
|
870 |
-
if ($(this).is(':checked')) {
|
871 |
-
$("#saswp-review-module").val(1);
|
872 |
-
}else{
|
873 |
-
$("#saswp-review-module").val(0);
|
874 |
-
}
|
875 |
-
break;
|
876 |
-
|
877 |
-
case 'saswp-kk-star-raring-checkbox':
|
878 |
-
|
879 |
-
saswp_compatibliy_notes(current, id);
|
880 |
-
if ($(this).is(':checked')) {
|
881 |
-
$("#saswp-kk-star-raring").val(1);
|
882 |
-
}else{
|
883 |
-
$("#saswp-kk-star-raring").val(0);
|
884 |
-
}
|
885 |
-
break;
|
886 |
-
case 'saswp-woocommerce-checkbox':
|
887 |
-
saswp_compatibliy_notes(current, id);
|
888 |
-
if ($(this).is(':checked')) {
|
889 |
-
$("#saswp-woocommerce").val(1);
|
890 |
-
}else{
|
891 |
-
$("#saswp-woocommerce").val(0);
|
892 |
-
}
|
893 |
-
break;
|
894 |
-
|
895 |
-
case 'saswp-extra-checkbox':
|
896 |
-
saswp_compatibliy_notes(current, id);
|
897 |
-
if ($(this).is(':checked')) {
|
898 |
-
$("#saswp-extra").val(1);
|
899 |
-
}else{
|
900 |
-
$("#saswp-extra").val(0);
|
901 |
-
}
|
902 |
-
break;
|
903 |
-
|
904 |
-
case 'saswp-dw-question-answer-checkbox':
|
905 |
-
saswp_compatibliy_notes(current, id);
|
906 |
-
if ($(this).is(':checked')) {
|
907 |
-
$("#saswp-dw-question-answer").val(1);
|
908 |
-
}else{
|
909 |
-
$("#saswp-dw-question-answer").val(0);
|
910 |
-
}
|
911 |
-
break;
|
912 |
-
|
913 |
-
case 'saswp-wp-job-manager-checkbox':
|
914 |
-
saswp_compatibliy_notes(current, id);
|
915 |
-
if ($(this).is(':checked')) {
|
916 |
-
$("#saswp-wp-job-manager").val(1);
|
917 |
-
}else{
|
918 |
-
$("#saswp-wp-job-manager").val(0);
|
919 |
-
}
|
920 |
-
break;
|
921 |
-
|
922 |
-
case 'saswp-yoast-checkbox':
|
923 |
-
saswp_compatibliy_notes(current, id);
|
924 |
-
if ($(this).is(':checked')) {
|
925 |
-
$("#saswp-yoast").val(1);
|
926 |
-
}else{
|
927 |
-
$("#saswp-yoast").val(0);
|
928 |
-
}
|
929 |
-
break;
|
930 |
-
|
931 |
-
case 'saswp-rankmath-checkbox':
|
932 |
-
saswp_compatibliy_notes(current, id);
|
933 |
-
if ($(this).is(':checked')) {
|
934 |
-
$("#saswp-rankmath").val(1);
|
935 |
-
}else{
|
936 |
-
$("#saswp-rankmath").val(0);
|
937 |
-
}
|
938 |
-
break;
|
939 |
-
|
940 |
-
case 'saswp-tagyeem-checkbox':
|
941 |
-
saswp_compatibliy_notes(current, id);
|
942 |
-
if ($(this).is(':checked')) {
|
943 |
-
$("#saswp-tagyeem").val(1);
|
944 |
-
}else{
|
945 |
-
$("#saswp-tagyeem").val(0);
|
946 |
-
}
|
947 |
-
break;
|
948 |
-
|
949 |
-
case 'saswp-the-events-calendar-checkbox':
|
950 |
-
saswp_compatibliy_notes(current, id);
|
951 |
-
if ($(this).is(':checked')) {
|
952 |
-
$("#saswp-the-events-calendar").val(1);
|
953 |
-
}else{
|
954 |
-
$("#saswp-the-events-calendar").val(0);
|
955 |
-
}
|
956 |
-
break;
|
957 |
-
|
958 |
-
case 'saswp-homeland-checkbox':
|
959 |
-
saswp_compatibliy_notes(current, id);
|
960 |
-
if ($(this).is(':checked')) {
|
961 |
-
$("#saswp-homeland").val(1);
|
962 |
-
}else{
|
963 |
-
$("#saswp-homeland").val(0);
|
964 |
-
}
|
965 |
-
break;
|
966 |
-
|
967 |
-
case 'saswp-realhomes-checkbox':
|
968 |
-
saswp_compatibliy_notes(current, id);
|
969 |
-
if ($(this).is(':checked')) {
|
970 |
-
$("#saswp-realhomes").val(1);
|
971 |
-
}else{
|
972 |
-
$("#saswp-realhomes").val(0);
|
973 |
-
}
|
974 |
-
break;
|
975 |
-
|
976 |
-
|
977 |
-
case 'saswp-woocommerce-booking-checkbox':
|
978 |
-
saswp_compatibliy_notes(current, id);
|
979 |
-
if ($(this).is(':checked')) {
|
980 |
-
$("#saswp-woocommerce-booking").val(1);
|
981 |
-
$("#saswp-woocommerce-booking-main").val(1);
|
982 |
-
}else{
|
983 |
-
$("#saswp-woocommerce-booking").val(0);
|
984 |
-
$("#saswp-woocommerce-booking-main").val(0);
|
985 |
-
}
|
986 |
-
break;
|
987 |
-
|
988 |
-
case 'saswp-woocommerce-booking-main-checkbox':
|
989 |
-
saswp_compatibliy_notes(current, id);
|
990 |
-
if ($(this).is(':checked')) {
|
991 |
-
$("#saswp-woocommerce-booking-main").val(1);
|
992 |
-
$("#saswp-woocommerce-booking").val(1);
|
993 |
-
}else{
|
994 |
-
$("#saswp-woocommerce-booking-main").val(0);
|
995 |
-
$("#saswp-woocommerce-booking").val(0);
|
996 |
-
}
|
997 |
-
break;
|
998 |
-
|
999 |
-
case 'saswp-woocommerce-membership-checkbox':
|
1000 |
-
saswp_compatibliy_notes(current, id);
|
1001 |
-
if ($(this).is(':checked')) {
|
1002 |
-
$("#saswp-woocommerce-membership").val(1);
|
1003 |
-
}else{
|
1004 |
-
$("#saswp-woocommerce-membership").val(0);
|
1005 |
-
}
|
1006 |
-
break;
|
1007 |
-
|
1008 |
-
case 'saswp-defragment-checkbox':
|
1009 |
-
|
1010 |
-
if ($(this).is(':checked')) {
|
1011 |
-
$("#saswp-defragment").val(1);
|
1012 |
-
}else{
|
1013 |
-
$("#saswp-defragment").val(0);
|
1014 |
-
}
|
1015 |
-
break;
|
1016 |
-
|
1017 |
-
case 'saswp-cooked-checkbox':
|
1018 |
-
saswp_compatibliy_notes(current, id);
|
1019 |
-
if ($(this).is(':checked')) {
|
1020 |
-
$("#saswp-cooked").val(1);
|
1021 |
-
}else{
|
1022 |
-
$("#saswp-cooked").val(0);
|
1023 |
-
}
|
1024 |
-
break;
|
1025 |
-
|
1026 |
-
case 'saswp-flexmlx-compativility-checkbox':
|
1027 |
-
saswp_compatibliy_notes(current, id);
|
1028 |
-
if ($(this).is(':checked')) {
|
1029 |
-
$("#saswp-flexmlx-compativility").val(1);
|
1030 |
-
}else{
|
1031 |
-
$("#saswp-flexmlx-compativility").val(0);
|
1032 |
-
}
|
1033 |
-
break;
|
1034 |
-
|
1035 |
-
case 'saswp-shopper-approved-review-checkbox':
|
1036 |
-
saswp_compatibliy_notes(current, id);
|
1037 |
-
if ($(this).is(':checked')) {
|
1038 |
-
$("#saswp-shopper-approved-review").val(1);
|
1039 |
-
$(".saswp-s-reviews-settings-table").parent().parent().parent().show();
|
1040 |
-
}else{
|
1041 |
-
$("#saswp-shopper-approved-review").val(0);
|
1042 |
-
$(".saswp-s-reviews-settings-table").parent().parent().parent().hide();
|
1043 |
-
}
|
1044 |
-
break;
|
1045 |
-
|
1046 |
-
case 'saswp-google-review-checkbox':
|
1047 |
-
|
1048 |
-
if ($(this).is(':checked')) {
|
1049 |
-
|
1050 |
-
$("#saswp-google-review").val(1);
|
1051 |
-
|
1052 |
-
if($("#saswp-google-rv-free-checkbox").length){
|
1053 |
-
|
1054 |
-
$("#saswp-google-review-free").parent().parent().show();
|
1055 |
-
|
1056 |
-
if($("#saswp-google-rv-free-checkbox").is(":checked")){
|
1057 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
1058 |
-
}else{
|
1059 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
1060 |
-
}
|
1061 |
-
}else{
|
1062 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
1063 |
-
}
|
1064 |
-
$(".saswp-g-reviews-settings-table").parent().parent().parent().show();
|
1065 |
-
|
1066 |
-
}else{
|
1067 |
-
|
1068 |
-
$("#saswp-google-review").val(0);
|
1069 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
1070 |
-
$(".saswp-g-reviews-settings-table").parent().parent().parent().hide();
|
1071 |
-
|
1072 |
-
if($("#saswp-google-rv-free-checkbox").length){
|
1073 |
-
$("#saswp-google-review-free").parent().parent().hide();
|
1074 |
-
|
1075 |
-
}
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
}
|
1082 |
-
break;
|
1083 |
-
|
1084 |
-
case 'saswp-google-rv-free-checkbox':
|
1085 |
-
|
1086 |
-
if($("#saswp-google-review-checkbox").is(":checked")){
|
1087 |
-
if ($(this).is(':checked')) {
|
1088 |
-
$("#saswp-google-review-free").val(1);
|
1089 |
-
$("#saswp_google_place_api_key").parent().parent().show();
|
1090 |
-
}else{
|
1091 |
-
$("#saswp-google-review-free").val(0);
|
1092 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
1093 |
-
}
|
1094 |
-
|
1095 |
-
}else{
|
1096 |
-
$("#saswp-google-review-free").val(0);
|
1097 |
-
$("#saswp_google_place_api_key").parent().parent().hide();
|
1098 |
-
}
|
1099 |
-
|
1100 |
-
|
1101 |
-
break;
|
1102 |
-
|
1103 |
-
|
1104 |
-
case 'saswp-markup-footer-checkbox':
|
1105 |
-
|
1106 |
-
if ($(this).is(':checked')) {
|
1107 |
-
$("#saswp-markup-footer").val(1);
|
1108 |
-
}else{
|
1109 |
-
$("#saswp-markup-footer").val(0);
|
1110 |
-
}
|
1111 |
-
break;
|
1112 |
-
|
1113 |
-
case 'saswp-pretty-print-checkbox':
|
1114 |
-
|
1115 |
-
if ($(this).is(':checked')) {
|
1116 |
-
$("#saswp-pretty-print").val(1);
|
1117 |
-
}else{
|
1118 |
-
$("#saswp-pretty-print").val(0);
|
1119 |
-
}
|
1120 |
-
break;
|
1121 |
-
|
1122 |
-
case 'saswp-wppostratings-raring-checkbox':
|
1123 |
-
saswp_compatibliy_notes(current, id);
|
1124 |
-
if ($(this).is(':checked')) {
|
1125 |
-
$("#saswp-wppostratings-raring").val(1);
|
1126 |
-
}else{
|
1127 |
-
$("#saswp-wppostratings-raring").val(0);
|
1128 |
-
}
|
1129 |
-
break;
|
1130 |
-
|
1131 |
-
case 'saswp-bbpress-checkbox':
|
1132 |
-
saswp_compatibliy_notes(current, id);
|
1133 |
-
if ($(this).is(':checked')) {
|
1134 |
-
$("#saswp-bbpress").val(1);
|
1135 |
-
}else{
|
1136 |
-
$("#saswp-bbpress").val(0);
|
1137 |
-
}
|
1138 |
-
break;
|
1139 |
-
|
1140 |
-
case 'saswp-microdata-cleanup-checkbox':
|
1141 |
-
|
1142 |
-
if ($(this).is(':checked')) {
|
1143 |
-
$("#saswp-microdata-cleanup").val(1);
|
1144 |
-
}else{
|
1145 |
-
$("#saswp-microdata-cleanup").val(0);
|
1146 |
-
}
|
1147 |
-
break;
|
1148 |
-
|
1149 |
-
|
1150 |
-
default:
|
1151 |
-
break;
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
}).change();
|
1155 |
-
|
1156 |
-
$("#saswp_kb_type").change(function(){
|
1157 |
-
|
1158 |
-
var datatype = $(this).val();
|
1159 |
-
|
1160 |
-
$(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass('saswp_hide');
|
1161 |
-
$(".saswp_kg_logo").parent().parent().parent().addClass('saswp_hide');
|
1162 |
-
$("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
|
1163 |
-
|
1164 |
-
|
1165 |
-
if(datatype == 'Organization'){
|
1166 |
-
|
1167 |
-
$(".saswp_org_fields").parent().parent().removeClass('saswp_hide');
|
1168 |
-
$(".saswp_person_fields").parent().parent().addClass('saswp_hide');
|
1169 |
-
$(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
|
1170 |
-
$("#sd-person-image").parent().parent().parent().addClass('saswp_hide');
|
1171 |
-
}
|
1172 |
-
if(datatype == 'Person'){
|
1173 |
-
|
1174 |
-
$(".saswp_org_fields").parent().parent().addClass('saswp_hide');
|
1175 |
-
$(".saswp_person_fields").parent().parent().removeClass('saswp_hide');
|
1176 |
-
$(".saswp_kg_logo").parent().parent().parent().removeClass('saswp_hide');
|
1177 |
-
$("#sd-person-image").parent().parent().parent().removeClass('saswp_hide');
|
1178 |
-
}
|
1179 |
-
|
1180 |
-
}).change();
|
1181 |
-
|
1182 |
-
$(document).on("click", "input[data-id=media]" ,function(e) { // Application Icon upload
|
1183 |
-
e.preventDefault();
|
1184 |
-
var current = $(this);
|
1185 |
-
var button = current;
|
1186 |
-
var id = button.attr('id').replace('_button', '');
|
1187 |
-
var saswpMediaUploader = wp.media({
|
1188 |
-
title: "Application Icon",
|
1189 |
-
button: {
|
1190 |
-
text: "Select Icon"
|
1191 |
-
},
|
1192 |
-
multiple: false, // Set this to true to allow multiple files to be selected
|
1193 |
-
library:{type : 'image'}
|
1194 |
-
})
|
1195 |
-
.on("select", function() {
|
1196 |
-
var attachment = saswpMediaUploader.state().get('selection').first().toJSON();
|
1197 |
-
|
1198 |
-
$("#"+id).val(attachment.url);
|
1199 |
-
$("input[data-id='"+id+"_id']").val(attachment.id);
|
1200 |
-
$("input[data-id='"+id+"_height']").val(attachment.height);
|
1201 |
-
$("input[data-id='"+id+"_width']").val(attachment.width);
|
1202 |
-
$("input[data-id='"+id+"_thumbnail']").val(attachment.url);
|
1203 |
-
|
1204 |
-
if(current.attr('id') === 'sd_default_image_button'){
|
1205 |
-
|
1206 |
-
$("#sd_default_image_width").val(attachment.width);
|
1207 |
-
$("#sd_default_image_height").val(attachment.height);
|
1208 |
-
|
1209 |
-
}
|
1210 |
-
var smaller_img_notice = '';
|
1211 |
-
if("saswp_image_div_"+id == 'saswp_image_div_sd_default_image' && attachment.height < 1200){
|
1212 |
-
smaller_img_notice = '<p class="saswp_warning">Image size is smaller than recommended size</p>';
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
$(".saswp_image_div_"+id).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+attachment.url+'"/><a data-id="'+id+'" href="#" class="saswp_prev_close">X</a></div>'+smaller_img_notice);
|
1216 |
-
|
1217 |
-
})
|
1218 |
-
.open();
|
1219 |
-
});
|
1220 |
-
|
1221 |
-
$(document).on("click", ".saswp_prev_close", function(e){
|
1222 |
-
e.preventDefault();
|
1223 |
-
|
1224 |
-
var id = $(this).attr('data-id');
|
1225 |
-
console.log(id);
|
1226 |
-
$(this).parent().remove();
|
1227 |
-
$("#"+id).val('');
|
1228 |
-
$("input[data-id='"+id+"_id']").val('');
|
1229 |
-
$("input[data-id='"+id+"_height']").val('');
|
1230 |
-
$("input[data-id='"+id+"_width']").val('');
|
1231 |
-
$("input[data-id='"+id+"_thumbnail']").val('');
|
1232 |
-
|
1233 |
-
if(id === 'sd_default_image'){
|
1234 |
-
|
1235 |
-
$("#sd_default_image_width").val('');
|
1236 |
-
$("#sd_default_image_height").val('');
|
1237 |
-
|
1238 |
-
}
|
1239 |
-
|
1240 |
-
|
1241 |
-
});
|
1242 |
-
|
1243 |
-
//Settings page jquery ends here
|
1244 |
-
|
1245 |
-
$(document).on("change",".saswp-schema-type-toggle", function(e){
|
1246 |
-
var schema_id = $(this).attr("data-schema-id");
|
1247 |
-
var post_id = $(this).attr("data-post-id");
|
1248 |
-
if($(this).is(':checked')){
|
1249 |
-
var status = 1;
|
1250 |
-
}else{
|
1251 |
-
var status = 0;
|
1252 |
-
}
|
1253 |
-
$.ajax({
|
1254 |
-
type: "POST",
|
1255 |
-
url:ajaxurl,
|
1256 |
-
dataType: "json",
|
1257 |
-
data:{action:"saswp_enable_disable_schema_on_post",status:status, schema_id:schema_id, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1258 |
-
success:function(response){
|
1259 |
-
},
|
1260 |
-
error: function(response){
|
1261 |
-
console.log(response);
|
1262 |
-
}
|
1263 |
-
});
|
1264 |
-
|
1265 |
-
});
|
1266 |
-
|
1267 |
-
|
1268 |
-
$(document).on("click",".saswp-reset-data", function(e){
|
1269 |
-
e.preventDefault();
|
1270 |
-
|
1271 |
-
var saswp_confirm = confirm("Are you sure?");
|
1272 |
-
|
1273 |
-
if(saswp_confirm == true){
|
1274 |
-
|
1275 |
-
$.ajax({
|
1276 |
-
type: "POST",
|
1277 |
-
url:ajaxurl,
|
1278 |
-
dataType: "json",
|
1279 |
-
data:{action:"saswp_reset_all_settings", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1280 |
-
success:function(response){
|
1281 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1282 |
-
},
|
1283 |
-
error: function(response){
|
1284 |
-
console.log(response);
|
1285 |
-
}
|
1286 |
-
});
|
1287 |
-
|
1288 |
-
}
|
1289 |
-
|
1290 |
-
|
1291 |
-
});
|
1292 |
-
|
1293 |
-
//Licensing jquery starts here
|
1294 |
-
$(document).on("click",".saswp_license_activation", function(e){
|
1295 |
-
e.preventDefault();
|
1296 |
-
var current = $(this);
|
1297 |
-
current.addClass('updating-message');
|
1298 |
-
var license_status = $(this).attr('license-status');
|
1299 |
-
var add_on = $(this).attr('add-on');
|
1300 |
-
var license_key = $("#"+add_on+"_addon_license_key").val();
|
1301 |
-
|
1302 |
-
if(license_status && add_on && license_key){
|
1303 |
-
|
1304 |
-
$.ajax({
|
1305 |
-
type: "POST",
|
1306 |
-
url:ajaxurl,
|
1307 |
-
dataType: "json",
|
1308 |
-
data:{action:"saswp_license_status_check",license_key:license_key,license_status:license_status, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1309 |
-
success:function(response){
|
1310 |
-
|
1311 |
-
$("#"+add_on+"_addon_license_key_status").val(response['status']);
|
1312 |
-
|
1313 |
-
if(response['status'] =='active'){
|
1314 |
-
$(".saswp-"+add_on+"-dashicons").addClass('dashicons-yes');
|
1315 |
-
$(".saswp-"+add_on+"-dashicons").removeClass('dashicons-no-alt');
|
1316 |
-
$(".saswp-"+add_on+"-dashicons").css("color", "green");
|
1317 |
-
|
1318 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "inactive");
|
1319 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").text("Deactivate");
|
1320 |
-
|
1321 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text('Activated');
|
1322 |
-
|
1323 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "green");
|
1324 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
|
1325 |
-
|
1326 |
-
}else{
|
1327 |
-
|
1328 |
-
$(".saswp-"+add_on+"-dashicons").addClass('dashicons-no-alt');
|
1329 |
-
$(".saswp-"+add_on+"-dashicons").removeClass('dashicons-yes');
|
1330 |
-
$(".saswp-"+add_on+"-dashicons").css("color", "red");
|
1331 |
-
|
1332 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "active");
|
1333 |
-
$(".saswp_license_activation[add-on='" + add_on + "']").text("Activate");
|
1334 |
-
|
1335 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "red");
|
1336 |
-
$(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
|
1337 |
-
}
|
1338 |
-
current.removeClass('updating-message');
|
1339 |
-
},
|
1340 |
-
error: function(response){
|
1341 |
-
console.log(response);
|
1342 |
-
}
|
1343 |
-
});
|
1344 |
-
|
1345 |
-
}else{
|
1346 |
-
alert('Please enter value license key');
|
1347 |
-
current.removeClass('updating-message');
|
1348 |
-
}
|
1349 |
-
|
1350 |
-
});
|
1351 |
-
//Licensing jquery ends here
|
1352 |
-
//query form send starts here
|
1353 |
-
|
1354 |
-
$(".saswp-send-query").on("click", function(e){
|
1355 |
-
e.preventDefault();
|
1356 |
-
var message = $("#saswp_query_message").val();
|
1357 |
-
if($.trim(message) !=''){
|
1358 |
-
$.ajax({
|
1359 |
-
type: "POST",
|
1360 |
-
url:ajaxurl,
|
1361 |
-
dataType: "json",
|
1362 |
-
data:{action:"saswp_send_query_message", message:message, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1363 |
-
success:function(response){
|
1364 |
-
if(response['status'] =='t'){
|
1365 |
-
$(".saswp-query-success").show();
|
1366 |
-
$(".saswp-query-error").hide();
|
1367 |
-
}else{
|
1368 |
-
console.log('dd');
|
1369 |
-
$(".saswp-query-success").hide();
|
1370 |
-
$(".saswp-query-error").show();
|
1371 |
-
}
|
1372 |
-
},
|
1373 |
-
error: function(response){
|
1374 |
-
console.log(response);
|
1375 |
-
}
|
1376 |
-
});
|
1377 |
-
}else{
|
1378 |
-
alert('Please enter the message');
|
1379 |
-
}
|
1380 |
-
|
1381 |
-
});
|
1382 |
-
|
1383 |
-
//Importer from schema plugin starts here
|
1384 |
-
|
1385 |
-
$(".saswp-import-plugins").on("click", function(e){
|
1386 |
-
e.preventDefault();
|
1387 |
-
var current_selection = $(this);
|
1388 |
-
current_selection.addClass('updating-message');
|
1389 |
-
var plugin_name = $(this).attr('data-id');
|
1390 |
-
$.get(ajaxurl,
|
1391 |
-
{ action:"saswp_import_plugin_data", plugin_name:plugin_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1392 |
-
function(response){
|
1393 |
-
if(response['status'] =='t'){
|
1394 |
-
$(current_selection).parent().find(".saswp-imported-message").text(response['message']);
|
1395 |
-
$(current_selection).parent().find(".saswp-imported-message").removeClass('saswp-error');
|
1396 |
-
setTimeout(function(){ location.reload(); }, 2000);
|
1397 |
-
}else{
|
1398 |
-
$(current_selection).parent().find(".saswp-imported-message").addClass('saswp-error');
|
1399 |
-
$(current_selection).parent().find(".saswp-imported-message").text(response['message']);
|
1400 |
-
}
|
1401 |
-
current_selection.removeClass('updating-message');
|
1402 |
-
},'json');
|
1403 |
-
});
|
1404 |
-
|
1405 |
-
|
1406 |
-
$(".saswp-feedback-no-thanks").on("click", function(e){
|
1407 |
-
e.preventDefault();
|
1408 |
-
$.get(ajaxurl,
|
1409 |
-
{ action:"saswp_feeback_no_thanks"},
|
1410 |
-
function(response){
|
1411 |
-
if(response['status'] =='t'){
|
1412 |
-
$(".saswp-feedback-notice").hide();
|
1413 |
-
}
|
1414 |
-
},'json');
|
1415 |
-
});
|
1416 |
-
|
1417 |
-
$(".saswp-feedback-remindme").on("click", function(e){
|
1418 |
-
e.preventDefault();
|
1419 |
-
$.get(ajaxurl,
|
1420 |
-
{ action:"saswp_feeback_remindme"},
|
1421 |
-
function(response){
|
1422 |
-
if(response['status'] =='t'){
|
1423 |
-
$(".saswp-feedback-notice").hide();
|
1424 |
-
}
|
1425 |
-
},'json');
|
1426 |
-
});
|
1427 |
-
|
1428 |
-
$(document).on("change",'.saswp-local-business-type-select', function(e){
|
1429 |
-
e.preventDefault();
|
1430 |
-
var current = $(this);
|
1431 |
-
var business_type = $(this).val();
|
1432 |
-
$.get(ajaxurl,
|
1433 |
-
{ action:"saswp_get_sub_business_ajax", business_type:business_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1434 |
-
function(response){
|
1435 |
-
|
1436 |
-
if(response['status'] =='t'){
|
1437 |
-
$(".saswp-local-business-name-select").parents('tr').remove();
|
1438 |
-
var schema_id = current.parents('.saswp-post-specific-wrapper').attr('data-id');
|
1439 |
-
var html ='<tr><th><label for="saswp_business_name_'+schema_id+'">Sub Business Type</label></th>';
|
1440 |
-
html +='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+schema_id+'" name="saswp_business_name_'+schema_id+'">';
|
1441 |
-
$.each(response['result'], function(index, element){
|
1442 |
-
html +='<option value="'+index+'">'+element+'</option>';
|
1443 |
-
});
|
1444 |
-
html +='</select></td>';
|
1445 |
-
html +='</tr>';
|
1446 |
-
current.parents('.form-table tr:first').after(html);
|
1447 |
-
}else{
|
1448 |
-
$(".saswp-local-business-name-select").parents('tr').remove();
|
1449 |
-
}
|
1450 |
-
},'json');
|
1451 |
-
});
|
1452 |
-
|
1453 |
-
saswp_item_reviewed_call();
|
1454 |
-
|
1455 |
-
$('.saswp-local-schema-time-picker').timepicker({ 'timeFormat': 'H:i:s'});
|
1456 |
-
|
1457 |
-
$(document).on("click",".saswp-add-custom-schema", function(e){
|
1458 |
-
|
1459 |
-
e.preventDefault();
|
1460 |
-
|
1461 |
-
$(".saswp-add-custom-schema-field").removeClass('saswp_hide');
|
1462 |
-
$(this).hide();
|
1463 |
-
|
1464 |
-
});
|
1465 |
-
|
1466 |
-
$(document).on("click", ".saswp-delete-custom-schema", function(e){
|
1467 |
-
|
1468 |
-
e.preventDefault();
|
1469 |
-
|
1470 |
-
$("#saswp_custom_schema_field").val('');
|
1471 |
-
$(".saswp-add-custom-schema-field").addClass('saswp_hide');
|
1472 |
-
$(".saswp-add-custom-schema").show();
|
1473 |
-
|
1474 |
-
});
|
1475 |
-
|
1476 |
-
$(".saswp-modify_schema_post_enable").on("click", function(e){
|
1477 |
-
var current = $(this);
|
1478 |
-
current.addClass('updating-message');
|
1479 |
-
e.preventDefault();
|
1480 |
-
$.get(ajaxurl,
|
1481 |
-
{ action:"saswp_modify_schema_post_enable", post_id: saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1482 |
-
function(response){
|
1483 |
-
current.remove();
|
1484 |
-
$(".saswp-add-custom-schema-div").remove();
|
1485 |
-
$("#post_specific .inside").append(response);
|
1486 |
-
current.removeClass('updating-message');
|
1487 |
-
saswpAddTimepicker();
|
1488 |
-
saswp_schema_datepicker();
|
1489 |
-
saswp_enable_rating_review();
|
1490 |
-
saswp_item_reviewed_call();
|
1491 |
-
});
|
1492 |
-
|
1493 |
-
});
|
1494 |
-
saswp_schema_datepicker();
|
1495 |
-
|
1496 |
-
saswp_reviews_datepicker();
|
1497 |
-
|
1498 |
-
//Review js starts here
|
1499 |
-
|
1500 |
-
$(document).on("click", ".saswp-add-more-item",function(e){
|
1501 |
-
e.preventDefault();
|
1502 |
-
var rows = $('.saswp-review-item-list-table tr').length;
|
1503 |
-
console.log(rows);
|
1504 |
-
var html = '<tr class="saswp-review-item-tr">';
|
1505 |
-
html += '<td>Review Item Feature</td>';
|
1506 |
-
html += '<td><input type="text" name="saswp-review-item-feature[]"></td>';
|
1507 |
-
html += '<td>Rating</td>';
|
1508 |
-
html += '<td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td>';
|
1509 |
-
html += '<td><a type="button" class="saswp-remove-review-item button">x</a></td>';
|
1510 |
-
html += '</tr>';
|
1511 |
-
$(".saswp-review-item-list-table").append(html);
|
1512 |
-
|
1513 |
-
});
|
1514 |
-
|
1515 |
-
$(document).on("click", ".saswp-remove-review-item", function(e){
|
1516 |
-
e.preventDefault();
|
1517 |
-
$(this).parent().parent('tr').remove();
|
1518 |
-
});
|
1519 |
-
|
1520 |
-
$(document).on("focusout", ".saswp-review-item-tr input[type=number]", function(e){
|
1521 |
-
e.preventDefault();
|
1522 |
-
var total_rating = 0;
|
1523 |
-
var element_count = $(".saswp-review-item-tr input[type=number]").length;
|
1524 |
-
$(".saswp-review-item-tr input[type=number]").each(function(index, element){
|
1525 |
-
if($(element).val() ==''){
|
1526 |
-
total_rating += parseFloat(0);
|
1527 |
-
}else{
|
1528 |
-
total_rating += parseFloat($(element).val());
|
1529 |
-
}
|
1530 |
-
|
1531 |
-
});
|
1532 |
-
var over_all_rating = total_rating / element_count;
|
1533 |
-
$("#saswp-review-item-over-all").val(over_all_rating);
|
1534 |
-
});
|
1535 |
-
|
1536 |
-
$("#saswp-review-location").change(function(){
|
1537 |
-
var location = $(this).val();
|
1538 |
-
$(".saswp-review-shortcode").addClass('saswp_hide');
|
1539 |
-
if(location == 3){
|
1540 |
-
$(".saswp-review-shortcode").removeClass('saswp_hide');
|
1541 |
-
}
|
1542 |
-
}).change();
|
1543 |
-
|
1544 |
-
$("#saswp-review-item-enable").change(function(){
|
1545 |
-
if ($(this).is(':checked')) {
|
1546 |
-
$(".saswp-review-fields").show();
|
1547 |
-
}else{
|
1548 |
-
$(".saswp-review-fields").hide();
|
1549 |
-
}
|
1550 |
-
}).change();
|
1551 |
-
|
1552 |
-
$(document).on("click", ".saswp-restore-post-schema", function(e){
|
1553 |
-
e.preventDefault();
|
1554 |
-
var current = $(this);
|
1555 |
-
current.addClass('updating-message');
|
1556 |
-
|
1557 |
-
if($(".saswp-post-specific-schema-ids").val()){
|
1558 |
-
var schema_ids = JSON.parse($(".saswp-post-specific-schema-ids").val());
|
1559 |
-
}
|
1560 |
-
|
1561 |
-
$.post(ajaxurl,
|
1562 |
-
{ action:"saswp_restore_schema", schema_ids:schema_ids,post_id: saswp_localize_data.post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1563 |
-
function(response){
|
1564 |
-
if(response['status'] =='t'){
|
1565 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1566 |
-
}else{
|
1567 |
-
alert(response['msg']);
|
1568 |
-
setTimeout(function(){ location.reload(); }, 1000);
|
1569 |
-
}
|
1570 |
-
current.removeClass('updating-message');
|
1571 |
-
},'json');
|
1572 |
-
});
|
1573 |
-
|
1574 |
-
//Review js ends here
|
1575 |
-
|
1576 |
-
$(document).on("click","div.saswp-tab ul.saswp-tab-nav a", function(e){
|
1577 |
-
e.preventDefault();
|
1578 |
-
var attr = $(this).attr('data-id');
|
1579 |
-
$(".saswp-post-specific-wrapper").hide();
|
1580 |
-
$("#"+attr).show();
|
1581 |
-
$('div.saswp-tab ul.saswp-tab-nav a').removeClass('selected');
|
1582 |
-
$('div.saswp-tab ul.saswp-tab-nav li').removeClass('selected');
|
1583 |
-
$(this).addClass('selected');
|
1584 |
-
$(this).parent().addClass('selected');
|
1585 |
-
saswp_enable_rating_review();
|
1586 |
-
});
|
1587 |
-
|
1588 |
-
|
1589 |
-
$('#saswp-global-tabs a:first').addClass('saswp-global-selected');
|
1590 |
-
$('.saswp-global-container').hide();
|
1591 |
-
|
1592 |
-
var hash = window.location.hash;
|
1593 |
-
|
1594 |
-
if(hash == '#saswp-default-container'){
|
1595 |
-
$('.saswp-global-container:eq(2)').show();
|
1596 |
-
}else{
|
1597 |
-
$('.saswp-global-container:first').show();
|
1598 |
-
}
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
$('#saswp-global-tabs a').click(function(){
|
1603 |
-
var t = $(this).attr('data-id');
|
1604 |
-
|
1605 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1606 |
-
$('#saswp-global-tabs a').removeClass('saswp-global-selected');
|
1607 |
-
$(this).addClass('saswp-global-selected');
|
1608 |
-
|
1609 |
-
$('.saswp-global-container').hide();
|
1610 |
-
$('#'+t).show();
|
1611 |
-
}
|
1612 |
-
});
|
1613 |
-
|
1614 |
-
|
1615 |
-
$('#saswp-tools-tabs a:first').addClass('saswp-global-selected');
|
1616 |
-
$('.saswp-tools-container').hide();
|
1617 |
-
$('.saswp-tools-container:first').show();
|
1618 |
-
|
1619 |
-
$('#saswp-tools-tabs a').click(function(){
|
1620 |
-
var t = $(this).attr('data-id');
|
1621 |
-
|
1622 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1623 |
-
$('#saswp-tools-tabs a').removeClass('saswp-global-selected');
|
1624 |
-
$(this).addClass('saswp-global-selected');
|
1625 |
-
|
1626 |
-
$('.saswp-tools-container').hide();
|
1627 |
-
$('#'+t).show();
|
1628 |
-
}
|
1629 |
-
});
|
1630 |
-
|
1631 |
-
|
1632 |
-
$('#saswp-review-tabs a:first').addClass('saswp-global-selected');
|
1633 |
-
$('.saswp-review-container').hide();
|
1634 |
-
$('.saswp-review-container:first').show();
|
1635 |
-
|
1636 |
-
$('#saswp-review-tabs a').click(function(){
|
1637 |
-
var t = $(this).attr('data-id');
|
1638 |
-
|
1639 |
-
if(!$(this).hasClass('saswp-global-selected')){
|
1640 |
-
$('#saswp-review-tabs a').removeClass('saswp-global-selected');
|
1641 |
-
$(this).addClass('saswp-global-selected');
|
1642 |
-
|
1643 |
-
$('.saswp-review-container').hide();
|
1644 |
-
$('#'+t).show();
|
1645 |
-
}
|
1646 |
-
});
|
1647 |
-
|
1648 |
-
|
1649 |
-
//Importer from schema plugin ends here
|
1650 |
-
|
1651 |
-
//custom fields modify schema starts here
|
1652 |
-
|
1653 |
-
//Changing the url of add new schema type
|
1654 |
-
$('a[href="'+saswp_localize_data.new_url_selector+'"]').attr( 'href', saswp_localize_data.new_url_href);
|
1655 |
-
|
1656 |
-
|
1657 |
-
$("#saswp_enable_custom_field").change(function(){
|
1658 |
-
if ($(this).is(':checked')) {
|
1659 |
-
$(".saswp-custom-fields-div").show();
|
1660 |
-
}else{
|
1661 |
-
$(".saswp-custom-fields-div").hide();
|
1662 |
-
}
|
1663 |
-
});
|
1664 |
-
|
1665 |
-
$(document).on('change','.saswp-custom-fields-name',function(){
|
1666 |
-
|
1667 |
-
var type = 'text';
|
1668 |
-
var tr = $(this).parent().parent('tr');
|
1669 |
-
var fields_name = $(this).val();
|
1670 |
-
var str2 = "image";
|
1671 |
-
var str3 = "logo";
|
1672 |
-
if((fields_name.indexOf(str2) != -1)|| (fields_name.indexOf(str3) != -1)){
|
1673 |
-
type = 'image';
|
1674 |
-
}
|
1675 |
-
var id = $(this).parent().parent('tr').find("td:eq(1)");
|
1676 |
-
saswp_get_meta_list(null,type, null, id, fields_name, tr);
|
1677 |
-
|
1678 |
-
});
|
1679 |
-
|
1680 |
-
$(document).on("click", '.saswp-skip-button', function(e){
|
1681 |
-
e.preventDefault();
|
1682 |
-
$(this).parent().parent().hide();
|
1683 |
-
|
1684 |
-
$.post(ajaxurl,
|
1685 |
-
{ action:"saswp_skip_wizard", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1686 |
-
function(response){
|
1687 |
-
|
1688 |
-
},'json');
|
1689 |
-
|
1690 |
-
});
|
1691 |
-
|
1692 |
-
$(document).on("click", ".saswp_add_schema_fields_on_fly", function(e){
|
1693 |
-
e.preventDefault();
|
1694 |
-
|
1695 |
-
var current_fly = $(this);
|
1696 |
-
|
1697 |
-
current_fly.addClass('updating-message');
|
1698 |
-
|
1699 |
-
var schema_id = $(this).attr('data-id');
|
1700 |
-
var fields_type = $(this).attr('fields_type');
|
1701 |
-
var div_type = $(this).attr('div_type');
|
1702 |
-
|
1703 |
-
var count = $(".saswp-"+div_type+"-table-div").length;
|
1704 |
-
var index = $( ".saswp-"+div_type+"-table-div:nth-child("+count+")" ).attr('data-id');
|
1705 |
-
index = ++index;
|
1706 |
-
|
1707 |
-
if(!index){
|
1708 |
-
index = 0;
|
1709 |
-
}
|
1710 |
-
|
1711 |
-
saswp_get_post_specific_schema_fields(current_fly, index, fields_type, div_type, schema_id, fields_type+'_');
|
1712 |
-
|
1713 |
-
});
|
1714 |
-
|
1715 |
-
$(document).on("click", ".saswp-table-close", function(){
|
1716 |
-
$(this).parent().remove();
|
1717 |
-
});
|
1718 |
-
|
1719 |
-
//How to schema js ends here
|
1720 |
-
|
1721 |
-
$(document).on("click", ".saswp-rmv-modify_row", function(e){
|
1722 |
-
e.preventDefault();
|
1723 |
-
$(this).parent().parent().remove();
|
1724 |
-
});
|
1725 |
-
|
1726 |
-
$(document).on("change",".saswp-custom-meta-list", function(){
|
1727 |
-
|
1728 |
-
var schema_type = $('select#schema_type option:selected').val();
|
1729 |
-
var meta_val = $(this).val();
|
1730 |
-
var field_name = $(this).parent().parent('tr').find(".saswp-custom-fields-name").val();
|
1731 |
-
var html = '';
|
1732 |
-
var el_id = schema_type.toLowerCase()+'_'+field_name;
|
1733 |
-
var media_name = 'saswp_fixed_image['+field_name+']';
|
1734 |
-
if(meta_val == 'manual_text'){
|
1735 |
-
html += '<td><input type="text" name="saswp_fixed_text['+field_name+']"></td>';
|
1736 |
-
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1737 |
-
|
1738 |
-
}else if(meta_val == 'custom_field'){
|
1739 |
-
html += '<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+field_name+']">';
|
1740 |
-
html += '</select></td>';
|
1741 |
-
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1742 |
-
}else if(meta_val == 'fixed_image'){
|
1743 |
-
html += '<td>';
|
1744 |
-
html += '<fieldset>';
|
1745 |
-
html += '<input data-id="media" style="width: 30%;" class="button" id="'+el_id+'_button" name="'+el_id+'_button" type="button" value="Upload" />';
|
1746 |
-
html += '<input type="hidden" data-id="'+el_id+'_height" class="upload-height" name="'+media_name+'[height]" id="'+el_id+'_height" value="">';
|
1747 |
-
html += '<input type="hidden" data-id="'+el_id+'_width" class="upload-width" name="'+media_name+'[width]" id="'+el_id+'_width" value="">';
|
1748 |
-
html += '<input type="hidden" data-id="'+el_id+'_thumbnail" class="upload-thumbnail" name="'+media_name+'[thumbnail]" id="'+el_id+'_thumbnail" value="">';
|
1749 |
-
html += '<div class="saswp_image_div_'+el_id+'">';
|
1750 |
-
html += '</div>';
|
1751 |
-
html += '</fieldset>';
|
1752 |
-
html += '</td>';
|
1753 |
-
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1754 |
-
}
|
1755 |
-
else{
|
1756 |
-
html += '<td></td>';
|
1757 |
-
html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
|
1758 |
-
}
|
1759 |
-
|
1760 |
-
$(this).parent().parent('tr').find("td:gt(1)").remove();
|
1761 |
-
$(this).parent().parent('tr').append(html);
|
1762 |
-
saswpCustomSelect2();
|
1763 |
-
|
1764 |
-
});
|
1765 |
-
|
1766 |
-
$(document).on("change", ".saswp-item-reivewed-list", function(){
|
1767 |
-
|
1768 |
-
$(".saswp-custom-fields-table").html('');
|
1769 |
-
saswp_meta_list_fields = [];
|
1770 |
-
|
1771 |
-
});
|
1772 |
-
|
1773 |
-
$(document).on("click", '.saswp-add-custom-fields', function(){
|
1774 |
-
|
1775 |
-
var current_fly = $(this);
|
1776 |
-
current_fly.addClass('updating-message');
|
1777 |
-
var schema_type = $('select#schema_type option:selected').val();
|
1778 |
-
var schema_subtype = '';
|
1779 |
-
|
1780 |
-
if(schema_type == 'Review'){
|
1781 |
-
schema_subtype = $('select.saswp-item-reivewed-list option:selected').val();
|
1782 |
-
}
|
1783 |
-
var post_id = $('#post_ID').val();
|
1784 |
-
if(schema_type !=''){
|
1785 |
-
|
1786 |
-
if(!saswp_meta_list_fields[schema_type]){
|
1787 |
-
|
1788 |
-
$.ajax({
|
1789 |
-
type: "POST",
|
1790 |
-
url:ajaxurl,
|
1791 |
-
dataType: "json",
|
1792 |
-
data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type,schema_subtype:schema_subtype, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1793 |
-
success:function(response){
|
1794 |
-
|
1795 |
-
saswp_meta_list_fields[schema_type] = response;
|
1796 |
-
saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
|
1797 |
-
|
1798 |
-
},
|
1799 |
-
error: function(response){
|
1800 |
-
console.log(response);
|
1801 |
-
}
|
1802 |
-
});
|
1803 |
-
|
1804 |
-
|
1805 |
-
}else{
|
1806 |
-
|
1807 |
-
saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
|
1808 |
-
|
1809 |
-
}
|
1810 |
-
|
1811 |
-
}
|
1812 |
-
});
|
1813 |
-
saswpCustomSelect2();
|
1814 |
-
saswp_enable_rating_review();
|
1815 |
-
|
1816 |
-
//custom fields modify schema ends here
|
1817 |
-
|
1818 |
-
|
1819 |
-
//Google review js starts here
|
1820 |
-
|
1821 |
-
$('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr( 'href', saswp_localize_data.collection_post_add_new_url);
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
$(document).on("click", '.saswp_coonect_google_place', function(){
|
1826 |
-
|
1827 |
-
var place_id = $("#saswp_google_place_id").val();
|
1828 |
-
var language = $("#saswp_language_list").val();
|
1829 |
-
var google_api = $("#saswp_googel_api").val();
|
1830 |
-
|
1831 |
-
if(place_id !=''){
|
1832 |
-
$.ajax({
|
1833 |
-
type: "POST",
|
1834 |
-
url:ajaxurl,
|
1835 |
-
dataType: "json",
|
1836 |
-
data:{action:"saswp_connect_google_place",place_id:place_id, language:language, google_api:google_api, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
|
1837 |
-
success:function(response){
|
1838 |
-
console.log(response['status']);
|
1839 |
-
},
|
1840 |
-
error: function(response){
|
1841 |
-
console.log(response);
|
1842 |
-
}
|
1843 |
-
});
|
1844 |
-
}
|
1845 |
-
});
|
1846 |
-
|
1847 |
-
//google review js ends here
|
1848 |
-
|
1849 |
-
//Adding settings button beside add schema type button on schema type list page
|
1850 |
-
|
1851 |
-
if ('saswp' == saswp_localize_data.post_type && saswp_localize_data.page_now == 'edit.php') {
|
1852 |
-
|
1853 |
-
jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>");
|
1854 |
-
|
1855 |
-
}
|
1856 |
-
|
1857 |
-
//star rating stars here
|
1858 |
-
if(typeof(saswp_reviews_data) !== 'undefined'){
|
1859 |
-
|
1860 |
-
$(".saswp-rating-div").rateYo({
|
1861 |
-
|
1862 |
-
rating: saswp_reviews_data.rating_val,
|
1863 |
-
halfStar: true,
|
1864 |
-
//normalFill: "#ffd700",
|
1865 |
-
readOnly: saswp_reviews_data.readonly,
|
1866 |
-
onSet: function (rating, rateYoInstance) {
|
1867 |
-
$(this).next().val(rating);
|
1868 |
-
console.log(rating);
|
1869 |
-
}
|
1870 |
-
|
1871 |
-
});
|
1872 |
-
|
1873 |
-
}
|
1874 |
-
//rating ends here
|
1875 |
-
|
1876 |
-
$("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){
|
1877 |
-
var current = $(this);
|
1878 |
-
|
1879 |
-
current.parent().find('.saswp-phone-validation').remove();
|
1880 |
-
|
1881 |
-
var pnumber = $(this).val();
|
1882 |
-
var p_regex = /^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/;
|
1883 |
-
|
1884 |
-
if(!p_regex.test(pnumber)){
|
1885 |
-
current.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>');
|
1886 |
-
}else{
|
1887 |
-
current.parent().find('.saswp-phone-validation').remove();
|
1888 |
-
}
|
1889 |
-
|
1890 |
-
});
|
1891 |
-
|
1892 |
-
});
|
1 |
+
var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[];function saswp_enable_rating_review(){var e="";jQuery("select#schema_type option:selected").val()&&(e=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(e=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),e&&jQuery(".saswp-enable-rating-review-"+e.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+e.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+e.toLowerCase()).hide()}).change()}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 saswpCustomSelect2(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||jQuery(".saswp-custom-fields-select2").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 saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswpAddTimepicker(){jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(e){e.preventDefault();var s="";if(jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===s){var a=jQuery(this),t=jQuery(this).val(),i=saswp_localize_data.post_id,o=jQuery(a).attr("data-id"),p=jQuery(a).attr("post-specific");jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_id:o,post_specific:p,item:t,post_id:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){jQuery(a).parent().parent().nextAll().remove(".saswp-review-tr"),jQuery(a).parent().parent().after(e)})}}).change()}function saswp_compatibliy_notes(e,s){var a=s.replace("-checkbox",""),t=jQuery("#"+a).next("p").text();e.is(":checked")&&""!==t?jQuery("#"+a).next("p").removeClass("saswp_hide"):1==jQuery("#"+a).next("p").attr("data-id")?jQuery("#"+a).next("p").text("This feature is only available in pro version"):jQuery("#"+a).next("p").addClass("saswp_hide")}function saswp_meta_list_html(e,s,a,t,i,o){var p=t;null==p&&(p=Object.keys(a)[0]);var n="";if(n+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+p+']">',jQuery.each(s,function(e,s){n+='<optgroup label="'+s.label+'">',jQuery.each(s["meta-list"],function(e,s){n+='<option value="'+e+'">'+s+"</option>"}),n+="</optgroup>"}),n+="</select>",a){var c="<tr>";c+="<td>",c+='<select class="saswp-custom-fields-name">',jQuery.each(a,function(e,s){c+='<option value="'+e+'">'+s+"</option>"}),c+="</select>",c+="</td>",c+="<td>",c+=n,c+="</td>",c+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',c+="</tr>",jQuery(".saswp-custom-fields-table").append(c),null!=e&&e.removeClass("updating-message")}else jQuery(i).html(n),null!=e&&e.removeClass("updating-message")}function saswp_get_meta_list(e,s,a,t,i,o){saswp_meta_list[s]?saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,o):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(p){saswp_meta_list[s]=p[s],saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,o)},"json")}function saswp_get_post_specific_schema_fields(e,s,a,t,i,o){if(saswp_meta_fields[o]){var p=saswp_fields_html_generator(s,i,o,t,saswp_meta_fields[o]);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),e.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[o]=a,console.log(saswp_meta_fields);var p=saswp_fields_html_generator(s,i,o,t,a);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),e.removeClass("updating-message"))},"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">',jQuery.each(i,function(t,i){var p="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(p="saswp-datepicker-picker"),i.type){case"number":case"text":o+="<tr><th>"+i.label+'</th><td><input class="'+p+'" style="width:100%" type="'+i.type+'" 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 n="";jQuery.each(i.options,function(e,s){n+='<option value="'+e+'">'+s+"</option>"}),o+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']">'+n+"</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(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-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(),p=e("#reviews_addon_license_key").val(),n=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&&(p||o)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:n,reviews_api:p,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"),""==p&&alert("Please enter reviews api key"),s.removeClass("updating-message"))}),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/z7t4b8" data-id="258182" data-code="z7t4b8" 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_pointer",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_pointer",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()}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)),"Event"==s&&(e(".saswp-event-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),saswp_item_reviewed_call()),saswp_enable_rating_review()}),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)),"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-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review()}).change(),e(".saswp-checkbox").change(function(){var s=e(this).attr("id"),a=e(this);switch(s){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(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":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-seo-press").val(1):e("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-aiosp").val(1):e("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-smart-crawl").val(1):e("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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-yelp-enable-checkbox":e(this).is(":checked")?(e("#saswp-yelp-enable").val(1),e("#sd_yelp").show()):(e("#saswp-yelp-enable").val(0),e("#sd_yelp").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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-woocommerce").val(1):e("#saswp-woocommerce").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-extra").val(1):e("#saswp-extra").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-yoast").val(1):e("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-rankmath").val(1):e("#saswp-rankmath").val(0);break;case"saswp-tagyeem-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-tagyeem").val(1):e("#saswp-tagyeem").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-the-events-calendar").val(1):e("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-homeland").val(1):e("#saswp-homeland").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-realhomes").val(1):e("#saswp-realhomes").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-cooked").val(1):e("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(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":saswp_compatibliy_notes(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":saswp_compatibliy_notes(a,s),e(this).is(":checked")?e("#saswp-wppostratings-raring").val(1):e("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(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")}),saswp_item_reviewed_call(),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"),saswpAddTimepicker(),saswp_schema_datepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),saswp_schema_datepicker(),saswp_reviews_datepicker(),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"),saswp_enable_rating_review()}),e("#saswp-global-tabs a:first").addClass("saswp-global-selected"),e(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?e(".saswp-global-container:eq(2)").show():e(".saswp-global-container:first").show(),e("#saswp-global-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-global-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-global-container").hide(),e("#"+s).show())}),e("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e(".saswp-tools-container:first").show(),e("#saswp-tools-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-tools-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e("#"+s).show())}),e("#saswp-review-tabs a:first").addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e(".saswp-review-container:first").show(),e("#saswp-review-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-review-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e("#"+s).show())}),e('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),e("#saswp_enable_custom_field").change(function(){e(this).is(":checked")?e(".saswp-custom-fields-div").show():e(".saswp-custom-fields-div").hide()}),e(document).on("change",".saswp-custom-fields-name",function(){var s="text",a=e(this).parent().parent("tr"),t=e(this).val();-1==t.indexOf("image")&&-1==t.indexOf("logo")||(s="image"),saswp_get_meta_list(null,s,null,e(this).parent().parent("tr").find("td:eq(1)"),t,a)}),e(document).on("click",".saswp-skip-button",function(s){s.preventDefault(),e(this).parent().parent().hide(),e.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){},"json")}),e(document).on("click",".saswp_add_schema_fields_on_fly",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id"),i=e(this).attr("fields_type"),o=e(this).attr("div_type"),p=e(".saswp-"+o+"-table-div").length,n=e(".saswp-"+o+"-table-div:nth-child("+p+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,o,t,i+"_")}),e(document).on("click",".saswp-table-close",function(){e(this).parent().remove()}),e(document).on("click",".saswp-rmv-modify_row",function(s){s.preventDefault(),e(this).parent().parent().remove()}),e(document).on("change",".saswp-custom-meta-list",function(){var s=e("select#schema_type option:selected").val(),a=e(this).val(),t=e(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),i="",o=s.toLowerCase()+"_"+t,p="saswp_fixed_image["+t+"]";"manual_text"==a?(i+='<td><input type="text" name="saswp_fixed_text['+t+']"></td>',i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"custom_field"==a?(i+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+t+']">',i+="</select></td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"fixed_image"==a?(i+="<td>",i+="<fieldset>",i+='<input data-id="media" style="width: 30%;" class="button" id="'+o+'_button" name="'+o+'_button" type="button" value="Upload" />',i+='<input type="hidden" data-id="'+o+'_height" class="upload-height" name="'+p+'[height]" id="'+o+'_height" value="">',i+='<input type="hidden" data-id="'+o+'_width" class="upload-width" name="'+p+'[width]" id="'+o+'_width" value="">',i+='<input type="hidden" data-id="'+o+'_thumbnail" class="upload-thumbnail" name="'+p+'[thumbnail]" id="'+o+'_thumbnail" value="">',i+='<div class="saswp_image_div_'+o+'">',i+="</div>",i+="</fieldset>",i+="</td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):(i+="<td></td>",i+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'),e(this).parent().parent("tr").find("td:gt(1)").remove(),e(this).parent().parent("tr").append(i),saswpCustomSelect2()}),e(document).on("change",".saswp-item-reivewed-list",function(){e(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[]}),e(document).on("click",".saswp-add-custom-fields",function(){var s=e(this);s.addClass("updating-message");var a=e("select#schema_type option:selected").val(),t="";"Review"==a&&(t=e("select.saswp-item-reivewed-list option:selected").val());var i=e("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null):e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:i,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){saswp_meta_list_fields[a]=e,saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null)},error:function(e){console.log(e)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),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("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var s=e(this);s.parent().find(".saswp-phone-validation").remove();var a=e(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?s.parent().find(".saswp-phone-validation").remove():s.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')})});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
1648 |
}
|
1649 |
|
1650 |
}
|
1651 |
+
|
1652 |
+
add_action('wp_update_nav_menu', 'saswp_save_nav_menu_on_menu_update');
|
1653 |
+
|
1654 |
+
function saswp_save_nav_menu_on_menu_update(){
|
1655 |
+
|
1656 |
+
global $sd_data;
|
1657 |
+
$menu_id = null;
|
1658 |
+
|
1659 |
+
if(isset($sd_data['saswp_site_navigation_menu'])){
|
1660 |
+
$menu_id = $sd_data['saswp_site_navigation_menu'];
|
1661 |
+
}
|
1662 |
+
|
1663 |
+
saswp_save_nav_menu_in_transient($menu_id);
|
1664 |
+
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
add_action('update_option_sd_data', 'saswp_save_nav_menu_on_option_update',10, 3);
|
1668 |
+
|
1669 |
+
function saswp_save_nav_menu_on_option_update($old, $new, $opt_name){
|
1670 |
+
|
1671 |
+
$menu_id = null;
|
1672 |
+
|
1673 |
+
if(isset($new['saswp_site_navigation_menu'])){
|
1674 |
+
$menu_id = $new['saswp_site_navigation_menu'];
|
1675 |
+
}
|
1676 |
+
|
1677 |
+
saswp_save_nav_menu_in_transient($menu_id);
|
1678 |
+
|
1679 |
+
}
|
1680 |
+
|
1681 |
+
function saswp_save_nav_menu_in_transient($menu_id){
|
1682 |
+
|
1683 |
+
$menuItems = wp_get_nav_menu_items($menu_id);
|
1684 |
+
set_transient('saswp_nav_menu', $menuItems);
|
1685 |
+
|
1686 |
+
}
|
core/array-list/local-sub-business.php
CHANGED
@@ -3,7 +3,39 @@
|
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
return array(
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
'' => 'Select Sub Business Type ( optional )',
|
8 |
'autobodyshop' => 'Auto Body Shop',
|
9 |
'autodealer' => 'Auto Dealer',
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
return array(
|
6 |
+
'all_business_type' => array(
|
7 |
+
'' => 'Select Business Type (Optional)',
|
8 |
+
'animalshelter' => 'Animal Shelter',
|
9 |
+
'automotivebusiness' => 'Automotive Business',
|
10 |
+
'childcare' => 'ChildCare',
|
11 |
+
'dentist' => 'Dentist',
|
12 |
+
'drycleaningorlaundry' => 'Dry Cleaning Or Laundry',
|
13 |
+
'emergencyservice' => 'Emergency Service',
|
14 |
+
'employmentagency' => 'Employment Agency',
|
15 |
+
'entertainmentbusiness' => 'Entertainment Business',
|
16 |
+
'financialservice' => 'Financial Service',
|
17 |
+
'foodestablishment' => 'Food Establishment',
|
18 |
+
'governmentoffice' => 'Government Office',
|
19 |
+
'healthandbeautybusiness' => 'Health And Beauty Business',
|
20 |
+
'homeandconstructionbusiness' => 'Home And Construction Business',
|
21 |
+
'internetcafe' => 'Internet Cafe',
|
22 |
+
'legalservice' => 'Legal Service',
|
23 |
+
'library' => 'Library',
|
24 |
+
'lodgingbusiness' => 'Lodging Business',
|
25 |
+
'medicalbusiness' => 'Medical Business',
|
26 |
+
'professionalservice' => 'Professional Service',
|
27 |
+
'radiostation' => 'Radio Station',
|
28 |
+
'realestateagent' => 'Real Estate Agent',
|
29 |
+
'recyclingcenter' => 'Recycling Center',
|
30 |
+
'selfstorage' => 'Self Storage',
|
31 |
+
'shoppingcenter' => 'Shopping Center',
|
32 |
+
'sportsactivitylocation' => 'Sports Activity Location',
|
33 |
+
'store' => 'Store',
|
34 |
+
'televisionstation' => 'Television Station',
|
35 |
+
'touristinformationcenter' => 'Tourist Information Center',
|
36 |
+
'travelagency' => 'Travel Agency',
|
37 |
+
),
|
38 |
+
'automotivebusiness' => array(
|
39 |
'' => 'Select Sub Business Type ( optional )',
|
40 |
'autobodyshop' => 'Auto Body Shop',
|
41 |
'autodealer' => 'Auto Dealer',
|
modules/gutenberg/includes/class-gutenberg.php
CHANGED
@@ -149,10 +149,15 @@ class SASWP_Gutenberg {
|
|
149 |
echo '<div class="saswp-faq-block-section">';
|
150 |
if($attributes['items']){
|
151 |
|
|
|
|
|
|
|
|
|
|
|
152 |
if(!isset($attributes['toggleList'])){
|
153 |
-
echo '<ol>';
|
154 |
}else{
|
155 |
-
echo '<ul>';
|
156 |
}
|
157 |
|
158 |
foreach($attributes['items'] as $item){
|
@@ -198,9 +203,26 @@ class SASWP_Gutenberg {
|
|
198 |
|
199 |
if(isset($attributes['hasDuration'])){
|
200 |
echo '<p class="saswp-how-to-total-time">';
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
echo '</p>';
|
205 |
}
|
206 |
if(isset($attributes['description'])){
|
@@ -209,10 +231,15 @@ class SASWP_Gutenberg {
|
|
209 |
|
210 |
if(isset($attributes['items'])){
|
211 |
|
|
|
|
|
|
|
|
|
|
|
212 |
if(!isset($attributes['toggleList'])){
|
213 |
-
echo '<ol>';
|
214 |
}else{
|
215 |
-
echo '<ul>';
|
216 |
}
|
217 |
|
218 |
foreach($attributes['items'] as $item){
|
149 |
echo '<div class="saswp-faq-block-section">';
|
150 |
if($attributes['items']){
|
151 |
|
152 |
+
$className = '';
|
153 |
+
if(isset($attributes['className'])){
|
154 |
+
$className = 'class="'.esc_attr($attributes['className']).'"';
|
155 |
+
}
|
156 |
+
|
157 |
if(!isset($attributes['toggleList'])){
|
158 |
+
echo '<ol '.$className.'>';
|
159 |
}else{
|
160 |
+
echo '<ul '.$className.'>';
|
161 |
}
|
162 |
|
163 |
foreach($attributes['items'] as $item){
|
203 |
|
204 |
if(isset($attributes['hasDuration'])){
|
205 |
echo '<p class="saswp-how-to-total-time">';
|
206 |
+
|
207 |
+
$time_html = '';
|
208 |
+
|
209 |
+
if(isset($attributes['days']) && $attributes['days'] != ''){
|
210 |
+
$time_html .= esc_attr($attributes['days']).' days ';
|
211 |
+
}
|
212 |
+
|
213 |
+
if(isset($attributes['hours']) && $attributes['hours'] != ''){
|
214 |
+
$time_html .= esc_attr($attributes['hours']).' hours ';
|
215 |
+
}
|
216 |
+
|
217 |
+
if(isset($attributes['minutes']) && $attributes['minutes'] != ''){
|
218 |
+
$time_html .= esc_attr($attributes['minutes']).' minutes';
|
219 |
+
}
|
220 |
+
|
221 |
+
if($time_html !=''){
|
222 |
+
echo '<span class="saswp-how-to-duration-time-text"><strong>Time Needed :</strong> </span>';
|
223 |
+
echo $time_html;
|
224 |
+
}
|
225 |
+
|
226 |
echo '</p>';
|
227 |
}
|
228 |
if(isset($attributes['description'])){
|
231 |
|
232 |
if(isset($attributes['items'])){
|
233 |
|
234 |
+
$className = '';
|
235 |
+
if(isset($attributes['className'])){
|
236 |
+
$className = 'class="'.esc_attr($attributes['className']).'"';
|
237 |
+
}
|
238 |
+
|
239 |
if(!isset($attributes['toggleList'])){
|
240 |
+
echo '<ol '.$className.'>';
|
241 |
}else{
|
242 |
+
echo '<ul '.$className.'>';
|
243 |
}
|
244 |
|
245 |
foreach($attributes['items'] as $item){
|
output/function.php
CHANGED
@@ -189,8 +189,10 @@ function saswp_schema_markup_output() {
|
|
189 |
unset($soutput['@context']);
|
190 |
unset($schema_breadcrumb_output['@context']);
|
191 |
unset($webpage['mainEntity']);
|
192 |
-
unset($kb_schema_output['@context']);
|
193 |
unset($kb_website_output['@context']);
|
|
|
|
|
194 |
|
195 |
if($webpage){
|
196 |
|
@@ -202,10 +204,9 @@ function saswp_schema_markup_output() {
|
|
202 |
'@id' => saswp_get_permalink().'#primaryimage'
|
203 |
);
|
204 |
|
205 |
-
if($site_navigation){
|
206 |
-
unset($site_navigation['@context']);
|
207 |
-
$
|
208 |
-
$webpage['mainContentOfPage'] = array($site_navigation);
|
209 |
}
|
210 |
|
211 |
}
|
189 |
unset($soutput['@context']);
|
190 |
unset($schema_breadcrumb_output['@context']);
|
191 |
unset($webpage['mainEntity']);
|
192 |
+
unset($kb_schema_output['@context']);
|
193 |
unset($kb_website_output['@context']);
|
194 |
+
|
195 |
+
$kb_schema_output['@type'] = 'Organization';
|
196 |
|
197 |
if($webpage){
|
198 |
|
204 |
'@id' => saswp_get_permalink().'#primaryimage'
|
205 |
);
|
206 |
|
207 |
+
if(array_key_exists('@graph', $site_navigation)){
|
208 |
+
unset($site_navigation['@context']);
|
209 |
+
$webpage['mainContentOfPage'] = array($site_navigation['@graph']);
|
|
|
210 |
}
|
211 |
|
212 |
}
|
output/output.php
CHANGED
@@ -326,7 +326,20 @@ function saswp_schema_output() {
|
|
326 |
|
327 |
if( 'FAQ' === $schema_type){
|
328 |
|
329 |
-
$input1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
|
331 |
}
|
332 |
|
@@ -801,9 +814,12 @@ function saswp_schema_output() {
|
|
801 |
}else{
|
802 |
|
803 |
if ( isset($sd_data['saswp-the-events-calendar']) && $sd_data['saswp-the-events-calendar'] == 0 ) {
|
804 |
-
|
|
|
|
|
|
|
805 |
$input1['@context'] = saswp_context_url();
|
806 |
-
$input1['@type'] = $schema_type;
|
807 |
$input1['@id'] = trailingslashit(saswp_get_permalink()).'#event';
|
808 |
|
809 |
if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
|
@@ -1808,7 +1824,12 @@ function saswp_site_navigation_output(){
|
|
1808 |
if(isset($sd_data['saswp_site_navigation_menu'])){
|
1809 |
|
1810 |
$menu_id = $sd_data['saswp_site_navigation_menu'];
|
1811 |
-
$menuItems =
|
|
|
|
|
|
|
|
|
|
|
1812 |
$menu_name = wp_get_nav_menu_object($menu_id);
|
1813 |
|
1814 |
if($menuItems){
|
@@ -1819,7 +1840,7 @@ function saswp_site_navigation_output(){
|
|
1819 |
"@context" => saswp_context_url(),
|
1820 |
"@type" => "SiteNavigationElement",
|
1821 |
"@id" => trailingslashit(get_home_url()).'#'.$menu_name->name,
|
1822 |
-
"name" =>
|
1823 |
"url" => esc_url($items->url)
|
1824 |
);
|
1825 |
|
@@ -1895,8 +1916,7 @@ function saswp_gutenberg_how_to_schema(){
|
|
1895 |
}
|
1896 |
$input1['supply'] = $supply_arr;
|
1897 |
}
|
1898 |
-
|
1899 |
-
|
1900 |
$tool = array();
|
1901 |
$tool_arr = array();
|
1902 |
|
@@ -1976,8 +1996,13 @@ function saswp_gutenberg_how_to_schema(){
|
|
1976 |
|
1977 |
}
|
1978 |
|
1979 |
-
if(isset($parse_blocks['attrs']['days'])
|
1980 |
-
|
|
|
|
|
|
|
|
|
|
|
1981 |
}
|
1982 |
|
1983 |
}
|
326 |
|
327 |
if( 'FAQ' === $schema_type){
|
328 |
|
329 |
+
$input1['@context'] = saswp_context_url();
|
330 |
+
$input1['@type'] = 'FAQPage';
|
331 |
+
$input1['@id'] = trailingslashit(saswp_get_permalink()).'#FAQPage';
|
332 |
+
$input1['headline'] = saswp_get_the_title();
|
333 |
+
$input1['keywords'] = saswp_get_the_tags();
|
334 |
+
$input1['datePublished'] = esc_html($date);
|
335 |
+
$input1['dateModified'] = esc_html($modified_date);
|
336 |
+
$input1['dateCreated'] = esc_html($date);
|
337 |
+
$input1['author'] = saswp_get_author_details();
|
338 |
+
|
339 |
+
if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
|
340 |
+
$service = new saswp_output_service();
|
341 |
+
$input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
|
342 |
+
}
|
343 |
|
344 |
}
|
345 |
|
814 |
}else{
|
815 |
|
816 |
if ( isset($sd_data['saswp-the-events-calendar']) && $sd_data['saswp-the-events-calendar'] == 0 ) {
|
817 |
+
|
818 |
+
|
819 |
+
$event_type = get_post_meta($schema_post_id, 'saswp_event_type', true);
|
820 |
+
|
821 |
$input1['@context'] = saswp_context_url();
|
822 |
+
$input1['@type'] = $event_type ? $event_type : $schema_type;
|
823 |
$input1['@id'] = trailingslashit(saswp_get_permalink()).'#event';
|
824 |
|
825 |
if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
|
1824 |
if(isset($sd_data['saswp_site_navigation_menu'])){
|
1825 |
|
1826 |
$menu_id = $sd_data['saswp_site_navigation_menu'];
|
1827 |
+
$menuItems = get_transient('saswp_nav_menu');
|
1828 |
+
|
1829 |
+
if(!$menuItems){
|
1830 |
+
$menuItems = wp_get_nav_menu_items($menu_id);
|
1831 |
+
}
|
1832 |
+
|
1833 |
$menu_name = wp_get_nav_menu_object($menu_id);
|
1834 |
|
1835 |
if($menuItems){
|
1840 |
"@context" => saswp_context_url(),
|
1841 |
"@type" => "SiteNavigationElement",
|
1842 |
"@id" => trailingslashit(get_home_url()).'#'.$menu_name->name,
|
1843 |
+
"name" => wp_strip_all_tags($items->title),
|
1844 |
"url" => esc_url($items->url)
|
1845 |
);
|
1846 |
|
1916 |
}
|
1917 |
$input1['supply'] = $supply_arr;
|
1918 |
}
|
1919 |
+
|
|
|
1920 |
$tool = array();
|
1921 |
$tool_arr = array();
|
1922 |
|
1996 |
|
1997 |
}
|
1998 |
|
1999 |
+
if(isset($parse_blocks['attrs']['days']) || $parse_blocks['attrs']['hours'] || $parse_blocks['attrs']['minutes']){
|
2000 |
+
|
2001 |
+
$input1['totalTime'] = 'P'.
|
2002 |
+
((isset($parse_blocks['attrs']['days']) && $parse_blocks['attrs']['days'] !='') ? esc_attr($parse_blocks['attrs']['days']).'DT':'').
|
2003 |
+
((isset($parse_blocks['attrs']['hours']) && $parse_blocks['attrs']['hours'] !='') ? esc_attr($parse_blocks['attrs']['hours']).'H':'').
|
2004 |
+
((isset($parse_blocks['attrs']['minutes']) && $parse_blocks['attrs']['minutes'] !='') ? esc_attr($parse_blocks['attrs']['minutes']).'M':'');
|
2005 |
+
|
2006 |
}
|
2007 |
|
2008 |
}
|
output/output_post_specific.php
CHANGED
@@ -184,7 +184,18 @@ function saswp_post_specific_schema_output() {
|
|
184 |
|
185 |
$input1['@context'] = saswp_context_url();
|
186 |
$input1['@type'] = 'FAQPage';
|
187 |
-
$input1['@id'] = trailingslashit(get_permalink()).'#FAQPage';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
|
189 |
$faq_question = get_post_meta($schema_post_id, 'faq_question_'.$schema_id, true);
|
190 |
|
@@ -1137,7 +1148,7 @@ function saswp_post_specific_schema_output() {
|
|
1137 |
|
1138 |
$input1 = array(
|
1139 |
'@context' => saswp_context_url(),
|
1140 |
-
'@type' => 'Event' ,
|
1141 |
'@id' => trailingslashit(get_permalink()).'#event',
|
1142 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_name_'.$schema_id, 'saswp_array'),
|
1143 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_description_'.$schema_id, 'saswp_array'),
|
184 |
|
185 |
$input1['@context'] = saswp_context_url();
|
186 |
$input1['@type'] = 'FAQPage';
|
187 |
+
$input1['@id'] = trailingslashit(get_permalink()).'#FAQPage';
|
188 |
+
|
189 |
+
$input1['headline'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_headline_'.$schema_id, 'saswp_array');
|
190 |
+
$input1['keywords'] = saswp_remove_warnings($all_post_meta, 'saswp_faq_keywords_'.$schema_id, 'saswp_array');
|
191 |
+
$input1['datePublished'] = isset($all_post_meta['saswp_faq_date_published_'.$schema_id][0])&& $all_post_meta['saswp_faq_date_published_'.$schema_id][0] !='' ? date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_faq_date_published_'.$schema_id][0])):'';
|
192 |
+
$input1['dateModified'] = isset($all_post_meta['saswp_faq_date_modified_'.$schema_id][0])&& $all_post_meta['saswp_faq_date_modified_'.$schema_id][0] !='' ? date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_faq_date_modified_'.$schema_id][0])):'';
|
193 |
+
$input1['dateCreated'] = isset($all_post_meta['saswp_faq_date_created_'.$schema_id][0])&& $all_post_meta['saswp_faq_date_created_'.$schema_id][0] !='' ? date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_faq_date_created_'.$schema_id][0])):'';
|
194 |
+
|
195 |
+
if(isset($all_post_meta['saswp_faq_author_'.$schema_id][0])){
|
196 |
+
$input1['author']['@type'] = 'Person';
|
197 |
+
$input1['author']['name'] = $all_post_meta['saswp_faq_author_'.$schema_id][0];
|
198 |
+
}
|
199 |
|
200 |
$faq_question = get_post_meta($schema_post_id, 'faq_question_'.$schema_id, true);
|
201 |
|
1148 |
|
1149 |
$input1 = array(
|
1150 |
'@context' => saswp_context_url(),
|
1151 |
+
'@type' => (isset($all_post_meta['saswp_event_schema_type_'.$schema_id][0]) && $all_post_meta['saswp_event_schema_type_'.$schema_id][0] !='') ? $all_post_meta['saswp_event_schema_type_'.$schema_id][0] : 'Event' ,
|
1152 |
'@id' => trailingslashit(get_permalink()).'#event',
|
1153 |
'name' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_name_'.$schema_id, 'saswp_array'),
|
1154 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_event_schema_description_'.$schema_id, 'saswp_array'),
|
output/service.php
CHANGED
@@ -11,25 +11,7 @@
|
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
12 |
|
13 |
Class saswp_output_service{
|
14 |
-
|
15 |
-
/**
|
16 |
-
* private variable to hold mata list
|
17 |
-
* @var type
|
18 |
-
*/
|
19 |
-
private $_meta_list = null;
|
20 |
-
|
21 |
-
public function __construct() {
|
22 |
|
23 |
-
if($this->_meta_list == null){
|
24 |
-
|
25 |
-
$mappings_file = SASWP_DIR_NAME . '/core/array-list/meta_list.php';
|
26 |
-
|
27 |
-
if ( file_exists( $mappings_file ) ) {
|
28 |
-
$this->_meta_list = include $mappings_file;
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
}
|
33 |
/**
|
34 |
* List of hooks used in current class
|
35 |
*/
|
@@ -1302,7 +1284,27 @@ Class saswp_output_service{
|
|
1302 |
|
1303 |
break;
|
1304 |
|
1305 |
-
case 'FAQ':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1306 |
|
1307 |
break;
|
1308 |
|
@@ -2498,7 +2500,14 @@ Class saswp_output_service{
|
|
2498 |
|
2499 |
case 'FAQ':
|
2500 |
|
2501 |
-
$meta_field = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2502 |
|
2503 |
break;
|
2504 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
12 |
|
13 |
Class saswp_output_service{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* List of hooks used in current class
|
17 |
*/
|
1284 |
|
1285 |
break;
|
1286 |
|
1287 |
+
case 'FAQ':
|
1288 |
+
|
1289 |
+
if(isset($custom_fields['saswp_faq_headline'])){
|
1290 |
+
$input1['headline'] = $custom_fields['saswp_faq_headline'];
|
1291 |
+
}
|
1292 |
+
if(isset($custom_fields['saswp_faq_keywords'])){
|
1293 |
+
$input1['keywords'] = $custom_fields['saswp_faq_keywords'];
|
1294 |
+
}
|
1295 |
+
if(isset($custom_fields['saswp_faq_date_created'])){
|
1296 |
+
$input1['datePublished'] = $custom_fields['saswp_faq_date_created'];
|
1297 |
+
}
|
1298 |
+
if(isset($custom_fields['saswp_faq_date_published'])){
|
1299 |
+
$input1['dateModified'] = $custom_fields['saswp_faq_date_published'];
|
1300 |
+
}
|
1301 |
+
if(isset($custom_fields['saswp_faq_date_modified'])){
|
1302 |
+
$input1['dateCreated'] = $custom_fields['saswp_faq_date_modified'];
|
1303 |
+
}
|
1304 |
+
if(isset($custom_fields['saswp_faq_author'])){
|
1305 |
+
$input1['author']['@type'] = 'Person';
|
1306 |
+
$input1['author']['name'] = $custom_fields['saswp_faq_author'];
|
1307 |
+
}
|
1308 |
|
1309 |
break;
|
1310 |
|
2500 |
|
2501 |
case 'FAQ':
|
2502 |
|
2503 |
+
$meta_field = array(
|
2504 |
+
'saswp_faq_headline' => 'Headline',
|
2505 |
+
'saswp_faq_keywords' => 'Tags',
|
2506 |
+
'saswp_faq_author' => 'Author',
|
2507 |
+
'saswp_faq_date_created' => 'DateCreated',
|
2508 |
+
'saswp_faq_date_published' => 'DatePublished',
|
2509 |
+
'saswp_faq_date_modified' => 'DateModified',
|
2510 |
+
);
|
2511 |
|
2512 |
break;
|
2513 |
|
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 |
|
@@ -43,8 +43,10 @@ Schema & Structured Data for WP & AMP adds Google Rich Snippets markup according
|
|
43 |
* SingleFamilyResidence
|
44 |
* Article
|
45 |
* Blogposting
|
|
|
46 |
* Course
|
47 |
-
* DiscussionForumPosting
|
|
|
48 |
* HowTo
|
49 |
* NewsArticle
|
50 |
* QAPage
|
@@ -62,6 +64,8 @@ Schema & Structured Data for WP & AMP adds Google Rich Snippets markup according
|
|
62 |
* AudioObject
|
63 |
* VideoObject
|
64 |
* MedicalCondition
|
|
|
|
|
65 |
* LocalBusiness with all the sub categories
|
66 |
* Product
|
67 |
* TouristAttraction
|
@@ -114,6 +118,16 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 1.9.10 (3 Oct 2019) =
|
118 |
|
119 |
* Added: Field to enter Yelp link to Knowledge Graph Social Fields section #517
|
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.11
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
43 |
* SingleFamilyResidence
|
44 |
* Article
|
45 |
* Blogposting
|
46 |
+
* Book
|
47 |
* Course
|
48 |
+
* DiscussionForumPosting,
|
49 |
+
* DataFeed
|
50 |
* HowTo
|
51 |
* NewsArticle
|
52 |
* QAPage
|
64 |
* AudioObject
|
65 |
* VideoObject
|
66 |
* MedicalCondition
|
67 |
+
* MusicPlaylist
|
68 |
+
* MusicAlbum
|
69 |
* LocalBusiness with all the sub categories
|
70 |
* Product
|
71 |
* TouristAttraction
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 1.9.11 (5 Oct 2019) =
|
122 |
+
|
123 |
+
* Added: Add support for Event Subcategory schema #418
|
124 |
+
* Fixed: Additional CSS not working on FAQ blocks #529
|
125 |
+
* Fixed: HowTo Block time is not being added in json markup when days and hours are empty #531
|
126 |
+
* Fixed: Improved the db query #493
|
127 |
+
* Fixed: Error and performance issues #497
|
128 |
+
* Fixed: Review Link is not working properly #510
|
129 |
+
* Fixed: Bug in defragmented schema ( Corporation being invalid for Publisher ) #505
|
130 |
+
|
131 |
= 1.9.10 (3 Oct 2019) =
|
132 |
|
133 |
* Added: Field to enter Yelp link to Knowledge Graph Social Fields section #517
|
reviews/reviews_service.php
CHANGED
@@ -136,7 +136,7 @@ class saswp_reviews_service {
|
|
136 |
'.$starating.'
|
137 |
</div>
|
138 |
<span class="saswp-g-plus">
|
139 |
-
<a href="
|
140 |
</span>
|
141 |
</div>
|
142 |
<p>'.substr($review['saswp_review_text'],0,300).'</p>
|
136 |
'.$starating.'
|
137 |
</div>
|
138 |
<span class="saswp-g-plus">
|
139 |
+
<a target="_blank" href="'.esc_attr($review['saswp_review_link']).'"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term_slug).'-img.png'.'"></a>
|
140 |
</span>
|
141 |
</div>
|
142 |
<p>'.substr($review['saswp_review_text'],0,300).'</p>
|
reviews/reviews_setup.php
CHANGED
@@ -227,7 +227,7 @@ add_action( 'admin_enqueue_scripts', 'saswp_enqueue_rateyo_script' );
|
|
227 |
|
228 |
|
229 |
|
230 |
-
add_action( '
|
231 |
|
232 |
|
233 |
function saswp_create_platform_custom_taxonomy() {
|
@@ -262,14 +262,14 @@ function saswp_create_platform_custom_taxonomy() {
|
|
262 |
$term_array = array(
|
263 |
'Agoda',
|
264 |
'Avvo',
|
|
|
265 |
'Expedia',
|
266 |
'Facebook',
|
267 |
'Google',
|
268 |
'TripAdvisor',
|
269 |
'Yelp',
|
270 |
'Zillow',
|
271 |
-
'Zomato',
|
272 |
-
'Tier',
|
273 |
'Airbnb',
|
274 |
'AliExpress',
|
275 |
'AlternativeTo',
|
@@ -306,7 +306,8 @@ function saswp_create_platform_custom_taxonomy() {
|
|
306 |
'Newegg',
|
307 |
'OpenRice',
|
308 |
'Opentable',
|
309 |
-
'ProductHunt',
|
|
|
310 |
'RateMDs',
|
311 |
'ReserveOut',
|
312 |
'Sitejabber',
|
227 |
|
228 |
|
229 |
|
230 |
+
add_action( 'admin_init', 'saswp_create_platform_custom_taxonomy', 21 );
|
231 |
|
232 |
|
233 |
function saswp_create_platform_custom_taxonomy() {
|
262 |
$term_array = array(
|
263 |
'Agoda',
|
264 |
'Avvo',
|
265 |
+
'Angies List',
|
266 |
'Expedia',
|
267 |
'Facebook',
|
268 |
'Google',
|
269 |
'TripAdvisor',
|
270 |
'Yelp',
|
271 |
'Zillow',
|
272 |
+
'Zomato',
|
|
|
273 |
'Airbnb',
|
274 |
'AliExpress',
|
275 |
'AlternativeTo',
|
306 |
'Newegg',
|
307 |
'OpenRice',
|
308 |
'Opentable',
|
309 |
+
'ProductHunt',
|
310 |
+
'Playstore',
|
311 |
'RateMDs',
|
312 |
'ReserveOut',
|
313 |
'Sitejabber',
|
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__));
|
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.11
|
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.11');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
view/post_specific.php
CHANGED
@@ -267,7 +267,7 @@ class saswp_post_specific {
|
|
267 |
),
|
268 |
'apartment_amenities' => array(
|
269 |
array(
|
270 |
-
'label' => '
|
271 |
'name' => 'saswp_apartment_amenities_name',
|
272 |
'type' => 'text',
|
273 |
)
|
@@ -1189,12 +1189,14 @@ class saswp_post_specific {
|
|
1189 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1190 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1191 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1192 |
-
|| strpos($meta_field['id'], '
|
1193 |
-
|| strpos($meta_field['id'], '
|
1194 |
-
|| strpos($meta_field['id'], '
|
1195 |
|| strpos($meta_field['id'], 'dateposted') !== false
|
1196 |
|| strpos($meta_field['id'], 'validthrough') !== false
|
1197 |
|| strpos($meta_field['id'], 'date_of_birth') !== false
|
|
|
|
|
1198 |
) {
|
1199 |
$class='saswp-datepicker-picker';
|
1200 |
}
|
@@ -1482,37 +1484,7 @@ class saswp_post_specific {
|
|
1482 |
'id' => 'saswp_business_type_'.$schema_id,
|
1483 |
'type' => 'select',
|
1484 |
'default' => $business_type,
|
1485 |
-
'options' =>
|
1486 |
-
'' => 'Select Business Type (Optional)',
|
1487 |
-
'animalshelter' => 'Animal Shelter',
|
1488 |
-
'automotivebusiness' => 'Automotive Business',
|
1489 |
-
'childcare' => 'ChildCare',
|
1490 |
-
'dentist' => 'Dentist',
|
1491 |
-
'drycleaningorlaundry' => 'Dry Cleaning Or Laundry',
|
1492 |
-
'emergencyservice' => 'Emergency Service',
|
1493 |
-
'employmentagency' => 'Employment Agency',
|
1494 |
-
'entertainmentbusiness' => 'Entertainment Business',
|
1495 |
-
'financialservice' => 'Financial Service',
|
1496 |
-
'foodestablishment' => 'Food Establishment',
|
1497 |
-
'governmentoffice' => 'Government Office',
|
1498 |
-
'healthandbeautybusiness' => 'Health And Beauty Business',
|
1499 |
-
'homeandconstructionbusiness' => 'Home And Construction Business',
|
1500 |
-
'internetcafe' => 'Internet Cafe',
|
1501 |
-
'legalservice' => 'Legal Service',
|
1502 |
-
'library' => 'Library',
|
1503 |
-
'lodgingbusiness' => 'Lodging Business',
|
1504 |
-
'professionalservice' => 'Professional Service',
|
1505 |
-
'radiostation' => 'Radio Station',
|
1506 |
-
'realestateagent' => 'Real Estate Agent',
|
1507 |
-
'recyclingcenter' => 'Recycling Center',
|
1508 |
-
'selfstorage' => 'Self Storage',
|
1509 |
-
'shoppingcenter' => 'Shopping Center',
|
1510 |
-
'sportsactivitylocation' => 'Sports Activity Location',
|
1511 |
-
'store' => 'Store',
|
1512 |
-
'televisionstation' => 'Television Station',
|
1513 |
-
'touristinformationcenter' => 'Tourist Information Center',
|
1514 |
-
'travelagency' => 'Travel Agency',
|
1515 |
-
)
|
1516 |
),
|
1517 |
$sub_business_options,
|
1518 |
array(
|
@@ -2059,6 +2031,34 @@ class saswp_post_specific {
|
|
2059 |
case 'Event':
|
2060 |
|
2061 |
$meta_field = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2062 |
array(
|
2063 |
'label' => 'Name',
|
2064 |
'id' => 'saswp_event_schema_name_'.$schema_id,
|
@@ -4241,7 +4241,38 @@ class saswp_post_specific {
|
|
4241 |
|
4242 |
case 'FAQ':
|
4243 |
|
4244 |
-
$meta_field = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4245 |
|
4246 |
break;
|
4247 |
|
267 |
),
|
268 |
'apartment_amenities' => array(
|
269 |
array(
|
270 |
+
'label' => 'Amenity Name',
|
271 |
'name' => 'saswp_apartment_amenities_name',
|
272 |
'type' => 'text',
|
273 |
)
|
1189 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1190 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1191 |
|| strpos($meta_field['id'], 'priceValidUntil') !== false
|
1192 |
+
|| strpos($meta_field['id'], 'start_date') !== false
|
1193 |
+
|| strpos($meta_field['id'], 'end_date') !== false
|
1194 |
+
|| strpos($meta_field['id'], 'validfrom') !== false
|
1195 |
|| strpos($meta_field['id'], 'dateposted') !== false
|
1196 |
|| strpos($meta_field['id'], 'validthrough') !== false
|
1197 |
|| strpos($meta_field['id'], 'date_of_birth') !== false
|
1198 |
+
|| strpos($meta_field['id'], 'date_created') !== false
|
1199 |
+
|| strpos($meta_field['id'], 'created_date') !== false
|
1200 |
) {
|
1201 |
$class='saswp-datepicker-picker';
|
1202 |
}
|
1484 |
'id' => 'saswp_business_type_'.$schema_id,
|
1485 |
'type' => 'select',
|
1486 |
'default' => $business_type,
|
1487 |
+
'options' => $this->_local_sub_business['all_business_type']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1488 |
),
|
1489 |
$sub_business_options,
|
1490 |
array(
|
2031 |
case 'Event':
|
2032 |
|
2033 |
$meta_field = array(
|
2034 |
+
array(
|
2035 |
+
'label' => 'Type',
|
2036 |
+
'id' => 'saswp_event_schema_type_'.$schema_id,
|
2037 |
+
'type' => 'select',
|
2038 |
+
'options' => array(
|
2039 |
+
'' => 'Select Type (Optional)',
|
2040 |
+
'BusinessEvent' => 'BusinessEvent',
|
2041 |
+
'ChildrensEvent' => 'ChildrensEvent',
|
2042 |
+
'ComedyEvent' => 'ComedyEvent',
|
2043 |
+
'CourseInstance' => 'CourseInstance',
|
2044 |
+
'DanceEvent' => 'DanceEvent',
|
2045 |
+
'DeliveryEvent' => 'DeliveryEvent',
|
2046 |
+
'EducationEvent' => 'EducationEvent',
|
2047 |
+
'EventSeries' => 'EventSeries',
|
2048 |
+
'ExhibitionEvent' => 'ExhibitionEvent',
|
2049 |
+
'Festival' => 'Festival',
|
2050 |
+
'FoodEvent' => 'FoodEvent',
|
2051 |
+
'LiteraryEvent' => 'LiteraryEvent',
|
2052 |
+
'MusicEvent' => 'MusicEvent',
|
2053 |
+
'PublicationEvent' => 'PublicationEvent',
|
2054 |
+
'SaleEvent' => 'SaleEvent',
|
2055 |
+
'ScreeningEvent' => 'ScreeningEvent',
|
2056 |
+
'SocialEvent' => 'SocialEvent',
|
2057 |
+
'SportsEvent' => 'SportsEvent',
|
2058 |
+
'TheaterEvent' => 'TheaterEvent',
|
2059 |
+
'VisualArtsEvent' => 'VisualArtsEvent'
|
2060 |
+
)
|
2061 |
+
),
|
2062 |
array(
|
2063 |
'label' => 'Name',
|
2064 |
'id' => 'saswp_event_schema_name_'.$schema_id,
|
4241 |
|
4242 |
case 'FAQ':
|
4243 |
|
4244 |
+
$meta_field = array(
|
4245 |
+
array(
|
4246 |
+
'label' => 'Headline',
|
4247 |
+
'id' => 'saswp_faq_headline_'.$schema_id,
|
4248 |
+
'type' => 'text'
|
4249 |
+
),
|
4250 |
+
array(
|
4251 |
+
'label' => 'Tags',
|
4252 |
+
'id' => 'saswp_faq_keywords_'.$schema_id,
|
4253 |
+
'type' => 'text'
|
4254 |
+
),
|
4255 |
+
array(
|
4256 |
+
'label' => 'Author',
|
4257 |
+
'id' => 'saswp_faq_author_'.$schema_id,
|
4258 |
+
'type' => 'text'
|
4259 |
+
),
|
4260 |
+
array(
|
4261 |
+
'label' => 'DateCreated',
|
4262 |
+
'id' => 'saswp_faq_date_created_'.$schema_id,
|
4263 |
+
'type' => 'text'
|
4264 |
+
),
|
4265 |
+
array(
|
4266 |
+
'label' => 'DatePublished',
|
4267 |
+
'id' => 'saswp_faq_date_published_'.$schema_id,
|
4268 |
+
'type' => 'text'
|
4269 |
+
),
|
4270 |
+
array(
|
4271 |
+
'label' => 'DateModified',
|
4272 |
+
'id' => 'saswp_faq_date_modified_'.$schema_id,
|
4273 |
+
'type' => 'text'
|
4274 |
+
)
|
4275 |
+
);
|
4276 |
|
4277 |
break;
|
4278 |
|
view/schema_type.php
CHANGED
@@ -686,6 +686,7 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
686 |
case 'Event':
|
687 |
|
688 |
$event_details = get_post_meta($post->ID, 'saswp_event_schema_details', true);
|
|
|
689 |
|
690 |
if($event_details){
|
691 |
|
@@ -758,39 +759,32 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
758 |
if ( file_exists( $mappings_sub_business ) ) {
|
759 |
$sub_business_arr = include $mappings_sub_business;
|
760 |
}
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
'shoppingcenter' => 'Shopping Center',
|
788 |
-
'sportsactivitylocation' => 'Sports Activity Location',
|
789 |
-
'store' => 'Store',
|
790 |
-
'televisionstation' => 'Television Station',
|
791 |
-
'touristinformationcenter' => 'Tourist Information Center',
|
792 |
-
'travelagency' => 'Travel Agency',
|
793 |
-
);
|
794 |
|
795 |
$all_medical_business_array = $sub_business_arr['medicalbusiness'];
|
796 |
$all_automotive_array = $sub_business_arr['automotivebusiness'];
|
@@ -850,7 +844,6 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
850 |
<select id="saswp_business_type" name="saswp_business_type">
|
851 |
<?php
|
852 |
|
853 |
-
|
854 |
foreach ($all_business_type as $key => $value) {
|
855 |
$sel = '';
|
856 |
if($business_type==$key){
|
@@ -862,6 +855,27 @@ function saswp_schema_type_meta_box_callback( $post) {
|
|
862 |
</select>
|
863 |
</td>
|
864 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
865 |
<tr class="saswp-automotivebusiness-tr" <?php if(!array_key_exists($business_name, $all_automotive_array)){ echo 'style="display:none;"';}else{ echo $style_business_name;} ?>>
|
866 |
<td><?php echo esc_html__('Sub Business Type', 'schema-and-structured-data-for-wp' ); ?></td>
|
867 |
<td>
|
@@ -1279,22 +1293,11 @@ function saswp_schema_type_add_meta_box_save( $post_id ) {
|
|
1279 |
|
1280 |
if ( ! isset( $_POST['saswp_schema_type_nonce'] ) || ! wp_verify_nonce( $_POST['saswp_schema_type_nonce'], 'saswp_schema_type_nonce' ) ) return;
|
1281 |
if ( ! current_user_can( 'edit_post', $post_id ) ) return;
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
if ( isset( $_POST['saswp_business_type'] ) ){
|
1288 |
-
update_post_meta( $post_id, 'saswp_business_type', esc_attr( $_POST['saswp_business_type'] ) );
|
1289 |
-
}else{
|
1290 |
-
update_post_meta( $post_id, 'saswp_business_type', '' );
|
1291 |
-
}
|
1292 |
-
|
1293 |
-
if ( isset( $_POST['saswp_business_name'] ) ){
|
1294 |
-
update_post_meta( $post_id, 'saswp_business_name', esc_attr( $_POST['saswp_business_name'] ) );
|
1295 |
-
}else{
|
1296 |
-
update_post_meta( $post_id, 'saswp_business_name', '' );
|
1297 |
-
}
|
1298 |
|
1299 |
$review_schema_details = array();
|
1300 |
$schema_type = sanitize_text_field($_POST['schema_type']);
|
686 |
case 'Event':
|
687 |
|
688 |
$event_details = get_post_meta($post->ID, 'saswp_event_schema_details', true);
|
689 |
+
$event_type = get_post_meta($post->ID, 'saswp_event_type', true);
|
690 |
|
691 |
if($event_details){
|
692 |
|
759 |
if ( file_exists( $mappings_sub_business ) ) {
|
760 |
$sub_business_arr = include $mappings_sub_business;
|
761 |
}
|
762 |
+
|
763 |
+
$event_type_list = array(
|
764 |
+
'' => 'Select Type (Optional)',
|
765 |
+
'BusinessEvent' => 'BusinessEvent',
|
766 |
+
'ChildrensEvent' => 'ChildrensEvent',
|
767 |
+
'ComedyEvent' => 'ComedyEvent',
|
768 |
+
'CourseInstance' => 'CourseInstance',
|
769 |
+
'DanceEvent' => 'DanceEvent',
|
770 |
+
'DeliveryEvent' => 'DeliveryEvent',
|
771 |
+
'EducationEvent' => 'EducationEvent',
|
772 |
+
'EventSeries' => 'EventSeries',
|
773 |
+
'ExhibitionEvent' => 'ExhibitionEvent',
|
774 |
+
'Festival' => 'Festival',
|
775 |
+
'FoodEvent' => 'FoodEvent',
|
776 |
+
'LiteraryEvent' => 'LiteraryEvent',
|
777 |
+
'MusicEvent' => 'MusicEvent',
|
778 |
+
'PublicationEvent' => 'PublicationEvent',
|
779 |
+
'SaleEvent' => 'SaleEvent',
|
780 |
+
'ScreeningEvent' => 'ScreeningEvent',
|
781 |
+
'SocialEvent' => 'SocialEvent',
|
782 |
+
'SportsEvent' => 'SportsEvent',
|
783 |
+
'TheaterEvent' => 'TheaterEvent',
|
784 |
+
'VisualArtsEvent' => 'VisualArtsEvent'
|
785 |
+
);
|
786 |
+
|
787 |
+
$all_business_type = $sub_business_arr['all_business_type'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
$all_medical_business_array = $sub_business_arr['medicalbusiness'];
|
790 |
$all_automotive_array = $sub_business_arr['automotivebusiness'];
|
844 |
<select id="saswp_business_type" name="saswp_business_type">
|
845 |
<?php
|
846 |
|
|
|
847 |
foreach ($all_business_type as $key => $value) {
|
848 |
$sel = '';
|
849 |
if($business_type==$key){
|
855 |
</select>
|
856 |
</td>
|
857 |
</tr>
|
858 |
+
|
859 |
+
<tr class="saswp-event-text-field-tr" <?php echo $style_business_type; ?>>
|
860 |
+
<td>
|
861 |
+
<?php echo esc_html__('Event Type', 'schema-and-structured-data-for-wp' ); ?>
|
862 |
+
</td>
|
863 |
+
<td>
|
864 |
+
<select id="saswp_event_type" name="saswp_event_type">
|
865 |
+
<?php
|
866 |
+
|
867 |
+
foreach ($event_type_list as $key => $value) {
|
868 |
+
$sel = '';
|
869 |
+
if($event_type==$key){
|
870 |
+
$sel = 'selected';
|
871 |
+
}
|
872 |
+
echo "<option value='".esc_attr($key)."' ".esc_attr($sel).">".esc_html__($value, 'schema-and-structured-data-for-wp' )."</option>";
|
873 |
+
}
|
874 |
+
?>
|
875 |
+
</select>
|
876 |
+
</td>
|
877 |
+
</tr>
|
878 |
+
|
879 |
<tr class="saswp-automotivebusiness-tr" <?php if(!array_key_exists($business_name, $all_automotive_array)){ echo 'style="display:none;"';}else{ echo $style_business_name;} ?>>
|
880 |
<td><?php echo esc_html__('Sub Business Type', 'schema-and-structured-data-for-wp' ); ?></td>
|
881 |
<td>
|
1293 |
|
1294 |
if ( ! isset( $_POST['saswp_schema_type_nonce'] ) || ! wp_verify_nonce( $_POST['saswp_schema_type_nonce'], 'saswp_schema_type_nonce' ) ) return;
|
1295 |
if ( ! current_user_can( 'edit_post', $post_id ) ) return;
|
1296 |
+
|
1297 |
+
update_post_meta( $post_id, 'schema_type', sanitize_text_field( $_POST['schema_type'] ) );
|
1298 |
+
update_post_meta( $post_id, 'saswp_business_type', sanitize_text_field( $_POST['saswp_business_type'] ) );
|
1299 |
+
update_post_meta( $post_id, 'saswp_event_type', sanitize_text_field( $_POST['saswp_event_type'] ) );
|
1300 |
+
update_post_meta( $post_id, 'saswp_business_name', sanitize_text_field( $_POST['saswp_business_name'] ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1301 |
|
1302 |
$review_schema_details = array();
|
1303 |
$schema_type = sanitize_text_field($_POST['schema_type']);
|