Schema & Structured Data for WP & AMP - Version 1.9.36

Version Description

(12 May 2020) =

  • Fixed: Speed is getting effected by images which are gernerated from our schema plugin #966
  • Fixed: Woocommerce Membership points to wrong link #975
  • Fixed: Multiple reviews must be accompanied by aggregateRating #976
  • Fixed: Author url is showing a link to the home page in Article schema #979
  • Fixed: Article schema not being displayed on the AMP version of homepage #970
  • Fixed: CollectionPage schema is not taking featured image #991
  • Fixed: Aggregate Rating should be a parent and the reviews should be a child of it. #990
  • Fixed: Placement condition for tag is properly not working #971
  • Added: sameAs property for author #978
  • Added: RealEstateListing schema #992
  • Added: eventStatus and eventMode In gutenberg event(SASWP) #980
Download this release

Release Info

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

Code changes from version 1.9.35 to 1.9.36

Files changed (107) hide show
  1. admin_section/ajax-selectbox.php +10 -6
  2. admin_section/common-function.php +99 -57
  3. admin_section/css/collection-front.css +2 -2
  4. admin_section/css/main-style.css +4 -4
  5. admin_section/images/reviews_platform_icon/Best_Buy_logo.svg.png +0 -0
  6. admin_section/images/reviews_platform_icon/agoda-img.png +0 -0
  7. admin_section/images/reviews_platform_icon/airbnb-img.png +0 -0
  8. admin_section/images/reviews_platform_icon/aliexpress-img.png +0 -0
  9. admin_section/images/reviews_platform_icon/alternativeto-img.png +0 -0
  10. admin_section/images/reviews_platform_icon/amazon-img.png +0 -0
  11. admin_section/images/reviews_platform_icon/angies-list-img.png +0 -0
  12. admin_section/images/reviews_platform_icon/apple-appstore-img.png +0 -0
  13. admin_section/images/reviews_platform_icon/appstore-img.png +0 -0
  14. admin_section/images/reviews_platform_icon/avvo-img.png +0 -0
  15. admin_section/images/reviews_platform_icon/bbb-img.png +0 -0
  16. admin_section/images/reviews_platform_icon/bestbuy-img.png +0 -0
  17. admin_section/images/reviews_platform_icon/booking-com-img.png +0 -0
  18. admin_section/images/reviews_platform_icon/capterra-img.png +0 -0
  19. admin_section/images/reviews_platform_icon/cargurus-img.png +0 -0
  20. admin_section/images/reviews_platform_icon/cars-com-img.png +0 -0
  21. admin_section/images/reviews_platform_icon/citysearch-img.png +0 -0
  22. admin_section/images/reviews_platform_icon/classpass-img.png +0 -0
  23. admin_section/images/reviews_platform_icon/clutch-img.png +0 -0
  24. admin_section/images/reviews_platform_icon/consumer-affairs-img.png +0 -0
  25. admin_section/images/reviews_platform_icon/creditkarma-img.png +0 -0
  26. admin_section/images/reviews_platform_icon/customerlobby-img.png +0 -0
  27. admin_section/images/reviews_platform_icon/dealerrater-img.png +0 -0
  28. admin_section/images/reviews_platform_icon/ebay-img.png +0 -0
  29. admin_section/images/reviews_platform_icon/edmunds-img.png +0 -0
  30. admin_section/images/reviews_platform_icon/etsy-img.png +0 -0
  31. admin_section/images/reviews_platform_icon/expedia-img.png +0 -0
  32. admin_section/images/reviews_platform_icon/facebook-img.png +0 -0
  33. admin_section/images/reviews_platform_icon/flipkart-img.png +0 -0
  34. admin_section/images/reviews_platform_icon/foursquare-img.png +0 -0
  35. admin_section/images/reviews_platform_icon/g2crowd-img.png +0 -0
  36. admin_section/images/reviews_platform_icon/gartner-img.png +0 -0
  37. admin_section/images/reviews_platform_icon/gearbest-img.png +0 -0
  38. admin_section/images/reviews_platform_icon/glassdoor-img.png +0 -0
  39. admin_section/images/reviews_platform_icon/google-1-img.png +0 -0
  40. admin_section/images/reviews_platform_icon/google-img.png +0 -0
  41. admin_section/images/reviews_platform_icon/healthgrades-img.png +0 -0
  42. admin_section/images/reviews_platform_icon/homeadvisor-img.png +0 -0
  43. admin_section/images/reviews_platform_icon/homestars-img.png +0 -0
  44. admin_section/images/reviews_platform_icon/hotels-com-img.png +0 -0
  45. admin_section/images/reviews_platform_icon/houzz-img.png +0 -0
  46. admin_section/images/reviews_platform_icon/hungerstation-img.png +0 -0
  47. admin_section/images/reviews_platform_icon/imdb-img.png +0 -0
  48. admin_section/images/reviews_platform_icon/indeed-img.png +0 -0
  49. admin_section/images/reviews_platform_icon/insiderpages-img.png +0 -0
  50. admin_section/images/reviews_platform_icon/jet-img.png +0 -0
  51. admin_section/images/reviews_platform_icon/judge-me-img.png +0 -0
  52. admin_section/images/reviews_platform_icon/lawyers-com-img.png +0 -0
  53. admin_section/images/reviews_platform_icon/lendingtree-img.png +0 -0
  54. admin_section/images/reviews_platform_icon/martindale-img.png +0 -0
  55. admin_section/images/reviews_platform_icon/newegg-img.png +0 -0
  56. admin_section/images/reviews_platform_icon/openrice-img.png +0 -0
  57. admin_section/images/reviews_platform_icon/opentable-img.png +0 -0
  58. admin_section/images/reviews_platform_icon/playstore-img.png +0 -0
  59. admin_section/images/reviews_platform_icon/producthunt-img.png +0 -0
  60. admin_section/images/reviews_platform_icon/ratemds-img.png +0 -0
  61. admin_section/images/reviews_platform_icon/reserveout-img.png +0 -0
  62. admin_section/images/reviews_platform_icon/rotten-tomatoes-img.png +0 -0
  63. admin_section/images/reviews_platform_icon/rottentomatoes-img.png +0 -0
  64. admin_section/images/reviews_platform_icon/shopper-approved-img.png +0 -0
  65. admin_section/images/reviews_platform_icon/siftery-img.png +0 -0
  66. admin_section/images/reviews_platform_icon/sitejabber-img.png +0 -0
  67. admin_section/images/reviews_platform_icon/softwareadvice-img.png +0 -0
  68. admin_section/images/reviews_platform_icon/steam-img.png +0 -0
  69. admin_section/images/reviews_platform_icon/talabat-img.png +0 -0
  70. admin_section/images/reviews_platform_icon/theknot-img.png +0 -0
  71. admin_section/images/reviews_platform_icon/thumbtack-img.png +0 -0
  72. admin_section/images/reviews_platform_icon/tripadvisor-img.png +0 -0
  73. admin_section/images/reviews_platform_icon/trulia-img.png +0 -0
  74. admin_section/images/reviews_platform_icon/trustedshops-img.png +0 -0
  75. admin_section/images/reviews_platform_icon/trustpilot-img.png +0 -0
  76. admin_section/images/reviews_platform_icon/trustradius-img.png +0 -0
  77. admin_section/images/reviews_platform_icon/vitals-img.png +0 -0
  78. admin_section/images/reviews_platform_icon/walmart-img.png +0 -0
  79. admin_section/images/reviews_platform_icon/weddingwire-img.png +0 -0
  80. admin_section/images/reviews_platform_icon/wish-img.png +0 -0
  81. admin_section/images/reviews_platform_icon/yellowpages-img.png +0 -0
  82. admin_section/images/reviews_platform_icon/yelp-img.png +0 -0
  83. admin_section/images/reviews_platform_icon/zillow-img.png +0 -0
  84. admin_section/images/reviews_platform_icon/zocdoc-img.png +0 -0
  85. admin_section/images/reviews_platform_icon/zomato-img.png +0 -0
  86. admin_section/js/main-script.js +64 -0
  87. admin_section/js/main-script.min.js +1 -1
  88. admin_section/js/structure_admin.js +4 -2
  89. admin_section/js/structure_admin.min.js +1 -1
  90. admin_section/settings.php +105 -5
  91. admin_section/structure_admin.php +60 -26
  92. core/array-list/compatibility-list.php +43 -0
  93. core/array-list/schema-properties.php +98 -1
  94. core/array-list/schemas.php +2 -1
  95. core/global.php +1 -0
  96. modules/gutenberg/assets/blocks/event.js +113 -4
  97. modules/gutenberg/assets/css/event.css +3 -0
  98. modules/gutenberg/includes/render.php +17 -5
  99. modules/reviews/reviews_service.php +3 -3
  100. output/compatibility.php +19 -1
  101. output/function.php +137 -77
  102. output/gutenberg.php +9 -2
  103. output/markup.php +66 -8
  104. output/output.php +50 -11
  105. output/service.php +80 -7
  106. readme.txt +16 -1
  107. structured-data-for-wp.php +2 -2
admin_section/ajax-selectbox.php CHANGED
@@ -400,12 +400,16 @@ function saswp_create_ajax_select_taxonomy($selectedParentValue = '',$selectedVa
400
 
401
  $sel="";
402
 
403
- if($selectedValue == $taxonomy->slug){
404
-
405
- $sel = "selected";
406
-
407
- }
408
- $choices .= '<option value="'.esc_attr($taxonomy->slug).'" '.esc_attr($sel).'>'.esc_html__($taxonomy->name,'schema-and-structured-data-for-wp').'</option>';
 
 
 
 
409
 
410
  }
411
 
400
 
401
  $sel="";
402
 
403
+ if(is_object($taxonomy)){
404
+
405
+ if($selectedValue == $taxonomy->slug){
406
+
407
+ $sel = "selected";
408
+
409
+ }
410
+ $choices .= '<option value="'.esc_attr($taxonomy->slug).'" '.esc_attr($sel).'>'.esc_html__($taxonomy->name,'schema-and-structured-data-for-wp').'</option>';
411
+
412
+ }
413
 
414
  }
415
 
admin_section/common-function.php CHANGED
@@ -2241,8 +2241,21 @@ if ( ! defined('ABSPATH') ) exit;
2241
  $author_name = get_the_author_meta( 'display_name' , $author_id );
2242
  }
2243
 
2244
- $author_url = get_the_author_meta( 'url' , $author_id );
2245
-
 
 
 
 
 
 
 
 
 
 
 
 
 
2246
  $author_image = array();
2247
 
2248
  if(function_exists('get_avatar_data')){
@@ -2253,6 +2266,7 @@ if ( ! defined('ABSPATH') ) exit;
2253
  $author_details['name'] = esc_attr($author_name);
2254
  $author_details['description'] = wp_strip_all_tags(strip_shortcodes($author_desc));
2255
  $author_details['url'] = esc_url($author_url);
 
2256
 
2257
  if(isset($author_image['url']) && isset($author_image['height']) && isset($author_image['width'])){
2258
 
@@ -2757,61 +2771,68 @@ function saswp_remove_anonymous_object_filter_or_action( $tag, $class, $method,
2757
  function saswp_get_field_note($pname){
2758
 
2759
  $notes = array(
2760
- 'easy_recipe' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easyrecipe/">EasyRecipe</a>',
2761
- 'total_recipe_generator' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/total-recipe-generator-wordpress-recipe-maker-with-schema-and-nutrition-facts-elementor-addon/21445400/">Total Recipe Generator</a>',
2762
- 'yet_another_stars_rating' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/yet-another-stars-rating/">Yet Another Stars Rating</a>',
2763
- 'wp_customer_reviews' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-customer-reviews">WP Customer Reviews</a>',
2764
- 'wordpress_news' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="#">Wordpress News</a>',
2765
- 'strong_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/strong-testimonials">Strong Testimonials</a>',
2766
- 'wp_event_aggregator' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-event-aggregator/">WP Event Aggregator</a>',
2767
- 'wordlift' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wordlift/">WordLift</a>',
2768
- 'ampforwp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/accelerated-mobile-pages/">AMP for WP</a>',
2769
- 'ampbyautomatic' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/amp/">AMP</a>',
2770
- 'betteramp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/kk-star-ratings/">Better AMP</a>',
2771
- 'wpamp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/wp-amp-accelerated-mobile-pages-for-wordpress-and-woocommerce/16278608">WP AMP</a>',
2772
- 'ampwp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/amp-wp/">AMP WP</a>',
2773
- 'kk_star_ratings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/kk-star-ratings/">kk Star Rating</a>',
2774
- 'simple_author_box' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/simple-author-box//">Simple Author Box</a>',
2775
- 'wp_post_ratings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-postratings/">WP-PostRatings</a>',
2776
- 'bb_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bbpress/">bbPress</a>',
2777
- 'woocommerce' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce</a>',
2778
- 'cooked' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/cooked/">Cooked</a>',
2779
- 'the_events_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/the-events-calendar/">The Events Calendar</a>',
2780
- 'yoast_seo' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wordpress-seo/">Yoast SEO</a>',
2781
- 'rank_math' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/seo-by-rank-math/">WordPress SEO Plugin – Rank Math</a>',
2782
- 'dw_qna' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/dw-question-answer/">DW Question Answer</a>',
2783
- 'smart_crawl' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/smartcrawl-seo/">SmartCrawl Seo</a>',
2784
- 'the_seo_framework' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/autodescription/">The Seo Framework</a>',
2785
- 'seo_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-seopress/">SEOPress</a>',
2786
- 'aiosp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/all-in-one-seo-pack/">All in One SEO Pack</a>',
2787
- 'squirrly_seo' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/squirrly-seo/">Squirrly SEO</a>',
2788
- 'wp_recipe_maker' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-recipe-maker/">WP Recipe Maker</a>',
2789
- 'wp_ultimate_recipe' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-ultimate-recipe/">WP Ultimate Recipe</a>',
2790
- 'learn_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/learnpress/">Learn Press</a>',
2791
- 'learn_dash' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.learndash.com/pricing-and-purchase/">Learn Dash</a>',
2792
- 'lifter_lms' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/lifterlms/">LifterLMS</a>',
2793
- 'wp_event_manager' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-event-manager/">WP Event Manager</a>',
2794
- 'events_manager' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/events-manager/">Events Manager</a>',
2795
- 'event_calendar_wd' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/event-calendar-wd/">Event Calendar WD</a>',
2796
- 'event_organiser' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/event-organiser/">Event Organiser</a>',
2797
- 'modern_events_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/modern-events-calendar-lite/">Modern Events Calendar Lite</a>',
2798
- 'flex_mls_idx' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/flexmls-idx/">FlexMLS IDX</a>',
2799
- 'woocommerce_membership' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce Membership</a>',
2800
- 'woocommerce_bookings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce Bookings</a>',
2801
- 'extra' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.elegantthemes.com/gallery/extra/">Extra Theme</a>',
2802
- 'homeland' => 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>',
2803
- 'wpresidence' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wpresidence.net/">WP Residence</a>',
2804
- 'reviews' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/reviews-products-and-services-review-wp-theme/13004739?s_rank=4">Reviews - Products And Services Review WP Theme</a>',
2805
- 'realhomes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914">RealHomes</a>',
2806
- 'taqyeem' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>',
2807
- 'soledad' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/soledad-multiconcept-blogmagazine-wp-theme/12945398">Soledad Theme</a>',
2808
- 'zip_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
2809
- 'mediavine_create' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/mediavine-create/">Create by Mediavine</a>',
2810
- 'ht_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/culinier-food-recipe-wordpress-theme/11088564/">HT-Recipes</a>',
2811
- 'easy_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easy-testimonials">Easy Testimonials</a>',
2812
- 'bne_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bne-testimonials/">BNE Testimonials</a>',
2813
- 'testimonial_pro' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://shapedplugin.com/plugin/testimonial-pro/">Testimonial Pro</a>',
2814
- 'tevolution_events' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://templatic.com/wordpress-plugins/tevolution/">Tevolution Events</a>'
 
 
 
 
 
 
 
2815
 
2816
  );
2817
 
@@ -3129,4 +3150,25 @@ function saswp_remove_all_images($content){
3129
 
3130
  return $content;
3131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3132
  }
2241
  $author_name = get_the_author_meta( 'display_name' , $author_id );
2242
  }
2243
 
2244
+ $author_url = get_author_posts_url( $author_id );
2245
+ $same_as = array();
2246
+
2247
+ $social_links = array('url', 'facebook', 'twitter', 'instagram', 'linkedin', 'myspace', 'pinterest', 'soundcloud', 'tumblr', 'youtube', 'wikipedia', 'jabber', 'yim', 'aim');
2248
+
2249
+ foreach($social_links as $links){
2250
+
2251
+ $url = get_the_author_meta($links, $author_id );
2252
+
2253
+ if($url){
2254
+ $same_as[] = $url;
2255
+ }
2256
+
2257
+ }
2258
+
2259
  $author_image = array();
2260
 
2261
  if(function_exists('get_avatar_data')){
2266
  $author_details['name'] = esc_attr($author_name);
2267
  $author_details['description'] = wp_strip_all_tags(strip_shortcodes($author_desc));
2268
  $author_details['url'] = esc_url($author_url);
2269
+ $author_details['sameAs'] = $same_as;
2270
 
2271
  if(isset($author_image['url']) && isset($author_image['height']) && isset($author_image['width'])){
2272
 
2771
  function saswp_get_field_note($pname){
2772
 
2773
  $notes = array(
2774
+ 'easy_recipe' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easyrecipe/">EasyRecipe</a>',
2775
+ 'total_recipe_generator' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/total-recipe-generator-wordpress-recipe-maker-with-schema-and-nutrition-facts-elementor-addon/21445400/">Total Recipe Generator</a>',
2776
+ 'yet_another_stars_rating' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/yet-another-stars-rating/">Yet Another Stars Rating</a>',
2777
+ 'wp_customer_reviews' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-customer-reviews">WP Customer Reviews</a>',
2778
+ 'wordpress_news' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="#">Wordpress News</a>',
2779
+ 'strong_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/strong-testimonials">Strong Testimonials</a>',
2780
+ 'wp_event_aggregator' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-event-aggregator/">WP Event Aggregator</a>',
2781
+ 'stachethemes_event_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="http://stachethemes.com/">Stachethemes Event Calendar</a>',
2782
+ 'all_in_one_event_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/all-in-one-event-calendar/">All In One Event Calendar</a>',
2783
+ 'event_on' => esc_html__('Event On','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.myeventon.com/">Event On</a>',
2784
+ 'wordlift' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wordlift/">WordLift</a>',
2785
+ 'ampforwp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/accelerated-mobile-pages/">AMP for WP</a>',
2786
+ 'ampbyautomatic' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/amp/">AMP</a>',
2787
+ 'betteramp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/kk-star-ratings/">Better AMP</a>',
2788
+ 'wpamp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/wp-amp-accelerated-mobile-pages-for-wordpress-and-woocommerce/16278608">WP AMP</a>',
2789
+ 'ampwp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/amp-wp/">AMP WP</a>',
2790
+ 'kk_star_ratings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/kk-star-ratings/">kk Star Rating</a>',
2791
+ 'simple_author_box' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/simple-author-box//">Simple Author Box</a>',
2792
+ 'wp_post_ratings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-postratings/">WP-PostRatings</a>',
2793
+ 'bb_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bbpress/">bbPress</a>',
2794
+ 'woocommerce' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/woocommerce/">Woocommerce</a>',
2795
+ 'cooked' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/cooked/">Cooked</a>',
2796
+ 'the_events_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/the-events-calendar/">The Events Calendar</a>',
2797
+ 'yoast_seo' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wordpress-seo/">Yoast SEO</a>',
2798
+ 'rank_math' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/seo-by-rank-math/">WordPress SEO Plugin – Rank Math</a>',
2799
+ 'dw_qna' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/dw-question-answer/">DW Question Answer</a>',
2800
+ 'smart_crawl' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/smartcrawl-seo/">SmartCrawl Seo</a>',
2801
+ 'the_seo_framework' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/autodescription/">The Seo Framework</a>',
2802
+ 'seo_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-seopress/">SEOPress</a>',
2803
+ 'aiosp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/all-in-one-seo-pack/">All in One SEO Pack</a>',
2804
+ 'squirrly_seo' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/squirrly-seo/">Squirrly SEO</a>',
2805
+ 'wp_recipe_maker' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-recipe-maker/">WP Recipe Maker</a>',
2806
+ 'wp_ultimate_recipe' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-ultimate-recipe/">WP Ultimate Recipe</a>',
2807
+ 'learn_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/learnpress/">Learn Press</a>',
2808
+ 'learn_dash' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.learndash.com/pricing-and-purchase/">Learn Dash</a>',
2809
+ 'lifter_lms' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/lifterlms/">LifterLMS</a>',
2810
+ 'wplms' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/wplms-learning-management-system/6780226">WPLMS</a>',
2811
+ 'wp_event_manager' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/wp-event-manager/">WP Event Manager</a>',
2812
+ 'events_manager' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/events-manager/">Events Manager</a>',
2813
+ 'event_calendar_wd' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/event-calendar-wd/">Event Calendar WD</a>',
2814
+ 'event_organiser' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/event-organiser/">Event Organiser</a>',
2815
+ 'modern_events_calendar' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/modern-events-calendar-lite/">Modern Events Calendar Lite</a>',
2816
+ 'flex_mls_idx' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/flexmls-idx/">FlexMLS IDX</a>',
2817
+ 'woocommerce_membership' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://woocommerce.com/products/woocommerce-memberships">Woocommerce Membership</a>',
2818
+ 'woocommerce_bookings' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://woocommerce.com/products/woocommerce-bookings">Woocommerce Bookings</a>',
2819
+ 'extra' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.elegantthemes.com/gallery/extra/">Extra Theme</a>',
2820
+ 'homeland' => 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>',
2821
+ 'wpresidence' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wpresidence.net/">WP Residence</a>',
2822
+ 'reviews' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/reviews-products-and-services-review-wp-theme/13004739?s_rank=4">Reviews - Products And Services Review WP Theme</a>',
2823
+ 'realhomes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914">RealHomes</a>',
2824
+ 'myhome' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://myhometheme.net/">My Home Theme</a>',
2825
+ 'realestate_5' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://myhometheme.net/">WP Pro Realstate 5</a>',
2826
+ 'classipress' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://www.appthemes.com/themes/classipress/">ClassiPress</a>',
2827
+ 'taqyeem' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>',
2828
+ 'soledad' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/soledad-multiconcept-blogmagazine-wp-theme/12945398">Soledad Theme</a>',
2829
+ 'zip_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
2830
+ 'mediavine_create' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/mediavine-create/">Create by Mediavine</a>',
2831
+ 'ht_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://themeforest.net/item/culinier-food-recipe-wordpress-theme/11088564/">HT-Recipes</a>',
2832
+ 'easy_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easy-testimonials">Easy Testimonials</a>',
2833
+ 'bne_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bne-testimonials/">BNE Testimonials</a>',
2834
+ 'testimonial_pro' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://shapedplugin.com/plugin/testimonial-pro/">Testimonial Pro</a>',
2835
+ 'tevolution_events' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://templatic.com/wordpress-plugins/tevolution/">Tevolution Events</a>'
2836
 
2837
  );
2838
 
3150
 
3151
  return $content;
3152
 
3153
+ }
3154
+
3155
+ function saswp_update_global_post(){
3156
+
3157
+ global $post, $redux_builder_amp, $saswp_post_data;
3158
+
3159
+ if( (function_exists('ampforwp_is_front_page') && ampforwp_is_front_page()) && (function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint()) ){
3160
+
3161
+ $page_id = ampforwp_get_the_ID();
3162
+
3163
+ if($page_id){
3164
+
3165
+ if(!$saswp_post_data){
3166
+ $saswp_post_data = get_post($page_id);
3167
+ }
3168
+
3169
+ $post = $saswp_post_data;
3170
+
3171
+ }
3172
+ }
3173
+
3174
  }
admin_section/css/collection-front.css CHANGED
@@ -115,8 +115,8 @@ body .saswp-r, body .saswp-r p{
115
  border-radius: 100px;
116
  }
117
  .saswp-rc-lg img{
118
- width:20px;
119
- height:20px;
120
  border-radius: 100px;
121
  }
122
  .saswp-rc-nm a{
115
  border-radius: 100px;
116
  }
117
  .saswp-rc-lg img{
118
+ width:25px;
119
+ height:25px;
120
  border-radius: 100px;
121
  }
122
  .saswp-rc-nm a{
admin_section/css/main-style.css CHANGED
@@ -984,8 +984,8 @@ Google review module ends here
984
  .saswp-g-plus{
985
  float: right;
986
  font-size: 15px;
987
- width: 20px;
988
- height: 20px;
989
  }
990
  .saswp-g-plus img{
991
  max-width:100%;
@@ -1473,8 +1473,8 @@ Collection css starts here
1473
  border-radius: 100px;
1474
  }
1475
  .saswp-rc-lg img{
1476
- width:20px;
1477
- height:20px;
1478
  border-radius: 100px;
1479
  }
1480
 
984
  .saswp-g-plus{
985
  float: right;
986
  font-size: 15px;
987
+ width: 25px;
988
+ height: 25px;
989
  }
990
  .saswp-g-plus img{
991
  max-width:100%;
1473
  border-radius: 100px;
1474
  }
1475
  .saswp-rc-lg img{
1476
+ width:25px;
1477
+ height:25px;
1478
  border-radius: 100px;
1479
  }
1480
 
admin_section/images/reviews_platform_icon/Best_Buy_logo.svg.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/agoda-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/airbnb-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/aliexpress-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/alternativeto-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/amazon-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/angies-list-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/apple-appstore-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/appstore-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/avvo-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/bbb-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/bestbuy-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/booking-com-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/capterra-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/cargurus-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/cars-com-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/citysearch-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/classpass-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/clutch-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/consumer-affairs-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/creditkarma-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/customerlobby-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/dealerrater-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/ebay-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/edmunds-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/etsy-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/expedia-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/facebook-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/flipkart-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/foursquare-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/g2crowd-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/gartner-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/gearbest-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/glassdoor-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/google-1-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/google-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/healthgrades-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/homeadvisor-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/homestars-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/hotels-com-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/houzz-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/hungerstation-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/imdb-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/indeed-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/insiderpages-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/jet-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/judge-me-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/lawyers-com-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/lendingtree-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/martindale-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/newegg-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/openrice-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/opentable-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/playstore-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/producthunt-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/ratemds-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/reserveout-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/rotten-tomatoes-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/rottentomatoes-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/shopper-approved-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/siftery-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/sitejabber-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/softwareadvice-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/steam-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/talabat-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/theknot-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/thumbtack-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/tripadvisor-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/trulia-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/trustedshops-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/trustpilot-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/trustradius-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/vitals-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/walmart-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/weddingwire-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/wish-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/yellowpages-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/yelp-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/zillow-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/zocdoc-img.png CHANGED
Binary file
admin_section/images/reviews_platform_icon/zomato-img.png CHANGED
Binary file
admin_section/js/main-script.js CHANGED
@@ -927,6 +927,33 @@ return false;
927
  $("#saswp-wpresidence").val(0);
928
  }
929
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
930
 
931
  case 'saswp-realhomes-checkbox':
932
  saswp_compatibliy_notes(current, id);
@@ -945,6 +972,15 @@ return false;
945
  $("#saswp-learn-press").val(0);
946
  }
947
  break;
 
 
 
 
 
 
 
 
 
948
 
949
  case 'saswp-learn-dash-checkbox':
950
  saswp_compatibliy_notes(current, id);
@@ -1311,6 +1347,34 @@ return false;
1311
  }
1312
 
1313
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1314
 
1315
  case 'saswp-easy-recipe-checkbox':
1316
  saswp_compatibliy_notes(current, id);
927
  $("#saswp-wpresidence").val(0);
928
  }
929
  break;
930
+
931
+ case 'saswp-myhome-checkbox':
932
+ saswp_compatibliy_notes(current, id);
933
+ if ($(this).is(':checked')) {
934
+ $("#saswp-myhome").val(1);
935
+ }else{
936
+ $("#saswp-myhome").val(0);
937
+ }
938
+ break;
939
+
940
+ case 'saswp-realestate-5-checkbox':
941
+ saswp_compatibliy_notes(current, id);
942
+ if ($(this).is(':checked')) {
943
+ $("#saswp-realestate-5").val(1);
944
+ }else{
945
+ $("#saswp-realestate-5").val(0);
946
+ }
947
+ break;
948
+
949
+ case 'saswp-classipress-checkbox':
950
+ saswp_compatibliy_notes(current, id);
951
+ if ($(this).is(':checked')) {
952
+ $("#saswp-classipress").val(1);
953
+ }else{
954
+ $("#saswp-classipress").val(0);
955
+ }
956
+ break;
957
 
958
  case 'saswp-realhomes-checkbox':
959
  saswp_compatibliy_notes(current, id);
972
  $("#saswp-learn-press").val(0);
973
  }
974
  break;
975
+
976
+ case 'saswp-wplms-checkbox':
977
+ saswp_compatibliy_notes(current, id);
978
+ if ($(this).is(':checked')) {
979
+ $("#saswp-wplms").val(1);
980
+ }else{
981
+ $("#saswp-wplms").val(0);
982
+ }
983
+ break;
984
 
985
  case 'saswp-learn-dash-checkbox':
986
  saswp_compatibliy_notes(current, id);
1347
  }
1348
 
1349
  break;
1350
+
1351
+ case 'saswp-stachethemes-event-calendar-checkbox':
1352
+ saswp_compatibliy_notes(current, id);
1353
+ if ($(this).is(':checked')) {
1354
+ $("#saswp-stachethemes-event-calendar").val(1);
1355
+ }else{
1356
+ $("#saswp-stachethemes-event-calendar").val(0);
1357
+ }
1358
+
1359
+ break;
1360
+
1361
+ case 'saswp-all-in-one-event-calendar-checkbox':
1362
+ saswp_compatibliy_notes(current, id);
1363
+ if ($(this).is(':checked')) {
1364
+ $("#saswp-all-in-one-event-calendar").val(1);
1365
+ }else{
1366
+ $("#saswp-all-in-one-event-calendar").val(0);
1367
+ }
1368
+ break;
1369
+
1370
+ case 'saswp-event-on-checkbox':
1371
+ saswp_compatibliy_notes(current, id);
1372
+ if ($(this).is(':checked')) {
1373
+ $("#saswp-event-on").val(1);
1374
+ }else{
1375
+ $("#saswp-event-on").val(0);
1376
+ }
1377
+ break;
1378
 
1379
  case 'saswp-easy-recipe-checkbox':
1380
  saswp_compatibliy_notes(current, id);
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_attached_rv=[],saswp_attached_col=[];jQuery(document).ready(function(s){if(s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show("Attach reviews to this schema type","#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("data-id"));var a=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==a&&saswp_attached_rv.push(e),"collection"==a&&saswp_attached_col.push(e)):("review"==a&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),"collection"==a&&saswp_attached_col.splice(saswp_attached_col.indexOf(e),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,p="";t>0&&(p+=t+" Reviews, "),i>0&&(p+=i+" Collection"),p||(p=0),s(".saswp-attached-rv-count").text("Attached "+p),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+a+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>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>')&&s(".saswp-g-reviews-settings-table").append(t)}),s(document).on("click",".saswp-fetch-g-reviews",function(){var e=s(this),a="free";e.addClass("updating-message");var t=s(this).parent().parent().find(".saswp-g-location-field").val(),i=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),o=s("#reviews_addon_license_key").val(),c=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),e.removeClass("updating-message"),!1;if(0!=i%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(o||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:c,reviews_api:o,location:t,blocks:i,g_api:p,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(e.parent().parent().find(".saswp-rv-fetched-msg").text(s.message),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),e.removeClass("updating-message")},error:function(s){console.log(s)}}):(""==t&&alert("Please enter place id"),""==p&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,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} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+='<div class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};e=function(){s(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(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},(t=s.extend(t,{buttons:function(s,e){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){e.element.pointer("close")}),button_2.on("click",function(){e.element.pointer("close")}),button},close:function(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(s,e){e.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?s(window).bind("load.wp-pointers",e):e()}if(s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),s(".saswp-schame-type-select").change(function(e){e.preventDefault(),s(".saswp-custom-fields-table").html("");var a=s(this).val();s(".saswp-option-table-class tr").each(function(e,a){e>0&&s(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-option-table-class tr").eq(1).show(),s(".saswp-business-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),s(".saswp-manual-modification").html(""),s(".saswp-static-container .spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-static-container .spinner").removeClass("is-active"),s(".saswp-manual-modification").append(e),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a?s(".saswp-enable-modify-schema").show():(s(".saswp-enable-modify-schema-output").val("automatic"),s(".saswp-enable-modify-schema-output").change(),s(".saswp-enable-modify-schema").hide())}),s("#saswp_business_type").change(function(){var e=s(this).val(),a=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(e,a){e>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-"+e+"-tr").show(),s(".saswp-business-text-field-tr").show(),s(".saswp-"+e+"-tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review()}).change(),s(".saswp-checkbox").change(function(){var e=s(this).attr("id"),a=s(this);switch(e){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-seo-framework").val(1):s("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-seo-press").val(1):s("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-aiosp").val(1):s("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-smart-crawl").val(1):s("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-squirrly-seo").val(1):s("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-recipe-maker").val(1):s("#saswp-wp-recipe-maker").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-ultimate-recipe").val(1):s("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-zip-recipes").val(1):s("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mediavine-create").val(1):s("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ht-recipes").val(1):s("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_schema").val(1):s("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":s(this).is(":checked")?s("#saswp_comments_schema").val(1):s("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":s(this).is(":checked")?s("#saswp-review-module").val(1):s("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-kk-star-raring").val(1):s("#saswp-kk-star-raring").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_default_review").val(1):s("#saswp_default_review").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-extra").val(1):s("#saswp-extra").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-job-manager").val(1):s("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yoast").val(1):s("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-events-calendar").val(1):s("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-homeland").val(1):s("#saswp-homeland").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-dash").val(1):s("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-manager").val(1):s("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-manager").val(1):s("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-calendar-wd").val(1):s("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-organiser").val(1):s("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-modern-events-calendar").val(1):s("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking").val(1),s("#saswp-woocommerce-booking-main").val(1)):(s("#saswp-woocommerce-booking").val(0),s("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking-main").val(1),s("#saswp-woocommerce-booking").val(1)):(s("#saswp-woocommerce-booking-main").val(0),s("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce-membership").val(1):s("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":s(this).is(":checked")?s("#saswp-defragment").val(1):s("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cooked").val(1):s("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-shopper-approved-review").val(1),s(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-shopper-approved-review").val(0),s(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":s(this).is(":checked")?(s("#saswp-google-review").val(1),s("#saswp-google-rv-free-checkbox").length?(s("#saswp-google-review-free").parent().parent().show(),s("#saswp-google-rv-free-checkbox").is(":checked")?s("#saswp_google_place_api_key").parent().parent().show():s("#saswp_google_place_api_key").parent().parent().hide()):s("#saswp_google_place_api_key").parent().parent().show(),s(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-google-review").val(0),s("#saswp_google_place_api_key").parent().parent().hide(),s(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),s("#saswp-google-rv-free-checkbox").length&&s("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":s("#saswp-google-review-checkbox").is(":checked")&&s(this).is(":checked")?(s("#saswp-google-review-free").val(1),s("#saswp_google_place_api_key").parent().parent().show()):(s("#saswp-google-review-free").val(0),s("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":s(this).is(":checked")?s("#saswp-markup-footer").val(1):s("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":s(this).is(":checked")?s("#saswp-pretty-print").val(1):s("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wppostratings-raring").val(1):s("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-bbpress").val(1):s("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":s(this).is(":checked")?s("#saswp-microdata-cleanup").val(1):s("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":s(this).is(":checked")?s("#saswp-other-images").val(1):s("#saswp-other-images").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-testimonial-pro-checkbox":s(this).is(":checked")?s("#saswp-testimonial-pro").val(1):s("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":s(this).is(":checked")?s("#saswp-bne-testimonials").val(1):s("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampforwp").val(1):s("#saswp-ampforwp").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampbyautomatic").val(1):s("#saswp-ampbyautomatic").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var e=s(this).val();s(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==e&&(s(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==e&&(s(".saswp_org_fields").parent().parent().addClass("saswp_hide"),s(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),s(document).on("click","input[data-id=media]",function(e){e.preventDefault();var a=s(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var e=i.state().get("selection").first().toJSON();s("#"+t).val(e.url),s("input[data-id='"+t+"_id']").val(e.id),s("input[data-id='"+t+"_height']").val(e.height),s("input[data-id='"+t+"_width']").val(e.width),s("input[data-id='"+t+"_thumbnail']").val(e.url),"sd_default_image_button"===a.attr("id")&&(s("#sd_default_image_width").val(e.width),s("#sd_default_image_height").val(e.height));var p="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(p='<p class="saswp_warning">Image size is smaller than recommended size</p>'),s(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+e.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+p)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");s(this).parent().remove(),s("#"+a).val(""),s("input[data-id='"+a+"_id']").val(""),s("input[data-id='"+a+"_height']").val(""),s("input[data-id='"+a+"_width']").val(""),s("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-post-specific-wrapper[data-id="+a+"] .saswp-post-specific-setting").after(e),s(".saswp_modify_this_schema_hidden_"+a).val(1),s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){t.removeClass("updating-message"),"t"==e.status?(s(".saswp_modify_this_schema_hidden_"+a).val(0),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+a).val();if(s(this).is(":checked")){var p=0;s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));p=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:p,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-reset-data",function(e){e.preventDefault(),1==confirm("Are you sure?")&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){setTimeout(function(){location.reload()},1e3)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("license-status"),i=s(this).attr("add-on"),p=s("#"+i+"_addon_license_key").val();t&&i&&p?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:p,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){s("#"+i+"_addon_license_key_status").val(e.status),"active"==e.status?(s(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").css("color","green"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),s(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),s(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)):(s(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").css("color","red"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),s(".saswp_license_activation[add-on='"+i+"']").text("Activate"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),s(".saswp-send-query").on("click",function(e){e.preventDefault();var a=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();console.log(saswpIsEmail(t)),""!=s.trim(a)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:a,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(a)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(a)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id");s.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?(s(a).parent().find(".saswp-imported-message").text(e.message),s(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(a).parent().find(".saswp-imported-message").addClass("saswp-error"),s(a).parent().find(".saswp-imported-message").text(e.message)),a.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(e){e.preventDefault();var a=s(this),t=s(this).val();s.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',s.each(e.result,function(s,e){i+='<option value="'+s+'">'+e+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(e){e.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(e){e.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();s(".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>')}),s(document).on("click",".saswp-remove-review-item",function(e){e.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(e){e.preventDefault();var a=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(e,t){""==s(t).val()?a+=parseFloat(0):a+=parseFloat(s(t).val())});var i=a/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var e=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==e&&s(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),s("#saswp-review-item-enable").change(function(){s(this).is(":checked")?s(".saswp-review-fields").show():s(".saswp-review-fields").hide()}).change(),s(document).on("click",".saswp-restore-post-schema",function(e){e.preventDefault();var a=s(this);if(a.addClass("updating-message"),s(".saswp-post-specific-schema-ids").val())var t=JSON.parse(s(".saswp-post-specific-schema-ids").val());s.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?setTimeout(function(){location.reload()},1e3):(alert(s.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(e){e.preventDefault();var a=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+a).show(),s("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),s("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),s(this).addClass("selected"),s(this).parent().addClass("selected"),saswp_enable_rating_review()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?s(".saswp-global-container:eq(2)").show():s(".saswp-global-container:first").show(),s("#saswp-global-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-global-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-global-container").hide(),s("#"+e).show())}),s("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s(".saswp-tools-container:first").show(),s("#saswp-tools-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-tools-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s("#"+e).show())}),s("#saswp-review-tabs a:first").addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s(".saswp-review-container:first").show(),s("#saswp-review-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-review-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s("#"+e).show())}),s("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s(".saswp-compatibility-container:first").show(),s("#saswp-compatibility-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s("#"+e).show())}),s('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),s(".saswp-enable-modify-schema-output").on("change",function(){s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==s(this).val()&&(s(".saswp-static-container").removeClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==s(this).val()&&(s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").removeClass("saswp_hide"))}),s(document).on("change",".saswp-custom-fields-name",function(){var e="text",a=s(this).parent().parent("tr"),t=s(this).val();-1==t.indexOf("_image")&&-1==t.indexOf("_logo")||(e="image");var i=s(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,e,null,i,t,a)}),s(document).on("click",".saswp-skip-button",function(e){e.preventDefault(),s(this).parent().parent().hide(),s.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){},"json")}),s(document).on("click",".saswp_add_schema_fields_on_fly",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id"),i=s(this).attr("fields_type"),p=s(this).attr("div_type"),o=s(this).attr("itemlist_sub_type"),c=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div:nth-child("+c+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,p,t,i+"_",o)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-rmv-modify_row",function(e){e.preventDefault(),s(this).parent().parent().remove()}),s(document).on("change",".saswp-custom-meta-list",function(){var e=s(this),a=s("select#schema_type option:selected").val(),t=s(this).val(),i=s(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),p="",o=a.toLowerCase()+"_"+i,c="saswp_fixed_image["+i+"]";"manual_text"==t?(p+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(p+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2()):s.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s&&(saswp_taxonomy_term.taxonomy=s,p+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2())},"json"):"custom_field"==t?(p+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',p+="</select></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"fixed_image"==t?(p+="<td>",p+="<fieldset>",p+='<input data-id="media" style="width: 30%;" class="button" id="'+o+'_button" name="'+o+'_button" type="button" value="Upload" />',p+='<input type="hidden" data-id="'+o+'_height" class="upload-height" name="'+c+'[height]" id="'+o+'_height" value="">',p+='<input type="hidden" data-id="'+o+'_width" class="upload-width" name="'+c+'[width]" id="'+o+'_width" value="">',p+='<input type="hidden" data-id="'+o+'_thumbnail" class="upload-thumbnail" name="'+c+'[thumbnail]" id="'+o+'_thumbnail" value="">',p+='<div class="saswp_image_div_'+o+'">',p+="</div>",p+="</fieldset>",p+="</td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):(p+="<td></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2())}),s(document).on("change",".saswp-item-reivewed-list",function(){s(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var e=s(this),a=s("select#schema_type option:selected").val();saswp_item_reviewed_ajax(a,e,"manual")}),s(document).on("click",".saswp-add-custom-fields",function(){var e=s(this);e.addClass("updating-message");var a=s("select#schema_type option:selected").val(),t="",i=null;"Review"==a&&(t=s("select.saswp-item-reivewed-list option:selected").val(),i="saswp_review_name");var p=s("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null):s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:p,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){saswp_meta_list_fields[a]=s,saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null)},error:function(s){console.log(s)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),s('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),s(document).on("click",".saswp_coonect_google_place",function(){var e=s("#saswp_google_place_id").val(),a=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:e,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var i='<div class="saswp-custom-post-tab">';i+='<div style="display:none;" id="saswp-accept-reviews-popup">',i+='<div class="saswp-accept-rv-container">',i+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",i+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',i+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',i+="</div>",i+="</div>",i+='<h2 class="nav-tab-wrapper">',i+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',i+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',i+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',i+="</h2>",i+="</div>",jQuery(jQuery(".wrap")).prepend(i)}"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&s(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().val(e)}}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var e=s(this);e.parent().find(".saswp-phone-validation").remove();var a=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?e.parent().find(".saswp-phone-validation").remove():e.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-grid-page",function(e){e.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(e){e.preventDefault();var a=s(this).attr("platform-id");saswp_collection.splice(a,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var e=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),"grid"==e&&s(".saswp-grid-options").removeClass("saswp_hide"),"gallery"==e&&s(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==e&&(s(".saswp-fomo-options").removeClass("saswp_hide"),s(".saswp-collection-lp").css("height","31px")),"popup"==e&&s(".saswp-collection-lp").css("height","31px"),saswp_on_collection_design_change()}).change(),s(".saswp-add-to-collection").on("click",function(e){e.preventDefault();var a=s(this),t=s("#saswp-plaftorm-list").val(),i=s("#saswp-review-count").val();t&&i>0?(a.addClass("updating-message"),saswp_get_collection_data(i,t,a)):alert("Enter Count")});var p,o,c=s("#saswp_collection_id").val();c&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if(e.status){var a=e.message;s.each(a,function(s,e){saswp_get_collection_data(e,s,null)})}s(".spinner").removeClass("is-active")},"json")),(p=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",p.innerHTML="Copied!",document.body.appendChild(p);var n=document.getElementById("motivatebox");n&&n.addEventListener("mouseup",function(s){var e=(s=s||event).target||s.srcElement;"motivate"==e.className&&(!function(s){var e=document.createRange();e.selectNodeContents(s);var a=window.getSelection();a.removeAllRanges(),a.addRange(e)}(e),function(){var s;try{s=document.execCommand("copy")}catch(e){s=!1}return s}()&&function(s){var e=s||event;clearTimeout(o),p.style.left=e.pageX-10+"px",p.style.top=e.pageY+15+"px",p.style.opacity=1,o=setTimeout(function(){p.style.opacity=0},500)}(s))},!1)});
1
+ var saswp_attached_rv=[],saswp_attached_col=[];jQuery(document).ready(function(s){if(s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show("Attach reviews to this schema type","#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("data-id"));var a=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==a&&saswp_attached_rv.push(e),"collection"==a&&saswp_attached_col.push(e)):("review"==a&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),"collection"==a&&saswp_attached_col.splice(saswp_attached_col.indexOf(e),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,p="";t>0&&(p+=t+" Reviews, "),i>0&&(p+=i+" Collection"),p||(p=0),s(".saswp-attached-rv-count").text("Attached "+p),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+a+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>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>')&&s(".saswp-g-reviews-settings-table").append(t)}),s(document).on("click",".saswp-fetch-g-reviews",function(){var e=s(this),a="free";e.addClass("updating-message");var t=s(this).parent().parent().find(".saswp-g-location-field").val(),i=s(this).parent().parent().find(".saswp-g-blocks-field").val(),p=s("#saswp_google_place_api_key").val(),o=s("#reviews_addon_license_key").val(),c=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert("Blocks value is zero"),e.removeClass("updating-message"),!1;if(0!=i%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text("Reviews count should be in step of 10"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(o||p)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:c,reviews_api:o,location:t,blocks:i,g_api:p,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(e.parent().parent().find(".saswp-rv-fetched-msg").text("Success"),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(e.parent().parent().find(".saswp-rv-fetched-msg").text(s.message),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),e.removeClass("updating-message")},error:function(s){console.log(s)}}):(""==t&&alert("Please enter place id"),""==p&&alert("Please enter api key"),""==o&&alert("Please enter reviews api key"),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,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} #afw_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="afw_mc_embed_signup">',a+='<form action="//app.mailerlite.com/webforms/submit/z7t4b8" data-id="258182" data-code="z7t4b8" method="POST" target="_blank">',a+='<div id="afw_mc_embed_signup_scroll">',a+='<div class="afw-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="fields[name]" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',a+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="fields[email]" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="fields[company]" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',a+='<input type="hidden" name="ml-submit" value="1" />',a+="</div>",a+='<div id="mce-responses">',a+='<div class="response" id="mce-error-response" style="display:none"></div>',a+='<div class="response" id="mce-success-response" style="display:none"></div>',a+="</div>",a+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',a+='<input type="submit" value="Subscribe" name="subscribe" id="pointer-close" class="button mc-newsletter-sent" style=" background: #0085ba; border-color: #006799; padding: 0px 16px; text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799; height: 30px; margin-top: 1px; color: #fff; box-shadow: 0 1px 0 #006799;">',a+="</div>",a+="</form>";var t={content:a+="</div>",position:{edge:"top",align:"left"}};e=function(){s(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(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})}))},(t=s.extend(t,{buttons:function(s,e){return button=jQuery('<a id="pointer-close" class="button-secondary">'+saswp_localize_data.button1+"</a>"),button_2=jQuery("#pointer-close.button"),button.bind("click.pointer",function(){e.element.pointer("close")}),button_2.on("click",function(){e.element.pointer("close")}),button},close:function(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(s,e){e.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?s(window).bind("load.wp-pointers",e):e()}if(s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);return t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1}),s(".saswp-schame-type-select").change(function(e){e.preventDefault(),s(".saswp-custom-fields-table").html("");var a=s(this).val();s(".saswp-option-table-class tr").each(function(e,a){e>0&&s(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-option-table-class tr").eq(1).show(),s(".saswp-business-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),s(".saswp-manual-modification").html(""),s(".saswp-static-container .spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-static-container .spinner").removeClass("is-active"),s(".saswp-manual-modification").append(e),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==a||"local_business"==a||"FAQ"==a?s(".saswp-enable-modify-schema").show():(s(".saswp-enable-modify-schema-output").val("automatic"),s(".saswp-enable-modify-schema-output").change(),s(".saswp-enable-modify-schema").hide())}),s("#saswp_business_type").change(function(){var e=s(this).val(),a=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(e,a){e>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"local_business"==a&&(s(".saswp-"+e+"-tr").show(),s(".saswp-business-text-field-tr").show(),s(".saswp-"+e+"-tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review()}).change(),s(".saswp-checkbox").change(function(){var e=s(this).attr("id"),a=s(this);switch(e){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-seo-framework").val(1):s("#saswp-the-seo-framework").val(0);break;case"saswp-seo-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-seo-press").val(1):s("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-aiosp").val(1):s("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-smart-crawl").val(1):s("#saswp-smart-crawl").val(0);break;case"saswp-squirrly-seo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-squirrly-seo").val(1):s("#saswp-squirrly-seo").val(0);break;case"saswp-wp-recipe-maker-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-recipe-maker").val(1):s("#saswp-wp-recipe-maker").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-ultimate-recipe").val(1):s("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-zip-recipes").val(1):s("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mediavine-create").val(1):s("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ht-recipes").val(1):s("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_schema").val(1):s("#saswp_breadcrumb_schema").val(0);break;case"saswp_comments_schema_checkbox":s(this).is(":checked")?s("#saswp_comments_schema").val(1):s("#saswp_comments_schema").val(0);break;case"saswp-compativility-checkbox":s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-review-module-checkbox":s(this).is(":checked")?s("#saswp-review-module").val(1):s("#saswp-review-module").val(0);break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-kk-star-raring").val(1):s("#saswp-kk-star-raring").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_default_review").val(1):s("#saswp_default_review").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-extra").val(1):s("#saswp-extra").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-job-manager").val(1):s("#saswp-wp-job-manager").val(0);break;case"saswp-yoast-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yoast").val(1):s("#saswp-yoast").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-the-events-calendar").val(1):s("#saswp-the-events-calendar").val(0);break;case"saswp-homeland-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-homeland").val(1):s("#saswp-homeland").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-myhome").val(1):s("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-5").val(1):s("#saswp-realestate-5").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-classipress").val(1):s("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wplms").val(1):s("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-dash").val(1):s("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-manager").val(1):s("#saswp-wp-event-manager").val(0);break;case"saswp-events-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-manager").val(1):s("#saswp-events-manager").val(0);break;case"saswp-event-calendar-wd-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-calendar-wd").val(1):s("#saswp-event-calendar-wd").val(0);break;case"saswp-event-organiser-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-organiser").val(1):s("#saswp-event-organiser").val(0);break;case"saswp-modern-events-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-modern-events-calendar").val(1):s("#saswp-modern-events-calendar").val(0);break;case"saswp-woocommerce-booking-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking").val(1),s("#saswp-woocommerce-booking-main").val(1)):(s("#saswp-woocommerce-booking").val(0),s("#saswp-woocommerce-booking-main").val(0));break;case"saswp-woocommerce-booking-main-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-woocommerce-booking-main").val(1),s("#saswp-woocommerce-booking").val(1)):(s("#saswp-woocommerce-booking-main").val(0),s("#saswp-woocommerce-booking").val(0));break;case"saswp-woocommerce-membership-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce-membership").val(1):s("#saswp-woocommerce-membership").val(0);break;case"saswp-defragment-checkbox":s(this).is(":checked")?s("#saswp-defragment").val(1):s("#saswp-defragment").val(0);break;case"saswp-cooked-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cooked").val(1):s("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-flexmlx-compativility").val(1):s("#saswp-flexmlx-compativility").val(0);break;case"saswp-shopper-approved-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-shopper-approved-review").val(1),s(".saswp-s-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-shopper-approved-review").val(0),s(".saswp-s-reviews-settings-table").parent().parent().parent().hide());break;case"saswp-google-review-checkbox":s(this).is(":checked")?(s("#saswp-google-review").val(1),s("#saswp-google-rv-free-checkbox").length?(s("#saswp-google-review-free").parent().parent().show(),s("#saswp-google-rv-free-checkbox").is(":checked")?s("#saswp_google_place_api_key").parent().parent().show():s("#saswp_google_place_api_key").parent().parent().hide()):s("#saswp_google_place_api_key").parent().parent().show(),s(".saswp-g-reviews-settings-table").parent().parent().parent().show()):(s("#saswp-google-review").val(0),s("#saswp_google_place_api_key").parent().parent().hide(),s(".saswp-g-reviews-settings-table").parent().parent().parent().hide(),s("#saswp-google-rv-free-checkbox").length&&s("#saswp-google-review-free").parent().parent().hide());break;case"saswp-google-rv-free-checkbox":s("#saswp-google-review-checkbox").is(":checked")&&s(this).is(":checked")?(s("#saswp-google-review-free").val(1),s("#saswp_google_place_api_key").parent().parent().show()):(s("#saswp-google-review-free").val(0),s("#saswp_google_place_api_key").parent().parent().hide());break;case"saswp-markup-footer-checkbox":s(this).is(":checked")?s("#saswp-markup-footer").val(1):s("#saswp-markup-footer").val(0);break;case"saswp-pretty-print-checkbox":s(this).is(":checked")?s("#saswp-pretty-print").val(1):s("#saswp-pretty-print").val(0);break;case"saswp-wppostratings-raring-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wppostratings-raring").val(1):s("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-bbpress").val(1):s("#saswp-bbpress").val(0);break;case"saswp-microdata-cleanup-checkbox":s(this).is(":checked")?s("#saswp-microdata-cleanup").val(1):s("#saswp-microdata-cleanup").val(0);break;case"saswp-other-images-checkbox":s(this).is(":checked")?s("#saswp-other-images").val(1):s("#saswp-other-images").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-testimonial-pro-checkbox":s(this).is(":checked")?s("#saswp-testimonial-pro").val(1):s("#saswp-testimonial-pro").val(0);break;case"saswp-bne-testimonials-checkbox":s(this).is(":checked")?s("#saswp-bne-testimonials").val(1):s("#saswp-bne-testimonials").val(0);break;case"saswp-ampforwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampforwp").val(1):s("#saswp-ampforwp").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampbyautomatic").val(1):s("#saswp-ampbyautomatic").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stachethemes-event-calendar").val(1):s("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-all-in-one-event-calendar").val(1):s("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-on").val(1):s("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var e=s(this).val();s(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==e&&(s(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==e&&(s(".saswp_org_fields").parent().parent().addClass("saswp_hide"),s(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),s(document).on("click","input[data-id=media]",function(e){e.preventDefault();var a=s(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var e=i.state().get("selection").first().toJSON();s("#"+t).val(e.url),s("input[data-id='"+t+"_id']").val(e.id),s("input[data-id='"+t+"_height']").val(e.height),s("input[data-id='"+t+"_width']").val(e.width),s("input[data-id='"+t+"_thumbnail']").val(e.url),"sd_default_image_button"===a.attr("id")&&(s("#sd_default_image_width").val(e.width),s("#sd_default_image_height").val(e.height));var p="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(p='<p class="saswp_warning">Image size is smaller than recommended size</p>'),s(".saswp_image_div_"+t).html('<div class="saswp_image_thumbnail"><img class="saswp_image_prev" src="'+e.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+p)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");s(this).parent().remove(),s("#"+a).val(""),s("input[data-id='"+a+"_id']").val(""),s("input[data-id='"+a+"_height']").val(""),s("input[data-id='"+a+"_width']").val(""),s("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-post-specific-wrapper[data-id="+a+"] .saswp-post-specific-setting").after(e),s(".saswp_modify_this_schema_hidden_"+a).val(1),s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){t.removeClass("updating-message"),"t"==e.status?(s(".saswp_modify_this_schema_hidden_"+a).val(0),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+a).val();if(s(this).is(":checked")){var p=0;s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));p=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:p,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-reset-data",function(e){e.preventDefault(),1==confirm("Are you sure?")&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_reset_all_settings",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){setTimeout(function(){location.reload()},1e3)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp_license_activation",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("license-status"),i=s(this).attr("add-on"),p=s("#"+i+"_addon_license_key").val();t&&i&&p?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:p,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){s("#"+i+"_addon_license_key_status").val(e.status),"active"==e.status?(s(".saswp-"+i+"-dashicons").addClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").css("color","green"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","inactive"),s(".saswp_license_activation[add-on='"+i+"']").text("Deactivate"),s(".saswp_license_status_msg[add-on='"+i+"']").text("Activated"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","green"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)):(s(".saswp-"+i+"-dashicons").addClass("dashicons-no-alt"),s(".saswp-"+i+"-dashicons").removeClass("dashicons-yes"),s(".saswp-"+i+"-dashicons").css("color","red"),s(".saswp_license_activation[add-on='"+i+"']").attr("license-status","active"),s(".saswp_license_activation[add-on='"+i+"']").text("Activate"),s(".saswp_license_status_msg[add-on='"+i+"']").css("color","red"),s(".saswp_license_status_msg[add-on='"+i+"']").text(e.message)),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),s(".saswp-send-query").on("click",function(e){e.preventDefault();var a=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();console.log(saswpIsEmail(t)),""!=s.trim(a)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:a,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(a)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(a)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id");s.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?(s(a).parent().find(".saswp-imported-message").text(e.message),s(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(a).parent().find(".saswp-imported-message").addClass("saswp-error"),s(a).parent().find(".saswp-imported-message").text(e.message)),a.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(e){e.preventDefault();var a=s(this),t=s(this).val();s.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',s.each(e.result,function(s,e){i+='<option value="'+s+'">'+e+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(e){e.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(e){e.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();s(".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>')}),s(document).on("click",".saswp-remove-review-item",function(e){e.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(e){e.preventDefault();var a=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(e,t){""==s(t).val()?a+=parseFloat(0):a+=parseFloat(s(t).val())});var i=a/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var e=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==e&&s(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),s("#saswp-review-item-enable").change(function(){s(this).is(":checked")?s(".saswp-review-fields").show():s(".saswp-review-fields").hide()}).change(),s(document).on("click",".saswp-restore-post-schema",function(e){e.preventDefault();var a=s(this);if(a.addClass("updating-message"),s(".saswp-post-specific-schema-ids").val())var t=JSON.parse(s(".saswp-post-specific-schema-ids").val());s.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?setTimeout(function(){location.reload()},1e3):(alert(s.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(e){e.preventDefault();var a=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+a).show(),s("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),s("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),s(this).addClass("selected"),s(this).parent().addClass("selected"),saswp_enable_rating_review()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide(),"#saswp-default-container"==window.location.hash?s(".saswp-global-container:eq(2)").show():s(".saswp-global-container:first").show(),s("#saswp-global-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-global-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-global-container").hide(),s("#"+e).show())}),s("#saswp-tools-tabs a:first").addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s(".saswp-tools-container:first").show(),s("#saswp-tools-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-tools-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-tools-container").hide(),s("#"+e).show())}),s("#saswp-review-tabs a:first").addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s(".saswp-review-container:first").show(),s("#saswp-review-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-review-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-review-container").hide(),s("#"+e).show())}),s("#saswp-compatibility-tabs a:first").addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s(".saswp-compatibility-container:first").show(),s("#saswp-compatibility-tabs a").click(function(){var e=s(this).attr("data-id");s(this).hasClass("saswp-global-selected")||(s("#saswp-compatibility-tabs a").removeClass("saswp-global-selected"),s(this).addClass("saswp-global-selected"),s(".saswp-compatibility-container").hide(),s("#"+e).show())}),s('a[href="'+saswp_localize_data.new_url_selector+'"]').attr("href",saswp_localize_data.new_url_href),s(".saswp-enable-modify-schema-output").on("change",function(){s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide"),"manual"==s(this).val()&&(s(".saswp-static-container").removeClass("saswp_hide"),s(".saswp-dynamic-container").addClass("saswp_hide")),"automatic"==s(this).val()&&(s(".saswp-static-container").addClass("saswp_hide"),s(".saswp-dynamic-container").removeClass("saswp_hide"))}),s(document).on("change",".saswp-custom-fields-name",function(){var e="text",a=s(this).parent().parent("tr"),t=s(this).val();-1==t.indexOf("_image")&&-1==t.indexOf("_logo")||(e="image");var i=s(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,e,null,i,t,a)}),s(document).on("click",".saswp-skip-button",function(e){e.preventDefault(),s(this).parent().parent().hide(),s.post(ajaxurl,{action:"saswp_skip_wizard",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){},"json")}),s(document).on("click",".saswp_add_schema_fields_on_fly",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id"),i=s(this).attr("fields_type"),p=s(this).attr("div_type"),o=s(this).attr("itemlist_sub_type"),c=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+p+"-table-div:nth-child("+c+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,p,t,i+"_",o)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-rmv-modify_row",function(e){e.preventDefault(),s(this).parent().parent().remove()}),s(document).on("change",".saswp-custom-meta-list",function(){var e=s(this),a=s("select#schema_type option:selected").val(),t=s(this).val(),i=s(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),p="",o=a.toLowerCase()+"_"+i,c="saswp_fixed_image["+i+"]";"manual_text"==t?(p+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(p+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2()):s.get(ajaxurl,{action:"saswp_get_taxonomy_term_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s&&(saswp_taxonomy_term.taxonomy=s,p+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(p),saswpCustomSelect2())},"json"):"custom_field"==t?(p+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',p+="</select></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):"fixed_image"==t?(p+="<td>",p+="<fieldset>",p+='<input data-id="media" style="width: 30%;" class="button" id="'+o+'_button" name="'+o+'_button" type="button" value="Upload" />',p+='<input type="hidden" data-id="'+o+'_height" class="upload-height" name="'+c+'[height]" id="'+o+'_height" value="">',p+='<input type="hidden" data-id="'+o+'_width" class="upload-width" name="'+c+'[width]" id="'+o+'_width" value="">',p+='<input type="hidden" data-id="'+o+'_thumbnail" class="upload-thumbnail" name="'+c+'[thumbnail]" id="'+o+'_thumbnail" value="">',p+='<div class="saswp_image_div_'+o+'">',p+="</div>",p+="</fieldset>",p+="</td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2()):(p+="<td></td>",p+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>',s(this).parent().parent("tr").find("td:gt(1)").remove(),s(this).parent().parent("tr").append(p),saswpCustomSelect2())}),s(document).on("change",".saswp-item-reivewed-list",function(){s(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var e=s(this),a=s("select#schema_type option:selected").val();saswp_item_reviewed_ajax(a,e,"manual")}),s(document).on("click",".saswp-add-custom-fields",function(){var e=s(this);e.addClass("updating-message");var a=s("select#schema_type option:selected").val(),t="",i=null;"Review"==a&&(t=s("select.saswp-item-reivewed-list option:selected").val(),i="saswp_review_name");var p=s("#post_ID").val();""!=a&&(saswp_meta_list_fields[a]?saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null):s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:p,schema_type:a,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){saswp_meta_list_fields[a]=s,saswp_get_meta_list(e,"text",saswp_meta_list_fields[a],null,i,null)},error:function(s){console.log(s)}}))}),saswpCustomSelect2(),saswp_enable_rating_review(),s('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),s(document).on("click",".saswp_coonect_google_place",function(){var e=s("#saswp_google_place_id").val(),a=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:e,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var i='<div class="saswp-custom-post-tab">';i+='<div style="display:none;" id="saswp-accept-reviews-popup">',i+='<div class="saswp-accept-rv-container">',i+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",i+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',i+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',i+="</div>",i+="</div>",i+='<h2 class="nav-tab-wrapper">',i+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',i+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',i+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',i+="</h2>",i+="</div>",jQuery(jQuery(".wrap")).prepend(i)}"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&s(".saswp-rating-div").rateYo({rating:saswp_reviews_data.rating_val,halfStar:!0,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().val(e)}}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var e=s(this);e.parent().find(".saswp-phone-validation").remove();var a=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?e.parent().find(".saswp-phone-validation").remove():e.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-grid-page",function(e){e.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(e){e.preventDefault();var a=s(this).attr("platform-id");saswp_collection.splice(a,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var e=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),"grid"==e&&s(".saswp-grid-options").removeClass("saswp_hide"),"gallery"==e&&s(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==e&&(s(".saswp-fomo-options").removeClass("saswp_hide"),s(".saswp-collection-lp").css("height","31px")),"popup"==e&&s(".saswp-collection-lp").css("height","31px"),saswp_on_collection_design_change()}).change(),s(".saswp-add-to-collection").on("click",function(e){e.preventDefault();var a=s(this),t=s("#saswp-plaftorm-list").val(),i=s("#saswp-review-count").val();t&&i>0?(a.addClass("updating-message"),saswp_get_collection_data(i,t,a)):alert("Enter Count")});var p,o,c=s("#saswp_collection_id").val();c&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:c,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if(e.status){var a=e.message;s.each(a,function(s,e){saswp_get_collection_data(e,s,null)})}s(".spinner").removeClass("is-active")},"json")),(p=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",p.innerHTML="Copied!",document.body.appendChild(p);var n=document.getElementById("motivatebox");n&&n.addEventListener("mouseup",function(s){var e=(s=s||event).target||s.srcElement;"motivate"==e.className&&(!function(s){var e=document.createRange();e.selectNodeContents(s);var a=window.getSelection();a.removeAllRanges(),a.addRange(e)}(e),function(){var s;try{s=document.execCommand("copy")}catch(e){s=!1}return s}()&&function(s){var e=s||event;clearTimeout(o),p.style.left=e.pageX-10+"px",p.style.top=e.pageY+15+"px",p.style.opacity=1,o=setTimeout(function(){p.style.opacity=0},500)}(s))},!1)});
admin_section/js/structure_admin.js CHANGED
@@ -126,10 +126,12 @@ jQuery(document).ready(function($){
126
  });//jQuery(document) closed
127
  function taxonomyDataCall(){
128
  jQuery('select.ajax-output').change(function(){
129
- var mainSelectedValue = jQuery(".select-post-type").val();
 
 
130
  if(mainSelectedValue=="ef_taxonomy"){
131
  parentSelector = jQuery(this).parents("td").find(".insert-ajax-select");
132
- var selectedValue = jQuery(this).val();
133
  var currentFiledNumber = jQuery(this).attr("name").split("[")[1].replace("]",'');
134
  var saswp_call_nonce = jQuery("#saswp_select_name_nonce").val();
135
 
126
  });//jQuery(document) closed
127
  function taxonomyDataCall(){
128
  jQuery('select.ajax-output').change(function(){
129
+
130
+ var mainSelectedValue = jQuery(this).closest("tr").find('.select-post-type').val();
131
+
132
  if(mainSelectedValue=="ef_taxonomy"){
133
  parentSelector = jQuery(this).parents("td").find(".insert-ajax-select");
134
+ var selectedValue = jQuery(this).val();
135
  var currentFiledNumber = jQuery(this).attr("name").split("[")[1].replace("]",'');
136
  var saswp_call_nonce = jQuery("#saswp_select_name_nonce").val();
137
 
admin_section/js/structure_admin.min.js CHANGED
@@ -1 +1 @@
1
- var clone=function(){jQuery(".structured-clone").off("click").click(function(){var e=jQuery(this).closest(".saswp-placement-group").attr("data-id"),t=jQuery(document).find("#call_html_template_sdwp").html();nextId=jQuery(this).parents("tbody").find("tr").length,t=(t=t.replace(/\[0\]/g,"["+nextId+"]")).replace(/\[group-0\]/g,"[group-"+e+"]"),jQuery(this).parents("tr").after(t),removeHtml(),clone()})},removeHtml=function(){jQuery(".structured-delete").off("click").click(function(){1==jQuery(".saswp-placement-group").length?jQuery(this).parents("tbody").find("tr").length>1&&jQuery(this).parents("tr").remove():1==jQuery(this).parents("tbody").find("tr").length?jQuery(this).parents(".saswp-placement-group").remove():jQuery(this).parents("tr").remove()})};function taxonomyDataCall(){jQuery("select.ajax-output").change(function(){if("ef_taxonomy"==jQuery(".select-post-type").val()){parentSelector=jQuery(this).parents("td").find(".insert-ajax-select");var e=jQuery(this).val(),t=jQuery(this).attr("name").split("[")[1].replace("]",""),a=jQuery("#saswp_select_name_nonce").val();parentSelector.find(".ajax-output-child").remove(),parentSelector.find(".spinner").attr("style","visibility:visible"),parentSelector.children(".spinner").addClass("show");var r=saswp_app_object.ajax_url,s=jQuery(this).closest(".saswp-placement-group").attr("data-id");jQuery.ajax({url:r,method:"POST",data:{action:"create_ajax_select_sdwp_taxonomy",id:e,number:t,group_number:s,saswp_call_nonce:a},beforeSend:function(){},success:function(e){parentSelector.find(".ajax-output-child").remove(),parentSelector.children(".spinner").removeClass("show"),parentSelector.find(".spinner").attr("style","visibility:hidden").hide(),parentSelector.append(e),taxonomyDataCall()},error:function(e){console.log("Failed Ajax Request"),console.log(e)}})}})}jQuery(document).ready(function(e){e("#saswp-dayofweek-opens-time").timepicker({timeFormat:"H:i:s"}),e("#saswp-dayofweek-closes-time").timepicker({timeFormat:"H:i:s"}),e(".saswp-placement-or-group").on("click",function(t){t.preventDefault();var a="",r=(a=e(".saswp-placement-group").length,jQuery(document).find("#call_html_template_sdwp").html()),s="";s+='<table class="widefat saswp-placement-table" style="border:0px;">',s+=r=r.replace(/\[group-0\]/g,"[group-"+a+"]");var n="";n+='<div class="saswp-placement-group" name="data_group_array['+a+']" data-id="'+a+'">',n+='<span style="margin-left:10px;font-weight:600">Or</span>',n+=s+="</table>",n+="</div>",e(".saswp-placement-group[data-id="+(a-1)+"]").after(n),a++,clone(),removeHtml()});var t=e("#saswp_amp_select").find("table.widefat tr").html();e("body").append("<script type='template/html' id='call_html_template_sdwp'><tr class='toclone cloneya'>"+t+"</tr>"),clone(),removeHtml(),e(document).on("change",".select-post-type",function(){var t=e(this),a=e(this).parents("tr").find(".insert-ajax-select"),r=e(this).val(),s=[1,2,3,4];if("show_globally"!=r){e.each(s,function(a,r){e(t).closest("tr").find("td").eq(r).show()});var n=e(this).attr("class").split(" ")[2],l=jQuery("#saswp_select_name_nonce").val();a.find(".ajax-output").remove(),a.find(".ajax-output-child").remove(),a.find(".spinner").attr("style","visibility:visible"),a.children(".spinner").addClass("show");var o=saswp_app_object.ajax_url,i=jQuery(this).closest(".saswp-placement-group").attr("data-id");e.ajax({url:o,method:"POST",data:{action:"create_ajax_select_sdwp",id:r,number:n,group_number:i,saswp_call_nonce:l},beforeSend:function(){},success:function(e){a.find(".ajax-output").remove(),a.children(".spinner").removeClass("show"),a.find(".spinner").attr("style","visibility:hidden").hide(),a.append(e),taxonomyDataCall()},error:function(e){console.log("Failed Ajax Request"),console.log(e)}})}else e.each(s,function(a,r){e(t).closest("tr").find("td").eq(r).hide()})}),taxonomyDataCall(),e("#notAccessibleForFree").click(function(){e(this).is(":checked")?(e("#paywall_class_name").parents("tr").show(),e("#isAccessibleForFree").parents("tr").show()):(e("#paywall_class_name").parents("tr").hide(),e("#isAccessibleForFree").parents("tr").hide())})});
1
+ var clone=function(){jQuery(".structured-clone").off("click").click(function(){var e=jQuery(this).closest(".saswp-placement-group").attr("data-id"),t=jQuery(document).find("#call_html_template_sdwp").html();nextId=jQuery(this).parents("tbody").find("tr").length,t=(t=t.replace(/\[0\]/g,"["+nextId+"]")).replace(/\[group-0\]/g,"[group-"+e+"]"),jQuery(this).parents("tr").after(t),removeHtml(),clone()})},removeHtml=function(){jQuery(".structured-delete").off("click").click(function(){1==jQuery(".saswp-placement-group").length?jQuery(this).parents("tbody").find("tr").length>1&&jQuery(this).parents("tr").remove():1==jQuery(this).parents("tbody").find("tr").length?jQuery(this).parents(".saswp-placement-group").remove():jQuery(this).parents("tr").remove()})};function taxonomyDataCall(){jQuery("select.ajax-output").change(function(){if("ef_taxonomy"==jQuery(this).closest("tr").find(".select-post-type").val()){parentSelector=jQuery(this).parents("td").find(".insert-ajax-select");var e=jQuery(this).val(),t=jQuery(this).attr("name").split("[")[1].replace("]",""),a=jQuery("#saswp_select_name_nonce").val();parentSelector.find(".ajax-output-child").remove(),parentSelector.find(".spinner").attr("style","visibility:visible"),parentSelector.children(".spinner").addClass("show");var s=saswp_app_object.ajax_url,r=jQuery(this).closest(".saswp-placement-group").attr("data-id");jQuery.ajax({url:s,method:"POST",data:{action:"create_ajax_select_sdwp_taxonomy",id:e,number:t,group_number:r,saswp_call_nonce:a},beforeSend:function(){},success:function(e){parentSelector.find(".ajax-output-child").remove(),parentSelector.children(".spinner").removeClass("show"),parentSelector.find(".spinner").attr("style","visibility:hidden").hide(),parentSelector.append(e),taxonomyDataCall()},error:function(e){console.log("Failed Ajax Request"),console.log(e)}})}})}jQuery(document).ready(function(e){e("#saswp-dayofweek-opens-time").timepicker({timeFormat:"H:i:s"}),e("#saswp-dayofweek-closes-time").timepicker({timeFormat:"H:i:s"}),e(".saswp-placement-or-group").on("click",function(t){t.preventDefault();var a="",s=(a=e(".saswp-placement-group").length,jQuery(document).find("#call_html_template_sdwp").html()),r="";r+='<table class="widefat saswp-placement-table" style="border:0px;">',r+=s=s.replace(/\[group-0\]/g,"[group-"+a+"]");var n="";n+='<div class="saswp-placement-group" name="data_group_array['+a+']" data-id="'+a+'">',n+='<span style="margin-left:10px;font-weight:600">Or</span>',n+=r+="</table>",n+="</div>",e(".saswp-placement-group[data-id="+(a-1)+"]").after(n),a++,clone(),removeHtml()});var t=e("#saswp_amp_select").find("table.widefat tr").html();e("body").append("<script type='template/html' id='call_html_template_sdwp'><tr class='toclone cloneya'>"+t+"</tr>"),clone(),removeHtml(),e(document).on("change",".select-post-type",function(){var t=e(this),a=e(this).parents("tr").find(".insert-ajax-select"),s=e(this).val(),r=[1,2,3,4];if("show_globally"!=s){e.each(r,function(a,s){e(t).closest("tr").find("td").eq(s).show()});var n=e(this).attr("class").split(" ")[2],l=jQuery("#saswp_select_name_nonce").val();a.find(".ajax-output").remove(),a.find(".ajax-output-child").remove(),a.find(".spinner").attr("style","visibility:visible"),a.children(".spinner").addClass("show");var o=saswp_app_object.ajax_url,i=jQuery(this).closest(".saswp-placement-group").attr("data-id");e.ajax({url:o,method:"POST",data:{action:"create_ajax_select_sdwp",id:s,number:n,group_number:i,saswp_call_nonce:l},beforeSend:function(){},success:function(e){a.find(".ajax-output").remove(),a.children(".spinner").removeClass("show"),a.find(".spinner").attr("style","visibility:hidden").hide(),a.append(e),taxonomyDataCall()},error:function(e){console.log("Failed Ajax Request"),console.log(e)}})}else e.each(r,function(a,s){e(t).closest("tr").find("td").eq(s).hide()})}),taxonomyDataCall(),e("#notAccessibleForFree").click(function(){e(this).is(":checked")?(e("#paywall_class_name").parents("tr").show(),e("#isAccessibleForFree").parents("tr").show()):(e("#paywall_class_name").parents("tr").hide(),e("#isAccessibleForFree").parents("tr").hide())})});
admin_section/settings.php CHANGED
@@ -1863,7 +1863,19 @@ function saswp_compatibility_page_callback(){
1863
  'id' => 'saswp-tevolution-events',
1864
  'name' => 'sd_data[saswp-tevolution-events]',
1865
  )
1866
- );
 
 
 
 
 
 
 
 
 
 
 
 
1867
  $wp_event_aggregator = array(
1868
  'label' => 'WP Event Aggregator',
1869
  'id' => 'saswp-wp-event-aggregator-checkbox',
@@ -1875,7 +1887,31 @@ function saswp_compatibility_page_callback(){
1875
  'id' => 'saswp-wp-event-aggregator',
1876
  'name' => 'sd_data[saswp-wp-event-aggregator]',
1877
  )
1878
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1879
  $betteramp = array(
1880
  'label' => 'Better AMP',
1881
  'id' => 'saswp-betteramp-checkbox',
@@ -1973,7 +2009,45 @@ function saswp_compatibility_page_callback(){
1973
  'id' => 'saswp-wpresidence',
1974
  'name' => 'sd_data[saswp-wpresidence]',
1975
  )
1976
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1977
 
1978
  $learn_press = array(
1979
  'label' => 'LearnPress',
@@ -1999,7 +2073,19 @@ function saswp_compatibility_page_callback(){
1999
  'id' => 'saswp-learn-dash',
2000
  'name' => 'sd_data[saswp-learn-dash]',
2001
  )
2002
- );
 
 
 
 
 
 
 
 
 
 
 
 
2003
 
2004
  $lifter_lms = array(
2005
  'label' => 'LifterLMS',
@@ -2468,7 +2554,10 @@ function saswp_compatibility_page_callback(){
2468
 
2469
  $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>';
2470
  $real_homes['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>';
2471
- $wpresidence['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>';
 
 
 
2472
 
2473
 
2474
  }
@@ -2478,6 +2567,7 @@ function saswp_compatibility_page_callback(){
2478
  $learn_press['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2479
  $learn_dash['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2480
  $lifter_lms['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
 
2481
 
2482
  }
2483
 
@@ -2491,6 +2581,9 @@ function saswp_compatibility_page_callback(){
2491
  $modern_events_calendar['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2492
  $tevolution_events['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2493
  $wp_event_aggregator['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
 
 
 
2494
 
2495
  }
2496
 
@@ -2546,9 +2639,13 @@ function saswp_compatibility_page_callback(){
2546
  $homeland_theme,
2547
  $real_homes,
2548
  $wpresidence,
 
 
 
2549
  $learn_press,
2550
  $learn_dash,
2551
  $lifter_lms,
 
2552
  $the_events_calendar,
2553
  $wp_event_manager,
2554
  $events_manager,
@@ -2557,6 +2654,9 @@ function saswp_compatibility_page_callback(){
2557
  $modern_events_calendar,
2558
  $tevolution_events,
2559
  $wp_event_aggregator,
 
 
 
2560
  $easy_testimonials,
2561
  $bne_testimonials,
2562
  $testimonial_pro,
1863
  'id' => 'saswp-tevolution-events',
1864
  'name' => 'sd_data[saswp-tevolution-events]',
1865
  )
1866
+ );
1867
+ $stachethemes_events = array(
1868
+ 'label' => 'Stachethemes Event Calendar',
1869
+ 'id' => 'saswp-stachethemes-event-calendar-checkbox',
1870
+ 'name' => 'saswp-stachethemes-event-calendar-checkbox',
1871
+ 'type' => 'checkbox',
1872
+ 'class' => 'checkbox saswp-checkbox',
1873
+ 'note' => saswp_get_field_note('stachethemes_event_calendar'),
1874
+ 'hidden' => array(
1875
+ 'id' => 'saswp-stachethemes-event-calendar',
1876
+ 'name' => 'sd_data[saswp-stachethemes-event-calendar]',
1877
+ )
1878
+ );
1879
  $wp_event_aggregator = array(
1880
  'label' => 'WP Event Aggregator',
1881
  'id' => 'saswp-wp-event-aggregator-checkbox',
1887
  'id' => 'saswp-wp-event-aggregator',
1888
  'name' => 'sd_data[saswp-wp-event-aggregator]',
1889
  )
1890
+ );
1891
+ $all_in_one_event_calendar = array(
1892
+ 'label' => 'All In One Event Calendar',
1893
+ 'id' => 'saswp-all-in-one-event-calendar-checkbox',
1894
+ 'name' => 'saswp-all-in-one-event-calendar-checkbox',
1895
+ 'type' => 'checkbox',
1896
+ 'class' => 'checkbox saswp-checkbox',
1897
+ 'note' => saswp_get_field_note('all_in_one_event_calendar'),
1898
+ 'hidden' => array(
1899
+ 'id' => 'saswp-all-in-one-event-calendar',
1900
+ 'name' => 'sd_data[saswp-all-in-one-event-calendar]',
1901
+ )
1902
+ );
1903
+ $event_on = array(
1904
+ 'label' => 'Event On',
1905
+ 'id' => 'saswp-event-on-checkbox',
1906
+ 'name' => 'saswp-event-on-checkbox',
1907
+ 'type' => 'checkbox',
1908
+ 'class' => 'checkbox saswp-checkbox',
1909
+ 'note' => saswp_get_field_note('event_on'),
1910
+ 'hidden' => array(
1911
+ 'id' => 'saswp-event-on',
1912
+ 'name' => 'sd_data[saswp-event-on]',
1913
+ )
1914
+ );
1915
  $betteramp = array(
1916
  'label' => 'Better AMP',
1917
  'id' => 'saswp-betteramp-checkbox',
2009
  'id' => 'saswp-wpresidence',
2010
  'name' => 'sd_data[saswp-wpresidence]',
2011
  )
2012
+ );
2013
+ $myhome = array(
2014
+ 'label' => 'My Home Theme',
2015
+ 'id' => 'saswp-myhome-checkbox',
2016
+ 'name' => 'saswp-myhome-checkbox',
2017
+ 'type' => 'checkbox',
2018
+ 'class' => 'checkbox saswp-checkbox',
2019
+ 'note' => saswp_get_field_note('myhome'),
2020
+ 'hidden' => array(
2021
+ 'id' => 'saswp-myhome',
2022
+ 'name' => 'sd_data[saswp-myhome]',
2023
+ )
2024
+ );
2025
+
2026
+ $classipress = array(
2027
+ 'label' => 'ClassiPress',
2028
+ 'id' => 'saswp-classipress-checkbox',
2029
+ 'name' => 'saswp-classipress-checkbox',
2030
+ 'type' => 'checkbox',
2031
+ 'class' => 'checkbox saswp-checkbox',
2032
+ 'note' => saswp_get_field_note('classipress'),
2033
+ 'hidden' => array(
2034
+ 'id' => 'saswp-classipress',
2035
+ 'name' => 'sd_data[saswp-classipress]',
2036
+ )
2037
+ );
2038
+
2039
+ $realestate_5 = array(
2040
+ 'label' => 'WP Pro Real Estate 5',
2041
+ 'id' => 'saswp-realestate-5-checkbox',
2042
+ 'name' => 'saswp-realestate-5-checkbox',
2043
+ 'type' => 'checkbox',
2044
+ 'class' => 'checkbox saswp-checkbox',
2045
+ 'note' => saswp_get_field_note('realestate_5'),
2046
+ 'hidden' => array(
2047
+ 'id' => 'saswp-realestate-5',
2048
+ 'name' => 'sd_data[saswp-realestate-5]',
2049
+ )
2050
+ );
2051
 
2052
  $learn_press = array(
2053
  'label' => 'LearnPress',
2073
  'id' => 'saswp-learn-dash',
2074
  'name' => 'sd_data[saswp-learn-dash]',
2075
  )
2076
+ );
2077
+ $wplms = array(
2078
+ 'label' => 'WPLMS',
2079
+ 'id' => 'saswp-wplms-checkbox',
2080
+ 'name' => 'saswp-wplms-checkbox',
2081
+ 'type' => 'checkbox',
2082
+ 'class' => 'checkbox saswp-checkbox',
2083
+ 'note' => saswp_get_field_note('wplms'),
2084
+ 'hidden' => array(
2085
+ 'id' => 'saswp-wplms',
2086
+ 'name' => 'sd_data[saswp-wplms]',
2087
+ )
2088
+ );
2089
 
2090
  $lifter_lms = array(
2091
  'label' => 'LifterLMS',
2554
 
2555
  $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>';
2556
  $real_homes['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>';
2557
+ $wpresidence['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>';
2558
+ $myhome['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>';
2559
+ $realestate_5['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>';
2560
+ $classipress['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>';
2561
 
2562
 
2563
  }
2567
  $learn_press['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2568
  $learn_dash['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2569
  $lifter_lms['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2570
+ $wplms['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/course-schema/">Course Schema Addon</a>';
2571
 
2572
  }
2573
 
2581
  $modern_events_calendar['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2582
  $tevolution_events['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2583
  $wp_event_aggregator['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2584
+ $stachethemes_events['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2585
+ $all_in_one_event_calendar['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2586
+ $event_on['note'] = esc_html__('This feature requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://structured-data-for-wp.com/event-schema/">Event Schema Addon</a>';
2587
 
2588
  }
2589
 
2639
  $homeland_theme,
2640
  $real_homes,
2641
  $wpresidence,
2642
+ $myhome,
2643
+ $classipress,
2644
+ $realestate_5,
2645
  $learn_press,
2646
  $learn_dash,
2647
  $lifter_lms,
2648
+ $wplms,
2649
  $the_events_calendar,
2650
  $wp_event_manager,
2651
  $events_manager,
2654
  $modern_events_calendar,
2655
  $tevolution_events,
2656
  $wp_event_aggregator,
2657
+ $all_in_one_event_calendar,
2658
+ $event_on,
2659
+ $stachethemes_events,
2660
  $easy_testimonials,
2661
  $bne_testimonials,
2662
  $testimonial_pro,
admin_section/structure_admin.php CHANGED
@@ -311,11 +311,17 @@ function saswp_comparison_logic_checker($input){
311
 
312
  $current_post_type = '';
313
 
314
- if(is_singular() || is_admin()){
315
 
316
  $current_post_type = get_post_type($post->ID);
317
 
318
- }
 
 
 
 
 
 
319
 
320
  if ( $comparison == 'equal' ) {
321
 
@@ -540,49 +546,77 @@ function saswp_comparison_logic_checker($input){
540
  case 'ef_taxonomy':
541
  // Get all the post registered taxonomies
542
  // Get the list of all the taxonomies associated with current post
543
- $taxonomy_names = get_post_taxonomies( $post->ID );
544
 
545
  $checker = '';
546
  $post_terms = '';
547
 
548
  if ( $data != 'all') {
549
- $post_terms = wp_get_post_terms($post->ID, $data);
550
 
551
- if ( $comparison == 'equal' ) {
552
- if ( $post_terms ) {
553
- $result = true;
554
- }
555
- }
556
-
557
- if ( $comparison == 'not_equal') {
558
- $checker = in_array($data, $taxonomy_names);
559
- if ( ! $checker ) {
560
- $result = true;
561
- }
562
- }
563
- if($result==true && isset( $input['key_4'] ) && $input['key_4'] !='all'){
564
-
565
  $term_data = $input['key_4'];
566
  $terms = wp_get_post_terms( $post->ID ,$data);
567
-
 
568
  if(count($terms)>0){
569
-
570
- $termChoices = array();
571
-
572
  foreach ($terms as $key => $termvalue) {
573
 
574
  $termChoices[] = $termvalue->slug;
575
 
576
  }
577
 
578
- }
579
-
580
- $result = false;
581
 
 
582
  if(in_array($term_data, $termChoices)){
583
  $result = true;
584
  }
585
- }//if closed for key_4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
586
 
587
  } else {
588
 
311
 
312
  $current_post_type = '';
313
 
314
+ if( (is_singular() || is_admin() || is_front_page()) && is_object($post) ){
315
 
316
  $current_post_type = get_post_type($post->ID);
317
 
318
+ }
319
+
320
+ if(function_exists('ampforwp_is_front_page') && ampforwp_is_front_page()){
321
+
322
+ $current_post_type = 'page';
323
+
324
+ }
325
 
326
  if ( $comparison == 'equal' ) {
327
 
546
  case 'ef_taxonomy':
547
  // Get all the post registered taxonomies
548
  // Get the list of all the taxonomies associated with current post
549
+ $taxonomy_names = get_post_taxonomies( $post->ID );
550
 
551
  $checker = '';
552
  $post_terms = '';
553
 
554
  if ( $data != 'all') {
 
555
 
556
+ $post_terms = wp_get_post_terms($post->ID, $data);
557
+
558
+ if(isset( $input['key_4'] ) && $input['key_4'] !='all'){
559
+
 
 
 
 
 
 
 
 
 
 
560
  $term_data = $input['key_4'];
561
  $terms = wp_get_post_terms( $post->ID ,$data);
562
+ $termChoices = array();
563
+
564
  if(count($terms)>0){
565
+
 
 
566
  foreach ($terms as $key => $termvalue) {
567
 
568
  $termChoices[] = $termvalue->slug;
569
 
570
  }
571
 
572
+ }
 
 
573
 
574
+ if ( $comparison == 'equal' ) {
575
  if(in_array($term_data, $termChoices)){
576
  $result = true;
577
  }
578
+ }
579
+
580
+ if ( $comparison == 'not_equal') {
581
+ if(!in_array($term_data, $termChoices)){
582
+ $result = true;
583
+ }
584
+ }
585
+
586
+ }else{
587
+
588
+ if($input['key_4'] == 'all'){
589
+
590
+ if ( $comparison == 'equal' ) {
591
+ if ( $post_terms ) {
592
+ $result = true;
593
+ }
594
+ }
595
+
596
+ if ( $comparison == 'not_equal') {
597
+ if ( !$post_terms ) {
598
+ $result = true;
599
+ }
600
+ }
601
+
602
+ }else{
603
+
604
+ if ( $comparison == 'equal' ) {
605
+ if ( $post_terms ) {
606
+ $result = true;
607
+ }
608
+ }
609
+
610
+ if ( $comparison == 'not_equal') {
611
+ $checker = in_array($data, $taxonomy_names);
612
+ if ( ! $checker ) {
613
+ $result = true;
614
+ }
615
+ }
616
+
617
+ }
618
+
619
+ }
620
 
621
  } else {
622
 
core/array-list/compatibility-list.php CHANGED
@@ -10,6 +10,12 @@ return array(
10
  'opt_name' => 'saswp-yet-another-stars-rating',
11
  'part_in' => 'free',
12
  ),
 
 
 
 
 
 
13
  'wp_customer_reviews' => array(
14
  'name' => 'WP Customer Reviews',
15
  'free' => 'wp-customer-reviews/wp-customer-reviews-3.php',
@@ -42,6 +48,19 @@ return array(
42
  'opt_name' => 'saswp-easy-recipe',
43
  'part_in' => 'pro',
44
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  'wp_event_aggregator' => array(
46
  'name' => 'WP Event Aggregator',
47
  'free' => 'wp-event-aggregator/wp-event-aggregator.php',
@@ -316,6 +335,12 @@ return array(
316
  'free' => 'soledad',
317
  'opt_name' => 'saswp-soledad',
318
  'part_in' => 'free',
 
 
 
 
 
 
319
  ),
320
  'extra' => array(
321
  'name' => 'Extra',
@@ -329,6 +354,24 @@ return array(
329
  'opt_name' => 'saswp-homeland',
330
  'part_in' => 'pro',
331
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  'saswp_realhomes' => array(
333
  'name' => 'RealHomes Theme',
334
  'free' => 'realhomes',
10
  'opt_name' => 'saswp-yet-another-stars-rating',
11
  'part_in' => 'free',
12
  ),
13
+ 'stachethemes_event_calendar' => array(
14
+ 'name' => 'Stachethemes Event Calendar',
15
+ 'free' => 'stachethemes_event_calendar/stachethemes_event_calendar.php',
16
+ 'opt_name' => 'saswp-stachethemes-event-calendar',
17
+ 'part_in' => 'pro',
18
+ ),
19
  'wp_customer_reviews' => array(
20
  'name' => 'WP Customer Reviews',
21
  'free' => 'wp-customer-reviews/wp-customer-reviews-3.php',
48
  'opt_name' => 'saswp-easy-recipe',
49
  'part_in' => 'pro',
50
  ),
51
+ 'all_in_one_event_calendar' => array(
52
+ 'name' => 'All In One Event Calendar',
53
+ 'free' => 'all-in-one-event-calendar/all-in-one-event-calendar.php',
54
+ 'pro' => 'all-in-one-event-calendar/all-in-one-event-calendar.php',
55
+ 'opt_name' => 'saswp-all-in-one-event-calendar',
56
+ 'part_in' => 'pro',
57
+ ),
58
+ 'event_on' => array(
59
+ 'name' => 'Event On',
60
+ 'free' => 'eventON/eventon.php',
61
+ 'opt_name' => 'saswp-event-on',
62
+ 'part_in' => 'pro',
63
+ ),
64
  'wp_event_aggregator' => array(
65
  'name' => 'WP Event Aggregator',
66
  'free' => 'wp-event-aggregator/wp-event-aggregator.php',
335
  'free' => 'soledad',
336
  'opt_name' => 'saswp-soledad',
337
  'part_in' => 'free',
338
+ ),
339
+ 'wplms' => array(
340
+ 'name' => 'WPLMS',
341
+ 'free' => 'wplms',
342
+ 'opt_name' => 'saswp-wplms',
343
+ 'part_in' => 'pro',
344
  ),
345
  'extra' => array(
346
  'name' => 'Extra',
354
  'opt_name' => 'saswp-homeland',
355
  'part_in' => 'pro',
356
  ),
357
+ 'myhome' => array(
358
+ 'name' => 'My Home Theme',
359
+ 'free' => 'myhome',
360
+ 'opt_name' => 'saswp-myhome',
361
+ 'part_in' => 'pro',
362
+ ),
363
+ 'classipress' => array(
364
+ 'name' => 'ClassiPress',
365
+ 'free' => 'classipress',
366
+ 'opt_name' => 'saswp-classipress',
367
+ 'part_in' => 'pro',
368
+ ),
369
+ 'realestate_5' => array(
370
+ 'name' => 'WP Pro Realestate 5',
371
+ 'free' => 'realestate-5',
372
+ 'opt_name' => 'saswp-realestate-5',
373
+ 'part_in' => 'pro',
374
+ ),
375
  'saswp_realhomes' => array(
376
  'name' => 'RealHomes Theme',
377
  'free' => 'realhomes',
core/array-list/schema-properties.php CHANGED
@@ -1572,7 +1572,104 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1572
 
1573
  );
1574
  break;
1575
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1576
  case 'Product':
1577
 
1578
  $product_details = array();
1572
 
1573
  );
1574
  break;
1575
+ case 'RealEstateListing':
1576
+
1577
+ $meta_field = array(
1578
+ array(
1579
+ 'label' => 'Date Posted',
1580
+ 'id' => 'saswp_real_estate_listing_date_posted_'.$schema_id,
1581
+ 'type' => 'text',
1582
+ 'default' => get_the_date("Y-m-d")
1583
+ ),
1584
+ array(
1585
+ 'label' => 'Name',
1586
+ 'id' => 'saswp_real_estate_listing_name_'.$schema_id,
1587
+ 'type' => 'text',
1588
+ 'default' => saswp_get_the_title()
1589
+ ),
1590
+ array(
1591
+ 'label' => 'URL',
1592
+ 'id' => 'saswp_real_estate_listing_url_'.$schema_id,
1593
+ 'type' => 'text',
1594
+ 'default' => get_permalink()
1595
+ ),
1596
+ array(
1597
+ 'label' => 'Description',
1598
+ 'id' => 'saswp_real_estate_listing_description_'.$schema_id,
1599
+ 'type' => 'textarea',
1600
+ 'default' => get_the_excerpt()
1601
+ ),
1602
+ array(
1603
+ 'label' => 'Image',
1604
+ 'id' => 'saswp_real_estate_listing_image_'.$schema_id,
1605
+ 'type' => 'media',
1606
+ ),
1607
+ array(
1608
+ 'label' => 'Price',
1609
+ 'id' => 'saswp_real_estate_listing_price_'.$schema_id,
1610
+ 'type' => 'text'
1611
+ ),
1612
+ array(
1613
+ 'label' => 'Currency',
1614
+ 'id' => 'saswp_real_estate_listing_currency_'.$schema_id,
1615
+ 'type' => 'text'
1616
+ ),
1617
+ array(
1618
+ 'label' => 'Price Valid From',
1619
+ 'id' => 'saswp_real_estate_listing_validfrom_'.$schema_id,
1620
+ 'type' => 'text'
1621
+ ),
1622
+ array(
1623
+ 'label' => 'Availability',
1624
+ 'id' => 'saswp_real_estate_listing_availability_'.$schema_id,
1625
+ 'type' => 'select',
1626
+ 'options' => array(
1627
+ 'InStock' => 'In Stock',
1628
+ 'OutOfStock' => 'Out Of Stock',
1629
+ 'Discontinued' => 'Discontinued',
1630
+ 'PreOrder' => 'Pre Order',
1631
+ )
1632
+ ),
1633
+ array(
1634
+ 'label' => 'Location Name',
1635
+ 'id' => 'saswp_real_estate_listing_location_name_'.$schema_id,
1636
+ 'type' => 'text',
1637
+ ),
1638
+ array(
1639
+ 'label' => 'Location Street Address',
1640
+ 'id' => 'saswp_real_estate_listing_streetaddress_'.$schema_id,
1641
+ 'type' => 'text',
1642
+ ),
1643
+ array(
1644
+ 'label' => 'Location Locality',
1645
+ 'id' => 'saswp_real_estate_listing_locality_'.$schema_id,
1646
+ 'type' => 'text',
1647
+ ),
1648
+ array(
1649
+ 'label' => 'Location Region',
1650
+ 'id' => 'saswp_real_estate_listing_region_'.$schema_id,
1651
+ 'type' => 'text',
1652
+ ),
1653
+ array(
1654
+ 'label' => 'Location PostalCode',
1655
+ 'id' => 'saswp_real_estate_listing_postalcode_'.$schema_id,
1656
+ 'type' => 'text',
1657
+ ),
1658
+ array(
1659
+ 'label' => 'Location Country',
1660
+ 'id' => 'saswp_real_estate_listing_country_'.$schema_id,
1661
+ 'type' => 'text',
1662
+ ),
1663
+ array(
1664
+ 'label' => 'Location Phone',
1665
+ 'id' => 'saswp_real_estate_listing_phone_'.$schema_id,
1666
+ 'type' => 'text',
1667
+ )
1668
+
1669
+ );
1670
+
1671
+ break;
1672
+
1673
  case 'Product':
1674
 
1675
  $product_details = array();
core/array-list/schemas.php CHANGED
@@ -27,7 +27,8 @@ return array(
27
  'NewsArticle' => 'NewsArticle',
28
  'qanda' => 'Q&A',
29
  'Review' => 'Review',
30
- 'Recipe' => 'Recipe',
 
31
  'TVSeries' => 'TVSeries',
32
  'SoftwareApplication' => 'SoftwareApplication',
33
  'SpecialAnnouncement' => 'SpecialAnnouncement',
27
  'NewsArticle' => 'NewsArticle',
28
  'qanda' => 'Q&A',
29
  'Review' => 'Review',
30
+ 'Recipe' => 'Recipe',
31
+ 'RealEstateListing' => 'RealEstateListing',
32
  'TVSeries' => 'TVSeries',
33
  'SoftwareApplication' => 'SoftwareApplication',
34
  'SpecialAnnouncement' => 'SpecialAnnouncement',
core/global.php CHANGED
@@ -29,6 +29,7 @@ $with_aggregate = array(
29
  );
30
  $without_aggregate = array(
31
  'Apartment',
 
32
  'House',
33
  'SingleFamilyResidence',
34
  'Article',
29
  );
30
  $without_aggregate = array(
31
  'Apartment',
32
+ 'RealEstateListing',
33
  'House',
34
  'SingleFamilyResidence',
35
  'Article',
modules/gutenberg/assets/blocks/event.js CHANGED
@@ -4,7 +4,7 @@
4
  const el = element.createElement;
5
  const { __ } = i18n;
6
  const { RichText, AlignmentToolbar, BlockControls, InspectorControls, MediaUpload } = editor;
7
- const {Popover, Button, IconButton, TextControl, ToggleControl, PanelBody, DateTimePicker } = components;
8
 
9
  blocks.registerBlockType( 'saswp/event-block', {
10
  title: __('Event (SASWP)', 'schema-and-structured-data-for-wp'),
@@ -13,6 +13,9 @@
13
  keywords: ['schema', 'structured data', 'Event', 'event'],
14
 
15
  attributes:{
 
 
 
16
  start_date: {
17
  type: 'string'
18
  },
@@ -38,14 +41,32 @@
38
  end_date_toggle: {
39
  type: 'boolean',
40
  default: false
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  },
42
  all_day: {
43
  type: 'boolean',
44
  default: false
45
  },
46
  website: {
47
- type: 'string'
48
-
 
 
 
 
 
49
  },
50
  price: {
51
  type: 'integer'
@@ -191,6 +212,54 @@
191
 
192
  }
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  var start_date_div = el('div',{},el('span', {}, 'Start Date'),
195
  el('span',{className:'saswp-event-date-fields'},
196
  el(TextControl,{
@@ -278,6 +347,17 @@
278
 
279
  var event_details = el('fieldset',{
280
  className:'saswp-event-date-fieldset'},
 
 
 
 
 
 
 
 
 
 
 
281
  start_date_div, end_date_div,
282
  el(TextControl,{
283
  value : attributes.website,
@@ -299,7 +379,36 @@
299
  onChange: function(value){
300
  props.setAttributes( { currency_code: value } );
301
  }
302
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
  );
304
 
305
  var venue = el('fieldset',{className:'saswp-event-venue-fieldset'},el('div',{className:'saswp-event-venue'},
4
  const el = element.createElement;
5
  const { __ } = i18n;
6
  const { RichText, AlignmentToolbar, BlockControls, InspectorControls, MediaUpload } = editor;
7
+ const {SelectControl, Popover, Button, IconButton, TextControl, ToggleControl, PanelBody, DateTimePicker } = components;
8
 
9
  blocks.registerBlockType( 'saswp/event-block', {
10
  title: __('Event (SASWP)', 'schema-and-structured-data-for-wp'),
13
  keywords: ['schema', 'structured data', 'Event', 'event'],
14
 
15
  attributes:{
16
+ description: {
17
+ type: 'string'
18
+ },
19
  start_date: {
20
  type: 'string'
21
  },
41
  end_date_toggle: {
42
  type: 'boolean',
43
  default: false
44
+ },
45
+ previous_date: {
46
+ type: 'string'
47
+ },
48
+ previous_time: {
49
+ type: 'string'
50
+ },
51
+ previous_date_iso: {
52
+ type: 'string'
53
+ },
54
+ previous_date_toggle: {
55
+ type: 'boolean',
56
+ default: false
57
  },
58
  all_day: {
59
  type: 'boolean',
60
  default: false
61
  },
62
  website: {
63
+ type: 'string'
64
+ },
65
+ event_status: {
66
+ type: 'string'
67
+ },
68
+ attendance_mode: {
69
+ type: 'string'
70
  },
71
  price: {
72
  type: 'integer'
212
 
213
  }
214
 
215
+ var previous_date_div = el('div',{
216
+ className:'components-base-control'
217
+ },
218
+ el('div',{className:'components-base-control__field'},el('span', {
219
+ className: 'components-base-control__label'
220
+ }, 'Previous Date'),
221
+ el('span',{className:'saswp-event-date-fields'},
222
+ el(TextControl,{
223
+ className:'saswp-event-previous-date',
224
+ value : attributes.previous_date,
225
+ onClick:function(){
226
+ props.setAttributes( { previous_date_toggle: true } );
227
+ }
228
+ }),
229
+ !attributes.all_day ?
230
+ el(TextControl,{
231
+ className:'saswp-event-start-time',
232
+ value : attributes.previous_time,
233
+ onClick:function(){
234
+ props.setAttributes( { previous_date_toggle: true } );
235
+ }
236
+ }) : ''
237
+ ),
238
+ attributes.previous_date_toggle ?
239
+ el(
240
+ Popover,{
241
+ class:'saswp-calender-popover',
242
+ position: 'bottom',
243
+ onClose: function(){
244
+ props.setAttributes( { previous_date_toggle: false } );
245
+ }
246
+ },
247
+ el(DateTimePicker,{
248
+ currentDate: attributes.previous_date_iso,
249
+ is12Hour : true,
250
+ onChange: function(value){
251
+ attributes.previous_date_iso = value;
252
+ var newDate = moment(value).format('YYYY-MM-DD');
253
+ var newTime = moment(value).format('h:mm:ss a');
254
+ props.setAttributes( { previous_date: newDate } );
255
+ props.setAttributes( { previous_time: newTime } );
256
+ }
257
+ })
258
+ )
259
+ : ''
260
+ )
261
+ );
262
+
263
  var start_date_div = el('div',{},el('span', {}, 'Start Date'),
264
  el('span',{className:'saswp-event-date-fields'},
265
  el(TextControl,{
347
 
348
  var event_details = el('fieldset',{
349
  className:'saswp-event-date-fieldset'},
350
+ el( RichText, {
351
+ tagName: 'p',
352
+ className:'saswp-event-fieldset-description',
353
+ placeholder: __('Enter event description', 'schema-and-structured-data-for-wp'),
354
+ value: attributes.description,
355
+ autoFocus: true,
356
+ onChange: function( newContent ) {
357
+ props.setAttributes( { description: newContent } );
358
+ }
359
+ }
360
+ ),
361
  start_date_div, end_date_div,
362
  el(TextControl,{
363
  value : attributes.website,
379
  onChange: function(value){
380
  props.setAttributes( { currency_code: value } );
381
  }
382
+ }),
383
+ el(SelectControl,{
384
+ value : attributes.event_status,
385
+ label: __('Event Status', 'schema-and-structured-data-for-wp'),
386
+ options:[
387
+ { label: 'Select Status', value: '' },
388
+ { label: 'EventScheduled', value: 'EventScheduled' },
389
+ { label: 'Postponed', value: 'EventPostponed' },
390
+ { label: 'Rescheduled', value: 'EventRescheduled' },
391
+ { label: 'MovedOnline', value: 'EventMovedOnline' },
392
+ { label: 'Cancelled', value: 'EventCancelled' },
393
+ ] ,
394
+ onChange: function(value){
395
+ props.setAttributes( { event_status: value } );
396
+ }
397
+ }),
398
+ attributes.event_status == 'EventRescheduled' ? previous_date_div : '',
399
+ el(SelectControl,{
400
+ value : attributes.attendance_mode,
401
+ label: __('Attendance Mode', 'schema-and-structured-data-for-wp'),
402
+ options:[
403
+ { label: 'Select Attendance Mode', value: '' },
404
+ { label: 'Offline', value: 'OfflineEventAttendanceMode' },
405
+ { label: 'Online', value: 'OnlineEventAttendanceMode' },
406
+ { label: 'Mixed', value: 'MixedEventAttendanceMode' }
407
+ ] ,
408
+ onChange: function(value){
409
+ props.setAttributes( { attendance_mode: value } );
410
+ }
411
+ })
412
  );
413
 
414
  var venue = el('fieldset',{className:'saswp-event-venue-fieldset'},el('div',{className:'saswp-event-venue'},
modules/gutenberg/assets/css/event.css CHANGED
@@ -9,4 +9,7 @@ and open the template in the editor.
9
  */
10
  .saswp-event-venue-details, .saswp-event-organizers-details, .saswp-event-performers-details{
11
  padding-top:15px;
 
 
 
12
  }
9
  */
10
  .saswp-event-venue-details, .saswp-event-organizers-details, .saswp-event-performers-details{
11
  padding-top:15px;
12
+ }
13
+ .saswp-event-date-fieldset select{
14
+ max-width: 100%;
15
  }
modules/gutenberg/includes/render.php CHANGED
@@ -33,18 +33,30 @@ class SASWP_Gutenberg_Render {
33
  }
34
 
35
  }
 
 
 
 
 
 
 
 
 
36
 
37
  $response .= '<div class="saswp-event-wrapper">'
38
-
39
  . '<div class="saswp-event-dates">'
40
  . '<h5>'.esc_html__('Event Details', 'schema-and-structured-data-for-wp').'</h5>'
41
  . '<strong>'.esc_html__('Start Date', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['start_date']).'</span>'
42
- . (!$attributes['all_day'] ? '<span> ,'.esc_html($attributes['start_time']).'</span><br>' : '<br>')
43
  . '<strong>'.esc_html__('End Date', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['end_date']).'</span>'
44
- . (!$attributes['all_day'] ? '<span> ,'.esc_html($attributes['end_time']).'</span><br>' : '<br>')
 
45
  . ($attributes['website'] ? '<strong>'.esc_html__('Website', 'schema-and-structured-data-for-wp').' : </strong> <span><a href="'.esc_url($attributes['website']).'">'.esc_url($attributes['website']).'</a></span><br>' : '')
46
- . ($attributes['price'] ? '<strong>'.esc_html__('Price', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['price']).' '. ($attributes['currency_code'] ? esc_html($attributes['currency_code']) : 'USD').'</span>' : '')
47
- . ($attributes['all_day'] ? '<div>'.esc_html__('This event is all day', 'schema-and-structured-data-for-wp').'</div>' : '')
 
 
48
  . '</div>'
49
 
50
  . '<div class="saswp-event-venue-details">'
33
  }
34
 
35
  }
36
+
37
+ $previous_date = '';
38
+
39
+ if(isset($attributes['event_status']) && $attributes['event_status'] == 'EventRescheduled' && isset($attributes['previous_date'])){
40
+
41
+ $previous_date = '<strong>'.esc_html__('Previous Date', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['previous_date']).'</span>'
42
+ . (!isset($attributes['all_day']) ? '<span> ,'.esc_html($attributes['previous_time']).'</span><br>' : '<br>');
43
+
44
+ }
45
 
46
  $response .= '<div class="saswp-event-wrapper">'
47
+ . (isset($attributes['description']) ? '<p>'.$attributes['description'].'</p>' : '')
48
  . '<div class="saswp-event-dates">'
49
  . '<h5>'.esc_html__('Event Details', 'schema-and-structured-data-for-wp').'</h5>'
50
  . '<strong>'.esc_html__('Start Date', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['start_date']).'</span>'
51
+ . (!isset($attributes['all_day']) ? '<span> ,'.esc_html($attributes['start_time']).'</span><br>' : '<br>')
52
  . '<strong>'.esc_html__('End Date', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['end_date']).'</span>'
53
+ . (!isset($attributes['all_day']) ? '<span> ,'.esc_html($attributes['end_time']).'</span><br>' : '<br>')
54
+ . $previous_date
55
  . ($attributes['website'] ? '<strong>'.esc_html__('Website', 'schema-and-structured-data-for-wp').' : </strong> <span><a href="'.esc_url($attributes['website']).'">'.esc_url($attributes['website']).'</a></span><br>' : '')
56
+ . ($attributes['price'] ? '<strong>'.esc_html__('Price', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['price']).' '. (isset($attributes['currency_code']) ? esc_html($attributes['currency_code']) : 'USD').'</span><br>' : '')
57
+ . ($attributes['attendance_mode'] ? '<strong>'.esc_html__('Attendance Mode', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['attendance_mode']).'</span><br>' : '')
58
+ . ($attributes['event_status'] ? '<strong>'.esc_html__('Status', 'schema-and-structured-data-for-wp').' : </strong> <span>'.esc_html($attributes['event_status']).'</span>' : '')
59
+ . (isset($attributes['all_day']) ? '<div>'.esc_html__('This event is all day', 'schema-and-structured-data-for-wp').'</div>' : '')
60
  . '</div>'
61
 
62
  . '<div class="saswp-event-venue-details">'
modules/reviews/reviews_service.php CHANGED
@@ -214,7 +214,7 @@ class saswp_reviews_service {
214
  $output.= '<div class="saswp-g-review-panel">
215
  <div class="saswp-glg-review-body">
216
  <div class="saswp-rv-img">
217
- <img src="'.esc_url($img_src).'" alt="'.esc_attr($review['saswp_reviewer_name']).'">
218
  </div>
219
  <div class="saswp-rv-cnt">
220
  <div class="saswp-r5-rng">
@@ -791,7 +791,7 @@ class saswp_reviews_service {
791
  $html .= '<div class="saswp-rc">';
792
  $html .= '<div class="saswp-rc-a">';
793
  $html .= '<div class="saswp-r1-aimg">';
794
- $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
795
  $html .= '</div>';
796
  $html .= '<div class="saswp-rc-nm">';
797
  $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
@@ -871,7 +871,7 @@ class saswp_reviews_service {
871
  $html .= '</div>';
872
  $html .= '<div class="saswp-rc">';
873
  $html .= '<div class="saswp-rc-a">';
874
- $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'"/>';
875
  $html .= '<div class="saswp-rc-nm">';
876
  $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'. esc_attr($value['saswp_reviewer_name']).'</a>';
877
  $html .= '<span class="saswp-rc-dt">'.(isset($date_str['date']) ? esc_attr($date_str['date']): '' ).'</span>';
214
  $output.= '<div class="saswp-g-review-panel">
215
  <div class="saswp-glg-review-body">
216
  <div class="saswp-rv-img">
217
+ <img loading="lazy" src="'.esc_url($img_src).'" alt="'.esc_attr($review['saswp_reviewer_name']).'">
218
  </div>
219
  <div class="saswp-rv-cnt">
220
  <div class="saswp-r5-rng">
791
  $html .= '<div class="saswp-rc">';
792
  $html .= '<div class="saswp-rc-a">';
793
  $html .= '<div class="saswp-r1-aimg">';
794
+ $html .= '<img loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
795
  $html .= '</div>';
796
  $html .= '<div class="saswp-rc-nm">';
797
  $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
871
  $html .= '</div>';
872
  $html .= '<div class="saswp-rc">';
873
  $html .= '<div class="saswp-rc-a">';
874
+ $html .= '<img loading="lazy" src="'.esc_url($value['saswp_reviewer_image']).'"/>';
875
  $html .= '<div class="saswp-rc-nm">';
876
  $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'. esc_attr($value['saswp_reviewer_name']).'</a>';
877
  $html .= '<span class="saswp-rc-dt">'.(isset($date_str['date']) ? esc_attr($date_str['date']): '' ).'</span>';
output/compatibility.php CHANGED
@@ -133,7 +133,9 @@ class saswp_output_compatibility{
133
 
134
 
135
  }
136
-
 
 
137
  public function saswp_soledad_override(){
138
 
139
  saswp_remove_anonymous_object_filter_or_action(
@@ -144,6 +146,9 @@ class saswp_output_compatibility{
144
  );
145
 
146
  }
 
 
 
147
  public function saswp_ampwp_override(){
148
  add_action( 'template_redirect', array($this, 'saswp_ampwp_override_full'),99);
149
  }
@@ -171,6 +176,13 @@ class saswp_output_compatibility{
171
 
172
  add_filter('easy_testimonials_json_ld', '__return_false');
173
 
 
 
 
 
 
 
 
174
  }
175
  public function saswp_wordpress_news_override(){
176
  }
@@ -367,6 +379,9 @@ class saswp_output_compatibility{
367
  public function cooked_on_activation(){
368
  $this->saswp_update_option_on_compatibility_activation('saswp-cooked');
369
  }
 
 
 
370
  public function the_events_calendar_on_activation(){
371
  $this->saswp_update_option_on_compatibility_activation('saswp-the-events-calendar');
372
  }
@@ -454,6 +469,9 @@ class saswp_output_compatibility{
454
  public function wp_event_aggregator_on_activation(){
455
  $this->saswp_update_option_on_compatibility_activation('saswp-wp-event-aggregator');
456
  }
 
 
 
457
  public function easy_recipe_on_activation(){
458
  $this->saswp_update_option_on_compatibility_activation('saswp-easy-recipe');
459
  }
133
 
134
 
135
  }
136
+ public function saswp_myhome_override(){
137
+
138
+ }
139
  public function saswp_soledad_override(){
140
 
141
  saswp_remove_anonymous_object_filter_or_action(
146
  );
147
 
148
  }
149
+ public function saswp_classipress_override(){
150
+ add_filter( 'appthemes_schema_output', '__return_false');
151
+ }
152
  public function saswp_ampwp_override(){
153
  add_action( 'template_redirect', array($this, 'saswp_ampwp_override_full'),99);
154
  }
176
 
177
  add_filter('easy_testimonials_json_ld', '__return_false');
178
 
179
+ }
180
+ public function saswp_all_in_one_event_calendar_override(){
181
+ }
182
+ public function saswp_stachethemes_event_calendar_override(){
183
+ }
184
+ public function saswp_event_on_override(){
185
+
186
  }
187
  public function saswp_wordpress_news_override(){
188
  }
379
  public function cooked_on_activation(){
380
  $this->saswp_update_option_on_compatibility_activation('saswp-cooked');
381
  }
382
+ public function all_in_one_event_calendar_on_activation(){
383
+ $this->saswp_update_option_on_compatibility_activation('saswp-all-in-one-event-calendar');
384
+ }
385
  public function the_events_calendar_on_activation(){
386
  $this->saswp_update_option_on_compatibility_activation('saswp-the-events-calendar');
387
  }
469
  public function wp_event_aggregator_on_activation(){
470
  $this->saswp_update_option_on_compatibility_activation('saswp-wp-event-aggregator');
471
  }
472
+ public function stachethemes_event_calendar_on_activation(){
473
+ $this->saswp_update_option_on_compatibility_activation('saswp-stachethemes-event-calendar');
474
+ }
475
  public function easy_recipe_on_activation(){
476
  $this->saswp_update_option_on_compatibility_activation('saswp-easy-recipe');
477
  }
output/function.php CHANGED
@@ -75,14 +75,14 @@ function saswp_wp_hook_operation(){
75
 
76
  function saswp_schema_markup_output_in_buffer($content){
77
 
78
- global $saswp_post_reviews, $saswp_elementor_faq, $saswp_divi_faq, $saswp_elementor_howto;
79
 
80
  if(!$saswp_divi_faq){
81
  $regex = "<script type='text/javascript' src='".SASWP_PLUGIN_URL."modules/divi-builder/scripts/frontend-bundle.min.js?ver=1.0.0'></script>";
82
  $content = str_replace($regex, '', $content);
83
  }
84
 
85
- if($saswp_post_reviews || $saswp_elementor_faq || $saswp_divi_faq || $saswp_elementor_howto){
86
 
87
  $saswp_json_ld = saswp_get_all_schema_markup_output();
88
 
@@ -131,6 +131,8 @@ function saswp_schema_markup_output(){
131
  */
132
  function saswp_get_all_schema_markup_output() {
133
 
 
 
134
  global $sd_data;
135
  global $post;
136
 
@@ -805,7 +807,7 @@ function saswp_extract_wp_post_ratings(){
805
 
806
  }
807
  }
808
-
809
  /**
810
  * Gets all the comments of current post
811
  * @param type $post_id
@@ -813,67 +815,135 @@ function saswp_extract_wp_post_ratings(){
813
  */
814
  function saswp_get_comments($post_id){
815
 
816
- global $sd_data;
817
-
818
- $comments = array();
819
- $post_comments = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
 
821
- $is_bbpress = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
822
 
823
- if(isset($sd_data['saswp-bbpress']) && $sd_data['saswp-bbpress'] == 1 && get_post_type($post_id) == 'topic'){
824
- $is_bbpress = true;
825
- }
826
-
827
- if($is_bbpress){
828
-
829
- $replies_query = array(
830
- 'post_type' => 'reply',
831
- );
832
-
833
- if ( bbp_has_replies( $replies_query ) ) :
834
-
835
- while ( bbp_replies() ) : bbp_the_reply();
836
-
837
- $post_comments[] = (object) array(
838
- 'comment_date' => get_post_time( DATE_ATOM, false, bbp_get_reply_id(), true ),
839
- 'comment_content' => bbp_get_reply_content(),
840
- 'comment_author' => bbp_get_reply_author(),
841
- 'comment_author_url' => bbp_get_reply_author_url(),
842
- );
843
-
844
- endwhile;
845
- wp_reset_postdata();
846
- endif;
847
-
848
- }else{
849
- $post_comments = get_comments( array(
850
- 'post_id' => $post_id,
851
- 'status' => 'approve',
852
- 'type' => 'comment'
853
- )
854
- );
855
-
856
- }
857
 
858
  if ( count( $post_comments ) ) {
 
 
 
859
 
860
- foreach ( $post_comments as $comment ) {
861
-
 
 
 
 
862
  $comments[] = array (
863
- '@type' => 'Comment',
864
- 'dateCreated' => $is_bbpress ? $comment->comment_date : saswp_format_date_time($comment->comment_date),
865
- 'description' => strip_tags($comment->comment_content),
866
- 'author' => array (
867
- '@type' => 'Person',
868
- 'name' => esc_attr($comment->comment_author),
869
- 'url' => isset($comment->comment_author_url) ? esc_url($comment->comment_author_url): '',
870
- ),
 
 
 
 
 
 
871
  );
872
- }
873
-
874
- return apply_filters( 'saswp_filter_comments', $comments );
875
- }
 
876
 
 
 
 
 
 
 
 
 
 
 
 
 
 
877
  }
878
 
879
  /**
@@ -1062,6 +1132,10 @@ function saswp_remove_microdata($content){
1062
  $content = preg_replace("/<script type\=\'application\/ld\+json\' class\=\'wpnews-schema-graph(.*?)'\>(.*?)<\/script>/s", "", $content);
1063
  }
1064
 
 
 
 
 
1065
 
1066
  if(function_exists('review_child_company_reviews_comments') && isset($sd_data['saswp-wp-theme-reviews']) && $sd_data['saswp-wp-theme-reviews'] == 1){
1067
 
@@ -2255,26 +2329,12 @@ function saswp_get_loop_markup($i) {
2255
  $site_name = get_bloginfo();
2256
  }
2257
 
2258
- $service_object = new saswp_output_service();
2259
- $logo = $service_object->saswp_get_publisher(true);
2260
-
2261
  $schema_properties = array();
2262
 
2263
- $image_id = get_post_thumbnail_id();
2264
- $archive_image = saswp_get_image_by_id($image_id);
2265
-
2266
- if(!empty($archive_image)){
2267
-
2268
- if(isset($sd_data['sd_default_image'])){
2269
-
2270
- $archive_image['@type'] = 'ImageObject';
2271
- $archive_image['url'] = isset($sd_data['sd_default_image']['url']) ? esc_url($sd_data['sd_default_image']['url']):'';
2272
- $archive_image['width'] = esc_attr($sd_data['sd_default_image_width']);
2273
- $archive_image['height'] = esc_attr($sd_data['sd_default_image_height']);
2274
- }
2275
-
2276
- }
2277
-
2278
  $publisher_info['type'] = 'Organization';
2279
  $publisher_info['name'] = esc_attr($site_name);
2280
  $publisher_info['logo']['@type'] = 'ImageObject';
@@ -2290,9 +2350,9 @@ function saswp_get_loop_markup($i) {
2290
  $schema_properties['mainEntityOfPage'] = get_the_permalink();
2291
  $schema_properties['author'] = get_the_author();
2292
  $schema_properties['publisher'] = $publisher_info;
2293
-
2294
- if(!empty($archive_image['url'])){
2295
- $schema_properties['image'] = $archive_image;
2296
  }
2297
 
2298
  $itemlist_arr = array(
75
 
76
  function saswp_schema_markup_output_in_buffer($content){
77
 
78
+ global $saswp_post_reviews, $saswp_elementor_faq, $saswp_divi_faq, $saswp_elementor_howto, $saswp_evo_json_ld;
79
 
80
  if(!$saswp_divi_faq){
81
  $regex = "<script type='text/javascript' src='".SASWP_PLUGIN_URL."modules/divi-builder/scripts/frontend-bundle.min.js?ver=1.0.0'></script>";
82
  $content = str_replace($regex, '', $content);
83
  }
84
 
85
+ if($saswp_post_reviews || $saswp_elementor_faq || $saswp_divi_faq || $saswp_elementor_howto || $saswp_evo_json_ld){
86
 
87
  $saswp_json_ld = saswp_get_all_schema_markup_output();
88
 
131
  */
132
  function saswp_get_all_schema_markup_output() {
133
 
134
+ saswp_update_global_post();
135
+
136
  global $sd_data;
137
  global $post;
138
 
807
 
808
  }
809
  }
810
+
811
  /**
812
  * Gets all the comments of current post
813
  * @param type $post_id
815
  */
816
  function saswp_get_comments($post_id){
817
 
818
+ global $sd_data;
819
+
820
+ $comments = array();
821
+ $post_comments = array();
822
+
823
+ $is_bbpress = false;
824
+
825
+ if(isset($sd_data['saswp-bbpress']) && $sd_data['saswp-bbpress'] == 1 && get_post_type($post_id) == 'topic'){
826
+ $is_bbpress = true;
827
+ }
828
+
829
+ if($is_bbpress){
830
+
831
+ $replies_query = array(
832
+ 'post_type' => 'reply',
833
+ );
834
+
835
+ if ( bbp_has_replies( $replies_query ) ) :
836
+
837
+ while ( bbp_replies() ) : bbp_the_reply();
838
+
839
+ $post_comments[] = (object) array(
840
+ 'comment_date' => get_post_time( DATE_ATOM, false, bbp_get_reply_id(), true ),
841
+ 'comment_content' => bbp_get_reply_content(),
842
+ 'comment_author' => bbp_get_reply_author(),
843
+ 'comment_author_url' => bbp_get_reply_author_url(),
844
+ );
845
+
846
+ endwhile;
847
+ wp_reset_postdata();
848
+ endif;
849
+
850
+ }else{
851
+ $post_comments = get_comments( array(
852
+ 'post_id' => $post_id,
853
+ 'status' => 'approve',
854
+ 'type' => 'comment'
855
+ )
856
+ );
857
+
858
+ }
859
+
860
+ if ( count( $post_comments ) ) {
861
 
862
+ foreach ( $post_comments as $comment ) {
863
+
864
+ $comments[] = array (
865
+ '@type' => 'Comment',
866
+ 'dateCreated' => $is_bbpress ? $comment->comment_date : saswp_format_date_time($comment->comment_date),
867
+ 'description' => strip_tags($comment->comment_content),
868
+ 'author' => array (
869
+ '@type' => 'Person',
870
+ 'name' => esc_attr($comment->comment_author),
871
+ 'url' => isset($comment->comment_author_url) ? esc_url($comment->comment_author_url): '',
872
+ ),
873
+ );
874
+ }
875
+
876
+ return apply_filters( 'saswp_filter_comments', $comments );
877
+ }
878
+
879
+ }
880
+ /**
881
+ * Gets all the comments of current post
882
+ * @param type $post_id
883
+ * @return type array
884
+ */
885
+ function saswp_get_comments_with_rating(){
886
+
887
+ global $sd_data, $post;
888
 
889
+ $comments = array();
890
+ $ratings = array();
891
+ $post_comments = array();
892
+ $response = array();
893
+
894
+ $post_comments = get_comments( array(
895
+ 'post_id' => $post->ID,
896
+ 'status' => 'approve',
897
+ 'type' => 'comment'
898
+ )
899
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
900
 
901
  if ( count( $post_comments ) ) {
902
+
903
+ $sumofrating = 0;
904
+ $avg_rating = 1;
905
 
906
+ foreach ( $post_comments as $comment ) {
907
+
908
+ $rating = get_comment_meta($comment->comment_ID, 'review_rating', true);
909
+
910
+ $sumofrating += $rating;
911
+
912
  $comments[] = array (
913
+ '@type' => 'Review',
914
+ 'datePublished' => saswp_format_date_time($comment->comment_date),
915
+ 'description' => strip_tags($comment->comment_content),
916
+ 'author' => array (
917
+ '@type' => 'Person',
918
+ 'name' => esc_attr($comment->comment_author),
919
+ 'url' => isset($comment->comment_author_url) ? esc_url($comment->comment_author_url): '',
920
+ ),
921
+ 'reviewRating' => array(
922
+ '@type' => 'Rating',
923
+ 'bestRating' => '5',
924
+ 'ratingValue' => $rating,
925
+ 'worstRating' => '1',
926
+ )
927
  );
928
+ }
929
+
930
+ if($sumofrating> 0){
931
+ $avg_rating = $sumofrating / count($comments);
932
+ }
933
 
934
+ $ratings = array(
935
+ '@type' => 'AggregateRating',
936
+ 'ratingValue' => $avg_rating,
937
+ 'reviewCount' => count($comments)
938
+ );
939
+
940
+ }
941
+
942
+ if($comments){
943
+ $response = array('reviews' => $comments, 'ratings' => $ratings);
944
+ }
945
+
946
+ return apply_filters( 'saswp_filter_comments_with_rating', $response);
947
  }
948
 
949
  /**
1132
  $content = preg_replace("/<script type\=\'application\/ld\+json\' class\=\'wpnews-schema-graph(.*?)'\>(.*?)<\/script>/s", "", $content);
1133
  }
1134
 
1135
+
1136
+ if(isset($sd_data['saswp-event-on']) && $sd_data['saswp-event-on'] == 1 ){
1137
+ $content = preg_replace("/<div class\=\"evo_event_schema\"(.*?)>(.*?)<\/script><\/div>/s", "", $content);
1138
+ }
1139
 
1140
  if(function_exists('review_child_company_reviews_comments') && isset($sd_data['saswp-wp-theme-reviews']) && $sd_data['saswp-wp-theme-reviews'] == 1){
1141
 
2329
  $site_name = get_bloginfo();
2330
  }
2331
 
 
 
 
2332
  $schema_properties = array();
2333
 
2334
+ $service_object = new saswp_output_service();
2335
+ $logo = $service_object->saswp_get_publisher(true);
2336
+ $feature_image = $service_object->saswp_get_fetaure_image();
2337
+
 
 
 
 
 
 
 
 
 
 
 
2338
  $publisher_info['type'] = 'Organization';
2339
  $publisher_info['name'] = esc_attr($site_name);
2340
  $publisher_info['logo']['@type'] = 'ImageObject';
2350
  $schema_properties['mainEntityOfPage'] = get_the_permalink();
2351
  $schema_properties['author'] = get_the_author();
2352
  $schema_properties['publisher'] = $publisher_info;
2353
+
2354
+ if(!empty($feature_image)){
2355
+ $schema_properties = array_merge($schema_properties, $feature_image);
2356
  }
2357
 
2358
  $itemlist_arr = array(
output/gutenberg.php CHANGED
@@ -396,9 +396,16 @@ function saswp_gutenberg_event_schema(){
396
  $input1['@type'] = 'Event';
397
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#Event';
398
  $input1['name'] = saswp_get_the_title();
399
- $input1['description'] = saswp_get_the_excerpt();
400
  $input1['startDate'] = saswp_format_date_time($data['start_date'], $data['start_time']);
401
  $input1['endDate'] = saswp_format_date_time($data['end_date'], $data['end_time']);
 
 
 
 
 
 
 
402
 
403
  if(isset($data['venue_address']) || isset($data['venue_name'])){
404
 
@@ -417,7 +424,7 @@ function saswp_gutenberg_event_schema(){
417
  $input1['offers']['@type'] = 'Offer';
418
  $input1['offers']['url'] = saswp_get_permalink();
419
  $input1['offers']['price'] = $data['price'];
420
- $input1['offers']['priceCurrency'] = $data['currency'] ? $data['currency'] : 'USD';
421
  $input1['offers']['availability'] = 'InStock';
422
  $input1['offers']['validFrom'] = saswp_format_date_time($data['start_date'], $data['start_time']);
423
 
396
  $input1['@type'] = 'Event';
397
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#Event';
398
  $input1['name'] = saswp_get_the_title();
399
+ $input1['description'] = isset($data['description']) ? $data['description'] : saswp_get_the_excerpt();
400
  $input1['startDate'] = saswp_format_date_time($data['start_date'], $data['start_time']);
401
  $input1['endDate'] = saswp_format_date_time($data['end_date'], $data['end_time']);
402
+
403
+ $input1['eventStatus'] = $data['event_status'];
404
+ $input1['eventAttendanceMode'] = $data['attendance_mode'];
405
+
406
+ if(isset($data['event_status']) && $data['event_status'] == 'EventRescheduled' && isset($data['previous_date'])){
407
+ $input1['PreviousStartDate'] = saswp_format_date_time($data['previous_date'], $data['previous_time']);
408
+ }
409
 
410
  if(isset($data['venue_address']) || isset($data['venue_name'])){
411
 
424
  $input1['offers']['@type'] = 'Offer';
425
  $input1['offers']['url'] = saswp_get_permalink();
426
  $input1['offers']['price'] = $data['price'];
427
+ $input1['offers']['priceCurrency'] = (isset($data['currency']) && $data['currency']) ? $data['currency'] : 'USD';
428
  $input1['offers']['availability'] = 'InStock';
429
  $input1['offers']['validFrom'] = saswp_format_date_time($data['start_date'], $data['start_time']);
430
 
output/markup.php CHANGED
@@ -53,16 +53,16 @@ function saswp_get_reviews_schema_markup($reviews){
53
  }
54
 
55
  if(!empty($reviews_arr)){
56
-
57
- $input1['review'] = $reviews_arr;
58
 
59
- }
 
 
 
 
60
 
61
- $input1['aggregateRating'] = array(
62
- '@type' => 'AggregateRating',
63
- 'reviewCount' => count($reviews),
64
- 'ratingValue' => esc_attr($avg_rating),
65
- );
66
 
67
  }
68
  return $input1;
@@ -836,6 +836,64 @@ function saswp_product_schema_markup($schema_id, $schema_post_id, $all_post_meta
836
 
837
  }
838
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
  function saswp_local_business_schema_markup($schema_id, $schema_post_id, $all_post_meta){
840
 
841
  $input1 = array();
53
  }
54
 
55
  if(!empty($reviews_arr)){
 
 
56
 
57
+ $input1['aggregateRating'] = array(
58
+ '@type' => 'AggregateRating',
59
+ 'reviewCount' => count($reviews),
60
+ 'ratingValue' => esc_attr($avg_rating),
61
+ );
62
 
63
+ $input1['review'] = $reviews_arr;
64
+
65
+ }
 
 
66
 
67
  }
68
  return $input1;
836
 
837
  }
838
 
839
+ function saswp_real_estate_listing_schema_markup($schema_id, $schema_post_id, $all_post_meta){
840
+
841
+ $product_image = get_post_meta( get_the_ID(), 'saswp_real_estate_listing_image_'.$schema_id.'_detail',true);
842
+
843
+ $input1 = array(
844
+ '@context' => saswp_context_url(),
845
+ '@type' => 'RealEstateListing',
846
+ '@id' => trailingslashit(get_permalink()).'#RealEstateListing',
847
+ 'url' => trailingslashit(get_permalink()),
848
+ 'name' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_name_'.$schema_id, 'saswp_array'),
849
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_description_'.$schema_id, 'saswp_array'),
850
+ );
851
+
852
+ $input1['datePosted'] = isset($all_post_meta['saswp_real_estate_listing_date_posted_'.$schema_id][0])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_real_estate_listing_date_posted_'.$schema_id][0])):'';
853
+
854
+ if(isset($product_image['thumbnail']) && $product_image['thumbnail']){
855
+
856
+ $input1['image']['@type'] = 'ImageObject';
857
+ $input1['image']['url'] = $product_image['thumbnail'];
858
+ $input1['image']['width'] = $product_image['width'];
859
+ $input1['image']['height'] = $product_image['height'];
860
+
861
+ }
862
+
863
+ if(isset($all_post_meta['saswp_real_estate_listing_price_'.$schema_id][0]) && $all_post_meta['saswp_real_estate_listing_price_'.$schema_id][0]){
864
+
865
+ $input1['offers']['@type'] = 'Offer';
866
+ $input1['offers']['availability'] = saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_availability_'.$schema_id, 'saswp_array');
867
+ $input1['offers']['price'] = saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_price_'.$schema_id, 'saswp_array');
868
+ $input1['offers']['priceCurrency'] = saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_currency_'.$schema_id, 'saswp_array');
869
+ $input1['offers']['validFrom'] = isset($all_post_meta['saswp_real_estate_listing_validfrom_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_real_estate_listing_validfrom_'.$schema_id][0])):'';
870
+
871
+ }
872
+
873
+ $location = array();
874
+
875
+ if(isset($all_post_meta['saswp_real_estate_listing_location_name_'.$schema_id][0])){
876
+
877
+ $location[] = array(
878
+ '@type' => 'Place',
879
+ 'name' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_location_name_'.$schema_id, 'saswp_array'),
880
+ 'telephone' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_phone_'.$schema_id, 'saswp_array'),
881
+ 'address' => array(
882
+ '@type' => 'PostalAddress',
883
+ 'streetAddress' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_streetaddress_'.$schema_id, 'saswp_array'),
884
+ 'addressLocality' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_locality_'.$schema_id, 'saswp_array'),
885
+ 'addressRegion' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_region_'.$schema_id, 'saswp_array'),
886
+ 'addressCountry' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_country_'.$schema_id, 'saswp_array'),
887
+ 'postalCode ' => saswp_remove_warnings($all_post_meta, 'saswp_real_estate_listing_postalcode_'.$schema_id, 'saswp_array'),
888
+ ),
889
+ );
890
+ $input1['contentLocation'] = $location;
891
+ }
892
+
893
+ return $input1;
894
+
895
+ }
896
+
897
  function saswp_local_business_schema_markup($schema_id, $schema_post_id, $all_post_meta){
898
 
899
  $input1 = array();
output/output.php CHANGED
@@ -1234,7 +1234,30 @@ function saswp_schema_output() {
1234
  }
1235
 
1236
  break;
1237
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1238
  case 'Product':
1239
 
1240
  $input1 = $service_object->saswp_schema_markup_generator($schema_type);
@@ -1528,13 +1551,13 @@ function saswp_schema_output() {
1528
  $local_business = 'LocalBusiness';
1529
  }
1530
 
1531
- $input1 = array(
1532
- '@context' => saswp_context_url(),
1533
- '@type' => esc_attr($local_business),
1534
- '@id' => trailingslashit(saswp_get_permalink()).'#'. strtolower(esc_attr($local_business)),
1535
- 'url' => trailingslashit(saswp_get_permalink()),
1536
- 'name' => get_bloginfo( 'name' )
1537
- );
1538
 
1539
  if(!empty($aggregateRating)){
1540
  $input1['aggregateRating'] = $aggregateRating;
@@ -1551,8 +1574,11 @@ function saswp_schema_output() {
1551
 
1552
  if($modified_schema == 1){
1553
 
1554
- $input1 = saswp_local_business_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
1555
- }
 
 
 
1556
 
1557
  break;
1558
 
@@ -2112,7 +2138,20 @@ function saswp_archive_output(){
2112
  }
2113
  }
2114
 
2115
- if( is_home() || is_front_page() || ( function_exists('ampforwp_is_home') && ampforwp_is_home() ) ){
 
 
 
 
 
 
 
 
 
 
 
 
 
2116
 
2117
  $i = 1;
2118
  if ( have_posts() ):
1234
  }
1235
 
1236
  break;
1237
+
1238
+ case 'RealEstateListing':
1239
+
1240
+ $input1 = array(
1241
+ '@context' => saswp_context_url(),
1242
+ '@type' => 'RealEstateListing',
1243
+ '@id' => trailingslashit(saswp_get_permalink()).'#RealEstateListing',
1244
+ 'url' => trailingslashit(saswp_get_permalink()),
1245
+ 'name' => saswp_get_the_title(),
1246
+ 'datePosted' => esc_html($date),
1247
+ 'description' => $description,
1248
+ );
1249
+
1250
+ $input1 = apply_filters('saswp_modify_real_estate_listing_schema_output', $input1 );
1251
+
1252
+ $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
1253
+
1254
+ if($modified_schema == 1){
1255
+
1256
+ $input1 = saswp_real_estate_listing_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
1257
+ }
1258
+
1259
+ break;
1260
+
1261
  case 'Product':
1262
 
1263
  $input1 = $service_object->saswp_schema_markup_generator($schema_type);
1551
  $local_business = 'LocalBusiness';
1552
  }
1553
 
1554
+ $input1 = array(
1555
+ '@context' => saswp_context_url(),
1556
+ '@type' => esc_attr($local_business),
1557
+ '@id' => trailingslashit(saswp_get_permalink()).'#'. strtolower(esc_attr($local_business)),
1558
+ 'url' => trailingslashit(saswp_get_permalink()),
1559
+ 'name' => get_bloginfo( 'name' )
1560
+ );
1561
 
1562
  if(!empty($aggregateRating)){
1563
  $input1['aggregateRating'] = $aggregateRating;
1574
 
1575
  if($modified_schema == 1){
1576
 
1577
+ $input1 = saswp_local_business_schema_markup($schema_post_id, get_the_ID(), $all_post_meta);
1578
+
1579
+ }
1580
+
1581
+ $input1['@type'] = $local_business;
1582
 
1583
  break;
1584
 
2138
  }
2139
  }
2140
 
2141
+ $homepage = false;
2142
+
2143
+ if(saswp_non_amp()){
2144
+
2145
+ if(is_home()){
2146
+ $homepage = true;
2147
+ }
2148
+ }else{
2149
+ if(function_exists('ampforwp_is_home') && ampforwp_is_home()){
2150
+ $homepage = true;
2151
+ }
2152
+ }
2153
+
2154
+ if( $homepage ){
2155
 
2156
  $i = 1;
2157
  if ( have_posts() ):
output/service.php CHANGED
@@ -1201,8 +1201,9 @@ Class saswp_output_service{
1201
  $reviews_arr['name'] = $custom_fields['saswp_event_schema_virtual_location_name'];
1202
  $vir_location['url'] = $custom_fields['saswp_event_schema_virtual_location_url'];
1203
  }
1204
-
1205
- $input1['location'] = array($vir_location, $phy_location);
 
1206
 
1207
  if(isset($custom_fields['saswp_event_schema_status'])){
1208
  $input1['eventStatus'] = $custom_fields['saswp_event_schema_status'];
@@ -1601,6 +1602,58 @@ Class saswp_output_service{
1601
  }
1602
 
1603
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1604
 
1605
  case 'Service':
1606
  if(isset($custom_fields['saswp_service_schema_name'])){
@@ -2811,21 +2864,41 @@ Class saswp_output_service{
2811
  $product_details['product_average_rating'] = $sumofrating / count($judge_me_post);
2812
  }
2813
 
2814
- }else if($reviews){
 
 
 
2815
 
2816
  foreach($reviews as $review){
2817
-
 
 
 
 
2818
  $reviews_arr[] = array(
2819
  'author' => $review->comment_author ? $review->comment_author : 'Anonymous' ,
2820
  'datePublished' => $review->comment_date,
2821
  'description' => wp_strip_all_tags(strip_shortcodes($review->comment_content)),
2822
- 'reviewRating' => get_comment_meta( $review->comment_ID, 'rating', true ) ? get_comment_meta( $review->comment_ID, 'rating', true ) : '5',
2823
  );
2824
 
2825
  }
 
 
 
 
2826
 
2827
- $product_details['product_review_count'] = $product->get_review_count();
2828
- $product_details['product_average_rating'] = $product->get_average_rating();
 
 
 
 
 
 
 
 
 
2829
 
2830
  }else{
2831
 
1201
  $reviews_arr['name'] = $custom_fields['saswp_event_schema_virtual_location_name'];
1202
  $vir_location['url'] = $custom_fields['saswp_event_schema_virtual_location_url'];
1203
  }
1204
+ if($vir_location || $phy_location){
1205
+ $input1['location'] = array($vir_location, $phy_location);
1206
+ }
1207
 
1208
  if(isset($custom_fields['saswp_event_schema_status'])){
1209
  $input1['eventStatus'] = $custom_fields['saswp_event_schema_status'];
1602
  }
1603
 
1604
  break;
1605
+
1606
+ case 'RealEstateListing':
1607
+ if(isset($custom_fields['saswp_real_estate_listing_date_posted'])){
1608
+ $input1['datePosted'] = $custom_fields['saswp_real_estate_listing_date_posted'];
1609
+ }
1610
+ if(isset($custom_fields['saswp_real_estate_listing_name'])){
1611
+ $input1['name'] = $custom_fields['saswp_real_estate_listing_name'];
1612
+ }
1613
+ if(isset($custom_fields['saswp_real_estate_listing_url'])){
1614
+ $input1['url'] = $custom_fields['saswp_real_estate_listing_url'];
1615
+ }
1616
+ if(isset($custom_fields['saswp_real_estate_listing_description'])){
1617
+ $input1['description'] = $custom_fields['saswp_real_estate_listing_description'];
1618
+ }
1619
+ if(isset($custom_fields['saswp_real_estate_listing_image'])){
1620
+ $input1['image'] = $custom_fields['saswp_real_estate_listing_image'];
1621
+ }
1622
+ if(isset($custom_fields['saswp_real_estate_listing_availability'])){
1623
+ $input1['offers']['availability'] = $custom_fields['saswp_real_estate_listing_availability'];
1624
+ }
1625
+ if(isset($custom_fields['saswp_real_estate_listing_price'])){
1626
+ $input1['offers']['price'] = $custom_fields['saswp_real_estate_listing_price'];
1627
+ }
1628
+ if(isset($custom_fields['saswp_real_estate_listing_currency'])){
1629
+ $input1['offers']['priceCurrency'] = $custom_fields['saswp_real_estate_listing_currency'];
1630
+ }
1631
+ if(isset($custom_fields['saswp_real_estate_listing_validfrom'])){
1632
+ $input1['offers']['validfrom'] = $custom_fields['saswp_real_estate_listing_validfrom'];
1633
+ }
1634
+
1635
+ $location = array();
1636
+
1637
+ if(isset($custom_fields['saswp_real_estate_listing_location_name'])){
1638
+
1639
+ $location = array(
1640
+ '@type' => 'Place',
1641
+ 'name' => $custom_fields['saswp_real_estate_listing_location_name'],
1642
+ 'telephone' => $custom_fields['saswp_real_estate_listing_location_name'],
1643
+ 'address' => array(
1644
+ '@type' => 'PostalAddress',
1645
+ 'streetAddress' => $custom_fields['saswp_real_estate_listing_streetaddress'],
1646
+ 'addressLocality' => $custom_fields['saswp_real_estate_listing_locality'],
1647
+ 'addressRegion' => $custom_fields['saswp_real_estate_listing_region'],
1648
+ 'addressCountry' => $custom_fields['saswp_real_estate_listing_country'],
1649
+ 'postalCode' => $custom_fields['saswp_real_estate_listing_postalcode'],
1650
+ ),
1651
+ );
1652
+
1653
+ $input1['contentLocation'] = $location;
1654
+ }
1655
+
1656
+ break;
1657
 
1658
  case 'Service':
1659
  if(isset($custom_fields['saswp_service_schema_name'])){
2864
  $product_details['product_average_rating'] = $sumofrating / count($judge_me_post);
2865
  }
2866
 
2867
+ }else if( $reviews && is_array($reviews) ){
2868
+
2869
+ $sumofrating = 0;
2870
+ $avg_rating = 1;
2871
 
2872
  foreach($reviews as $review){
2873
+
2874
+ $rating = get_comment_meta( $review->comment_ID, 'rating', true ) ? get_comment_meta( $review->comment_ID, 'rating', true ) : '5';
2875
+
2876
+ $sumofrating += $rating;
2877
+
2878
  $reviews_arr[] = array(
2879
  'author' => $review->comment_author ? $review->comment_author : 'Anonymous' ,
2880
  'datePublished' => $review->comment_date,
2881
  'description' => wp_strip_all_tags(strip_shortcodes($review->comment_content)),
2882
+ 'reviewRating' => $rating,
2883
  );
2884
 
2885
  }
2886
+
2887
+ if($sumofrating> 0){
2888
+ $avg_rating = $sumofrating / count($reviews);
2889
+ }
2890
 
2891
+ if($product->get_review_count()){
2892
+ $product_details['product_review_count'] = $product->get_review_count();
2893
+ }else{
2894
+ $product_details['product_review_count'] = count($reviews);
2895
+ }
2896
+
2897
+ if($product->get_average_rating()){
2898
+ $product_details['product_average_rating'] = $product->get_average_rating();
2899
+ }else{
2900
+ $product_details['product_average_rating'] = $avg_rating;
2901
+ }
2902
 
2903
  }else{
2904
 
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.4
6
- Stable tag: 1.9.35
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -120,6 +120,21 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  = 1.9.35 (30 Apr 2020) =
124
 
125
  * Added: CreativeWorkSeries schema #948
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.4
6
+ Stable tag: 1.9.36
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
120
 
121
  == Changelog ==
122
 
123
+ = 1.9.36 (12 May 2020) =
124
+
125
+ * Fixed: Speed is getting effected by images which are gernerated from our schema plugin #966
126
+ * Fixed: Woocommerce Membership points to wrong link #975
127
+ * Fixed: Multiple reviews must be accompanied by aggregateRating #976
128
+ * Fixed: Author url is showing a link to the home page in Article schema #979
129
+ * Fixed: Article schema not being displayed on the AMP version of homepage #970
130
+ * Fixed: CollectionPage schema is not taking featured image #991
131
+ * Fixed: Aggregate Rating should be a parent and the reviews should be a child of it. #990
132
+ * Fixed: Placement condition for tag is properly not working #971
133
+ * Added: sameAs property for author #978
134
+ * Added: RealEstateListing schema #992
135
+ * Added: eventStatus and eventMode In gutenberg event(SASWP) #980
136
+
137
+
138
  = 1.9.35 (30 Apr 2020) =
139
 
140
  * Added: CreativeWorkSeries schema #948
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
- Version: 1.9.35
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.35');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
+ Version: 1.9.36
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.36');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));