Schema & Structured Data for WP & AMP - Version 1.9.8

Version Description

(25 Sept 2019) =

  • Added: The Supply and Tool for the How To Schema of Gutenberg #500
  • Added: MusicPlaylist Schema Type #488
  • Added: MusicAlbum Schema Type #488
  • Added: Book Schema Type #488
  • Added: RTL support (To fit the design with other language which start with right to left) #491
  • Enhancement: In product schema add the description to the Short+Long description #477
  • Bug Fixed: Added core jquery dependencies whereever js is being enqued #494
  • Bug Fixed: Image size smaller than recommended size #485
  • Bug Fixed: Modify Schema issue #498
  • Bug Fixed: Previously set schema markups "stick" on the website by default. #475
  • Bug Fixed: Review CSS are not loading based on condition #492
  • Bug Fixed: Update the Reviews markup as per the new Google Update #484
  • Bug Fixed: Google reviews not appearing properly on website (Design improvements) #387
  • Bug Fixed: Review schema and webpage given an error "Thing is not a known valid target type for the itemReviewed property." #488
  • Bug Fixed: Featured image should be placed first in schema markup before the other images present in the content #496
Download this release

Release Info

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

Code changes from version 1.9.7 to 1.9.8

admin_section/add-schema/add_new.php CHANGED
@@ -98,15 +98,15 @@ $saswp_add_data_type_config = array(
98
  wp_enqueue_media ();
99
 
100
  // Enqueue styles.
101
- wp_enqueue_style( 'saswp-timepicker-js', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/css/jquery.timepicker.css' , array( 'wp-admin' ), '0.1');
102
  // Enqueue javascript.
103
- wp_enqueue_script( 'saswp-timepicker-css', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/jquery.timepicker.js' , array( 'jquery-core' ), '0.1' );
104
 
105
 
106
  // Enqueue styles.
107
- wp_enqueue_style( 'saswp_add_new', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/css/saswp-add-new.min.css' , array( 'wp-admin' ), '0.1');
108
  // Enqueue javascript.
109
- wp_enqueue_script( 'saswp_add_new', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/saswp-add-new.min.js' , array( 'jquery-core' ), '0.1' );
110
 
111
  //Enque datepicker
112
  wp_enqueue_script( 'jquery-ui-datepicker' );
@@ -114,7 +114,7 @@ $saswp_add_data_type_config = array(
114
  wp_enqueue_style( 'jquery-ui' );
115
 
116
 
117
- wp_enqueue_script( 'structure_admin', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/structure_admin.min.js' , array( 'jquery' ), '0.1' );
118
 
119
  wp_localize_script( 'structure_admin', 'saswp_app_object', array(
120
  'ajax_url' => admin_url( 'admin-ajax.php' ),
98
  wp_enqueue_media ();
99
 
100
  // Enqueue styles.
101
+ wp_enqueue_style( 'saswp-timepicker-js', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/css/jquery.timepicker.css' , array( 'wp-admin' ), SASWP_VERSION);
102
  // Enqueue javascript.
103
+ wp_enqueue_script( 'saswp-timepicker-css', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/jquery.timepicker.js' , array( 'jquery', 'jquery-core', 'jquery-ui-core' ), SASWP_VERSION );
104
 
105
 
106
  // Enqueue styles.
107
+ wp_enqueue_style( 'saswp_add_new', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/css/saswp-add-new.min.css' , array( 'wp-admin' ), SASWP_VERSION);
108
  // Enqueue javascript.
109
+ wp_enqueue_script( 'saswp_add_new', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/saswp-add-new.min.js' , array( 'jquery', 'jquery-core', 'jquery-ui-core' ), SASWP_VERSION );
110
 
111
  //Enque datepicker
112
  wp_enqueue_script( 'jquery-ui-datepicker' );
114
  wp_enqueue_style( 'jquery-ui' );
115
 
116
 
117
+ wp_enqueue_script( 'structure_admin', SASWP_PLUGIN_URL. $saswp_add_data_type_config['installer_dir']. '/js/structure_admin.min.js' , array( 'jquery', 'jquery-ui-core' ), SASWP_VERSION );
118
 
119
  wp_localize_script( 'structure_admin', 'saswp_app_object', array(
120
  'ajax_url' => admin_url( 'admin-ajax.php' ),
admin_section/common-function.php CHANGED
@@ -27,6 +27,8 @@ if ( ! defined('ABSPATH') ) exit;
27
  'translation-cons' => 'Cons',
28
  'translation-review-overview' => 'Review Overview',
29
  'translation-overall-score' => 'Overall Score',
 
 
30
  );
31
  //global variable to store List of labels ends here
32
 
@@ -1905,10 +1907,8 @@ if ( ! defined('ABSPATH') ) exit;
1905
 
1906
  <?php
1907
  }
1908
-
1909
- if((has_shortcode( @get_the_content(), 'saswp_google_review') || is_active_widget( false, false, 'saswp_google_review_widget',true )) &&
1910
- ((isset($sd_data['saswp-google-review']) && $sd_data['saswp-google-review'] == 1) || (isset($sd_data['saswp-shopper-approved-review']) && $sd_data['saswp-shopper-approved-review'] == 1))
1911
- ){
1912
  ?>
1913
 
1914
  /*** Review Design CSS ****/
@@ -2027,8 +2027,25 @@ if ( ! defined('ABSPATH') ) exit;
2027
  background-repeat: no-repeat;
2028
  background-image: url(<?php echo esc_url(SASWP_DIR_URI.'/admin_section/images/blank_star.png'); ?>);
2029
  }
2030
-
2031
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2032
  <?php
2033
  }
2034
 
@@ -2120,7 +2137,9 @@ if ( ! defined('ABSPATH') ) exit;
2120
 
2121
  global $post;
2122
  global $sd_data;
 
2123
  $excerpt = '';
 
2124
  if(is_object($post)){
2125
 
2126
  $excerpt = $post->post_excerpt;
@@ -2145,9 +2164,7 @@ if ( ! defined('ABSPATH') ) exit;
2145
  }
2146
 
2147
  $excerpt = wp_strip_all_tags(strip_shortcodes($excerpt));
2148
-
2149
- }
2150
-
2151
  if(saswp_remove_warnings($sd_data, 'saswp-yoast', 'saswp_string') == 1){
2152
 
2153
  $yoast_meta_des = saswp_convert_yoast_metafields($post->ID, 'metadesc');
@@ -2179,7 +2196,7 @@ if ( ! defined('ABSPATH') ) exit;
2179
  //All in one Seo pack
2180
  if(saswp_remove_warnings($sd_data, 'saswp-aiosp', 'saswp_string') == 1){
2181
 
2182
- global $aiosp, $post;
2183
 
2184
  if(is_object($aiosp)){
2185
 
@@ -2231,7 +2248,8 @@ if ( ! defined('ABSPATH') ) exit;
2231
  }
2232
 
2233
  }
2234
-
 
2235
  return $excerpt;
2236
  }
2237
  /**
@@ -2266,7 +2284,8 @@ if ( ! defined('ABSPATH') ) exit;
2266
  global $post;
2267
  global $sd_data;
2268
 
2269
- $title = @get_the_title();
 
2270
 
2271
  //SEOPress
2272
  if(saswp_remove_warnings($sd_data, 'saswp-squirrly-seo', 'saswp_string') == 1 && class_exists('SQ_Models_Abstract_Seo')){
@@ -2514,6 +2533,7 @@ function saswp_check_plugin_active_status($pname){
2514
  'free' => 'wp-recipe-maker/wp-recipe-maker.php',
2515
  ),
2516
 
 
2517
  );
2518
 
2519
  if(array_key_exists('free', $pnamelist[$pname])){
27
  'translation-cons' => 'Cons',
28
  'translation-review-overview' => 'Review Overview',
29
  'translation-overall-score' => 'Overall Score',
30
+ 'translation-tools' => 'Tools',
31
+ 'translation-materials' => 'Materials',
32
  );
33
  //global variable to store List of labels ends here
34
 
1907
 
1908
  <?php
1909
  }
1910
+
1911
+ if((has_shortcode( @get_the_content(), 'saswp-reviews')) || is_active_widget( false, false, 'saswp_google_review_widget',true ) || (isset($sd_data['saswp-review-module']) && $sd_data['saswp-review-module'] == 1) ){
 
 
1912
  ?>
1913
 
1914
  /*** Review Design CSS ****/
2027
  background-repeat: no-repeat;
2028
  background-image: url(<?php echo esc_url(SASWP_DIR_URI.'/admin_section/images/blank_star.png'); ?>);
2029
  }
2030
+
2031
+ @media(max-width:767px){
2032
+ .saswp-glg-review-body {
2033
+ grid-template-columns: 50px 1fr;
2034
+ }
2035
+ .saswp-rv-img img{
2036
+ max-width:50px;
2037
+ }
2038
+ }
2039
+ .widget .saswp-glg-review-body{
2040
+ display: inline-block;
2041
+ width: 100%;
2042
+ }
2043
+ .widget .saswp-rv-img{
2044
+ margin-bottom:12px;
2045
+ }
2046
+ .widget .saswp-rv-img img {
2047
+ max-width: 50px;
2048
+ }
2049
  <?php
2050
  }
2051
 
2137
 
2138
  global $post;
2139
  global $sd_data;
2140
+
2141
  $excerpt = '';
2142
+
2143
  if(is_object($post)){
2144
 
2145
  $excerpt = $post->post_excerpt;
2164
  }
2165
 
2166
  $excerpt = wp_strip_all_tags(strip_shortcodes($excerpt));
2167
+
 
 
2168
  if(saswp_remove_warnings($sd_data, 'saswp-yoast', 'saswp_string') == 1){
2169
 
2170
  $yoast_meta_des = saswp_convert_yoast_metafields($post->ID, 'metadesc');
2196
  //All in one Seo pack
2197
  if(saswp_remove_warnings($sd_data, 'saswp-aiosp', 'saswp_string') == 1){
2198
 
2199
+ global $aiosp;
2200
 
2201
  if(is_object($aiosp)){
2202
 
2248
  }
2249
 
2250
  }
2251
+
2252
+ }
2253
  return $excerpt;
2254
  }
2255
  /**
2284
  global $post;
2285
  global $sd_data;
2286
 
2287
+ $title = @get_the_title();
2288
+ $c_title = '';
2289
 
2290
  //SEOPress
2291
  if(saswp_remove_warnings($sd_data, 'saswp-squirrly-seo', 'saswp_string') == 1 && class_exists('SQ_Models_Abstract_Seo')){
2533
  'free' => 'wp-recipe-maker/wp-recipe-maker.php',
2534
  ),
2535
 
2536
+
2537
  );
2538
 
2539
  if(array_key_exists('free', $pnamelist[$pname])){
admin_section/css/main-style.css CHANGED
@@ -575,11 +575,6 @@ input:checked + .saswp-slider:before {
575
  /*
576
  On/Off Buttons ends here
577
  */
578
- .saswp-wdi-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px;}
579
- .saswp-wdi-rate-stars svg{fill:#ffb900;}
580
- .saswp-wdi-rate-stars svg:hover{fill:#ffb900}
581
- .saswp-wdi-rate-stars svg:hover ~ svg{fill:none;}
582
-
583
  .option-table-class {width:100%;}
584
  .option-table-class tr td {padding: 10px 10px 10px 10px ;}
585
  .option-table-class tr > td{width: 30%;}
@@ -673,6 +668,7 @@ Compatibility tab css ends
673
  .saswp-view-docs a{
674
  margin-right: 5px !important;
675
  margin-top: 10px !important;
 
676
  }
677
  .saswp-tabs .nav-tab{
678
  margin-left: 4px;
@@ -1215,4 +1211,18 @@ a.saswp-revws-lnk{
1215
  display: inline-block;
1216
  width: 100%;
1217
  margin-bottom: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1218
  }
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%;}
668
  .saswp-view-docs a{
669
  margin-right: 5px !important;
670
  margin-top: 10px !important;
671
+ float: right;
672
  }
673
  .saswp-tabs .nav-tab{
674
  margin-left: 4px;
1211
  display: inline-block;
1212
  width: 100%;
1213
  margin-bottom: 5px;
1214
+ }
1215
+ .saswp-about-contact-page{
1216
+ width:75%;
1217
+ float:right;
1218
+ }
1219
+ .saswp-about-contact-page-tooltip{
1220
+ float:left;
1221
+ clear: both;
1222
+ }
1223
+ .saswp-quick-setup{
1224
+ float: left;
1225
+ }
1226
+ .saswp_add_schema_fields_on_fly{
1227
+ margin-bottom: 5px !important;
1228
  }
admin_section/css/main-style.min-rtl.css ADDED
@@ -0,0 +1,1226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-right: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-left: 130px;
128
+ }
129
+ .saswp-tools .saswp-tooltip{
130
+ width: 230px;
131
+ }
132
+ .saswp-tools .saswp-knowledge-label {
133
+ float: right;
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
+ right: 50%;
160
+ margin-right: -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
+ right: 10%;
171
+ margin-right: -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:right;
184
+ clear: both;
185
+
186
+ }
187
+ .saswp-knowledge-base .saswp-knowledge-field{
188
+ width:75%;
189
+ float:left;
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-right: 10px;
202
+ }
203
+ .saswp-social-fileds .saswp-knowledge-field input{
204
+ float: left;
205
+ margin: inherit;
206
+ }
207
+ .saswp-schema-type-fields .saswp-knowledge-label{
208
+ width:200px;
209
+ float:right;
210
+ clear: both;
211
+ }
212
+ .saswp-schema-type-fields .saswp-knowledge-field{
213
+ width:75%;
214
+ float:left;
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: left;
225
+ position: relative;
226
+ top: 20px;
227
+ margin-left: 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
+ right:15px;
242
+ }
243
+ .saswp-feedback-panel ul{
244
+ list-style-type: circle;
245
+ list-style:decimal;
246
+ padding-right: 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-left: 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-right: 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: left;
303
+ width: 75%;
304
+ padding-bottom: 10px;
305
+ }
306
+ .saswp-archive-div .saswp-knowledge-label{
307
+ float:right;
308
+ clear: both;
309
+ }
310
+
311
+ .saswp-amp .saswp-knowledge-field{
312
+ float: left;
313
+ width: 75%;
314
+ padding-bottom: 10px;
315
+ }
316
+ .saswp-amp .saswp-knowledge-label{
317
+ float:right;
318
+ clear: both;
319
+ }
320
+
321
+ .saswp-review .saswp-knowledge-field{
322
+ float: left;
323
+ width: 75%;
324
+ padding-bottom: 10px;
325
+ }
326
+ .saswp-review .saswp-knowledge-label{
327
+ float:right;
328
+ clear: both;
329
+ }
330
+
331
+ .saswp-compativility-div .saswp-knowledge-field{
332
+ float: left;
333
+ width: 75%;
334
+ padding-bottom: 10px;
335
+ }
336
+ .saswp-compativility-div .saswp-knowledge-label{
337
+ float:right;
338
+ clear: both;
339
+ }
340
+ .saswp-compativility-div li {
341
+ display: inline-flex;
342
+ }
343
+ .saswp-seller-div .saswp-knowledge-label{
344
+ float: right;
345
+
346
+ clear: both;
347
+ }
348
+ .saswp-seller-div .saswp-knowledge-field{
349
+ float: right;
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-left:10px;
358
+ }
359
+ .saswp-post-specific-container{
360
+ display: inline-block;
361
+ width: calc(75% - 1px );
362
+ border-right: 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: right;
377
+ cursor: pointer;
378
+ transition: 0.3s;
379
+ font-size: 15px;
380
+ width: 130px;
381
+ overflow: hidden;
382
+ margin-left: 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: left;
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-right: 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-right: 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: right;
456
+ clear: both;
457
+ }
458
+ .saswp-tools .saswp-knowledge-label {
459
+ float: right;
460
+ clear: both;
461
+ }
462
+ .saswp-tools .saswp-knowledge-field {
463
+ float: left;
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: left;
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
+ right: 0;
516
+ left: 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
+ right: 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
+ }
593
+
594
+ .saswp-option-table-class input[type="text"], .saswp-option-table-class select{
595
+ width:100%;
596
+ }
597
+ .saswp-paywall-table-class input[type="text"], .saswp-paywall-table-class select{
598
+ width:100%;
599
+ }
600
+
601
+ /*
602
+ Compatibility tab css starts here
603
+ */
604
+ .saswp-email_schema table th{
605
+ width: auto;
606
+ padding: 0px;
607
+ }
608
+ .saswp-email_schema .saswp-knowledge-label {
609
+ float: right;
610
+ clear: both;
611
+ }
612
+ .saswp-email_schema .saswp-knowledge-field {
613
+ float: left;
614
+ width: 75%;
615
+ padding-bottom: 10px;
616
+ }
617
+ /*
618
+ Compatibility tab css ends
619
+ */
620
+ .saswp-add-on-plugin label{
621
+ margin-top: 10px;
622
+ }
623
+ .saswp-add-on-plugin span{
624
+ width: 250px;
625
+ display: inline-block;
626
+ }
627
+ .saswp-knowledge-label label[for="saswp_search_box_schema_checkbox"] {
628
+ padding-right: 10px;
629
+ }
630
+
631
+ .saswp-knowledge-label label[for="saswp-woocommerce-booking-checkbox"] {
632
+ padding-right: 10px;
633
+ }
634
+
635
+ .saswp-knowledge-label label[for="saswp-woocommerce-membership-checkbox"] {
636
+ padding-right: 10px;
637
+ }
638
+
639
+ .saswp-global-selected{
640
+ color: #000000;
641
+ font-weight: 500;
642
+ }
643
+ #saswp-global-tabs a{
644
+ cursor: pointer;
645
+ }
646
+ #saswp-global-tabs{
647
+ padding-right: 5px;
648
+ }
649
+ #saswp-tools-tabs a{
650
+ cursor: pointer;
651
+ }
652
+ #saswp-review-tabs a{
653
+ cursor: pointer;
654
+ }
655
+ #saswp-tools-tabs{
656
+ padding-right: 5px;
657
+ }
658
+ .saswp-need-help {
659
+ padding-right: 60px;
660
+ }
661
+ .saswp-heading{
662
+ display: inline-flex;
663
+ align-items: baseline;
664
+ }
665
+ .saswp-heading h2{
666
+ margin-bottom: 0px;
667
+ }
668
+ .saswp-view-docs a{
669
+ margin-left: 5px !important;
670
+ margin-top: 10px !important;
671
+ float: left;
672
+ }
673
+ .saswp-tabs .nav-tab{
674
+ margin-right: 4px;
675
+ font-size: 13px;
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-left: 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: left;
734
+ font-size: 15px;
735
+ }
736
+ .saswp-rtng{
737
+ padding-right: 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-right: 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-left: 20px;
804
+ float: right;
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-right:5px;
853
+ }
854
+
855
+ /** star rating Feature CSS **/
856
+ .saswp_review_platform .saswp-g-plus{
857
+ float: right;
858
+ }
859
+ .saswp-pc-wrap{background-color:#004f74;padding:15px 30px 15px 15px;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-right:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;right:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}
860
+ .str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}
861
+ /*** Review Design CSS ****/
862
+ .saswp-g-review-header{
863
+ margin-top: 50px;
864
+ }
865
+ .saswp-g-review-body{
866
+ display:inline-grid;
867
+ grid-template-columns: 1fr 300px;
868
+ grid-gap:30px;
869
+ margin-top:30px;
870
+ width:100%;
871
+ }
872
+ .saswp-review-list{}
873
+ .saswp-channel-list{
874
+ margin-left: 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: left;
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-right: 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-right: 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
+ right: 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: right;
997
+ padding-right: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-right: 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: left;
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
+ }
1068
+ .saswp-rev-mod .saswp-knowledge-field{
1069
+ width:100%;
1070
+ display: inline-block;
1071
+ }
1072
+ .saswp-rev-mod .saswp_rv_module_pro_notice{
1073
+ padding:20px;
1074
+ }
1075
+ .saswp_cmpny_lst{
1076
+ width:100%;
1077
+ display: inline-block;
1078
+ margin-top:30px;
1079
+ }
1080
+ .saswp_rv_module_pro_notice ul{
1081
+ margin: 15px 0px 20px 0px;
1082
+ width: 100%;
1083
+ display: inline-grid;
1084
+ grid-template-columns: 1fr 1fr 1fr;
1085
+ grid-gap: 20px;
1086
+ border-bottom: 1px solid #eee;
1087
+ padding-bottom: 20px;
1088
+ }
1089
+ .saswp_rv_module_pro_notice ul li{
1090
+ position: relative;
1091
+ font-size: 15px;
1092
+ line-height: 1.5;
1093
+ color: #444;
1094
+ margin: 0;
1095
+ }
1096
+ .saswp_rv_module_pro_notice ul li span{
1097
+ padding-right:3px;
1098
+ }
1099
+ /*.saswp_rv_module_pro_notice ul li.check-img:before{
1100
+ content: "";
1101
+ background-image: url(../images/check.png);
1102
+ background-repeat: no-repeat;
1103
+ background-size: 16px;
1104
+ width: 16px;
1105
+ height: 16px;
1106
+ position: absolute;
1107
+ left: 2px;
1108
+ top: 6px;
1109
+ }*/
1110
+ .saswp_rv_module_pro_notice h2{
1111
+ text-align: center;
1112
+ font-size: 31px;
1113
+ }
1114
+ .saswp_rv_module_pro_notice .saswp_desc{
1115
+ text-align: center;
1116
+ font-size: 18px;
1117
+ font-style: normal;
1118
+ color: #000;
1119
+ }
1120
+ .saswp_rv_module_pro_notice .saswp_desc a{
1121
+ font-style: italic;
1122
+ }
1123
+ .saswp_rv_module_pro_notice .saswp_lst{
1124
+ color: #808080;
1125
+ font-family: georgia;
1126
+ font-style: italic;
1127
+ font-style: italic;
1128
+ font-size: 15px;
1129
+ font-weight: 600;
1130
+ }
1131
+ .saswp_rv_module_pro_notice .saswp_avlbl{
1132
+ color: #2a902e;
1133
+ font-family: georgia;
1134
+ font-style: italic;
1135
+ font-size: 15px;
1136
+ font-weight: 600;
1137
+ }
1138
+ .saswp_rv_module_pro_notice ul li img{
1139
+ width:20px;
1140
+ height:20px;
1141
+ position: relative;
1142
+ top: 4px;
1143
+ }
1144
+ .saswp-rev-btn{
1145
+ width:100%;
1146
+ display: inline-block;
1147
+ margin-top:20px;
1148
+ text-align: center;
1149
+ }
1150
+ .saswp-rev-btn span{
1151
+ display: block;
1152
+ font-size: 13px;
1153
+ margin-bottom: 15px;
1154
+ }
1155
+ .saswp-rev-btn a{
1156
+ padding: 12px 18px;
1157
+ display: inline-block;
1158
+ text-decoration: none;
1159
+ border-radius: 5px;
1160
+ background: #0085ba;
1161
+ color: #fff;
1162
+ font-weight: 600;
1163
+ font-size: 18px;
1164
+ }
1165
+ .select2-container{
1166
+ width:100% !important;
1167
+ }
1168
+ .saswp-schema-modify-section{
1169
+ margin-top: 15px;
1170
+ border-top: 1px solid #eee;
1171
+ padding-top: 15px;
1172
+ }
1173
+ .saswp-custom-meta-list{
1174
+ border: 1px solid #aaa;
1175
+ border-radius: 4px;
1176
+ }
1177
+ .saswp-custom-fields-table tr td:nth-child(3n+3) input{
1178
+ border: 1px solid #aaa;
1179
+ border-radius: 4px;
1180
+ }
1181
+ /** Notification CSS **/
1182
+ .updated.notice p{
1183
+ display: flex;
1184
+ width: 100%;
1185
+ align-items: center;
1186
+ }
1187
+ .updated.notice .dashicons-thumbs-up{
1188
+ margin-left:10px;
1189
+ }
1190
+ a.saswp-feedback-remindme, a.saswp-feedback-no-thanks{
1191
+ display: inline-block;
1192
+ cursor: pointer;
1193
+ }
1194
+ .saswp-feedback-remindme:after{
1195
+ content:",";
1196
+ display: inline-block;
1197
+ margin-left:5px;
1198
+ padding-right: 5px
1199
+ }
1200
+ a.saswp-revws-lnk{
1201
+ display: inline-block;
1202
+ background: #0085ba;
1203
+ padding: 12px 20px;
1204
+ color: #fff;
1205
+ text-decoration: none;
1206
+ border-radius: 3px;
1207
+ margin-right: 20px;
1208
+ font-size: 14px;
1209
+ line-height: 0.6;
1210
+ }
1211
+ .saswp-update-notice-btns{
1212
+ display: inline-block;
1213
+ width: 100%;
1214
+ margin-bottom: 5px;
1215
+ }
1216
+ .saswp-about-contact-page{
1217
+ width:75%;
1218
+ float:left;
1219
+ }
1220
+ .saswp-about-contact-page-tooltip{
1221
+ float:right;
1222
+ clear: both;
1223
+ }
1224
+ .saswp-quick-setup{
1225
+ float: right;
1226
+ }
admin_section/css/main-style.min.css CHANGED
@@ -1 +1 @@
1
- .saswp_warning{color:#ef6c00!important}.saswp_hide{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-general table{margin-top:0}.saswp-general table td{padding:5px}.saswp-knowledge table th{width:auto;padding:0}.saswp-knowledge table{margin-top:0}.saswp-knowledge table td{padding:5px}.saswp-schema table th{width:auto;padding:0}.saswp-schema table{margin-top:0}.saswp-schema table td{padding:5px}.saswp-amp table th{width:auto;padding:0}.saswp-amp table{margin-top:0}.saswp-amp table td{padding:5px}.saswp-help table th{width:auto;padding:0}.saswp-support table th{width:auto;padding:0}.saswp-review table th{width:auto;padding:0}.saswp-help table{margin-top:0}.saswp-help table td{padding:5px}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-settings-list li div label{font-weight:600}.saswp-general h2{margin-bottom:0}.saswp-knowledge h2{margin-bottom:0}.saswp-schema h2{margin-bottom:0}.saswp-help h2{margin-bottom:0}.saswp-settings-form p.submit{margin-top:0}.saswp_qanda_p{font-weight:500}.saswp-display-none{display:none!important}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools table th{width:auto;padding:0}.saswp-tools table{margin-top:0}.saswp-tools table td{padding:5px}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-tools .saswp-knowledge-label{float:left}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.saswp-knowledge-base .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-knowledge-base .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds li{display:flex}.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-settings-first-div{width:70%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:30px;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style-type:circle;list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel a{text-decoration:none}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-archive-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-archive-div .saswp-knowledge-label{float:left;clear:both}.saswp-amp .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-amp .saswp-knowledge-label{float:left;clear:both}.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-review .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-compativility-div .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-label{float:left;clear:both}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box;padding-right:10px}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}.saswp-post-specific-wrapper{padding:10px}.saswp-tab a.selected{background-color:#ccc}.saswp-tab-links{display:block;background-color:inherit;color:#000;padding:6px 10px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:130px;overflow:hidden;margin-right:10px}.saswp-star-rating{cursor:pointer}.saswp-post-specific-wrapper select{width:100%}.saswp-review-tables{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=text]{width:180px}#sasw-review input[type=number]{width:180px}#saswp-review-item-enable{width:10px}.saswp-enable-review-on-post{padding-bottom:10px}.saswp-enable-review-on-post label{font-weight:500}.saswp-compatibility table th{width:auto;padding:0}.saswp-compatibility .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:10px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-compatibility .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:40px;height:22px;border:20px}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#5a6783;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#61bd3b;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #eee}.saswp-tab-nav .selected{background-color:#ccc}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.saswp-wdi-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.saswp-wdi-rate-stars svg{fill:#ffb900}.saswp-wdi-rate-stars svg:hover{fill:#ffb900}.saswp-wdi-rate-stars svg:hover~svg{fill:none}.option-table-class{width:100%}.option-table-class tr td{padding:10px 10px 10px 10px}.option-table-class tr>td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table{width:100%}.saswp-custom-fields-table input{width:100%}.saswp-custom-fields-table tr td{padding:10px 10px 10px 10px}.saswp-custom-fields-table td{width:30%}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{color:#000;font-weight:500}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 8px 10px;width:70px;margin-right:20px;float:left}.saswp-ele-ic img{width:100%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-ele-tlt p{margin-top:10px}.saswp-sts-btn{box-sizing:border-box;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px}.saswp-g-review-header div{margin-top:10px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;top:12px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-nav-menu-list label{padding-left:10px}.saswp-dynamic-properties{border:1px solid #aaa;margin-top:5px;margin-bottom:5px}.saswp-table-close{float:right;cursor:pointer}.saswp-table-create-onajax table td,.saswp-table-create-onajax table th{padding:5px}.saswp-table-create-onajax select{width:98%}.saswp-g-reviews-settings-table input{width:100%}.saswp-s-reviews-settings-table input{width:100%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px 0;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px;padding-left:5px}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}
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%}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{color:#000;font-weight:500}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 8px 10px;width:70px;margin-right:20px;float:left}.saswp-ele-ic img{width:100%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-ele-tlt p{margin-top:10px}.saswp-sts-btn{box-sizing:border-box;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px}.saswp-g-review-header div{margin-top:10px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;top:12px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-nav-menu-list label{padding-left:10px}.saswp-dynamic-properties{border:1px solid #aaa;margin-top:5px;margin-bottom:5px}.saswp-table-close{float:right;cursor:pointer}.saswp-table-create-onajax table td,.saswp-table-create-onajax table th{padding:5px}.saswp-table-create-onajax select{width:98%}.saswp-g-reviews-settings-table input{width:100%}.saswp-s-reviews-settings-table input{width:100%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px 0;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px;padding-left:5px}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-about-contact-page{width:75%;float:right}.saswp-about-contact-page-tooltip{float:left;clear:both}.saswp-quick-setup{float:left}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}
admin_section/css/saswp-style.css CHANGED
@@ -95,4 +95,25 @@
95
  .widget-area .saswp-rv-img{
96
  width:60px;
97
  float:left;
98
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  .widget-area .saswp-rv-img{
96
  width:60px;
97
  float:left;
98
+ }
99
+
100
+ @media(max-width:767px){
101
+ .saswp-glg-review-body {
102
+ grid-template-columns: 50px 1fr;
103
+ }
104
+ .saswp-rv-img img{
105
+ max-width:50px;
106
+ }
107
+ }
108
+
109
+ /** Widgest Reviews CSS **/
110
+ .widget .saswp-glg-review-body{
111
+ display: inline-block;
112
+ width: 100%;
113
+ }
114
+ .widget .saswp-rv-img{
115
+ margin-bottom:12px;
116
+ }
117
+ .widget .saswp-rv-img img {
118
+ max-width: 50px;
119
+ }
admin_section/css/saswp-style.min.css CHANGED
@@ -95,4 +95,25 @@
95
  .widget-area .saswp-rv-img{
96
  width:60px;
97
  float:left;
98
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  .widget-area .saswp-rv-img{
96
  width:60px;
97
  float:left;
98
+ }
99
+
100
+ @media(max-width:767px){
101
+ .saswp-glg-review-body {
102
+ grid-template-columns: 50px 1fr;
103
+ }
104
+ .saswp-rv-img img{
105
+ max-width:50px;
106
+ }
107
+ }
108
+
109
+ /** Widgest Reviews CSS **/
110
+ .widget .saswp-glg-review-body{
111
+ display: inline-block;
112
+ width: 100%;
113
+ }
114
+ .widget .saswp-rv-img{
115
+ margin-bottom:12px;
116
+ }
117
+ .widget .saswp-rv-img img {
118
+ max-width: 50px;
119
+ }
admin_section/js/main-script.js CHANGED
@@ -23,7 +23,7 @@ function getParameterByName(name, url) {
23
  }
24
 
25
 
26
- function saswp_meta_list_html(response, fields, f_name, id, tr){
27
 
28
  var field_name = f_name;
29
  if(field_name == null){
@@ -31,11 +31,11 @@ function getParameterByName(name, url) {
31
  }
32
  var re_html = '';
33
  re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
34
- $.each(response, function(key,value){
35
 
36
  re_html += '<optgroup label="'+value['label']+'">';
37
 
38
- $.each(value['meta-list'], function(key, value){
39
  re_html += '<option value="'+key+'">'+value+'</option>';
40
  });
41
  re_html += '</optgroup>';
@@ -47,7 +47,7 @@ function getParameterByName(name, url) {
47
  var html = '<tr>';
48
  html += '<td>';
49
  html += '<select class="saswp-custom-fields-name">';
50
- $.each(fields, function(key,value){
51
  html += '<option value="'+key+'">'+value+'</option>';
52
  });
53
  html += '</select>';
@@ -57,10 +57,17 @@ function getParameterByName(name, url) {
57
  html += '</td>';
58
  html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
59
  html += '</tr>';
60
- $(".saswp-custom-fields-table").append(html);
 
 
 
 
61
 
62
  }else{
63
- $(id).html(re_html);
 
 
 
64
  }
65
 
66
  }
@@ -68,28 +75,28 @@ function getParameterByName(name, url) {
68
 
69
 
70
 
71
- function saswp_get_meta_list(type, fields, id, fields_name, tr){
72
  if (!saswp_meta_list[type]) {
73
 
74
- $.get(ajaxurl,
75
  { action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
76
  function(response){
77
  saswp_meta_list[type] = response[type];
78
- saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id, tr);
79
 
80
  },'json');
81
 
82
  }else{
83
- saswp_meta_list_html(saswp_meta_list[type], fields, fields_name, id, tr);
84
  }
85
 
86
  }
87
 
88
- function saswp_get_post_specific_schema_fields(index, meta_name, div_type, schema_id, fields_type){
89
 
90
  if (!saswp_meta_fields[fields_type]) {
91
 
92
- $.get(ajaxurl,
93
  { action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
94
  function(response){
95
  saswp_meta_fields[fields_type] = response;
@@ -97,8 +104,9 @@ function getParameterByName(name, url) {
97
  var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
98
 
99
  if(html){
100
- $('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
101
  saswp_schema_datepicker();
 
102
  }
103
 
104
  },'json');
@@ -108,8 +116,9 @@ function getParameterByName(name, url) {
108
  var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
109
 
110
  if(html){
111
- $('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
112
  saswp_schema_datepicker();
 
113
  }
114
 
115
  }
@@ -125,7 +134,7 @@ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, sc
125
  + '<a class="saswp-table-close">X</a>'
126
  + '<table class="form-table saswp-'+div_type+'-table">'
127
 
128
- $.each(schema_fields, function(eachindex, element){
129
 
130
  var meta_class = "";
131
  if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created' || element.name == 'saswp_product_reviews_created_date'){
@@ -153,7 +162,7 @@ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, sc
153
  case "select":
154
 
155
  var options_html = "";
156
- $.each(element.options, function(opt_index, opt_element){
157
  options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
158
  });
159
 
@@ -303,7 +312,7 @@ jQuery(document).ready(function($){
303
 
304
  $(".saswp-schame-type-select").change(function(){
305
  $(".saswp-custom-fields-table").html('');
306
- var schematype = $ (this).val();
307
 
308
  $(".saswp-option-table-class tr").each(function(index,value){
309
  if(index>0){
@@ -781,6 +790,15 @@ jQuery(document).ready(function($){
781
  }
782
  break;
783
 
 
 
 
 
 
 
 
 
 
784
 
785
  case 'saswp-woocommerce-booking-checkbox':
786
  saswp_compatibliy_notes(current, id);
@@ -1526,7 +1544,7 @@ jQuery(document).ready(function($){
1526
  type = 'image';
1527
  }
1528
  var id = $(this).parent().parent('tr').find("td:eq(1)");
1529
- saswp_get_meta_list(type, null, id, fields_name, tr);
1530
 
1531
  });
1532
 
@@ -1544,6 +1562,10 @@ jQuery(document).ready(function($){
1544
 
1545
  $(document).on("click", ".saswp_add_schema_fields_on_fly", function(e){
1546
  e.preventDefault();
 
 
 
 
1547
 
1548
  var schema_id = $(this).attr('data-id');
1549
  var fields_type = $(this).attr('fields_type');
@@ -1557,7 +1579,7 @@ jQuery(document).ready(function($){
1557
  index = 0;
1558
  }
1559
 
1560
- saswp_get_post_specific_schema_fields(index, fields_type, div_type, schema_id, fields_type+'_');
1561
 
1562
  });
1563
 
@@ -1596,8 +1618,23 @@ jQuery(document).ready(function($){
1596
 
1597
  });
1598
 
1599
- $(document).on("click", '.saswp-add-custom-fields', function(){
1600
- var schema_type = $('select#schema_type option:selected').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1601
  var post_id = $('#post_ID').val();
1602
  if(schema_type !=''){
1603
 
@@ -1607,11 +1644,11 @@ jQuery(document).ready(function($){
1607
  type: "POST",
1608
  url:ajaxurl,
1609
  dataType: "json",
1610
- data:{action:"saswp_get_schema_type_fields",post_id:post_id, schema_type:schema_type, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1611
  success:function(response){
1612
 
1613
  saswp_meta_list_fields[schema_type] = response;
1614
- saswp_get_meta_list('text', saswp_meta_list_fields[schema_type], null, null, null);
1615
 
1616
  },
1617
  error: function(response){
@@ -1622,7 +1659,7 @@ jQuery(document).ready(function($){
1622
 
1623
  }else{
1624
 
1625
- saswp_get_meta_list('text', saswp_meta_list_fields[schema_type], null, null, null);
1626
 
1627
  }
1628
 
23
  }
24
 
25
 
26
+ function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
27
 
28
  var field_name = f_name;
29
  if(field_name == null){
31
  }
32
  var re_html = '';
33
  re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
34
+ jQuery.each(response, function(key,value){
35
 
36
  re_html += '<optgroup label="'+value['label']+'">';
37
 
38
+ jQuery.each(value['meta-list'], function(key, value){
39
  re_html += '<option value="'+key+'">'+value+'</option>';
40
  });
41
  re_html += '</optgroup>';
47
  var html = '<tr>';
48
  html += '<td>';
49
  html += '<select class="saswp-custom-fields-name">';
50
+ jQuery.each(fields, function(key,value){
51
  html += '<option value="'+key+'">'+value+'</option>';
52
  });
53
  html += '</select>';
57
  html += '</td>';
58
  html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
59
  html += '</tr>';
60
+ jQuery(".saswp-custom-fields-table").append(html);
61
+ if(current_fly != null){
62
+ current_fly.removeClass('updating-message');
63
+ }
64
+
65
 
66
  }else{
67
+ jQuery(id).html(re_html);
68
+ if(current_fly != null){
69
+ current_fly.removeClass('updating-message');
70
+ }
71
  }
72
 
73
  }
75
 
76
 
77
 
78
+ function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
79
  if (!saswp_meta_list[type]) {
80
 
81
+ jQuery.get(ajaxurl,
82
  { action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
83
  function(response){
84
  saswp_meta_list[type] = response[type];
85
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
86
 
87
  },'json');
88
 
89
  }else{
90
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
91
  }
92
 
93
  }
94
 
95
+ function saswp_get_post_specific_schema_fields(current_fly, index, meta_name, div_type, schema_id, fields_type){
96
 
97
  if (!saswp_meta_fields[fields_type]) {
98
 
99
+ jQuery.get(ajaxurl,
100
  { action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
101
  function(response){
102
  saswp_meta_fields[fields_type] = response;
104
  var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
105
 
106
  if(html){
107
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
108
  saswp_schema_datepicker();
109
+ current_fly.removeClass('updating-message');
110
  }
111
 
112
  },'json');
116
  var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
117
 
118
  if(html){
119
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
120
  saswp_schema_datepicker();
121
+ current_fly.removeClass('updating-message');
122
  }
123
 
124
  }
134
  + '<a class="saswp-table-close">X</a>'
135
  + '<table class="form-table saswp-'+div_type+'-table">'
136
 
137
+ jQuery.each(schema_fields, function(eachindex, element){
138
 
139
  var meta_class = "";
140
  if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created' || element.name == 'saswp_product_reviews_created_date'){
162
  case "select":
163
 
164
  var options_html = "";
165
+ jQuery.each(element.options, function(opt_index, opt_element){
166
  options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
167
  });
168
 
312
 
313
  $(".saswp-schame-type-select").change(function(){
314
  $(".saswp-custom-fields-table").html('');
315
+ var schematype = $(this).val();
316
 
317
  $(".saswp-option-table-class tr").each(function(index,value){
318
  if(index>0){
790
  }
791
  break;
792
 
793
+ case 'saswp-homeland-checkbox':
794
+ saswp_compatibliy_notes(current, id);
795
+ if ($(this).is(':checked')) {
796
+ $("#saswp-homeland").val(1);
797
+ }else{
798
+ $("#saswp-homeland").val(0);
799
+ }
800
+ break;
801
+
802
 
803
  case 'saswp-woocommerce-booking-checkbox':
804
  saswp_compatibliy_notes(current, id);
1544
  type = 'image';
1545
  }
1546
  var id = $(this).parent().parent('tr').find("td:eq(1)");
1547
+ saswp_get_meta_list(null,type, null, id, fields_name, tr);
1548
 
1549
  });
1550
 
1562
 
1563
  $(document).on("click", ".saswp_add_schema_fields_on_fly", function(e){
1564
  e.preventDefault();
1565
+
1566
+ var current_fly = $(this);
1567
+
1568
+ current_fly.addClass('updating-message');
1569
 
1570
  var schema_id = $(this).attr('data-id');
1571
  var fields_type = $(this).attr('fields_type');
1579
  index = 0;
1580
  }
1581
 
1582
+ saswp_get_post_specific_schema_fields(current_fly, index, fields_type, div_type, schema_id, fields_type+'_');
1583
 
1584
  });
1585
 
1618
 
1619
  });
1620
 
1621
+ $(document).on("change", ".saswp-item-reivewed-list", function(){
1622
+
1623
+ $(".saswp-custom-fields-table").html('');
1624
+ saswp_meta_list_fields = [];
1625
+
1626
+ });
1627
+
1628
+ $(document).on("click", '.saswp-add-custom-fields', function(){
1629
+
1630
+ var current_fly = $(this);
1631
+ current_fly.addClass('updating-message');
1632
+ var schema_type = $('select#schema_type option:selected').val();
1633
+ var schema_subtype = '';
1634
+
1635
+ if(schema_type == 'Review'){
1636
+ schema_subtype = $('select.saswp-item-reivewed-list option:selected').val();
1637
+ }
1638
  var post_id = $('#post_ID').val();
1639
  if(schema_type !=''){
1640
 
1644
  type: "POST",
1645
  url:ajaxurl,
1646
  dataType: "json",
1647
+ 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},
1648
  success:function(response){
1649
 
1650
  saswp_meta_list_fields[schema_type] = response;
1651
+ saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
1652
 
1653
  },
1654
  error: function(response){
1659
 
1660
  }else{
1661
 
1662
+ saswp_get_meta_list(current_fly, 'text', saswp_meta_list_fields[schema_type], null, null, null);
1663
 
1664
  }
1665
 
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[];function getParameterByName(e,s){s||(s=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(s);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_meta_list_html(e,s,a,t,i){var o=a;null==o&&(o=Object.keys(s)[0]);var n="";if(n+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+o+']">',$.each(e,function(e,s){n+='<optgroup label="'+s.label+'">',$.each(s["meta-list"],function(e,s){n+='<option value="'+e+'">'+s+"</option>"}),n+="</optgroup>"}),n+="</select>",s){var p="<tr>";p+="<td>",p+='<select class="saswp-custom-fields-name">',$.each(s,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),p+="</select>",p+="</td>",p+="<td>",p+=n,p+="</td>",p+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',p+="</tr>",$(".saswp-custom-fields-table").append(p)}else $(t).html(n)}function saswp_get_meta_list(e,s,a,t,i){saswp_meta_list[e]?saswp_meta_list_html(saswp_meta_list[e],s,t,a,i):$.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(o){saswp_meta_list[e]=o[e],saswp_meta_list_html(saswp_meta_list[e],s,t,a,i)},"json")}function saswp_get_post_specific_schema_fields(e,s,a,t,i){if(saswp_meta_fields[i]){var o=saswp_fields_html_generator(e,t,i,a,saswp_meta_fields[i]);o&&($(".saswp-"+a+'-section[data-id="'+t+'"]').append(o),saswp_schema_datepicker())}else $.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:s,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){saswp_meta_fields[i]=s,console.log(saswp_meta_fields);var o=saswp_fields_html_generator(e,t,i,a,s);o&&($(".saswp-"+a+'-section[data-id="'+t+'"]').append(o),saswp_schema_datepicker())},"json")}function saswp_fields_html_generator(e,s,a,t,i){var o="";return o+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+e+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',$.each(i,function(t,i){var n="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(n="saswp-datepicker-picker"),i.type){case"number":case"text":o+="<tr><th>"+i.label+'</th><td><input class="'+n+'" 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 p="";$.each(i.options,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),o+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']">'+p+"</select></td></tr>";break;case"media":o+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+e+"_"+s+'" name="'+i.name+"_"+e+"_"+s+'"><input type="hidden" data-id="'+i.name+"_"+e+"_"+s+'_id" name="'+a+s+"["+e+"]["+i.name+'_id]" id="'+i.name+"_"+e+"_"+s+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+e+"_"+s+'_button" name="'+i.name+"_"+e+"_"+s+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+e+"_"+s+'"></div></fieldset></td></tr>'}}),o+="</table></div>"}jQuery(document).ready(function(e){if(saswp_localize_data.do_tour){var s,a="<h3>Thanks for using Structured Data!</h3>";a+="<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none}\t#afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/o1s7u3" data-id="258182" data-code="o1s7u3" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+='<div class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};s=function(){e(saswp_localize_data.displayID).pointer(t).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})}))},(t=e.extend(t,{buttons:function(e,s){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){s.element.pointer("close")}),button_2.on("click",function(){s.element.pointer("close")}),button},close:function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})},show:function(e,s){s.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?e(window).bind("load.wp-pointers",s):s()}function i(s,a){var t=a.replace("-checkbox",""),i=e("#"+t).next("p").text();s.is(":checked")&&""!==i?e("#"+t).next("p").removeClass("saswp_hide"):1==e("#"+t).next("p").attr("data-id")?e("#"+t).next("p").text("This feature is only available in pro version"):e("#"+t).next("p").addClass("saswp_hide")}function o(){e(".saswp-item-reviewed").change(function(s){s.preventDefault();var a="";if(e("select#schema_type option:selected").val()&&(a=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(a=e(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===a){var t=e(this),i=e(this).val(),o=saswp_localize_data.post_id,n=e(t).attr("data-id"),p=e(t).attr("post-specific");e.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_id:n,post_specific:p,item:i,post_id:o,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){e(t).parent().parent().nextAll().remove(".saswp-review-tr"),e(t).parent().parent().after(s)})}}).change()}function n(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||e(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(e){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:e.term,action:"saswp_get_custom_meta_fields"}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:2})}function p(){var s="";e("select#schema_type option:selected").val()&&(s=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=e(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&e(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){e(this).is(":checked")?e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide()}).change()}function c(s,a,t,i,o,n,p){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_add_s_approved_reviews",site_id:a,token:t,limit:i,api_key:o,page:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){s.removeClass("updating-message"),console.log(l),l.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),++n<p?c(s,a,t,i,o,n):function(s){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_fetch_s_approved_reviews",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s.removeClass("updating-message"),console.log(e),e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"))},"json")}(s)},"json")}e(".saswp-tabs a").click(function(s){var a=e(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),e(this).siblings().removeClass("nav-tab-active"),e(this).addClass("nav-tab-active"),e(".form-wrap").find(".saswp-"+t).siblings().hide(),e(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),e(".saswp-schame-type-select").change(function(){e(".saswp-custom-fields-table").html("");var s=e(this).val();e(".saswp-option-table-class tr").each(function(s,a){s>0&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==s||"Article"==s||"Blogposting"==s||"NewsArticle"==s||"WebPage"==s?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==s&&(e(".saswp-option-table-class tr").eq(1).show(),e(".saswp-business-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),e(".select-post-type").val("show_globally").trigger("change")),"Service"==s&&(e(".saswp-service-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==s&&(e(".saswp-review-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),o()),"Product"==s&&(e(".saswp-product-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==s&&(e(".saswp-event-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"AudioObject"==s&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==s&&e(".saswp-softwareapplication-text-field-tr").show(),e(".saswp-schem-type-note").addClass("saswp_hide"),"qanda"==s&&e(".saswp-schem-type-note").removeClass("saswp_hide"),e(".saswp-job-posting-note").addClass("saswp_hide"),p()}),e("#saswp_business_type").change(function(){var s=e(this).val(),a=e(".saswp-schame-type-select").val();e(".saswp-option-table-class tr").each(function(s,a){s>1&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==a&&(e(".saswp-"+s+"-tr").show(),e(".saswp-business-text-field-tr").show(),e(".saswp-"+s+"-tr").find("select").attr("disabled",!1)),"Service"==a&&(e(".saswp-service-text-field-tr").show(),e(".saswp-service-text-field-tr").find("select").attr("disabled",!1)),"Product"==a&&(e(".saswp-product-text-field-tr").show(),e(".saswp-product-text-field-tr").find("select").attr("disabled",!1)),"AudioObject"==a&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==a&&e(".saswp-softwareapplication-text-field-tr").show(),"Review"==a&&(e(".saswp-review-text-field-tr").show(),e(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"Event"==a&&(e(".saswp-event-text-field-tr").show(),e(".saswp-event-text-field-tr").find("select").attr("disabled",!1)),p()}).change(),e(".saswp-checkbox").change(function(){var s=e(this).attr("id"),a=e(this);switch(s){case"saswp-the-seo-framework-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-seo-framework").val(1):e("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-seo-press").val(1):e("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-aiosp").val(1):e("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-smart-crawl").val(1):e("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-squirrly-seo").val(1):e("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-recipe-maker").val(1):e("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpsso-core-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wpsso-core").val(1):e("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":e(this).is(":checked")?e("#saswp-for-wordpress").val(1):e("#saswp-for-wordpress").val(0);break;case"saswp-facebook-enable-checkbox":e(this).is(":checked")?(e("#saswp-facebook-enable").val(1),e("#sd_facebook").show()):(e("#saswp-facebook-enable").val(0),e("#sd_facebook").hide());break;case"saswp-twitter-enable-checkbox":e(this).is(":checked")?(e("#saswp-twitter-enable").val(1),e("#sd_twitter").show()):(e("#saswp-twitter-enable").val(0),e("#sd_twitter").hide());break;case"saswp-google-plus-enable-checkbox":e(this).is(":checked")?(e("#saswp-google-plus-enable").val(1),e("#sd_google_plus").show()):(e("#saswp-google-plus-enable").val(0),e("#sd_google_plus").hide());break;case"saswp-instagram-enable-checkbox":e(this).is(":checked")?(e("#saswp-instagram-enable").val(1),e("#sd_instagram").show()):(e("#saswp-instagram-enable").val(0),e("#sd_instagram").hide());break;case"saswp-youtube-enable-checkbox":e(this).is(":checked")?(e("#sd_youtube").show(),e("#saswp-youtube-enable").val(1)):(e("#saswp-youtube-enable").val(0),e("#sd_youtube").hide());break;case"saswp-linkedin-enable-checkbox":e(this).is(":checked")?(e("#saswp-linkedin-enable").val(1),e("#sd_linkedin").show()):(e("#saswp-linkedin-enable").val(0),e("#sd_linkedin").hide());break;case"saswp-pinterest-enable-checkbox":e(this).is(":checked")?(e("#saswp-pinterest-enable").val(1),e("#sd_pinterest").show()):(e("#saswp-pinterest-enable").val(0),e("#sd_pinterest").hide());break;case"saswp-soundcloud-enable-checkbox":e(this).is(":checked")?(e("#saswp-soundcloud-enable").val(1),e("#sd_soundcloud").show()):(e("#saswp-soundcloud-enable").val(0),e("#sd_soundcloud").hide());break;case"saswp-tumblr-enable-checkbox":e(this).is(":checked")?(e("#saswp-tumblr-enable").val(1),e("#sd_tumblr").show()):(e("#saswp-tumblr-enable").val(0),e("#sd_tumblr").hide());break;case"saswp-for-amp-checkbox":e(this).is(":checked")?e("#saswp-for-amp").val(1):e("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":e(this).is(":checked")?(e("#saswp_kb_contact_1").val(1),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(e("#saswp_kb_contact_1").val(0),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":e(this).is(":checked")?(e("#saswp-logo-dimensions").val(1),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(e("#saswp-logo-dimensions").val(0),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":e(this).is(":checked")?(e("#saswp_archive_schema").val(1),e(".saswp_archive_schema_type_class").parent().parent().show()):(e("#saswp_archive_schema").val(0),e(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":e(this).is(":checked")?(e("#saswp_website_schema").val(1),e("#saswp_search_box_schema").parent().parent().show()):(e("#saswp_website_schema").val(0),e("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":e(this).is(":checked")?e("#saswp_search_box_schema").val(1):e("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":e(this).is(":checked")?e("#saswp_breadcrumb_schema").val(1):e("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":e(this).is(":checked")?e("#saswp_comments_schema").val(1):e("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":e(this).is(":checked")?e("#saswp-review-module").val(1):e("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-kk-star-raring").val(1):e("#saswp-kk-star-raring").val(0);break;case"saswp-woocommerce-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce").val(1):e("#saswp-woocommerce").val(0);break;case"saswp-extra-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-extra").val(1):e("#saswp-extra").val(0);break;case"saswp-dw-question-answer-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-dw-question-answer").val(1):e("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-job-manager").val(1):e("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-yoast").val(1):e("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-rankmath").val(1):e("#saswp-rankmath").val(0);break;case"saswp-tagyeem-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-tagyeem").val(1):e("#saswp-tagyeem").val(0);break;case"saswp-the-events-calendar-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-events-calendar").val(1):e("#saswp-the-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking").val(1),e("#saswp-woocommerce-booking-main").val(1)):(e("#saswp-woocommerce-booking").val(0),e("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking-main").val(1),e("#saswp-woocommerce-booking").val(1)):(e("#saswp-woocommerce-booking-main").val(0),e("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce-membership").val(1):e("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":e(this).is(":checked")?e("#saswp-defragment").val(1):e("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-cooked").val(1):e("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-shopper-approved-review").val(1),e(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-shopper-approved-review").val(0),e(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":e(this).is(":checked")?(e("#saswp-google-review").val(1),e("#saswp-google-rv-free-checkbox").length?(e("#saswp-google-review-free").parent().parent().show(),e("#saswp-google-rv-free-checkbox").is(":checked")?e("#saswp_google_place_api_key").parent().parent().show():e("#saswp_google_place_api_key").parent().parent().hide()):e("#saswp_google_place_api_key").parent().parent().show(),e(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-google-review").val(0),e("#saswp_google_place_api_key").parent().parent().hide(),e(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),e("#saswp-google-rv-free-checkbox").length&&e("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":e("#saswp-google-review-checkbox").is(":checked")&&e(this).is(":checked")?(e("#saswp-google-review-free").val(1),e("#saswp_google_place_api_key").parent().parent().show()):(e("#saswp-google-review-free").val(0),e("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":e(this).is(":checked")?e("#saswp-markup-footer").val(1):e("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":e(this).is(":checked")?e("#saswp-pretty-print").val(1):e("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wppostratings-raring").val(1):e("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-bbpress").val(1):e("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":e(this).is(":checked")?e("#saswp-microdata-cleanup").val(1):e("#saswp-microdata-cleanup").val(0)}}).change(),e("#saswp_kb_type").change(function(){var s=e(this).val();e(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==s&&(e(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==s&&(e(".saswp_org_fields").parent().parent().addClass("saswp_hide"),e(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),e(document).on("click","input[data-id=media]",function(s){s.preventDefault();var a=e(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var s=i.state().get("selection").first().toJSON();e("#"+t).val(s.url),e("input[data-id='"+t+"_id']").val(s.id),e("input[data-id='"+t+"_height']").val(s.height),e("input[data-id='"+t+"_width']").val(s.width),e("input[data-id='"+t+"_thumbnail']").val(s.url),"sd_default_image_button"===a.attr("id")&&(e("#sd_default_image_width").val(s.width),e("#sd_default_image_height").val(s.height));var o="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&s.height<1200&&(o='<p class="saswp_warning">Image size is smaller than recommended size</p>'),e(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+s.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+o)}).open()}),e(document).on("click",".saswp_prev_close",function(s){s.preventDefault();var a=e(this).attr("data-id");console.log(a),e(this).parent().remove(),e("#"+a).val(""),e("input[data-id='"+a+"_id']").val(""),e("input[data-id='"+a+"_height']").val(""),e("input[data-id='"+a+"_width']").val(""),e("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(e("#sd_default_image_width").val(""),e("#sd_default_image_height").val(""))}),e(document).on("change",".saswp-schema-type-toggle",function(s){var a=e(this).attr("data-schema-id"),t=e(this).attr("data-post-id");if(e(this).is(":checked"))var i=1;else i=0;e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:i,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){},error:function(e){console.log(e)}})}),e(document).on("click",".saswp-reset-data",function(s){s.preventDefault(),1==confirm("Are you sure?")&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){setTimeout(function(){location.reload()},1e3)},error:function(e){console.log(e)}})}),e(document).on("click",".saswp_license_activation",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("license-status"),i=e(this).attr("add-on"),o=e("#"+i+"_addon_license_key").val();t&&i&&o?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:o,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){e("#"+i+"_addon_license_key_status").val(s.status),"active"==s.status?(e(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").css("color","green"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),e(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),e(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)):(e(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").css("color","red"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),e(".saswp_license_activation[add-on='"+i+"']").text("Activate"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)),a.removeClass("updating-message")},error:function(e){console.log(e)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),e(".saswp-send-query").on("click",function(s){s.preventDefault();var a=e("#saswp_query_message").val();""!=e.trim(a)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",message:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e(".saswp-query-success").show(),e(".saswp-query-error").hide()):(console.log("dd"),e(".saswp-query-success").hide(),e(".saswp-query-error").show())},error:function(e){console.log(e)}}):alert("Please enter the message")}),e(".saswp-import-plugins").on("click",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id");e.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?(e(a).parent().find(".saswp-imported-message").text(s.message),e(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(e(a).parent().find(".saswp-imported-message").addClass("saswp-error"),e(a).parent().find(".saswp-imported-message").text(s.message)),a.removeClass("updating-message")},"json")}),e(".saswp-feedback-no-thanks").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_no_thanks"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(".saswp-feedback-remindme").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_remindme"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(document).on("change",".saswp-local-business-type-select",function(s){s.preventDefault();var a=e(this),t=e(this).val();e.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){if("t"==s.status){e(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',e.each(s.result,function(e,s){i+='<option value="'+e+'">'+s+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else e(".saswp-local-business-name-select").parents("tr").remove()},"json")}),o(),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),e(document).on("click",".saswp-add-custom-schema",function(s){s.preventDefault(),e(".saswp-add-custom-schema-field").removeClass("saswp_hide"),e(this).hide()}),e(document).on("click",".saswp-delete-custom-schema",function(s){s.preventDefault(),e("#saswp_custom_schema_field").val(""),e(".saswp-add-custom-schema-field").addClass("saswp_hide"),e(".saswp-add-custom-schema").show()}),e(".saswp-modify_schema_post_enable").on("click",function(s){var a=e(this);a.addClass("updating-message"),s.preventDefault(),e.get(ajaxurl,{action:"saswp_modify_schema_post_enable",post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){a.remove(),e(".saswp-add-custom-schema-div").remove(),e("#post_specific .inside").append(s),a.removeClass("updating-message"),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),saswp_schema_datepicker(),p(),o()})}),saswp_schema_datepicker(),e(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"}),e(document).on("click",".saswp-add-more-item",function(s){s.preventDefault();var a=e(".saswp-review-item-list-table tr").length;console.log(a);e(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),e(document).on("click",".saswp-remove-review-item",function(s){s.preventDefault(),e(this).parent().parent("tr").remove()}),e(document).on("focusout",".saswp-review-item-tr input[type=number]",function(s){s.preventDefault();var a=0,t=e(".saswp-review-item-tr input[type=number]").length;e(".saswp-review-item-tr input[type=number]").each(function(s,t){""==e(t).val()?a+=parseFloat(0):a+=parseFloat(e(t).val())});var i=a/t;e("#saswp-review-item-over-all").val(i)}),e("#saswp-review-location").change(function(){var s=e(this).val();e(".saswp-review-shortcode").addClass("saswp_hide"),3==s&&e(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),e("#saswp-review-item-enable").change(function(){e(this).is(":checked")?e(".saswp-review-fields").show():e(".saswp-review-fields").hide()}).change(),e(document).on("click",".saswp-restore-post-schema",function(s){s.preventDefault();var a=e(this);if(a.addClass("updating-message"),e(".saswp-post-specific-schema-ids").val())var t=JSON.parse(e(".saswp-post-specific-schema-ids").val());e.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?setTimeout(function(){location.reload()},1e3):(alert(e.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),e(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(s){s.preventDefault();var a=e(this).attr("data-id");e(".saswp-post-specific-wrapper").hide(),e("#"+a).show(),e("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),e("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),e(this).addClass("selected"),e(this).parent().addClass("selected"),p()}),e("#saswp-global-tabs a:first").addClass("saswp-global-selected"),e(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?e(".saswp-global-container:eq(2)").show():e(".saswp-global-container:first").show(),e("#saswp-global-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-global-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-global-container").hide(),e("#"+s).show())}),e("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e(".saswp-tools-container:first").show(),e("#saswp-tools-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-tools-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e("#"+s).show())}),e("#saswp-review-tabs a:first").addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e(".saswp-review-container:first").show(),e("#saswp-review-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-review-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e("#"+s).show())}),e('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),e("#saswp_enable_custom_field").change(function(){e(this).is(":checked")?e(".saswp-custom-fields-div").show():e(".saswp-custom-fields-div").hide()}),e(document).on("change",".saswp-custom-fields-name",function(){var s="text",a=e(this).parent().parent("tr"),t=e(this).val();-1!=t.indexOf("image")&&(s="image"),saswp_get_meta_list(s,null,e(this).parent().parent("tr").find("td:eq(1)"),t,a)}),e(document).on("click",".saswp-skip-button",function(s){s.preventDefault(),e(this).parent().parent().hide(),e.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){},"json")}),e(document).on("click",".saswp_add_schema_fields_on_fly",function(s){s.preventDefault();var a=e(this).attr("data-id"),t=e(this).attr("fields_type"),i=e(this).attr("div_type"),o=e(".saswp-"+i+"-table-div").length,n=e(".saswp-"+i+"-table-div:nth-child("+o+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(n,t,i,a,t+"_")}),e(document).on("click",".saswp-table-close",function(){e(this).parent().remove()}),e(document).on("click",".saswp-rmv-modify_row",function(s){s.preventDefault(),e(this).parent().parent().remove()}),e(document).on("change",".saswp-custom-meta-list",function(){var s=e(this).val(),a=e(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),t="";"manual_text"==s?(t+='<td><input type="text" name="saswp_fixed_text['+a+']"></td>',t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"custom_field"==s?(t+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+a+']">',t+="</select></td>",t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):(t+="<td></td>",t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'),e(this).parent().parent("tr").find("td:gt(1)").remove(),e(this).parent().parent("tr").append(t),n()}),e(document).on("click",".saswp-add-custom-fields",function(){var s=e("select#schema_type option:selected").val(),a=e("#post_ID").val();""!=s&&(saswp_meta_list_fields[s]?saswp_get_meta_list("text",saswp_meta_list_fields[s],null,null,null):e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:a,schema_type:s,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){saswp_meta_list_fields[s]=e,saswp_get_meta_list("text",saswp_meta_list_fields[s],null,null,null)},error:function(e){console.log(e)}}))}),n(),p(),e('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),e(document).on("click",".saswp_coonect_google_place",function(){var s=e("#saswp_google_place_id").val(),a=e("#saswp_language_list").val(),t=e("#saswp_googel_api").val();""!=s&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:s,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){console.log(e.status)},error:function(e){console.log(e)}})}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&e(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(s,a){e(this).next().val(s),console.log(s)}}),e(document).on("click",".saswp-add-g-location-btn",function(s){var a="";a=e("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',s.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>Place Id</strong></td><td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>Reviews</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&e(".saswp-g-reviews-settings-table").append(t)}),e(document).on("click",".saswp-fetch-s-approved-reviews",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e("#saswp_s_approved_site_id").val(),i=e("#saswp_s_approved_token").val(),o=e("#saswp_s_approved_reviews").val(),n=e("#reviews_addon_license_key").val(),p=1;o>100&&(p=o/100,o%100&&p++);t&&i&&n?c(a,t,i,o,n,0,p):(a.removeClass("updating-message"),alert("Fill the site id and token with valid api key"))}),e(document).on("click",".saswp-fetch-g-reviews",function(){var s=e(this),a="free";s.addClass("updating-message");var t=e(this).parent().parent().find(".saswp-g-location-field").val(),i=e(this).parent().parent().find(".saswp-g-blocks-field").val(),o=e("#saswp_google_place_api_key").val(),n=e("#reviews_addon_license_key").val(),p=e("#reviews_addon_license_key_status").val();if("premium"==(a=e("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),s.removeClass("updating-message"),!1;if(0!=i%10)return s.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),s.removeClass("updating-message"),!1}""!=t&&(n||o)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:p,reviews_api:n,location:t,blocks:i,g_api:o,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),s.removeClass("updating-message")},error:function(e){console.log(e)}}):(""==t&&alert("Please enter place id"),""==o&&alert("Please enter api key"),""==n&&alert("Please enter reviews api key"),s.removeClass("updating-message"))}),e("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var s=e(this);s.parent().find(".saswp-phone-validation").remove();var a=e(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?s.parent().find(".saswp-phone-validation").remove():s.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')})});
1
+ var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[];function getParameterByName(e,s){s||(s=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(s);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_meta_list_html(e,s,a,t,i,n){var o=t;null==o&&(o=Object.keys(a)[0]);var p="";if(p+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+o+']">',jQuery.each(s,function(e,s){p+='<optgroup label="'+s.label+'">',jQuery.each(s["meta-list"],function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),p+="</optgroup>"}),p+="</select>",a){var c="<tr>";c+="<td>",c+='<select class="saswp-custom-fields-name">',jQuery.each(a,function(e,s){c+='<option value="'+e+'">'+s+"</option>"}),c+="</select>",c+="</td>",c+="<td>",c+=p,c+="</td>",c+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',c+="</tr>",jQuery(".saswp-custom-fields-table").append(c),null!=e&&e.removeClass("updating-message")}else jQuery(i).html(p),null!=e&&e.removeClass("updating-message")}function saswp_get_meta_list(e,s,a,t,i,n){saswp_meta_list[s]?saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,n):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(o){saswp_meta_list[s]=o[s],saswp_meta_list_html(e,saswp_meta_list[s],a,i,t,n)},"json")}function saswp_get_post_specific_schema_fields(e,s,a,t,i,n){if(saswp_meta_fields[n]){var o=saswp_fields_html_generator(s,i,n,t,saswp_meta_fields[n]);o&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(o),saswp_schema_datepicker(),e.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a,console.log(saswp_meta_fields);var o=saswp_fields_html_generator(s,i,n,t,a);o&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(o),saswp_schema_datepicker(),e.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(e,s,a,t,i){var n="";return n+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+e+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',jQuery.each(i,function(t,i){var o="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(o="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+o+'" style="width:100%" type="'+i.type+'" id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']"></td></tr>';break;case"textarea":n+="<tr><th>"+i.label+'</th><td><textarea style="width: 100%" id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']" rows="5"></textarea></td></tr>';break;case"select":var p="";jQuery.each(i.options,function(e,s){p+='<option value="'+e+'">'+s+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+e+"_"+s+'" name="'+a+s+"["+e+"]["+i.name+']">'+p+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+e+"_"+s+'" name="'+i.name+"_"+e+"_"+s+'"><input type="hidden" data-id="'+i.name+"_"+e+"_"+s+'_id" name="'+a+s+"["+e+"]["+i.name+'_id]" id="'+i.name+"_"+e+"_"+s+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+e+"_"+s+'_button" name="'+i.name+"_"+e+"_"+s+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+e+"_"+s+'"></div></fieldset></td></tr>'}}),n+="</table></div>"}jQuery(document).ready(function(e){if(saswp_localize_data.do_tour){var s,a="<h3>Thanks for using Structured Data!</h3>";a+="<p>Do you want the latest on <b>Structured Data update</b> before others and some best resources on monetization in a single email? - Free just for users of Structured Data!</p>",a+='<style type="text/css">',a+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",a+=".wp-pointer-content .button-secondary{ left: -25px;background: transparent;top: 5px; border: 0;position: relative; padding: 0; box-shadow: none;margin: 0;color: #0085ba;} .wp-pointer-content .button-primary{ display:none}\t#afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/o1s7u3" data-id="258182" data-code="o1s7u3" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+='<div class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};s=function(){e(saswp_localize_data.displayID).pointer(t).pointer("open"),saswp_localize_data.button2&&(jQuery("#pointer-close").after('<a id="pointer-primary" class="button-primary">'+saswp_localize_data.button2+"</a>"),jQuery("#pointer-primary").click(function(){saswp_localize_data.function_name}),jQuery("#pointer-close").click(function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})}))},(t=e.extend(t,{buttons:function(e,s){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){s.element.pointer("close")}),button_2.on("click",function(){s.element.pointer("close")}),button},close:function(){e.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer222",action:"dismiss-wp-pointer"})},show:function(e,s){s.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?e(window).bind("load.wp-pointers",s):s()}function i(s,a){var t=a.replace("-checkbox",""),i=e("#"+t).next("p").text();s.is(":checked")&&""!==i?e("#"+t).next("p").removeClass("saswp_hide"):1==e("#"+t).next("p").attr("data-id")?e("#"+t).next("p").text("This feature is only available in pro version"):e("#"+t).next("p").addClass("saswp_hide")}function n(){e(".saswp-item-reviewed").change(function(s){s.preventDefault();var a="";if(e("select#schema_type option:selected").val()&&(a=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(a=e(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===a){var t=e(this),i=e(this).val(),n=saswp_localize_data.post_id,o=e(t).attr("data-id"),p=e(t).attr("post-specific");e.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_id:o,post_specific:p,item:i,post_id:n,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){e(t).parent().parent().nextAll().remove(".saswp-review-tr"),e(t).parent().parent().after(s)})}}).change()}function o(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||e(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(e){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:e.term,action:"saswp_get_custom_meta_fields"}},processResults:function(e){return{results:e}},cache:!0},minimumInputLength:2})}function p(){var s="";e("select#schema_type option:selected").val()&&(s=e("select#schema_type option:selected").val()),e(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=e(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&e(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){e(this).is(":checked")?e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():e(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide()}).change()}function c(s,a,t,i,n,o,p){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_add_s_approved_reviews",site_id:a,token:t,limit:i,api_key:n,page:o,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(l){s.removeClass("updating-message"),console.log(l),l.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(l.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),++o<p?c(s,a,t,i,n,o):function(s){s.addClass("updating-message"),e.get(ajaxurl,{action:"saswp_fetch_s_approved_reviews",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s.removeClass("updating-message"),console.log(e),e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"))},"json")}(s)},"json")}e(".saswp-tabs a").click(function(s){var a=e(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),e(this).siblings().removeClass("nav-tab-active"),e(this).addClass("nav-tab-active"),e(".form-wrap").find(".saswp-"+t).siblings().hide(),e(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),e(".saswp-schame-type-select").change(function(){e(".saswp-custom-fields-table").html("");var s=e(this).val();e(".saswp-option-table-class tr").each(function(s,a){s>0&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==s||"Article"==s||"Blogposting"==s||"NewsArticle"==s||"WebPage"==s?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==s&&(e(".saswp-option-table-class tr").eq(1).show(),e(".saswp-business-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),e(".select-post-type").val("show_globally").trigger("change")),"Service"==s&&(e(".saswp-service-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==s&&(e(".saswp-review-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1),n()),"Product"==s&&(e(".saswp-product-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==s&&(e(".saswp-event-text-field-tr").show(),e(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"AudioObject"==s&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==s&&e(".saswp-softwareapplication-text-field-tr").show(),e(".saswp-schem-type-note").addClass("saswp_hide"),"qanda"==s&&e(".saswp-schem-type-note").removeClass("saswp_hide"),e(".saswp-job-posting-note").addClass("saswp_hide"),p()}),e("#saswp_business_type").change(function(){var s=e(this).val(),a=e(".saswp-schame-type-select").val();e(".saswp-option-table-class tr").each(function(s,a){s>1&&(e(this).hide(),e(this).find("select").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?e(".saswp-enable-speakable").parent().parent().show():e(".saswp-enable-speakable").parent().parent().hide(),"local_business"==a&&(e(".saswp-"+s+"-tr").show(),e(".saswp-business-text-field-tr").show(),e(".saswp-"+s+"-tr").find("select").attr("disabled",!1)),"Service"==a&&(e(".saswp-service-text-field-tr").show(),e(".saswp-service-text-field-tr").find("select").attr("disabled",!1)),"Product"==a&&(e(".saswp-product-text-field-tr").show(),e(".saswp-product-text-field-tr").find("select").attr("disabled",!1)),"AudioObject"==a&&e(".saswp-audio-text-field-tr").show(),"SoftwareApplication"==a&&e(".saswp-softwareapplication-text-field-tr").show(),"Review"==a&&(e(".saswp-review-text-field-tr").show(),e(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"Event"==a&&(e(".saswp-event-text-field-tr").show(),e(".saswp-event-text-field-tr").find("select").attr("disabled",!1)),p()}).change(),e(".saswp-checkbox").change(function(){var s=e(this).attr("id"),a=e(this);switch(s){case"saswp-the-seo-framework-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-seo-framework").val(1):e("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-seo-press").val(1):e("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-aiosp").val(1):e("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-smart-crawl").val(1):e("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-squirrly-seo").val(1):e("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-recipe-maker").val(1):e("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpsso-core-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wpsso-core").val(1):e("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":e(this).is(":checked")?e("#saswp-for-wordpress").val(1):e("#saswp-for-wordpress").val(0);break;case"saswp-facebook-enable-checkbox":e(this).is(":checked")?(e("#saswp-facebook-enable").val(1),e("#sd_facebook").show()):(e("#saswp-facebook-enable").val(0),e("#sd_facebook").hide());break;case"saswp-twitter-enable-checkbox":e(this).is(":checked")?(e("#saswp-twitter-enable").val(1),e("#sd_twitter").show()):(e("#saswp-twitter-enable").val(0),e("#sd_twitter").hide());break;case"saswp-google-plus-enable-checkbox":e(this).is(":checked")?(e("#saswp-google-plus-enable").val(1),e("#sd_google_plus").show()):(e("#saswp-google-plus-enable").val(0),e("#sd_google_plus").hide());break;case"saswp-instagram-enable-checkbox":e(this).is(":checked")?(e("#saswp-instagram-enable").val(1),e("#sd_instagram").show()):(e("#saswp-instagram-enable").val(0),e("#sd_instagram").hide());break;case"saswp-youtube-enable-checkbox":e(this).is(":checked")?(e("#sd_youtube").show(),e("#saswp-youtube-enable").val(1)):(e("#saswp-youtube-enable").val(0),e("#sd_youtube").hide());break;case"saswp-linkedin-enable-checkbox":e(this).is(":checked")?(e("#saswp-linkedin-enable").val(1),e("#sd_linkedin").show()):(e("#saswp-linkedin-enable").val(0),e("#sd_linkedin").hide());break;case"saswp-pinterest-enable-checkbox":e(this).is(":checked")?(e("#saswp-pinterest-enable").val(1),e("#sd_pinterest").show()):(e("#saswp-pinterest-enable").val(0),e("#sd_pinterest").hide());break;case"saswp-soundcloud-enable-checkbox":e(this).is(":checked")?(e("#saswp-soundcloud-enable").val(1),e("#sd_soundcloud").show()):(e("#saswp-soundcloud-enable").val(0),e("#sd_soundcloud").hide());break;case"saswp-tumblr-enable-checkbox":e(this).is(":checked")?(e("#saswp-tumblr-enable").val(1),e("#sd_tumblr").show()):(e("#saswp-tumblr-enable").val(0),e("#sd_tumblr").hide());break;case"saswp-for-amp-checkbox":e(this).is(":checked")?e("#saswp-for-amp").val(1):e("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":e(this).is(":checked")?(e("#saswp_kb_contact_1").val(1),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(e("#saswp_kb_contact_1").val(0),e("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":e(this).is(":checked")?(e("#saswp-logo-dimensions").val(1),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(e("#saswp-logo-dimensions").val(0),e("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":e(this).is(":checked")?(e("#saswp_archive_schema").val(1),e(".saswp_archive_schema_type_class").parent().parent().show()):(e("#saswp_archive_schema").val(0),e(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":e(this).is(":checked")?(e("#saswp_website_schema").val(1),e("#saswp_search_box_schema").parent().parent().show()):(e("#saswp_website_schema").val(0),e("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":e(this).is(":checked")?e("#saswp_search_box_schema").val(1):e("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":e(this).is(":checked")?e("#saswp_breadcrumb_schema").val(1):e("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":e(this).is(":checked")?e("#saswp_comments_schema").val(1):e("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":e(this).is(":checked")?e("#saswp-review-module").val(1):e("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-kk-star-raring").val(1):e("#saswp-kk-star-raring").val(0);break;case"saswp-woocommerce-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce").val(1):e("#saswp-woocommerce").val(0);break;case"saswp-extra-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-extra").val(1):e("#saswp-extra").val(0);break;case"saswp-dw-question-answer-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-dw-question-answer").val(1):e("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wp-job-manager").val(1):e("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-yoast").val(1):e("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-rankmath").val(1):e("#saswp-rankmath").val(0);break;case"saswp-tagyeem-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-tagyeem").val(1):e("#saswp-tagyeem").val(0);break;case"saswp-the-events-calendar-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-the-events-calendar").val(1):e("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-homeland").val(1):e("#saswp-homeland").val(0);break;case"saswp-woocommerce-booking-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking").val(1),e("#saswp-woocommerce-booking-main").val(1)):(e("#saswp-woocommerce-booking").val(0),e("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-woocommerce-booking-main").val(1),e("#saswp-woocommerce-booking").val(1)):(e("#saswp-woocommerce-booking-main").val(0),e("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-woocommerce-membership").val(1):e("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":e(this).is(":checked")?e("#saswp-defragment").val(1):e("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-cooked").val(1):e("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-flexmlx-compativility").val(1):e("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":i(a,s),e(this).is(":checked")?(e("#saswp-shopper-approved-review").val(1),e(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-shopper-approved-review").val(0),e(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":e(this).is(":checked")?(e("#saswp-google-review").val(1),e("#saswp-google-rv-free-checkbox").length?(e("#saswp-google-review-free").parent().parent().show(),e("#saswp-google-rv-free-checkbox").is(":checked")?e("#saswp_google_place_api_key").parent().parent().show():e("#saswp_google_place_api_key").parent().parent().hide()):e("#saswp_google_place_api_key").parent().parent().show(),e(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(e("#saswp-google-review").val(0),e("#saswp_google_place_api_key").parent().parent().hide(),e(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),e("#saswp-google-rv-free-checkbox").length&&e("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":e("#saswp-google-review-checkbox").is(":checked")&&e(this).is(":checked")?(e("#saswp-google-review-free").val(1),e("#saswp_google_place_api_key").parent().parent().show()):(e("#saswp-google-review-free").val(0),e("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":e(this).is(":checked")?e("#saswp-markup-footer").val(1):e("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":e(this).is(":checked")?e("#saswp-pretty-print").val(1):e("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-wppostratings-raring").val(1):e("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":i(a,s),e(this).is(":checked")?e("#saswp-bbpress").val(1):e("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":e(this).is(":checked")?e("#saswp-microdata-cleanup").val(1):e("#saswp-microdata-cleanup").val(0)}}).change(),e("#saswp_kb_type").change(function(){var s=e(this).val();e(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==s&&(e(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_person_fields").parent().parent().addClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==s&&(e(".saswp_org_fields").parent().parent().addClass("saswp_hide"),e(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),e(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),e("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),e(document).on("click","input[data-id=media]",function(s){s.preventDefault();var a=e(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var s=i.state().get("selection").first().toJSON();e("#"+t).val(s.url),e("input[data-id='"+t+"_id']").val(s.id),e("input[data-id='"+t+"_height']").val(s.height),e("input[data-id='"+t+"_width']").val(s.width),e("input[data-id='"+t+"_thumbnail']").val(s.url),"sd_default_image_button"===a.attr("id")&&(e("#sd_default_image_width").val(s.width),e("#sd_default_image_height").val(s.height));var n="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&s.height<1200&&(n='<p class="saswp_warning">Image size is smaller than recommended size</p>'),e(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+s.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+n)}).open()}),e(document).on("click",".saswp_prev_close",function(s){s.preventDefault();var a=e(this).attr("data-id");console.log(a),e(this).parent().remove(),e("#"+a).val(""),e("input[data-id='"+a+"_id']").val(""),e("input[data-id='"+a+"_height']").val(""),e("input[data-id='"+a+"_width']").val(""),e("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(e("#sd_default_image_width").val(""),e("#sd_default_image_height").val(""))}),e(document).on("change",".saswp-schema-type-toggle",function(s){var a=e(this).attr("data-schema-id"),t=e(this).attr("data-post-id");if(e(this).is(":checked"))var i=1;else i=0;e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:i,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){},error:function(e){console.log(e)}})}),e(document).on("click",".saswp-reset-data",function(s){s.preventDefault(),1==confirm("Are you sure?")&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){setTimeout(function(){location.reload()},1e3)},error:function(e){console.log(e)}})}),e(document).on("click",".saswp_license_activation",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("license-status"),i=e(this).attr("add-on"),n=e("#"+i+"_addon_license_key").val();t&&i&&n?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:n,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){e("#"+i+"_addon_license_key_status").val(s.status),"active"==s.status?(e(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").css("color","green"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),e(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),e(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)):(e(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),e(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),e(".saswp-"+i+"-dashicons").css("color","red"),e(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),e(".saswp_license_activation[add-on='"+i+"']").text("Activate"),e(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),e(".saswp_license_status_msg[add-on='"+i+"']").text(s.message)),a.removeClass("updating-message")},error:function(e){console.log(e)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),e(".saswp-send-query").on("click",function(s){s.preventDefault();var a=e("#saswp_query_message").val();""!=e.trim(a)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",message:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e(".saswp-query-success").show(),e(".saswp-query-error").hide()):(console.log("dd"),e(".saswp-query-success").hide(),e(".saswp-query-error").show())},error:function(e){console.log(e)}}):alert("Please enter the message")}),e(".saswp-import-plugins").on("click",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id");e.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?(e(a).parent().find(".saswp-imported-message").text(s.message),e(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(e(a).parent().find(".saswp-imported-message").addClass("saswp-error"),e(a).parent().find(".saswp-imported-message").text(s.message)),a.removeClass("updating-message")},"json")}),e(".saswp-feedback-no-thanks").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_no_thanks"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(".saswp-feedback-remindme").on("click",function(s){s.preventDefault(),e.get(ajaxurl,{action:"saswp_feeback_remindme"},function(s){"t"==s.status&&e(".saswp-feedback-notice").hide()},"json")}),e(document).on("change",".saswp-local-business-type-select",function(s){s.preventDefault();var a=e(this),t=e(this).val();e.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){if("t"==s.status){e(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',e.each(s.result,function(e,s){i+='<option value="'+e+'">'+s+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else e(".saswp-local-business-name-select").parents("tr").remove()},"json")}),n(),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),e(document).on("click",".saswp-add-custom-schema",function(s){s.preventDefault(),e(".saswp-add-custom-schema-field").removeClass("saswp_hide"),e(this).hide()}),e(document).on("click",".saswp-delete-custom-schema",function(s){s.preventDefault(),e("#saswp_custom_schema_field").val(""),e(".saswp-add-custom-schema-field").addClass("saswp_hide"),e(".saswp-add-custom-schema").show()}),e(".saswp-modify_schema_post_enable").on("click",function(s){var a=e(this);a.addClass("updating-message"),s.preventDefault(),e.get(ajaxurl,{action:"saswp_modify_schema_post_enable",post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){a.remove(),e(".saswp-add-custom-schema-div").remove(),e("#post_specific .inside").append(s),a.removeClass("updating-message"),e(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),saswp_schema_datepicker(),p(),n()})}),saswp_schema_datepicker(),e(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"}),e(document).on("click",".saswp-add-more-item",function(s){s.preventDefault();var a=e(".saswp-review-item-list-table tr").length;console.log(a);e(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),e(document).on("click",".saswp-remove-review-item",function(s){s.preventDefault(),e(this).parent().parent("tr").remove()}),e(document).on("focusout",".saswp-review-item-tr input[type=number]",function(s){s.preventDefault();var a=0,t=e(".saswp-review-item-tr input[type=number]").length;e(".saswp-review-item-tr input[type=number]").each(function(s,t){""==e(t).val()?a+=parseFloat(0):a+=parseFloat(e(t).val())});var i=a/t;e("#saswp-review-item-over-all").val(i)}),e("#saswp-review-location").change(function(){var s=e(this).val();e(".saswp-review-shortcode").addClass("saswp_hide"),3==s&&e(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),e("#saswp-review-item-enable").change(function(){e(this).is(":checked")?e(".saswp-review-fields").show():e(".saswp-review-fields").hide()}).change(),e(document).on("click",".saswp-restore-post-schema",function(s){s.preventDefault();var a=e(this);if(a.addClass("updating-message"),e(".saswp-post-specific-schema-ids").val())var t=JSON.parse(e(".saswp-post-specific-schema-ids").val());e.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?setTimeout(function(){location.reload()},1e3):(alert(e.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),e(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(s){s.preventDefault();var a=e(this).attr("data-id");e(".saswp-post-specific-wrapper").hide(),e("#"+a).show(),e("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),e("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),e(this).addClass("selected"),e(this).parent().addClass("selected"),p()}),e("#saswp-global-tabs a:first").addClass("saswp-global-selected"),e(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?e(".saswp-global-container:eq(2)").show():e(".saswp-global-container:first").show(),e("#saswp-global-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-global-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-global-container").hide(),e("#"+s).show())}),e("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e(".saswp-tools-container:first").show(),e("#saswp-tools-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-tools-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-tools-container").hide(),e("#"+s).show())}),e("#saswp-review-tabs a:first").addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e(".saswp-review-container:first").show(),e("#saswp-review-tabs a").click(function(){var s=e(this).attr("data-id");e(this).hasClass("saswp-global-selected")||(e("#saswp-review-tabs a").removeClass("saswp-global-selected"),e(this).addClass("saswp-global-selected"),e(".saswp-review-container").hide(),e("#"+s).show())}),e('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),e("#saswp_enable_custom_field").change(function(){e(this).is(":checked")?e(".saswp-custom-fields-div").show():e(".saswp-custom-fields-div").hide()}),e(document).on("change",".saswp-custom-fields-name",function(){var s="text",a=e(this).parent().parent("tr"),t=e(this).val();-1!=t.indexOf("image")&&(s="image"),saswp_get_meta_list(null,s,null,e(this).parent().parent("tr").find("td:eq(1)"),t,a)}),e(document).on("click",".saswp-skip-button",function(s){s.preventDefault(),e(this).parent().parent().hide(),e.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){},"json")}),e(document).on("click",".saswp_add_schema_fields_on_fly",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e(this).attr("data-id"),i=e(this).attr("fields_type"),n=e(this).attr("div_type"),o=e(".saswp-"+n+"-table-div").length,p=e(".saswp-"+n+"-table-div:nth-child("+o+")").attr("data-id");(p=++p)||(p=0),saswp_get_post_specific_schema_fields(a,p,i,n,t,i+"_")}),e(document).on("click",".saswp-table-close",function(){e(this).parent().remove()}),e(document).on("click",".saswp-rmv-modify_row",function(s){s.preventDefault(),e(this).parent().parent().remove()}),e(document).on("change",".saswp-custom-meta-list",function(){var s=e(this).val(),a=e(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),t="";"manual_text"==s?(t+='<td><input type="text" name="saswp_fixed_text['+a+']"></td>',t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):"custom_field"==s?(t+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+a+']">',t+="</select></td>",t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'):(t+="<td></td>",t+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'),e(this).parent().parent("tr").find("td:gt(1)").remove(),e(this).parent().parent("tr").append(t),o()}),e(document).on("change",".saswp-item-reivewed-list",function(){e(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[]}),e(document).on("click",".saswp-add-custom-fields",function(){var s=e(this);s.addClass("updating-message");var a=e("select#schema_type option:selected").val(),t="";"Review"==a&&(t=e("select.saswp-item-reivewed-list option:selected").val());var i=e("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null):e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:i,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){saswp_meta_list_fields[a]=e,saswp_get_meta_list(s,"text",saswp_meta_list_fields[a],null,null,null)},error:function(e){console.log(e)}}))}),o(),p(),e('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),e(document).on("click",".saswp_coonect_google_place",function(){var s=e("#saswp_google_place_id").val(),a=e("#saswp_language_list").val(),t=e("#saswp_googel_api").val();""!=s&&e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:s,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){console.log(e.status)},error:function(e){console.log(e)}})}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&e(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(s,a){e(this).next().val(s),console.log(s)}}),e(document).on("click",".saswp-add-g-location-btn",function(s){var a="";a=e("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',s.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>Place Id</strong></td><td style="width:20%;"><input class="saswp-g-location-field" name="sd_data[saswp_reviews_location_name][]" type="text" value=""></td><td style="width:10%;"><strong>Reviews</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">Fetch</a></td><td style="width:10%;"><a type="button" class="saswp-remove-review-item button">x</a></td><td style="width:10%;"><p class="saswp-rv-fetched-msg"></p></td></tr>')&&e(".saswp-g-reviews-settings-table").append(t)}),e(document).on("click",".saswp-fetch-s-approved-reviews",function(s){s.preventDefault();var a=e(this);a.addClass("updating-message");var t=e("#saswp_s_approved_site_id").val(),i=e("#saswp_s_approved_token").val(),n=e("#saswp_s_approved_reviews").val(),o=e("#reviews_addon_license_key").val(),p=1;n>100&&(p=n/100,n%100&&p++);t&&i&&o?c(a,t,i,n,o,0,p):(a.removeClass("updating-message"),alert("Fill the site id and token with valid api key"))}),e(document).on("click",".saswp-fetch-g-reviews",function(){var s=e(this),a="free";s.addClass("updating-message");var t=e(this).parent().parent().find(".saswp-g-location-field").val(),i=e(this).parent().parent().find(".saswp-g-blocks-field").val(),n=e("#saswp_google_place_api_key").val(),o=e("#reviews_addon_license_key").val(),p=e("#reviews_addon_license_key_status").val();if("premium"==(a=e("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),s.removeClass("updating-message"),!1;if(0!=i%10)return s.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),s.removeClass("updating-message"),!1}""!=t&&(o||n)?e.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:p,reviews_api:o,location:t,blocks:i,g_api:n,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(s.parent().parent().find(".saswp-rv-fetched-msg").text(e.message),s.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),s.removeClass("updating-message")},error:function(e){console.log(e)}}):(""==t&&alert("Please enter place id"),""==n&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),s.removeClass("updating-message"))}),e("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var s=e(this);s.parent().find(".saswp-phone-validation").remove();var a=e(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?s.parent().find(".saswp-phone-validation").remove():s.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')})});
admin_section/plugin-installer/install.php CHANGED
@@ -95,7 +95,7 @@
95
  // Enqueue styles.
96
  wp_enqueue_style( 'saswp_install', SASWP_PLUGIN_URL. '/admin_section/css/saswp-install.min.css' , array( 'wp-admin' ), SASWP_VERSION );
97
  // Enqueue javascript.
98
- wp_enqueue_script( 'saswp_install', SASWP_PLUGIN_URL. '/admin_section/js/saswp-install.min.js' , array( 'jquery-core' ), SASWP_VERSION );
99
 
100
  wp_localize_script( 'saswp_install', 'saswp_install_params', array(
101
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
95
  // Enqueue styles.
96
  wp_enqueue_style( 'saswp_install', SASWP_PLUGIN_URL. '/admin_section/css/saswp-install.min.css' , array( 'wp-admin' ), SASWP_VERSION );
97
  // Enqueue javascript.
98
+ wp_enqueue_script( 'saswp_install', SASWP_PLUGIN_URL. '/admin_section/js/saswp-install.min.js' , array( 'jquery' ,'jquery-ui-core', 'jquery-core' ), SASWP_VERSION );
99
 
100
  wp_localize_script( 'saswp_install', 'saswp_install_params', array(
101
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
admin_section/settings.php CHANGED
@@ -209,9 +209,11 @@ function saswp_admin_interface_render(){
209
  </form>
210
  </div>
211
  <div class="saswp-settings-second-div">
212
- <p style="float:left;"><?php
213
  $nonce = wp_create_nonce( 'saswp_install_wizard_nonce' );
214
- echo esc_html('Need Quick Setup?', 'schema-and-structured-data-for-wp'); ?></p><a href="<?php echo esc_url(admin_url( 'plugins.php?page=saswp-setup-wizard' ).'&_saswp_nonce='.$nonce); ?>" class="page-title-action saswp-start-quck-setup button button-primary"><?php echo esc_html('Try Installation Wizard', 'schema-and-structured-data-for-wp'); ?></a>
 
 
215
  <div class="saswp-feedback-panel">
216
 
217
  <h2><?php echo esc_html__( 'Leave A Feedback', 'schema-and-structured-data-for-wp' ); ?></h2>
@@ -236,7 +238,8 @@ function saswp_admin_interface_render(){
236
  </div>
237
  <div class="saswp-view-docs">
238
 
239
- <p style="float: left;"><?php echo esc_html__('Need Help?','schema-and-structured-data-for-wp') ?></p> <a style="float: right;" class="button button-default" target="_blank" href="http://structured-data-for-wp.com/docs/"><?php echo esc_html__('View Documentation','schema-and-structured-data-for-wp') ?></a>
 
240
 
241
  </div>
242
 
@@ -684,13 +687,13 @@ function saswp_general_page_callback(){
684
  <h2><?php echo esc_html__('General Settings','schema-and-structured-data-for-wp'); ?></h2>
685
  </div>
686
  <p><?php echo esc_html__('This is a global schema settings, to display about, contact, website, archive, breadcrumbs, comments and site navigation schema type.','schema-and-structured-data-for-wp') ?> <a target="_blank" href="http://structured-data-for-wp.com/docs/article/what-is-general-settings-in-schema/"><?php echo esc_html__('Learn More','schema-and-structured-data-for-wp') ?></a></p>
687
- <ul><li><div style="float:left;clear: both;"><label class="saswp-tooltip">
688
  <?php echo esc_html__('About','schema-and-structured-data-for-wp') ?>
689
  <span class="saswp-tooltiptext"><?php echo esc_html__('Set the about page of of your website','schema-and-structured-data-for-wp') ?></span>
690
  </label>
691
  </div>
692
- <div style="">
693
- <div style="width:75%; float:right;">
694
 
695
  <label for="sd_about_page-select">
696
  <?php
@@ -706,14 +709,14 @@ function saswp_general_page_callback(){
706
  </div>
707
  </div>
708
  </li>
709
- <li><div style="float:left;clear: both;">
710
  <label class="saswp-tooltip">
711
  <?php echo esc_html__('Contact','schema-and-structured-data-for-wp') ?>
712
  <span class="saswp-tooltiptext"><?php echo esc_html__('Set the contact us page of your website','schema-and-structured-data-for-wp') ?></span>
713
  </label>
714
  </div>
715
- <div style="">
716
- <div style="width:75%; float:right;">
717
  <label for="sd_contact_page-select">
718
  <?php echo wp_dropdown_pages( array(
719
  'name' => 'sd_data[sd_contact_page]',
@@ -1354,6 +1357,11 @@ function saswp_import_callback(){
1354
 
1355
  $add_on[] = 'Woocommerce';
1356
 
 
 
 
 
 
1357
  }
1358
 
1359
  if(!empty($add_on)){
@@ -1445,14 +1453,22 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
1445
 
1446
  $response.= '<div class="saswp-tools-field-title">';
1447
 
1448
- if($label == true){
1449
 
1450
  $response.= '<div class="" style="display:inline-block">';
1451
  $response.= '<strong>'.esc_html__(''.$on.' Compatibility For Schema','schema-and-structured-data-for-wp').'</strong>';
1452
  $response.= '</div>';
1453
 
1454
  }
1455
-
 
 
 
 
 
 
 
 
1456
  if($license_status == 'active'){
1457
 
1458
  $response.= '<span class="dashicons dashicons-yes saswp-'.strtolower($on).'-dashicons" style="color: #46b450;"></span>';
@@ -1656,6 +1672,17 @@ function saswp_compatibility_page_callback(){
1656
  'name' => 'sd_data[saswp-the-seo-framework]',
1657
  )
1658
  );
 
 
 
 
 
 
 
 
 
 
 
1659
 
1660
  $seo_press = array(
1661
  'label' => 'SEOPress',
@@ -1857,6 +1884,12 @@ function saswp_compatibility_page_callback(){
1857
  );
1858
 
1859
 
 
 
 
 
 
 
1860
  if(!is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah' ){
1861
 
1862
  $tagyeem['note'] = esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>';
@@ -1887,8 +1920,13 @@ function saswp_compatibility_page_callback(){
1887
  $cooked['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="http://structured-data-for-wp.com/cooked-compatibility-for-schema/">Cooked Addon</a>';
1888
 
1889
  }
1890
-
1891
-
 
 
 
 
 
1892
  if(get_template() != 'Extra'){
1893
 
1894
  $extratheme['note'] = esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.elegantthemes.com/gallery/extra/">Extra Theme</a>';
@@ -1918,7 +1956,8 @@ function saswp_compatibility_page_callback(){
1918
  $aiosp,
1919
  $squirrly_seo,
1920
  $recipe_maker,
1921
- $rankmath
 
1922
 
1923
  );
1924
 
@@ -2099,13 +2138,16 @@ function saswp_enqueue_style_js( $hook ) {
2099
  wp_register_style( 'jquery-ui', SASWP_PLUGIN_URL. 'admin_section/css/jquery-ui.css' );
2100
  wp_enqueue_style( 'jquery-ui' );
2101
 
2102
- wp_register_script( 'saswp-main-js', SASWP_PLUGIN_URL . 'admin_section/js/main-script.min.js', array('jquery'), SASWP_VERSION , true );
2103
 
2104
  wp_localize_script( 'saswp-main-js', 'saswp_localize_data', $data );
2105
 
2106
  wp_enqueue_script( 'saswp-main-js' );
2107
 
2108
  wp_enqueue_style( 'saswp-main-css', SASWP_PLUGIN_URL . 'admin_section/css/main-style.min.css', false , SASWP_VERSION );
 
 
 
2109
  }
2110
  add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_js' );
2111
 
209
  </form>
210
  </div>
211
  <div class="saswp-settings-second-div">
212
+ <p class="saswp-quick-setup"><?php
213
  $nonce = wp_create_nonce( 'saswp_install_wizard_nonce' );
214
+ echo esc_html('Need Quick Setup?', 'schema-and-structured-data-for-wp'); ?>
215
+ </p>
216
+ <a href="<?php echo esc_url(admin_url( 'plugins.php?page=saswp-setup-wizard' ).'&_saswp_nonce='.$nonce); ?>" class="page-title-action saswp-start-quck-setup button button-primary"><?php echo esc_html('Try Installation Wizard', 'schema-and-structured-data-for-wp'); ?></a>
217
  <div class="saswp-feedback-panel">
218
 
219
  <h2><?php echo esc_html__( 'Leave A Feedback', 'schema-and-structured-data-for-wp' ); ?></h2>
238
  </div>
239
  <div class="saswp-view-docs">
240
 
241
+ <p class="saswp-quick-setup"><?php echo esc_html__('Need Help?','schema-and-structured-data-for-wp') ?></p>
242
+ <a class="button button-default" target="_blank" href="http://structured-data-for-wp.com/docs/"><?php echo esc_html__('View Documentation','schema-and-structured-data-for-wp') ?></a>
243
 
244
  </div>
245
 
687
  <h2><?php echo esc_html__('General Settings','schema-and-structured-data-for-wp'); ?></h2>
688
  </div>
689
  <p><?php echo esc_html__('This is a global schema settings, to display about, contact, website, archive, breadcrumbs, comments and site navigation schema type.','schema-and-structured-data-for-wp') ?> <a target="_blank" href="http://structured-data-for-wp.com/docs/article/what-is-general-settings-in-schema/"><?php echo esc_html__('Learn More','schema-and-structured-data-for-wp') ?></a></p>
690
+ <ul><li><div class="saswp-about-contact-page-tooltip"><label class="saswp-tooltip">
691
  <?php echo esc_html__('About','schema-and-structured-data-for-wp') ?>
692
  <span class="saswp-tooltiptext"><?php echo esc_html__('Set the about page of of your website','schema-and-structured-data-for-wp') ?></span>
693
  </label>
694
  </div>
695
+ <div>
696
+ <div class="saswp-about-contact-page">
697
 
698
  <label for="sd_about_page-select">
699
  <?php
709
  </div>
710
  </div>
711
  </li>
712
+ <li><div class="saswp-about-contact-page-tooltip">
713
  <label class="saswp-tooltip">
714
  <?php echo esc_html__('Contact','schema-and-structured-data-for-wp') ?>
715
  <span class="saswp-tooltiptext"><?php echo esc_html__('Set the contact us page of your website','schema-and-structured-data-for-wp') ?></span>
716
  </label>
717
  </div>
718
+ <div>
719
+ <div class="saswp-about-contact-page">
720
  <label for="sd_contact_page-select">
721
  <?php echo wp_dropdown_pages( array(
722
  'name' => 'sd_data[sd_contact_page]',
1357
 
1358
  $add_on[] = 'Woocommerce';
1359
 
1360
+ }
1361
+ if(is_plugin_active('real-estate-schema/real-estate-schema.php')){
1362
+
1363
+ $add_on[] = 'Res';
1364
+
1365
  }
1366
 
1367
  if(!empty($add_on)){
1453
 
1454
  $response.= '<div class="saswp-tools-field-title">';
1455
 
1456
+ if($label == true && $on != 'Res'){
1457
 
1458
  $response.= '<div class="" style="display:inline-block">';
1459
  $response.= '<strong>'.esc_html__(''.$on.' Compatibility For Schema','schema-and-structured-data-for-wp').'</strong>';
1460
  $response.= '</div>';
1461
 
1462
  }
1463
+
1464
+ if($label == true && $on == 'Res'){
1465
+
1466
+ $response.= '<div class="" style="display:inline-block">';
1467
+ $response.= '<strong>'.esc_html__('Real Estate Schema','schema-and-structured-data-for-wp').'</strong>';
1468
+ $response.= '</div>';
1469
+
1470
+ }
1471
+
1472
  if($license_status == 'active'){
1473
 
1474
  $response.= '<span class="dashicons dashicons-yes saswp-'.strtolower($on).'-dashicons" style="color: #46b450;"></span>';
1672
  'name' => 'sd_data[saswp-the-seo-framework]',
1673
  )
1674
  );
1675
+ $homeland_theme = array(
1676
+ 'label' => 'HomeLand Theme',
1677
+ 'id' => 'saswp-homeland-checkbox',
1678
+ 'name' => 'saswp-homeland-checkbox',
1679
+ 'type' => 'checkbox',
1680
+ 'class' => 'checkbox saswp-checkbox',
1681
+ 'hidden' => array(
1682
+ 'id' => 'saswp-homeland',
1683
+ 'name' => 'sd_data[saswp-homeland]',
1684
+ )
1685
+ );
1686
 
1687
  $seo_press = array(
1688
  'label' => 'SEOPress',
1884
  );
1885
 
1886
 
1887
+ if(get_template() != 'homeland' ){
1888
+
1889
+ $homeland_theme['note'] = esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/homeland-responsive-real-estate-theme-for-wordpress/6518965">Homeland</a>';
1890
+
1891
+ }
1892
+
1893
  if(!is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah' ){
1894
 
1895
  $tagyeem['note'] = esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>';
1920
  $cooked['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="http://structured-data-for-wp.com/cooked-compatibility-for-schema/">Cooked Addon</a>';
1921
 
1922
  }
1923
+
1924
+ if(!is_plugin_active('real-estate-schema/real-estate-schema.php')){
1925
+
1926
+ $homeland_theme['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/extensions/">Real Estate Schema Addon</a>';
1927
+
1928
+ }
1929
+
1930
  if(get_template() != 'Extra'){
1931
 
1932
  $extratheme['note'] = esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.elegantthemes.com/gallery/extra/">Extra Theme</a>';
1956
  $aiosp,
1957
  $squirrly_seo,
1958
  $recipe_maker,
1959
+ $rankmath,
1960
+ $homeland_theme
1961
 
1962
  );
1963
 
2138
  wp_register_style( 'jquery-ui', SASWP_PLUGIN_URL. 'admin_section/css/jquery-ui.css' );
2139
  wp_enqueue_style( 'jquery-ui' );
2140
 
2141
+ wp_register_script( 'saswp-main-js', SASWP_PLUGIN_URL . 'admin_section/js/main-script.min.js', array('jquery','jquery-ui-core'), SASWP_VERSION , true );
2142
 
2143
  wp_localize_script( 'saswp-main-js', 'saswp_localize_data', $data );
2144
 
2145
  wp_enqueue_script( 'saswp-main-js' );
2146
 
2147
  wp_enqueue_style( 'saswp-main-css', SASWP_PLUGIN_URL . 'admin_section/css/main-style.min.css', false , SASWP_VERSION );
2148
+
2149
+ wp_style_add_data( 'saswp-main-css', 'rtl', 'replace' );
2150
+
2151
  }
2152
  add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_js' );
2153
 
admin_section/structure_admin.php CHANGED
@@ -818,7 +818,7 @@ add_action( 'wp_print_scripts', 'saswp_dequeue_script', 100 );
818
  if($hook == 'saswp' || get_post_type() == 'saswp'){
819
 
820
  wp_dequeue_script( 'avada-fusion-options' );
821
- wp_register_script( 'structure_admin', SASWP_PLUGIN_URL . 'admin_section/js/structure_admin.min.js', array( 'jquery'), SASWP_VERSION, true );
822
 
823
  wp_localize_script( 'structure_admin', 'saswp_app_object', $data_array );
824
  wp_enqueue_script( 'structure_admin' );
@@ -1400,9 +1400,10 @@ function saswp_license_status($add_on, $license_status, $license_key){
1400
  $item_name = array(
1401
  'cooked' => 'Cooked compatibility for Schema',
1402
  'woocommerce' => 'Woocommerce compatibility for Schema',
1403
- 'reviews' => 'Reviews for schema'
 
1404
  );
1405
-
1406
  $edd_action = '';
1407
  if($license_status =='active'){
1408
  $edd_action = 'activate_license';
818
  if($hook == 'saswp' || get_post_type() == 'saswp'){
819
 
820
  wp_dequeue_script( 'avada-fusion-options' );
821
+ wp_register_script( 'structure_admin', SASWP_PLUGIN_URL . 'admin_section/js/structure_admin.min.js', array( 'jquery', 'jquery-ui-core'), SASWP_VERSION, true );
822
 
823
  wp_localize_script( 'structure_admin', 'saswp_app_object', $data_array );
824
  wp_enqueue_script( 'structure_admin' );
1400
  $item_name = array(
1401
  'cooked' => 'Cooked compatibility for Schema',
1402
  'woocommerce' => 'Woocommerce compatibility for Schema',
1403
+ 'reviews' => 'Reviews for schema',
1404
+ 'res' => 'Real Estate Schema'
1405
  );
1406
+
1407
  $edd_action = '';
1408
  if($license_status =='active'){
1409
  $edd_action = 'activate_license';
core/array-list/pro_extensions.php CHANGED
@@ -15,6 +15,11 @@ return array(
15
  'key' => 'reviews_for_schema',
16
  'name' => 'Reviews for Schema',
17
  'path' => 'reviews-for-schema/reviews-for-schema.php',
 
 
 
 
 
18
  )
19
 
20
  );
15
  'key' => 'reviews_for_schema',
16
  'name' => 'Reviews for Schema',
17
  'path' => 'reviews-for-schema/reviews-for-schema.php',
18
+ ),
19
+ array(
20
+ 'key' => 'real_estate_schema',
21
+ 'name' => 'Real Estate Schema',
22
+ 'path' => 'real-estate-schema/real-estate-schema.php',
23
  )
24
 
25
  );
core/array-list/schemas.php CHANGED
@@ -9,11 +9,14 @@ return array(
9
  'CreativeWork' => array(
10
  'Article' => 'Article',
11
  'Blogposting' => 'Blogposting',
 
12
  'Course' => 'Course',
13
  'DiscussionForumPosting' => 'DiscussionForumPosting',
14
  'DataFeed' => 'DataFeed',
15
  'FAQ' => 'FAQ',
16
- 'HowTo' => 'HowTo',
 
 
17
  'NewsArticle' => 'NewsArticle',
18
  'qanda' => 'Q&A',
19
  'Review' => 'Review',
9
  'CreativeWork' => array(
10
  'Article' => 'Article',
11
  'Blogposting' => 'Blogposting',
12
+ 'Book' => 'Book',
13
  'Course' => 'Course',
14
  'DiscussionForumPosting' => 'DiscussionForumPosting',
15
  'DataFeed' => 'DataFeed',
16
  'FAQ' => 'FAQ',
17
+ 'HowTo' => 'HowTo',
18
+ 'MusicPlaylist' => 'MusicPlaylist',
19
+ 'MusicAlbum' => 'MusicAlbum',
20
  'NewsArticle' => 'NewsArticle',
21
  'qanda' => 'Q&A',
22
  'Review' => 'Review',
modules/gutenberg/assets/blocks/how-to.js CHANGED
@@ -78,7 +78,43 @@
78
  default:false
79
  }
80
  }
81
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  },
83
  edit: function(props) {
84
 
@@ -376,7 +412,7 @@
376
  )
377
  );
378
  }
379
- //List of function for the current blocks ends here
380
 
381
  var itemli = attributes.items.sort(function(a , b) {
382
 
@@ -461,8 +497,186 @@
461
  )
462
  )
463
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
 
465
- var itemlist = el('ul',{}, itemli);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
 
467
  return [
468
  el(InspectorControls,
@@ -517,7 +731,8 @@
517
  }
518
  }
519
  ),
520
- el('div', { className: 'saswp-how-to-setp-list' },
 
521
  itemlist,
522
  ),
523
  el( IconButton, {
@@ -534,7 +749,46 @@
534
  }
535
  },
536
  'Add A Step'
537
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538
  )];
539
 
540
  },
78
  default:false
79
  }
80
  }
81
+ },
82
+ tools: {
83
+ default: [],
84
+ selector: '.saswp-how-to-block-tools',
85
+ query: {
86
+ name: {
87
+ type: 'string',
88
+ selector: '.tool-name'
89
+ },
90
+ index: {
91
+ type: 'number',
92
+ attribute: 'data-index',
93
+ },
94
+ isSelected: {
95
+ type: 'boolean',
96
+ default:false
97
+ }
98
+ }
99
+ },
100
+ materials: {
101
+ default: [],
102
+ selector: '.saswp-how-to-block-material',
103
+ query: {
104
+ name: {
105
+ type: 'string',
106
+ selector: '.material-name'
107
+ },
108
+ index: {
109
+ type: 'number',
110
+ attribute: 'data-index'
111
+ },
112
+ isSelected: {
113
+ type: 'boolean',
114
+ default:false
115
+ }
116
+ }
117
+ }
118
  },
119
  edit: function(props) {
120
 
412
  )
413
  );
414
  }
415
+ //Step list starts here
416
 
417
  var itemli = attributes.items.sort(function(a , b) {
418
 
497
  )
498
  )
499
  });
500
+
501
+ //Step list ends here
502
+
503
+ //Tool list starts here
504
+
505
+ var toolli = attributes.tools.sort(function(a , b) {
506
+
507
+ return a.index - b.index;
508
+ }).map(function(tool){
509
+
510
+ return el('li',
511
+ {
512
+ className: 'tool',
513
+ onClick: function(){
514
+
515
+ const oldAttributes = attributes;
516
+ const oldItems = attributes.tools;
517
+ oldItems.forEach(function(value, index){
518
+
519
+ if(index == tool.index){
520
+ oldItems[index]['isSelected'] = true;
521
+ }else{
522
+ oldItems[index]['isSelected'] = false;
523
+ }
524
+
525
+ });
526
+
527
+ oldAttributes['tools'] = oldItems;
528
+ props.setAttributes({
529
+ attributes: oldAttributes
530
+ });
531
+ }
532
+ },
533
+ el( RichText, {
534
+ tagName: 'p',
535
+ className:'saswp-how-to-tool-name',
536
+ placeholder: 'Enter a tool name',
537
+ style: { textAlign: alignment },
538
+ value: tool.name,
539
+ autoFocus: true,
540
+ onChange: function( value ) {
541
+ var newObject = Object.assign({}, tool, {
542
+ name: value
543
+ });
544
+ return props.setAttributes({
545
+ tools: [].concat(_cloneArray(props.attributes.tools.filter(function (itemFilter) {
546
+ return itemFilter.index != tool.index;
547
+ })), [newObject])
548
+ });
549
+ }
550
+ }
551
+ ),
552
+ el('div', {className:'saswp-how-to-tool-controls-container'},
553
+
554
+ el( IconButton, {
555
+ icon: "trash",
556
+ className: 'saswp-how-to-tool-button',
557
+ onClick: function() {
558
+
559
+ const oldAttributes = attributes;
560
+ const oldItems = attributes.tools;
561
+ const newTestimonials = oldItems
562
+
563
+ .filter(function(itemFilter){
564
+ return itemFilter.index != tool.index
565
+ }).map(function(t){
566
+ if (t.index > oldItems.index) {
567
+ t.index -= 1;
568
+ }
569
+ return t;
570
+ });
571
+
572
+ newTestimonials.forEach(function(value, index){
573
+ newTestimonials[index]['index'] = index;
574
+ });
575
+
576
+ oldAttributes['tools'] = newTestimonials;
577
+ props.setAttributes({
578
+ attributes: oldAttributes
579
+ });
580
+
581
+ }
582
+ }
583
+ )
584
+
585
+ )
586
+ )
587
+ });
588
+
589
+ //Tool list ends here
590
+
591
+ //Material list starts here
592
 
593
+ var materialli = attributes.materials.sort(function(a , b) {
594
+
595
+ return a.index - b.index;
596
+ }).map(function(material){
597
+
598
+ return el('li',
599
+ {
600
+ className: 'material',
601
+ onClick: function(){
602
+
603
+ const oldAttributes = attributes;
604
+ const oldItems = attributes.materials;
605
+ oldItems.forEach(function(value, index){
606
+
607
+ if(index == material.index){
608
+ oldItems[index]['isSelected'] = true;
609
+ }else{
610
+ oldItems[index]['isSelected'] = false;
611
+ }
612
+
613
+ });
614
+
615
+ oldAttributes['materials'] = oldItems;
616
+ props.setAttributes({
617
+ attributes: oldAttributes
618
+ });
619
+ }
620
+ },
621
+ el( RichText, {
622
+ tagName: 'p',
623
+ className:'saswp-how-to-material-name',
624
+ placeholder: 'Enter a material name',
625
+ style: { textAlign: alignment },
626
+ value: material.name,
627
+ autoFocus: true,
628
+ onChange: function( value ) {
629
+ var newObject = Object.assign({}, material, {
630
+ name: value
631
+ });
632
+ return props.setAttributes({
633
+ materials: [].concat(_cloneArray(props.attributes.materials.filter(function (itemFilter) {
634
+ return itemFilter.index != material.index;
635
+ })), [newObject])
636
+ });
637
+ }
638
+ }
639
+ ),
640
+ el('div', {className:'saswp-how-to-material-controls-container'},
641
+ el( IconButton, {
642
+ icon: "trash",
643
+ className: 'saswp-how-to-material-button',
644
+ onClick: function() {
645
+
646
+ const oldAttributes = attributes;
647
+ const oldItems = attributes.materials;
648
+ const newTestimonials = oldItems
649
+
650
+ .filter(function(itemFilter){
651
+ return itemFilter.index != material.index
652
+ }).map(function(t){
653
+ if (t.index > oldItems.index) {
654
+ t.index -= 1;
655
+ }
656
+ return t;
657
+ });
658
+
659
+ newTestimonials.forEach(function(value, index){
660
+ newTestimonials[index]['index'] = index;
661
+ });
662
+
663
+ oldAttributes['materials'] = newTestimonials;
664
+ props.setAttributes({
665
+ attributes: oldAttributes
666
+ });
667
+
668
+ }
669
+ }
670
+ )
671
+ )
672
+ )
673
+ });
674
+
675
+ //material list ends here
676
+
677
+ var itemlist = el('ul',{}, itemli);
678
+ var toollist = el('ul',{}, toolli);
679
+ var materiallist = el('ul',{}, materialli);
680
 
681
  return [
682
  el(InspectorControls,
731
  }
732
  }
733
  ),
734
+ el('div',{className:'saswp-how-to-setp-block'},
735
+ el('div', { className: 'saswp-how-to-setp-list'},
736
  itemlist,
737
  ),
738
  el( IconButton, {
749
  }
750
  },
751
  'Add A Step'
752
+ )
753
+ ),
754
+ el('div',{className:'saswp-how-to-material-block'},
755
+ el('div', { className: 'saswp-how-to-material-list'},
756
+ materiallist,
757
+ ),
758
+ el( IconButton, {
759
+ icon: "insert",
760
+ className: 'saswp-how-to-material-button',
761
+ onClick: function() {
762
+ return props.setAttributes({
763
+ materials: [].concat(_cloneArray(props.attributes.materials), [{
764
+ index: props.attributes.materials.length,
765
+ name: ""
766
+ }])
767
+ });
768
+ }
769
+ },
770
+ 'Add A Material'
771
+ )
772
+ ),
773
+ el('div',{className:'saswp-how-to-tool-block'},
774
+ el('div', { className: 'saswp-how-to-tool-list'},
775
+ toollist,
776
+ ),
777
+ el( IconButton, {
778
+ icon: "insert",
779
+ className: 'saswp-how-to-tool-button',
780
+ onClick: function() {
781
+ return props.setAttributes({
782
+ tools: [].concat(_cloneArray(props.attributes.tools), [{
783
+ index: props.attributes.tools.length,
784
+ name: ""
785
+ }])
786
+ });
787
+ }
788
+ },
789
+ 'Add A Tool'
790
+ )
791
+ )
792
  )];
793
 
794
  },
modules/gutenberg/assets/css/editor.css CHANGED
@@ -20,6 +20,26 @@ and open the template in the editor.
20
  list-style-type: none;
21
  list-style: none;
22
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  .saswp-how-to-step-number {
24
  position: absolute;
25
  left: 4px;
@@ -99,4 +119,17 @@ and open the template in the editor.
99
  .saswp-faq-duration-time-input button{
100
  position: relative;
101
  top: -12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
20
  list-style-type: none;
21
  list-style: none;
22
  }
23
+
24
+ .saswp-how-to-tool-list li{
25
+ position: relative;
26
+ padding: 8px 8px 8px 32px;
27
+ margin: 4px;
28
+ border: 1px solid rgba(145,151,162,.25);
29
+ list-style-type: none;
30
+ list-style: none;
31
+ display: flow-root;
32
+ }
33
+ .saswp-how-to-material-list li{
34
+ position: relative;
35
+ padding: 8px 8px 8px 32px;
36
+ margin: 4px;
37
+ border: 1px solid rgba(145,151,162,.25);
38
+ list-style-type: none;
39
+ list-style: none;
40
+ display: flow-root;
41
+ }
42
+
43
  .saswp-how-to-step-number {
44
  position: absolute;
45
  left: 4px;
119
  .saswp-faq-duration-time-input button{
120
  position: relative;
121
  top: -12px;
122
+ }
123
+ .saswp-how-to-setp-block{
124
+ margin-bottom: 40px;
125
+ }
126
+ .saswp-how-to-tool-block, .saswp-how-to-material-block{
127
+ border: 1px solid rgba(145,151,162,.25);
128
+ margin-bottom: 5px;
129
+ }
130
+ .saswp-how-to-material-controls-container, .saswp-how-to-tool-controls-container{
131
+ float: right;
132
+ }
133
+ .saswp-how-to-material-button, .saswp-how-to-tool-button{
134
+ margin: 5px;
135
  }
modules/gutenberg/assets/css/style.css CHANGED
@@ -7,4 +7,3 @@ and open the template in the editor.
7
  Created on : Sep 15, 2019, 1:52:02 PM
8
  Author : acer
9
  */
10
-
7
  Created on : Sep 15, 2019, 1:52:02 PM
8
  Author : acer
9
  */
 
modules/gutenberg/includes/class-gutenberg.php CHANGED
@@ -7,12 +7,25 @@ class SASWP_Gutenberg {
7
  private function __construct() {
8
  add_action( 'init', array( $this, 'register_how_to' ) );
9
  add_action( 'init', array( $this, 'register_faq' ) );
10
- add_action( 'enqueue_block_editor_assets', array( $this, 'register_assets' ) );
 
11
  add_filter( 'block_categories', array( $this, 'saswp_add_blocks_categories' ) );
12
  }
13
-
14
 
15
- public function register_assets() {
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  if ( !function_exists( 'register_block_type' ) ) {
18
  // no Gutenberg, Abort
@@ -20,16 +33,10 @@ class SASWP_Gutenberg {
20
  }
21
  wp_register_style(
22
  'saswp-gutenberg-css-reg-editor',
23
- SASWP_PLUGIN_URL . '/modules/gutenberg/assets/css/editor.css',
24
  array( 'wp-edit-blocks' )
25
  );
26
-
27
- wp_register_style(
28
- 'saswp-gutenberg-css-reg',
29
- SASWP_PLUGIN_URL . '/modules/gutenberg/assets/css/style.css',
30
- array( )
31
- );
32
-
33
  wp_register_script(
34
  'saswp-faq-js-reg',
35
  SASWP_PLUGIN_URL . '/modules/gutenberg/assets/blocks/faq.js',
@@ -58,7 +65,25 @@ class SASWP_Gutenberg {
58
 
59
  wp_enqueue_script( 'saswp-how-to-js-reg' );
60
  }
61
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  /**
63
  * Register blocks
64
  */
@@ -120,7 +145,7 @@ class SASWP_Gutenberg {
120
  }
121
 
122
  public static function render_how_to_data( $attributes ) {
123
-
124
  ob_start();
125
 
126
  if ( !isset( $attributes ) ) {
@@ -130,10 +155,12 @@ class SASWP_Gutenberg {
130
  }
131
 
132
  echo '<div class="saswp-how-to-block-section">';
 
 
133
 
134
  if(isset($attributes['hasDuration'])){
135
  echo '<p class="saswp-how-to-total-time">';
136
- echo '<span class="saswp-how-to-duration-time-text">Time Needed : </span>';
137
 
138
  echo esc_attr($attributes['days']).' days '.esc_attr($attributes['hours']).' hours '.esc_attr($attributes['minutes']).' minutes';
139
  echo '</p>';
@@ -165,34 +192,53 @@ class SASWP_Gutenberg {
165
  }else{
166
  echo '</ul>';
167
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  }
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  echo '</div>';
171
 
172
  return ob_get_clean();
173
  }
174
-
175
- /**
176
- * Register blocks
177
- */
178
- public function register_how_to() {
179
-
180
- if ( !function_exists( 'register_block_type' ) ) {
181
- // no Gutenberg, Abort
182
- return;
183
- }
184
-
185
- register_block_type( 'saswp/how-to-block', array(
186
- 'style' => 'saswp-gutenberg-css-reg',
187
- 'editor_style' => 'saswp-gutenberg-css-reg-editor',
188
- 'editor_script' => 'saswp-how-to-js-reg',
189
- 'render_callback' => array( $this, 'render_how_to_data' ),
190
- ) );
191
-
192
-
193
- }
194
-
195
- public function saswp_add_blocks_categories($categories){
196
 
197
  $categories[] = array(
198
  'slug' => 'saswp-blocks',
@@ -206,7 +252,7 @@ class SASWP_Gutenberg {
206
  /**
207
  * Return the unique instance
208
  */
209
- public static function get_instance() {
210
  if ( null == self::$instance ) {
211
  self::$instance = new self;
212
  }
7
  private function __construct() {
8
  add_action( 'init', array( $this, 'register_how_to' ) );
9
  add_action( 'init', array( $this, 'register_faq' ) );
10
+ add_action( 'enqueue_block_editor_assets', array( $this, 'register_admin_assets' ) );
11
+ //add_action( 'enqueue_block_assets', array( $this, 'register_frontend_assets' ) );
12
  add_filter( 'block_categories', array( $this, 'saswp_add_blocks_categories' ) );
13
  }
 
14
 
15
+ public function register_frontend_assets() {
16
+
17
+ if(!is_admin){
18
+
19
+ wp_enqueue_style(
20
+ 'saswp-gutenberg-css-reg',
21
+ SASWP_PLUGIN_URL . '/modules/gutenberg/assets/css/style.css',
22
+ array()
23
+ );
24
+
25
+ }
26
+ }
27
+
28
+ public function register_admin_assets() {
29
 
30
  if ( !function_exists( 'register_block_type' ) ) {
31
  // no Gutenberg, Abort
33
  }
34
  wp_register_style(
35
  'saswp-gutenberg-css-reg-editor',
36
+ SASWP_PLUGIN_URL . 'modules/gutenberg/assets/css/editor.css',
37
  array( 'wp-edit-blocks' )
38
  );
39
+
 
 
 
 
 
 
40
  wp_register_script(
41
  'saswp-faq-js-reg',
42
  SASWP_PLUGIN_URL . '/modules/gutenberg/assets/blocks/faq.js',
65
 
66
  wp_enqueue_script( 'saswp-how-to-js-reg' );
67
  }
68
+ /**
69
+ * Register blocks
70
+ */
71
+ public function register_how_to() {
72
+
73
+ if ( !function_exists( 'register_block_type' ) ) {
74
+ // no Gutenberg, Abort
75
+ return;
76
+ }
77
+
78
+ register_block_type( 'saswp/how-to-block', array(
79
+ 'style' => 'saswp-gutenberg-css-reg',
80
+ 'editor_style' => 'saswp-gutenberg-css-reg-editor',
81
+ 'editor_script' => 'saswp-how-to-js-reg',
82
+ 'render_callback' => array( $this, 'render_how_to_data' ),
83
+ ) );
84
+
85
+
86
+ }
87
  /**
88
  * Register blocks
89
  */
145
  }
146
 
147
  public static function render_how_to_data( $attributes ) {
148
+
149
  ob_start();
150
 
151
  if ( !isset( $attributes ) ) {
155
  }
156
 
157
  echo '<div class="saswp-how-to-block-section">';
158
+
159
+ echo '<div class="saswp-how-to-block-steps">';
160
 
161
  if(isset($attributes['hasDuration'])){
162
  echo '<p class="saswp-how-to-total-time">';
163
+ echo '<span class="saswp-how-to-duration-time-text"><strong>Time Needed :</strong> </span>';
164
 
165
  echo esc_attr($attributes['days']).' days '.esc_attr($attributes['hours']).' hours '.esc_attr($attributes['minutes']).' minutes';
166
  echo '</p>';
192
  }else{
193
  echo '</ul>';
194
  }
195
+ }
196
+ echo '</div>';
197
+
198
+ echo '<div class="saswp-how-to-block-tools">';
199
+
200
+ if(!empty($attributes['tools'])){
201
+
202
+ echo '<h5>'.saswp_label_text('translation-tools').'</h5>';
203
+
204
+ echo '<ul>';
205
+ foreach($attributes['tools'] as $val){
206
+ if($val['name']){
207
+ echo '<li>'. esc_attr($val['name']).'</li>';
208
+ }
209
+
210
+ }
211
+ echo '</ul>';
212
+
213
  }
214
 
215
+ echo '</div>';
216
+
217
+ echo '<div class="saswp-how-to-block-material">';
218
+
219
+ if(!empty($attributes['materials'])){
220
+
221
+ echo '<h5>'.saswp_label_text('translation-materials').'</h5>';
222
+
223
+ echo '<ul>';
224
+ foreach($attributes['materials'] as $val){
225
+ if($val['name']){
226
+ echo '<li>'. esc_attr($val['name']).'</li>';
227
+ }
228
+
229
+ }
230
+ echo '</ul>';
231
+
232
+ }
233
+
234
+ echo '</div>';
235
+
236
  echo '</div>';
237
 
238
  return ob_get_clean();
239
  }
240
+
241
+ public function saswp_add_blocks_categories($categories){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
  $categories[] = array(
244
  'slug' => 'saswp-blocks',
252
  /**
253
  * Return the unique instance
254
  */
255
+ public static function get_instance() {
256
  if ( null == self::$instance ) {
257
  self::$instance = new self;
258
  }
output/compatibility.php CHANGED
@@ -98,7 +98,7 @@ class saswp_output_compatibility{
98
 
99
  global $wp_filter;
100
 
101
- if(isset($wp_filter['wp_footer'])){
102
 
103
  $callbacks = $wp_filter['wp_footer']->callbacks;
104
 
98
 
99
  global $wp_filter;
100
 
101
+ if(isset($wp_filter['wp_footer']) && is_object($wp_filter['wp_footer'])){
102
 
103
  $callbacks = $wp_filter['wp_footer']->callbacks;
104
 
output/output.php CHANGED
@@ -8,6 +8,38 @@
8
  * @version 1.0
9
  */
10
  if (! defined('ABSPATH') ) exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  /**
12
  * Function generates knowledge graph schema
13
  * @global type $sd_data
@@ -403,8 +435,56 @@ function saswp_schema_output() {
403
  $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
404
  }
405
 
 
 
406
  }
407
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  if( 'TouristDestination' === $schema_type){
409
 
410
  $input1['@context'] = saswp_context_url();
@@ -809,11 +889,7 @@ function saswp_schema_output() {
809
  }
810
  if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] ==1){
811
  $input1['comment'] = saswp_get_comments(get_the_ID());
812
- }
813
- if(!empty($extra_theme_review)){
814
- $input1 = array_merge($input1, $extra_theme_review);
815
- }
816
-
817
  $input1 = apply_filters('saswp_modify_article_schema_output', $input1 );
818
  }
819
 
@@ -1024,7 +1100,42 @@ function saswp_schema_output() {
1024
  $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1025
  }
1026
 
1027
- if( 'Review' === $schema_type ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1028
 
1029
 
1030
  if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah') ){
@@ -1260,24 +1371,26 @@ function saswp_schema_output() {
1260
 
1261
  }
1262
 
1263
- if($schema_type !='Review' || (isset($sd_data['saswp-the-events-calendar']) && $sd_data['saswp-the-events-calendar'] == 0) || (isset($sd_data['saswp-woocommerce']) && $sd_data['saswp-woocommerce'] == 0)){
1264
-
1265
- //kk star rating
1266
 
1267
- $kkstar_aggregateRating = saswp_extract_kk_star_ratings();
 
 
 
 
1268
 
1269
- if(!empty($kkstar_aggregateRating)){
1270
- $input1['aggregateRating'] = $kkstar_aggregateRating;
1271
- }
1272
 
1273
- //wp post-rating star rating
1274
 
1275
- $wp_post_rating_ar = saswp_extract_wp_post_ratings();
1276
 
1277
- if(!empty($wp_post_rating_ar)){
1278
- $input1['aggregateRating'] = $wp_post_rating_ar;
1279
- }
1280
-
1281
  }
1282
 
1283
  //Check for Featured Image
@@ -1761,14 +1874,8 @@ function saswp_site_navigation_output(){
1761
  $input = array();
1762
 
1763
  $navObj = array();
1764
-
1765
- if(isset($sd_data['saswp_site_navigation_menu']) && $sd_data['saswp_site_navigation_menu'] == 1 ){
1766
-
1767
- $input = saswp_site_navigation_fallback();
1768
-
1769
- }else{
1770
-
1771
- if(isset($sd_data['saswp_site_navigation_menu'])){
1772
 
1773
  $menu_id = $sd_data['saswp_site_navigation_menu'];
1774
  $menuItems = wp_get_nav_menu_items($menu_id);
@@ -1788,129 +1895,107 @@ function saswp_site_navigation_output(){
1788
 
1789
  }
1790
  }
1791
- }
1792
-
1793
- if($navObj){
1794
-
1795
- $input['@context'] = saswp_context_url();
1796
- $input['@graph'] = $navObj;
1797
-
1798
- }
1799
-
1800
- }
1801
-
1802
- return apply_filters('saswp_modify_sitenavigation_output', $input);
1803
- }
1804
 
1805
- function saswp_site_navigation_fallback(){
1806
-
1807
- global $sd_data;
1808
- $input = array();
1809
-
1810
- $navObj = array();
1811
-
1812
- $menuLocations = get_nav_menu_locations();
1813
-
1814
- if(!empty($menuLocations)){
1815
-
1816
- foreach($menuLocations as $type => $id){
1817
-
1818
- $menuItems = wp_get_nav_menu_items($id);
1819
-
1820
- if(isset($sd_data['saswp-'.$type])){
1821
-
1822
- if($menuItems){
1823
-
1824
- if(!saswp_non_amp()){
1825
-
1826
- if($type == 'amp-menu' || $type == 'amp-footer-menu'){
1827
-
1828
- foreach($menuItems as $items){
1829
-
1830
- $navObj[] = array(
1831
- "@context" => saswp_context_url(),
1832
- "@type" => "SiteNavigationElement",
1833
- "@id" => trailingslashit(get_home_url()).$type,
1834
- "name" => esc_attr($items->title),
1835
- "url" => esc_url($items->url)
1836
- );
1837
 
1838
- }
1839
-
1840
- }
1841
-
1842
- }else{
1843
-
1844
- if($type != 'amp-menu'){
1845
-
1846
- foreach($menuItems as $items){
1847
-
1848
- $navObj[] = array(
1849
- "@context" => saswp_context_url(),
1850
- "@type" => "SiteNavigationElement",
1851
- "@id" => trailingslashit(get_home_url()).$type,
1852
- "name" => esc_attr($items->title),
1853
- "url" => esc_url($items->url)
1854
- );
1855
-
1856
- }
1857
-
1858
  }
1859
 
1860
- }
1861
-
1862
- }
1863
-
1864
- }
1865
-
1866
- }
1867
-
1868
- }
1869
-
1870
- if($navObj){
1871
-
1872
- $input['@context'] = saswp_context_url();
1873
- $input['@graph'] = $navObj;
1874
-
1875
- }
1876
-
1877
-
1878
-
1879
- return $input;
1880
- }
1881
 
1882
  function saswp_gutenberg_how_to_schema(){
1883
 
1884
  global $post;
1885
  $input1 = array();
1886
 
1887
- if(function_exists('parse_blocks')){
1888
 
1889
  $blocks = parse_blocks($post->post_content);
1890
 
1891
  if($blocks){
1892
 
1893
- foreach ($blocks as $parse_blocks){
1894
 
1895
  if(isset($parse_blocks['blockName']) && $parse_blocks['blockName'] === 'saswp/how-to-block'){
1896
-
 
 
 
1897
  $input1['@context'] = saswp_context_url();
1898
  $input1['@type'] = 'HowTo';
1899
  $input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
1900
- $input1['name'] = saswp_get_the_title();
1901
  $input1['datePublished'] = get_the_date("Y-m-d\TH:i:s\Z");
1902
  $input1['dateModified'] = get_the_modified_date("Y-m-d\TH:i:s\Z");
1903
 
 
 
 
 
 
 
1904
  if(array_key_exists('description', $parse_blocks['attrs'])){
1905
  $input1['description'] = $parse_blocks['attrs']['description'];
1906
  }
1907
- $step = array();
1908
 
1909
- if(array_key_exists('items', $parse_blocks['attrs'])){
1910
- $step = $parse_blocks['attrs']['items'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1911
  }
1912
 
1913
- $step_arr = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1914
  if(!empty($step)){
1915
 
1916
  foreach($step as $key => $val){
@@ -1960,7 +2045,7 @@ function saswp_gutenberg_how_to_schema(){
1960
  $input1['step'] = $step_arr;
1961
 
1962
  }
1963
-
1964
  if(isset($parse_blocks['attrs']['days']) && $parse_blocks['attrs']['hours'] && $parse_blocks['attrs']['minutes']){
1965
  $input1['totalTime'] = 'P' . $parse_blocks['attrs']['days'] . 'DT' . $parse_blocks['attrs']['hours'] . 'H' . $parse_blocks['attrs']['minutes'] . 'M';
1966
  }
@@ -1971,8 +2056,7 @@ function saswp_gutenberg_how_to_schema(){
1971
 
1972
  }
1973
 
1974
- }
1975
-
1976
  return $input1;
1977
 
1978
  }
@@ -1983,7 +2067,7 @@ function saswp_gutenberg_faq_schema(){
1983
  global $post;
1984
  $input1 = array();
1985
 
1986
- if(function_exists('parse_blocks')){
1987
 
1988
  $blocks = parse_blocks($post->post_content);
1989
 
8
  * @version 1.0
9
  */
10
  if (! defined('ABSPATH') ) exit;
11
+
12
+
13
+ /**
14
+ * List of schema type who do not support aggregateRating directly
15
+ */
16
+ $without_aggregate = array(
17
+ 'Apartment',
18
+ 'House',
19
+ 'SingleFamilyResidence',
20
+ 'Article',
21
+ 'Blogposting',
22
+ 'DiscussionForumPosting',
23
+ 'DataFeed',
24
+ 'FAQ',
25
+ 'NewsArticle',
26
+ 'qanda',
27
+ 'Review',
28
+ 'TechArticle',
29
+ 'WebPage',
30
+ 'JobPosting',
31
+ 'Service',
32
+ 'Trip',
33
+ 'MedicalCondition',
34
+ 'TouristAttraction',
35
+ 'TouristDestination',
36
+ 'LandmarksOrHistoricalBuildings',
37
+ 'HinduTemple',
38
+ 'Church',
39
+ 'Mosque',
40
+ 'Person'
41
+ );
42
+
43
  /**
44
  * Function generates knowledge graph schema
45
  * @global type $sd_data
435
  $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
436
  }
437
 
438
+ $input1 = apply_filters('saswp_modify_apartment_schema_output', $input1 );
439
+
440
  }
441
+
442
+ if( 'MusicPlaylist' === $schema_type){
443
+
444
+ $input1['@context'] = saswp_context_url();
445
+ $input1['@type'] = 'MusicPlaylist';
446
+ $input1['@id'] = trailingslashit(get_permalink()).'#MusicPlaylist';
447
+
448
+ if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
449
+ $service = new saswp_output_service();
450
+ $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
451
+ }
452
+
453
+ $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
454
+
455
+ }
456
+
457
+ if( 'Book' === $schema_type){
458
+
459
+ $input1['@context'] = saswp_context_url();
460
+ $input1['@type'] = 'Book';
461
+ $input1['@id'] = trailingslashit(get_permalink()).'#Book';
462
+
463
+ if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
464
+ $service = new saswp_output_service();
465
+ $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
466
+ }
467
+
468
+ $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
469
+
470
+ }
471
+
472
+
473
+ if( 'MusicAlbum' === $schema_type){
474
+
475
+ $input1['@context'] = saswp_context_url();
476
+ $input1['@type'] = 'MusicAlbum';
477
+ $input1['@id'] = trailingslashit(get_permalink()).'#MusicAlbum';
478
+
479
+ if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] ==1){
480
+ $service = new saswp_output_service();
481
+ $input1 = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
482
+ }
483
+
484
+ $input1 = apply_filters('saswp_modify_music_album_schema_output', $input1 );
485
+
486
+ }
487
+
488
  if( 'TouristDestination' === $schema_type){
489
 
490
  $input1['@context'] = saswp_context_url();
889
  }
890
  if(isset($sd_data['saswp_comments_schema']) && $sd_data['saswp_comments_schema'] ==1){
891
  $input1['comment'] = saswp_get_comments(get_the_ID());
892
+ }
 
 
 
 
893
  $input1 = apply_filters('saswp_modify_article_schema_output', $input1 );
894
  }
895
 
1100
  $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1101
  }
1102
 
1103
+ if('Review' === $schema_type){
1104
+
1105
+ $schema_data = saswp_get_schema_data($schema_post_id, 'saswp_review_schema_details');
1106
+
1107
+ if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] == 1){
1108
+
1109
+ $service = new saswp_output_service();
1110
+ $review_markup = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
1111
+
1112
+ if($review_markup){
1113
+
1114
+ $input1['@context'] = saswp_context_url();
1115
+ $input1['@type'] = 'Review';
1116
+ $input1['@id'] = trailingslashit(saswp_get_permalink()).'#Review';
1117
+
1118
+ if(isset($review_markup['review'])){
1119
+
1120
+ $input1 = $input1 + $review_markup['review'];
1121
+
1122
+ }
1123
+
1124
+ if(isset($review_markup['item_reviewed'])){
1125
+
1126
+ $item_reviewed = array( '@type' => $schema_data['saswp_review_schema_item_type']) + $review_markup['item_reviewed'];
1127
+ $input1['itemReviewed'] = $item_reviewed;
1128
+
1129
+ }
1130
+
1131
+ }
1132
+ }
1133
+
1134
+ $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1135
+
1136
+ }
1137
+
1138
+ if( 'Reviewfff' === $schema_type ){
1139
 
1140
 
1141
  if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah') ){
1371
 
1372
  }
1373
 
1374
+ global $without_aggregate;
 
 
1375
 
1376
+ if(!in_array($schema_type, $without_aggregate)){
1377
+
1378
+ //kk star rating
1379
+
1380
+ $kkstar_aggregateRating = saswp_extract_kk_star_ratings();
1381
 
1382
+ if(!empty($kkstar_aggregateRating)){
1383
+ $input1['aggregateRating'] = $kkstar_aggregateRating;
1384
+ }
1385
 
1386
+ //wp post-rating star rating
1387
 
1388
+ $wp_post_rating_ar = saswp_extract_wp_post_ratings();
1389
 
1390
+ if(!empty($wp_post_rating_ar)){
1391
+ $input1['aggregateRating'] = $wp_post_rating_ar;
1392
+ }
1393
+
1394
  }
1395
 
1396
  //Check for Featured Image
1874
  $input = array();
1875
 
1876
  $navObj = array();
1877
+
1878
+ if(isset($sd_data['saswp_site_navigation_menu'])){
 
 
 
 
 
 
1879
 
1880
  $menu_id = $sd_data['saswp_site_navigation_menu'];
1881
  $menuItems = wp_get_nav_menu_items($menu_id);
1895
 
1896
  }
1897
  }
1898
+
1899
+ if($navObj){
 
 
 
 
 
 
 
 
 
 
 
1900
 
1901
+ $input['@context'] = saswp_context_url();
1902
+ $input['@graph'] = $navObj;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1903
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1904
  }
1905
 
1906
+ }
1907
+
1908
+ return apply_filters('saswp_modify_sitenavigation_output', $input);
1909
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1910
 
1911
  function saswp_gutenberg_how_to_schema(){
1912
 
1913
  global $post;
1914
  $input1 = array();
1915
 
1916
+ if(function_exists('parse_blocks') && is_object($post)){
1917
 
1918
  $blocks = parse_blocks($post->post_content);
1919
 
1920
  if($blocks){
1921
 
1922
+ foreach ($blocks as $parse_blocks){
1923
 
1924
  if(isset($parse_blocks['blockName']) && $parse_blocks['blockName'] === 'saswp/how-to-block'){
1925
+
1926
+ $service_object = new saswp_output_service();
1927
+ $feature_image = $service_object->saswp_get_fetaure_image();
1928
+
1929
  $input1['@context'] = saswp_context_url();
1930
  $input1['@type'] = 'HowTo';
1931
  $input1['@id'] = trailingslashit(get_permalink()).'#HowTo';
1932
+ $input1['name'] = saswp_get_the_title();
1933
  $input1['datePublished'] = get_the_date("Y-m-d\TH:i:s\Z");
1934
  $input1['dateModified'] = get_the_modified_date("Y-m-d\TH:i:s\Z");
1935
 
1936
+ if(!empty($feature_image)){
1937
+
1938
+ $input1 = array_merge($input1, $feature_image);
1939
+
1940
+ }
1941
+
1942
  if(array_key_exists('description', $parse_blocks['attrs'])){
1943
  $input1['description'] = $parse_blocks['attrs']['description'];
1944
  }
 
1945
 
1946
+ $supply = array();
1947
+ $supply_arr = array();
1948
+
1949
+ if(array_key_exists('materials', $parse_blocks['attrs'])){
1950
+ $supply = $parse_blocks['attrs']['materials'];
1951
+ }
1952
+
1953
+ if(!empty($supply)){
1954
+
1955
+ foreach($supply as $val){
1956
+
1957
+ $supply_data = array();
1958
+
1959
+ if($val['name']){
1960
+ $supply_data['@type'] = 'HowToSupply';
1961
+ $supply_data['name'] = $val['name'];
1962
+ }
1963
+
1964
+ $supply_arr[] = $supply_data;
1965
+ }
1966
+ $input1['supply'] = $supply_arr;
1967
  }
1968
 
1969
+
1970
+ $tool = array();
1971
+ $tool_arr = array();
1972
+
1973
+ if(array_key_exists('tools', $parse_blocks['attrs'])){
1974
+ $tool = $parse_blocks['attrs']['tools'];
1975
+ }
1976
+
1977
+ if(!empty($tool)){
1978
+
1979
+ foreach($tool as $val){
1980
+
1981
+ $supply_data = array();
1982
+
1983
+ if($val['name']){
1984
+ $supply_data['@type'] = 'HowToTool';
1985
+ $supply_data['name'] = $val['name'];
1986
+ }
1987
+
1988
+ $tool_arr[] = $supply_data;
1989
+ }
1990
+ $input1['tool'] = $tool_arr;
1991
+ }
1992
+
1993
+ $step = array();
1994
+ $step_arr = array();
1995
+
1996
+ if(array_key_exists('items', $parse_blocks['attrs'])){
1997
+ $step = $parse_blocks['attrs']['items'];
1998
+ }
1999
  if(!empty($step)){
2000
 
2001
  foreach($step as $key => $val){
2045
  $input1['step'] = $step_arr;
2046
 
2047
  }
2048
+
2049
  if(isset($parse_blocks['attrs']['days']) && $parse_blocks['attrs']['hours'] && $parse_blocks['attrs']['minutes']){
2050
  $input1['totalTime'] = 'P' . $parse_blocks['attrs']['days'] . 'DT' . $parse_blocks['attrs']['hours'] . 'H' . $parse_blocks['attrs']['minutes'] . 'M';
2051
  }
2056
 
2057
  }
2058
 
2059
+ }
 
2060
  return $input1;
2061
 
2062
  }
2067
  global $post;
2068
  $input1 = array();
2069
 
2070
+ if(function_exists('parse_blocks') && is_object($post)){
2071
 
2072
  $blocks = parse_blocks($post->post_content);
2073
 
output/output_post_specific.php CHANGED
@@ -205,13 +205,98 @@ function saswp_post_specific_schema_output() {
205
  $input1['mainEntity'] = $faq_question_arr;
206
  }
207
 
208
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
 
210
  if( 'JobPosting' === $schema_type){
211
 
212
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
213
-
214
-
215
  $input1['@context'] = saswp_context_url();
216
  $input1['@type'] = 'JobPosting';
217
  $input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
@@ -382,7 +467,48 @@ function saswp_post_specific_schema_output() {
382
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_region_'.$schema_id, 'saswp_array');
383
  $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_postal_code_'.$schema_id, 'saswp_array');
384
 
385
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
387
  if( 'TouristAttraction' === $schema_type){
388
 
@@ -448,14 +574,14 @@ function saswp_post_specific_schema_output() {
448
  if( 'Apartment' === $schema_type){
449
 
450
  $howto_image = get_post_meta( get_the_ID(), 'saswp_apartment_schema_image_'.$schema_id.'_detail',true);
451
-
452
-
453
  $input1['@context'] = saswp_context_url();
454
  $input1['@type'] = 'Apartment';
455
  $input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
456
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
457
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
458
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
 
459
 
460
  if(!(empty($howto_image))){
461
 
@@ -472,17 +598,62 @@ function saswp_post_specific_schema_output() {
472
  $input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_country_'.$schema_id, 'saswp_array');
473
  $input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_locality_'.$schema_id, 'saswp_array');
474
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_region_'.$schema_id, 'saswp_array');
475
- $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_postalcode_'.$schema_id, 'saswp_array');
 
 
476
 
477
- $input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_telephone_'.$schema_id, 'saswp_array');
478
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
  }
480
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  if( 'House' === $schema_type){
482
 
483
  $howto_image = get_post_meta( get_the_ID(), 'saswp_house_schema_image_'.$schema_id.'_detail',true);
484
-
485
-
486
  $input1['@context'] = saswp_context_url();
487
  $input1['@type'] = 'House';
488
  $input1['@id'] = trailingslashit(get_permalink()).'#House';
@@ -505,7 +676,7 @@ function saswp_post_specific_schema_output() {
505
  $input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_country_'.$schema_id, 'saswp_array');
506
  $input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_locality_'.$schema_id, 'saswp_array');
507
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_region_'.$schema_id, 'saswp_array');
508
- $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_postalcode_'.$schema_id, 'saswp_array');
509
 
510
  $input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_telephone_'.$schema_id, 'saswp_array');
511
 
@@ -1575,8 +1746,8 @@ function saswp_post_specific_schema_output() {
1575
  );
1576
 
1577
  if(isset($all_post_meta['saswp_product_schema_seller_'.$schema_id])){
1578
- $input1['seller']['@type'] = 'Organization';
1579
- $input1['seller']['name'] = esc_attr($all_post_meta['saswp_product_schema_seller_'.$schema_id][0]);
1580
  }
1581
  if(isset($all_post_meta['saswp_product_schema_gtin8_'.$schema_id])){
1582
  $input1['gtin8'] = esc_attr($all_post_meta['saswp_product_schema_gtin8_'.$schema_id][0]);
@@ -1584,10 +1755,7 @@ function saswp_post_specific_schema_output() {
1584
  if(isset($all_post_meta['saswp_product_schema_mpn_'.$schema_id])){
1585
  $input1['mpn'] = esc_attr($all_post_meta['saswp_product_schema_mpn_'.$schema_id][0]);
1586
  }
1587
- if(isset($all_post_meta['saswp_product_schema_isbn_'.$schema_id])){
1588
- $input1['isbn'] = esc_attr($all_post_meta['saswp_product_schema_isbn_'.$schema_id][0]);
1589
- }
1590
-
1591
  if(saswp_remove_warnings($all_post_meta, 'saswp_product_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')){
1592
 
1593
  $input1['aggregateRating'] = array(
@@ -2225,30 +2393,7 @@ function saswp_post_specific_schema_output() {
2225
 
2226
 
2227
  }
2228
-
2229
-
2230
- if($schema_type != 'Review'){
2231
-
2232
- //kk star rating
2233
-
2234
- $kkstar_aggregateRating = saswp_extract_kk_star_ratings();
2235
-
2236
- if(!empty($kkstar_aggregateRating)){
2237
- $input1['aggregateRating'] = $kkstar_aggregateRating;
2238
- }
2239
-
2240
- //wp post-rating star rating
2241
-
2242
- $wp_post_rating_ar = saswp_extract_wp_post_ratings();
2243
-
2244
- if(!empty($wp_post_rating_ar)){
2245
- $input1['aggregateRating'] = $wp_post_rating_ar;
2246
- }
2247
-
2248
-
2249
- }
2250
-
2251
-
2252
  if( !empty($input1) && !isset($input1['image'])){
2253
 
2254
  $service_object = new saswp_output_service();
205
  $input1['mainEntity'] = $faq_question_arr;
206
  }
207
 
208
+ }
209
+
210
+ if( 'MusicPlaylist' === $schema_type){
211
+
212
+ $input1['@context'] = saswp_context_url();
213
+ $input1['@type'] = 'MusicPlaylist';
214
+ $input1['@id'] = trailingslashit(get_permalink()).'#MusicPlaylist';
215
+ $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_url_'.$schema_id, 'saswp_array');
216
+ $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_name_'.$schema_id, 'saswp_array');
217
+ $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_playlist_description_'.$schema_id, 'saswp_array');
218
+
219
+ $faq_question = get_post_meta($schema_post_id, 'music_playlist_track_'.$schema_id, true);
220
+
221
+
222
+ $faq_question_arr = array();
223
+
224
+ if(!empty($faq_question)){
225
+
226
+ $input1['numTracks'] = count($faq_question);
227
+
228
+ foreach($faq_question as $val){
229
+
230
+ $supply_data = array();
231
+ $supply_data['@type'] = 'MusicRecording';
232
+ $supply_data['byArtist'] = $val['saswp_music_playlist_track_artist'];
233
+ $supply_data['duration'] = $val['saswp_music_playlist_track_duration'];
234
+ $supply_data['inAlbum'] = $val['saswp_music_playlist_track_inalbum'];
235
+ $supply_data['name'] = $val['saswp_music_playlist_track_name'];
236
+ $supply_data['url'] = $val['saswp_music_playlist_track_url'];
237
+
238
+ $faq_question_arr[] = $supply_data;
239
+ }
240
+ $input1['track'] = $faq_question_arr;
241
+ }
242
+
243
+ }
244
+
245
+ if( 'MusicAlbum' === $schema_type){
246
+
247
+ $input1['@context'] = saswp_context_url();
248
+ $input1['@type'] = 'MusicAlbum';
249
+ $input1['@id'] = trailingslashit(get_permalink()).'#MusicAlbum';
250
+ $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_url_'.$schema_id, 'saswp_array');
251
+ $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_name_'.$schema_id, 'saswp_array');
252
+ $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_description_'.$schema_id, 'saswp_array');
253
+ $input1['genre'] = saswp_remove_warnings($all_post_meta, 'saswp_music_album_genre_'.$schema_id, 'saswp_array');
254
+
255
+
256
+ if(isset($all_post_meta['saswp_music_album_artist_'.$schema_id][0])){
257
+
258
+ $input1['byArtist']['@type'] = 'MusicGroup';
259
+ $input1['byArtist']['name'] = $all_post_meta['saswp_music_album_artist_'.$schema_id][0];
260
+
261
+ }
262
+
263
+ $howto_image = get_post_meta( get_the_ID(), 'saswp_music_album_image_'.$schema_id.'_detail',true);
264
+
265
+ if(!(empty($howto_image))){
266
+
267
+ $input1['image']['@type'] = 'ImageObject';
268
+ $input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
269
+ $input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
270
+ $input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
271
+
272
+ }
273
+
274
+ $faq_question = get_post_meta($schema_post_id, 'music_album_track_'.$schema_id, true);
275
+
276
+ $faq_question_arr = array();
277
+
278
+ if(!empty($faq_question)){
279
+
280
+ $input1['numTracks'] = count($faq_question);
281
+
282
+ foreach($faq_question as $val){
283
+
284
+ $supply_data = array();
285
+ $supply_data['@type'] = 'MusicRecording';
286
+ $supply_data['duration'] = $val['saswp_music_album_track_duration'];
287
+ $supply_data['name'] = $val['saswp_music_album_track_name'];
288
+ $supply_data['url'] = $val['saswp_music_album_track_url'];
289
+ $faq_question_arr[] = $supply_data;
290
+ }
291
+ $input1['track'] = $faq_question_arr;
292
+ }
293
+
294
+ }
295
 
296
  if( 'JobPosting' === $schema_type){
297
 
298
  $howto_image = get_post_meta( get_the_ID(), 'saswp_jobposting_schema_ho_logo_'.$schema_id.'_detail',true);
299
+
 
300
  $input1['@context'] = saswp_context_url();
301
  $input1['@type'] = 'JobPosting';
302
  $input1['@id'] = trailingslashit(get_permalink()).'#JobPosting';
467
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_region_'.$schema_id, 'saswp_array');
468
  $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_lorh_schema_address_postal_code_'.$schema_id, 'saswp_array');
469
 
470
+ }
471
+
472
+ if( 'Book' === $schema_type){
473
+
474
+ $howto_image = get_post_meta( get_the_ID(), 'saswp_book_image_'.$schema_id.'_detail',true);
475
+
476
+ $input1['@context'] = saswp_context_url();
477
+ $input1['@type'] = 'Book';
478
+ $input1['@id'] = trailingslashit(get_permalink()).'#Book';
479
+ $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_book_url_'.$schema_id, 'saswp_array');
480
+ $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_book_name_'.$schema_id, 'saswp_array');
481
+ $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_book_description_'.$schema_id, 'saswp_array');
482
+
483
+ if(!(empty($howto_image))){
484
+
485
+ $input1['image']['@type'] = 'ImageObject';
486
+ $input1['image']['url'] = isset($howto_image['thumbnail']) ? esc_url($howto_image['thumbnail']):'';
487
+ $input1['image']['height'] = isset($howto_image['width']) ? esc_attr($howto_image['width']) :'';
488
+ $input1['image']['width'] = isset($howto_image['height']) ? esc_attr($howto_image['height']) :'';
489
+
490
+ }
491
+
492
+ $input1['author'] = saswp_remove_warnings($all_post_meta, 'saswp_book_author_'.$schema_id, 'saswp_array');
493
+ $input1['datePublished'] = isset($all_post_meta['saswp_book_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_book_date_published_'.$schema_id][0])):'';
494
+ $input1['isbn'] = saswp_remove_warnings($all_post_meta, 'saswp_book_isbn_'.$schema_id, 'saswp_array');
495
+ $input1['numberOfPages'] = saswp_remove_warnings($all_post_meta, 'saswp_book_no_of_page_'.$schema_id, 'saswp_array');
496
+ $input1['publisher'] = saswp_remove_warnings($all_post_meta, 'saswp_book_publisher_'.$schema_id, 'saswp_array');
497
+
498
+ if(isset($all_post_meta['saswp_book_price_'.$schema_id]) && isset($all_post_meta['saswp_book_price_currency_'.$schema_id])){
499
+ $input1['offers']['@type'] = 'Offer';
500
+ $input1['offers']['availability'] = saswp_remove_warnings($all_post_meta, 'saswp_book_availability_'.$schema_id, 'saswp_array');
501
+ $input1['offers']['price'] = $all_post_meta['saswp_book_price_'.$schema_id];
502
+ $input1['offers']['priceCurrency'] = $all_post_meta['saswp_book_price_currency_'.$schema_id];
503
+ }
504
+
505
+ if(isset($all_post_meta['saswp_book_enable_rating_'.$schema_id]) && isset($all_post_meta['saswp_book_rating_value_'.$schema_id]) && isset($all_post_meta['saswp_book_rating_count_'.$schema_id])){
506
+ $input1['aggregateRating']['@type'] = 'aggregateRating';
507
+ $input1['aggregateRating']['ratingValue'] = $all_post_meta['saswp_book_rating_value_'.$schema_id];
508
+ $input1['aggregateRating']['ratingCount'] = $all_post_meta['saswp_book_rating_count_'.$schema_id];
509
+ }
510
+
511
+ }
512
 
513
  if( 'TouristAttraction' === $schema_type){
514
 
574
  if( 'Apartment' === $schema_type){
575
 
576
  $howto_image = get_post_meta( get_the_ID(), 'saswp_apartment_schema_image_'.$schema_id.'_detail',true);
577
+
 
578
  $input1['@context'] = saswp_context_url();
579
  $input1['@type'] = 'Apartment';
580
  $input1['@id'] = trailingslashit(get_permalink()).'#Apartment';
581
  $input1['url'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_url_'.$schema_id, 'saswp_array');
582
  $input1['name'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_name_'.$schema_id, 'saswp_array');
583
  $input1['description'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_description_'.$schema_id, 'saswp_array');
584
+ $input1['floorSize'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_floor_size_'.$schema_id, 'saswp_array');
585
 
586
  if(!(empty($howto_image))){
587
 
598
  $input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_country_'.$schema_id, 'saswp_array');
599
  $input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_locality_'.$schema_id, 'saswp_array');
600
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_region_'.$schema_id, 'saswp_array');
601
+ $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_postalcode_'.$schema_id, 'saswp_array');
602
+
603
+ $input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_apartment_schema_telephone_'.$schema_id, 'saswp_array');
604
 
605
+ if(isset($all_post_meta['saswp_apartment_schema_latitude_'.$schema_id][0]) && isset($all_post_meta['saswp_apartment_schema_longitude_'.$schema_id][0])){
606
 
607
+ $input1['geo']['@type'] = 'GeoCoordinates';
608
+ $input1['geo']['latitude'] = $all_post_meta['saswp_apartment_schema_latitude_'.$schema_id][0];
609
+ $input1['geo']['longitude'] = $all_post_meta['saswp_apartment_schema_longitude_'.$schema_id][0];
610
+
611
+ }
612
+
613
+ $itinerary = get_post_meta($schema_post_id, 'apartment_amenities_'.$schema_id, true);
614
+
615
+ $itinerary_arr = array();
616
+
617
+ if(!empty($itinerary)){
618
+
619
+ foreach($itinerary as $val){
620
+
621
+ $supply_data = array();
622
+ $supply_data['@type'] = 'LocationFeatureSpecification';
623
+ $supply_data['name'] = $val['saswp_apartment_amenities_name'];
624
+
625
+ $itinerary_arr[] = $supply_data;
626
+ }
627
+
628
+ $input1['amenityFeature'] = $itinerary_arr;
629
  }
630
 
631
+ $add_property = get_post_meta($schema_post_id, 'additional_property_'.$schema_id, true);
632
+
633
+ $add_property_arr = array();
634
+
635
+ if(!empty($add_property)){
636
+
637
+ foreach($add_property as $val){
638
+
639
+ $supply_data = array();
640
+ $supply_data['@type'] = 'PropertyValue';
641
+ $supply_data['name'] = $val['saswp_apartment_additional_property_name'];
642
+ $supply_data[$val['saswp_apartment_additional_property_code_type']] = $val['saswp_apartment_additional_property_code_value'];
643
+ $supply_data['value'] = $val['saswp_apartment_additional_property_value'];
644
+
645
+ $add_property_arr[] = $supply_data;
646
+ }
647
+
648
+ $input1['additionalProperty'] = $add_property_arr;
649
+ }
650
+
651
+ }
652
+
653
  if( 'House' === $schema_type){
654
 
655
  $howto_image = get_post_meta( get_the_ID(), 'saswp_house_schema_image_'.$schema_id.'_detail',true);
656
+
 
657
  $input1['@context'] = saswp_context_url();
658
  $input1['@type'] = 'House';
659
  $input1['@id'] = trailingslashit(get_permalink()).'#House';
676
  $input1['address']['addressCountry'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_country_'.$schema_id, 'saswp_array');
677
  $input1['address']['addressLocality'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_locality_'.$schema_id, 'saswp_array');
678
  $input1['address']['addressRegion'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_region_'.$schema_id, 'saswp_array');
679
+ $input1['address']['PostalCode'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_postalcode_'.$schema_id, 'saswp_array');
680
 
681
  $input1['telephone'] = saswp_remove_warnings($all_post_meta, 'saswp_house_schema_telephone_'.$schema_id, 'saswp_array');
682
 
1746
  );
1747
 
1748
  if(isset($all_post_meta['saswp_product_schema_seller_'.$schema_id])){
1749
+ $input1['offers']['seller']['@type'] = 'Organization';
1750
+ $input1['offers']['seller']['name'] = esc_attr($all_post_meta['saswp_product_schema_seller_'.$schema_id][0]);
1751
  }
1752
  if(isset($all_post_meta['saswp_product_schema_gtin8_'.$schema_id])){
1753
  $input1['gtin8'] = esc_attr($all_post_meta['saswp_product_schema_gtin8_'.$schema_id][0]);
1755
  if(isset($all_post_meta['saswp_product_schema_mpn_'.$schema_id])){
1756
  $input1['mpn'] = esc_attr($all_post_meta['saswp_product_schema_mpn_'.$schema_id][0]);
1757
  }
1758
+
 
 
 
1759
  if(saswp_remove_warnings($all_post_meta, 'saswp_product_schema_enable_rating_'.$schema_id, 'saswp_array') == 1 && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_rating_'.$schema_id, 'saswp_array') && saswp_remove_warnings($all_post_meta, 'saswp_product_schema_review_count_'.$schema_id, 'saswp_array')){
1760
 
1761
  $input1['aggregateRating'] = array(
2393
 
2394
 
2395
  }
2396
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2397
  if( !empty($input1) && !isset($input1['image'])){
2398
 
2399
  $service_object = new saswp_output_service();
output/service.php CHANGED
@@ -257,21 +257,141 @@ Class saswp_output_service{
257
 
258
  }
259
  public function saswp_replace_with_custom_fields_value($input1, $schema_post_id){
260
-
261
  $custom_fields = get_post_meta($schema_post_id, 'saswp_meta_list_val', true);
262
-
 
 
 
263
  if(!empty($custom_fields)){
264
 
265
- $schema_type = get_post_meta( $schema_post_id, 'schema_type', true);
266
-
267
- foreach ($custom_fields as $key => $field){
268
 
269
  $custom_fields[$key] = $this->saswp_get_meta_list_value($key, $field, $schema_post_id);
270
 
271
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
 
273
  switch ($schema_type) {
274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  case 'Article':
276
 
277
  if(isset($custom_fields['saswp_article_main_entity_of_page'])){
@@ -312,14 +432,7 @@ Class saswp_output_service{
312
  }
313
  if(isset($custom_fields['saswp_article_organization_logo'])){
314
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_article_organization_logo'];
315
- }
316
- if(isset($custom_fields['saswp_article_rating_value']) && isset($custom_fields['saswp_article_rating_count'])){
317
- $input1['aggregateRating']['@type'] = 'AggregateRating';
318
- $input1['aggregateRating']['worstRating'] = 0;
319
- $input1['aggregateRating']['bestRating'] = 5;
320
- $input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_article_rating_value'];
321
- $input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_article_rating_count'];
322
- }
323
  break;
324
 
325
  case 'HowTo':
@@ -578,16 +691,6 @@ Class saswp_output_service{
578
  if(isset($custom_fields['saswp_newsarticle_organization_logo'])){
579
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_newsarticle_organization_logo'];
580
  }
581
-
582
- if(isset($custom_fields['saswp_newsarticle_rating_value']) && isset($custom_fields['saswp_newsarticle_rating_count'])){
583
- $input1['aggregateRating']['@type'] = 'AggregateRating';
584
- $input1['aggregateRating']['worstRating'] = 0;
585
- $input1['aggregateRating']['bestRating'] = 5;
586
- $input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_newsarticle_rating_value'];
587
- $input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_newsarticle_rating_count'];
588
- }
589
-
590
-
591
 
592
  break;
593
 
@@ -730,14 +833,7 @@ Class saswp_output_service{
730
  }
731
  if(isset($custom_fields['saswp_tech_article_organization_logo'])){
732
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_tech_article_organization_logo'];
733
- }
734
- if(isset($custom_fields['saswp_tech_article_rating_value']) && isset($custom_fields['saswp_tech_article_rating_count'])){
735
- $input1['aggregateRating']['@type'] = 'AggregateRating';
736
- $input1['aggregateRating']['worstRating'] = 0;
737
- $input1['aggregateRating']['bestRating'] = 5;
738
- $input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_tech_article_rating_value'];
739
- $input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_tech_article_rating_count'];
740
- }
741
  break;
742
 
743
  case 'Course':
@@ -912,9 +1008,6 @@ Class saswp_output_service{
912
  $input1['brand']['name'] = $custom_fields['saswp_product_brand'];
913
  }
914
 
915
- if(isset($custom_fields['saswp_product_isbn'])){
916
- $input1['isbn'] = $custom_fields['saswp_product_isbn'];
917
- }
918
  if(isset($custom_fields['saswp_product_mpn'])){
919
  $input1['mpn'] = $custom_fields['saswp_product_mpn'];
920
  }
@@ -1014,61 +1107,6 @@ Class saswp_output_service{
1014
 
1015
  break;
1016
 
1017
- case 'Review':
1018
- if(isset($custom_fields['saswp_review_schema_item_type'])){
1019
- $input1['itemReviewed']['@type'] = $custom_fields['saswp_review_schema_item_type'];
1020
- }
1021
- if(isset($custom_fields['saswp_review_schema_name'])){
1022
- $input1['itemReviewed']['name'] = $custom_fields['saswp_review_schema_name'];
1023
- }
1024
- if(isset($custom_fields['saswp_review_schema_description'])){
1025
- $input1['description'] = $custom_fields['saswp_review_schema_description'];
1026
- }
1027
-
1028
- if(isset($custom_fields['saswp_review_schema_date_published'])){
1029
- $input1['datePublished'] = $custom_fields['saswp_review_schema_date_published'];
1030
- }
1031
- if(isset($custom_fields['saswp_review_schema_date_modified'])){
1032
- $input1['dateModified'] = $custom_fields['saswp_review_schema_date_modified'];
1033
- }
1034
- if(isset($custom_fields['saswp_review_schema_image'])){
1035
- $input1['itemReviewed']['image'] = $custom_fields['saswp_review_schema_image'];
1036
- }
1037
-
1038
- if(isset($custom_fields['saswp_review_schema_price_range'])){
1039
- $input1['itemReviewed']['priceRange'] = $custom_fields['saswp_review_schema_price_range'];
1040
- }
1041
- if(isset($custom_fields['saswp_review_schema_street_address'])){
1042
- $input1['itemReviewed']['address']['streetAddress'] = $custom_fields['saswp_review_schema_street_address'];
1043
- }
1044
- if(isset($custom_fields['saswp_review_schema_locality'])){
1045
- $input1['itemReviewed']['address']['addressLocality'] = $custom_fields['saswp_review_schema_locality'];
1046
- }
1047
-
1048
- if(isset($custom_fields['saswp_review_schema_region'])){
1049
- $input1['itemReviewed']['address']['addressRegion'] = $custom_fields['saswp_review_schema_region'];
1050
- }
1051
- if(isset($custom_fields['saswp_review_schema_postal_code'])){
1052
- $input1['itemReviewed']['address']['postalCode'] = $custom_fields['saswp_review_schema_postal_code'];
1053
- }
1054
- if(isset($custom_fields['saswp_review_schema_country'])){
1055
- $input1['itemReviewed']['address']['addressCountry'] = $custom_fields['saswp_review_schema_country'];
1056
- }
1057
- if(isset($custom_fields['saswp_review_schema_telephone'])){
1058
- $input1['itemReviewed']['telephone'] = $custom_fields['saswp_review_schema_telephone'];
1059
- }
1060
- if(isset($custom_fields['saswp_review_author_name'])){
1061
- $input1['author']['name'] = $custom_fields['saswp_review_author_name'];
1062
- }
1063
-
1064
- if(isset($custom_fields['saswp_review_schema_rating_value']) && isset($custom_fields['saswp_review_schema_review_count'])){
1065
- $input1['aggregateRating']['@type'] = 'Rating';
1066
- $input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_review_schema_rating_value'];
1067
- $input1['aggregateRating']['bestRating'] = $custom_fields['saswp_review_schema_review_count'];
1068
- }
1069
-
1070
- break;
1071
-
1072
  case 'VideoObject':
1073
 
1074
  if(isset($custom_fields['saswp_video_object_url'])){
@@ -1725,7 +1763,16 @@ Class saswp_output_service{
1725
 
1726
  default:
1727
  break;
1728
- }
 
 
 
 
 
 
 
 
 
1729
  }
1730
 
1731
  return $input1;
@@ -1744,8 +1791,25 @@ Class saswp_output_service{
1744
  return;
1745
  }
1746
 
1747
- $schema_type = isset( $_POST['schema_type'] ) ? sanitize_text_field( $_POST['schema_type'] ) : '';
1748
- $meta_fields = $this->saswp_get_all_schema_type_fields($schema_type);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1749
 
1750
  wp_send_json( $meta_fields );
1751
  }
@@ -1838,9 +1902,9 @@ Class saswp_output_service{
1838
  $date_on_sale = $product->get_date_on_sale_to();
1839
  $product_details['product_name'] = $product->get_title();
1840
 
1841
- if($product->get_short_description()){
1842
 
1843
- $product_details['product_description'] = $product->get_short_description();
1844
 
1845
  }else if($product->get_description()){
1846
 
@@ -2281,9 +2345,7 @@ Class saswp_output_service{
2281
  'saswp_newsarticle_author_name' => 'Author Name',
2282
  'saswp_newsarticle_author_image' => 'Author Image',
2283
  'saswp_newsarticle_organization_name' => 'Organization Name',
2284
- 'saswp_newsarticle_organization_logo' => 'Organization Logo',
2285
- 'saswp_newsarticle_rating_value' => 'Rating Value',
2286
- 'saswp_newsarticle_rating_count' => 'Rating Count',
2287
  );
2288
 
2289
  break;
@@ -2321,10 +2383,7 @@ Class saswp_output_service{
2321
  'saswp_article_date_modified' => 'Date Modified',
2322
  'saswp_article_author_name' => 'Author Name',
2323
  'saswp_article_organization_name' => 'Organization Name',
2324
- 'saswp_article_organization_logo' => 'Organization Logo',
2325
- 'saswp_article_rating_value' => 'Rating Value',
2326
- 'saswp_article_rating_count' => 'Rating Count',
2327
-
2328
  );
2329
  break;
2330
 
@@ -2343,10 +2402,7 @@ Class saswp_output_service{
2343
  'saswp_tech_article_date_modified' => 'Date Modified',
2344
  'saswp_tech_article_author_name' => 'Author Name',
2345
  'saswp_tech_article_organization_name' => 'Organization Name',
2346
- 'saswp_tech_article_organization_logo' => 'Organization Logo',
2347
- 'saswp_tech_article_rating_value' => 'Rating Value',
2348
- 'saswp_tech_article_rating_count' => 'Rating Count',
2349
-
2350
  );
2351
  break;
2352
 
@@ -2450,8 +2506,7 @@ Class saswp_output_service{
2450
  'saswp_product_availability' => 'Availability',
2451
  'saswp_product_condition' => 'Product Condition',
2452
  'saswp_product_sku' => 'SKU',
2453
- 'saswp_product_mpn' => 'MPN',
2454
- 'saswp_product_isbn' => 'ISBN',
2455
  'saswp_product_gtin8' => 'GTIN 8',
2456
  'saswp_product_seller' => 'Seller Organization',
2457
  'saswp_product_rating' => 'Rating',
@@ -2604,28 +2659,6 @@ Class saswp_output_service{
2604
 
2605
  break;
2606
 
2607
- case 'Review':
2608
- $meta_field = array(
2609
-
2610
- // 'saswp_review_schema_item_type' => 'Item Reviewed Type',
2611
- 'saswp_review_schema_name' => 'Name',
2612
- 'saswp_review_schema_description' => 'Description',
2613
- 'saswp_review_schema_date_published' => 'Date Published',
2614
- 'saswp_review_schema_date_modified' => 'Date Modified',
2615
- 'saswp_review_schema_image' => 'Image',
2616
- 'saswp_review_schema_price_range' => 'Price Range',
2617
- 'saswp_review_schema_street_address' => 'Street Address',
2618
- 'saswp_review_schema_locality' => 'Address Locality',
2619
- 'saswp_review_schema_region' => 'Address Region',
2620
- 'saswp_review_schema_postal_code' => 'Postal Code',
2621
- 'saswp_review_schema_country' => 'Address Country',
2622
- 'saswp_review_schema_telephone' => 'Telephone',
2623
- 'saswp_review_author_name' => 'Author Name',
2624
- 'saswp_review_schema_rating_value' => 'Rating Value',
2625
- 'saswp_review_schema_review_count' => 'Review Count',
2626
- );
2627
- break;
2628
-
2629
  case 'VideoObject':
2630
 
2631
  $meta_field = array(
@@ -2745,7 +2778,44 @@ Class saswp_output_service{
2745
  'saswp_apartment_schema_telephone' => 'Telephone'
2746
  );
2747
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2748
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2749
  case 'House':
2750
  $meta_field = array(
2751
 
@@ -3249,12 +3319,16 @@ Class saswp_output_service{
3249
  }
3250
 
3251
  if(!empty($attach_images) && is_array($attach_images)){
3252
-
3253
  if(isset($input2['image'])){
3254
-
3255
- $attach_images['image'][] = $input2['image'];
3256
- $input2['image'] = $attach_images['image'];
3257
-
 
 
 
 
3258
  }else{
3259
 
3260
  if($attach_images){
257
 
258
  }
259
  public function saswp_replace_with_custom_fields_value($input1, $schema_post_id){
260
+
261
  $custom_fields = get_post_meta($schema_post_id, 'saswp_meta_list_val', true);
262
+ $review_markup = array();
263
+ $review_response = array();
264
+ $main_schema_type = '';
265
+
266
  if(!empty($custom_fields)){
267
 
268
+ foreach ($custom_fields as $key => $field){
 
 
269
 
270
  $custom_fields[$key] = $this->saswp_get_meta_list_value($key, $field, $schema_post_id);
271
 
272
+ }
273
+
274
+ $schema_type = get_post_meta( $schema_post_id, 'schema_type', true);
275
+
276
+ if($schema_type == 'Review'){
277
+
278
+ $main_schema_type = $schema_type;
279
+ $review_post_meta = get_post_meta($schema_post_id, 'saswp_review_schema_details', true);
280
+ $schema_type = $review_post_meta['saswp_review_schema_item_type'];
281
+
282
+
283
+ if(isset($custom_fields['saswp_review_name'])){
284
+ $review_markup['name'] = $custom_fields['saswp_review_name'];
285
+ }
286
+ if(isset($custom_fields['saswp_review_description'])){
287
+ $review_markup['description'] = $custom_fields['saswp_review_description'];
288
+ }
289
+ if(isset($custom_fields['saswp_review_rating_value'])){
290
+ $review_markup['reviewRating']['@type'] = 'Rating';
291
+ $review_markup['reviewRating']['ratingValue'] = $custom_fields['saswp_review_rating_value'];
292
+ $review_markup['reviewRating']['bestRating'] = 5;
293
+ $review_markup['reviewRating']['worstRating'] = 1;
294
+ }
295
+ if(isset($custom_fields['saswp_review_publisher'])){
296
+ $review_markup['publisher']['@type'] = 'Organization';
297
+ $review_markup['publisher']['name'] = $custom_fields['saswp_review_publisher'];
298
+ }
299
+ if(isset($custom_fields['saswp_review_body'])){
300
+ $review_markup['reviewBody'] = $custom_fields['saswp_review_body'];
301
+ }
302
+ if(isset($custom_fields['saswp_review_author'])){
303
+ $review_markup['author']['@type'] = 'Person';
304
+ $review_markup['author']['name'] = $custom_fields['saswp_review_author'];
305
+ }
306
+
307
+ }
308
+
309
 
310
  switch ($schema_type) {
311
 
312
+ case 'Book':
313
+
314
+ if(isset($custom_fields['saswp_book_name'])){
315
+ $input1['name'] = $custom_fields['saswp_book_name'];
316
+ }
317
+ if(isset($custom_fields['saswp_book_description'])){
318
+ $input1['description'] = $custom_fields['saswp_book_description'];
319
+ }
320
+ if(isset($custom_fields['saswp_book_url'])){
321
+ $input1['url'] = $custom_fields['saswp_book_url'];
322
+ }
323
+ if(isset($custom_fields['saswp_book_author'])){
324
+ $input1['author'] = $custom_fields['saswp_book_author'];
325
+ }
326
+ if(isset($custom_fields['saswp_book_isbn'])){
327
+ $input1['isbn'] = $custom_fields['saswp_book_isbn'];
328
+ }
329
+ if(isset($custom_fields['saswp_book_publisher'])){
330
+ $input1['publisher'] = $custom_fields['saswp_book_publisher'];
331
+ }
332
+ if(isset($custom_fields['saswp_book_no_of_page'])){
333
+ $input1['numberOfPages'] = $custom_fields['saswp_book_no_of_page'];
334
+ }
335
+ if(isset($custom_fields['saswp_book_image'])){
336
+ $input1['image'] = $custom_fields['saswp_book_image'];
337
+ }
338
+ if(isset($custom_fields['saswp_book_date_published'])){
339
+ $input1['datePublished'] = date('Y-m-d\TH:i:s\Z',strtotime($custom_fields['saswp_book_date_published']));
340
+ }
341
+ if(isset($custom_fields['saswp_book_price_currency']) && isset($custom_fields['saswp_book_price'])){
342
+ $input1['offers']['@type'] = 'Offer';
343
+ $input1['offers']['availability'] = $custom_fields['saswp_book_availability'];
344
+ $input1['offers']['price'] = $custom_fields['saswp_book_price'];
345
+ $input1['offers']['priceCurrency'] = $custom_fields['saswp_book_price_currency'];
346
+ }
347
+ if(isset($custom_fields['saswp_book_rating_value']) && isset($custom_fields['saswp_book_rating_count'])){
348
+ $input1['aggregateRating']['@type'] = 'aggregateRating';
349
+ $input1['aggregateRating']['worstRating'] = 0;
350
+ $input1['aggregateRating']['bestRating'] = 5;
351
+ $input1['aggregateRating']['ratingValue'] = $custom_fields['saswp_book_rating_value'];
352
+ $input1['aggregateRating']['ratingCount'] = $custom_fields['saswp_book_rating_count'];
353
+ }
354
+
355
+ break;
356
+
357
+ case 'MusicPlaylist':
358
+
359
+ if(isset($custom_fields['saswp_music_playlist_name'])){
360
+ $input1['name'] = $custom_fields['saswp_music_playlist_name'];
361
+ }
362
+ if(isset($custom_fields['saswp_music_playlist_description'])){
363
+ $input1['description'] = $custom_fields['saswp_music_playlist_description'];
364
+ }
365
+ if(isset($custom_fields['saswp_music_playlist_url'])){
366
+ $input1['url'] = $custom_fields['saswp_music_playlist_url'];
367
+ }
368
+
369
+ break;
370
+
371
+ case 'MusicAlbum':
372
+
373
+ if(isset($custom_fields['saswp_music_album_name'])){
374
+ $input1['name'] = $custom_fields['saswp_music_album_name'];
375
+ }
376
+ if(isset($custom_fields['saswp_music_album_url'])){
377
+ $input1['url'] = $custom_fields['saswp_music_album_url'];
378
+ }
379
+ if(isset($custom_fields['saswp_music_album_description'])){
380
+ $input1['description'] = $custom_fields['saswp_music_album_description'];
381
+ }
382
+ if(isset($custom_fields['saswp_music_album_genre'])){
383
+ $input1['genre'] = $custom_fields['saswp_music_album_genre'];
384
+ }
385
+ if(isset($custom_fields['saswp_music_album_image'])){
386
+ $input1['image'] = $custom_fields['saswp_music_album_image'];
387
+ }
388
+ if(isset($custom_fields['saswp_music_album_artist'])){
389
+ $input1['byArtist']['@type'] = 'MusicGroup';
390
+ $input1['byArtist']['name'] = $custom_fields['saswp_music_album_artist'];
391
+ }
392
+
393
+ break;
394
+
395
  case 'Article':
396
 
397
  if(isset($custom_fields['saswp_article_main_entity_of_page'])){
432
  }
433
  if(isset($custom_fields['saswp_article_organization_logo'])){
434
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_article_organization_logo'];
435
+ }
 
 
 
 
 
 
 
436
  break;
437
 
438
  case 'HowTo':
691
  if(isset($custom_fields['saswp_newsarticle_organization_logo'])){
692
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_newsarticle_organization_logo'];
693
  }
 
 
 
 
 
 
 
 
 
 
694
 
695
  break;
696
 
833
  }
834
  if(isset($custom_fields['saswp_tech_article_organization_logo'])){
835
  $input1['Publisher']['logo']['url'] = $custom_fields['saswp_tech_article_organization_logo'];
836
+ }
 
 
 
 
 
 
 
837
  break;
838
 
839
  case 'Course':
1008
  $input1['brand']['name'] = $custom_fields['saswp_product_brand'];
1009
  }
1010
 
 
 
 
1011
  if(isset($custom_fields['saswp_product_mpn'])){
1012
  $input1['mpn'] = $custom_fields['saswp_product_mpn'];
1013
  }
1107
 
1108
  break;
1109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1110
  case 'VideoObject':
1111
 
1112
  if(isset($custom_fields['saswp_video_object_url'])){
1763
 
1764
  default:
1765
  break;
1766
+ }
1767
+
1768
+ if($main_schema_type == 'Review'){
1769
+
1770
+ $review_response['item_reviewed'] = $input1;
1771
+ $review_response['review'] = $review_markup;
1772
+
1773
+ return $review_response;
1774
+ }
1775
+
1776
  }
1777
 
1778
  return $input1;
1791
  return;
1792
  }
1793
 
1794
+ $schema_subtype = isset( $_POST['schema_subtype'] ) ? sanitize_text_field( $_POST['schema_subtype'] ) : '';
1795
+ $schema_type = isset( $_POST['schema_type'] ) ? sanitize_text_field( $_POST['schema_type'] ) : '';
1796
+
1797
+ if($schema_type == 'Review'){
1798
+
1799
+ $meta_fields = $this->saswp_get_all_schema_type_fields($schema_subtype);
1800
+
1801
+ $review_fields['saswp_review_name'] = 'Review Name';
1802
+ $review_fields['saswp_review_description'] = 'Review Description';
1803
+ $review_fields['saswp_review_body'] = 'Review Body';
1804
+ $review_fields['saswp_review_author'] = 'Review Author';
1805
+ $review_fields['saswp_review_publisher'] = 'Review Publisher';
1806
+ $review_fields['saswp_review_rating_value'] = 'Review Rating Value';
1807
+
1808
+ $meta_fields = $review_fields + $meta_fields;
1809
+
1810
+ }else{
1811
+ $meta_fields = $this->saswp_get_all_schema_type_fields($schema_type);
1812
+ }
1813
 
1814
  wp_send_json( $meta_fields );
1815
  }
1902
  $date_on_sale = $product->get_date_on_sale_to();
1903
  $product_details['product_name'] = $product->get_title();
1904
 
1905
+ if($product->get_short_description() && $product->get_description()){
1906
 
1907
+ $product_details['product_description'] = $product->get_short_description().' '.$product->get_description();
1908
 
1909
  }else if($product->get_description()){
1910
 
2345
  'saswp_newsarticle_author_name' => 'Author Name',
2346
  'saswp_newsarticle_author_image' => 'Author Image',
2347
  'saswp_newsarticle_organization_name' => 'Organization Name',
2348
+ 'saswp_newsarticle_organization_logo' => 'Organization Logo'
 
 
2349
  );
2350
 
2351
  break;
2383
  'saswp_article_date_modified' => 'Date Modified',
2384
  'saswp_article_author_name' => 'Author Name',
2385
  'saswp_article_organization_name' => 'Organization Name',
2386
+ 'saswp_article_organization_logo' => 'Organization Logo'
 
 
 
2387
  );
2388
  break;
2389
 
2402
  'saswp_tech_article_date_modified' => 'Date Modified',
2403
  'saswp_tech_article_author_name' => 'Author Name',
2404
  'saswp_tech_article_organization_name' => 'Organization Name',
2405
+ 'saswp_tech_article_organization_logo' => 'Organization Logo',
 
 
 
2406
  );
2407
  break;
2408
 
2506
  'saswp_product_availability' => 'Availability',
2507
  'saswp_product_condition' => 'Product Condition',
2508
  'saswp_product_sku' => 'SKU',
2509
+ 'saswp_product_mpn' => 'MPN',
 
2510
  'saswp_product_gtin8' => 'GTIN 8',
2511
  'saswp_product_seller' => 'Seller Organization',
2512
  'saswp_product_rating' => 'Rating',
2659
 
2660
  break;
2661
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2662
  case 'VideoObject':
2663
 
2664
  $meta_field = array(
2778
  'saswp_apartment_schema_telephone' => 'Telephone'
2779
  );
2780
  break;
2781
+ case 'MusicPlaylist':
2782
+ $meta_field = array(
2783
+ 'saswp_music_playlist_name' => 'Name',
2784
+ 'saswp_music_playlist_description' => 'Description',
2785
+ 'saswp_music_playlist_url' => 'URL',
2786
+ );
2787
+ break;
2788
+
2789
+ case 'MusicAlbum':
2790
+ $meta_field = array(
2791
+ 'saswp_music_album_name' => 'Name',
2792
+ 'saswp_music_album_description' => 'Description',
2793
+ 'saswp_music_album_genre' => 'Genre',
2794
+ 'saswp_music_album_image' => 'Image',
2795
+ 'saswp_music_album_artist' => 'Artist',
2796
+ 'saswp_music_album_url' => 'URL',
2797
+ );
2798
+ break;
2799
 
2800
+ case 'Book':
2801
+ $meta_field = array(
2802
+ 'saswp_book_name' => 'Name',
2803
+ 'saswp_book_description' => 'Description',
2804
+ 'saswp_book_url' => 'URL',
2805
+ 'saswp_book_image' => 'Image',
2806
+ 'saswp_book_author' => 'Author',
2807
+ 'saswp_book_isbn' => 'Isbn',
2808
+ 'saswp_book_no_of_page' => 'Number Of Page',
2809
+ 'saswp_book_publisher' => 'Publisher',
2810
+ 'saswp_book_published_date' => 'Published Date',
2811
+ 'saswp_book_availability' => 'Availability',
2812
+ 'saswp_book_price' => 'Price',
2813
+ 'saswp_book_price_currency' => 'Price Currency',
2814
+ 'saswp_book_rating_value' => 'Rating Value',
2815
+ 'saswp_book_rating_count' => 'Rating Count',
2816
+ );
2817
+ break;
2818
+
2819
  case 'House':
2820
  $meta_field = array(
2821
 
3319
  }
3320
 
3321
  if(!empty($attach_images) && is_array($attach_images)){
3322
+
3323
  if(isset($input2['image'])){
3324
+
3325
+ $featured_image = $input2['image'];
3326
+ $content_images = $attach_images['image'];
3327
+
3328
+ if($featured_image && $content_images){
3329
+ $input2['image'] = array_merge($featured_image, $content_images);
3330
+ }
3331
+
3332
  }else{
3333
 
3334
  if($attach_images){
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
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -115,6 +115,25 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
115
  == Changelog ==
116
 
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  = 1.9.7 (19 Sept 2019) =
119
 
120
  * Major Feature: Schema type blocks (How To & FAQ) have been added in Gutenberg editor
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.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
115
  == Changelog ==
116
 
117
 
118
+ = 1.9.8 (25 Sept 2019) =
119
+
120
+ * Added: The Supply and Tool for the How To Schema of Gutenberg #500
121
+ * Added: MusicPlaylist Schema Type #488
122
+ * Added: MusicAlbum Schema Type #488
123
+ * Added: Book Schema Type #488
124
+ * Added: RTL support (To fit the design with other language which start with right to left) #491
125
+ * Enhancement: In product schema add the description to the Short+Long description #477
126
+ * Bug Fixed: Added core jquery dependencies whereever js is being enqued #494
127
+ * Bug Fixed: Image size smaller than recommended size #485
128
+ * Bug Fixed: Modify Schema issue #498
129
+ * Bug Fixed: Previously set schema markups "stick" on the website by default. #475
130
+ * Bug Fixed: Review CSS are not loading based on condition #492
131
+ * Bug Fixed: Update the Reviews markup as per the new Google Update #484
132
+ * Bug Fixed: Google reviews not appearing properly on website (Design improvements) #387
133
+ * Bug Fixed: Review schema and webpage given an error "Thing is not a known valid target type for the itemReviewed property." #488
134
+ * Bug Fixed: Featured image should be placed first in schema markup before the other images present in the content #496
135
+
136
+
137
  = 1.9.7 (19 Sept 2019) =
138
 
139
  * Major Feature: Schema type blocks (How To & FAQ) have been added in Gutenberg editor
reviews/reviews_service.php CHANGED
@@ -64,7 +64,7 @@ class saswp_reviews_service {
64
  );
65
 
66
  $input1['itemReviewed'] = array(
67
- '@type' => 'Thing',
68
  'name' => saswp_get_the_title(),
69
  );
70
 
64
  );
65
 
66
  $input1['itemReviewed'] = array(
67
+ '@type' => 'Organization',
68
  'name' => saswp_get_the_title(),
69
  );
70
 
reviews/reviews_setup.php CHANGED
@@ -214,7 +214,7 @@ function saswp_enqueue_rateyo_script( $hook ) {
214
 
215
  $data = apply_filters('saswp_reviews_filter',$data,'saswp_reviews_data');
216
 
217
- wp_register_script( 'saswp-rateyo-js', SASWP_PLUGIN_URL . 'admin_section/js/jquery.rateyo.min.js', array('jquery'), SASWP_VERSION , true );
218
  wp_localize_script( 'saswp-rateyo-js', 'saswp_reviews_data', $data );
219
  wp_enqueue_script( 'saswp-rateyo-js' );
220
 
214
 
215
  $data = apply_filters('saswp_reviews_filter',$data,'saswp_reviews_data');
216
 
217
+ wp_register_script( 'saswp-rateyo-js', SASWP_PLUGIN_URL . 'admin_section/js/jquery.rateyo.min.js', array('jquery', 'jquery-ui-core'), SASWP_VERSION , true );
218
  wp_localize_script( 'saswp-rateyo-js', 'saswp_reviews_data', $data );
219
  wp_enqueue_script( 'saswp-rateyo-js' );
220
 
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.7
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.7');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -170,21 +170,10 @@ add_filter('plugin_row_meta' , 'saswp_add_plugin_meta_links', 10, 2);
170
  function saswp_add_plugin_meta_links($meta_fields, $file) {
171
 
172
  if ( SASWP_PLUGIN_BASENAME == $file ) {
173
-
174
- $plugin_url = "https://wordpress.org/support/plugin/schema-and-structured-data-for-wp";
175
- $hire_url = "https://ampforwp.com/hire/";
176
- $forum_url = "http://structured-data-for-wp.com/forum/";
177
 
178
- $meta_fields[] = "<a href='" . esc_url($forum_url) . "' target='_blank'>" . esc_html__('Support Forum', 'schema-and-structured-data-for-wp') . "</a>";
179
- $meta_fields[] = "<a href='" . esc_url($hire_url) . "' target='_blank'>" . esc_html__('Hire Us', 'schema-and-structured-data-for-wp') . "</a>";
180
- $meta_fields[] = "<a href='" . esc_url($plugin_url) . "/reviews#new-post' target='_blank' title='" . esc_html__('Rate', 'schema-and-structured-data-for-wp') . "'>
181
- <i class='saswp-wdi-rate-stars'>"
182
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
183
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
184
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
185
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
186
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
187
- . "</i></a>";
188
  }
189
 
190
  return $meta_fields;
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.8
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.8');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
170
  function saswp_add_plugin_meta_links($meta_fields, $file) {
171
 
172
  if ( SASWP_PLUGIN_BASENAME == $file ) {
173
+
174
+ $forum_url = "https://structured-data-for-wp.com/contact-us/";
 
 
175
 
176
+ $meta_fields[] = "<a href='" . esc_url($forum_url) . "' target='_blank'>" . esc_html__('Technical Support', 'schema-and-structured-data-for-wp') . "</a>";
 
 
 
 
 
 
 
 
 
177
  }
178
 
179
  return $meta_fields;
view/post_specific.php CHANGED
@@ -23,7 +23,7 @@ class saswp_post_specific {
23
  'Product' => array(
24
  'product_reviews' => 'product_reviews',
25
  ),
26
- 'DataFeed' => array(
27
  'feed_element' => 'feed_element',
28
  ),
29
  'FAQ' => array(
@@ -36,7 +36,18 @@ class saswp_post_specific {
36
  'how-to-supply' => 'howto_supply',
37
  'how-to-tool' => 'howto_tool',
38
  'how-to-step' => 'howto_step',
39
- ),
 
 
 
 
 
 
 
 
 
 
 
40
  'MedicalCondition' => array(
41
  'mc-cause' => 'mc_cause',
42
  'mc-symptom' => 'mc_symptom',
@@ -253,7 +264,86 @@ class saswp_post_specific {
253
  'name' => 'saswp_faq_question_answer',
254
  'type' => 'textarea'
255
  )
256
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  );
258
 
259
  public function __construct() {
@@ -369,18 +459,10 @@ class saswp_post_specific {
369
  if($this->screen){
370
 
371
  foreach ( $this->screen as $single_screen ) {
372
- $post_title = '';
373
- if($schema_count == 1 && $custom_option !='enable'){
374
- $all_schemas = $this->all_schema;
375
- $post_title = '('.get_post_meta($all_schemas[0]->ID, 'schema_type', true).')';
376
- if($post_title == '(local_business)'){
377
- $post_title = '(LocalBusiness)';
378
- }
379
- }
380
-
381
  add_meta_box(
382
  'post_specific',
383
- esc_html__( 'Post Specific Schema - '.$post_title, 'schema-and-structured-data-for-wp' ),
384
  array( $this, 'saswp_post_meta_box_callback' ),
385
  $single_screen,
386
  'advanced',
@@ -557,7 +639,22 @@ class saswp_post_specific {
557
 
558
  }
559
  $tabs_fields .= '</div>';
560
- $tabs_fields .= '<a data-id="'.esc_attr($schema_id).'" div_type="'.$key.'" fields_type="'.$value.'" class="button saswp_add_schema_fields_on_fly saswp-'.$key.'">'.esc_html__( 'Add '.$value, 'schema-and-structured-data-for-wp' ).'</a>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  $tabs_fields .= '</div>';
562
 
563
  }
@@ -572,19 +669,19 @@ class saswp_post_specific {
572
 
573
  public function saswp_post_meta_box_fields($post){
574
 
575
- $response_html = '';
576
- $tabs = '';
577
- $tabs_fields = '';
578
- $schema_ids = array();
579
-
580
- $schema_enable = get_post_meta($post->ID, 'saswp_enable_disable_schema', true);
581
 
582
- if(count($this->all_schema)>1){
583
 
584
  foreach($this->all_schema as $key => $schema){
585
 
586
  $advnace_status = saswp_check_advance_display_status($schema->ID);
587
-
588
  if($advnace_status !== 1){
589
  continue;
590
  }
@@ -686,74 +783,6 @@ class saswp_post_specific {
686
  $response_html .= '<input class="saswp-post-specific-schema-ids" type="hidden" value="'. json_encode($schema_ids).'">';
687
  $response_html .= '</div>';
688
 
689
- }else{
690
-
691
- $all_schema = $this->all_schema;
692
-
693
- $advnace_status = saswp_check_advance_display_status($all_schema[0]->ID);
694
-
695
- if(!$advnace_status){
696
- return '';
697
- }
698
-
699
- $response = $this->saswp_get_fields_by_schema_type($all_schema[0]->ID);
700
-
701
- $schema_ids[] = $all_schema[0]->ID;
702
- $schema_type = get_post_meta($all_schema[0]->ID, 'schema_type', true);
703
-
704
- $checked = '';
705
-
706
- if(isset($schema_enable[$all_schema[0]->ID]) && $schema_enable[$all_schema[0]->ID] == 1){
707
- $checked = 'checked';
708
- }
709
-
710
- $this->meta_fields = $response;
711
- $output = $this->saswp_saswp_post_specific( $post, $all_schema[0]->ID );
712
- $tabs_fields .= '<div>';
713
- $tabs_fields .= '<div class="saswp-single-post-restore"><a href="#" class="saswp-restore-post-schema button saswp-tab-links selected" saswp-schema-type="'.esc_attr($schema_type).'">'.esc_html__( 'Restore Default', 'schema-and-structured-data-for-wp' ).'</a>'
714
- . '<label class="saswp-switch" style="margin-left:10px;">'
715
- . '<input type="checkbox" class="saswp-schema-type-toggle" value="1" data-schema-id="'.esc_attr($all_schema[0]->ID).'" data-post-id="'.esc_attr($post->ID).'" '.$checked.'>'
716
- . '<span class="saswp-slider"></span>'
717
- . '</div>';
718
- $tabs_fields .= '<div id="saswp_specific_'.esc_attr($all_schema[0]->ID).'" class="saswp-post-specific-wrapper">';
719
- $tabs_fields .= '<div class="saswp-table-create-onload">';
720
- $tabs_fields .= '<table class="form-table"><tbody>' . $output . '</tbody></table>';
721
- $tabs_fields .= '</div>';
722
-
723
- $tabs_fields .= $this->saswp_schema_fields_html_on_the_fly($schema_type, $all_schema[0]->ID, $post->ID);
724
-
725
- $tabs_fields .= '</div>';
726
-
727
- //custom schema starts here
728
-
729
- $custom_markup = get_post_meta($post->ID, 'saswp_custom_schema_field', true);
730
-
731
- $tabs_fields.= '<div class="saswp-add-custom-schema-div">';
732
-
733
- if($custom_markup){
734
-
735
- $tabs_fields.= '<a style="display:none;" class="button saswp-add-custom-schema">'.esc_html__( 'Add Custom Schema', 'schema-and-structured-data-for-wp' ).'</a>' ;
736
- $tabs_fields.= '<div class="saswp-add-custom-schema-field">';
737
-
738
- }else{
739
-
740
- $tabs_fields.= '<a class="button saswp-add-custom-schema">'.esc_html__( 'Add Custom Schema', 'schema-and-structured-data-for-wp' ).'</a>' ;
741
- $tabs_fields.= '<div class="saswp-add-custom-schema-field saswp_hide">';
742
- }
743
-
744
- $tabs_fields.= '<a class="button saswp-delete-custom-schema">Delete Custom Schema</a>';
745
- $tabs_fields.= '<textarea style="margin-left:5px;" placeholder="{ Json Markup }" id="saswp_custom_schema_field" name="saswp_custom_schema_field" rows="5" cols="100">'
746
- . $custom_markup
747
- . '</textarea>';
748
- $tabs_fields.= '</div>';
749
- $tabs_fields.= '</div>';
750
-
751
- //custom schema ends here
752
-
753
- $tabs_fields .= '<input class="saswp-post-specific-schema-ids" type="hidden" value="'. json_encode($schema_ids).'">';
754
- $tabs_fields .= '</div>';
755
-
756
- $response_html .= $tabs_fields;
757
  }
758
 
759
  return $response_html;
@@ -767,18 +796,34 @@ class saswp_post_specific {
767
  $post = $std_post;
768
  }
769
 
770
- $response_html = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
771
 
772
  $modify_option = get_option('modify_schema_post_enable_'.esc_attr($post->ID));
773
 
774
- if($modify_option == 'enable'){
775
 
776
  $response_html .= $this->saswp_post_meta_box_fields($post);
777
 
778
  }else{
779
-
780
- $response_html .= '<a class="button saswp-modify_schema_post_enable">'.esc_html__( 'Modify Current Schema', 'schema-and-structured-data-for-wp' ).'</a>' ;
781
 
 
 
 
782
  $custom_markup = get_post_meta($post->ID, 'saswp_custom_schema_field', true);
783
 
784
  $response_html .= '<div class="saswp-add-custom-schema-div">';
@@ -877,14 +922,10 @@ class saswp_post_specific {
877
  }
878
 
879
  $post_id = intval($_GET['post_id']);
880
-
881
  update_option('modify_schema_post_enable_'.$post_id, 'enable');
882
-
883
- $post = array(
884
- 'ID' => $post_id,
885
- );
886
-
887
- $post = (object)$post;
888
 
889
  $response = $this->saswp_post_meta_box_html($post);
890
 
@@ -895,9 +936,9 @@ class saswp_post_specific {
895
  }
896
 
897
  public function saswp_saswp_post_specific( $post, $schema_id ) {
898
-
899
- global $post;
900
  global $sd_data;
 
901
  $image_id = get_post_thumbnail_id();
902
  $image_details = wp_get_attachment_image_src($image_id, 'full');
903
 
@@ -916,8 +957,7 @@ class saswp_post_specific {
916
  $author_details = get_avatar_data($current_user->ID);
917
  }
918
  $schema_type = get_post_meta($schema_id, 'schema_type', true);
919
- $output = '';
920
-
921
  $this->meta_fields = array_filter($this->meta_fields);
922
 
923
  foreach ( $this->meta_fields as $meta_field ) {
@@ -1742,22 +1782,7 @@ class saswp_post_specific {
1742
  'id' => 'saswp_blogposting_speakable_'.$schema_id,
1743
  'type' => 'checkbox',
1744
 
1745
- ),
1746
- array(
1747
- 'label' => 'Aggregate Rating',
1748
- 'id' => 'saswp_blogposting_enable_rating_'.$schema_id,
1749
- 'type' => 'checkbox',
1750
- ),
1751
- array(
1752
- 'label' => 'Rating Value',
1753
- 'id' => 'saswp_blogposting_rating_'.$schema_id,
1754
- 'type' => 'text',
1755
- ),
1756
- array(
1757
- 'label' => 'Review Count',
1758
- 'id' => 'saswp_blogposting_review_count_'.$schema_id,
1759
- 'type' => 'text',
1760
- )
1761
  );
1762
  break;
1763
 
@@ -1897,22 +1922,7 @@ class saswp_post_specific {
1897
  'id' => 'saswp_newsarticle_speakable_'.$schema_id,
1898
  'type' => 'checkbox',
1899
 
1900
- ),
1901
- array(
1902
- 'label' => 'Aggregate Rating',
1903
- 'id' => 'saswp_newsarticle_enable_rating_'.$schema_id,
1904
- 'type' => 'checkbox',
1905
- ),
1906
- array(
1907
- 'label' => 'Rating Value',
1908
- 'id' => 'saswp_newsarticle_rating_'.$schema_id,
1909
- 'type' => 'text',
1910
- ),
1911
- array(
1912
- 'label' => 'Review Count',
1913
- 'id' => 'saswp_newsarticle_review_count_'.$schema_id,
1914
- 'type' => 'text',
1915
- )
1916
  );
1917
  break;
1918
 
@@ -2083,22 +2093,7 @@ class saswp_post_specific {
2083
  'id' => 'saswp_article_speakable_'.$schema_id,
2084
  'type' => 'checkbox',
2085
 
2086
- ),
2087
- array(
2088
- 'label' => 'Aggregate Rating',
2089
- 'id' => 'saswp_article_enable_rating_'.$schema_id,
2090
- 'type' => 'checkbox',
2091
- ),
2092
- array(
2093
- 'label' => 'Rating Value',
2094
- 'id' => 'saswp_article_rating_'.$schema_id,
2095
- 'type' => 'text',
2096
- ),
2097
- array(
2098
- 'label' => 'Review Count',
2099
- 'id' => 'saswp_article_review_count_'.$schema_id,
2100
- 'type' => 'text',
2101
- )
2102
  );
2103
  break;
2104
 
@@ -2262,22 +2257,7 @@ class saswp_post_specific {
2262
  'id' => 'saswp_tech_article_speakable_'.$schema_id,
2263
  'type' => 'checkbox',
2264
 
2265
- ),
2266
- array(
2267
- 'label' => 'Aggregate Rating',
2268
- 'id' => 'saswp_tech_article_enable_rating_'.$schema_id,
2269
- 'type' => 'checkbox',
2270
- ),
2271
- array(
2272
- 'label' => 'Rating Value',
2273
- 'id' => 'saswp_tech_article_rating_'.$schema_id,
2274
- 'type' => 'text',
2275
- ),
2276
- array(
2277
- 'label' => 'Review Count',
2278
- 'id' => 'saswp_tech_article_review_count_'.$schema_id,
2279
- 'type' => 'text',
2280
- )
2281
  );
2282
  break;
2283
 
@@ -2704,21 +2684,14 @@ class saswp_post_specific {
2704
  'id' => 'saswp_product_schema_sku_'.$schema_id,
2705
  'type' => 'text',
2706
  'default' => saswp_remove_warnings($product_details, 'product_sku', 'saswp_string')
2707
- ),
2708
  array(
2709
  'label' => 'MPN',
2710
  'id' => 'saswp_product_schema_mpn_'.$schema_id,
2711
  'type' => 'text',
2712
  'note' => 'OR',
2713
  'default' => saswp_remove_warnings($product_details, 'product_mpn', 'saswp_string')
2714
- ),
2715
- array(
2716
- 'label' => 'ISBN',
2717
- 'id' => 'saswp_product_schema_isbn_'.$schema_id,
2718
- 'type' => 'text',
2719
- 'note' => 'OR',
2720
- 'default' => saswp_remove_warnings($product_details, 'product_isbn', 'saswp_string')
2721
- ),
2722
  array(
2723
  'label' => 'GTIN8',
2724
  'id' => 'saswp_product_schema_gtin8_'.$schema_id,
@@ -2882,28 +2855,20 @@ class saswp_post_specific {
2882
 
2883
  $meta_field = array(
2884
  array(
2885
- 'label' => 'Item Reviewed Type',
2886
- 'id' => 'saswp_review_schema_item_type_'.$schema_id,
2887
- 'type' => 'select',
2888
  'options' => array(
2889
- 'Article' => 'Article',
2890
- 'Adultentertainment' => 'Adult Entertainment',
2891
- 'Blog' => 'Blog',
2892
- 'Book' => 'Book',
2893
- 'Casino' => 'Casino',
2894
- 'Diet' => 'Diet',
2895
- 'Episode' => 'Episode',
2896
- 'ExercisePlan' => 'Exercise Plan',
2897
- 'Game' => 'Game',
2898
- 'Movie' => 'Movie',
2899
- 'MusicPlaylist' => 'Music Playlist',
2900
- 'MusicRecording' => 'MusicRecording',
2901
- 'Photograph' => 'Photograph',
2902
- 'Restaurant' => 'Restaurant',
2903
- 'Series' => 'Series',
2904
- 'VisualArtwork' => 'Visual Artwork',
2905
- 'Webpage' => 'Webpage',
2906
- 'WebSite' => 'WebSite',
2907
  ),
2908
  ),
2909
  array(
@@ -3555,6 +3520,14 @@ class saswp_post_specific {
3555
  'placeholder' => '5'
3556
  ),
3557
  ),
 
 
 
 
 
 
 
 
3558
  array(
3559
  'label' => 'Country',
3560
  'id' => 'saswp_apartment_schema_country_'.$schema_id,
@@ -3579,6 +3552,22 @@ class saswp_post_specific {
3579
  'label' => 'Telephone',
3580
  'id' => 'saswp_apartment_schema_telephone_'.$schema_id,
3581
  'type' => 'text',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3582
  ),
3583
 
3584
  );
@@ -4412,6 +4401,153 @@ class saswp_post_specific {
4412
  );
4413
  break;
4414
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4415
  default:
4416
  break;
4417
  }
23
  'Product' => array(
24
  'product_reviews' => 'product_reviews',
25
  ),
26
+ 'DataFeed' => array(
27
  'feed_element' => 'feed_element',
28
  ),
29
  'FAQ' => array(
36
  'how-to-supply' => 'howto_supply',
37
  'how-to-tool' => 'howto_tool',
38
  'how-to-step' => 'howto_step',
39
+ ),
40
+ 'MusicPlaylist' => array(
41
+ 'music-playlist-track' => 'music_playlist_track',
42
+ ),
43
+ 'MusicAlbum' => array(
44
+ 'music-album-track' => 'music_album_track',
45
+ ),
46
+ 'Apartment' => array(
47
+ 'apartment-amenities' => 'apartment_amenities',
48
+ 'additional-property' => 'additional_property',
49
+
50
+ ),
51
  'MedicalCondition' => array(
52
  'mc-cause' => 'mc_cause',
53
  'mc-symptom' => 'mc_symptom',
264
  'name' => 'saswp_faq_question_answer',
265
  'type' => 'textarea'
266
  )
267
+ ),
268
+ 'apartment_amenities' => array(
269
+ array(
270
+ 'label' => 'amenity Name',
271
+ 'name' => 'saswp_apartment_amenities_name',
272
+ 'type' => 'text',
273
+ )
274
+ ),
275
+ 'additional_property' => array(
276
+ array(
277
+ 'label' => 'Name',
278
+ 'name' => 'saswp_apartment_additional_property_name',
279
+ 'type' => 'text',
280
+ ),
281
+ array(
282
+ 'label' => 'Value',
283
+ 'name' => 'saswp_apartment_additional_property_value',
284
+ 'type' => 'text',
285
+ ),
286
+ array(
287
+ 'label' => 'Code Type',
288
+ 'name' => 'saswp_apartment_additional_property_code_type',
289
+ 'type' => 'select',
290
+ 'options' => array(
291
+ 'unitCode' => 'Unit Code',
292
+ 'unitText' => 'Unit Text',
293
+ )
294
+ ),
295
+ array(
296
+ 'label' => 'Code Value',
297
+ 'name' => 'saswp_apartment_additional_property_code_value',
298
+ 'type' => 'text',
299
+ ),
300
+ ),
301
+ 'music_playlist_track' => array(
302
+ array(
303
+ 'label' => 'Track Artist',
304
+ 'name' => 'saswp_music_playlist_track_artist',
305
+ 'type' => 'text',
306
+ ),
307
+ array(
308
+ 'label' => 'Track Duration',
309
+ 'name' => 'saswp_music_playlist_track_duration',
310
+ 'type' => 'text',
311
+ ),
312
+ array(
313
+ 'label' => 'Track In Album',
314
+ 'name' => 'saswp_music_playlist_track_inalbum',
315
+ 'type' => 'text',
316
+ ),
317
+ array(
318
+ 'label' => 'Track Name',
319
+ 'name' => 'saswp_music_playlist_track_name',
320
+ 'type' => 'text',
321
+ ),
322
+ array(
323
+ 'label' => 'Track URL',
324
+ 'name' => 'saswp_music_playlist_track_url',
325
+ 'type' => 'text',
326
+ ),
327
+
328
+ ),
329
+ 'music_album_track' => array(
330
+ array(
331
+ 'label' => 'Track Duration',
332
+ 'name' => 'saswp_music_album_track_duration',
333
+ 'type' => 'text',
334
+ ),
335
+ array(
336
+ 'label' => 'Track Name',
337
+ 'name' => 'saswp_music_album_track_name',
338
+ 'type' => 'text',
339
+ ),
340
+ array(
341
+ 'label' => 'Track URL',
342
+ 'name' => 'saswp_music_album_track_url',
343
+ 'type' => 'text',
344
+ ),
345
+
346
+ )
347
  );
348
 
349
  public function __construct() {
459
  if($this->screen){
460
 
461
  foreach ( $this->screen as $single_screen ) {
462
+
 
 
 
 
 
 
 
 
463
  add_meta_box(
464
  'post_specific',
465
+ esc_html__( 'Post Specific Schema', 'schema-and-structured-data-for-wp' ),
466
  array( $this, 'saswp_post_meta_box_callback' ),
467
  $single_screen,
468
  'advanced',
639
 
640
  }
641
  $tabs_fields .= '</div>';
642
+
643
+ $btn_text = '';
644
+
645
+ if($value){
646
+
647
+ $btn_array = explode('_',$value);
648
+
649
+ if($btn_array){
650
+ foreach ($btn_array as $btn){
651
+ $btn_text .= ucfirst($btn).' ';
652
+ }
653
+ }
654
+
655
+ }
656
+
657
+ $tabs_fields .= '<a data-id="'.esc_attr($schema_id).'" div_type="'.$key.'" fields_type="'.$value.'" class="button saswp_add_schema_fields_on_fly saswp-'.$key.'">'.esc_html__( 'Add '.$btn_text, 'schema-and-structured-data-for-wp' ).'</a>';
658
  $tabs_fields .= '</div>';
659
 
660
  }
669
 
670
  public function saswp_post_meta_box_fields($post){
671
 
672
+ $response_html = '';
673
+ $tabs = '';
674
+ $tabs_fields = '';
675
+ $schema_ids = array();
676
+
677
+ $schema_enable = get_post_meta($post->ID, 'saswp_enable_disable_schema', true);
678
 
679
+ if(!empty($this->all_schema)){
680
 
681
  foreach($this->all_schema as $key => $schema){
682
 
683
  $advnace_status = saswp_check_advance_display_status($schema->ID);
684
+
685
  if($advnace_status !== 1){
686
  continue;
687
  }
783
  $response_html .= '<input class="saswp-post-specific-schema-ids" type="hidden" value="'. json_encode($schema_ids).'">';
784
  $response_html .= '</div>';
785
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
786
  }
787
 
788
  return $response_html;
796
  $post = $std_post;
797
  }
798
 
799
+ $response_html = '';
800
+ $schema_avail = false;
801
+ if($this->all_schema){
802
+
803
+ foreach ($this->all_schema as $schema){
804
+
805
+ $advnace_status = saswp_check_advance_display_status($schema->ID);
806
+
807
+ if($advnace_status == 1){
808
+ $schema_avail = true;
809
+ break;
810
+ }
811
+
812
+ }
813
+
814
+ }
815
 
816
  $modify_option = get_option('modify_schema_post_enable_'.esc_attr($post->ID));
817
 
818
+ if($modify_option == 'enable' && $schema_avail){
819
 
820
  $response_html .= $this->saswp_post_meta_box_fields($post);
821
 
822
  }else{
 
 
823
 
824
+ if($advnace_status){
825
+ $response_html .= '<a class="button saswp-modify_schema_post_enable">'.esc_html__( 'Modify Current Schema', 'schema-and-structured-data-for-wp' ).'</a>' ;
826
+ }
827
  $custom_markup = get_post_meta($post->ID, 'saswp_custom_schema_field', true);
828
 
829
  $response_html .= '<div class="saswp-add-custom-schema-div">';
922
  }
923
 
924
  $post_id = intval($_GET['post_id']);
925
+
926
  update_option('modify_schema_post_enable_'.$post_id, 'enable');
927
+
928
+ $post = get_post($post_id);
 
 
 
 
929
 
930
  $response = $this->saswp_post_meta_box_html($post);
931
 
936
  }
937
 
938
  public function saswp_saswp_post_specific( $post, $schema_id ) {
939
+
 
940
  global $sd_data;
941
+
942
  $image_id = get_post_thumbnail_id();
943
  $image_details = wp_get_attachment_image_src($image_id, 'full');
944
 
957
  $author_details = get_avatar_data($current_user->ID);
958
  }
959
  $schema_type = get_post_meta($schema_id, 'schema_type', true);
960
+ $output = '';
 
961
  $this->meta_fields = array_filter($this->meta_fields);
962
 
963
  foreach ( $this->meta_fields as $meta_field ) {
1782
  'id' => 'saswp_blogposting_speakable_'.$schema_id,
1783
  'type' => 'checkbox',
1784
 
1785
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1786
  );
1787
  break;
1788
 
1922
  'id' => 'saswp_newsarticle_speakable_'.$schema_id,
1923
  'type' => 'checkbox',
1924
 
1925
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1926
  );
1927
  break;
1928
 
2093
  'id' => 'saswp_article_speakable_'.$schema_id,
2094
  'type' => 'checkbox',
2095
 
2096
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2097
  );
2098
  break;
2099
 
2257
  'id' => 'saswp_tech_article_speakable_'.$schema_id,
2258
  'type' => 'checkbox',
2259
 
2260
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2261
  );
2262
  break;
2263
 
2684
  'id' => 'saswp_product_schema_sku_'.$schema_id,
2685
  'type' => 'text',
2686
  'default' => saswp_remove_warnings($product_details, 'product_sku', 'saswp_string')
2687
+ ),
2688
  array(
2689
  'label' => 'MPN',
2690
  'id' => 'saswp_product_schema_mpn_'.$schema_id,
2691
  'type' => 'text',
2692
  'note' => 'OR',
2693
  'default' => saswp_remove_warnings($product_details, 'product_mpn', 'saswp_string')
2694
+ ),
 
 
 
 
 
 
 
2695
  array(
2696
  'label' => 'GTIN8',
2697
  'id' => 'saswp_product_schema_gtin8_'.$schema_id,
2855
 
2856
  $meta_field = array(
2857
  array(
2858
+ 'label' => 'Item Reviewed Type',
2859
+ 'id' => 'saswp_review_schema_item_type_'.$schema_id,
2860
+ 'type' => 'select',
2861
  'options' => array(
2862
+ 'Book' => 'Book',
2863
+ 'Course' => 'Course',
2864
+ 'Event' => 'Event',
2865
+ 'HowTo' => 'HowTo',
2866
+ 'LocalBusiness' => 'LocalBusiness',
2867
+ 'MusicPlaylist' => 'Music Playlist',
2868
+ 'Product' => 'Product',
2869
+ 'Recipe' => 'Recipe',
2870
+ 'SoftwareApplication' => 'SoftwareApplication',
2871
+ 'VideoGame' => 'VideoGame',
 
 
 
 
 
 
 
 
2872
  ),
2873
  ),
2874
  array(
3520
  'placeholder' => '5'
3521
  ),
3522
  ),
3523
+ array(
3524
+ 'label' => 'Floor Size',
3525
+ 'id' => 'saswp_apartment_schema_floor_size_'.$schema_id,
3526
+ 'type' => 'text',
3527
+ 'attributes' => array(
3528
+ 'placeholder' => '140 Sq.Ft'
3529
+ ),
3530
+ ),
3531
  array(
3532
  'label' => 'Country',
3533
  'id' => 'saswp_apartment_schema_country_'.$schema_id,
3552
  'label' => 'Telephone',
3553
  'id' => 'saswp_apartment_schema_telephone_'.$schema_id,
3554
  'type' => 'text',
3555
+ ),
3556
+ array(
3557
+ 'label' => 'GeoCoordinates Latitude',
3558
+ 'id' => 'saswp_apartment_schema_latitude_'.$schema_id,
3559
+ 'type' => 'text',
3560
+ 'attributes' => array(
3561
+ 'placeholder' => '17.412'
3562
+ ),
3563
+ ),
3564
+ array(
3565
+ 'label' => 'GeoCoordinates Longitude',
3566
+ 'id' => 'saswp_apartment_schema_longitude_'.$schema_id,
3567
+ 'type' => 'text',
3568
+ 'attributes' => array(
3569
+ 'placeholder' => '78.433'
3570
+ ),
3571
  ),
3572
 
3573
  );
4401
  );
4402
  break;
4403
 
4404
+ case 'MusicPlaylist':
4405
+
4406
+ $meta_field = array(
4407
+ array(
4408
+ 'label' => 'Name',
4409
+ 'id' => 'saswp_music_playlist_name_'.$schema_id,
4410
+ 'type' => 'text',
4411
+ ),
4412
+ array(
4413
+ 'label' => 'Description',
4414
+ 'id' => 'saswp_music_playlist_description_'.$schema_id,
4415
+ 'type' => 'textarea',
4416
+ ),
4417
+ array(
4418
+ 'label' => 'URL',
4419
+ 'id' => 'saswp_music_playlist_url_'.$schema_id,
4420
+ 'type' => 'text',
4421
+ )
4422
+
4423
+ );
4424
+ break;
4425
+
4426
+ case 'MusicAlbum':
4427
+
4428
+ $meta_field = array(
4429
+ array(
4430
+ 'label' => 'Name',
4431
+ 'id' => 'saswp_music_album_name_'.$schema_id,
4432
+ 'type' => 'text',
4433
+ ),
4434
+ array(
4435
+ 'label' => 'Description',
4436
+ 'id' => 'saswp_music_album_description_'.$schema_id,
4437
+ 'type' => 'textarea',
4438
+ ),
4439
+ array(
4440
+ 'label' => 'Genre',
4441
+ 'id' => 'saswp_music_album_genre_'.$schema_id,
4442
+ 'type' => 'text',
4443
+ ),
4444
+ array(
4445
+ 'label' => 'Image',
4446
+ 'id' => 'saswp_music_album_image_'.$schema_id,
4447
+ 'type' => 'media',
4448
+ ),
4449
+ array(
4450
+ 'label' => 'Artist',
4451
+ 'id' => 'saswp_music_album_artist_'.$schema_id,
4452
+ 'type' => 'text',
4453
+ ),
4454
+ array(
4455
+ 'label' => 'URL',
4456
+ 'id' => 'saswp_music_album_url_'.$schema_id,
4457
+ 'type' => 'text',
4458
+ )
4459
+
4460
+ );
4461
+ break;
4462
+
4463
+ case 'Book':
4464
+
4465
+ $meta_field = array(
4466
+ array(
4467
+ 'label' => 'Name',
4468
+ 'id' => 'saswp_book_name_'.$schema_id,
4469
+ 'type' => 'text',
4470
+ ),
4471
+ array(
4472
+ 'label' => 'Description',
4473
+ 'id' => 'saswp_book_description_'.$schema_id,
4474
+ 'type' => 'textarea',
4475
+ ),
4476
+ array(
4477
+ 'label' => 'URL',
4478
+ 'id' => 'saswp_book_url_'.$schema_id,
4479
+ 'type' => 'text',
4480
+ ),
4481
+ array(
4482
+ 'label' => 'Image',
4483
+ 'id' => 'saswp_book_image_'.$schema_id,
4484
+ 'type' => 'media',
4485
+ ),
4486
+ array(
4487
+ 'label' => 'Author',
4488
+ 'id' => 'saswp_book_author_'.$schema_id,
4489
+ 'type' => 'text',
4490
+ ),
4491
+ array(
4492
+ 'label' => 'ISBN',
4493
+ 'id' => 'saswp_book_isbn_'.$schema_id,
4494
+ 'type' => 'text',
4495
+ ),
4496
+ array(
4497
+ 'label' => 'Number Of Page',
4498
+ 'id' => 'saswp_book_no_of_page_'.$schema_id,
4499
+ 'type' => 'text',
4500
+ ),
4501
+ array(
4502
+ 'label' => 'Publisher',
4503
+ 'id' => 'saswp_book_publisher_'.$schema_id,
4504
+ 'type' => 'text',
4505
+ ),
4506
+ array(
4507
+ 'label' => 'Published Date',
4508
+ 'id' => 'saswp_book_date_published_'.$schema_id,
4509
+ 'type' => 'text',
4510
+ ),
4511
+ array(
4512
+ 'label' => 'Availability',
4513
+ 'id' => 'saswp_book_availability_'.$schema_id,
4514
+ 'type' => 'select',
4515
+ 'options' => array(
4516
+ 'InStock' => 'In Stock',
4517
+ 'OutOfStock' => 'Out Of Stock',
4518
+ 'Discontinued' => 'Discontinued',
4519
+ 'PreOrder' => 'Pre Order',
4520
+ )
4521
+ ),
4522
+ array(
4523
+ 'label' => 'Price',
4524
+ 'id' => 'saswp_book_price_'.$schema_id,
4525
+ 'type' => 'text',
4526
+ ),
4527
+ array(
4528
+ 'label' => 'Price Currency',
4529
+ 'id' => 'saswp_book_price_currency_'.$schema_id,
4530
+ 'type' => 'text',
4531
+ ),
4532
+ array(
4533
+ 'label' => 'Aggregate Rating',
4534
+ 'id' => 'saswp_book_enable_rating_'.$schema_id,
4535
+ 'type' => 'checkbox',
4536
+ ),
4537
+ array(
4538
+ 'label' => 'Rating',
4539
+ 'id' => 'saswp_book_rating_value_'.$schema_id,
4540
+ 'type' => 'text',
4541
+
4542
+ ),
4543
+ array(
4544
+ 'label' => 'Rating Count',
4545
+ 'id' => 'saswp_book_rating_count_'.$schema_id,
4546
+ 'type' => 'text',
4547
+ ),
4548
+ );
4549
+ break;
4550
+
4551
  default:
4552
  break;
4553
  }
view/schema_type.php CHANGED
@@ -30,7 +30,7 @@ function saswp_item_reviewed_fields($item, $post_specific = null, $schema_id = n
30
 
31
  if($post_specific == 1 && isset($schema_id)){
32
 
33
- $post_fix = '_'.esc_attr($schema_id);
34
 
35
  }
36
 
@@ -161,7 +161,7 @@ function saswp_item_reviewed_fields($item, $post_specific = null, $schema_id = n
161
  'type' => 'text',
162
  'default' => get_site_url()
163
  )
164
- );
165
 
166
  break;
167
  case 'Book':
@@ -659,7 +659,7 @@ function saswp_schema_type_meta_box_callback( $post) {
659
 
660
  case 'Review':
661
 
662
- $review_details = get_post_meta($post->ID, 'saswp_review_schema_details', true);
663
 
664
  if(count($review_details) > 1){
665
 
@@ -734,28 +734,19 @@ function saswp_schema_type_meta_box_callback( $post) {
734
  $style_business_type = 'style="display:none"';
735
  $style_business_name = 'style="display:none"';
736
 
737
- }
738
- }
739
-
740
- $item_reviewed = array(
741
- 'Article' => 'Article',
742
- 'Adultentertainment' => 'Adult Entertainment',
743
- 'Blog' => 'Blog',
744
- 'Book' => 'Book',
745
- 'Casino' => 'Casino',
746
- 'Diet' => 'Diet',
747
- 'Episode' => 'Episode',
748
- 'ExercisePlan' => 'Exercise Plan',
749
- 'Game' => 'Game',
750
- 'Movie' => 'Movie',
751
- 'MusicPlaylist' => 'Music Playlist',
752
- 'MusicRecording' => 'MusicRecording',
753
- 'Photograph' => 'Photograph',
754
- 'Restaurant' => 'Restaurant',
755
- 'Series' => 'Series',
756
- 'VisualArtwork' => 'Visual Artwork',
757
- 'WebPage' => 'WebPage',
758
- 'WebSite' => 'WebSite',
759
  );
760
 
761
  $mappings_file = SASWP_DIR_NAME . '/core/array-list/schemas.php';
@@ -1087,7 +1078,7 @@ function saswp_schema_type_meta_box_callback( $post) {
1087
  <td><?php echo esc_html__('Item Reviewed Type', 'schema-and-structured-data-for-wp' ); ?></td>
1088
  <td>
1089
 
1090
- <select data-id="<?php if(is_object($post)){ echo esc_attr($post->ID); } ?>" name="saswp_review_schema_item_type" class="">
1091
  <?php
1092
  foreach ($item_reviewed as $key => $value) {
1093
  $sel = '';
@@ -1127,11 +1118,34 @@ function saswp_schema_type_meta_box_callback( $post) {
1127
 
1128
  <?php
1129
 
1130
- if(!empty($meta_list)){
1131
- $schema_type = get_post_meta($post->ID, 'schema_type', true);
1132
 
1133
  $service = new saswp_output_service();
1134
- $meta_fields = $service->saswp_get_all_schema_type_fields($schema_type);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1135
 
1136
  foreach($meta_list as $fieldkey => $fieldval){
1137
 
30
 
31
  if($post_specific == 1 && isset($schema_id)){
32
 
33
+ $post_fix = '_'.esc_attr($schema_id);
34
 
35
  }
36
 
161
  'type' => 'text',
162
  'default' => get_site_url()
163
  )
164
+ );
165
 
166
  break;
167
  case 'Book':
659
 
660
  case 'Review':
661
 
662
+ $review_details = get_post_meta($post->ID, 'saswp_review_schema_details', true);
663
 
664
  if(count($review_details) > 1){
665
 
734
  $style_business_type = 'style="display:none"';
735
  $style_business_name = 'style="display:none"';
736
 
737
+ }
738
+ }
739
+ $item_reviewed = array(
740
+ 'Book' => 'Book',
741
+ 'Course' => 'Course',
742
+ 'Event' => 'Event',
743
+ 'HowTo' => 'HowTo',
744
+ 'LocalBusiness' => 'LocalBusiness',
745
+ 'MusicPlaylist' => 'Music Playlist',
746
+ 'Product' => 'Product',
747
+ 'Recipe' => 'Recipe',
748
+ 'SoftwareApplication' => 'SoftwareApplication',
749
+ 'VideoGame' => 'VideoGame',
 
 
 
 
 
 
 
 
 
750
  );
751
 
752
  $mappings_file = SASWP_DIR_NAME . '/core/array-list/schemas.php';
1078
  <td><?php echo esc_html__('Item Reviewed Type', 'schema-and-structured-data-for-wp' ); ?></td>
1079
  <td>
1080
 
1081
+ <select data-id="<?php if(is_object($post)){ echo esc_attr($post->ID); } ?>" name="saswp_review_schema_item_type" class="saswp-item-reivewed-list">
1082
  <?php
1083
  foreach ($item_reviewed as $key => $value) {
1084
  $sel = '';
1118
 
1119
  <?php
1120
 
1121
+ if(!empty($meta_list)){
 
1122
 
1123
  $service = new saswp_output_service();
1124
+
1125
+ $schema_type = get_post_meta($post->ID, 'schema_type', true);
1126
+
1127
+ if($schema_type == 'Review'){
1128
+
1129
+ $review_post_meta = get_post_meta($post->ID, 'saswp_review_schema_details', true);
1130
+ $schema_type = $review_post_meta['saswp_review_schema_item_type'];
1131
+
1132
+ $review_fields['saswp_review_name'] = 'Review Name';
1133
+ $review_fields['saswp_review_description'] = 'Review Description';
1134
+ $review_fields['saswp_review_body'] = 'Review Body';
1135
+ $review_fields['saswp_review_author'] = 'Review Author';
1136
+ $review_fields['saswp_review_publisher'] = 'Review Publisher';
1137
+ $review_fields['saswp_review_rating_value'] = 'Review Rating Value';
1138
+
1139
+ $item_rv_meta_fields = $service->saswp_get_all_schema_type_fields($schema_type);
1140
+
1141
+ $meta_fields = $review_fields + $item_rv_meta_fields;
1142
+
1143
+
1144
+ }else{
1145
+
1146
+ $meta_fields = $service->saswp_get_all_schema_type_fields($schema_type);
1147
+
1148
+ }
1149
 
1150
  foreach($meta_list as $fieldkey => $fieldval){
1151