Schema & Structured Data for WP & AMP - Version 1.9.18

Version Description

(14 Dec 2019) =

  • Major Feature: Added review form to submit user review from the post. Use the shortcode to show form [saswp-reviews-form] #538
  • Feature: Added reviews popup to select review on add review enabling #600
  • Added: Author URL property in author schema #638
  • Added: Compatibility with Testimonial Pro plugin #627
  • Added: WP Customer Reviews ( https://wordpress.org/plugins/wp-customer-reviews/ ) importer #597
  • Added: Compatiblity with Better AMP ( https://wordpress.org/plugins/better-amp/ ), WP AMP Accelerated Mobile Pages for WordPress and WooCommerce, PenCi Soledad AMP - WordPress Complete AMP #615
  • Added: datPublished property in DiscussionForumPosting schema #648
  • Fixed: Show the review count correctly if user is inserting multiple shortcodes. #642
  • Fixed: Review full content is not displaying in front end #624
  • Fixed: RDFa CleanUp #632
  • Fixed: Product page schema should be dynamic for (Product, SoftwareApplication, Book) not static #634
  • Fixed: All values provided for url must point to the same page in itemList schema. #653
  • Fixed: PHP Fatal error "Uncaught Error: Using $this when not in object context" in php v7.4 #644
  • Fixed: Collection js and css should load when its need #656
  • Fixed: Review logos are not redirecting to the link #652
  • Fixed: Reviews collection not creating schema markup #655
  • Fixed: After last update error comes in review schema #657
  • Fixed: Images aspect ratio as Images should be at least 1200 pixels wide. #617
  • Enhancement: Automatic detection of compatible plugin and enable it in compatibility section #607
Download this release

Release Info

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

Code changes from version 1.9.17 to 1.9.18

Files changed (43) hide show
  1. admin_section/common-function.php +174 -21
  2. admin_section/css/amp/collection-front-badge.css +1 -1
  3. admin_section/css/amp/review-form.css +61 -0
  4. admin_section/css/collection-front.css +7 -116
  5. admin_section/css/collection-front.min.css +1 -1
  6. admin_section/css/main-style.css +30 -4
  7. admin_section/css/main-style.min.css +1 -1
  8. admin_section/css/review-form.css +15 -0
  9. admin_section/css/review-form.min.css +1 -0
  10. admin_section/css/saswp-style.css +33 -7
  11. admin_section/css/saswp-style.min.css +1 -1
  12. admin_section/images/reviews_platform_icon/facebook-1-img.png +0 -0
  13. admin_section/js/collection-front.js +1 -2
  14. admin_section/js/collection-front.min.js +1 -1
  15. admin_section/js/functions-list.js +1209 -0
  16. admin_section/js/functions-list.min.js +1 -1
  17. admin_section/js/main-script.js +145 -1
  18. admin_section/js/main-script.min.js +1 -1
  19. admin_section/js/review-form.js +10 -0
  20. admin_section/js/review-form.min.js +1 -0
  21. admin_section/settings.php +117 -8
  22. admin_section/structure_admin.php +8 -1
  23. core/3rd-party/class-amp-review-form-blacklist.php +426 -0
  24. core/array-list/compatibility-list.php +36 -0
  25. core/array-list/schema-properties.php +64 -4
  26. core/global.php +6 -0
  27. view/review.php → modules/rating-box/backend.php +4 -4
  28. output/review-output.php → modules/rating-box/frontend.php +5 -5
  29. modules/reviews/reviews_collection.php +26 -17
  30. modules/reviews/reviews_form.php +286 -0
  31. modules/reviews/reviews_service.php +95 -106
  32. modules/reviews/reviews_setup.php +48 -4
  33. output/compatibility.php +213 -3
  34. output/flexmls.php +349 -0
  35. output/function.php +245 -32
  36. output/markup.php +32 -24
  37. output/output.php +49 -27
  38. output/service.php +73 -14
  39. output/single.php +15 -15
  40. readme.txt +23 -1
  41. structured-data-for-wp.php +13 -4
  42. view/help.php +1 -1
  43. view/schema_type.php +131 -4
admin_section/common-function.php CHANGED
@@ -30,6 +30,8 @@ if ( ! defined('ABSPATH') ) exit;
30
  'translation-tools' => 'Tools',
31
  'translation-materials' => 'Materials',
32
  'translation-time-needed' => 'Time Needed',
 
 
33
  );
34
  //global variable to store List of labels ends here
35
 
@@ -479,6 +481,80 @@ if ( ! defined('ABSPATH') ) exit;
479
 
480
  }
481
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
482
  function saswp_import_aiors_plugin_data(){
483
 
484
  global $wpdb;
@@ -1660,16 +1736,6 @@ if ( ! defined('ABSPATH') ) exit;
1660
 
1661
  }
1662
 
1663
- $active_plugin = saswp_compatible_active_list();
1664
-
1665
- if($active_plugin){
1666
-
1667
- foreach ($active_plugin as $plugin){
1668
- $defaults[$plugin] = 1;
1669
- }
1670
-
1671
- }
1672
-
1673
  return $defaults;
1674
 
1675
  }
@@ -1698,7 +1764,7 @@ if ( ! defined('ABSPATH') ) exit;
1698
 
1699
  if(isset($review_details['saswp-review-item-enable'])){
1700
 
1701
- wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/saswp-style.min.css', false , SASWP_VERSION );
1702
 
1703
  }
1704
 
@@ -1706,12 +1772,9 @@ if ( ! defined('ABSPATH') ) exit;
1706
 
1707
  if(isset($sd_data['saswp-google-review']) && $sd_data['saswp-google-review'] == 1 ){
1708
 
1709
- wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/saswp-style.min.css', false , SASWP_VERSION );
1710
 
1711
- }
1712
-
1713
- wp_enqueue_style( 'saswp-collection-front-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'collection-front.min.css' : 'collection-front.css'), false , SASWP_VERSION );
1714
- wp_enqueue_script( 'saswp-collection-front-js', SASWP_PLUGIN_URL . 'admin_section/js/'.(SASWP_ENVIRONMENT == 'production' ? 'collection-front.min.js' : 'collection-front.js'), array('jquery') , SASWP_VERSION );
1715
 
1716
  }
1717
  /**
@@ -1925,6 +1988,9 @@ if ( ! defined('ABSPATH') ) exit;
1925
  font-size: 15px;
1926
  width: 20px;
1927
  height: 20px;
 
 
 
1928
  }
1929
  .saswp-g-plus amp-img{
1930
  width:100%;
@@ -2011,7 +2077,39 @@ if ( ! defined('ABSPATH') ) exit;
2011
  }
2012
  .widget .saswp-rv-img img {
2013
  max-width: 50px;
2014
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2015
  <?php
2016
  }
2017
 
@@ -2589,11 +2687,24 @@ function saswp_on_activation(){
2589
 
2590
  if(!$installation_date){
2591
 
2592
- update_option('saswp_installation_date', date("Y-m-d"));
2593
- update_option('sd_data', saswp_default_settings_array());
2594
 
2595
  }
2596
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2597
  }
2598
 
2599
  function saswp_context_url(){
@@ -2824,4 +2935,46 @@ function saswp_admin_notice(){
2824
 
2825
  }
2826
 
2827
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  'translation-tools' => 'Tools',
31
  'translation-materials' => 'Materials',
32
  'translation-time-needed' => 'Time Needed',
33
+ 'translation-name' => 'Name',
34
+ 'translation-comment' => 'Comment',
35
  );
36
  //global variable to store List of labels ends here
37
 
481
 
482
  }
483
 
484
+ function saswp_import_wp_custom_rv_plugin_data(){
485
+
486
+ global $wpdb;
487
+
488
+ $wpdb->query('START TRANSACTION');
489
+ $errorDesc = array();
490
+
491
+ $wpcr3reviews = get_posts(
492
+ array(
493
+ 'post_type' => 'wpcr3_review',
494
+ 'posts_per_page' => -1,
495
+ 'post_status' => 'any',
496
+ )
497
+ );
498
+
499
+ if($wpcr3reviews){
500
+
501
+ foreach($wpcr3reviews as $new_post){
502
+
503
+ $review_post = (array)$new_post;
504
+ $wp_post_id = $review_post['ID'];
505
+ $wp_rv_time = get_post_time('h:i:s',false,$new_post);
506
+ $wp_rv_date = get_the_date('Y-m-d',$new_post);
507
+ unset($review_post['ID']);
508
+ $review_post['post_type'] = 'saswp_reviews';
509
+ $post_id = wp_insert_post($review_post);
510
+
511
+ $wp_post_meta = get_post_meta($wp_post_id, '', true);
512
+
513
+ $term = get_term_by( 'slug','google', 'platform' );
514
+
515
+ $media_detail = array(
516
+ 'width' => 300,
517
+ 'height' => 300,
518
+ 'thumbnail' => SASWP_DIR_URI.'/admin_section/images/default_user.jpg',
519
+ );
520
+
521
+ $review_meta = array(
522
+ 'saswp_review_platform' => $term->term_id,
523
+ 'saswp_review_location_id' => $wp_post_meta['wpcr3_review_post'][0],
524
+ 'saswp_review_date' => $wp_rv_date,
525
+ 'saswp_review_time' => $wp_rv_time,
526
+ 'saswp_review_rating' => $wp_post_meta['wpcr3_review_rating'][0],
527
+ 'saswp_review_text' => $review_post['post_content'],
528
+ 'saswp_reviewer_name' => $wp_post_meta['wpcr3_review_name'][0],
529
+ 'saswp_reviewer_email' => $wp_post_meta['wpcr3_review_email'][0],
530
+ 'saswp_reviewer_website' => $wp_post_meta['wpcr3_review_website'][0],
531
+ 'saswp_review_link' => get_permalink($wp_post_meta['wpcr3_review_post'][0]),
532
+ 'saswp_reviewer_image' => SASWP_DIR_URI.'/admin_section/images/default_user.jpg',
533
+ 'saswp_reviewer_image_detail' => $media_detail
534
+ );
535
+
536
+ if($post_id && !empty($review_meta) && is_array($review_meta)){
537
+
538
+ foreach ($review_meta as $key => $val){
539
+ update_post_meta($post_id, $key, $val);
540
+ }
541
+
542
+ }
543
+
544
+ }
545
+
546
+ }
547
+
548
+ if ( count($errorDesc) ){
549
+ echo implode("\n<br/>", $errorDesc);
550
+ $wpdb->query('ROLLBACK');
551
+ }else{
552
+ $wpdb->query('COMMIT');
553
+ return true;
554
+ }
555
+
556
+ }
557
+
558
  function saswp_import_aiors_plugin_data(){
559
 
560
  global $wpdb;
1736
 
1737
  }
1738
 
 
 
 
 
 
 
 
 
 
 
1739
  return $defaults;
1740
 
1741
  }
1764
 
1765
  if(isset($review_details['saswp-review-item-enable'])){
1766
 
1767
+ wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-style.min.css' : 'saswp-style.css'), false , SASWP_VERSION );
1768
 
1769
  }
1770
 
1772
 
1773
  if(isset($sd_data['saswp-google-review']) && $sd_data['saswp-google-review'] == 1 ){
1774
 
1775
+ wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-style.min.css' : 'saswp-style.css'), false , SASWP_VERSION );
1776
 
1777
+ }
 
 
 
1778
 
1779
  }
1780
  /**
1988
  font-size: 15px;
1989
  width: 20px;
1990
  height: 20px;
1991
+ position: absolute;
1992
+ right: 0;
1993
+ top:4px;
1994
  }
1995
  .saswp-g-plus amp-img{
1996
  width:100%;
2077
  }
2078
  .widget .saswp-rv-img img {
2079
  max-width: 50px;
2080
+ }
2081
+
2082
+ .saswp-rv-txt{
2083
+ position: static;
2084
+ height: 80px;
2085
+ overflow-y: auto;
2086
+ font-size: 14px;
2087
+ line-height:1.6;
2088
+ text-align: left;
2089
+ padding: 0 2px 0 0;
2090
+ margin: 10px 0 0;
2091
+ }
2092
+ .saswp-rv-txt p{
2093
+ margin:0;
2094
+ }
2095
+ .saswp-rv-cnt::-webkit-scrollbar {
2096
+ width: 4px ;
2097
+ display:inline-block;
2098
+ }
2099
+ .saswp-rv-cnt::-webkit-scrollbar-thumb {
2100
+ -webkit-border-radius: 10px ;
2101
+ border-radius: 10px ;
2102
+ background: #ccc ;
2103
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) ;
2104
+ }
2105
+ .saswp-rv-cnt::-webkit-scrollbar-track {
2106
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
2107
+ -webkit-border-radius: 4px;
2108
+ }
2109
+ .saswp-r5-rng{
2110
+ position: relative;
2111
+ }
2112
+
2113
  <?php
2114
  }
2115
 
2687
 
2688
  if(!$installation_date){
2689
 
2690
+ update_option('saswp_installation_date', date("Y-m-d"));
 
2691
 
2692
  }
2693
+
2694
+ $defaults = get_option('sd_data');
2695
+
2696
+ $active_plugin = saswp_compatible_active_list();
2697
+
2698
+ if($active_plugin){
2699
+
2700
+ foreach ($active_plugin as $plugin){
2701
+ $defaults[$plugin] = 1;
2702
+ }
2703
+
2704
+ }
2705
+
2706
+ update_option('sd_data', $defaults);
2707
+
2708
  }
2709
 
2710
  function saswp_context_url(){
2935
 
2936
  }
2937
 
2938
+ }
2939
+
2940
+ function saswp_remove_anonymous_object_filter_or_action( $tag, $class, $method, $hook_type ){
2941
+
2942
+ $filters = $GLOBALS['wp_filter'][ $tag ];
2943
+ if ( empty ( $filters ) )
2944
+ {
2945
+ return;
2946
+ }
2947
+
2948
+ foreach ( $filters as $priority => $filter )
2949
+ {
2950
+
2951
+ foreach ( $filter as $identifier => $function )
2952
+ {
2953
+
2954
+ if ( is_array( $function)
2955
+ and is_a( $function['function'][0], $class )
2956
+ and $method === $function['function'][1]
2957
+ )
2958
+ {
2959
+ if($hook_type == 'filter'){
2960
+
2961
+ remove_filter(
2962
+ $tag,
2963
+ array ( $function['function'][0], $method ),
2964
+ $priority
2965
+ );
2966
+
2967
+ }
2968
+ if($hook_type == 'action'){
2969
+
2970
+ remove_action(
2971
+ $tag,
2972
+ array ( $function['function'][0], $method ),
2973
+ $priority
2974
+ );
2975
+
2976
+ }
2977
+ }
2978
+ }
2979
+ }
2980
+ }
admin_section/css/amp/collection-front-badge.css CHANGED
@@ -2,7 +2,7 @@
2
  .saswp-r3 ul{
3
  padding:0px;
4
  display:grid;
5
- grid-template-columns:190px 190px 190px 190px;
6
  grid-gap: 30px;
7
  list-style-type:none;
8
  margin:0;
2
  .saswp-r3 ul{
3
  padding:0px;
4
  display:grid;
5
+ grid-template-columns:1fr 1fr 1fr 1fr;
6
  grid-gap: 30px;
7
  list-style-type:none;
8
  margin:0;
admin_section/css/amp/review-form.css ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .saswp-form-tbl{
2
+ margin-bottom: 20px;
3
+ display: inline-block;
4
+ width: 100%;
5
+ }
6
+ .saswp-form-fld{
7
+ display:inline-block;
8
+ margin-bottom: 20px;
9
+ width: 100%;
10
+ }
11
+ .saswp-form-fld span {
12
+ display: block;
13
+ font-size: 15px;
14
+ font-weight: 400;
15
+ margin: 0 0 05px 0;
16
+ }
17
+ .saswp-rvw-str{
18
+ margin-bottom: 10px;
19
+ }
20
+ .saswp-form-fld input{
21
+ width: 100%;
22
+ height: 35px;
23
+ border: 1px solid #dcd7ca;
24
+ padding: 0px 10px;
25
+ }
26
+ .saswp-form-fld textarea{
27
+ width: 100%;
28
+ height: 150px;
29
+ border: 1px solid #dcd7ca;
30
+ padding: 10px;
31
+ }
32
+ .saswp-form-tbl .submit{
33
+ background: #005be2;
34
+ padding: 12px 25px 12px 25px;
35
+ color: #fff;
36
+ border: none;
37
+ cursor: pointer;
38
+ font-size: 15px;
39
+ }
40
+
41
+ /*
42
+ Rating css starts here
43
+ */
44
+
45
+ .saswp-rvw-str .str-ic{
46
+ display:inline-block;
47
+ width: 20px;
48
+ height: 16px;
49
+ background-repeat: no-repeat;
50
+ }
51
+ .saswp-rvw-str .df-clr{
52
+ display:inline-block;
53
+ width: 20px;
54
+ height: 16px;
55
+ background-repeat: no-repeat;
56
+ }
57
+
58
+
59
+ /*
60
+ Rating css ends here
61
+ */
admin_section/css/collection-front.css CHANGED
@@ -1,111 +1,3 @@
1
- .saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}
2
- /*** Review Design CSS ****/
3
- .saswp-g-review-header{
4
- margin-top: 50px;
5
- }
6
- .saswp-g-review-body{
7
- display:inline-grid;
8
- grid-template-columns: 1fr 300px;
9
- grid-gap:30px;
10
- margin-top:30px;
11
- width:100%;
12
- }
13
- .saswp-review-list{}
14
- .saswp-channel-list{
15
- margin-right: 15px;
16
- }
17
- .saswp-input-fields{
18
- display: inline-flex;
19
- align-items: center;
20
- margin-bottom: 8px;
21
- width: 100%;
22
- }
23
- .saswp-input-fields label{
24
- width: 130px;
25
- }
26
- .saswp-panel h3{
27
- font-size: 20px;
28
- line-height: 1.4;
29
- color: #222;
30
- text-align: center;
31
- margin: 10px 0px 20px 0px;
32
- }
33
- .saswp-input-fields a.button-primary{
34
- margin-top:10px;
35
- }
36
- .saswp-glg-review-body{
37
- display: grid;
38
- grid-template-columns: 100px 1fr;
39
- grid-gap: 20px;
40
- background: #fff;
41
- padding: 20px;
42
- box-shadow: 0px 0px 20px 1px #d2cccc;
43
- margin-bottom: 30px;
44
- }
45
- .saswp-g-plus{
46
- float: right;
47
- font-size: 15px;
48
- width: 20px;
49
- height: 20px;
50
- }
51
- .saswp-g-plus img{
52
- width:100%;
53
- }
54
- .saswp-rtng{
55
- padding-left: 5px;
56
- font-size: 14px;
57
- }
58
- .saswp-pt-dt {
59
- font-size: 12px;
60
- color: #999;
61
- font-weight: 600;
62
- margin-top: 5px;
63
- display: inline-block;
64
- }
65
- .saswp-athr{
66
- font-size: 15px;
67
- line-height: 1.4;
68
- color: #000;
69
- font-weight: bold;
70
- display: inline-block;
71
- vertical-align: middle;
72
- }
73
- .saswp-str-rtng .saswp-rvw-str{
74
- display: inline-block;
75
- vertical-align: middle;
76
- padding-left: 10px;
77
- width: auto;
78
- }
79
- .widget-area .saswp-str-rtng .saswp-rvw-str{padding:10px 0px 0px 0px;}
80
- .saswp-rv-cnt p{
81
- font-size: 16px;
82
- line-height: 1.6;
83
- color: #000;
84
- margin: 10px 0px 0px 0px;
85
- }
86
- .saswp-rv-img img{
87
- max-width:100px;
88
- border-radius: 100%;
89
- }
90
- .widget-area .saswp-rv-img img{max-width:50px;}
91
- .widget-area .saswp-glg-review-body {
92
- display: inline-block;
93
- width:100%;
94
- }
95
- .widget-area .saswp-rv-img{
96
- width:60px;
97
- float:left;
98
- }
99
-
100
- @media(max-width:767px){
101
- .saswp-glg-review-body {
102
- grid-template-columns: 50px 1fr;
103
- }
104
- .saswp-rv-img img{
105
- max-width:50px;
106
- }
107
- }
108
-
109
  /** Widgest Reviews CSS **/
110
  .widget .saswp-glg-review-body{
111
  display: inline-block;
@@ -401,12 +293,11 @@ body .saswp-r, body .saswp-r p{
401
  .saswp-r3 ul{
402
  padding:0px;
403
  display:grid;
404
- grid-template-columns:190px 190px 190px 190px;
405
  grid-gap: 30px;
406
  list-style-type:none;
407
  margin:0;
408
- justify-content: center;
409
- /*overflow-x: scroll;*/
410
  }
411
 
412
  .saswp-r3 li{
@@ -531,11 +422,7 @@ body .saswp-r, body .saswp-r p{
531
  border-radius: 10px 0px 0px 10px;
532
  top: 0px;
533
  }
534
- .saswp-r5-rng{
535
- flex:1 0 60%;
536
- padding-left: 15px;
537
- }
538
- .saswp-r5-lg{
539
  width: 80px;
540
  height: 100%;
541
  border-right: 1px solid #ddd;
@@ -546,6 +433,10 @@ body .saswp-r, body .saswp-r p{
546
  align-items: center;
547
  border-radius: 12px 0px 0px 12px;
548
  }
 
 
 
 
549
  .saswp-r5-txrng{
550
  font-size: 12px;
551
  line-height: 1.2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /** Widgest Reviews CSS **/
2
  .widget .saswp-glg-review-body{
3
  display: inline-block;
293
  .saswp-r3 ul{
294
  padding:0px;
295
  display:grid;
296
+ grid-template-columns:1fr 1fr 1fr 1fr;
297
  grid-gap: 30px;
298
  list-style-type:none;
299
  margin:0;
300
+ justify-content: center;
 
301
  }
302
 
303
  .saswp-r3 li{
422
  border-radius: 10px 0px 0px 10px;
423
  top: 0px;
424
  }
425
+ .saswp-r5-r .saswp-r5-lg{
 
 
 
 
426
  width: 80px;
427
  height: 100%;
428
  border-right: 1px solid #ddd;
433
  align-items: center;
434
  border-radius: 12px 0px 0px 12px;
435
  }
436
+ .saswp-r5-r .saswp-r5-rng {
437
+ flex: 1 0 60%;
438
+ padding-left: 15px;
439
+ }
440
  .saswp-r5-txrng{
441
  font-size: 12px;
442
  line-height: 1.2;
admin_section/css/collection-front.min.css CHANGED
@@ -1 +1 @@
1
- .saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.widget-area .saswp-str-rtng .saswp-rvw-str{padding:10px 0 0 0}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.widget-area .saswp-rv-img img{max-width:50px}.widget-area .saswp-glg-review-body{display:inline-block;width:100%}.widget-area .saswp-rv-img{width:60px;float:left}@media(max-width:767px){.saswp-glg-review-body{grid-template-columns:50px 1fr}.saswp-rv-img img{max-width:50px}}.widget .saswp-glg-review-body{display:inline-block;width:100%}.widget .saswp-rv-img{margin-bottom:12px}.widget .saswp-rv-img img{max-width:50px}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap;margin-top:40px}.saswp-collection-preview{flex:1 0 70%;margin-right:20px}.saswp-collection-settings{flex:1 0 25%;background:#fff;padding-bottom:12px;height:100%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-collection-preview-table{width:100%}.saswp-collection-preview-table td{width:30%}.saswp-platform-added-list{display:block;width:100%}body .saswp-r,body .saswp-r p{font-family:sans-serif}.saswp-r1{margin-bottom:50px}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative;font-family:sans-serif}.saswp-rc .saswp-rc-lg{position:absolute;right:0}.saswp-r1-aimg img{float:left;max-width:56px;min-height:56px;max-height:56px;margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:20px;height:20px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-rc-nm{width:100%;line-height:1.2}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-rc-cnt p{margin:0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings ul{margin:0;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;width:100%;grid-gap:0 5px;align-items:center;color:#666}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:all .5s ease-in-out 0s;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input{width:100%}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:100px 100px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden}.saswp-collection-settings a.saswp-add-to-collection{text-align:center}.wp-core-ui a.button.saswp-remove-platform{background:#ccc;border:none;line-height:22px;width:22px;padding:0;font-family:sans-serif;border-radius:100px;min-height:22px;max-height:22px;text-align:center;font-size:10px;margin-left:10px}.cancel-btn{align-items:center;display:flex;justify-content:flex-end;width:100%;margin-top:8px}.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:normal 20px/1 dashicons;speak:none;display:block;position:absolute;right:0;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-collection-settings .button-primary{width:120px;text-align:center;margin:10px auto 0 auto;display:inherit}.saswp-collection-shortcode{color:#555;margin-top:10px;text-align:center}.saswp-r3{margin-bottom:20px}.saswp-r3 ul{padding:0;display:grid;grid-template-columns:190px 190px 190px 190px;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-r3 li{box-shadow:0 1px 12px rgba(0,0,0,.2);margin:0;border-radius:3px;font-family:sans-serif}.saswp-r3 li a{text-decoration:none}.saswp-r3-lg{background:#f8f8f8;display:flex;border-bottom:1px solid #e8e8e8;align-items:center;justify-content:center;width:100%;padding:6px 8px;box-sizing:border-box;border-radius:3px 3px 0 0}.saswp-r3-lg span img{width:18px;height:18px;margin-right:6px;border-radius:100px}.saswp-r3-lg span{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-lg{line-height:0;margin-right:10px}.saswp-r3-rtng{padding:13px 10px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:4px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r3 .saswp-rvw-str .df-clr,.saswp-r3 .saswp-rvw-str .half-str,.saswp-r3 .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r5{position:fixed;bottom:20px;left:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:all .3s ease-in;height:80px}.saswp-r5-r .saswp-str-rtng .saswp-rvw-str{padding-left:0;margin-bottom:6px;line-height:0;display:block}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px;border-radius:12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;left:20PX;border-radius:10px 0 0 10px;top:0}.saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:3px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-r5 a{text-decoration:none}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0;left:20px}.saswp-open-class.saswp-popup-btn{width:300px}#saswp-reviews-cntn{display:none}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn{width:100%}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px;margin:0;font-family:sans-serif}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b .saswp-r4-str{margin-right:10px}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-cnt h3{margin:10px 0 8px 0!important;font-size:18px;color:#333;font-weight:500}.saswp-rvw-str{position:relative;top:3px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-ttl-rvw{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li.saswp-ttl-rvw span{font-size:20px;color:#666}.saswp-ttl-rvw svg{width:22px;height:22px;margin:0 5px 0 0}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide{display:none}span.saswp-mines{line-height:0}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:10px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rc-a img{float:left;margin-right:10px;border-radius:100px;width:56px;height:56px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-rd2-warp .saswp-rc-cnt{height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-rc{padding:20px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-strs{text-align:center}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview{text-align:center}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative;height:280px}.saswp-r2-b{padding:20px 40px 20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.saswp-si .saswp-rc-cnt{margin:0}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:7px;height:7px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:12px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:7px;height:7px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);transform:rotate(-45deg);position:relative;top:11px;right:-10px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-sd .saswp-dots{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-sd .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:300px;margin-bottom:40px}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-sd{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}.saswp-onclick-show{display:none}.saswp-dp-dsg.saswp_hide{display:none}.entry .entry-content a{text-decoration:none!important}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;padding-bottom:0;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}.saswp-r1 ul{grid-template-columns:1fr!important}.saswp-r3 ul{grid-template-columns:190px 190px!important}.saswp-rc-nm{margin:0}.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:500px}.saswp-rc .saswp-rc-lg{right:0}}@media(max-width:550px){.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:320px}.saswp-r3 ul{grid-template-columns:190px!important}.saswp-open-class.saswp-popup-btn{width:93vw!important}}@media(max-width:320px){.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:295px}.saswp-r5{left:10px}}
1
+ .widget .saswp-glg-review-body{display:inline-block;width:100%}.widget .saswp-rv-img{margin-bottom:12px}.widget .saswp-rv-img img{max-width:50px}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap;margin-top:40px}.saswp-collection-preview{flex:1 0 70%;margin-right:20px}.saswp-collection-settings{flex:1 0 25%;background:#fff;padding-bottom:12px;height:100%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-collection-preview-table{width:100%}.saswp-collection-preview-table td{width:30%}.saswp-platform-added-list{display:block;width:100%}body .saswp-r,body .saswp-r p{font-family:sans-serif}.saswp-r1{margin-bottom:50px}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative;font-family:sans-serif}.saswp-rc .saswp-rc-lg{position:absolute;right:0}.saswp-r1-aimg img{float:left;max-width:56px;min-height:56px;max-height:56px;margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:20px;height:20px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-rc-nm{width:100%;line-height:1.2}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-rc-cnt p{margin:0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings ul{margin:0;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;width:100%;grid-gap:0 5px;align-items:center;color:#666}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:all .5s ease-in-out 0s;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input{width:100%}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:100px 100px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden}.saswp-collection-settings a.saswp-add-to-collection{text-align:center}.wp-core-ui a.button.saswp-remove-platform{background:#ccc;border:none;line-height:22px;width:22px;padding:0;font-family:sans-serif;border-radius:100px;min-height:22px;max-height:22px;text-align:center;font-size:10px;margin-left:10px}.cancel-btn{align-items:center;display:flex;justify-content:flex-end;width:100%;margin-top:8px}.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:normal 20px/1 dashicons;speak:none;display:block;position:absolute;right:0;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-collection-settings .button-primary{width:120px;text-align:center;margin:10px auto 0 auto;display:inherit}.saswp-collection-shortcode{color:#555;margin-top:10px;text-align:center}.saswp-r3{margin-bottom:20px}.saswp-r3 ul{padding:0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-r3 li{box-shadow:0 1px 12px rgba(0,0,0,.2);margin:0;border-radius:3px;font-family:sans-serif}.saswp-r3 li a{text-decoration:none}.saswp-r3-lg{background:#f8f8f8;display:flex;border-bottom:1px solid #e8e8e8;align-items:center;justify-content:center;width:100%;padding:6px 8px;box-sizing:border-box;border-radius:3px 3px 0 0}.saswp-r3-lg span img{width:18px;height:18px;margin-right:6px;border-radius:100px}.saswp-r3-lg span{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-lg{line-height:0;margin-right:10px}.saswp-r3-rtng{padding:13px 10px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:4px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r3 .saswp-rvw-str .df-clr,.saswp-r3 .saswp-rvw-str .half-str,.saswp-r3 .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r5{position:fixed;bottom:20px;left:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:all .3s ease-in;height:80px}.saswp-r5-r .saswp-str-rtng .saswp-rvw-str{padding-left:0;margin-bottom:6px;line-height:0;display:block}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px;border-radius:12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;left:20PX;border-radius:10px 0 0 10px;top:0}.saswp-r5-r .saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-r .saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:3px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-r5 a{text-decoration:none}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0;left:20px}.saswp-open-class.saswp-popup-btn{width:300px}#saswp-reviews-cntn{display:none}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn{width:100%}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px;margin:0;font-family:sans-serif}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b .saswp-r4-str{margin-right:10px}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-cnt h3{margin:10px 0 8px 0!important;font-size:18px;color:#333;font-weight:500}.saswp-rvw-str{position:relative;top:3px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-ttl-rvw{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li.saswp-ttl-rvw span{font-size:20px;color:#666}.saswp-ttl-rvw svg{width:22px;height:22px;margin:0 5px 0 0}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide{display:none}span.saswp-mines{line-height:0}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:10px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rc-a img{float:left;margin-right:10px;border-radius:100px;width:56px;height:56px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-rd2-warp .saswp-rc-cnt{height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-rc{padding:20px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-strs{text-align:center}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview{text-align:center}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative;height:280px}.saswp-r2-b{padding:20px 40px 20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.saswp-si .saswp-rc-cnt{margin:0}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:7px;height:7px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:12px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:7px;height:7px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);transform:rotate(-45deg);position:relative;top:11px;right:-10px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-sd .saswp-dots{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-sd .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:300px;margin-bottom:40px}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-sd{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}.saswp-onclick-show{display:none}.saswp-dp-dsg.saswp_hide{display:none}.entry .entry-content a{text-decoration:none!important}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;padding-bottom:0;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}.saswp-r1 ul{grid-template-columns:1fr!important}.saswp-r3 ul{grid-template-columns:190px 190px!important}.saswp-rc-nm{margin:0}.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:500px}.saswp-rc .saswp-rc-lg{right:0}}@media(max-width:550px){.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:320px}.saswp-r3 ul{grid-template-columns:190px!important}.saswp-open-class.saswp-popup-btn{width:93vw!important}}@media(max-width:320px){.saswp-cst .saswp-cs,.saswp-cst .saswp-sic .saswp-si{max-width:295px}.saswp-r5{left:10px}}
admin_section/css/main-style.css CHANGED
@@ -14,9 +14,9 @@ and open the template in the editor.
14
  display: block;
15
  }
16
  .saswp-item-list-div{
17
- display: flex;
18
- width: 100%;
19
- align-items: center;
20
  }
21
  .saswp-enable-modify-schema{
22
  padding-top: 10px;
@@ -670,8 +670,11 @@ Compatibility tab css ends
670
  }
671
 
672
  .saswp-global-selected{
 
 
673
  color: #000000;
674
  font-weight: 500;
 
675
  }
676
  #saswp-global-tabs a{
677
  cursor: pointer;
@@ -2328,4 +2331,27 @@ span.saswp-mines{
2328
  left: 0px;
2329
  line-height: 1;
2330
  top: 0px;
2331
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  display: block;
15
  }
16
  .saswp-item-list-div{
17
+ display: flex;
18
+ width: 100%;
19
+ align-items: center;
20
  }
21
  .saswp-enable-modify-schema{
22
  padding-top: 10px;
670
  }
671
 
672
  .saswp-global-selected{
673
+ border-bottom: 1px solid #f1f1f1;
674
+ background: #f1f1f1;
675
  color: #000000;
676
  font-weight: 500;
677
+ margin-bottom: -1px;
678
  }
679
  #saswp-global-tabs a{
680
  cursor: pointer;
2331
  left: 0px;
2332
  line-height: 1;
2333
  top: 0px;
2334
+ }
2335
+
2336
+ /* Add review thickbox csss starts here */
2337
+
2338
+ .saswp-thick-box-container{
2339
+ width: 580px;
2340
+ }
2341
+ #saswp-add-rv-manual{
2342
+ padding: 10px;
2343
+ }
2344
+ #saswp-add-rv-automatic{
2345
+ padding: 10px;
2346
+ box-sizing: border-box;
2347
+ width: 100%;
2348
+ overflow-y: scroll;
2349
+ height: 260px;
2350
+ }
2351
+ .saswp-add-rv-loop{
2352
+ padding-bottom: 10px;
2353
+ }
2354
+ .saswp-add-rv-title{
2355
+ padding: 10px;
2356
+ }
2357
+ /* Add review thickbox csss ends here */
admin_section/css/main-style.min.css CHANGED
@@ -1 +1 @@
1
- .saswp-static-container .spinner{padding:5px;float:none;margin:0 auto;display:block}.saswp-item-list-div{display:flex;width:100%;align-items:center}.saswp-enable-modify-schema{padding-top:10px;padding-left:10px}.saswp-enable-modify-schema strong{margin-right:10px}.saswp-item-list-div{display:flex;width:100%;align-items:center}#saswp_item_list_tags{width:100%;margin-left:10px}#saswp_item_list_custom{width:100%;margin-left:10px}.saswp_warning{color:#ef6c00!important}.saswp_hide{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-general table{margin-top:0}.saswp-general table td{padding:5px}.saswp-knowledge table th{width:auto;padding:0}.saswp-knowledge table{margin-top:0}.saswp-knowledge table td{padding:5px}.saswp-schema table th{width:auto;padding:0}.saswp-schema table{margin-top:0}.saswp-schema table td{padding:5px}.saswp-amp table th{width:auto;padding:0}.saswp-amp table{margin-top:0}.saswp-amp table td{padding:5px}.saswp-help table th{width:auto;padding:0}.saswp-support table th{width:auto;padding:0}.saswp-review table th{width:auto;padding:0}.saswp-help table{margin-top:0}.saswp-help table td{padding:5px}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-settings-list li div label{font-weight:600}.saswp-general h2{margin-bottom:0}.saswp-knowledge h2{margin-bottom:0}.saswp-schema h2{margin-bottom:0}.saswp-help h2{margin-bottom:0}.saswp-settings-form p.submit{margin-top:0}.saswp_qanda_p{font-weight:500}.saswp-display-none{display:none!important}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools table th{width:auto;padding:0}.saswp-tools table{margin-top:0}.saswp-tools table td{padding:5px}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-tools .saswp-knowledge-label{float:left}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.saswp-knowledge-base .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-knowledge-base .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds li{display:flex}.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-settings-first-div{width:92%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:30px;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style-type:circle;list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel a{text-decoration:none}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-archive-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-archive-div .saswp-knowledge-label{float:left;clear:both}.saswp-amp .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-amp .saswp-knowledge-label{float:left;clear:both}.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-review .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-compativility-div .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-label{float:left;clear:both}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box;padding-right:10px}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}.saswp-post-specific-wrapper{padding:10px}.saswp-tab a.selected{background-color:#ccc}.saswp-tab-links{display:block;background-color:inherit;color:#000;padding:6px 10px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:130px;overflow:hidden;margin-right:10px}.saswp-star-rating{cursor:pointer}.saswp-post-specific-wrapper select{width:100%}.saswp-review-tables{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=text]{width:180px}#sasw-review input[type=number]{width:180px}#saswp-review-item-enable{width:10px}.saswp-enable-review-on-post{padding-bottom:10px}.saswp-enable-review-on-post label{font-weight:500}.saswp-compatibility table th{width:auto;padding:0}.saswp-compatibility .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:10px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-compatibility .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:40px;height:22px;border:20px}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#5a6783;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#61bd3b;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #eee}.saswp-tab-nav .selected{background-color:#ccc}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.option-table-class{width:100%}.option-table-class tr td{padding:10px 10px 10px 10px}.option-table-class tr>td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table{width:100%}.saswp-custom-fields-table input{width:100%}.saswp-custom-fields-table tr td{padding:10px 10px 10px 10px}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{color:#000;font-weight:500}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-r5-rng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 8px 10px;width:70px;margin-right:20px;height:70px;float:left}.saswp-ele-ic img{width:80%;left:10%;position:relative;top:9%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-ele-tlt p{margin-top:10px}.saswp-sts-btn{box-sizing:border-box;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%;margin-top:5px}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px}.saswp-g-review-header div{margin-top:10px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;top:12px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-nav-menu-list label{padding-left:10px}.saswp-dynamic-properties{border:1px solid #aaa;margin-top:5px;margin-bottom:5px}.saswp-table-close{float:right;cursor:pointer}.saswp-table-create-onajax table td,.saswp-table-create-onajax table th{padding:5px}.saswp-table-create-onajax select{width:98%}.saswp-g-reviews-settings-table input{width:100%}.saswp-s-reviews-settings-table input{width:100%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none;box-sizing:border-box}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px 0;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-about-contact-page{width:75%;float:right}.saswp-about-contact-page-tooltip{float:left;clear:both}.saswp-quick-setup{float:left}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}.saswp-custom-fields-table .saswp_image_prev{max-width:62px!important}.saswp-custom-fields-table .saswp_prev_close{font-size:15px}.saswp-review-content-table td:nth-child(2){width:50%;float:left}.saswp-review-content-table input{width:100%}.saswp-review-content-table select{width:100%}.saswp-review-content-table textarea{width:100%}.saswp-social-links-table{width:100%}.saswp-social-links-table input{width:100%}.saswp-add-social-links{margin:3px!important}.saswp-social-links-table td{padding-left:0!important}#saswp-compatibility-tabs a{cursor:pointer}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap}.saswp-collection-lp{flex:1 0 68%;margin-right:20px;width:68%;background:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);padding-bottom:22px}.saswp-collection-settings{flex:1 0 27%;height:100%;width:28%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-collection-preview-table{width:100%}.saswp-collection-preview-table td{width:30%}.saswp-platform-added-list{display:inline-block;width:100%;margin-top:10px}.saswp-collection-title input{width:100%;padding:3px 8px;font-size:15px;line-height:2;height:1.7em;outline:0;margin:0 0 3px;background-color:#fff;color:#32373c}.saswp-collection-title{margin-bottom:10px;padding:10px;background:#f5f5f5;border-bottom:1px solid #ddd}.saswp-collection-preview{padding:0 30px}.saswp-r1{margin-bottom:50px}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative}.saswp-r1 .saswp-rc-lg{position:absolute;right:-5px}.saswp-r1-aimg img{float:left;max-width:56px;min-height:56px;max-height:56px;border-radius:100px}.saswp-rc-a>img{max-width:56px;min-height:56px;max-height:56px;margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:20px;height:20px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-rc-nm{width:100%;margin-left:10px}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-r2-strs{text-align:center}.saswp-rc-cnt p{margin:0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-collection-settings ul{margin:0;padding:0}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;width:100%;grid-gap:0 5px;align-items:center;color:#666}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px;max-height:30px;max-width:100%}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:all .5s ease-in-out 0s;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input{width:100%}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:180px 57px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden;border-top:1px solid #ddd}.saswp-collection-settings a.saswp-add-to-collection{text-align:center;height:30px;font-weight:400;position:relative;top:1px;line-height:27px}.wp-core-ui a.button.saswp-remove-platform{background:0 0;border:none;padding:0;margin-left:6px;min-height:0}.wp-core-ui a.button.saswp-remove-platform:hover{color:#c00}.wp-core-ui a.button.saswp-remove-platform:after{content:"\f153";display:block;font:normal 16px/20px dashicons}.cancel-btn{margin-right:10px;margin-bottom:5px;float:left;display:inline-flex}.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:normal 20px/1 dashicons;speak:none;display:block;position:absolute;color:#72777c;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-sv-btn{background:#f5f5f5;padding:8px 10px;text-align:right;width:100%;box-sizing:border-box}.saswp-collection-settings .button-primary{width:89px;margin:0;display:inline-block;padding:2px 0}.saswp-collection-shortcode{color:#555;margin-top:10px;padding:4px;background:#f1f1f1;display:inline-block;border:1px solid #ddd}.saswp-rd3-warp ul{padding:0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-rd3-warp li{box-shadow:0 2px 5px 0 rgba(0,0,0,.26);margin:0}.saswp-rd3-warp li a{text-decoration:none}.saswp-r3-lg{background:#ededed;display:flex;align-items:center;justify-content:center;width:100%;padding:6px 8px;box-sizing:border-box}.saswp-r3-lg span img{width:18px;height:18px;margin-right:10px}.saswp-r3-lg span{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-lg{line-height:0}.saswp-r3-rtng{padding:13px 10px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:10px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-rd3-warp .saswp-rvw-str .df-clr,.saswp-rd3-warp .saswp-rvw-str .half-str,.saswp-rd3-warp .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r5{position:fixed;bottom:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:all .3s ease-in;display:none}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r .saswp-r5-rng .saswp-rvw-str{padding-left:0;margin-bottom:3px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px}.saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;max-height:40px;left:20PX;border-radius:10px 0 0 10px;top:2px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:5px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-rng span.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-r5 a{text-decoration:none}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0}.saswp-open-class.saswp-popup-btn{width:300px}#saswp-reviews-cntn{display:none}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn{width:100%}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b .saswp-r4-str{margin-right:10px}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt h3{margin:10px 0 8px 0!important;font-size:18px;color:#333;font-weight:500}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px;color:#666}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide{display:none}span.saswp-mines{line-height:0}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:5px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-rd2-warp .saswp-rc-cnt{height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-rc{padding:20px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview{text-align:center}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative}.saswp-r2-b{padding:20px 40px 20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.saswp-si .saswp-rc-cnt{margin:0}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9;position:relative;top:10px}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:11px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);transform:rotate(-45deg);position:relative;top:11px;right:-9px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-slider-dots .saswp-dot{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-slider-dots .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:40%}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-slider-dots{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}.saswp-onclick-show{display:none}.saswp-dp-dsg.saswp_hide{display:none}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f}.saswp-hide{display:none}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block;margin:0}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f;border-radius:8px}.saswp-upgrade-pro.promo-cpn h2{color:#2e7d32;font-size:24px;text-align:center;margin:0 0 20px 0}.saswp-upgrade-pro.promo-cpn span{text-align:center;font-size:14px;display:inline-block;color:#777;padding:0 20px;box-sizing:border-box;line-height:1.4;font-weight:400}.saswp-promo{font-size:20px;margin-top:15px;width:100%;text-align:center}.saswp-upgrade-pro.promo-cpn .prm-txt{display:block;line-height:1}.saswp-upgrade-pro.promo-cpn .saswp-promo .prm-cpn{border:1px dashed #1b5e20;border-radius:100px;margin-top:5px;color:#388e3c;font-size:20px;padding:2px 15px 2px 15px}.saswp-upgrade-pro a{background:#43a047}.saswp-upgrade-pro{border-radius:8px}.saswp-settings-second-div a{text-decoration:none}.saswp-upgrade-pro ul li:before{content:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}
1
+ .saswp-static-container .spinner{padding:5px;float:none;margin:0 auto;display:block}.saswp-item-list-div{display:flex;width:100%;align-items:center}.saswp-enable-modify-schema{padding-top:10px;padding-left:10px}.saswp-enable-modify-schema strong{margin-right:10px}.saswp-item-list-div{display:flex;width:100%;align-items:center}#saswp_item_list_tags{width:100%;margin-left:10px}#saswp_item_list_custom{width:100%;margin-left:10px}.saswp_warning{color:#ef6c00!important}.saswp_hide{display:none}.saswp-general table th{width:auto;font-weight:600;padding:0}.saswp-general table{margin-top:0}.saswp-general table td{padding:5px}.saswp-knowledge table th{width:auto;padding:0}.saswp-knowledge table{margin-top:0}.saswp-knowledge table td{padding:5px}.saswp-schema table th{width:auto;padding:0}.saswp-schema table{margin-top:0}.saswp-schema table td{padding:5px}.saswp-amp table th{width:auto;padding:0}.saswp-amp table{margin-top:0}.saswp-amp table td{padding:5px}.saswp-help table th{width:auto;padding:0}.saswp-support table th{width:auto;padding:0}.saswp-review table th{width:auto;padding:0}.saswp-help table{margin-top:0}.saswp-help table td{padding:5px}.saswp-settings-list{display:inline-block;width:100%}.saswp-settings-list li{padding-left:0}.saswp-settings-list li div label{font-weight:600}.saswp-general h2{margin-bottom:0}.saswp-knowledge h2{margin-bottom:0}.saswp-schema h2{margin-bottom:0}.saswp-help h2{margin-bottom:0}.saswp-settings-form p.submit{margin-top:0}.saswp_qanda_p{font-weight:500}.saswp-display-none{display:none!important}.saswp-placement-groups{border:1px solid #e5e5e5}.saswp-query-success{color:#060}.saswp-query-error{color:#bf3322}.saswp-tools table th{width:auto;padding:0}.saswp-tools table{margin-top:0}.saswp-tools table td{padding:5px}.saswp-tools-field-title strong{padding-right:130px}.saswp-tools .saswp-tooltip{width:230px}.saswp-tools .saswp-knowledge-label{float:left}.saswp-error{color:red!important}.saswp-tooltip{position:relative;display:inline-block}.saswp-tooltip .saswp-tooltiptext{visibility:hidden;width:200px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:100%;left:50%;margin-left:-25px}.saswp-tooltiptext::after{content:"";position:absolute;top:100%;left:10%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.saswp-knowledge-base .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-knowledge-base .saswp-knowledge-field{width:75%;float:right}.saswp-social-fileds ul{display:grid;grid-template-columns:26.5% 1fr}.saswp-social-fileds li{display:flex}.saswp-social-fileds .saswp-knowledge-field{width:100%;margin-left:10px}.saswp-social-fileds .saswp-knowledge-field input{float:right;margin:inherit}.saswp-schema-type-fields .saswp-knowledge-label{width:200px;float:left;clear:both}.saswp-schema-type-fields .saswp-knowledge-field{width:75%;float:right}.saswp-settings-first-div{width:92%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:30px;margin-top:37px}.saswp-feedback-panel{height:200px;width:280px;background:#fff;position:relative}.saswp-start-quck-setup{position:relative;float:inherit;top:7px;left:15px}.saswp-feedback-panel ul{list-style-type:circle;list-style:decimal;padding-left:30px;font-size:15px}.saswp-feedback-panel a{text-decoration:none}.saswp-feedback-panel h2{text-align:center;padding-top:18px}.saswp-social-sharing-buttons{text-align:center;padding-top:20px}.saswp-facebook-share{background:#3b5998;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-right:5px}.saswp-social-sharing-buttons a{text-align:center;padding:8px}.twitter-share-button{background:#1b95e0!important;box-shadow:0 0 0 #1b95e0!important;color:#fff!important;line-height:20px!important;height:21px!important;border-radius:3px;margin-left:5px}.saswp-placement-button{padding:3px 10px;color:#0d0d0d;font-size:14px;border:1px solid #aaa;border-radius:2px;background:linear-gradient(#ededed,#fff)}.saswp-placement-table td{padding:5px 10px!important}.saswp-archive-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-archive-div .saswp-knowledge-label{float:left;clear:both}.saswp-amp .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-amp .saswp-knowledge-label{float:left;clear:both}.saswp-review .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-review .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-compativility-div .saswp-knowledge-label{float:left;clear:both}.saswp-compativility-div li{display:inline-flex}.saswp-seller-div .saswp-knowledge-label{float:left;clear:both}.saswp-seller-div .saswp-knowledge-field{float:left;width:70%}.saswp-post-specific-tab-wrapper{display:inline-block;width:25%;vertical-align:top;box-sizing:border-box;padding-right:10px}.saswp-post-specific-container{display:inline-block;width:calc(75% - 1px);border-left:1px solid #eee}.saswp-post-specific-wrapper{padding:10px}.saswp-tab a.selected{background-color:#ccc}.saswp-tab-links{display:block;background-color:inherit;color:#000;padding:6px 10px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:130px;overflow:hidden;margin-right:10px}.saswp-star-rating{cursor:pointer}.saswp-post-specific-wrapper select{width:100%}.saswp-review-tables{width:100%}.saswp-over-all-raring{float:right}.saswp-review-pros-and-cons{position:relative;clear:both}.saswp-review-pros-and-cons>div:first{padding-left:10px}.saswp-review-pros-and-cons>div{width:49%;display:inline-block}.saswp-review-pros-and-cons>div:nth-child(2){padding-left:12px}.saswp-wp-ediot-desc{margin-bottom:-23px;display:block}.saswp-review-description{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saswp-review-pros-and-cons{margin-top:40px;padding-top:10px;border-top:1px solid #eee}.saspw-review-item-list{margin-top:20px;border-top:1px solid #eee}.saswp-review-item-list-table{padding-bottom:10px}#sasw-review input[type=text]{width:180px}#sasw-review input[type=number]{width:180px}#saswp-review-item-enable{width:10px}.saswp-enable-review-on-post{padding-bottom:10px}.saswp-enable-review-on-post label{font-weight:500}.saswp-compatibility table th{width:auto;padding:0}.saswp-compatibility .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-label{float:left;clear:both}.saswp-tools .saswp-knowledge-field{float:right;width:69%;padding-bottom:10px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp_image_thumbnail{padding-top:5px;display:inline-block}.saswp-compatibility .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-job-posting-note,.saswp-schem-type-note{color:#d2691e}.saswp-custom-fields-name{border:1px solid #aaa;border-radius:4px}.saswp-option-table-class p{margin:auto;font-style:italic;color:#666}.saswp-switch{position:relative;display:inline-block;width:40px;height:22px;border:20px}.saswp-switch input{opacity:0;width:0;height:0}.saswp-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#5a6783;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:15px;width:15px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#61bd3b;border-radius:30px}input:focus+.saswp-slider{box-shadow:0 0 1px #2196f3}input:checked+.saswp-slider:before{transform:translateX(15px)}.saswp-slider.saswp-round{border-radius:34px}.saswp-slider.saswp-round:before{border-radius:50%}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #eee}.saswp-tab-nav .selected{background-color:#ccc}.saswp-single-post-restore .saswp-switch{height:28px}.saswp-single-post-restore .saswp-slider:before{height:20px}.option-table-class{width:100%}.option-table-class tr td{padding:10px 10px 10px 10px}.option-table-class tr>td{width:30%}.option-table-class tr td:last-child{width:60%}.saswp-custom-fields-table{width:100%}.saswp-custom-fields-table input{width:100%}.saswp-custom-fields-table tr td{padding:10px 10px 10px 10px}.saswp-custom-fields-table td{width:30%;vertical-align:top}.saswp-option-table-class input[type=text],.saswp-option-table-class select{width:100%}.saswp-paywall-table-class input[type=text],.saswp-paywall-table-class select{width:100%}.saswp-email_schema table th{width:auto;padding:0}.saswp-email_schema .saswp-knowledge-label{float:left;clear:both}.saswp-email_schema .saswp-knowledge-field{float:right;width:75%;padding-bottom:10px}.saswp-add-on-plugin label{margin-top:10px}.saswp-add-on-plugin span{width:250px;display:inline-block}.saswp-knowledge-label label[for=saswp_search_box_schema_checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-booking-checkbox]{padding-left:10px}.saswp-knowledge-label label[for=saswp-woocommerce-membership-checkbox]{padding-left:10px}.saswp-global-selected{border-bottom:1px solid #f1f1f1;background:#f1f1f1;color:#000;font-weight:500;margin-bottom:-1px}#saswp-global-tabs a{cursor:pointer}#saswp-global-tabs{padding-left:5px}#saswp-tools-tabs a{cursor:pointer}#saswp-review-tabs a{cursor:pointer}#saswp-tools-tabs{padding-left:5px}.saswp-need-help{padding-left:60px}.saswp-heading{display:inline-flex;align-items:baseline}.saswp-heading h2{margin-bottom:0}.saswp-view-docs a{margin-right:5px!important;margin-top:10px!important;float:right}.saswp-tabs .nav-tab{margin-left:4px}.saswp-panel{padding:7px 18px;background-color:#fff;box-shadow:0 0 20px 1px #d2cccc}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-input-fields select{width:100%}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-str{display:inline-block;width:100%;vertical-align:middle}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-r5-rng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.saswp-premium_features table th,.saswp-services table th{width:auto;padding:0}.saswp-features-blocks{display:inline-grid;grid-template-columns:1fr 1fr;grid-gap:20px}.saswp-features-blocks li{background:#fff;padding:25px;border:1px solid #d8d8d8}.saswp-features-blocks li a{text-decoration:none}.saswp-ele-ic{border-radius:256px;display:inline-block;padding:8px 10px 8px 10px;width:70px;margin-right:20px;height:70px;float:left}.saswp-ele-ic img{width:80%;left:10%;position:relative;top:9%}.saswp-ele-1{background:#96588a}.saswp-ele-2{background:#00a97e}.saswp-ele-3{background:#cacaca}.saswp-ele-4{background:#9c56cc}.saswp-ele-tlt h3{margin:0;font-size:18px;line-height:1.4}.saswp-ele-tlt p{margin-top:10px}.saswp-sts-btn{box-sizing:border-box;height:52px;margin-top:20px;padding:6px 15px;border:1px solid #e5e5e5;border-radius:3px;display:flex;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff}.form-wrap .saswp-sts-txt{font-size:16px;color:#000}.saswp-sts-txt span{color:#bebfc0;padding-left:5px}.saswp_review_platform .saswp-g-plus{float:left}.saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%;margin-top:5px}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{max-width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px}.saswp-g-review-header div{margin-top:10px}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp_image_prev{max-width:200px;max-height:200px;float:left;padding-left:2px}.saswp_prev_close{position:relative;width:30px;height:30px;top:12px;font-size:20px;top:-5px;text-decoration:none}.saswp-add-custom-schema-div{margin-top:10px;border-top:1px solid #eee;padding-top:5px}.saswp-nav-menu-list label{padding-left:10px}.saswp-dynamic-properties{border:1px solid #aaa;margin-top:5px;margin-bottom:5px}.saswp-table-close{float:right;cursor:pointer}.saswp-table-create-onajax table td,.saswp-table-create-onajax table th{padding:5px}.saswp-table-create-onajax select{width:98%}.saswp-g-reviews-settings-table input{width:100%}.saswp-s-reviews-settings-table input{width:100%}.saswp_rv_module_pro_notice{border:1px solid #d8d8d8;background:#fff}.saswp-settings-list .saswp-rev-mod{width:100%;display:inline-block;margin-top:20px}.saswp-rev-mod .saswp-knowledge-label{width:100%;display:inline-block;padding:10px 16px;font-weight:600;font-size:16px;color:#333;background:#f9f9f9;border:1px solid #d8d8d8;border-bottom:none;box-sizing:border-box}.saswp-rev-mod .saswp-knowledge-field{width:100%;display:inline-block}.saswp-rev-mod .saswp_rv_module_pro_notice{padding:20px}.saswp_cmpny_lst{width:100%;display:inline-block;margin-top:30px}.saswp_rv_module_pro_notice ul{margin:15px 0 20px 0;width:100%;display:inline-grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}.saswp_rv_module_pro_notice ul li{position:relative;font-size:15px;line-height:1.5;color:#444;margin:0}.saswp_rv_module_pro_notice ul li span{padding-left:3px}.saswp_rv_module_pro_notice h2{text-align:center;font-size:31px}.saswp_rv_module_pro_notice .saswp_desc{text-align:center;font-size:18px;font-style:normal;color:#000}.saswp_rv_module_pro_notice .saswp_desc a{font-style:italic}.saswp_rv_module_pro_notice .saswp_lst{color:grey;font-family:georgia;font-style:italic;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice .saswp_avlbl{color:#2a902e;font-family:georgia;font-style:italic;font-size:15px;font-weight:600}.saswp_rv_module_pro_notice ul li img{width:20px;height:20px;position:relative;top:4px}.saswp-rev-btn{width:100%;display:inline-block;margin-top:20px;text-align:center}.saswp-rev-btn span{display:block;font-size:13px;margin-bottom:15px}.saswp-rev-btn a{padding:12px 18px;display:inline-block;text-decoration:none;border-radius:5px;background:#0085ba;color:#fff;font-weight:600;font-size:18px}.select2-container{width:100%!important}.saswp-schema-modify-section{margin-top:15px;border-top:1px solid #eee;padding-top:15px}.saswp-custom-meta-list{border:1px solid #aaa;border-radius:4px}.saswp-custom-fields-table tr td:nth-child(3n+3) input{border:1px solid #aaa;border-radius:4px}.updated.notice p{display:flex;width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{display:inline-block;cursor:pointer}.saswp-feedback-remindme:after{content:",";display:inline-block;margin-right:5px}a.saswp-revws-lnk{display:inline-block;background:#0085ba;padding:12px 20px;color:#fff;text-decoration:none;border-radius:3px;margin-left:20px;font-size:14px;line-height:.6}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-about-contact-page{width:75%;float:right}.saswp-about-contact-page-tooltip{float:left;clear:both}.saswp-quick-setup{float:left}.saswp_add_schema_fields_on_fly{margin-bottom:5px!important}.saswp-custom-fields-table .saswp_image_prev{max-width:62px!important}.saswp-custom-fields-table .saswp_prev_close{font-size:15px}.saswp-review-content-table td:nth-child(2){width:50%;float:left}.saswp-review-content-table input{width:100%}.saswp-review-content-table select{width:100%}.saswp-review-content-table textarea{width:100%}.saswp-social-links-table{width:100%}.saswp-social-links-table input{width:100%}.saswp-add-social-links{margin:3px!important}.saswp-social-links-table td{padding-left:0!important}#saswp-compatibility-tabs a{cursor:pointer}.saswp-collection-body{width:100%;display:flex;flex-wrap:wrap}.saswp-collection-lp{flex:1 0 68%;margin-right:20px;width:68%;background:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);padding-bottom:22px}.saswp-collection-settings{flex:1 0 27%;height:100%;width:28%}.saswp-collection-container{margin-top:60px;width:100%;display:inline-block;padding-right:20px;box-sizing:border-box}.saswp-collection-preview-table{width:100%}.saswp-collection-preview-table td{width:30%}.saswp-platform-added-list{display:inline-block;width:100%;margin-top:10px}.saswp-collection-title input{width:100%;padding:3px 8px;font-size:15px;line-height:2;height:1.7em;outline:0;margin:0 0 3px;background-color:#fff;color:#32373c}.saswp-collection-title{margin-bottom:10px;padding:10px;background:#f5f5f5;border-bottom:1px solid #ddd}.saswp-collection-preview{padding:0 30px}.saswp-r1{margin-bottom:50px}.saswp-r1 ul{padding:0;list-style-type:none;display:grid;width:100%;grid-template-columns:1fr 1fr 1fr;grid-gap:15px;margin:0}.saswp-r1 li{padding:20px;position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px;margin:0}.saswp-rc{display:flex;width:100%;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;position:relative}.saswp-r1 .saswp-rc-lg{position:absolute;right:-5px}.saswp-r1-aimg img{float:left;max-width:56px;min-height:56px;max-height:56px;border-radius:100px}.saswp-rc-a>img{max-width:56px;min-height:56px;max-height:56px;margin-right:10px;border-radius:100px}.saswp-rc-lg img{width:20px;height:20px;border-radius:100px}.saswp-rc-nm a{text-decoration:none;color:#427fed;font-size:16px;font-weight:600;display:inline-block;line-height:1.1;letter-spacing:0;width:80%}.saswp-rc-dt{margin-top:5px;font-size:12px;line-height:1.2;color:#999;display:block}.saswp-rc-a{flex:1 0 85%;display:flex;justify-content:flex-start}.saswp-rc-nm{width:100%;margin-left:10px}.saswp-rc-cnt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-r2-strs{text-align:center}.saswp-rc-cnt p{margin:0}.saswp-rc-cnt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rc-cnt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rc-cnt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px;border-radius:4px}.saswp-collection-settings{border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04)}.saswp-collection-settings ul{margin:0;padding:0}.saswp-collection-settings ul li{border-bottom:1px solid #ddd;margin:0;position:relative}.saswp-dp-dsg{display:inline-grid;grid-template-columns:1fr 2fr;width:100%;grid-gap:0 5px;align-items:center;color:#666}.saswp-dp-dtm{margin-top:13px}.saswp-slider-display{margin-top:15px}.wp-admin .saswp-collection-settings select{margin:0;min-height:30px;max-height:30px;max-width:100%}.saswp-slider-display span{width:30%;display:inline-block}.saswp-collection-settings ul li a{padding:12px 15px;background:#fff;color:#23282d;cursor:pointer;width:100%;border:none;text-align:left;font-size:14px;line-height:1.5;font-weight:600;transition:all .5s ease-in-out 0s;display:block;box-sizing:border-box;position:relative}.saswp-collection-settings ul li input{width:100%}.saswp-collection-settings ul li input[type=checkbox]{width:16px}.saswp-collection-settings ul li a.active,.saswp-collection-settings ul li a:hover{background:#f5f5f5}.saswp-accordion.active+.saswp-accordion-panel{border-top:1px solid #ddd}.saswp-plf-lst-rv-cnt{display:inline-grid;width:100%;flex-wrap:wrap;grid-template-columns:180px 57px 1fr;grid-gap:5px}.saswp-accordion-panel{padding:15px 18px;display:none;background-color:#fff;overflow:hidden;border-top:1px solid #ddd}.saswp-collection-settings a.saswp-add-to-collection{text-align:center;height:30px;font-weight:400;position:relative;top:1px;line-height:27px}.wp-core-ui a.button.saswp-remove-platform{background:0 0;border:none;padding:0;margin-left:6px;min-height:0}.wp-core-ui a.button.saswp-remove-platform:hover{color:#c00}.wp-core-ui a.button.saswp-remove-platform:after{content:"\f153";display:block;font:normal 16px/20px dashicons}.cancel-btn{margin-right:10px;margin-bottom:5px;float:left;display:inline-flex}.wp-admin .saswp-accordion-panel select.saswp-collection-desing{width:100%}.saswp-slider-display.saswp-desing-options{margin-top:10px}.saswp-slider-display.saswp-desing-options span{margin-right:10px;display:inline-block}.saswp-collection-settings li a.saswp-accordion:after{content:"\f140";font:normal 20px/1 dashicons;speak:none;display:block;position:absolute;color:#72777c;top:13px;right:18px}.saswp-collection-settings li a.saswp-accordion.active:after{content:"\f142";top:13px}.saswp-sv-btn{background:#f5f5f5;padding:8px 10px;text-align:right;width:100%;box-sizing:border-box}.saswp-collection-settings .button-primary{width:89px;margin:0;display:inline-block;padding:2px 0}.saswp-collection-shortcode{color:#555;margin-top:10px;padding:4px;background:#f1f1f1;display:inline-block;border:1px solid #ddd}.saswp-rd3-warp ul{padding:0;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:30px;list-style-type:none;margin:0;justify-content:center}.saswp-rd3-warp li{box-shadow:0 2px 5px 0 rgba(0,0,0,.26);margin:0}.saswp-rd3-warp li a{text-decoration:none}.saswp-r3-lg{background:#ededed;display:flex;align-items:center;justify-content:center;width:100%;padding:6px 8px;box-sizing:border-box}.saswp-r3-lg span img{width:18px;height:18px;margin-right:10px}.saswp-r3-lg span{line-height:0}.saswp-r3-lg .saswp-r3-tlt{font-size:12px;line-height:1.4;text-transform:uppercase;color:#555;font-weight:400}.saswp-lg{line-height:0}.saswp-r3-rtng{padding:13px 10px 10px 10px;background:#fff;border-radius:0 0 3px 3px;text-align:center}.saswp-r3-rtxt{display:flex;align-items:center;line-height:0;width:100%;margin-bottom:10px;justify-content:center}.saswp-r3-rtxt .saswp-r3-num{color:#23282d;margin-right:5px;font-size:22px;font-weight:500;position:relative;top:2px;word-break:normal}.saswp-rd3-warp .saswp-rvw-str .df-clr,.saswp-rd3-warp .saswp-rvw-str .half-str,.saswp-rd3-warp .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:22px;background-repeat:no-repeat;background-size:22px;margin-right:3px}.saswp-r3-brv{color:#666;font-size:13px;line-height:1}.saswp-r5{position:fixed;bottom:20px;width:calc(100% - 20px);max-width:325px;border-radius:12px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 0 8px 0 rgba(0,0,0,.05);transition:all .3s ease-in;display:none}.saswp-r5 .saswp-rvw-str .df-clr,.saswp-r5 .saswp-rvw-str .half-str,.saswp-r5 .saswp-rvw-str .str-ic{display:inline-block;width:23px;height:20px;background-repeat:no-repeat;background-size:20px}.saswp-r5-r .saswp-r5-rng .saswp-rvw-str{padding-left:0;margin-bottom:3px}.saswp-r5-r{display:flex;flex-wrap:wrap;width:100%;align-items:center;height:80px}.saswp-r5-rng{flex:1 0 60%;padding-left:15px}.saswp-r5-lg{width:80px;height:100%;border-right:1px solid #ddd;box-sizing:border-box;background:linear-gradient(to bottom,#fefefe 0,#f2f2f2 100%);position:relative;display:flex;align-items:center;border-radius:12px 0 0 12px}.saswp-r5-r .saswp-r5-lg span{border-radius:10px 0 0 10px}.saswp-r5-r .saswp-r5-lg img{position:relative;max-width:40px;max-height:40px;left:20PX;border-radius:10px 0 0 10px;top:2px}.saswp-r5-txrng{font-size:12px;line-height:1.2;color:#444;display:flex;margin-bottom:5px}.saswp-r5-txrng span{font-weight:600;color:#666;margin-right:5px}.saswp-r5-rng span.saswp-r5-dt{display:block;font-size:11px;color:#ababab;font-weight:400}.saswp-r5 a{text-decoration:none}.saswp-popup-btn{position:fixed;top:auto;bottom:0;font-family:Arial,sans-serif;z-index:9;box-shadow:0 20px 40px 8px rgba(0,0,0,.25);width:300px;background:#fff;border:none;padding:0}.saswp-open-class.saswp-popup-btn{width:300px}#saswp-reviews-cntn{display:none}#saswp-sticky-review .saswp-open-class #saswp-reviews-cntn{width:100%}.saswp-opn-cls-btn{display:flex;height:50px;justify-content:space-between;align-items:center;background:#fba306;width:100%;padding:0 15px;border-radius:4px 4px 0 0;cursor:pointer;box-sizing:border-box}.saswp-opn-cls-btn svg path{fill:#fff}.saswp-opn-cls-btn span{font-size:15px;font-weight:600;color:#fff}.saswp-onclick-hide,.saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.saswp-r4-info ul{list-style-type:none;padding:0;margin:0;text-align:left;height:350px;overflow-y:scroll}.saswp-r4-info ul li{border-bottom:1px solid #e4e4e4;padding:20px}.saswp-r4-b{display:flex;align-items:center;justify-content:flex-start;width:100%}.saswp-r4-b .saswp-r4-str{margin-right:10px}.saswp-r4-b span.saswp-r4-tx{font-size:14px;color:#444}.saswp-r4-b span.saswp-r4-nm:after{content:"-";display:inline-block;margin:0 10px}.saswp-r4-info .saswp-rvw-str .df-clr,.saswp-r4-info .saswp-rvw-str .half-str,.saswp-r4-info .saswp-rvw-str .str-ic{display:inline-block;width:22px;height:20px;background-repeat:no-repeat;background-size:18px}.saswp-r4-cnt h3{margin:10px 0 8px 0!important;font-size:18px;color:#333;font-weight:500}.saswp-r4-cnt p{font-size:13px;line-height:1.5;margin:0;color:#333}.saswp-r4-info ul li.saswp-r4-r{display:flex;width:100%;align-items:center;text-align:center;justify-content:center;box-sizing:border-box}.saswp-r4-info ul li span.saswp-r4-rnm{margin-left:10px;font-size:18px;color:#666}.btn .saswp-onclick-hide,.btn.saswp-open-class .saswp-onclick-show{display:flex;justify-content:space-between;width:100%}.btn .saswp-onclick-show,.btn.saswp-open-class .saswp-onclick-hide{display:none}span.saswp-mines{line-height:0}.saswp-mines:before{content:"";display:inline-block;width:20px;height:4px;background:#fff;position:relative;top:5px}.saswp-rd2-warp{width:100%;display:inline-block;margin-bottom:50px}.saswp-rd2-warp div{width:350px;margin-right:25px}.saswp-rd2-warp .saswp-rc-cnt{white-space:initial}.saswp-rd2-warp .saswp-r2-b{position:relative;color:#777;border:1px solid #ededed;background-color:#fafafa;border-radius:4px}.saswp-rd2-warp .saswp-rc-cnt{height:150px;margin:20px 20px 20px 40px}.saswp-rd2-warp .saswp-rc{padding:20px}.saswp-r2-b .saswp-r2-s{display:inline-block}.saswp-r2-b .saswp-rc-cnt p{display:inline}.saswp-r2-b .saswp-rc-lg{line-height:0;position:absolute;right:13px;top:13px;background:#fafafa}.saswp-r2-q svg{width:20px;fill:#bbb;position:absolute;height:30px;top:15px;left:12px}.saswp-rd2-warp .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.carousel-preview{text-align:center}.carousel-preview button{width:12px;height:12px;border-radius:100px;border:none;margin:0 5px;cursor:pointer}.carousel-preview button.saswp-active{background:#427fed}.saswp-cst .saswp-cs{width:100%;max-width:640px;margin:0 auto;overflow:hidden;position:relative}.saswp-r2-b{padding:20px 40px 20px 40px;background-color:#fafafa;position:relative;color:#777;border:1px solid #ededed;border-radius:4px;box-sizing:border-box}.saswp-cst .saswp-rc{padding:20px;box-sizing:border-box}.saswp-si .saswp-r2-b:before{position:absolute;bottom:-8px;left:35px;display:block;width:14px;height:14px;border:1px solid #ededed;border-top:none;border-left:none;background-color:#fafafa;content:"";-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.saswp-si .saswp-rc-cnt{margin:0}.saswp-cs .saswp-slider-controls{width:100%;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;z-index:9;position:relative;top:10px}.saswp-slider-controls a.saswp-slider-prev-btn{position:absolute;left:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-prev-btn:before{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);position:relative;top:11px;left:12px}.saswp-slider-controls a.saswp-slider-next-btn{position:absolute;right:10px;bottom:0;background:rgba(0,0,0,.5);line-height:0;border-radius:100px;width:30px;height:30px}.saswp-slider-controls a.saswp-slider-next-btn:after{content:"";display:inline-block;width:6px;height:6px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(135deg);transform:rotate(-45deg);position:relative;top:11px;right:-9px}.saswp-si .saswp-rc-lg img{width:25px;height:25px}.saswp-cs .saswp-slider-dots .saswp-dot{width:10px;height:10px;background:#ccc;transition:.15s ease-in-out;border-radius:8px;cursor:pointer;margin:0 12px}.saswp-cs .saswp-slider-dots .saswp-dot.saswp-active{background:#0071a1}.saswp-cst .saswp-sic .saswp-si{width:100vw;max-width:640px;display:block}.spinner.saswp-spinner{float:none;margin:0 auto;display:block}.saswp-cct .saswp-cs{width:100%;max-width:800px;margin:0 auto;overflow:hidden;position:relative}.saswp-cct .saswp-sic .saswp-si{width:100%;max-width:800px;display:flex}.saswp-cct .saswp-r2-sli{width:100%;margin-right:20px;max-width:40%}.saswp-cct .saswp-rc{padding:20px 10px;box-sizing:border-box}.saswp-cct .saswp-rc-cnt{height:120px}.saswp-cs .saswp-sic{display:flex;flex-wrap:wrap;height:auto;transition:transform .35s ease-in-out}.saswp-cs .saswp-slider-controls a{color:#333;text-decoration:none;transition:.15s ease-in-out}.saswp-cs .saswp-slider-controls a:hover{color:#888}.saswp-cs .saswp-slider-dots{width:100%;display:flex;justify-content:center;margin:0 auto;position:relative;top:-10px}.saswp-onclick-show{display:none}.saswp-dp-dsg.saswp_hide{display:none}@media(max-width:1200px){.saswp-plf-lst-rv-cnt{grid-template-columns:1fr}}@media(max-width:767px){.saswp-collection-lp{flex:1 0 100%;margin-right:0;width:100%}.saswp-collection-settings{flex:1 0 100%;height:100%;width:100%}.wp-admin .saswp-collection-settings select{max-width:100%}}.saswp-upgrade-pro{background:#fff;padding:25px;border:1px solid #d8d8d8;display:inline-block;margin-top:10px;width:81%}.saswp-upgrade-pro h2{font-size:20px;margin:0;color:#23282d;font-weight:600;text-align:center}.saswp-upgrade-pro ul{margin:25px 0 20px 0;display:inline-block}.saswp-upgrade-pro ul li{position:relative;padding-left:30px;font-size:14px;line-height:1.4;margin-bottom:10px}.saswp-upgrade-pro ul li:before{content:"";background-image:url(../images/check.png);background-repeat:no-repeat;background-size:20px;width:20px;height:20px;position:absolute;left:2px;top:2px}.saswp-upgrade-pro a{background:#d2150a;padding:10px 0;display:block;text-align:center;color:#fff;text-decoration:none;font-size:16px;font-weight:600;letter-spacing:1px;border-radius:5px}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f}.saswp-hide{display:none}.saswp-settings-second-div .saswp-upgrade-pro.promo-cpn{display:block;margin:0}.saswp-upgrade-pro.promo-cpn{border:1px solid #558b2f;border-radius:8px}.saswp-upgrade-pro.promo-cpn h2{color:#2e7d32;font-size:24px;text-align:center;margin:0 0 20px 0}.saswp-upgrade-pro.promo-cpn span{text-align:center;font-size:14px;display:inline-block;color:#777;padding:0 20px;box-sizing:border-box;line-height:1.4;font-weight:400}.saswp-promo{font-size:20px;margin-top:15px;width:100%;text-align:center}.saswp-upgrade-pro.promo-cpn .prm-txt{display:block;line-height:1}.saswp-upgrade-pro.promo-cpn .saswp-promo .prm-cpn{border:1px dashed #1b5e20;border-radius:100px;margin-top:5px;color:#388e3c;font-size:20px;padding:2px 15px 2px 15px}.saswp-upgrade-pro a{background:#43a047}.saswp-upgrade-pro{border-radius:8px}.saswp-settings-second-div a{text-decoration:none}.saswp-upgrade-pro ul li:before{content:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}.saswp-thick-box-container{width:580px}#saswp-add-rv-manual{padding:10px}#saswp-add-rv-automatic{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.saswp-add-rv-loop{padding-bottom:10px}.saswp-add-rv-title{padding:10px}
admin_section/css/review-form.css ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .saswp-form-fld{
2
+ display:inline-block;
3
+ margin-bottom: 25px;
4
+ width: 100%;
5
+ }
6
+ .saswp-form-fld span {
7
+ display: block;
8
+ font-size: 16px;
9
+ line-height: 1.2;
10
+ font-weight: 400;
11
+ margin: 0 0 5px 0;
12
+ }
13
+ .saswp-rating-front-div{
14
+ margin-bottom: 25px;
15
+ }
admin_section/css/review-form.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .saswp-form-fld{display:inline-block;margin-bottom:25px;width:100%}.saswp-form-fld span{display:block;font-size:16px;line-height:1.2;font-weight:400;margin:0 0 5px 0}.saswp-rating-front-div{margin-bottom:25px}
admin_section/css/saswp-style.css CHANGED
@@ -47,6 +47,9 @@
47
  font-size: 15px;
48
  width: 20px;
49
  height: 20px;
 
 
 
50
  }
51
  .saswp-g-plus img{
52
  width:100%;
@@ -117,10 +120,33 @@
117
  .widget .saswp-rv-img img {
118
  max-width: 50px;
119
  }
120
-
121
-
122
- /** Collection css starts here **/
123
-
124
-
125
-
126
- /** Collection css ends here **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  font-size: 15px;
48
  width: 20px;
49
  height: 20px;
50
+ position: absolute;
51
+ right: 0;
52
+ top:4px;
53
  }
54
  .saswp-g-plus img{
55
  width:100%;
120
  .widget .saswp-rv-img img {
121
  max-width: 50px;
122
  }
123
+ .saswp-rv-txt{
124
+ position: static;
125
+ height: 80px;
126
+ overflow-y: auto;
127
+ font-size: 14px;
128
+ line-height:1.6;
129
+ text-align: left;
130
+ padding: 0 2px 0 0;
131
+ margin: 10px 0 0;
132
+ }
133
+ .saswp-rv-txt p{
134
+ margin:0;
135
+ }
136
+ .saswp-rv-txt::-webkit-scrollbar {
137
+ width: 4px ;
138
+ display:inline-block;
139
+ }
140
+ .saswp-rv-txt::-webkit-scrollbar-thumb {
141
+ -webkit-border-radius: 10px ;
142
+ border-radius: 10px ;
143
+ background: #ccc ;
144
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) ;
145
+ }
146
+ .saswp-rv-txt::-webkit-scrollbar-track {
147
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
148
+ -webkit-border-radius: 4px;
149
+ }
150
+ .saswp-r5-rng{
151
+ position: relative;
152
+ }
admin_section/css/saswp-style.min.css CHANGED
@@ -1 +1 @@
1
- .saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px}.saswp-g-plus img{width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.widget-area .saswp-str-rtng .saswp-rvw-str{padding:10px 0 0 0}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.widget-area .saswp-rv-img img{max-width:50px}.widget-area .saswp-glg-review-body{display:inline-block;width:100%}.widget-area .saswp-rv-img{width:60px;float:left}@media(max-width:767px){.saswp-glg-review-body{grid-template-columns:50px 1fr}.saswp-rv-img img{max-width:50px}}.widget .saswp-glg-review-body{display:inline-block;width:100%}.widget .saswp-rv-img{margin-bottom:12px}.widget .saswp-rv-img img{max-width:50px}
1
+ .saswp-pc-wrap{background-color:#004f74;padding:15px 15px 15px 30px;color:#fff;display:inline-flex;width:100%;flex-wrap:wrap;margin-bottom:20px}.saswp-pc-wrap .saswp-lst span{font-size:18px;font-weight:500;margin-bottom:10px;display:inline-block;line-height:1.3}.saswp-pc-wrap .saswp-lst{flex:1 0 42%}.saswp-pc-wrap .saswp-lst ul{margin:0}.saswp-pc-wrap .saswp-lst p{list-style-type:none;font-size:15px;font-weight:lighter;line-height:1.2;margin-bottom:10px;position:relative;padding-left:20px;color:#eee}.saswp-pc-wrap .saswp-lst p:before{content:'';position:absolute;width:8px;height:8px;background-color:#ccc;left:0;top:6px;border-radius:10px}.sgl .saswp-rvw{width:100%;margin-bottom:34px;font-size:13px;border-bottom:1px solid #ededed}.saswp-rvw-hd span,.saswp-rvw-sm span{background-color:#222;color:#fff;display:inline-block;font-size:15px}.saswp-rvw-hd span{line-height:1.4;padding:8px 12px 6px;margin:26px 0}.saswp-rvw td{padding:7px 14px}.saswp-rvw td,.sgl table td{border:1px solid #ededed}.saswp-rvw tbody{width:100%}.saswp-rvw-sm span{padding:8px 12px 6px;margin-bottom:13px;position:relative;line-height:1.2}.saswp-rvw-fs{line-height:1.5;font-size:48px;font-weight:600;margin-bottom:5px}.saswp-rvw-ov .ovs{font-size:11px;font-weight:600}.sgl .saswp-rvw tr td{background:#fff;width:100%}.sgl .saswp-rvw tr:hover td{background-color:#fcfcfc}.saswp-rvw .saswp-rvw-sm{padding:21px 14px}.str-ic{font-size:18px;line-height:1.2}.saswp-rvw-str{display:inline-flex;width:100%}.saswp-rvw-str .df-clr,.saswp-rvw-str .half-str,.saswp-rvw-str .str-ic{display:inline-block;width:20px;height:16px;background-repeat:no-repeat}.saswp-rvw-ov{text-align:center}.saswp-rvw-str .half-str{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cGF0aCBkPSJNNDgyLjIwNywxODYuOTczbC0xNTkuNjk5LTMzLjcwNUwyNDEuMTA0LDExLjgwM2wtODEuNDA0LDE0MS40NjVMMCwxODYuOTczbDEwOS4zODgsMTIxLjEzNEw5Mi4wOTQsNDcwLjQwNGwxNDkuMDEtNjYuNiAgbDE0OS4wMSw2Ni42bC0xNy4yOTQtMTYyLjI5Nkw0ODIuMjA3LDE4Ni45NzN6IE0yNDEuMTA0LDM3MC45NDNWNzEuOTUzbDYyLjA5LDEwNy45TDQyNSwyMDUuNTYxbC04My40MzMsOTIuMzkzbDEzLjE5MSwxMjMuNzg4ICBMMjQxLjEwNCwzNzAuOTQzeiIgZmlsbD0iI2ZmZDcwMCIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K)}.saswp-rvw-str .str-ic{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiNmZmQ3MDAiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-rvw-str .df-clr{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA0ODIuMjA3IDQ4Mi4yMDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ4Mi4yMDcgNDgyLjIwNzsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiPgo8cG9seWdvbiBwb2ludHM9IjQ4Mi4yMDcsMTg2Ljk3MyAzMjIuNTA4LDE1My4yNjkgMjQxLjEwNCwxMS44MDMgMTU5LjY5OSwxNTMuMjY5IDAsMTg2Ljk3MyAxMDkuMzg4LDMwOC4xMDggOTIuMDk0LDQ3MC40MDQgICAyNDEuMTA0LDQwMy44MDMgMzkwLjExMyw0NzAuNDA0IDM3Mi44MTgsMzA4LjEwOCAiIGZpbGw9IiM2MzVlNjMiLz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==)}.saswp-g-review-header{margin-top:50px}.saswp-g-review-body{display:inline-grid;grid-template-columns:1fr 300px;grid-gap:30px;margin-top:30px;width:100%}.saswp-channel-list{margin-right:15px}.saswp-input-fields{display:inline-flex;align-items:center;margin-bottom:8px;width:100%}.saswp-input-fields label{width:130px}.saswp-panel h3{font-size:20px;line-height:1.4;color:#222;text-align:center;margin:10px 0 20px 0}.saswp-input-fields a.button-primary{margin-top:10px}.saswp-glg-review-body{display:grid;grid-template-columns:100px 1fr;grid-gap:20px;background:#fff;padding:20px;box-shadow:0 0 20px 1px #d2cccc;margin-bottom:30px}.saswp-g-plus{float:right;font-size:15px;width:20px;height:20px;position:absolute;right:0;top:4px}.saswp-g-plus img{width:100%}.saswp-rtng{padding-left:5px;font-size:14px}.saswp-pt-dt{font-size:12px;color:#999;font-weight:600;margin-top:5px;display:inline-block}.saswp-athr{font-size:15px;line-height:1.4;color:#000;font-weight:700;display:inline-block;vertical-align:middle}.saswp-str-rtng .saswp-rvw-str{display:inline-block;vertical-align:middle;padding-left:10px;width:auto}.widget-area .saswp-str-rtng .saswp-rvw-str{padding:10px 0 0 0}.saswp-rv-cnt p{font-size:16px;line-height:1.6;color:#000;margin:10px 0 0 0}.saswp-rv-img img{max-width:100px;border-radius:100%}.widget-area .saswp-rv-img img{max-width:50px}.widget-area .saswp-glg-review-body{display:inline-block;width:100%}.widget-area .saswp-rv-img{width:60px;float:left}@media(max-width:767px){.saswp-glg-review-body{grid-template-columns:50px 1fr}.saswp-rv-img img{max-width:50px}}.widget .saswp-glg-review-body{display:inline-block;width:100%}.widget .saswp-rv-img{margin-bottom:12px}.widget .saswp-rv-img img{max-width:50px}.saswp-rv-txt{position:static;height:80px;overflow-y:auto;font-size:14px;line-height:1.6;text-align:left;padding:0 2px 0 0;margin:10px 0 0}.saswp-rv-txt p{margin:0}.saswp-rv-txt::-webkit-scrollbar{width:4px;display:inline-block}.saswp-rv-txt::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:10px;background:#ccc;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}.saswp-rv-txt::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);-webkit-border-radius:4px}.saswp-r5-rng{position:relative}
admin_section/images/reviews_platform_icon/facebook-1-img.png DELETED
Binary file
admin_section/js/collection-front.js CHANGED
@@ -152,8 +152,7 @@ jQuery(document).ready(function($){
152
  function saswp_fomo_fade(elem) {
153
  if (i > elems.length - 1) {
154
  i = 0;
155
- }
156
- console.log(fomo_inverval);
157
  $(elem).fadeIn(300).delay(fomo_inverval*1000).fadeOut(300, function() {
158
  saswp_fomo_fade(elems[i++])
159
  });
152
  function saswp_fomo_fade(elem) {
153
  if (i > elems.length - 1) {
154
  i = 0;
155
+ }
 
156
  $(elem).fadeIn(300).delay(fomo_inverval*1000).fadeOut(300, function() {
157
  saswp_fomo_fade(elems[i++])
158
  });
admin_section/js/collection-front.min.js CHANGED
@@ -1 +1 @@
1
- function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),a=s.find(".saswp-sic");function e(){var s=0;jQuery(a).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),a.width(s)}function n(){if(jQuery(".saswp-si.saswp-active").length>0){var s=a.find(".saswp-si.saswp-active").offset().left-a.offset().left;a.css({transform:"translate( -"+s+"px, 0px)"})}}0==a.find(".saswp-si.saswp-active").length&&a.find(".saswp-si").first().addClass("saswp-active"),e(),n(),function(){var e=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length;for(i=0;i<n;i++)s.find(".saswp-sd").append("<div class='saswp-dot'></div>");s.find(".saswp-sd").find(".saswp-dot").eq(e).addClass("saswp-active")}(),jQuery(window).load(function(){e(),n()}),jQuery(window).resize(function(){e(),n()});var t=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),d=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");t.on("click",function(i){i.preventDefault(),function(){var i=a.find(".saswp-si.saswp-active").index(),e=0;e=i+1>a.find(".saswp-si").length-1?0:i+1;var n=a.find(".saswp-si").eq(e),t=a.offset().left,d=n.offset().left-t;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),n.addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").eq(e).addClass("saswp-active"),a.css({transform:"translate( -"+d+"px, 0px)"})}()}),d.on("click",function(i){i.preventDefault(),function(){var i=a.find(".saswp-si.saswp-active").index(),e=a.find(".saswp-si").length,n=0;n=i-1<0?e-1:i-1;var t=a.find(".saswp-si").eq(n),d=a.offset().left,p=t.offset().left-d;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),t.addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").eq(n).addClass("saswp-active"),a.css({transform:"translate( -"+p+"px, 0px)"})}()}),s.find(".saswp-sd").find(".saswp-dot").on("click",function(i){var e=jQuery(this).index(),n=a.find(".saswp-slider-item").eq(e).offset().left-a.offset().left;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),a.find(".saswp-si").eq(e).addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),a.css({transform:"translate( -"+n+"px, 0px)"})})})}jQuery(document).ready(function(s){saswpCollectionSlider();var a=jQuery("#saswp_fomo_interval").val(),i=s(".saswp-r5"),e=1;!function n(t){e>i.length-1&&(e=0);console.log(a);s(t).fadeIn(300).delay(1e3*a).fadeOut(300,function(){n(i[e++])})}(i[0]),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").hide(),s(".saswp-onclick-hide").css("display","flex"),s(".saswp-open-class").css("width","300px"))})});
1
+ function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),a=s.find(".saswp-sic");function e(){var s=0;jQuery(a).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),a.width(s)}function n(){if(jQuery(".saswp-si.saswp-active").length>0){var s=a.find(".saswp-si.saswp-active").offset().left-a.offset().left;a.css({transform:"translate( -"+s+"px, 0px)"})}}0==a.find(".saswp-si.saswp-active").length&&a.find(".saswp-si").first().addClass("saswp-active"),e(),n(),function(){var e=a.find(".saswp-si.saswp-active").index(),n=a.find(".saswp-si").length;for(i=0;i<n;i++)s.find(".saswp-sd").append("<div class='saswp-dot'></div>");s.find(".saswp-sd").find(".saswp-dot").eq(e).addClass("saswp-active")}(),jQuery(window).load(function(){e(),n()}),jQuery(window).resize(function(){e(),n()});var t=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),d=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");t.on("click",function(i){i.preventDefault(),function(){var i=a.find(".saswp-si.saswp-active").index(),e=0;e=i+1>a.find(".saswp-si").length-1?0:i+1;var n=a.find(".saswp-si").eq(e),t=a.offset().left,d=n.offset().left-t;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),n.addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").eq(e).addClass("saswp-active"),a.css({transform:"translate( -"+d+"px, 0px)"})}()}),d.on("click",function(i){i.preventDefault(),function(){var i=a.find(".saswp-si.saswp-active").index(),e=a.find(".saswp-si").length,n=0;n=i-1<0?e-1:i-1;var t=a.find(".saswp-si").eq(n),d=a.offset().left,p=t.offset().left-d;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),t.addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").eq(n).addClass("saswp-active"),a.css({transform:"translate( -"+p+"px, 0px)"})}()}),s.find(".saswp-sd").find(".saswp-dot").on("click",function(i){var e=jQuery(this).index(),n=a.find(".saswp-slider-item").eq(e).offset().left-a.offset().left;a.find(".saswp-si.saswp-active").removeClass("saswp-active"),a.find(".saswp-si").eq(e).addClass("saswp-active"),s.find(".saswp-sd").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),a.css({transform:"translate( -"+n+"px, 0px)"})})})}jQuery(document).ready(function(s){saswpCollectionSlider();var a=jQuery("#saswp_fomo_interval").val(),i=s(".saswp-r5"),e=1;!function n(t){e>i.length-1&&(e=0);s(t).fadeIn(300).delay(1e3*a).fadeOut(300,function(){n(i[e++])})}(i[0]),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").hide(),s(".saswp-onclick-hide").css("display","flex"),s(".saswp-open-class").css("width","300px"))})});
admin_section/js/functions-list.js CHANGED
@@ -0,0 +1,1209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var saswp_meta_list = [];
2
+ var saswp_meta_fields = [];
3
+ var saswp_meta_list_fields = [];
4
+ var saswp_taxonomy_term = [];
5
+ var saswp_collection = [];
6
+ var saswp_total_collection = [];
7
+ var saswp_coll_json = null;
8
+
9
+ function saswp_convert_datetostring(date_str){
10
+
11
+ var date_time = {};
12
+
13
+ if(date_str){
14
+
15
+ var date_string = new Date(date_str);
16
+
17
+ date_time = {
18
+ time : date_string.toLocaleTimeString(),
19
+ date : date_string.toLocaleDateString()
20
+ };
21
+ }else{
22
+ date_time = {
23
+ time : '',
24
+ date : ''
25
+ };
26
+ }
27
+
28
+ return date_time;
29
+
30
+ };
31
+
32
+ function saswp_taxonomy_term_html(taxonomy, field_name){
33
+
34
+ var html ='';
35
+ html += '<td>';
36
+ html += '<select name="saswp_taxonomy_term['+field_name+']">';
37
+ jQuery.each(taxonomy, function(key, value){
38
+ html += '<option value="'+key+'">'+value+'</option>';
39
+ });
40
+ html += '</select>';
41
+ html += '</td>';
42
+ html += '<td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
43
+
44
+ return html;
45
+
46
+ }
47
+
48
+ function saswp_enable_rating_review(){
49
+ var schema_type = "";
50
+ if(jQuery('select#schema_type option:selected').val()){
51
+ schema_type = jQuery('select#schema_type option:selected').val();
52
+ }
53
+ if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
54
+ schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
55
+ }
56
+
57
+ if(schema_type){
58
+ jQuery(".saswp-enable-rating-review-"+schema_type.toLowerCase()).change(function(){
59
+
60
+ if(jQuery(this).is(':checked')){
61
+ jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
62
+ }else{
63
+ jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
64
+ }
65
+
66
+ }).change();
67
+ }
68
+
69
+ }
70
+
71
+ function getParameterByName(name, url) {
72
+ if (!url){
73
+ url = window.location.href;
74
+ }
75
+ name = name.replace(/[\[\]]/g, "\\$&");
76
+ var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
77
+ results = regex.exec(url);
78
+ if (!results) return null;
79
+ if (!results[2]) return "";
80
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
81
+ }
82
+
83
+ function saswpCustomSelect2(){
84
+ if((saswp_localize_data.post_type == 'saswp' || saswp_localize_data.page_now =='saswp') && saswp_localize_data.page_now !='saswp_page_structured_data_options'){
85
+
86
+ jQuery('.saswp-custom-fields-select2').select2({
87
+ ajax: {
88
+ type: "POST",
89
+ url: ajaxurl, // AJAX URL is predefined in WordPress admin
90
+ dataType: 'json',
91
+ delay: 250, // delay in ms while typing when to perform a AJAX search
92
+ data: function (params) {
93
+ return {
94
+ saswp_security_nonce: saswp_localize_data.saswp_security_nonce,
95
+ q: params.term, // search query
96
+ action: 'saswp_get_custom_meta_fields' // AJAX action for admin-ajax.php
97
+ };
98
+ },
99
+ processResults: function( data ) {
100
+ return {
101
+ results: data
102
+ };
103
+ },
104
+ cache: true
105
+ },
106
+ minimumInputLength: 2 // the minimum of symbols to input before perform a search
107
+ });
108
+
109
+ }
110
+
111
+ }
112
+
113
+ function saswp_reviews_datepicker(){
114
+
115
+ jQuery('.saswp-reviews-datepicker-picker').datepicker({
116
+ dateFormat: "yy-mm-dd"
117
+ });
118
+ }
119
+
120
+ function saswp_schema_datepicker(){
121
+
122
+ jQuery('.saswp-datepicker-picker').datepicker({
123
+ dateFormat: "yy-mm-dd",
124
+ });
125
+
126
+ }
127
+
128
+ function saswp_schema_timepicker(){
129
+ jQuery('.saswp-timepicker').timepicker({ 'timeFormat': 'H:i:s'});
130
+ }
131
+
132
+
133
+ function saswp_item_reviewed_ajax(schema_type, current, manual = null){
134
+
135
+ var item = current.val();
136
+ var post_id = saswp_localize_data.post_id;
137
+ var schema_id = jQuery(current).attr('data-id');
138
+ var post_specific = jQuery(current).attr('post-specific');
139
+ var append_id = '';
140
+
141
+ if(manual == null){
142
+ append_id = jQuery("#saswp_specific_"+schema_id);
143
+ }else{
144
+ append_id = jQuery(".saswp-manual-modification");
145
+ }
146
+
147
+ jQuery.get(ajaxurl,
148
+ { action:"saswp_get_item_reviewed_fields",schema_type:schema_type,schema_id:schema_id, post_specific:post_specific ,item:item, post_id:post_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
149
+ function(response){
150
+
151
+ jQuery(append_id).find(".saswp-table-create-onajax").remove();
152
+ var onload_class = jQuery(append_id).find(".saswp-table-create-onload");
153
+
154
+ jQuery.each(onload_class, function(key, val){
155
+ if(key != 0){
156
+ jQuery(this).remove();
157
+ }
158
+
159
+ });
160
+ jQuery(append_id).append(response);
161
+ saswp_schema_datepicker();
162
+ saswp_schema_timepicker();
163
+
164
+ });
165
+
166
+ }
167
+
168
+ function saswp_item_reviewed_call(){
169
+
170
+ jQuery(".saswp-item-reviewed").change(function(e){
171
+ e.preventDefault();
172
+ var schema_type = "";
173
+
174
+ if(jQuery('select#schema_type option:selected').val()){
175
+ schema_type = jQuery('select#schema_type option:selected').val();
176
+ }
177
+ if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
178
+ schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
179
+ }
180
+
181
+ if(schema_type === 'Review'){
182
+ var current = jQuery(this);
183
+ saswp_item_reviewed_ajax(schema_type, current);
184
+
185
+ }
186
+
187
+
188
+ }).change();
189
+
190
+ }
191
+
192
+ function saswp_compatibliy_notes(current, id){
193
+
194
+ var plugin_name = id.replace('-checkbox','');
195
+ var text = jQuery("#"+plugin_name).next('p').text();
196
+
197
+ if (current.is(':checked') && text !=='') {
198
+ jQuery("#"+plugin_name).next('p').removeClass('saswp_hide');
199
+ }else{
200
+ if(jQuery("#"+plugin_name).next('p').attr('data-id') == 1){
201
+ jQuery("#"+plugin_name).next('p').text('This feature is only available in pro version');
202
+ }else{
203
+ jQuery("#"+plugin_name).next('p').addClass('saswp_hide');
204
+ }
205
+ }
206
+ }
207
+
208
+ function saswp_meta_list_html(current_fly, response, fields, f_name, id, tr){
209
+
210
+ var field_name = f_name;
211
+ if(field_name == null){
212
+ field_name = Object.keys(fields)[0];
213
+ }
214
+ var re_html = '';
215
+ re_html += '<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+field_name+']">';
216
+ jQuery.each(response, function(key,value){
217
+
218
+ re_html += '<optgroup label="'+value['label']+'">';
219
+
220
+ jQuery.each(value['meta-list'], function(key, value){
221
+ re_html += '<option value="'+key+'">'+value+'</option>';
222
+ });
223
+ re_html += '</optgroup>';
224
+
225
+ });
226
+ re_html += '</select>';
227
+
228
+ if(fields){
229
+
230
+ var schema_type = jQuery('select#schema_type option:selected').val();
231
+ var schema_subtype = '';
232
+
233
+ if(schema_type == 'Review'){
234
+ schema_subtype = jQuery('select.saswp-item-reivewed-list option:selected').val();
235
+ }
236
+
237
+ var html = '<tr>';
238
+ html += '<td>';
239
+ html += '<select class="saswp-custom-fields-name">';
240
+
241
+ if(schema_type == 'Review'){
242
+ html += '<optgroup label="Review">';
243
+ html += '<option value="saswp_review_name">Review Name</option>';
244
+ html += '<option value="saswp_review_description">Review Description</option>';
245
+ html += '<option value="saswp_review_author">Review Author</option>';
246
+ html += '<option value="saswp_review_author_url">Review Author Profile URL</option>';
247
+ html += '<option value="saswp_review_publisher">Review Publisher</option>';
248
+ html += '<option value="saswp_review_rating_value">Review Rating Value</option>';
249
+ html += '<option value="saswp_review_date_published">Review Published Date</option>';
250
+ html += '<option value="saswp_review_url">Review URL</option>';
251
+ html += '</optgroup>';
252
+
253
+ }
254
+
255
+ if(schema_type == 'Review'){
256
+ html += '<optgroup label="'+schema_subtype+'">';
257
+ }
258
+
259
+ jQuery.each(fields, function(key,value){
260
+ html += '<option value="'+key+'">'+value+'</option>';
261
+ });
262
+
263
+ if(schema_type == 'Review'){
264
+ html += '</optgroup>';
265
+ }
266
+
267
+ html += '</select>';
268
+ html += '</td>';
269
+ html += '<td>';
270
+ html += re_html;
271
+ html += '</td>';
272
+ html += '<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>';
273
+ html += '</tr>';
274
+ jQuery(".saswp-custom-fields-table").append(html);
275
+ if(current_fly != null){
276
+ current_fly.removeClass('updating-message');
277
+ }
278
+
279
+
280
+ }else{
281
+ jQuery(id).html(re_html);
282
+ if(current_fly != null){
283
+ current_fly.removeClass('updating-message');
284
+ }
285
+ }
286
+
287
+ }
288
+
289
+ function saswp_get_meta_list(current_fly, type, fields, id, fields_name, tr){
290
+ if (!saswp_meta_list[type]) {
291
+
292
+ jQuery.get(ajaxurl,
293
+ { action:"saswp_get_meta_list", saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
294
+ function(response){
295
+ saswp_meta_list[type] = response[type];
296
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
297
+
298
+ },'json');
299
+
300
+ }else{
301
+ saswp_meta_list_html(current_fly, saswp_meta_list[type], fields, fields_name, id, tr);
302
+ }
303
+
304
+ }
305
+
306
+ function saswp_get_post_specific_schema_fields(current_fly, index, meta_name, div_type, schema_id, fields_type){
307
+
308
+ if (!saswp_meta_fields[fields_type]) {
309
+
310
+ jQuery.get(ajaxurl,
311
+ { action:"saswp_get_schema_dynamic_fields_ajax",meta_name:meta_name, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
312
+ function(response){
313
+ saswp_meta_fields[fields_type] = response;
314
+ var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, response);
315
+
316
+ if(html){
317
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
318
+ saswp_schema_datepicker();
319
+ saswp_schema_timepicker();
320
+ current_fly.removeClass('updating-message');
321
+ }
322
+
323
+ },'json');
324
+
325
+ }else{
326
+
327
+ var html = saswp_fields_html_generator(index, schema_id, fields_type, div_type, saswp_meta_fields[fields_type]);
328
+
329
+ if(html){
330
+ jQuery('.saswp-'+div_type+'-section[data-id="'+schema_id+'"]').append(html);
331
+ saswp_schema_datepicker();
332
+ saswp_schema_timepicker();
333
+ current_fly.removeClass('updating-message');
334
+ }
335
+
336
+ }
337
+
338
+
339
+ }
340
+
341
+ function saswp_fields_html_generator(index, schema_id, fields_type, div_type, schema_fields){
342
+
343
+ var html = '';
344
+
345
+ html += '<div class="saswp-'+div_type+'-table-div saswp-dynamic-properties" data-id="'+index+'">'
346
+ + '<a class="saswp-table-close">X</a>'
347
+ + '<table class="form-table saswp-'+div_type+'-table">'
348
+
349
+ jQuery.each(schema_fields, function(eachindex, element){
350
+
351
+ var meta_class = "";
352
+ if(element.name == 'saswp_tvseries_season_published_date' || element.name == 'saswp_feed_element_date_created' || element.name == 'saswp_product_reviews_created_date'){
353
+ meta_class = "saswp-datepicker-picker";
354
+ }
355
+
356
+ switch(element.type) {
357
+
358
+ case "number":
359
+ case "text":
360
+
361
+ html += '<tr>'
362
+ + '<th>'+element.label+'</th><td><input class="'+meta_class+'" style="width:100%" type="'+element.type+'" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']"></td>'
363
+ + '</tr>';
364
+
365
+ break;
366
+
367
+ case "textarea":
368
+
369
+ html += '<tr>'
370
+ + '<th>'+element.label+'</th><td><textarea style="width: 100%" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']" rows="5"></textarea></td>'
371
+ + '</tr>';
372
+
373
+ break;
374
+ case "select":
375
+
376
+ var options_html = "";
377
+ jQuery.each(element.options, function(opt_index, opt_element){
378
+ options_html += '<option value="'+opt_index+'">'+opt_element+'</option>';
379
+ });
380
+
381
+ html += '<tr>'
382
+ + '<th>'+element.label+'</th>'
383
+ + '<td>'
384
+
385
+ + '<select id="'+element.name+'_'+index+'_'+schema_id+'" name="'+fields_type+schema_id+'['+index+']['+element.name+']">'
386
+ + options_html
387
+ + '</select>'
388
+
389
+ + '</td>'
390
+ + '</tr>';
391
+
392
+ break;
393
+
394
+ case "media":
395
+
396
+ html += '<tr>'
397
+ + '<th>'+element.label+'</th>'
398
+ + '<td>'
399
+ + '<fieldset>'
400
+ + '<input style="width:80%" type="text" id="'+element.name+'_'+index+'_'+schema_id+'" name="'+element.name+'_'+index+'_'+schema_id+'">'
401
+ + '<input type="hidden" data-id="'+element.name+'_'+index+'_'+schema_id+'_id" name="'+fields_type+schema_id+'['+index+']['+element.name+'_id]" id="'+element.name+'_'+index+'_'+schema_id+'_id">'
402
+ + '<input data-id="media" style="width: 19%" class="button" id="'+element.name+'_'+index+'_'+schema_id+'_button" name="'+element.name+'_'+index+'_'+schema_id+'_button" type="button" value="Upload">'
403
+ + '<div class="saswp_image_div_'+element.name+'_'+index+'_'+schema_id+'">'
404
+ + '</div>'
405
+ + '</fieldset>'
406
+ + '</td>'
407
+ + '</tr>';
408
+
409
+ break;
410
+ default:
411
+ // code block
412
+ }
413
+
414
+ });
415
+ html += '</table>'
416
+ + '</div>';
417
+
418
+ return html;
419
+
420
+ }
421
+
422
+ function saswp_create_total_collection(){
423
+
424
+ var platform_list = '';
425
+
426
+ saswp_total_collection = [];
427
+
428
+ for(var key in saswp_collection){
429
+
430
+ if(saswp_collection[key]){
431
+
432
+ jQuery.each(saswp_collection[key], function(index, value){
433
+
434
+ saswp_total_collection.push(value);
435
+
436
+ });
437
+
438
+ platform_list += saswp_function_added_platform(key, saswp_collection[key].length );
439
+ }
440
+
441
+ }
442
+ jQuery(".saswp-platform-added-list").html('');
443
+ jQuery(".saswp-platform-added-list").append(platform_list);
444
+
445
+ }
446
+
447
+ function saswp_create_rating_html_by_value(rating_val){
448
+
449
+
450
+ var starating = '';
451
+
452
+ starating += '<div class="saswp-rvw-str">';
453
+
454
+ for(var j=0; j<5; j++){
455
+
456
+ if(rating_val >j){
457
+
458
+ var explod = rating_val.split('.');
459
+
460
+ if(explod[1]){
461
+
462
+ if(j < explod[0]){
463
+
464
+ starating +='<span class="str-ic"></span>';
465
+
466
+ }else{
467
+
468
+ starating +='<span class="half-str"></span>';
469
+
470
+ }
471
+ }else{
472
+
473
+ starating +='<span class="str-ic"></span>';
474
+
475
+ }
476
+
477
+ } else{
478
+ starating +='<span class="df-clr"></span>';
479
+ }
480
+ }
481
+ starating += '</div>';
482
+
483
+ return starating;
484
+
485
+
486
+ }
487
+
488
+ function saswpChunkArray(myArray, chunk_size){
489
+
490
+ var contentArray = JSON.parse(JSON.stringify(myArray));
491
+ var results = [];
492
+ while (contentArray.length) {
493
+ results.push(contentArray.splice(0, chunk_size));
494
+ }
495
+
496
+ return results;
497
+ }
498
+
499
+ function saswp_function_added_platform(key, rvcount){
500
+
501
+ var platform_list = '';
502
+
503
+ platform_list += '<div class="cancel-btn">';
504
+ platform_list += '<span>'+jQuery("#saswp-plaftorm-list option[value="+key+"]").text()+'</span>';
505
+ platform_list += '<input type="hidden" name="saswp_platform_ids['+key+']" value="'+rvcount+'">';
506
+ platform_list += '<a platform-id="'+key+'" class="button button-default saswp-remove-platform"></a>';
507
+ platform_list += '</div>';
508
+
509
+ return platform_list;
510
+
511
+ }
512
+
513
+ function saswpCollectionSlider(){
514
+
515
+ jQuery(".saswp-cs").each( function(){
516
+
517
+ var $slider = jQuery(this),
518
+ $itemscontainer = $slider.find(".saswp-sic");
519
+
520
+ if ($itemscontainer.find(".saswp-si.saswp-active").length == 0){
521
+ $itemscontainer.find(".saswp-si").first().addClass("saswp-active");
522
+ }
523
+
524
+ function setWidth(){
525
+ var totalWidth = 0
526
+
527
+ jQuery($itemscontainer).find(".saswp-si").each( function(){
528
+ totalWidth += jQuery(this).outerWidth();
529
+ });
530
+
531
+ $itemscontainer.width(totalWidth);
532
+
533
+ }
534
+ function setTransform(){
535
+
536
+ if(jQuery(".saswp-si.saswp-active").length > 0){
537
+
538
+ var $activeItem = $itemscontainer.find(".saswp-si.saswp-active"),
539
+ activeItemOffset = $activeItem.offset().left,
540
+ itemsContainerOffset = $itemscontainer.offset().left,
541
+ totalOffset = activeItemOffset - itemsContainerOffset;
542
+
543
+ $itemscontainer.css({"transform": "translate( -"+totalOffset+"px, 0px)"})
544
+
545
+ }
546
+
547
+ }
548
+ function nextSlide(){
549
+ var activeItem = $itemscontainer.find(".saswp-si.saswp-active"),
550
+ activeItemIndex = activeItem.index(),
551
+ sliderItemTotal = $itemscontainer.find(".saswp-si").length,
552
+ nextSlide = 0;
553
+
554
+ if (activeItemIndex + 1 > sliderItemTotal - 1){
555
+ nextSlide = 0;
556
+ }else{
557
+ nextSlide = activeItemIndex + 1
558
+ }
559
+
560
+ var nextSlideSelect = $itemscontainer.find(".saswp-si").eq(nextSlide),
561
+ itemContainerOffset = $itemscontainer.offset().left,
562
+ totalOffset = nextSlideSelect.offset().left - itemContainerOffset
563
+
564
+ $itemscontainer.find(".saswp-si.saswp-active").removeClass("saswp-active");
565
+ nextSlideSelect.addClass("saswp-active");
566
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active")
567
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").eq(nextSlide).addClass("saswp-active");
568
+ $itemscontainer.css({"transform": "translate( -"+totalOffset+"px, 0px)"})
569
+
570
+ }
571
+ function prevSlide(){
572
+ var activeItem = $itemscontainer.find(".saswp-si.saswp-active"),
573
+ activeItemIndex = activeItem.index(),
574
+ sliderItemTotal = $itemscontainer.find(".saswp-si").length,
575
+ nextSlide = 0;
576
+
577
+ if (activeItemIndex - 1 < 0){
578
+ nextSlide = sliderItemTotal - 1;
579
+ }else{
580
+ nextSlide = activeItemIndex - 1;
581
+ }
582
+
583
+ var nextSlideSelect = $itemscontainer.find(".saswp-si").eq(nextSlide),
584
+ itemContainerOffset = $itemscontainer.offset().left,
585
+ totalOffset = nextSlideSelect.offset().left - itemContainerOffset
586
+
587
+ $itemscontainer.find(".saswp-si.saswp-active").removeClass("saswp-active");
588
+ nextSlideSelect.addClass("saswp-active");
589
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active")
590
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").eq(nextSlide).addClass("saswp-active");
591
+ $itemscontainer.css({"transform": "translate( -"+totalOffset+"px, 0px)"})
592
+
593
+ }
594
+ function makeDots(){
595
+ var activeItem = $itemscontainer.find(".saswp-si.saswp-active"),
596
+ activeItemIndex = activeItem.index(),
597
+ sliderItemTotal = $itemscontainer.find(".saswp-si").length;
598
+
599
+ for (i = 0; i < sliderItemTotal; i++){
600
+ $slider.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>")
601
+ }
602
+
603
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").eq(activeItemIndex).addClass("saswp-active")
604
+
605
+ }
606
+
607
+ setWidth();
608
+ setTransform();
609
+ makeDots();
610
+
611
+ jQuery(document).ready( function(){
612
+ setWidth();
613
+ setTransform();
614
+ });
615
+
616
+ jQuery(window).resize( function(){
617
+ setWidth();
618
+ setTransform();
619
+ });
620
+
621
+ var nextBtn = $slider.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),
622
+ prevBtn = $slider.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");
623
+
624
+ nextBtn.on('click', function(e){
625
+ e.preventDefault();
626
+ nextSlide();
627
+ });
628
+
629
+ prevBtn.on('click', function(e){
630
+ e.preventDefault();
631
+ prevSlide();
632
+ });
633
+
634
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").on('click', function(e){
635
+
636
+ var dotIndex = jQuery(this).index(),
637
+ totalOffset = $itemscontainer.find(".saswp-si").eq(dotIndex).offset().left - $itemscontainer.offset().left;
638
+
639
+ $itemscontainer.find(".saswp-si.saswp-active").removeClass("saswp-active");
640
+ $itemscontainer.find(".saswp-si").eq(dotIndex).addClass("saswp-active");
641
+ $slider.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active");
642
+ jQuery(this).addClass("saswp-active");
643
+
644
+ $itemscontainer.css({"transform": "translate( -"+totalOffset+"px, 0px)"})
645
+
646
+ });
647
+
648
+ });
649
+
650
+ }
651
+
652
+ function saswp_review_desing_for_slider(value){
653
+
654
+ var date_str = saswp_convert_datetostring(value.saswp_review_date);
655
+
656
+ var html = '';
657
+
658
+ html += '<div class="saswp-r2-sli">';
659
+ html += '<div class="saswp-r2-b">';
660
+ html += '<div class="saswp-r2-q">';
661
+ html += '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>';
662
+ html += '</div>';
663
+ html += '<div class="saswp-rc-cnt">';
664
+ html += '<p>';
665
+ html += value.saswp_review_text;
666
+ html += '</p>';
667
+ html += '</div>';
668
+ html += '<div class="saswp-r2-strs">';
669
+ html += '<span class="saswp-r2-s">';
670
+ html += saswp_create_rating_html_by_value(value.saswp_review_rating);
671
+ html += '</span>';
672
+ html += '</div>';
673
+ html += '</div>';
674
+ html += '<div class="saswp-rc">';
675
+ html += '<div class="saswp-rc-a">';
676
+ html += '<img src="'+value.saswp_reviewer_image+'"/>';
677
+ html += '<div class="saswp-rc-nm">';
678
+ html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
679
+ html += '<span class="saswp-rc-dt">'+date_str.date+'</span>';
680
+ html += '</div>';
681
+ html += '<div class="saswp-rc-lg">';
682
+ html += '<img src="'+value.saswp_review_platform_icon+'"/>';
683
+ html += '</div>';
684
+ html += '</div>';
685
+ html += '</div>';
686
+ html += '</div>';
687
+
688
+ return html;
689
+
690
+ }
691
+
692
+ function saswp_create_collection_slider(slider, arrow, dots){
693
+
694
+ var html = '';
695
+ if(saswp_total_collection.length > 0){
696
+
697
+ if(slider == 'slider'){
698
+ html += '<div class="saswp-cst">';
699
+ }else{
700
+ html += '<div class="saswp-cct">';
701
+ }
702
+
703
+ html += '<div class="saswp-cs">';
704
+ html += '<div class="saswp-sic">';
705
+
706
+ if(slider == 'slider'){
707
+
708
+ jQuery.each(saswp_total_collection, function(index, value){
709
+
710
+ html += '<div class="saswp-si">';
711
+
712
+ html += saswp_review_desing_for_slider(value);
713
+
714
+ html += '</div>';
715
+
716
+ });
717
+
718
+ }
719
+
720
+ if(slider == 'carousel'){
721
+
722
+ var chunkarr = saswpChunkArray(saswp_total_collection, 3);
723
+
724
+ if(chunkarr){
725
+
726
+ jQuery.each(chunkarr, function(p_index, p_value){
727
+
728
+ html += '<div class="saswp-si">';
729
+
730
+ jQuery.each(p_value, function(index, value){
731
+
732
+ html += saswp_review_desing_for_slider(value);
733
+
734
+ });
735
+
736
+ html += '</div>';
737
+
738
+ });
739
+
740
+ }
741
+
742
+ }
743
+
744
+ html += '</div>';
745
+
746
+
747
+ if(arrow){
748
+ html += '<div class="saswp-slider-controls">';
749
+ html += '<a href="#" class="saswp-slider-prev-btn"></a>';
750
+ html += '<a href="#" class="saswp-slider-next-btn"></a>';
751
+ html += '</div>';
752
+ }
753
+
754
+ if(dots){
755
+
756
+ html += '<div class="saswp-slider-dots">';
757
+ html += '</div>';
758
+
759
+ }
760
+
761
+ html += '</div>';
762
+ html += '</div>';
763
+
764
+
765
+ }
766
+
767
+ jQuery(".saswp-collection-preview").html('');
768
+ jQuery(".saswp-collection-preview").append(html);
769
+ saswpCollectionSlider();
770
+
771
+ }
772
+
773
+ function saswp_create_collection_badge(){
774
+
775
+ var html = '';
776
+
777
+ if(saswp_total_collection.length > 0){
778
+
779
+ html += '<div class="saswp-rd3-warp">';
780
+ html += '<ul>';
781
+
782
+ for (var key in saswp_collection) {
783
+
784
+ var platform_icon = '';
785
+ var platform_name = '';
786
+ var review_count = 0;
787
+ var sum_of_rating = 0;
788
+ var average_rating = 1;
789
+
790
+ jQuery.each(saswp_collection[key], function(index, value){
791
+ platform_icon = value.saswp_review_platform_icon;
792
+ platform_name = value.saswp_review_platform_name;
793
+ sum_of_rating += parseFloat(value.saswp_review_rating);
794
+ review_count++;
795
+ });
796
+ if(sum_of_rating > 0){
797
+
798
+ average_rating = sum_of_rating / review_count;
799
+
800
+ }
801
+
802
+ if(saswp_collection[key]){
803
+
804
+ html += '<li>';
805
+ html += '<a href="#">';
806
+
807
+ html += '<div class="saswp-r3-lg">';
808
+ html += '<span>';
809
+ html += '<img src="'+platform_icon+'"/>';
810
+ html += '</span>';
811
+ html += '<span class="saswp-r3-tlt">'+platform_name+'</span">';
812
+ html += '</div>';
813
+
814
+ html += '<div class="saswp-r3-rtng">';
815
+
816
+ html += '<div class="saswp-r3-rtxt">';
817
+ html += '<span class="saswp-r3-num">';
818
+ html += average_rating;
819
+ html += '</span>';
820
+ html += '<span class="saswp-stars">';
821
+ html += saswp_create_rating_html_by_value(average_rating.toString());
822
+ html += '</span>';
823
+ html += '</div>';
824
+
825
+ html += '<span class="saswp-r3-brv">';
826
+ html += 'Based on '+review_count+' Reviews';
827
+ html += '</span>';
828
+
829
+ html += '</div>';
830
+ html += '</a>';
831
+ html += '</li>';
832
+
833
+
834
+ }
835
+
836
+ }
837
+
838
+ html += '</ul>';
839
+ html += '</div>';
840
+
841
+ }
842
+
843
+ jQuery(".saswp-collection-preview").html('');
844
+ jQuery(".saswp-collection-preview").append(html);
845
+
846
+ }
847
+
848
+ function saswp_create_collection_popup(){
849
+
850
+ var html = '';
851
+ var html_list = '';
852
+
853
+ if(saswp_total_collection.length > 0){
854
+
855
+ var review_count = 0;
856
+ var sum_of_rating = 0;
857
+ var average_rating = 1;
858
+
859
+ jQuery.each(saswp_total_collection, function(index, value){
860
+
861
+ platform_icon = value.saswp_review_platform_icon;
862
+ sum_of_rating += parseFloat(value.saswp_review_rating);
863
+ review_count++;
864
+
865
+ var date_str = saswp_convert_datetostring(value.saswp_review_date);
866
+
867
+ html_list += '<li>';
868
+ html_list += '<div class="saswp-r4-b">';
869
+ html_list += '<span class="saswp-r4-str">';
870
+ html_list += saswp_create_rating_html_by_value(value.saswp_review_rating);
871
+ html_list += '</span>';
872
+ html_list += '<span class="saswp-r4-tx">'+date_str.date+'</span>';
873
+ html_list += '</div>';
874
+
875
+ html_list += '<div class="saswp-r4-cnt">';
876
+ html_list += '<h3>'+value.saswp_reviewer_name+'</h3>';
877
+ html_list += '<p>'+value.saswp_review_text+'</p>';
878
+ html_list += '</div>';
879
+
880
+ html_list += '</li>';
881
+
882
+ });
883
+
884
+ if(sum_of_rating > 0){
885
+
886
+ average_rating = sum_of_rating / review_count;
887
+
888
+ }
889
+
890
+ if(review_count > 0){
891
+
892
+ html += '<div id="saswp-sticky-review">';
893
+ html += '<div class="saswp-open-class saswp-popup-btn">';
894
+ html += '<div class="saswp-opn-cls-btn">';
895
+
896
+ html += '<div class="saswp-onclick-hide">';
897
+ html += '<span>';
898
+ html += saswp_create_rating_html_by_value(average_rating.toString());
899
+ html += '</span>';
900
+ html += '<span class="saswp-r4-rnm">'+average_rating.toFixed(1)+' from '+review_count+' reviews</span>';
901
+ html += '</div>';
902
+
903
+ html += '<div class="saswp-onclick-show">';
904
+ html += '<span>Ratings and reviews</span>';
905
+ html += '<span class="saswp-mines"></span>';
906
+ html += '</div>';
907
+
908
+ html += '</div>';
909
+ html += '<div id="saswp-reviews-cntn">';
910
+ html += '<div class="saswp-r4-info">';
911
+ html += '<ul>';
912
+
913
+ html += '<li class="saswp-r4-r">';
914
+ html += '<span>';
915
+ html += saswp_create_rating_html_by_value(average_rating.toString());
916
+ html += '</span>';
917
+ html += '<span class="saswp-r4-rnm">'+average_rating.toFixed(1)+' from '+review_count+' reviews</span>';
918
+ html += '</li>';
919
+ html += html_list;
920
+ html += '</ul>';
921
+ html += '</div>';
922
+ html += '</div>';
923
+ html += '</div>';
924
+ html += '</div>';
925
+
926
+ }
927
+
928
+ }
929
+
930
+ jQuery(".saswp-collection-preview").html('');
931
+ jQuery(".saswp-collection-preview").append(html);
932
+
933
+ }
934
+
935
+ function saswp_create_collection_fomo(fomo_inverval, fomo_visibility){
936
+
937
+ var html = '';
938
+
939
+ if(saswp_total_collection.length > 0){
940
+
941
+ jQuery.each(saswp_total_collection, function(index, value){
942
+
943
+ var date_str = saswp_convert_datetostring(value.saswp_review_date);
944
+
945
+ html += '<div id="'+index+'" class="saswp-r5">';
946
+ html += '<div class="saswp-r5-r">';
947
+ html += '<div class="saswp-r5-lg">';
948
+ html += '<span>';
949
+ html += '<img height="70" width="70" src="'+value.saswp_review_platform_icon+'"/>';
950
+ html += '</span>';
951
+ html += '</div>';
952
+ html += '<div class="saswp-r5-rng">';
953
+ html += saswp_create_rating_html_by_value(value.saswp_review_rating);
954
+ html +='<div class="saswp-r5-txrng">';
955
+ html +='<span>'+value.saswp_review_rating+' Stars</span>';
956
+ html +='<span>by</span>';
957
+ html +='<span>'+value.saswp_reviewer_name+'</span>';
958
+ html +='</div>';
959
+ html += '<span class="saswp-r5-dt">'+date_str.date+'</span>';
960
+ html += '</div>';
961
+ html += '</div>';
962
+ html += '</div>';
963
+
964
+ });
965
+
966
+ }
967
+
968
+ jQuery(".saswp-collection-preview").html('');
969
+ jQuery(".saswp-collection-preview").append(html);
970
+
971
+ saswp_fomo_slide(fomo_inverval, fomo_visibility);
972
+
973
+ }
974
+
975
+ function saswp_fomo_slide(fomo_inverval, fomo_visibility){
976
+
977
+ var elem = jQuery('.saswp-collection-preview .saswp-r5');
978
+ var l = elem.length;
979
+ var i = 0;
980
+
981
+ function saswp_fomo_loop() {
982
+
983
+ elem.eq(i % l).fadeIn(6000, function() {
984
+ elem.eq(i % l).fadeOut(3000, saswp_fomo_loop);
985
+ i++;
986
+ });
987
+ }
988
+
989
+ saswp_fomo_loop();
990
+
991
+ }
992
+
993
+ function saswp_collection_sorting(sorting_type){
994
+
995
+ if(saswp_total_collection.length > 0){
996
+
997
+ switch(sorting_type){
998
+
999
+ case 'lowest':
1000
+
1001
+ saswp_total_collection.sort(function(a, b) {
1002
+ return a.saswp_review_rating - b.saswp_review_rating;
1003
+ });
1004
+
1005
+ break;
1006
+
1007
+ case 'highest':
1008
+
1009
+ saswp_total_collection.sort(function(a, b) {
1010
+ return a.saswp_review_rating - b.saswp_review_rating;
1011
+ });
1012
+ saswp_total_collection.reverse();
1013
+ break;
1014
+
1015
+ case 'newest':
1016
+ case 'recent':
1017
+
1018
+ saswp_total_collection.sort(function(a, b) {
1019
+ var dateA = new Date(a.saswp_review_date), dateB = new Date(b.saswp_review_date);
1020
+ return dateA - dateB;
1021
+ });
1022
+ saswp_total_collection.reverse();
1023
+
1024
+ break;
1025
+
1026
+ case 'oldest':
1027
+
1028
+ saswp_total_collection.sort(function(a, b) {
1029
+ var dateA = new Date(a.saswp_review_date), dateB = new Date(b.saswp_review_date);
1030
+ return dateA - dateB;
1031
+ });
1032
+
1033
+ break;
1034
+
1035
+ case 'random':
1036
+
1037
+ saswp_total_collection.sort(function(a, b) {
1038
+ return 0.5 - Math.random();
1039
+ });
1040
+
1041
+ break;
1042
+
1043
+ }
1044
+
1045
+ }
1046
+
1047
+ }
1048
+
1049
+ function saswp_create_collection_grid(cols){
1050
+
1051
+ var html = '';
1052
+ var grid_cols = '';
1053
+
1054
+ if(saswp_total_collection.length > 0){
1055
+
1056
+ html += '<div class="saswp-r1">';
1057
+
1058
+ for(var i=1; i <=cols; i++ ){
1059
+ grid_cols +=' 1fr';
1060
+
1061
+ }
1062
+
1063
+ if(cols.length > 3){
1064
+ html += '<ul style="grid-template-columns:'+grid_cols+';overflow-y: scroll;">';
1065
+ }else{
1066
+ html += '<ul style="grid-template-columns:'+grid_cols+';overflow-y:hidden;">';
1067
+ }
1068
+
1069
+
1070
+ if(saswp_total_collection){
1071
+
1072
+ jQuery.each(saswp_total_collection, function(index, value){
1073
+
1074
+ var date_str = saswp_convert_datetostring(value.saswp_review_date);
1075
+
1076
+ html += '<li>';
1077
+ html += '<div class="saswp-rc">';
1078
+ html += '<div class="saswp-rc-a">';
1079
+ html += '<div class="saswp-r1-aimg">';
1080
+ html += '<img src="'+value.saswp_reviewer_image+'" width="56" height="56"/>';
1081
+ html += '</div>';
1082
+ html += '<div class="saswp-rc-nm">';
1083
+ html += '<a href="#">'+value.saswp_reviewer_name+'</a>';
1084
+ html += saswp_create_rating_html_by_value(value.saswp_review_rating);
1085
+
1086
+ if(date_str.date){
1087
+ html += '<span class="saswp-rc-dt">'+date_str.date+'</span>';
1088
+
1089
+ }
1090
+
1091
+ html += '</div>';
1092
+ html += '</div>';
1093
+
1094
+ html += '<div class="saswp-rc-lg">';
1095
+ html += '<img src="'+value.saswp_review_platform_icon+'"/>';
1096
+ html += '</div>';
1097
+
1098
+ html += '</div>';
1099
+ html +='<div class="saswp-rc-cnt">';
1100
+ html += '<p>'+value.saswp_review_text+'</p>';
1101
+ html += '</div>';
1102
+ html += '</li>';
1103
+
1104
+ });
1105
+
1106
+ }
1107
+
1108
+ html += '</ul>';
1109
+ html += '</div>';
1110
+
1111
+ }
1112
+ jQuery(".saswp-collection-preview").html('');
1113
+ jQuery(".saswp-collection-preview").append(html);
1114
+
1115
+ }
1116
+
1117
+ function saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_visibility){
1118
+
1119
+ switch(design) {
1120
+
1121
+ case "grid":
1122
+
1123
+ saswp_create_collection_grid(cols);
1124
+
1125
+ break;
1126
+
1127
+ case 'gallery':
1128
+
1129
+ saswp_create_collection_slider(slider, arrow, dots);
1130
+
1131
+ break;
1132
+
1133
+ case 'badge':
1134
+
1135
+ saswp_create_collection_badge();
1136
+
1137
+ break;
1138
+
1139
+ case 'popup':
1140
+
1141
+ saswp_create_collection_popup();
1142
+
1143
+ break;
1144
+
1145
+ case 'fomo':
1146
+
1147
+ saswp_create_collection_fomo(fomo_inverval, fomo_visibility);
1148
+
1149
+ break;
1150
+
1151
+ }
1152
+
1153
+ }
1154
+
1155
+ function saswp_on_collection_design_change(){
1156
+
1157
+ var sorting = jQuery(".saswp-collection-sorting").val();
1158
+ var design = jQuery(".saswp-collection-desing").val();
1159
+ var cols = jQuery("#saswp-collection-cols").val();
1160
+ var slider = jQuery(".saswp-slider-type").val();
1161
+
1162
+ var fomo_inverval = jQuery("#saswp_fomo_interval").val();
1163
+ //var fomo_visibility = jQuery("#saswp_fomo_visibility").val();
1164
+
1165
+ if(jQuery("#saswp_gallery_arrow").is(':checked')){
1166
+ var arrow = true;
1167
+ }else{
1168
+ var arrow = false;
1169
+ }
1170
+
1171
+ if(jQuery("#saswp_gallery_dots").is(':checked')){
1172
+ var dots = true;
1173
+ }else{
1174
+ var dots = false;
1175
+ }
1176
+
1177
+ saswp_create_total_collection();
1178
+ saswp_collection_sorting(sorting);
1179
+ saswp_create_collection_by_design(design, cols, slider, arrow, dots, fomo_inverval, fomo_inverval);
1180
+
1181
+ }
1182
+
1183
+ function saswp_get_collection_data(rvcount, platform_id, current = null){
1184
+
1185
+ jQuery.get(ajaxurl,
1186
+ { action:"saswp_add_to_collection", rvcount:rvcount, platform_id:platform_id, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
1187
+
1188
+ function(response){
1189
+
1190
+ if(response['status']){
1191
+
1192
+ var res_json = response['message'];
1193
+
1194
+ saswp_collection[platform_id] = res_json;
1195
+
1196
+ saswp_collection[platform_id] = jQuery.extend(saswp_collection[platform_id], res_json);
1197
+
1198
+ saswp_on_collection_design_change();
1199
+
1200
+ }
1201
+
1202
+ if(current){
1203
+ current.removeClass('updating-message');
1204
+ }
1205
+
1206
+ },'json');
1207
+
1208
+ }
1209
+
admin_section/js/functions-list.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_coll_json=null;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s);e={time:a.toLocaleTimeString(),date:a.toLocaleDateString()}}else e={time:"",date:""};return e}function saswp_taxonomy_term_html(s,e){var a="";return a+="<td>",a+='<select name="saswp_taxonomy_term['+e+']">',jQuery.each(s,function(s,e){a+='<option value="'+s+'">'+e+"</option>"}),a+="</select>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide()}).change()}function getParameterByName(s,e){e||(e=window.location.href),s=s.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(e);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,e,a=null){var t=e.val(),i=saswp_localize_data.post_id,n=jQuery(e).attr("data-id"),p=jQuery(e).attr("post-specific"),r="";r=null==a?jQuery("#saswp_specific_"+n):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_type:s,schema_id:n,post_specific:p,item:t,post_id:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(r).find(".saswp-table-create-onajax").remove();var e=jQuery(r).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(r).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var e="";(jQuery("select#schema_type option:selected").val()&&(e=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(e=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===e)&&saswp_item_reviewed_ajax(e,$(this))}).change()}function saswp_compatibliy_notes(s,e){var a=e.replace("-checkbox",""),t=jQuery("#"+a).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+a).next("p").removeClass("saswp_hide"):1==jQuery("#"+a).next("p").attr("data-id")?jQuery("#"+a).next("p").text("This feature is only available in pro version"):jQuery("#"+a).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,e,a,t,i,n){var p=t;null==p&&(p=Object.keys(a)[0]);var r="";if(r+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+p+']">',jQuery.each(e,function(s,e){r+='<optgroup label="'+e.label+'">',jQuery.each(e["meta-list"],function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),r+="</optgroup>"}),r+="</select>",a){var l=jQuery("select#schema_type option:selected").val(),c="";"Review"==l&&(c=jQuery("select.saswp-item-reivewed-list option:selected").val());var o="<tr>";o+="<td>",o+='<select class="saswp-custom-fields-name">',"Review"==l&&(o+='<optgroup label="Review">',o+='<option value="saswp_review_name">Review Name</option>',o+='<option value="saswp_review_description">Review Description</option>',o+='<option value="saswp_review_author">Review Author</option>',o+='<option value="saswp_review_author_url">Review Author Profile URL</option>',o+='<option value="saswp_review_publisher">Review Publisher</option>',o+='<option value="saswp_review_rating_value">Review Rating Value</option>',o+='<option value="saswp_review_date_published">Review Published Date</option>',o+='<option value="saswp_review_url">Review URL</option>',o+="</optgroup>"),"Review"==l&&(o+='<optgroup label="'+c+'">'),jQuery.each(a,function(s,e){o+='<option value="'+s+'">'+e+"</option>"}),"Review"==l&&(o+="</optgroup>"),o+="</select>",o+="</td>",o+="<td>",o+=r,o+="</td>",o+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',o+="</tr>",jQuery(".saswp-custom-fields-table").append(o),null!=s&&s.removeClass("updating-message")}else jQuery(i).html(r),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,e,a,t,i,n){saswp_meta_list[e]?saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(p){saswp_meta_list[e]=p[e],saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n)},"json")}function saswp_get_post_specific_schema_fields(s,e,a,t,i,n){if(saswp_meta_fields[n]){var p=saswp_fields_html_generator(e,i,n,t,saswp_meta_fields[n]);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a;var p=saswp_fields_html_generator(e,i,n,t,a);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,e,a,t,i){var n="";return n+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',jQuery.each(i,function(t,i){var p="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(p="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+p+'" style="width:100%" type="'+i.type+'" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']"></td></tr>';break;case"textarea":n+="<tr><th>"+i.label+'</th><td><textarea style="width: 100%" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']" rows="5"></textarea></td></tr>';break;case"select":var r="";jQuery.each(i.options,function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']">'+r+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+s+"_"+e+'" name="'+i.name+"_"+s+"_"+e+'"><input type="hidden" data-id="'+i.name+"_"+s+"_"+e+'_id" name="'+a+e+"["+s+"]["+i.name+'_id]" id="'+i.name+"_"+s+"_"+e+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+s+"_"+e+'_button" name="'+i.name+"_"+s+"_"+e+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+s+"_"+e+'"></div></fieldset></td></tr>'}}),n+="</table></div>"}function saswp_create_total_collection(){var s="";for(var e in saswp_total_collection=[],saswp_collection)saswp_collection[e]&&(jQuery.each(saswp_collection[e],function(s,e){saswp_total_collection.push(e)}),s+=saswp_function_added_platform(e,saswp_collection[e].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(s)}function saswp_create_rating_html_by_value(s){var e="";e+='<div class="saswp-rvw-str">';for(var a=0;a<5;a++)if(s>a){var t=s.split(".");t[1]?a<t[0]?e+='<span class="str-ic"></span>':e+='<span class="half-str"></span>':e+='<span class="str-ic"></span>'}else e+='<span class="df-clr"></span>';return e+="</div>"}function saswpChunkArray(s,e){for(var a=JSON.parse(JSON.stringify(s)),t=[];a.length;)t.push(a.splice(0,e));return t}function saswp_function_added_platform(s,e){var a="";return a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span>",a+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+e+'">',a+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',a+="</div>"}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),e=s.find(".saswp-sic");function a(){var s=0;jQuery(e).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),e.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=e.find(".saswp-si.saswp-active").offset().left-e.offset().left;e.css({transform:"translate( -"+s+"px, 0px)"})}}0==e.find(".saswp-si.saswp-active").length&&e.find(".saswp-si").first().addClass("saswp-active"),a(),t(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length;for(i=0;i<t;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(a).addClass("saswp-active")}(),jQuery(document).ready(function(){a(),t()}),jQuery(window).resize(function(){a(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=0;t=a+1>e.find(".saswp-si").length-1?0:a+1;var i=e.find(".saswp-si").eq(t),n=e.offset().left,p=i.offset().left-n;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),i.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active"),e.css({transform:"translate( -"+p+"px, 0px)"})}()}),p.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length,i=0;i=a-1<0?t-1:a-1;var n=e.find(".saswp-si").eq(i),p=e.offset().left,r=n.offset().left-p;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),n.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(i).addClass("saswp-active"),e.css({transform:"translate( -"+r+"px, 0px)"})}()}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(a){var t=jQuery(this).index(),i=e.find(".saswp-si").eq(t).offset().left-e.offset().left;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),e.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),e.css({transform:"translate( -"+i+"px, 0px)"})})})}function saswp_review_desing_for_slider(s){var e=saswp_convert_datetostring(s.saswp_review_date),a="";return a+='<div class="saswp-r2-sli">',a+='<div class="saswp-r2-b">',a+='<div class="saswp-r2-q">',a+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',a+="</div>",a+='<div class="saswp-rc-cnt">',a+="<p>",a+=s.saswp_review_text,a+="</p>",a+="</div>",a+='<div class="saswp-r2-strs">',a+='<span class="saswp-r2-s">',a+=saswp_create_rating_html_by_value(s.saswp_review_rating),a+="</span>",a+="</div>",a+="</div>",a+='<div class="saswp-rc">',a+='<div class="saswp-rc-a">',a+='<img src="'+s.saswp_reviewer_image+'"/>',a+='<div class="saswp-rc-nm">',a+='<a href="#">'+s.saswp_reviewer_name+"</a>",a+='<span class="saswp-rc-dt">'+e.date+"</span>",a+="</div>",a+='<div class="saswp-rc-lg">',a+='<img src="'+s.saswp_review_platform_icon+'"/>',a+="</div>",a+="</div>",a+="</div>",a+="</div>"}function saswp_create_collection_slider(s,e,a){var t="";if(saswp_total_collection.length>0){if(t+="slider"==s?'<div class="saswp-cst">':'<div class="saswp-cct">',t+='<div class="saswp-cs">',t+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,e){t+='<div class="saswp-si">',t+=saswp_review_desing_for_slider(e),t+="</div>"}),"carousel"==s){var i=saswpChunkArray(saswp_total_collection,3);i&&jQuery.each(i,function(s,e){t+='<div class="saswp-si">',jQuery.each(e,function(s,e){t+=saswp_review_desing_for_slider(e)}),t+="</div>"})}t+="</div>",e&&(t+='<div class="saswp-slider-controls">',t+='<a href="#" class="saswp-slider-prev-btn"></a>',t+='<a href="#" class="saswp-slider-next-btn"></a>',t+="</div>"),a&&(t+='<div class="saswp-slider-dots">',t+="</div>"),t+="</div>",t+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(t),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var e in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var a="",t="",i=0,n=0,p=1;jQuery.each(saswp_collection[e],function(s,e){a=e.saswp_review_platform_icon,t=e.saswp_review_platform_name,n+=parseFloat(e.saswp_review_rating),i++}),n>0&&(p=n/i),saswp_collection[e]&&(s+="<li>",s+='<a href="#">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+a+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=p,s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(p.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+="Based on "+i+" Reviews",s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",e="";if(saswp_total_collection.length>0){var a=0,t=0,i=1;jQuery.each(saswp_total_collection,function(s,i){platform_icon=i.saswp_review_platform_icon,t+=parseFloat(i.saswp_review_rating),a++;var n=saswp_convert_datetostring(i.saswp_review_date);e+="<li>",e+='<div class="saswp-r4-b">',e+='<span class="saswp-r4-str">',e+=saswp_create_rating_html_by_value(i.saswp_review_rating),e+="</span>",e+='<span class="saswp-r4-tx">'+n.date+"</span>",e+="</div>",e+='<div class="saswp-r4-cnt">',e+="<h3>"+i.saswp_reviewer_name+"</h3>",e+="<p>"+i.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),t>0&&(i=t/a),a>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</li>",s+=e,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,e){var a="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,e){var t=saswp_convert_datetostring(e.saswp_review_date);a+='<div id="'+s+'" class="saswp-r5">',a+='<div class="saswp-r5-r">',a+='<div class="saswp-r5-lg">',a+="<span>",a+='<img height="70" width="70" src="'+e.saswp_review_platform_icon+'"/>',a+="</span>",a+="</div>",a+='<div class="saswp-r5-rng">',a+=saswp_create_rating_html_by_value(e.saswp_review_rating),a+='<div class="saswp-r5-txrng">',a+="<span>"+e.saswp_review_rating+" Stars</span>",a+="<span>by</span>",a+="<span>"+e.saswp_reviewer_name+"</span>",a+="</div>",a+='<span class="saswp-r5-dt">'+t.date+"</span>",a+="</div>",a+="</div>",a+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(a),saswp_fomo_slide(s,e)}function saswp_fomo_slide(s,e){var a=jQuery(".saswp-collection-preview .saswp-r5"),t=a.length,i=0;!function s(){a.eq(i%t).fadeIn(6e3,function(){a.eq(i%t).fadeOut(3e3,s),i++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)});break;case"random":saswp_total_collection.sort(function(s,e){return.5-Math.random()})}}function saswp_create_collection_grid(s){var e="",a="";if(saswp_total_collection.length>0){e+='<div class="saswp-r1">';for(var t=1;t<=s;t++)a+=" 1fr";s.length>3?e+='<ul style="grid-template-columns:'+a+';overflow-y: scroll;">':e+='<ul style="grid-template-columns:'+a+';overflow-y:hidden;">',saswp_total_collection&&jQuery.each(saswp_total_collection,function(s,a){var t=saswp_convert_datetostring(a.saswp_review_date);e+="<li>",e+='<div class="saswp-rc">',e+='<div class="saswp-rc-a">',e+='<div class="saswp-r1-aimg">',e+='<img src="'+a.saswp_reviewer_image+'" width="56" height="56"/>',e+="</div>",e+='<div class="saswp-rc-nm">',e+='<a href="#">'+a.saswp_reviewer_name+"</a>",e+=saswp_create_rating_html_by_value(a.saswp_review_rating),t.date&&(e+='<span class="saswp-rc-dt">'+t.date+"</span>"),e+="</div>",e+="</div>",e+='<div class="saswp-rc-lg">',e+='<img src="'+a.saswp_review_platform_icon+'"/>',e+="</div>",e+="</div>",e+='<div class="saswp-rc-cnt">',e+="<p>"+a.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),e+="</ul>",e+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(e)}function saswp_create_collection_by_design(s,e,a,t,i,n,p){switch(s){case"grid":saswp_create_collection_grid(e);break;case"gallery":saswp_create_collection_slider(a,t,i);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(n,p)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),e=jQuery(".saswp-collection-desing").val(),a=jQuery("#saswp-collection-cols").val(),t=jQuery(".saswp-slider-type").val(),i=jQuery("#saswp_fomo_interval").val();if(jQuery("#saswp_gallery_arrow").is(":checked"))var n=!0;else n=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var p=!0;else p=!1;saswp_create_total_collection(),saswp_collection_sorting(s),saswp_create_collection_by_design(e,a,t,n,p,i,i)}function saswp_get_collection_data(s,e,a=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){if(s.status){var t=s.message;saswp_collection[e]=t,saswp_collection[e]=jQuery.extend(saswp_collection[e],t),saswp_on_collection_design_change()}a&&a.removeClass("updating-message")},"json")}
1
+ var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_coll_json=null;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s);e={time:a.toLocaleTimeString(),date:a.toLocaleDateString()}}else e={time:"",date:""};return e}function saswp_taxonomy_term_html(s,e){var a="";return a+="<td>",a+='<select name="saswp_taxonomy_term['+e+']">',jQuery.each(s,function(s,e){a+='<option value="'+s+'">'+e+"</option>"}),a+="</select>",a+="</td>",a+='<td><a class="button button-default saswp-rmv-modify_row">X</a></td>'}function saswp_enable_rating_review(){var s="";jQuery("select#schema_type option:selected").val()&&(s=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(s=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),s&&jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")?jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).show():jQuery(this).parent().parent().siblings(".saswp-rating-review-"+s.toLowerCase()).hide()}).change()}function getParameterByName(s,e){e||(e=window.location.href),s=s.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(e);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}function saswpCustomSelect2(){"saswp"!=saswp_localize_data.post_type&&"saswp"!=saswp_localize_data.page_now||"saswp_page_structured_data_options"==saswp_localize_data.page_now||jQuery(".saswp-custom-fields-select2").select2({ajax:{type:"POST",url:ajaxurl,dataType:"json",delay:250,data:function(s){return{saswp_security_nonce:saswp_localize_data.saswp_security_nonce,q:s.term,action:"saswp_get_custom_meta_fields"}},processResults:function(s){return{results:s}},cache:!0},minimumInputLength:2})}function saswp_reviews_datepicker(){jQuery(".saswp-reviews-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_datepicker(){jQuery(".saswp-datepicker-picker").datepicker({dateFormat:"yy-mm-dd"})}function saswp_schema_timepicker(){jQuery(".saswp-timepicker").timepicker({timeFormat:"H:i:s"})}function saswp_item_reviewed_ajax(s,e,a=null){var t=e.val(),i=saswp_localize_data.post_id,n=jQuery(e).attr("data-id"),p=jQuery(e).attr("post-specific"),r="";r=null==a?jQuery("#saswp_specific_"+n):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",schema_type:s,schema_id:n,post_specific:p,item:t,post_id:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(r).find(".saswp-table-create-onajax").remove();var e=jQuery(r).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(r).append(s),saswp_schema_datepicker(),saswp_schema_timepicker()})}function saswp_item_reviewed_call(){jQuery(".saswp-item-reviewed").change(function(s){s.preventDefault();var e="";(jQuery("select#schema_type option:selected").val()&&(e=jQuery("select#schema_type option:selected").val()),jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")&&(e=jQuery(".saswp-tab-links.selected").attr("saswp-schema-type")),"Review"===e)&&saswp_item_reviewed_ajax(e,jQuery(this))}).change()}function saswp_compatibliy_notes(s,e){var a=e.replace("-checkbox",""),t=jQuery("#"+a).next("p").text();s.is(":checked")&&""!==t?jQuery("#"+a).next("p").removeClass("saswp_hide"):1==jQuery("#"+a).next("p").attr("data-id")?jQuery("#"+a).next("p").text("This feature is only available in pro version"):jQuery("#"+a).next("p").addClass("saswp_hide")}function saswp_meta_list_html(s,e,a,t,i,n){var p=t;null==p&&(p=Object.keys(a)[0]);var r="";if(r+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+p+']">',jQuery.each(e,function(s,e){r+='<optgroup label="'+e.label+'">',jQuery.each(e["meta-list"],function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),r+="</optgroup>"}),r+="</select>",a){var l=jQuery("select#schema_type option:selected").val(),c="";"Review"==l&&(c=jQuery("select.saswp-item-reivewed-list option:selected").val());var o="<tr>";o+="<td>",o+='<select class="saswp-custom-fields-name">',"Review"==l&&(o+='<optgroup label="Review">',o+='<option value="saswp_review_name">Review Name</option>',o+='<option value="saswp_review_description">Review Description</option>',o+='<option value="saswp_review_author">Review Author</option>',o+='<option value="saswp_review_author_url">Review Author Profile URL</option>',o+='<option value="saswp_review_publisher">Review Publisher</option>',o+='<option value="saswp_review_rating_value">Review Rating Value</option>',o+='<option value="saswp_review_date_published">Review Published Date</option>',o+='<option value="saswp_review_url">Review URL</option>',o+="</optgroup>"),"Review"==l&&(o+='<optgroup label="'+c+'">'),jQuery.each(a,function(s,e){o+='<option value="'+s+'">'+e+"</option>"}),"Review"==l&&(o+="</optgroup>"),o+="</select>",o+="</td>",o+="<td>",o+=r,o+="</td>",o+='<td></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td>',o+="</tr>",jQuery(".saswp-custom-fields-table").append(o),null!=s&&s.removeClass("updating-message")}else jQuery(i).html(r),null!=s&&s.removeClass("updating-message")}function saswp_get_meta_list(s,e,a,t,i,n){saswp_meta_list[e]?saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n):jQuery.get(ajaxurl,{action:"saswp_get_meta_list",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(p){saswp_meta_list[e]=p[e],saswp_meta_list_html(s,saswp_meta_list[e],a,i,t,n)},"json")}function saswp_get_post_specific_schema_fields(s,e,a,t,i,n){if(saswp_meta_fields[n]){var p=saswp_fields_html_generator(e,i,n,t,saswp_meta_fields[n]);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a;var p=saswp_fields_html_generator(e,i,n,t,a);p&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(p),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))},"json")}function saswp_fields_html_generator(s,e,a,t,i){var n="";return n+='<div class="saswp-'+t+'-table-div saswp-dynamic-properties" data-id="'+s+'"><a class="saswp-table-close">X</a><table class="form-table saswp-'+t+'-table">',jQuery.each(i,function(t,i){var p="";switch("saswp_tvseries_season_published_date"!=i.name&&"saswp_feed_element_date_created"!=i.name&&"saswp_product_reviews_created_date"!=i.name||(p="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+p+'" style="width:100%" type="'+i.type+'" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']"></td></tr>';break;case"textarea":n+="<tr><th>"+i.label+'</th><td><textarea style="width: 100%" id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']" rows="5"></textarea></td></tr>';break;case"select":var r="";jQuery.each(i.options,function(s,e){r+='<option value="'+s+'">'+e+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']">'+r+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+s+"_"+e+'" name="'+i.name+"_"+s+"_"+e+'"><input type="hidden" data-id="'+i.name+"_"+s+"_"+e+'_id" name="'+a+e+"["+s+"]["+i.name+'_id]" id="'+i.name+"_"+s+"_"+e+'_id"><input data-id="media" style="width: 19%" class="button" id="'+i.name+"_"+s+"_"+e+'_button" name="'+i.name+"_"+s+"_"+e+'_button" type="button" value="Upload"><div class="saswp_image_div_'+i.name+"_"+s+"_"+e+'"></div></fieldset></td></tr>'}}),n+="</table></div>"}function saswp_create_total_collection(){var s="";for(var e in saswp_total_collection=[],saswp_collection)saswp_collection[e]&&(jQuery.each(saswp_collection[e],function(s,e){saswp_total_collection.push(e)}),s+=saswp_function_added_platform(e,saswp_collection[e].length));jQuery(".saswp-platform-added-list").html(""),jQuery(".saswp-platform-added-list").append(s)}function saswp_create_rating_html_by_value(s){var e="";e+='<div class="saswp-rvw-str">';for(var a=0;a<5;a++)if(s>a){var t=s.split(".");t[1]?a<t[0]?e+='<span class="str-ic"></span>':e+='<span class="half-str"></span>':e+='<span class="str-ic"></span>'}else e+='<span class="df-clr"></span>';return e+="</div>"}function saswpChunkArray(s,e){for(var a=JSON.parse(JSON.stringify(s)),t=[];a.length;)t.push(a.splice(0,e));return t}function saswp_function_added_platform(s,e){var a="";return a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span>",a+='<input type="hidden" name="saswp_platform_ids['+s+']" value="'+e+'">',a+='<a platform-id="'+s+'" class="button button-default saswp-remove-platform"></a>',a+="</div>"}function saswpCollectionSlider(){jQuery(".saswp-cs").each(function(){var s=jQuery(this),e=s.find(".saswp-sic");function a(){var s=0;jQuery(e).find(".saswp-si").each(function(){s+=jQuery(this).outerWidth()}),e.width(s)}function t(){if(jQuery(".saswp-si.saswp-active").length>0){var s=e.find(".saswp-si.saswp-active").offset().left-e.offset().left;e.css({transform:"translate( -"+s+"px, 0px)"})}}0==e.find(".saswp-si.saswp-active").length&&e.find(".saswp-si").first().addClass("saswp-active"),a(),t(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length;for(i=0;i<t;i++)s.find(".saswp-slider-dots").append("<div class='saswp-dot'></div>");s.find(".saswp-slider-dots").find(".saswp-dot").eq(a).addClass("saswp-active")}(),jQuery(document).ready(function(){a(),t()}),jQuery(window).resize(function(){a(),t()});var n=s.find(".saswp-slider-controls").find(".saswp-slider-next-btn"),p=s.find(".saswp-slider-controls").find(".saswp-slider-prev-btn");n.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=0;t=a+1>e.find(".saswp-si").length-1?0:a+1;var i=e.find(".saswp-si").eq(t),n=e.offset().left,p=i.offset().left-n;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),i.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(t).addClass("saswp-active"),e.css({transform:"translate( -"+p+"px, 0px)"})}()}),p.on("click",function(a){a.preventDefault(),function(){var a=e.find(".saswp-si.saswp-active").index(),t=e.find(".saswp-si").length,i=0;i=a-1<0?t-1:a-1;var n=e.find(".saswp-si").eq(i),p=e.offset().left,r=n.offset().left-p;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),n.addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").eq(i).addClass("saswp-active"),e.css({transform:"translate( -"+r+"px, 0px)"})}()}),s.find(".saswp-slider-dots").find(".saswp-dot").on("click",function(a){var t=jQuery(this).index(),i=e.find(".saswp-si").eq(t).offset().left-e.offset().left;e.find(".saswp-si.saswp-active").removeClass("saswp-active"),e.find(".saswp-si").eq(t).addClass("saswp-active"),s.find(".saswp-slider-dots").find(".saswp-dot").removeClass("saswp-active"),jQuery(this).addClass("saswp-active"),e.css({transform:"translate( -"+i+"px, 0px)"})})})}function saswp_review_desing_for_slider(s){var e=saswp_convert_datetostring(s.saswp_review_date),a="";return a+='<div class="saswp-r2-sli">',a+='<div class="saswp-r2-b">',a+='<div class="saswp-r2-q">',a+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="95.333px" height="95.332px" viewBox="0 0 95.333 95.332" style="enable-background:new 0 0 95.333 95.332;" xml:space="preserve"><path d="M30.512,43.939c-2.348-0.676-4.696-1.019-6.98-1.019c-3.527,0-6.47,0.806-8.752,1.793 c2.2-8.054,7.485-21.951,18.013-23.516c0.975-0.145,1.774-0.85,2.04-1.799l2.301-8.23c0.194-0.696,0.079-1.441-0.318-2.045 s-1.035-1.007-1.75-1.105c-0.777-0.106-1.569-0.16-2.354-0.16c-12.637,0-25.152,13.19-30.433,32.076 c-3.1,11.08-4.009,27.738,3.627,38.223c4.273,5.867,10.507,9,18.529,9.313c0.033,0.001,0.065,0.002,0.098,0.002 c9.898,0,18.675-6.666,21.345-16.209c1.595-5.705,0.874-11.688-2.032-16.851C40.971,49.307,36.236,45.586,30.512,43.939z"></path><path d="M92.471,54.413c-2.875-5.106-7.61-8.827-13.334-10.474c-2.348-0.676-4.696-1.019-6.979-1.019 c-3.527,0-6.471,0.806-8.753,1.793c2.2-8.054,7.485-21.951,18.014-23.516c0.975-0.145,1.773-0.85,2.04-1.799l2.301-8.23 c0.194-0.696,0.079-1.441-0.318-2.045c-0.396-0.604-1.034-1.007-1.75-1.105c-0.776-0.106-1.568-0.16-2.354-0.16 c-12.637,0-25.152,13.19-30.434,32.076c-3.099,11.08-4.008,27.738,3.629,38.225c4.272,5.866,10.507,9,18.528,9.312 c0.033,0.001,0.065,0.002,0.099,0.002c9.897,0,18.675-6.666,21.345-16.209C96.098,65.559,95.376,59.575,92.471,54.413z"></path></svg>',a+="</div>",a+='<div class="saswp-rc-cnt">',a+="<p>",a+=s.saswp_review_text,a+="</p>",a+="</div>",a+='<div class="saswp-r2-strs">',a+='<span class="saswp-r2-s">',a+=saswp_create_rating_html_by_value(s.saswp_review_rating),a+="</span>",a+="</div>",a+="</div>",a+='<div class="saswp-rc">',a+='<div class="saswp-rc-a">',a+='<img src="'+s.saswp_reviewer_image+'"/>',a+='<div class="saswp-rc-nm">',a+='<a href="#">'+s.saswp_reviewer_name+"</a>",a+='<span class="saswp-rc-dt">'+e.date+"</span>",a+="</div>",a+='<div class="saswp-rc-lg">',a+='<img src="'+s.saswp_review_platform_icon+'"/>',a+="</div>",a+="</div>",a+="</div>",a+="</div>"}function saswp_create_collection_slider(s,e,a){var t="";if(saswp_total_collection.length>0){if(t+="slider"==s?'<div class="saswp-cst">':'<div class="saswp-cct">',t+='<div class="saswp-cs">',t+='<div class="saswp-sic">',"slider"==s&&jQuery.each(saswp_total_collection,function(s,e){t+='<div class="saswp-si">',t+=saswp_review_desing_for_slider(e),t+="</div>"}),"carousel"==s){var i=saswpChunkArray(saswp_total_collection,3);i&&jQuery.each(i,function(s,e){t+='<div class="saswp-si">',jQuery.each(e,function(s,e){t+=saswp_review_desing_for_slider(e)}),t+="</div>"})}t+="</div>",e&&(t+='<div class="saswp-slider-controls">',t+='<a href="#" class="saswp-slider-prev-btn"></a>',t+='<a href="#" class="saswp-slider-next-btn"></a>',t+="</div>"),a&&(t+='<div class="saswp-slider-dots">',t+="</div>"),t+="</div>",t+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(t),saswpCollectionSlider()}function saswp_create_collection_badge(){var s="";if(saswp_total_collection.length>0){for(var e in s+='<div class="saswp-rd3-warp">',s+="<ul>",saswp_collection){var a="",t="",i=0,n=0,p=1;jQuery.each(saswp_collection[e],function(s,e){a=e.saswp_review_platform_icon,t=e.saswp_review_platform_name,n+=parseFloat(e.saswp_review_rating),i++}),n>0&&(p=n/i),saswp_collection[e]&&(s+="<li>",s+='<a href="#">',s+='<div class="saswp-r3-lg">',s+="<span>",s+='<img src="'+a+'"/>',s+="</span>",s+='<span class="saswp-r3-tlt">'+t+'</span">',s+="</div>",s+='<div class="saswp-r3-rtng">',s+='<div class="saswp-r3-rtxt">',s+='<span class="saswp-r3-num">',s+=p,s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(p.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+="Based on "+i+" Reviews",s+="</span>",s+="</div>",s+="</a>",s+="</li>")}s+="</ul>",s+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_popup(){var s="",e="";if(saswp_total_collection.length>0){var a=0,t=0,i=1;jQuery.each(saswp_total_collection,function(s,i){platform_icon=i.saswp_review_platform_icon,t+=parseFloat(i.saswp_review_rating),a++;var n=saswp_convert_datetostring(i.saswp_review_date);e+="<li>",e+='<div class="saswp-r4-b">',e+='<span class="saswp-r4-str">',e+=saswp_create_rating_html_by_value(i.saswp_review_rating),e+="</span>",e+='<span class="saswp-r4-tx">'+n.date+"</span>",e+="</div>",e+='<div class="saswp-r4-cnt">',e+="<h3>"+i.saswp_reviewer_name+"</h3>",e+="<p>"+i.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),t>0&&(i=t/a),a>0&&(s+='<div id="saswp-sticky-review">',s+='<div class="saswp-open-class saswp-popup-btn">',s+='<div class="saswp-opn-cls-btn">',s+='<div class="saswp-onclick-hide">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</div>",s+='<div class="saswp-onclick-show">',s+="<span>Ratings and reviews</span>",s+='<span class="saswp-mines"></span>',s+="</div>",s+="</div>",s+='<div id="saswp-reviews-cntn">',s+='<div class="saswp-r4-info">',s+="<ul>",s+='<li class="saswp-r4-r">',s+="<span>",s+=saswp_create_rating_html_by_value(i.toString()),s+="</span>",s+='<span class="saswp-r4-rnm">'+i.toFixed(1)+" from "+a+" reviews</span>",s+="</li>",s+=e,s+="</ul>",s+="</div>",s+="</div>",s+="</div>",s+="</div>")}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(s)}function saswp_create_collection_fomo(s,e){var a="";saswp_total_collection.length>0&&jQuery.each(saswp_total_collection,function(s,e){var t=saswp_convert_datetostring(e.saswp_review_date);a+='<div id="'+s+'" class="saswp-r5">',a+='<div class="saswp-r5-r">',a+='<div class="saswp-r5-lg">',a+="<span>",a+='<img height="70" width="70" src="'+e.saswp_review_platform_icon+'"/>',a+="</span>",a+="</div>",a+='<div class="saswp-r5-rng">',a+=saswp_create_rating_html_by_value(e.saswp_review_rating),a+='<div class="saswp-r5-txrng">',a+="<span>"+e.saswp_review_rating+" Stars</span>",a+="<span>by</span>",a+="<span>"+e.saswp_reviewer_name+"</span>",a+="</div>",a+='<span class="saswp-r5-dt">'+t.date+"</span>",a+="</div>",a+="</div>",a+="</div>"}),jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(a),saswp_fomo_slide(s,e)}function saswp_fomo_slide(s,e){var a=jQuery(".saswp-collection-preview .saswp-r5"),t=a.length,i=0;!function s(){a.eq(i%t).fadeIn(6e3,function(){a.eq(i%t).fadeOut(3e3,s),i++})}()}function saswp_collection_sorting(s){if(saswp_total_collection.length>0)switch(s){case"lowest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating});break;case"highest":saswp_total_collection.sort(function(s,e){return s.saswp_review_rating-e.saswp_review_rating}),saswp_total_collection.reverse();break;case"newest":case"recent":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)}),saswp_total_collection.reverse();break;case"oldest":saswp_total_collection.sort(function(s,e){return new Date(s.saswp_review_date)-new Date(e.saswp_review_date)});break;case"random":saswp_total_collection.sort(function(s,e){return.5-Math.random()})}}function saswp_create_collection_grid(s){var e="",a="";if(saswp_total_collection.length>0){e+='<div class="saswp-r1">';for(var t=1;t<=s;t++)a+=" 1fr";s.length>3?e+='<ul style="grid-template-columns:'+a+';overflow-y: scroll;">':e+='<ul style="grid-template-columns:'+a+';overflow-y:hidden;">',saswp_total_collection&&jQuery.each(saswp_total_collection,function(s,a){var t=saswp_convert_datetostring(a.saswp_review_date);e+="<li>",e+='<div class="saswp-rc">',e+='<div class="saswp-rc-a">',e+='<div class="saswp-r1-aimg">',e+='<img src="'+a.saswp_reviewer_image+'" width="56" height="56"/>',e+="</div>",e+='<div class="saswp-rc-nm">',e+='<a href="#">'+a.saswp_reviewer_name+"</a>",e+=saswp_create_rating_html_by_value(a.saswp_review_rating),t.date&&(e+='<span class="saswp-rc-dt">'+t.date+"</span>"),e+="</div>",e+="</div>",e+='<div class="saswp-rc-lg">',e+='<img src="'+a.saswp_review_platform_icon+'"/>',e+="</div>",e+="</div>",e+='<div class="saswp-rc-cnt">',e+="<p>"+a.saswp_review_text+"</p>",e+="</div>",e+="</li>"}),e+="</ul>",e+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(e)}function saswp_create_collection_by_design(s,e,a,t,i,n,p){switch(s){case"grid":saswp_create_collection_grid(e);break;case"gallery":saswp_create_collection_slider(a,t,i);break;case"badge":saswp_create_collection_badge();break;case"popup":saswp_create_collection_popup();break;case"fomo":saswp_create_collection_fomo(n,p)}}function saswp_on_collection_design_change(){var s=jQuery(".saswp-collection-sorting").val(),e=jQuery(".saswp-collection-desing").val(),a=jQuery("#saswp-collection-cols").val(),t=jQuery(".saswp-slider-type").val(),i=jQuery("#saswp_fomo_interval").val();if(jQuery("#saswp_gallery_arrow").is(":checked"))var n=!0;else n=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var p=!0;else p=!1;saswp_create_total_collection(),saswp_collection_sorting(s),saswp_create_collection_by_design(e,a,t,n,p,i,i)}function saswp_get_collection_data(s,e,a=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){if(s.status){var t=s.message;saswp_collection[e]=t,saswp_collection[e]=jQuery.extend(saswp_collection[e],t),saswp_on_collection_design_change()}a&&a.removeClass("updating-message")},"json")}
admin_section/js/main-script.js CHANGED
@@ -1,6 +1,91 @@
1
-
2
  jQuery(document).ready(function($){
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  $(".saswp-modify-schema-toggle").click(function(e){
6
 
@@ -755,6 +840,15 @@ return false;
755
  }
756
  break;
757
 
 
 
 
 
 
 
 
 
 
758
  case 'saswp-dw-question-answer-checkbox':
759
  saswp_compatibliy_notes(current, id);
760
  if ($(this).is(':checked')) {
@@ -1091,6 +1185,16 @@ return false;
1091
 
1092
  break;
1093
 
 
 
 
 
 
 
 
 
 
 
1094
  case 'saswp-bne-testimonials-checkbox':
1095
 
1096
  if ($(this).is(':checked')) {
@@ -1100,6 +1204,46 @@ return false;
1100
  }
1101
 
1102
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1103
 
1104
  default:
1105
  break;
1
+ var saswp_attached_rv = [];
2
  jQuery(document).ready(function($){
3
 
4
+ $(document).on("click", '.saswp-attach-reviews', function(){
5
+
6
+ if($(".saswp-enable-append-reviews").is(":checked")){
7
+ tb_show("Attach reviews to this schema type", "#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div");
8
+ $(document).find('#TB_window').width(600).height(415).css({'top':'200px', 'margin-top': '0px'});
9
+ $(".saswp-attached-rv-count").show();
10
+ }else{
11
+ $(".saswp-attached-rv-count").hide();
12
+ }
13
+
14
+ });
15
+
16
+ if($("#saswp_attahced_reviews").val()){
17
+ saswp_attached_rv = JSON.parse($("#saswp_attahced_reviews").val());
18
+ }
19
+
20
+ $(document).on("click", ".saswp-attach-rv-checkbox", function(){
21
+
22
+ var review_id = null;
23
+ review_id = parseInt($(this).parent().attr('review-id'));
24
+
25
+ if($(this).is(":checked")){
26
+
27
+ saswp_attached_rv.push(review_id);
28
+
29
+ }else{
30
+ saswp_attached_rv.splice( saswp_attached_rv.indexOf(review_id), 1 );
31
+ }
32
+ $(".saswp-attached-rv-count").text(saswp_attached_rv.length+' Reviews Attached');
33
+ $("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv));
34
+
35
+ });
36
+
37
+ $(".saswp-load-more-rv").on("click", function(e){
38
+
39
+ var offset = $(".saswp-add-rv-loop").length;
40
+ var paged = (offset/10)+1;
41
+
42
+ $("#saswp-add-rv-automatic .spinner").addClass('is-active');
43
+
44
+ e.preventDefault();
45
+ $.get(ajaxurl,
46
+ { action:"saswp_get_reviews_on_load", offset:offset, paged: paged, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
47
+
48
+ function(response){
49
+
50
+ if(response['status'] == 't'){
51
+
52
+ var html = '';
53
+
54
+ if(response['result']){
55
+
56
+ $.each(response['result'], function(i,e){
57
+
58
+ var checked = '';
59
+
60
+ if(saswp_attached_rv.includes(parseInt(e.saswp_review_id))){
61
+ checked = "checked";
62
+ }
63
+
64
+ html += '<div class="saswp-add-rv-loop" review-id="'+e.saswp_review_id+'">';
65
+ html += '<input class="saswp-attach-rv-checkbox" type="checkbox" '+checked+'> <strong> '+e.saswp_reviewer_name+' ( Rating - '+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>';
66
+ html += '</div>';
67
+
68
+ });
69
+ $(".saswp-add-rv-automatic-list").append(html);
70
+ }
71
+
72
+ if(response['message']){
73
+
74
+ $(".saswp-rv-not-found").removeClass('saswp_hide');
75
+ $(".saswp-load-more-rv").addClass('saswp_hide');
76
+
77
+ }
78
+
79
+ }else{
80
+ alert(response['message']);
81
+ }
82
+
83
+ $("#saswp-add-rv-automatic .spinner").removeClass('is-active');
84
+
85
+ },'json');
86
+
87
+
88
+ });
89
 
90
  $(".saswp-modify-schema-toggle").click(function(e){
91
 
840
  }
841
  break;
842
 
843
+ case 'saswp-soledad-checkbox':
844
+ saswp_compatibliy_notes(current, id);
845
+ if ($(this).is(':checked')) {
846
+ $("#saswp-soledad").val(1);
847
+ }else{
848
+ $("#saswp-soledad").val(0);
849
+ }
850
+ break;
851
+
852
  case 'saswp-dw-question-answer-checkbox':
853
  saswp_compatibliy_notes(current, id);
854
  if ($(this).is(':checked')) {
1185
 
1186
  break;
1187
 
1188
+ case 'saswp-testimonial-pro-checkbox':
1189
+
1190
+ if ($(this).is(':checked')) {
1191
+ $("#saswp-testimonial-pro").val(1);
1192
+ }else{
1193
+ $("#saswp-testimonial-pro").val(0);
1194
+ }
1195
+
1196
+ break;
1197
+
1198
  case 'saswp-bne-testimonials-checkbox':
1199
 
1200
  if ($(this).is(':checked')) {
1204
  }
1205
 
1206
  break;
1207
+
1208
+ case 'saswp-ampforwp-checkbox':
1209
+ saswp_compatibliy_notes(current, id);
1210
+ if ($(this).is(':checked')) {
1211
+ $("#saswp-ampforwp").val(1);
1212
+ }else{
1213
+ $("#saswp-ampforwp").val(0);
1214
+ }
1215
+
1216
+ break;
1217
+
1218
+ case 'saswp-ampbyautomatic-checkbox':
1219
+ saswp_compatibliy_notes(current, id);
1220
+ if ($(this).is(':checked')) {
1221
+ $("#saswp-ampbyautomatic").val(1);
1222
+ }else{
1223
+ $("#saswp-ampbyautomatic").val(0);
1224
+ }
1225
+
1226
+ break;
1227
+
1228
+ case 'saswp-betteramp-checkbox':
1229
+ saswp_compatibliy_notes(current, id);
1230
+ if ($(this).is(':checked')) {
1231
+ $("#saswp-betteramp").val(1);
1232
+ }else{
1233
+ $("#saswp-betteramp").val(0);
1234
+ }
1235
+
1236
+ break;
1237
+
1238
+ case 'saswp-wpamp-checkbox':
1239
+ saswp_compatibliy_notes(current, id);
1240
+ if ($(this).is(':checked')) {
1241
+ $("#saswp-wpamp").val(1);
1242
+ }else{
1243
+ $("#saswp-wpamp").val(0);
1244
+ }
1245
+
1246
+ break;
1247
 
1248
  default:
1249
  break;
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(s){if(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(),o=s("#saswp_google_place_api_key").val(),p=s("#reviews_addon_license_key").val(),n=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&&(p||o)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:n,reviews_api:p,location:t,blocks:i,g_api:o,premium_status:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(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"),""==o&&alert("Please enter api key"),""==p&&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()}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||"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?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()),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||"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?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)),"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-facebook-enable-checkbox":s(this).is(":checked")?(s("#saswp-facebook-enable").val(1),s("#sd_facebook").show()):(s("#saswp-facebook-enable").val(0),s("#sd_facebook").hide());break;case"saswp-twitter-enable-checkbox":s(this).is(":checked")?(s("#saswp-twitter-enable").val(1),s("#sd_twitter").show()):(s("#saswp-twitter-enable").val(0),s("#sd_twitter").hide());break;case"saswp-google-plus-enable-checkbox":s(this).is(":checked")?(s("#saswp-google-plus-enable").val(1),s("#sd_google_plus").show()):(s("#saswp-google-plus-enable").val(0),s("#sd_google_plus").hide());break;case"saswp-instagram-enable-checkbox":s(this).is(":checked")?(s("#saswp-instagram-enable").val(1),s("#sd_instagram").show()):(s("#saswp-instagram-enable").val(0),s("#sd_instagram").hide());break;case"saswp-youtube-enable-checkbox":s(this).is(":checked")?(s("#sd_youtube").show(),s("#saswp-youtube-enable").val(1)):(s("#saswp-youtube-enable").val(0),s("#sd_youtube").hide());break;case"saswp-linkedin-enable-checkbox":s(this).is(":checked")?(s("#saswp-linkedin-enable").val(1),s("#sd_linkedin").show()):(s("#saswp-linkedin-enable").val(0),s("#sd_linkedin").hide());break;case"saswp-pinterest-enable-checkbox":s(this).is(":checked")?(s("#saswp-pinterest-enable").val(1),s("#sd_pinterest").show()):(s("#saswp-pinterest-enable").val(0),s("#sd_pinterest").hide());break;case"saswp-soundcloud-enable-checkbox":s(this).is(":checked")?(s("#saswp-soundcloud-enable").val(1),s("#sd_soundcloud").show()):(s("#saswp-soundcloud-enable").val(0),s("#sd_soundcloud").hide());break;case"saswp-tumblr-enable-checkbox":s(this).is(":checked")?(s("#saswp-tumblr-enable").val(1),s("#sd_tumblr").show()):(s("#saswp-tumblr-enable").val(0),s("#sd_tumblr").hide());break;case"saswp-yelp-enable-checkbox":s(this).is(":checked")?(s("#saswp-yelp-enable").val(1),s("#sd_yelp").show()):(s("#saswp-yelp-enable").val(0),s("#sd_yelp").hide());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-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-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-tagyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tagyeem").val(1):s("#saswp-tagyeem").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-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-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-bne-testimonials-checkbox":s(this).is(":checked")?s("#saswp-bne-testimonials").val(1):s("#saswp-bne-testimonials").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 o="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(o='<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>'+o)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");console.log(a),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("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id");if(s(this).is(":checked"))var i=1;else i=0;s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:i,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(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"),o=s("#"+i+"_addon_license_key").val();t&&i&&o?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:o,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(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();""!=s.trim(a)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",message:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(console.log("dd"),s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):alert("Please enter the message")}),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(),s(".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()}),s(".saswp-modify_schema_post_enable").on("click",function(e){var a=s(this);a.addClass("updating-message"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){a.remove(),s(".saswp-add-custom-schema-div").remove(),s("#post_specific .inside").append(e),a.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();var a=s(".saswp-review-item-list-table tr").length;console.log(a);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"),o=s(this).attr("div_type"),p=s("saswp_specific_"+t+" , .saswp-"+o+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+o+"-table-div:nth-child("+p+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,o,t,i+"_")}),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(),o="",p=a.toLowerCase()+"_"+i,n="saswp_fixed_image["+i+"]";"manual_text"==t?(o+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',o+='<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(o),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(o+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(o),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,o+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(o),saswpCustomSelect2())},"json"):"custom_field"==t?(o+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',o+="</select></td>",o+='<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(o),saswpCustomSelect2()):"fixed_image"==t?(o+="<td>",o+="<fieldset>",o+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',o+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+n+'[height]" id="'+p+'_height" value="">',o+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+n+'[width]" id="'+p+'_width" value="">',o+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+n+'[thumbnail]" id="'+p+'_thumbnail" value="">',o+='<div class="saswp_image_div_'+p+'">',o+="</div>",o+="</fieldset>",o+="</td>",o+='<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(o),saswpCustomSelect2()):(o+="<td></td>",o+='<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(o),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 o=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:o,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>')}),"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>"),"saswp_reviews"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.collections_page_url+"' id='' class='page-title-action'>Collections</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),console.log(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(".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(){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 i,o,p=s("#saswp_collection_id").val();p&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:p,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")),(i=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",i.innerHTML="Copied!",document.body.appendChild(i);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),i.style.left=e.pageX-10+"px",i.style.top=e.pageY+15+"px",i.style.opacity=1,o=setTimeout(function(){i.style.opacity=0},500)}(s))},!1)});
1
+ var saswp_attached_rv=[];jQuery(document).ready(function(s){if(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("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("review-id")),s(this).is(":checked")?saswp_attached_rv.push(e):saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),s(".saswp-attached-rv-count").text(saswp_attached_rv.length+" Reviews Attached"),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(".saswp-add-rv-loop").length,t=a/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",offset:a,paged:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var a="";e.result&&(s.each(e.result,function(s,e){var t="";saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(t="checked"),a+='<div class="saswp-add-rv-loop" review-id="'+e.saswp_review_id+'">',a+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+t+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>',a+="</div>"}),s(".saswp-add-rv-automatic-list").append(a)),e.message&&(s(".saswp-rv-not-found").removeClass("saswp_hide"),s(".saswp-load-more-rv").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(),o=s("#saswp_google_place_api_key").val(),p=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&&(p||o)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:c,reviews_api:p,location:t,blocks:i,g_api:o,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"),""==o&&alert("Please enter api key"),""==p&&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()}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||"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?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()),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||"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?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)),"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-facebook-enable-checkbox":s(this).is(":checked")?(s("#saswp-facebook-enable").val(1),s("#sd_facebook").show()):(s("#saswp-facebook-enable").val(0),s("#sd_facebook").hide());break;case"saswp-twitter-enable-checkbox":s(this).is(":checked")?(s("#saswp-twitter-enable").val(1),s("#sd_twitter").show()):(s("#saswp-twitter-enable").val(0),s("#sd_twitter").hide());break;case"saswp-google-plus-enable-checkbox":s(this).is(":checked")?(s("#saswp-google-plus-enable").val(1),s("#sd_google_plus").show()):(s("#saswp-google-plus-enable").val(0),s("#sd_google_plus").hide());break;case"saswp-instagram-enable-checkbox":s(this).is(":checked")?(s("#saswp-instagram-enable").val(1),s("#sd_instagram").show()):(s("#saswp-instagram-enable").val(0),s("#sd_instagram").hide());break;case"saswp-youtube-enable-checkbox":s(this).is(":checked")?(s("#sd_youtube").show(),s("#saswp-youtube-enable").val(1)):(s("#saswp-youtube-enable").val(0),s("#sd_youtube").hide());break;case"saswp-linkedin-enable-checkbox":s(this).is(":checked")?(s("#saswp-linkedin-enable").val(1),s("#sd_linkedin").show()):(s("#saswp-linkedin-enable").val(0),s("#sd_linkedin").hide());break;case"saswp-pinterest-enable-checkbox":s(this).is(":checked")?(s("#saswp-pinterest-enable").val(1),s("#sd_pinterest").show()):(s("#saswp-pinterest-enable").val(0),s("#sd_pinterest").hide());break;case"saswp-soundcloud-enable-checkbox":s(this).is(":checked")?(s("#saswp-soundcloud-enable").val(1),s("#sd_soundcloud").show()):(s("#saswp-soundcloud-enable").val(0),s("#sd_soundcloud").hide());break;case"saswp-tumblr-enable-checkbox":s(this).is(":checked")?(s("#saswp-tumblr-enable").val(1),s("#sd_tumblr").show()):(s("#saswp-tumblr-enable").val(0),s("#sd_tumblr").hide());break;case"saswp-yelp-enable-checkbox":s(this).is(":checked")?(s("#saswp-yelp-enable").val(1),s("#sd_yelp").show()):(s("#saswp-yelp-enable").val(0),s("#sd_yelp").hide());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-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-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-tagyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tagyeem").val(1):s("#saswp-tagyeem").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-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-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-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 o="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(o='<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>'+o)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");console.log(a),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("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id");if(s(this).is(":checked"))var i=1;else i=0;s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:i,schema_id:a,post_id:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(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"),o=s("#"+i+"_addon_license_key").val();t&&i&&o?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:o,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(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();""!=s.trim(a)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",message:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(console.log("dd"),s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):alert("Please enter the message")}),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(),s(".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()}),s(".saswp-modify_schema_post_enable").on("click",function(e){var a=s(this);a.addClass("updating-message"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){a.remove(),s(".saswp-add-custom-schema-div").remove(),s("#post_specific .inside").append(e),a.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();var a=s(".saswp-review-item-list-table tr").length;console.log(a);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"),o=s(this).attr("div_type"),p=s("saswp_specific_"+t+" , .saswp-"+o+"-table-div").length,c=s("saswp_specific_"+t+" , .saswp-"+o+"-table-div:nth-child("+p+")").attr("data-id");(c=++c)||(c=0),saswp_get_post_specific_schema_fields(a,c,i,o,t,i+"_")}),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(),o="",p=a.toLowerCase()+"_"+i,c="saswp_fixed_image["+i+"]";"manual_text"==t?(o+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',o+='<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(o),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(o+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(o),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,o+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(o),saswpCustomSelect2())},"json"):"custom_field"==t?(o+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',o+="</select></td>",o+='<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(o),saswpCustomSelect2()):"fixed_image"==t?(o+="<td>",o+="<fieldset>",o+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',o+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+c+'[height]" id="'+p+'_height" value="">',o+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+c+'[width]" id="'+p+'_width" value="">',o+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+c+'[thumbnail]" id="'+p+'_thumbnail" value="">',o+='<div class="saswp_image_div_'+p+'">',o+="</div>",o+="</fieldset>",o+="</td>",o+='<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(o),saswpCustomSelect2()):(o+="<td></td>",o+='<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(o),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 o=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:o,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>')}),"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>"),"saswp_reviews"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.collections_page_url+"' id='' class='page-title-action'>Collections</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),console.log(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(".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(){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 i,o,p=s("#saswp_collection_id").val();p&&(s(".spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_collection_platforms",collection_id:p,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")),(i=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",i.innerHTML="Copied!",document.body.appendChild(i);var c=document.getElementById("motivatebox");c&&c.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),i.style.left=e.pageX-10+"px",i.style.top=e.pageY+15+"px",i.style.opacity=1,o=setTimeout(function(){i.style.opacity=0},500)}(s))},!1)});
admin_section/js/review-form.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($){
2
+
3
+ $(".saswp-rating-front-div").rateYo({
4
+ rating : 1,
5
+ fullStar: true,
6
+ onSet: function (rating, rateYoInstance) {
7
+ $(this).next().val(rating);
8
+ }
9
+ });
10
+ });
admin_section/js/review-form.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function(t){t(".saswp-rating-front-div").rateYo({rating:1,fullStar:!0,onSet:function(n,a){t(this).next().val(n)}})});
admin_section/settings.php CHANGED
@@ -619,13 +619,19 @@ function saswp_amp_page_callback(){
619
  )
620
  ) ;
621
 
622
- if ( is_plugin_active('accelerated-mobile-pages/accelerated-moblie-pages.php') || is_plugin_active('amp/amp.php') ) {
 
 
 
 
 
 
623
  }else{
624
 
625
  $non_amp_enable_field['attributes'] = array(
626
  'disabled' => 'disabled'
627
  );
628
- $non_amp_enable_field['note'] = esc_html__('Requires','schema-and-structured-data-for-wp'). ' <a target="_blank" href="https://wordpress.org/plugins/accelerated-mobile-pages/">AMP for WP</a> or <a target="_blank" href="https://wordpress.org/plugins/amp/">AMP</a>';
629
  $settings['saswp-for-amp'] = 0;
630
 
631
  }
@@ -1170,13 +1176,20 @@ function saswp_import_callback(){
1170
  $seo_pressor_message = '';
1171
  $wpsso_core_message = '';
1172
  $aiors_message = '';
 
1173
  $schema_plugin = saswp_check_data_imported_from('schema');
1174
  $schema_pro_plugin = saswp_check_data_imported_from('schema_pro');
1175
  $wp_seo_schema_plugin = saswp_check_data_imported_from('wp_seo_schema');
1176
  $seo_pressor = saswp_check_data_imported_from('seo_pressor');
1177
  $wpsso_core = saswp_check_data_imported_from('wpsso_core');
1178
  $aiors = saswp_check_data_imported_from('aiors');
 
1179
 
 
 
 
 
 
1180
  if($aiors->post_count !=0 ){
1181
 
1182
  $aiors_message = $message;
@@ -1250,6 +1263,11 @@ function saswp_import_callback(){
1250
  <?php echo '<p>'.esc_html__($aiors_message, 'schema-and-structured-data-for-wp').'</p>'; ?>
1251
  </div>
1252
  </li>
 
 
 
 
 
1253
 
1254
  </ul>
1255
  <?php
@@ -1635,6 +1653,55 @@ function saswp_compatibility_page_callback(){
1635
 
1636
  $settings = saswp_defaultSettings();
1637
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1638
  $tagyeem = array(
1639
  'label' => 'Tagyeem With Jannah Theme',
1640
  'id' => 'saswp-tagyeem-checkbox',
@@ -1910,7 +1977,9 @@ function saswp_compatibility_page_callback(){
1910
  'name' => 'sd_data[saswp-the-events-calendar]',
1911
  )
1912
  );
1913
-
 
 
1914
  $kk_star = array(
1915
  'label' => 'kk Star Ratings',
1916
  'id' => 'saswp-kk-star-raring-checkbox',
@@ -1998,6 +2067,18 @@ function saswp_compatibility_page_callback(){
1998
  'name' => 'sd_data[saswp-extra]',
1999
  )
2000
  );
 
 
 
 
 
 
 
 
 
 
 
 
2001
  $dwquestiton = array(
2002
  'label' => 'DW Question Answer',
2003
  'id' => 'saswp-dw-question-answer-checkbox',
@@ -2073,6 +2154,19 @@ function saswp_compatibility_page_callback(){
2073
  'name' => 'sd_data[saswp-bne-testimonials]',
2074
  )
2075
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
2076
 
2077
  $flex_lmx = array(
2078
  'label' => 'FlexMLS IDX Plugin',
@@ -2136,14 +2230,19 @@ function saswp_compatibility_page_callback(){
2136
 
2137
  $field_objs = new saswp_fields_generator();
2138
 
2139
- $meta_fields = array(
 
 
 
 
2140
  $kk_star,
2141
  $wppostratings,
2142
  $bbpress,
2143
  $woocommerce,
2144
  $woocommerce_bok,
2145
  $woocommerce_mem,
2146
- $cooked,
 
2147
  $tagyeem,
2148
  $extratheme,
2149
  $dwquestiton,
@@ -2172,6 +2271,7 @@ function saswp_compatibility_page_callback(){
2172
  $modern_events_calendar,
2173
  $easy_testimonials,
2174
  $bne_testimonials,
 
2175
  $flex_lmx
2176
 
2177
  );
@@ -2389,6 +2489,8 @@ function saswp_enqueue_style_js( $hook ) {
2389
  // Everything needed for media upload
2390
  wp_enqueue_media();
2391
 
 
 
2392
 
2393
  wp_enqueue_script( 'saswp-timepicker-js', SASWP_PLUGIN_URL . 'admin_section/js/jquery.timepicker.js', false, SASWP_VERSION);
2394
  wp_enqueue_style( 'saswp-timepicker-css', SASWP_PLUGIN_URL . 'admin_section/css/jquery.timepicker.css', false , SASWP_VERSION );
@@ -2414,7 +2516,11 @@ add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_js' );
2414
 
2415
  function saswp_get_field_note($pname){
2416
 
2417
- $notes = array(
 
 
 
 
2418
  '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>',
2419
  '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>',
2420
  'bb_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bbpress/">bbPress</a>',
@@ -2446,15 +2552,18 @@ function saswp_get_field_note($pname){
2446
  '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>',
2447
  '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>',
2448
  'jannah' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>',
 
2449
  'zip_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
2450
  '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>',
2451
  '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>',
2452
  'easy_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easy-testimonials">Easy Testimonials</a>',
2453
- 'bne_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bne-testimonials/">BNE Testimonials</a>'
 
 
2454
  );
2455
 
2456
  $active = saswp_compatible_active_list();
2457
-
2458
  if(!isset($active[$pname])){
2459
 
2460
  return $notes[$pname];
619
  )
620
  ) ;
621
 
622
+ if (
623
+ is_plugin_active('accelerated-mobile-pages/accelerated-moblie-pages.php') ||
624
+ is_plugin_active('amp/amp.php') ||
625
+ is_plugin_active('better-amp/better-amp.php') ||
626
+ is_plugin_active('wp-amp/wp-amp.php')
627
+
628
+ ) {
629
  }else{
630
 
631
  $non_amp_enable_field['attributes'] = array(
632
  'disabled' => 'disabled'
633
  );
634
+ $non_amp_enable_field['note'] = esc_html__('Requires','schema-and-structured-data-for-wp'). ' <a target="_blank" href="https://wordpress.org/plugins/accelerated-mobile-pages/">AMP for WP</a> or <a target="_blank" href="https://wordpress.org/plugins/amp/">AMP</a> or <a target="_blank" href="https://wordpress.org/plugins/better-amp/">Better AMP</a> or <a target="_blank" href="https://codecanyon.net/item/wp-amp-accelerated-mobile-pages-for-wordpress-and-woocommerce/16278608">WP AMP</a>';
635
  $settings['saswp-for-amp'] = 0;
636
 
637
  }
1176
  $seo_pressor_message = '';
1177
  $wpsso_core_message = '';
1178
  $aiors_message = '';
1179
+ $wp_custom_rv_message = '';
1180
  $schema_plugin = saswp_check_data_imported_from('schema');
1181
  $schema_pro_plugin = saswp_check_data_imported_from('schema_pro');
1182
  $wp_seo_schema_plugin = saswp_check_data_imported_from('wp_seo_schema');
1183
  $seo_pressor = saswp_check_data_imported_from('seo_pressor');
1184
  $wpsso_core = saswp_check_data_imported_from('wpsso_core');
1185
  $aiors = saswp_check_data_imported_from('aiors');
1186
+ $wp_custom_rv = saswp_check_data_imported_from('wp_custom_rv');
1187
 
1188
+ if($wp_custom_rv->post_count !=0 ){
1189
+
1190
+ $wp_custom_rv_message = $message;
1191
+
1192
+ }
1193
  if($aiors->post_count !=0 ){
1194
 
1195
  $aiors_message = $message;
1263
  <?php echo '<p>'.esc_html__($aiors_message, 'schema-and-structured-data-for-wp').'</p>'; ?>
1264
  </div>
1265
  </li>
1266
+ <li><div class="saswp-tools-field-title"><div class="saswp-tooltip"><span class="saswp-tooltiptext"><?php echo esc_html__('All the settings and data you can import from this plugin when you click start importing','schema-and-structured-data-for-wp') ?></span><strong><?php echo esc_html__('WP Customer Reviews','schema-and-structured-data-for-wp'); ?></strong></div><button data-id="wp_custom_rv" class="button saswp-import-plugins"><?php echo esc_html__('Import','schema-and-structured-data-for-wp'); ?></button>
1267
+ <p class="saswp-imported-message"></p>
1268
+ <?php echo '<p>'.esc_html__($wp_custom_rv_message, 'schema-and-structured-data-for-wp').'</p>'; ?>
1269
+ </div>
1270
+ </li>
1271
 
1272
  </ul>
1273
  <?php
1653
 
1654
  $settings = saswp_defaultSettings();
1655
 
1656
+ $ampforwp = array(
1657
+ 'label' => 'AMPforWP',
1658
+ 'id' => 'saswp-ampforwp-checkbox',
1659
+ 'name' => 'saswp-ampforwp-checkbox',
1660
+ 'type' => 'checkbox',
1661
+ 'class' => 'checkbox saswp-checkbox',
1662
+ 'note' => saswp_get_field_note('ampforwp'),
1663
+ 'hidden' => array(
1664
+ 'id' => 'saswp-ampforwp',
1665
+ 'name' => 'sd_data[saswp-ampforwp]',
1666
+ )
1667
+ );
1668
+ $ampbyautomatic = array(
1669
+ 'label' => 'AMP By Automatic',
1670
+ 'id' => 'saswp-ampbyautomatic-checkbox',
1671
+ 'name' => 'saswp-ampbyautomatic-checkbox',
1672
+ 'type' => 'checkbox',
1673
+ 'class' => 'checkbox saswp-checkbox',
1674
+ 'note' => saswp_get_field_note('ampbyautomatic'),
1675
+ 'hidden' => array(
1676
+ 'id' => 'saswp-ampbyautomatic',
1677
+ 'name' => 'sd_data[saswp-ampbyautomatic]',
1678
+ )
1679
+ );
1680
+ $betteramp = array(
1681
+ 'label' => 'Better AMP',
1682
+ 'id' => 'saswp-betteramp-checkbox',
1683
+ 'name' => 'saswp-betteramp-checkbox',
1684
+ 'type' => 'checkbox',
1685
+ 'class' => 'checkbox saswp-checkbox',
1686
+ 'note' => saswp_get_field_note('betteramp'),
1687
+ 'hidden' => array(
1688
+ 'id' => 'saswp-betteramp',
1689
+ 'name' => 'sd_data[saswp-betteramp]',
1690
+ )
1691
+ );
1692
+ $wpamp = array(
1693
+ 'label' => 'WP AMP',
1694
+ 'id' => 'saswp-wpamp-checkbox',
1695
+ 'name' => 'saswp-wpamp-checkbox',
1696
+ 'type' => 'checkbox',
1697
+ 'class' => 'checkbox saswp-checkbox',
1698
+ 'note' => saswp_get_field_note('wpamp'),
1699
+ 'hidden' => array(
1700
+ 'id' => 'saswp-wpamp',
1701
+ 'name' => 'sd_data[saswp-wpamp]',
1702
+ )
1703
+ );
1704
+
1705
  $tagyeem = array(
1706
  'label' => 'Tagyeem With Jannah Theme',
1707
  'id' => 'saswp-tagyeem-checkbox',
1977
  'name' => 'sd_data[saswp-the-events-calendar]',
1978
  )
1979
  );
1980
+
1981
+
1982
+
1983
  $kk_star = array(
1984
  'label' => 'kk Star Ratings',
1985
  'id' => 'saswp-kk-star-raring-checkbox',
2067
  'name' => 'sd_data[saswp-extra]',
2068
  )
2069
  );
2070
+ $soledad = array(
2071
+ 'label' => 'Soledad Theme',
2072
+ 'id' => 'saswp-soledad-checkbox',
2073
+ 'name' => 'saswp-soledad-checkbox',
2074
+ 'type' => 'checkbox',
2075
+ 'class' => 'checkbox saswp-checkbox',
2076
+ 'note' => saswp_get_field_note('soledad'),
2077
+ 'hidden' => array(
2078
+ 'id' => 'saswp-soledad',
2079
+ 'name' => 'sd_data[saswp-soledad]',
2080
+ )
2081
+ );
2082
  $dwquestiton = array(
2083
  'label' => 'DW Question Answer',
2084
  'id' => 'saswp-dw-question-answer-checkbox',
2154
  'name' => 'sd_data[saswp-bne-testimonials]',
2155
  )
2156
  );
2157
+
2158
+ $testimonial_pro = array(
2159
+ 'label' => 'Testimonial Pro',
2160
+ 'id' => 'saswp-testimonial-pro-checkbox',
2161
+ 'name' => 'saswp-testimonial-pro-checkbox',
2162
+ 'type' => 'checkbox',
2163
+ 'class' => 'checkbox saswp-checkbox',
2164
+ 'note' => saswp_get_field_note('testimonial_pro'),
2165
+ 'hidden' => array(
2166
+ 'id' => 'saswp-testimonial-pro',
2167
+ 'name' => 'sd_data[saswp-testimonial-pro]',
2168
+ )
2169
+ );
2170
 
2171
  $flex_lmx = array(
2172
  'label' => 'FlexMLS IDX Plugin',
2230
 
2231
  $field_objs = new saswp_fields_generator();
2232
 
2233
+ $meta_fields = array(
2234
+ $ampforwp,
2235
+ $ampbyautomatic,
2236
+ $betteramp,
2237
+ $wpamp,
2238
  $kk_star,
2239
  $wppostratings,
2240
  $bbpress,
2241
  $woocommerce,
2242
  $woocommerce_bok,
2243
  $woocommerce_mem,
2244
+ $cooked,
2245
+ $soledad,
2246
  $tagyeem,
2247
  $extratheme,
2248
  $dwquestiton,
2271
  $modern_events_calendar,
2272
  $easy_testimonials,
2273
  $bne_testimonials,
2274
+ $testimonial_pro,
2275
  $flex_lmx
2276
 
2277
  );
2489
  // Everything needed for media upload
2490
  wp_enqueue_media();
2491
 
2492
+ wp_enqueue_script('thickbox');
2493
+ wp_enqueue_style('thickbox');
2494
 
2495
  wp_enqueue_script( 'saswp-timepicker-js', SASWP_PLUGIN_URL . 'admin_section/js/jquery.timepicker.js', false, SASWP_VERSION);
2496
  wp_enqueue_style( 'saswp-timepicker-css', SASWP_PLUGIN_URL . 'admin_section/css/jquery.timepicker.css', false , SASWP_VERSION );
2516
 
2517
  function saswp_get_field_note($pname){
2518
 
2519
+ $notes = array(
2520
+ '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>',
2521
+ 'ampbyautomatic' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/amp/">AMP</a>',
2522
+ 'betteramp' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/kk-star-ratings/">Better AMP</a>',
2523
+ '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>',
2524
  '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>',
2525
  '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>',
2526
  'bb_press' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bbpress/">bbPress</a>',
2552
  '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>',
2553
  '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>',
2554
  'jannah' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://codecanyon.net/item/taqyeem-wordpress-review-plugin/4558799">Taqyeem</a>',
2555
+ '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>',
2556
  'zip_recipes' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
2557
  '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>',
2558
  '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>',
2559
  'easy_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/easy-testimonials">Easy Testimonials</a>',
2560
+ 'bne_testimonials' => esc_html__('Requires','schema-and-structured-data-for-wp').' <a target="_blank" href="https://wordpress.org/plugins/bne-testimonials/">BNE Testimonials</a>',
2561
+ 'testimonial_pro' => esc_html__('Testimonial Pro','schema-and-structured-data-for-wp').' <a target="_blank" href="https://shapedplugin.com/plugin/testimonial-pro/">Testimonial Pro</a>'
2562
+
2563
  );
2564
 
2565
  $active = saswp_compatible_active_list();
2566
+
2567
  if(!isset($active[$pname])){
2568
 
2569
  return $notes[$pname];
admin_section/structure_admin.php CHANGED
@@ -1348,6 +1348,7 @@ function saswp_import_plugin_data(){
1348
  if ( is_plugin_active('wp-seo-structured-data-schema/wp-seo-structured-data-schema.php')) {
1349
  $result = saswp_import_wp_seo_schema_plugin_data();
1350
  }
 
1351
  case 'seo_pressor':
1352
  if ( is_plugin_active('seo-pressor/seo-pressor.php')) {
1353
  $result = saswp_import_seo_pressor_plugin_data();
@@ -1362,7 +1363,13 @@ function saswp_import_plugin_data(){
1362
  if ( is_plugin_active('all-in-one-schemaorg-rich-snippets/index.php')) {
1363
  $result = saswp_import_aiors_plugin_data();
1364
  }
1365
- break;
 
 
 
 
 
 
1366
 
1367
 
1368
  default:
1348
  if ( is_plugin_active('wp-seo-structured-data-schema/wp-seo-structured-data-schema.php')) {
1349
  $result = saswp_import_wp_seo_schema_plugin_data();
1350
  }
1351
+ break;
1352
  case 'seo_pressor':
1353
  if ( is_plugin_active('seo-pressor/seo-pressor.php')) {
1354
  $result = saswp_import_seo_pressor_plugin_data();
1363
  if ( is_plugin_active('all-in-one-schemaorg-rich-snippets/index.php')) {
1364
  $result = saswp_import_aiors_plugin_data();
1365
  }
1366
+ break;
1367
+
1368
+ case 'wp_custom_rv':
1369
+ if ( is_plugin_active('wp-customer-reviews/wp-customer-reviews-3.php')) {
1370
+ $result = saswp_import_wp_custom_rv_plugin_data();
1371
+ }
1372
+ break;
1373
 
1374
 
1375
  default:
core/3rd-party/class-amp-review-form-blacklist.php ADDED
@@ -0,0 +1,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(defined('AMP__DIR__')){
4
+ $amp_blacklist_sanitizer = realpath( AMP__DIR__ . 'includes/sanitizers/class-amp-blacklist-sanitizer.php') ;
5
+ }
6
+ elseif(defined('AMP__VENDOR__DIR__')){
7
+ $amp_blacklist_sanitizer = realpath( AMP__VENDOR__DIR__ . 'includes/sanitizers/class-amp-blacklist-sanitizer.php') ;
8
+ }
9
+
10
+ if ( $amp_blacklist_sanitizer ) {
11
+ include_once $amp_blacklist_sanitizer;
12
+ }
13
+
14
+ if ( class_exists( 'AMP_Blacklist_Sanitizer' ) ) {
15
+
16
+ class AMP_Review_Form_Blacklist extends AMP_Blacklist_Sanitizer {
17
+
18
+ const PATTERN_REL_WP_ATTACHMENT = '#wp-att-([\d]+)#';
19
+
20
+ protected $DEFAULT_ARGS = array(
21
+
22
+ 'add_blacklisted_protocols' => array(),
23
+
24
+ 'add_blacklisted_tags' => array(),
25
+
26
+ 'add_blacklisted_attributes' => array(),
27
+
28
+ );
29
+
30
+
31
+
32
+ public function sanitize() {
33
+
34
+ $blacklisted_tags = $this->get_blacklisted_tags();
35
+
36
+ $blacklisted_attributes = $this->get_blacklisted_attributes();
37
+
38
+ $blacklisted_protocols = $this->get_blacklisted_protocols();
39
+
40
+ $body = $this->get_body_node();
41
+
42
+ $this->strip_tags( $body, $blacklisted_tags );
43
+
44
+ $this->strip_attributes_recursive( $body, $blacklisted_attributes, $blacklisted_protocols );
45
+
46
+ }
47
+
48
+ private function strip_attributes_recursive( $node, $bad_attributes, $bad_protocols ) {
49
+
50
+ if ( $node->nodeType !== XML_ELEMENT_NODE ) {
51
+
52
+ return;
53
+
54
+ }
55
+
56
+ $node_name = $node->nodeName;
57
+
58
+ // Some nodes may contain valid content but are themselves invalid.
59
+
60
+ // Remove the node but preserve the children.
61
+
62
+ if ( 'font' === $node_name ) {
63
+
64
+ $this->replace_node_with_children( $node, $bad_attributes, $bad_protocols );
65
+
66
+ return;
67
+
68
+ } elseif ( 'a' === $node_name && false === $this->validate_a_node( $node ) ) {
69
+
70
+ $this->replace_node_with_children( $node, $bad_attributes, $bad_protocols );
71
+
72
+ return;
73
+
74
+ }
75
+
76
+ if ( $node->hasAttributes() ) {
77
+
78
+ $length = $node->attributes->length;
79
+
80
+ for ( $i = $length - 1; $i >= 0; $i-- ) {
81
+
82
+ $attribute = $node->attributes->item( $i );
83
+
84
+ $attribute_name = strtolower( $attribute->name );
85
+
86
+ if ( in_array( $attribute_name, $bad_attributes ) ) {
87
+
88
+ $node->removeAttribute( $attribute_name );
89
+
90
+ continue;
91
+
92
+ }
93
+
94
+ // on* attributes (like onclick) are a special case
95
+
96
+ if ( 0 === stripos( $attribute_name, 'on' ) && $attribute_name != 'on' ) {
97
+
98
+ $node->removeAttribute( $attribute_name );
99
+
100
+ continue;
101
+
102
+ } elseif ( 'a' === $node_name ) {
103
+
104
+ $this->sanitize_a_attribute( $node, $attribute );
105
+
106
+ }
107
+
108
+ }
109
+
110
+ }
111
+
112
+ $length = $node->childNodes->length;
113
+
114
+ for ( $i = $length - 1; $i >= 0; $i-- ) {
115
+
116
+ $child_node = $node->childNodes->item( $i );
117
+
118
+
119
+
120
+ $this->strip_attributes_recursive( $child_node, $bad_attributes, $bad_protocols );
121
+
122
+ }
123
+
124
+ }
125
+
126
+ private function strip_tags( $node, $tag_names ) {
127
+
128
+ foreach ( $tag_names as $tag_name ) {
129
+
130
+ $elements = $node->getElementsByTagName( $tag_name );
131
+
132
+ $length = $elements->length;
133
+
134
+ if ( 0 === $length ) {
135
+
136
+ continue;
137
+
138
+ }
139
+
140
+ for ( $i = $length - 1; $i >= 0; $i-- ) {
141
+
142
+ $element = $elements->item( $i );
143
+
144
+ $parent_node = $element->parentNode;
145
+
146
+ $parent_node->removeChild( $element );
147
+
148
+
149
+
150
+ if ( 'body' !== $parent_node->nodeName && AMP_DOM_Utils::is_node_empty( $parent_node ) ) {
151
+
152
+ $parent_node->parentNode->removeChild( $parent_node );
153
+
154
+ }
155
+
156
+ }
157
+
158
+ }
159
+
160
+ }
161
+
162
+
163
+
164
+ private function sanitize_a_attribute( $node, $attribute ) {
165
+
166
+ $attribute_name = strtolower( $attribute->name );
167
+
168
+
169
+
170
+ if ( 'rel' === $attribute_name ) {
171
+
172
+ $old_value = $attribute->value;
173
+
174
+ $new_value = trim( preg_replace( self::PATTERN_REL_WP_ATTACHMENT, '', $old_value ) );
175
+
176
+ if ( empty( $new_value ) ) {
177
+
178
+ $node->removeAttribute( $attribute_name );
179
+
180
+ } elseif ( $old_value !== $new_value ) {
181
+
182
+ $node->setAttribute( $attribute_name, $new_value );
183
+
184
+ }
185
+
186
+ } elseif ( 'rev' === $attribute_name ) {
187
+
188
+ // rev removed from HTML5 spec, which was used by Jetpack Markdown.
189
+
190
+ $node->removeAttribute( $attribute_name );
191
+
192
+ } elseif ( 'target' === $attribute_name ) {
193
+
194
+ // _blank is the only allowed value and it must be lowercase.
195
+
196
+ // replace _new with _blank and others should simply be removed.
197
+
198
+ $old_value = strtolower( $attribute->value );
199
+
200
+ if ( '_blank' === $old_value || '_new' === $old_value ) {
201
+
202
+ // _new is not allowed; swap with _blank
203
+
204
+ $node->setAttribute( $attribute_name, '_blank' );
205
+
206
+ } else {
207
+
208
+ // only _blank is allowed
209
+
210
+ $node->removeAttribute( $attribute_name );
211
+
212
+ }
213
+
214
+ }
215
+
216
+ }
217
+
218
+ private function validate_a_node( $node ) {
219
+
220
+ // Get the href attribute
221
+
222
+ $href = $node->getAttribute( 'href' );
223
+
224
+ // If no href is set and this isn't an anchor, it's invalid
225
+
226
+ if ( empty( $href ) ) {
227
+
228
+ $name_attr = $node->getAttribute( 'name' );
229
+
230
+ if ( ! empty( $name_attr ) ) {
231
+
232
+ // No further validation is required
233
+
234
+ return true;
235
+
236
+ } else {
237
+
238
+ return false;
239
+
240
+ }
241
+
242
+ }
243
+
244
+ // If this is an anchor link, just return true
245
+
246
+ if ( 0 === strpos( $href, '#' ) ) {
247
+
248
+ return true;
249
+
250
+ }
251
+
252
+ // If the href starts with a '/', append the home_url to it for validation purposes.
253
+
254
+ if ( 0 === stripos( $href, '/' ) ) {
255
+
256
+ $href = untrailingslashit( get_home_url() ) . $href;
257
+
258
+ }
259
+
260
+ $valid_protocols = array( 'http', 'https', 'mailto', 'sms', 'tel', 'viber', 'whatsapp' );
261
+
262
+ $special_protocols = array( 'tel', 'sms' ); // these ones don't valid with `filter_var+FILTER_VALIDATE_URL`
263
+
264
+ $protocol = strtok( $href, ':' );
265
+
266
+ if ( false === filter_var( $href, FILTER_VALIDATE_URL )
267
+
268
+ && ! in_array( $protocol, $special_protocols ) ) {
269
+
270
+ return false;
271
+
272
+ }
273
+
274
+ if ( ! in_array( $protocol, $valid_protocols ) ) {
275
+
276
+ return false;
277
+
278
+ }
279
+
280
+ return true;
281
+
282
+ }
283
+
284
+
285
+
286
+ private function replace_node_with_children( $node, $bad_attributes, $bad_protocols ) {
287
+
288
+ // If the node has children and also has a parent node,
289
+
290
+ // clone and re-add all the children just before current node.
291
+
292
+ if ( $node->hasChildNodes() && $node->parentNode ) {
293
+
294
+ foreach ( $node->childNodes as $child_node ) {
295
+
296
+ $new_child = $child_node->cloneNode( true );
297
+
298
+ $this->strip_attributes_recursive( $new_child, $bad_attributes, $bad_protocols );
299
+
300
+ $node->parentNode->insertBefore( $new_child, $node );
301
+
302
+ }
303
+
304
+ }
305
+
306
+ // Remove the node from the parent, if defined.
307
+
308
+ if ( $node->parentNode ) {
309
+
310
+ $node->parentNode->removeChild( $node );
311
+
312
+ }
313
+
314
+ }
315
+
316
+ private function merge_defaults_with_args( $key, $values ) {
317
+
318
+ // Merge default values with user specified args
319
+
320
+ if ( ! empty( $this->args[ $key ] )
321
+
322
+ && is_array( $this->args[ $key ] ) ) {
323
+
324
+ $values = array_merge( $values, $this->args[ $key ] );
325
+
326
+ }
327
+
328
+ return $values;
329
+
330
+ }
331
+
332
+ private function get_blacklisted_protocols() {
333
+
334
+ return $this->merge_defaults_with_args( 'add_blacklisted_protocols', array(
335
+
336
+ 'javascript',
337
+
338
+ ) );
339
+
340
+ }
341
+
342
+ private function get_blacklisted_tags() {
343
+
344
+ return $this->merge_defaults_with_args( 'add_blacklisted_tags', array(
345
+
346
+ 'script',
347
+
348
+ 'noscript',
349
+
350
+ 'style',
351
+
352
+ 'frame',
353
+
354
+ 'frameset',
355
+
356
+ 'object',
357
+
358
+ 'param',
359
+
360
+ 'applet',
361
+
362
+ // Removed this form elements to make sure
363
+
364
+ // Form works in AMP
365
+
366
+ // 'form',
367
+
368
+ // 'label',
369
+
370
+ // 'input',
371
+
372
+ // 'textarea',
373
+
374
+ // 'select',
375
+
376
+ // 'option',
377
+
378
+ 'link',
379
+
380
+ 'picture',
381
+
382
+ // Sanitizers run after embed handlers, so if anything wasn't matched, it needs to be removed.
383
+
384
+ 'embed',
385
+
386
+ 'embedvideo',
387
+
388
+ // Other weird ones
389
+
390
+ 'comments-count',
391
+
392
+ // These are converted into amp-* versions
393
+
394
+ //'img',
395
+
396
+ //'video',
397
+
398
+ //'audio',
399
+
400
+ //'iframe',
401
+
402
+ ) );
403
+
404
+ }
405
+
406
+ private function get_blacklisted_attributes() {
407
+
408
+ return $this->merge_defaults_with_args( 'add_blacklisted_attributes', array(
409
+
410
+ 'style',
411
+
412
+ 'size',
413
+
414
+ 'clear',
415
+
416
+ 'align',
417
+
418
+ 'valign',
419
+
420
+ ) );
421
+
422
+ }
423
+
424
+ }
425
+
426
+ }
core/array-list/compatibility-list.php CHANGED
@@ -4,6 +4,30 @@ if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  return array(
6
  'plugins' => array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  'flex_mls_idx' => array(
8
  'name' => 'FlexMLS IDX',
9
  'free' => 'flexmls-idx/flexmls_connect.php',
@@ -29,6 +53,12 @@ return array(
29
  'opt_name' => 'saswp-bne-testimonials',
30
  'part_in' => 'free',
31
  ),
 
 
 
 
 
 
32
  'learn_press' => array(
33
  'name' => 'Learn Press',
34
  'free' => 'learnpress/learnpress.php',
@@ -207,6 +237,12 @@ return array(
207
 
208
  ),
209
  'themes' => array(
 
 
 
 
 
 
210
  'jannah' => array(
211
  'name' => 'Jannah',
212
  'free' => 'jannah',
4
 
5
  return array(
6
  'plugins' => array(
7
+ 'ampforwp' => array(
8
+ 'name' => 'AMPforWP',
9
+ 'free' => 'accelerated-mobile-pages/accelerated-moblie-pages.php',
10
+ 'opt_name' => 'saswp-ampforwp',
11
+ 'part_in' => 'free',
12
+ ),
13
+ 'ampbyautomatic' => array(
14
+ 'name' => 'AMP',
15
+ 'free' => 'amp/amp.php',
16
+ 'opt_name' => 'saswp-ampbyautomatic',
17
+ 'part_in' => 'free',
18
+ ),
19
+ 'betteramp' => array(
20
+ 'name' => 'Better AMP',
21
+ 'free' => 'better-amp/better-amp.php',
22
+ 'opt_name' => 'saswp-betteramp',
23
+ 'part_in' => 'free',
24
+ ),
25
+ 'wpamp' => array(
26
+ 'name' => 'WP AMP',
27
+ 'free' => 'wp-amp/wp-amp.php',
28
+ 'opt_name' => 'saswp-wpamp',
29
+ 'part_in' => 'free',
30
+ ),
31
  'flex_mls_idx' => array(
32
  'name' => 'FlexMLS IDX',
33
  'free' => 'flexmls-idx/flexmls_connect.php',
53
  'opt_name' => 'saswp-bne-testimonials',
54
  'part_in' => 'free',
55
  ),
56
+ 'testimonial_pro' => array(
57
+ 'name' => 'Testimonial Pro',
58
+ 'free' => 'testimonial-pro/testimonial-pro.php',
59
+ 'opt_name' => 'saswp-testimonial-pro',
60
+ 'part_in' => 'free',
61
+ ),
62
  'learn_press' => array(
63
  'name' => 'Learn Press',
64
  'free' => 'learnpress/learnpress.php',
237
 
238
  ),
239
  'themes' => array(
240
+ 'soledad' => array(
241
+ 'name' => 'Soledad Theme',
242
+ 'free' => 'soledad',
243
+ 'opt_name' => 'saswp-soledad',
244
+ 'part_in' => 'free',
245
+ ),
246
  'jannah' => array(
247
  'name' => 'Jannah',
248
  'free' => 'jannah',
core/array-list/schema-properties.php CHANGED
@@ -35,7 +35,8 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
35
  }
36
 
37
  $current_user = wp_get_current_user();
38
- $author_desc = get_the_author_meta( 'user_description' );
 
39
  $author_details = array();
40
 
41
  if(function_exists('get_avatar_data')){
@@ -270,7 +271,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
270
  'type' => 'text',
271
  );
272
  $meta_field[] = array(
273
- 'label' => 'local_tumblr',
274
  'id' => 'local_tumblr_'.$schema_id,
275
  'type' => 'text',
276
  );
@@ -358,6 +359,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
358
  'id' => 'saswp_blogposting_author_description_'.$schema_id,
359
  'type' => 'textarea',
360
  'default' => $author_desc
 
 
 
 
 
 
361
  ),
362
  array(
363
  'label' => 'Organization Name',
@@ -492,6 +499,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
492
  'id' => 'saswp_newsarticle_author_description_'.$schema_id,
493
  'type' => 'textarea',
494
  'default' => $author_desc
 
 
 
 
 
 
495
  ),
496
  array(
497
  'label' => 'Author Image',
@@ -587,6 +600,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
587
  'id' => 'saswp_webpage_author_description_'.$schema_id,
588
  'type' => 'textarea',
589
  'default' => $author_desc
 
 
 
 
 
 
590
  ),
591
  array(
592
  'label' => 'Organization Name',
@@ -669,6 +688,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
669
  'id' => 'saswp_article_author_description_'.$schema_id,
670
  'type' => 'textarea',
671
  'default' => $author_desc
 
 
 
 
 
 
672
  ),
673
  array(
674
  'label' => 'Organization Name',
@@ -876,6 +901,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
876
  'id' => 'saswp_tech_article_author_name_'.$schema_id,
877
  'type' => 'textarea',
878
  'default' => $author_desc
 
 
 
 
 
 
879
  ),
880
  array(
881
  'label' => 'Organization Name',
@@ -1001,6 +1032,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1001
  'type' => 'textarea',
1002
  'default' => $author_desc
1003
  ),
 
 
 
 
 
 
1004
  array(
1005
  'label' => 'Organization Name',
1006
  'id' => 'saswp_dfp_organization_name_'.$schema_id,
@@ -1071,6 +1108,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1071
  'id' => 'saswp_recipe_author_description_'.$schema_id,
1072
  'type' => 'textarea',
1073
  'default' => $author_desc
 
 
 
 
 
 
1074
  ),
1075
  array(
1076
  'label' => 'Author Image',
@@ -1591,8 +1634,13 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1591
  'id' => 'saswp_audio_schema_author_description_'.$schema_id,
1592
  'type' => 'textarea',
1593
  'default' => $author_desc
1594
- )
1595
-
 
 
 
 
 
1596
  );
1597
  break;
1598
 
@@ -1749,6 +1797,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1749
  'id' => 'saswp_video_object_author_description_'.$schema_id,
1750
  'type' => 'textarea',
1751
  'default' => $author_desc
 
 
 
 
 
 
1752
  ),
1753
  array(
1754
  'label' => 'Author Image',
@@ -1831,6 +1885,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
1831
  'id' => 'saswpimage_object_author_description_'.$schema_id,
1832
  'type' => 'textarea',
1833
  'default' => $author_desc
 
 
 
 
 
 
1834
  ),
1835
  array(
1836
  'label' => 'Author Image',
35
  }
36
 
37
  $current_user = wp_get_current_user();
38
+ $author_desc = get_the_author_meta( 'user_description' );
39
+ $author_url = get_the_author_meta( 'user_url' );
40
  $author_details = array();
41
 
42
  if(function_exists('get_avatar_data')){
271
  'type' => 'text',
272
  );
273
  $meta_field[] = array(
274
+ 'label' => 'Tumblr',
275
  'id' => 'local_tumblr_'.$schema_id,
276
  'type' => 'text',
277
  );
359
  'id' => 'saswp_blogposting_author_description_'.$schema_id,
360
  'type' => 'textarea',
361
  'default' => $author_desc
362
+ ),
363
+ array(
364
+ 'label' => 'Author URL',
365
+ 'id' => 'saswp_blogposting_author_url_'.$schema_id,
366
+ 'type' => 'text',
367
+ 'default' => $author_url
368
  ),
369
  array(
370
  'label' => 'Organization Name',
499
  'id' => 'saswp_newsarticle_author_description_'.$schema_id,
500
  'type' => 'textarea',
501
  'default' => $author_desc
502
+ ),
503
+ array(
504
+ 'label' => 'Author URL',
505
+ 'id' => 'saswp_newsarticle_author_url_'.$schema_id,
506
+ 'type' => 'text',
507
+ 'default' => $author_url
508
  ),
509
  array(
510
  'label' => 'Author Image',
600
  'id' => 'saswp_webpage_author_description_'.$schema_id,
601
  'type' => 'textarea',
602
  'default' => $author_desc
603
+ ),
604
+ array(
605
+ 'label' => 'Author URL',
606
+ 'id' => 'saswp_webpage_author_url_'.$schema_id,
607
+ 'type' => 'text',
608
+ 'default' => $author_url
609
  ),
610
  array(
611
  'label' => 'Organization Name',
688
  'id' => 'saswp_article_author_description_'.$schema_id,
689
  'type' => 'textarea',
690
  'default' => $author_desc
691
+ ),
692
+ array(
693
+ 'label' => 'Author URL',
694
+ 'id' => 'saswp_article_author_url_'.$schema_id,
695
+ 'type' => 'text',
696
+ 'default' => $author_url
697
  ),
698
  array(
699
  'label' => 'Organization Name',
901
  'id' => 'saswp_tech_article_author_name_'.$schema_id,
902
  'type' => 'textarea',
903
  'default' => $author_desc
904
+ ),
905
+ array(
906
+ 'label' => 'Author URL',
907
+ 'id' => 'saswp_tech_article_author_url_'.$schema_id,
908
+ 'type' => 'text',
909
+ 'default' => $author_url
910
  ),
911
  array(
912
  'label' => 'Organization Name',
1032
  'type' => 'textarea',
1033
  'default' => $author_desc
1034
  ),
1035
+ array(
1036
+ 'label' => 'Author URL',
1037
+ 'id' => 'saswp_dfp_author_url_'.$schema_id,
1038
+ 'type' => 'text',
1039
+ 'default' => $author_url
1040
+ ),
1041
  array(
1042
  'label' => 'Organization Name',
1043
  'id' => 'saswp_dfp_organization_name_'.$schema_id,
1108
  'id' => 'saswp_recipe_author_description_'.$schema_id,
1109
  'type' => 'textarea',
1110
  'default' => $author_desc
1111
+ ),
1112
+ array(
1113
+ 'label' => 'Author URL',
1114
+ 'id' => 'saswp_recipe_author_url_'.$schema_id,
1115
+ 'type' => 'text',
1116
+ 'default' => $author_url
1117
  ),
1118
  array(
1119
  'label' => 'Author Image',
1634
  'id' => 'saswp_audio_schema_author_description_'.$schema_id,
1635
  'type' => 'textarea',
1636
  'default' => $author_desc
1637
+ ),
1638
+ array(
1639
+ 'label' => 'Author URL',
1640
+ 'id' => 'saswp_audio_schema_author_url_'.$schema_id,
1641
+ 'type' => 'text',
1642
+ 'default' => $author_url
1643
+ )
1644
  );
1645
  break;
1646
 
1797
  'id' => 'saswp_video_object_author_description_'.$schema_id,
1798
  'type' => 'textarea',
1799
  'default' => $author_desc
1800
+ ),
1801
+ array(
1802
+ 'label' => 'Author URL',
1803
+ 'id' => 'saswp_video_object_author_url_'.$schema_id,
1804
+ 'type' => 'text',
1805
+ 'default' => $author_url
1806
  ),
1807
  array(
1808
  'label' => 'Author Image',
1885
  'id' => 'saswpimage_object_author_description_'.$schema_id,
1886
  'type' => 'textarea',
1887
  'default' => $author_desc
1888
+ ),
1889
+ array(
1890
+ 'label' => 'Author URL',
1891
+ 'id' => 'saswpimage_object_author_url_'.$schema_id,
1892
+ 'type' => 'text',
1893
+ 'default' => $author_url
1894
  ),
1895
  array(
1896
  'label' => 'Author Image',
core/global.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+ $saswp_post_reviews = array();
view/review.php → modules/rating-box/backend.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Review Class
4
  *
5
  * @author Magazine3
6
  * @category Admin
@@ -11,7 +11,7 @@
11
  // Exit if accessed directly.
12
  if ( ! defined( 'ABSPATH' ) ) exit;
13
 
14
- class saswp_metaboxes_review {
15
 
16
  private $screen = array();
17
 
@@ -235,6 +235,6 @@ class saswp_metaboxes_review {
235
  }
236
  }
237
  }
238
- if (class_exists('saswp_metaboxes_review')) {
239
- new saswp_metaboxes_review;
240
  };
1
  <?php
2
  /**
3
+ * Rating Class
4
  *
5
  * @author Magazine3
6
  * @category Admin
11
  // Exit if accessed directly.
12
  if ( ! defined( 'ABSPATH' ) ) exit;
13
 
14
+ class saswp_rating_box_backend {
15
 
16
  private $screen = array();
17
 
235
  }
236
  }
237
  }
238
+ if (class_exists('saswp_rating_box_backend')) {
239
+ new saswp_rating_box_backend;
240
  };
output/review-output.php → modules/rating-box/frontend.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * Review Output Class
4
  *
5
  * @author Magazine3
6
  * @category Frontend
@@ -10,9 +10,9 @@
10
  // Exit if accessed directly.
11
  if ( ! defined( 'ABSPATH' ) ) exit;
12
 
13
- Class saswp_review_output{
14
  /**
15
- * All the hooks list which are used in review module
16
  */
17
  public function saswp_review_hooks(){
18
 
@@ -346,7 +346,7 @@ Class saswp_review_output{
346
  }
347
 
348
  }
349
- if (class_exists('saswp_review_output')) {
350
- $object = new saswp_review_output();
351
  $object->saswp_review_hooks();
352
  };
1
  <?php
2
  /**
3
+ * Rating Output Class
4
  *
5
  * @author Magazine3
6
  * @category Frontend
10
  // Exit if accessed directly.
11
  if ( ! defined( 'ABSPATH' ) ) exit;
12
 
13
+ Class saswp_rating_box_frontend{
14
  /**
15
+ * All the hooks list which are used in rating module
16
  */
17
  public function saswp_review_hooks(){
18
 
346
  }
347
 
348
  }
349
+ if (class_exists('saswp_rating_box_frontend')) {
350
+ $object = new saswp_rating_box_frontend();
351
  $object->saswp_review_hooks();
352
  };
modules/reviews/reviews_collection.php CHANGED
@@ -19,6 +19,7 @@ class SASWP_Reviews_Collection {
19
  */
20
  private static $instance;
21
  private $_service = null;
 
22
 
23
  private function __construct() {
24
 
@@ -33,10 +34,9 @@ class SASWP_Reviews_Collection {
33
  add_action( 'init', array($this, 'saswp_register_collection_post_type' ),20);
34
  add_action( 'admin_init', array($this, 'saswp_save_collection_data' ));
35
  add_action( 'wp_ajax_saswp_add_to_collection', array($this, 'saswp_add_to_collection' ));
36
- add_action( 'wp_ajax_saswp_get_collection_platforms', array($this, 'saswp_get_collection_platforms' ));
37
- add_action( 'amp_post_template_css', array($this, 'saswp_reviews_collection_amp_css'));
38
  add_action( 'amp_post_template_data', array($this, 'saswp_reviews_collection_amp_script'));
39
- add_shortcode( 'saswp-reviews-collection', array($this, 'saswp_reviews_collection_shortcode_render' ));
40
 
41
  }
42
 
@@ -52,7 +52,7 @@ class SASWP_Reviews_Collection {
52
  return self::$instance;
53
  }
54
 
55
- public static function saswp_add_collection_menu_links(){
56
 
57
  add_submenu_page( 'edit.php?post_type=saswp',
58
  esc_html__( 'Structured Data', 'schema-and-structured-data-for-wp' ),
@@ -63,7 +63,7 @@ class SASWP_Reviews_Collection {
63
 
64
  }
65
 
66
- public static function saswp_set_collection_edit_link($link, $post_id, $context){
67
 
68
  if (function_exists('get_current_screen') && (isset(get_current_screen()->id) && get_current_screen()->id == 'edit-saswp-collections' ) && $context == 'display') {
69
 
@@ -79,7 +79,7 @@ class SASWP_Reviews_Collection {
79
 
80
  public function saswp_reviews_collection_amp_script($data){
81
 
82
- $design = $this->_service->saswp_collection_desing_available();
83
 
84
  if($design == 'gallery' || $design == 'fomo'){
85
 
@@ -108,15 +108,14 @@ class SASWP_Reviews_Collection {
108
  $gallery_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-gallery.css';
109
  $popup_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-popup.css';
110
  $badge_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-badge.css';
111
-
112
- $design = $this->_service->saswp_collection_desing_available();
113
-
114
- if($design){
115
 
116
  echo @file_get_contents($global_css);
117
 
118
- switch ($design) {
119
- case 'grid':
 
120
  echo @file_get_contents($grid_css);
121
  break;
122
  case 'gallery':
@@ -139,7 +138,7 @@ class SASWP_Reviews_Collection {
139
  }
140
 
141
  }
142
-
143
  public function saswp_register_collection_post_type(){
144
 
145
  $collections = array(
@@ -152,7 +151,7 @@ class SASWP_Reviews_Collection {
152
  'public' => true,
153
  'has_archive' => true,
154
  'exclude_from_search' => true,
155
- 'publicly_queryable' => true,
156
  //'show_in_menu' => 'edit.php?post_type=saswp',
157
  'show_in_menu' => false,
158
  'show_ui' => true,
@@ -233,6 +232,8 @@ class SASWP_Reviews_Collection {
233
  }
234
 
235
  public function saswp_reviews_collection_shortcode_render($attr){
 
 
236
 
237
  $html = $htmlp = '';
238
 
@@ -247,8 +248,9 @@ class SASWP_Reviews_Collection {
247
 
248
  $collection_data = get_post_meta($attr['id'], $key='', true);
249
 
250
- $design = $collection_data['saswp_collection_design'][0];
251
- $cols = $collection_data['saswp_collection_cols'][0];
 
252
 
253
  if(isset($collection_data['saswp_gallery_arrow'][0])){
254
 
@@ -294,7 +296,14 @@ class SASWP_Reviews_Collection {
294
  }
295
 
296
  if($collection){
297
-
 
 
 
 
 
 
 
298
  switch($design) {
299
 
300
  case "grid":
19
  */
20
  private static $instance;
21
  private $_service = null;
22
+ private $_design = null;
23
 
24
  private function __construct() {
25
 
34
  add_action( 'init', array($this, 'saswp_register_collection_post_type' ),20);
35
  add_action( 'admin_init', array($this, 'saswp_save_collection_data' ));
36
  add_action( 'wp_ajax_saswp_add_to_collection', array($this, 'saswp_add_to_collection' ));
37
+ add_action( 'wp_ajax_saswp_get_collection_platforms', array($this, 'saswp_get_collection_platforms' ));
 
38
  add_action( 'amp_post_template_data', array($this, 'saswp_reviews_collection_amp_script'));
39
+ add_shortcode( 'saswp-reviews-collection', array($this, 'saswp_reviews_collection_shortcode_render' ),10);
40
 
41
  }
42
 
52
  return self::$instance;
53
  }
54
 
55
+ public function saswp_add_collection_menu_links(){
56
 
57
  add_submenu_page( 'edit.php?post_type=saswp',
58
  esc_html__( 'Structured Data', 'schema-and-structured-data-for-wp' ),
63
 
64
  }
65
 
66
+ public function saswp_set_collection_edit_link($link, $post_id, $context){
67
 
68
  if (function_exists('get_current_screen') && (isset(get_current_screen()->id) && get_current_screen()->id == 'edit-saswp-collections' ) && $context == 'display') {
69
 
79
 
80
  public function saswp_reviews_collection_amp_script($data){
81
 
82
+ $design = $this->_design;
83
 
84
  if($design == 'gallery' || $design == 'fomo'){
85
 
108
  $gallery_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-gallery.css';
109
  $popup_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-popup.css';
110
  $badge_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/collection-front-badge.css';
111
+
112
+ if($this->_design){
 
 
113
 
114
  echo @file_get_contents($global_css);
115
 
116
+ switch ($this->_design) {
117
+
118
+ case 'grid':
119
  echo @file_get_contents($grid_css);
120
  break;
121
  case 'gallery':
138
  }
139
 
140
  }
141
+
142
  public function saswp_register_collection_post_type(){
143
 
144
  $collections = array(
151
  'public' => true,
152
  'has_archive' => true,
153
  'exclude_from_search' => true,
154
+ 'publicly_queryable' => false,
155
  //'show_in_menu' => 'edit.php?post_type=saswp',
156
  'show_in_menu' => false,
157
  'show_ui' => true,
232
  }
233
 
234
  public function saswp_reviews_collection_shortcode_render($attr){
235
+
236
+ global $saswp_post_reviews;
237
 
238
  $html = $htmlp = '';
239
 
248
 
249
  $collection_data = get_post_meta($attr['id'], $key='', true);
250
 
251
+ $design = $collection_data['saswp_collection_design'][0];
252
+ $this->_design = $design;
253
+ $cols = $collection_data['saswp_collection_cols'][0];
254
 
255
  if(isset($collection_data['saswp_gallery_arrow'][0])){
256
 
296
  }
297
 
298
  if($collection){
299
+
300
+ wp_enqueue_style( 'saswp-collection-front-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'collection-front.min.css' : 'collection-front.css'), false , SASWP_VERSION );
301
+ wp_enqueue_script( 'saswp-collection-front-js', SASWP_PLUGIN_URL . 'admin_section/js/'.(SASWP_ENVIRONMENT == 'production' ? 'collection-front.min.js' : 'collection-front.js'), array('jquery') , SASWP_VERSION );
302
+
303
+ add_action( 'amp_post_template_css', array($this, 'saswp_reviews_collection_amp_css'));
304
+
305
+ $saswp_post_reviews = array_merge($saswp_post_reviews, $collection);
306
+
307
  switch($design) {
308
 
309
  case "grid":
modules/reviews/reviews_form.php ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Reviews Form Class
4
+ *
5
+ * @author Magazine3
6
+ * @category Admin
7
+ * @path reviews/reviews_form
8
+ * @Version 1.9.18
9
+ */
10
+
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ class SASWP_Reviews_Form {
15
+
16
+ /**
17
+ * Static private variable to hold instance this class
18
+ * @var type
19
+ */
20
+ private static $instance;
21
+ private $_service = null;
22
+
23
+ private function __construct() {
24
+
25
+ if($this->_service == null){
26
+
27
+ $this->_service = new saswp_reviews_service();
28
+
29
+ }
30
+
31
+ add_shortcode( 'saswp-reviews-form', array($this, 'saswp_reviews_form_render' ));
32
+ add_action( 'admin_post_saswp_review_form', array($this, 'saswp_save_review_form_data') );
33
+ add_action( 'admin_post_nopriv_saswp_review_form', array($this, 'saswp_save_review_form_data') );
34
+
35
+ add_action( 'wp_ajax_saswp_review_form', array($this, 'saswp_save_review_form_data') );
36
+ add_action( 'wp_ajax_nopriv_saswp_review_form', array($this, 'saswp_save_review_form_data') );
37
+
38
+ add_filter( 'amp_content_sanitizers_template_mode',array($this, 'saswp_review_form_blacklist_sanitizer'), 99);
39
+ add_filter( 'amp_content_sanitizers',array($this, 'saswp_review_form_blacklist_sanitizer'), 99);
40
+
41
+ }
42
+
43
+ public function saswp_review_form_blacklist_sanitizer($data){
44
+
45
+ require_once SASWP_PLUGIN_DIR_PATH .'core/3rd-party/class-amp-review-form-blacklist.php';
46
+
47
+ unset($data['AMPFORWP_Blacklist_Sanitizer']);
48
+ unset($data['AMP_Blacklist_Sanitizer']);
49
+ $data[ 'AMP_Review_Form_Blacklist' ] = array();
50
+
51
+ return $data;
52
+
53
+ }
54
+
55
+ /**
56
+ * Return the unique instance
57
+ * @return type instance
58
+ * @since version 1.9.18
59
+ */
60
+ public static function get_instance() {
61
+ if ( null == self::$instance ) {
62
+ self::$instance = new self;
63
+ }
64
+ return self::$instance;
65
+ }
66
+
67
+ public function saswp_save_review_form_data(){
68
+
69
+ $form_data = $_POST;
70
+
71
+ if($form_data['action'] == 'saswp_review_form'){
72
+
73
+ $rv_link = $form_data['saswp_review_link'];
74
+
75
+ if(strpos($_SERVER['QUERY_STRING'], 'amp_source') !== false){
76
+
77
+ $rv_link = ampforwp_url_controller($rv_link);
78
+
79
+ header("access-control-allow-credentials:true");
80
+ header("access-control-allow-headers:Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token");
81
+ header("Access-Control-Allow-Origin:".$_SERVER['HTTP_ORIGIN']);
82
+ $siteUrl = parse_url( get_site_url() );
83
+ header("AMP-Access-Control-Allow-Source-Origin:".$siteUrl['scheme'] . '://' . $siteUrl['host']);
84
+ header("Content-Type:application/json;charset=utf-8");
85
+
86
+ if(!wp_verify_nonce($form_data['saswp_review_nonce'], 'saswp_review_form')){
87
+ header("AMP-Redirect-To: ".$rv_link);
88
+ header("Access-Control-Expose-Headers: AMP-Redirect-To, AMP-Access-Control-Allow-Source-Origin");
89
+ echo json_decode(array('message'=> 'Nonce MisMatch'));
90
+ die;
91
+ }
92
+
93
+ }else{
94
+
95
+ if(!wp_verify_nonce($form_data['saswp_review_nonce'], 'saswp_review_form')){
96
+ wp_redirect( $rv_link );
97
+ exit;
98
+ }
99
+
100
+ }
101
+
102
+ $rv_image = '';
103
+ $postarr = array();
104
+
105
+ if(is_user_logged_in()){
106
+
107
+ $current_user = wp_get_current_user();
108
+ $postarr['post_author'] = $current_user->ID;
109
+ $rv_image = get_avatar_url($current_user->ID, array('size' => 300));
110
+
111
+ }
112
+
113
+ $rv_text = sanitize_textarea_field($form_data['saswp_review_text']);
114
+ $rv_name = sanitize_text_field($form_data['saswp_reviewer_name']);
115
+ $rv_rating = intval($form_data['saswp_review_rating']);
116
+ $rv_place_id = intval($form_data['saswp_place_id']);
117
+ $rv_date = date('Y-m-d');
118
+ $rv_time = date("h:i:sa");
119
+
120
+ if($rv_rating){
121
+
122
+ $postarr = array(
123
+ 'post_title' => $rv_name,
124
+ 'post_status' => 'pending',
125
+ 'post_name' => $rv_name,
126
+ 'post_type' => 'saswp_reviews',
127
+
128
+ );
129
+
130
+ $post_id = wp_insert_post( $postarr );
131
+
132
+ $term = get_term_by( 'slug','self', 'platform' );
133
+
134
+ if($rv_image){
135
+
136
+ $image_details = saswp_get_attachment_details($rv_image);
137
+
138
+ $media_detail = array(
139
+ 'width' => $image_details[0][0],
140
+ 'height' => $image_details[0][1],
141
+ 'thumbnail' => $rv_image,
142
+ );
143
+
144
+ }
145
+
146
+ $review_meta = array(
147
+ 'saswp_review_platform' => $term->term_id,
148
+ 'saswp_review_location_id' => $rv_place_id,
149
+ 'saswp_review_time' => $rv_time,
150
+ 'saswp_review_date' => $rv_date,
151
+ 'saswp_review_rating' => $rv_rating,
152
+ 'saswp_review_text' => $rv_text,
153
+ 'saswp_reviewer_lang' => null,
154
+ 'saswp_reviewer_name' => $rv_name,
155
+ 'saswp_review_link' => $rv_link,
156
+ 'saswp_reviewer_image' => $rv_image ? $rv_image : SASWP_DIR_URI.'/admin_section/images/default_user.jpg',
157
+ 'saswp_reviewer_image_detail' => $media_detail
158
+ );
159
+
160
+ if($post_id && !empty($review_meta) && is_array($review_meta)){
161
+
162
+ foreach ($review_meta as $key => $val){
163
+ update_post_meta($post_id, $key, $val);
164
+ }
165
+
166
+ }
167
+
168
+ }
169
+
170
+ if(strpos($_SERVER['QUERY_STRING'], 'amp_source') !==false){
171
+
172
+ header("AMP-Redirect-To: ".$rv_link);
173
+ header("Access-Control-Expose-Headers: AMP-Redirect-To, AMP-Access-Control-Allow-Source-Origin");
174
+ echo json_decode(array('message'=> 'hel'));die;
175
+
176
+ }else{
177
+
178
+ wp_redirect( $rv_link );
179
+ exit;
180
+ }
181
+
182
+ }
183
+ if(strpos($_SERVER['QUERY_STRING'], 'amp_source') !==false){
184
+ wp_die();
185
+ }
186
+
187
+ }
188
+ public function saswp_review_form_amp_css(){
189
+
190
+ $review_css = SASWP_PLUGIN_DIR_PATH . 'admin_section/css/amp/review-form.css';
191
+
192
+ ?>
193
+ .saswp-rvw-str .str-ic{
194
+ background-image: url(<?php echo esc_url(SASWP_DIR_URI.'/admin_section/images/full_star.png'); ?>);
195
+ }
196
+ .saswp-rvw-str .df-clr{
197
+ background-image: url(<?php echo esc_url(SASWP_DIR_URI.'/admin_section/images/blank_star.png'); ?>);
198
+ }
199
+
200
+ <?php
201
+
202
+ echo @file_get_contents($review_css);
203
+
204
+ }
205
+ public function saswp_reviews_form_render($attr){
206
+
207
+ $is_amp = false;
208
+
209
+ if(!saswp_non_amp()){
210
+ $is_amp = true;
211
+ }
212
+ add_action( 'amp_post_template_css', array($this, 'saswp_review_form_amp_css'));
213
+
214
+ ob_start();
215
+
216
+ global $post;
217
+ global $wp;
218
+
219
+ wp_enqueue_script( 'saswp-rateyo-front-js', SASWP_PLUGIN_URL . 'admin_section/js/jquery.rateyo.min.js', array('jquery', 'jquery-ui-core'), SASWP_VERSION , true );
220
+ wp_enqueue_script( 'saswp-review-form-js', SASWP_PLUGIN_URL . 'admin_section/js/'.(SASWP_ENVIRONMENT == 'production' ? 'review-form.min.js' : 'review-form.js'), array('jquery', 'jquery-ui-core'), SASWP_VERSION );
221
+ wp_enqueue_style( 'saswp-review-form-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'review-form.min.css' : 'review-form.css'), false, SASWP_VERSION );
222
+ wp_enqueue_style( 'jquery-rateyo-min-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'jquery.rateyo.min.css' : 'jquery.rateyo.min.css'), false, SASWP_VERSION );
223
+
224
+ $form = $current_url = '';
225
+
226
+ if(is_object($wp)){
227
+ $current_url = home_url( add_query_arg( array(), $wp->request ) );
228
+ }
229
+
230
+ $form .= '<div class="saswp-rv-form-container">';
231
+
232
+ if(!$is_amp){
233
+
234
+ $rating_html = '<div class="saswp-rating-front-div"></div><input type="hidden" name="saswp_review_rating" value="5">';
235
+ $form .= '<form action="'.esc_url( admin_url('admin-post.php') ).'" method="post">';
236
+
237
+ }else{
238
+
239
+ $form .= '<form action-xhr="'.esc_url( admin_url('admin-post.php') ).'" method="post">';
240
+
241
+ $rating_html = ''
242
+ . '<input type="hidden" name="saswp_review_rating" [value]="saswp_review_rating">'
243
+ . '<div class="saswp-rvw-str">'
244
+ . '<span [class]="saswp_review_rating >= 1 ? \'str-ic\' : \'df-clr\' " class="df-clr" on="tap:AMP.setState({ saswp_review_rating: 1 })" role="button" tabindex="1"></span>'
245
+ . '<span [class]="saswp_review_rating >= 2 ? \'str-ic\' : \'df-clr\' " class="df-clr" on="tap:AMP.setState({ saswp_review_rating: 2 })" role="button" tabindex="2"></span>'
246
+ . '<span [class]="saswp_review_rating >= 3 ? \'str-ic\' : \'df-clr\' " class="df-clr" on="tap:AMP.setState({ saswp_review_rating: 3 })" role="button" tabindex="3"></span>'
247
+ . '<span [class]="saswp_review_rating >= 4 ? \'str-ic\' : \'df-clr\' " class="df-clr" on="tap:AMP.setState({ saswp_review_rating: 4 })" role="button" tabindex="4"></span>'
248
+ . '<span [class]="saswp_review_rating >= 5 ? \'str-ic\' : \'df-clr\' " class="df-clr" on="tap:AMP.setState({ saswp_review_rating: 5 })" role="button" tabindex="5"></span>'
249
+ . '</div>';
250
+
251
+ }
252
+
253
+ $form .= wp_nonce_field( 'saswp_review_form', 'saswp_review_nonce' )
254
+
255
+ . '<div class="saswp-form-tbl">'
256
+
257
+ . '<div class="saswp-form-fld">'
258
+ . '<span>'.saswp_label_text('translation-name').'</span>'
259
+ . '<input type="text" name="saswp_reviewer_name" required>'
260
+ . '</div>'
261
+
262
+ . '<div class="saswp-form-fld">'
263
+ . '<span>'.saswp_label_text('translation-comment').'</span>'
264
+ . '<textarea name="saswp_review_text"></textarea>'
265
+ . '</div>'
266
+
267
+ . '<input type="hidden" name="saswp_review_link" value="'.esc_url($current_url).'">'
268
+ . $rating_html
269
+ . '<input type="hidden" name="saswp_place_id" value="'.esc_attr($post->ID).'">'
270
+ . '<input type="hidden" name="action" value="saswp_review_form">'
271
+ . '<input name="saswp-review-save" type="submit" class="submit">'
272
+ . '</div>'
273
+ . '</form>'
274
+ . '</div>';
275
+
276
+
277
+ echo $form;
278
+ return ob_get_clean();
279
+
280
+ }
281
+
282
+ }
283
+
284
+ if ( class_exists( 'SASWP_Reviews_Form') ) {
285
+ SASWP_Reviews_Form::get_instance();
286
+ }
modules/reviews/reviews_service.php CHANGED
@@ -12,15 +12,48 @@
12
  if ( ! defined( 'ABSPATH' ) ) exit;
13
 
14
  class saswp_reviews_service {
15
-
16
  /**
17
  * List of hooks used in this context
18
  */
19
  public function saswp_service_hooks(){
20
- add_action( 'wp_ajax_saswp_fetch_google_reviews', array($this,'saswp_fetch_google_reviews'));
21
- add_shortcode( 'saswp-reviews', array($this, 'saswp_reviews_shortcode' ));
 
 
 
22
  }
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  /**
25
  * Function to get reviews schema markup
26
  * @global type $sd_data
@@ -116,21 +149,21 @@ class saswp_reviews_service {
116
  <div class="saswp-rv-cnt">
117
  <div class="saswp-r5-rng">
118
  <div class="saswp-str">
119
- <span class="saswp-athr">'.esc_attr($review['saswp_reviewer_name']).'</span>
120
  '.$starating.'
121
  </div>
122
  <span class="saswp-g-plus">
123
- <a target="_blank" href="'.esc_attr($review['saswp_review_link']).'"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term_slug).'-img.png'.'"></a>
124
  </span>
125
  </div>
126
- <p>'.substr($review['saswp_review_text'],0,300).'</p>
127
  </div>
128
  </div>
129
  </div>';
130
 
131
  }
132
 
133
- wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/saswp-style.min.css', false , SASWP_VERSION );
134
 
135
  }
136
  return $output;
@@ -284,55 +317,19 @@ class saswp_reviews_service {
284
  * @param type $attr
285
  * @return type
286
  */
287
- public function saswp_reviews_front_output($attr){
288
 
289
- global $sd_data;
290
- $reviews = $this->saswp_get_reviews_list_by_parameters($attr);
291
-
292
- $output = $html = '';
293
-
294
- if($reviews){
295
-
296
- $output = $this->saswp_reviews_html_markup($reviews);
297
-
298
- if(saswp_global_option()){
299
-
300
- $rv_markup = $this->saswp_get_reviews_schema_markup($reviews);
301
-
302
- if($rv_markup){
303
-
304
- $input1['@context'] = saswp_context_url();
305
- $input1['@type'] = (isset($sd_data['saswp_organization_type']) && $sd_data['saswp_organization_type'] !='' )? $sd_data['saswp_organization_type'] : 'Organization';
306
- $input1['name'] = (isset($sd_data['sd_name']) && $sd_data['sd_name'] !='' )? $sd_data['sd_name'] : get_bloginfo();
307
-
308
- $input1 = $input1 + $rv_markup;
309
-
310
- $html .= "\n";
311
- $html .= '<!-- Schema & Structured Data For Reviews v'.esc_attr(SASWP_VERSION).' - -->';
312
- $html .= "\n";
313
- $html .= '<script type="application/ld+json" class="saswp-reviews-markup">';
314
- $html .= "\n";
315
- $html .= saswp_json_print_format($input1);
316
- $html .= "\n";
317
- $html .= '</script>';
318
- $html .= "\n\n";
319
-
320
- $output = $output.$html;
321
-
322
- }
323
-
324
- }
325
-
326
- }
327
-
328
- return $output;
329
-
330
- }
331
-
332
  public function saswp_reviews_shortcode($attr){
333
-
334
- $response = $this->saswp_reviews_front_output($attr);
335
-
 
 
 
 
 
 
 
 
336
  return $response;
337
 
338
  }
@@ -412,7 +409,8 @@ class saswp_reviews_service {
412
  $review_meta = array(
413
  'saswp_review_platform' => $term->term_id,
414
  'saswp_review_location_id' => $place_id,
415
- 'saswp_review_time' => $review['time'],
 
416
  'saswp_review_rating' => $review['rating'],
417
  'saswp_review_text' => $review['text'],
418
  'saswp_reviewer_lang' => $review['language'],
@@ -428,7 +426,7 @@ class saswp_reviews_service {
428
  update_post_meta($post_id, $key, $val);
429
  }
430
 
431
- }
432
 
433
  }
434
  }
@@ -473,10 +471,9 @@ class saswp_reviews_service {
473
 
474
  }
475
 
476
- public function saswp_get_reviews_list_by_parameters($attr = null, $platform_id = null, $rvcount = null){
477
 
478
- $response = array();
479
-
480
  $arg = array();
481
  $meta_query = array();
482
 
@@ -495,7 +492,15 @@ class saswp_reviews_service {
495
  if(isset($attr['count'])){
496
  $arg['posts_per_page'] = $attr['count'];
497
  }
498
-
 
 
 
 
 
 
 
 
499
  if(isset($attr['rating'])){
500
  $meta_query[] = array(
501
  'key' => 'saswp_review_rating',
@@ -521,10 +526,17 @@ class saswp_reviews_service {
521
  $arg['meta_query'] = $meta_query_args;
522
  }
523
 
 
 
 
 
 
 
 
 
 
524
 
525
- if($platform_id && $rvcount){
526
-
527
- $arg['numberposts'] = $rvcount;
528
  $arg['meta_query'] = array(
529
  array(
530
  'key' => 'saswp_review_platform',
@@ -550,15 +562,19 @@ class saswp_reviews_service {
550
  'saswp_review_platform_icon',
551
  'saswp_review_platform_name',
552
  );
 
 
553
 
554
  foreach($posts_list as $rv_post){
555
 
556
  $review_data = array();
557
-
 
 
558
  foreach($post_meta as $meta_key){
559
 
560
  $review_data[$meta_key] = get_post_meta($rv_post->ID, $meta_key, true );
561
-
562
  }
563
 
564
  if(!$review_data['saswp_reviewer_image']){
@@ -568,10 +584,18 @@ class saswp_reviews_service {
568
  $term = get_term( $review_data['saswp_review_platform'], 'platform' );
569
 
570
  if(!$review_data['saswp_review_platform_icon']){
571
-
572
  if(isset($term->slug)){
573
-
574
- $review_data['saswp_review_platform_icon'] = SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term->slug).'-img.png';
 
 
 
 
 
 
 
 
575
  }
576
 
577
  }
@@ -664,7 +688,6 @@ class saswp_reviews_service {
664
  $grid_cols = '';
665
 
666
  if($collection){
667
-
668
 
669
  if(saswp_non_amp()){
670
 
@@ -693,7 +716,7 @@ class saswp_reviews_service {
693
  $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
694
  $html .= '</div>';
695
  $html .= '<div class="saswp-rc-nm">';
696
- $html .= '<a href="#">'.esc_attr($value['saswp_reviewer_name']).'</a>';
697
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
698
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
699
  $html .= '</div>';
@@ -739,7 +762,7 @@ class saswp_reviews_service {
739
  $html .= '<amp-img src="'.esc_url($value['saswp_reviewer_image']).'" width="70" height="56"></amp-img>';
740
  $html .= '</div>';
741
  $html .= '<div class="saswp-rc-nm">';
742
- $html .= '<a href="#">'.esc_attr($value['saswp_reviewer_name']).'</a>';
743
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
744
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
745
  $html .= '</div>';
@@ -794,7 +817,7 @@ class saswp_reviews_service {
794
  $html .= '<div class="saswp-rc-a">';
795
  $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'"/>';
796
  $html .= '<div class="saswp-rc-nm">';
797
- $html .= '<a href="#">'. esc_attr($value['saswp_reviewer_name']).'</a>';
798
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
799
  $html .= '</div>';
800
  $html .= '</div>';
@@ -1258,40 +1281,6 @@ class saswp_reviews_service {
1258
  return $html;
1259
 
1260
  }
1261
-
1262
- public function saswp_collection_desing_available(){
1263
-
1264
- global $post;
1265
- $design = '';
1266
-
1267
- if(is_object($post)){
1268
-
1269
- $pattern = get_shortcode_regex();
1270
-
1271
- if ( preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches )
1272
- && array_key_exists( 2, $matches )
1273
- && in_array( 'saswp-reviews-collection', $matches[2] ) )
1274
- {
1275
-
1276
- foreach ($matches[0] as $matche){
1277
-
1278
- $mached = rtrim($matche, ']');
1279
- $mached = ltrim($mached, '[');
1280
- $mached = trim($mached);
1281
- $attr = shortcode_parse_atts('['.$mached.' ]');
1282
-
1283
- $design = get_post_meta($attr['id'], 'saswp_collection_design',true);
1284
-
1285
- break;
1286
- }
1287
-
1288
- }
1289
-
1290
- }
1291
-
1292
- return $design;
1293
-
1294
- }
1295
 
1296
  }
1297
 
12
  if ( ! defined( 'ABSPATH' ) ) exit;
13
 
14
  class saswp_reviews_service {
15
+
16
  /**
17
  * List of hooks used in this context
18
  */
19
  public function saswp_service_hooks(){
20
+
21
+ add_action('wp_ajax_saswp_fetch_google_reviews', array($this,'saswp_fetch_google_reviews'));
22
+ add_shortcode('saswp-reviews', array($this, 'saswp_reviews_shortcode' ),10);
23
+ add_action ('wp_footer', array($this, 'saswp_fetched_reviews_schema_markup'),99);
24
+ add_action ('amp_post_template_footer', array($this, 'saswp_fetched_reviews_schema_markup'),99);
25
  }
26
 
27
+ public function saswp_fetched_reviews_schema_markup(){
28
+
29
+ global $sd_data, $saswp_post_reviews;
30
+
31
+ $html = '';
32
+
33
+ if($saswp_post_reviews){
34
+
35
+ $rv_markup = $this->saswp_get_reviews_schema_markup(array_unique($saswp_post_reviews, SORT_REGULAR));
36
+
37
+ $input1['@context'] = saswp_context_url();
38
+ $input1['@type'] = (isset($sd_data['saswp_organization_type']) && $sd_data['saswp_organization_type'] !='' )? $sd_data['saswp_organization_type'] : 'Organization';
39
+ $input1['name'] = (isset($sd_data['sd_name']) && $sd_data['sd_name'] !='' )? $sd_data['sd_name'] : get_bloginfo();
40
+
41
+ $input1 = $input1 + $rv_markup;
42
+
43
+ $html .= "\n";
44
+ $html .= '<!-- Schema & Structured Data For Reviews v'.esc_attr(SASWP_VERSION).' - -->';
45
+ $html .= "\n";
46
+ $html .= '<script type="application/ld+json" class="saswp-reviews-markup">';
47
+ $html .= "\n";
48
+ $html .= saswp_json_print_format($input1);
49
+ $html .= "\n";
50
+ $html .= '</script>';
51
+ $html .= "\n\n";
52
+
53
+ }
54
+
55
+ echo $html;
56
+ }
57
  /**
58
  * Function to get reviews schema markup
59
  * @global type $sd_data
149
  <div class="saswp-rv-cnt">
150
  <div class="saswp-r5-rng">
151
  <div class="saswp-str">
152
+ <a target="_blank" href="'.esc_url($review['saswp_review_link']).'"><span class="saswp-athr">'.esc_attr($review['saswp_reviewer_name']).'</span></a>
153
  '.$starating.'
154
  </div>
155
  <span class="saswp-g-plus">
156
+ <a target="_blank" href="'.esc_attr($review['saswp_review_link']).'"><img src="'.esc_url($review['saswp_review_platform_icon']).'"></a>
157
  </span>
158
  </div>
159
+ <div class="saswp-rv-txt"> <p>'.esc_attr($review['saswp_review_text']).'</p></div>
160
  </div>
161
  </div>
162
  </div>';
163
 
164
  }
165
 
166
+ wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-style.min.css' : 'saswp-style.css'), false , SASWP_VERSION );
167
 
168
  }
169
  return $output;
317
  * @param type $attr
318
  * @return type
319
  */
 
320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  public function saswp_reviews_shortcode($attr){
322
+
323
+ $response = '';
324
+
325
+ $reviews = $this->saswp_get_reviews_list_by_parameters($attr);
326
+
327
+ if($reviews){
328
+ global $saswp_post_reviews;
329
+ $saswp_post_reviews = array_merge($saswp_post_reviews, $reviews);
330
+ $response = $this->saswp_reviews_html_markup($reviews);
331
+ }
332
+
333
  return $response;
334
 
335
  }
409
  $review_meta = array(
410
  'saswp_review_platform' => $term->term_id,
411
  'saswp_review_location_id' => $place_id,
412
+ 'saswp_review_time' => $review['time'],
413
+ 'saswp_review_date' => $review['date'],
414
  'saswp_review_rating' => $review['rating'],
415
  'saswp_review_text' => $review['text'],
416
  'saswp_reviewer_lang' => $review['language'],
426
  update_post_meta($post_id, $key, $val);
427
  }
428
 
429
+ }
430
 
431
  }
432
  }
471
 
472
  }
473
 
474
+ public function saswp_get_reviews_list_by_parameters($attr = null, $platform_id = null, $rvcount = null, $paged = null, $offset = null){
475
 
476
+ $response = array();
 
477
  $arg = array();
478
  $meta_query = array();
479
 
492
  if(isset($attr['count'])){
493
  $arg['posts_per_page'] = $attr['count'];
494
  }
495
+
496
+ if(isset($attr['place_id'])){
497
+ $meta_query[] = array(
498
+ 'key' => 'saswp_review_location_id',
499
+ 'value' => $attr['place_id'],
500
+ 'compare' => '='
501
+ );
502
+ }
503
+
504
  if(isset($attr['rating'])){
505
  $meta_query[] = array(
506
  'key' => 'saswp_review_rating',
526
  $arg['meta_query'] = $meta_query_args;
527
  }
528
 
529
+ if($rvcount){
530
+ $arg['numberposts'] = $rvcount;
531
+ }
532
+ if($paged){
533
+ $arg['paged'] = $paged;
534
+ }
535
+ if($offset){
536
+ $arg['offset'] = $offset;
537
+ }
538
 
539
+ if($platform_id){
 
 
540
  $arg['meta_query'] = array(
541
  array(
542
  'key' => 'saswp_review_platform',
562
  'saswp_review_platform_icon',
563
  'saswp_review_platform_name',
564
  );
565
+
566
+ $service_object = new saswp_output_service();
567
 
568
  foreach($posts_list as $rv_post){
569
 
570
  $review_data = array();
571
+
572
+ $review_data['saswp_review_id'] = $rv_post->ID;
573
+
574
  foreach($post_meta as $meta_key){
575
 
576
  $review_data[$meta_key] = get_post_meta($rv_post->ID, $meta_key, true );
577
+
578
  }
579
 
580
  if(!$review_data['saswp_reviewer_image']){
584
  $term = get_term( $review_data['saswp_review_platform'], 'platform' );
585
 
586
  if(!$review_data['saswp_review_platform_icon']){
587
+
588
  if(isset($term->slug)){
589
+
590
+ if($term->slug == 'self'){
591
+
592
+ $default_logo = $service_object->saswp_get_publisher(true);
593
+ $review_data['saswp_review_platform_icon'] = $default_logo['url'];
594
+
595
+ }else{
596
+ $review_data['saswp_review_platform_icon'] = SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term->slug).'-img.png';
597
+ }
598
+
599
  }
600
 
601
  }
688
  $grid_cols = '';
689
 
690
  if($collection){
 
691
 
692
  if(saswp_non_amp()){
693
 
716
  $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'" width="56" height="56"/>';
717
  $html .= '</div>';
718
  $html .= '<div class="saswp-rc-nm">';
719
+ $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
720
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
721
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
722
  $html .= '</div>';
762
  $html .= '<amp-img src="'.esc_url($value['saswp_reviewer_image']).'" width="70" height="56"></amp-img>';
763
  $html .= '</div>';
764
  $html .= '<div class="saswp-rc-nm">';
765
+ $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'.esc_attr($value['saswp_reviewer_name']).'</a>';
766
  $html .= saswp_get_rating_html_by_value($value['saswp_review_rating']);
767
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
768
  $html .= '</div>';
817
  $html .= '<div class="saswp-rc-a">';
818
  $html .= '<img src="'.esc_url($value['saswp_reviewer_image']).'"/>';
819
  $html .= '<div class="saswp-rc-nm">';
820
+ $html .= '<a target="_blank" href="'.esc_url($value['saswp_review_link']).'">'. esc_attr($value['saswp_reviewer_name']).'</a>';
821
  $html .= '<span class="saswp-rc-dt">'.esc_attr($date_str['date']).'</span>';
822
  $html .= '</div>';
823
  $html .= '</div>';
1281
  return $html;
1282
 
1283
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1284
 
1285
  }
1286
 
modules/reviews/reviews_setup.php CHANGED
@@ -17,6 +17,9 @@ add_action( 'init', 'saswp_register_saswp_reviews_location',20);
17
  add_action( 'manage_saswp_reviews_posts_custom_column' , 'saswp_reviews_custom_columns_set', 10, 2 );
18
  add_filter( 'manage_saswp_reviews_posts_columns', 'saswp_reviews_custom_columns' );
19
 
 
 
 
20
  /**
21
  * Function to register reviews post type
22
  * since @version 1.9
@@ -73,6 +76,28 @@ function saswp_register_saswp_reviews() {
73
 
74
  }
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  function saswp_reviews_custom_columns_set( $column, $post_id ) {
78
 
@@ -107,7 +132,19 @@ function saswp_reviews_custom_columns_set( $column, $post_id ) {
107
  $term = get_term( $platform, 'platform' );
108
 
109
  if(isset($term->slug)){
110
- echo '<span class="saswp-g-plus"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term->slug).'-img.png'.'" alt="Icon" /></span>';
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
 
113
  break;
@@ -120,7 +157,7 @@ function saswp_reviews_custom_columns_set( $column, $post_id ) {
120
  case 'saswp_review_place_id' :
121
 
122
  $name = get_post_meta( $post_id, $key='saswp_review_location_id', true);
123
- echo esc_attr($name);
124
 
125
  break;
126
  case 'saswp_review_shortcode' :
@@ -142,7 +179,7 @@ function saswp_reviews_custom_columns($columns) {
142
  $columns['saswp_review_rating'] = '<a>'.esc_html__( 'Rating', 'schema-and-structured-data-for-wp' ).'<a>';
143
  $columns['saswp_review_platform'] = '<a>'.esc_html__( 'Platform', 'schema-and-structured-data-for-wp' ).'<a>';
144
  $columns['saswp_review_date'] = '<a>'.esc_html__( 'Review Date', 'schema-and-structured-data-for-wp' ).'<a>';
145
- $columns['saswp_review_place_id'] = '<a>'.esc_html__( 'Place ID', 'schema-and-structured-data-for-wp' ).'<a>';
146
  $columns['saswp_review_shortcode'] = '<a>'.esc_html__( 'Shortcode', 'schema-and-structured-data-for-wp' ).'<a>';
147
 
148
  return $columns;
@@ -263,7 +300,8 @@ function saswp_create_platform_custom_taxonomy() {
263
 
264
  function saswp_insert_platform_terms(){
265
 
266
- $term_array = array(
 
267
  'Agoda',
268
  'Avvo',
269
  'Angies List',
@@ -427,3 +465,9 @@ function saswp_sort_reviews_by_platform( $query ) {
427
  }
428
 
429
  add_filter( 'parse_query', 'saswp_sort_reviews_by_platform' );
 
 
 
 
 
 
17
  add_action( 'manage_saswp_reviews_posts_custom_column' , 'saswp_reviews_custom_columns_set', 10, 2 );
18
  add_filter( 'manage_saswp_reviews_posts_columns', 'saswp_reviews_custom_columns' );
19
 
20
+ add_action( 'manage_saswp-collections_posts_custom_column' , 'saswp_collection_custom_columns_set', 10, 2 );
21
+ add_filter( 'manage_saswp-collections_posts_columns', 'saswp_collection_custom_columns' );
22
+
23
  /**
24
  * Function to register reviews post type
25
  * since @version 1.9
76
 
77
  }
78
 
79
+ function saswp_collection_custom_columns_set( $column, $post_id ) {
80
+
81
+ switch ( $column ) {
82
+
83
+ case 'saswp_collection_shortcode' :
84
+
85
+ echo '[saswp-reviews-collection id="'.esc_attr($post_id).'"]';
86
+
87
+ break;
88
+
89
+ }
90
+ }
91
+
92
+ function saswp_collection_custom_columns($columns) {
93
+
94
+ unset($columns['date']);
95
+
96
+ $columns['saswp_collection_shortcode'] = '<a>'.esc_html__( 'Shortcode', 'schema-and-structured-data-for-wp' ).'<a>';
97
+
98
+ return $columns;
99
+
100
+ }
101
 
102
  function saswp_reviews_custom_columns_set( $column, $post_id ) {
103
 
132
  $term = get_term( $platform, 'platform' );
133
 
134
  if(isset($term->slug)){
135
+
136
+ if($term->slug == 'self'){
137
+
138
+ $service_object = new saswp_output_service();
139
+ $default_logo = $service_object->saswp_get_publisher(true);
140
+
141
+ echo '<span class="saswp-g-plus"><img src="'.esc_url($default_logo['url']).'" alt="Icon" /></span>';
142
+
143
+ }else{
144
+ echo '<span class="saswp-g-plus"><img src="'.SASWP_PLUGIN_URL.'/admin_section/images/reviews_platform_icon/'.esc_attr($term->slug).'-img.png'.'" alt="Icon" /></span>';
145
+ }
146
+
147
+
148
  }
149
 
150
  break;
157
  case 'saswp_review_place_id' :
158
 
159
  $name = get_post_meta( $post_id, $key='saswp_review_location_id', true);
160
+ echo '<a target="_blank" href="'.esc_url(get_permalink($name)).'">'.esc_attr($name).'</a>';
161
 
162
  break;
163
  case 'saswp_review_shortcode' :
179
  $columns['saswp_review_rating'] = '<a>'.esc_html__( 'Rating', 'schema-and-structured-data-for-wp' ).'<a>';
180
  $columns['saswp_review_platform'] = '<a>'.esc_html__( 'Platform', 'schema-and-structured-data-for-wp' ).'<a>';
181
  $columns['saswp_review_date'] = '<a>'.esc_html__( 'Review Date', 'schema-and-structured-data-for-wp' ).'<a>';
182
+ $columns['saswp_review_place_id'] = '<a>'.esc_html__( 'Place ID/Reviewed To', 'schema-and-structured-data-for-wp' ).'<a>';
183
  $columns['saswp_review_shortcode'] = '<a>'.esc_html__( 'Shortcode', 'schema-and-structured-data-for-wp' ).'<a>';
184
 
185
  return $columns;
300
 
301
  function saswp_insert_platform_terms(){
302
 
303
+ $term_array = array(
304
+ 'Self',
305
  'Agoda',
306
  'Avvo',
307
  'Angies List',
465
  }
466
 
467
  add_filter( 'parse_query', 'saswp_sort_reviews_by_platform' );
468
+
469
+ function saswp_reviews_form_shortcode_metabox($post){
470
+
471
+ echo '<p>Use Below shortcode to show reviews form in your website. Using this you can collect reviews from your website directly</p>';
472
+ echo '<input type="text" value="[saswp-reviews-form]" readonly>';
473
+ }
output/compatibility.php CHANGED
@@ -4,14 +4,28 @@ if ( ! defined( 'ABSPATH' ) ) exit;
4
  class saswp_output_compatibility{
5
 
6
  public $_plugins_list = array();
7
-
8
- public function __construct() {
9
 
 
 
10
  $mappings_file = SASWP_DIR_NAME . '/core/array-list/compatibility-list.php';
11
 
12
  if ( file_exists( $mappings_file ) ) {
 
13
  $plugins_arr = include $mappings_file;
14
  $this->_plugins_list = $plugins_arr['plugins'];
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
  }
@@ -21,7 +35,7 @@ class saswp_output_compatibility{
21
  add_action( 'init', array($this, 'saswp_override_schema_markup'));
22
  add_filter( 'amp_init', array($this, 'saswp_override_schema_markup'));
23
  add_filter( 'wpsso_json_prop_https_schema_org_graph', 'saswp_exclude_wpsso_schema_graph', 10, 5 );
24
- add_action("mv_create_modify_card_style_hooks", array($this, 'saswp_remove_create_mediavine'),100,2);
25
  }
26
 
27
  public function saswp_remove_create_mediavine($attr, $type){
@@ -61,13 +75,85 @@ class saswp_output_compatibility{
61
  }
62
 
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  }
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  public function saswp_easy_testimonials_override(){
68
 
69
  add_filter('easy_testimonials_json_ld', '__return_false');
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  public function saswp_kk_star_ratings_override(){
73
 
@@ -181,6 +267,130 @@ class saswp_output_compatibility{
181
  public function saswp_remove_rank_math_schema($entry){
182
  return array();
183
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  }
185
 
186
  if(class_exists('saswp_output_compatibility')){
4
  class saswp_output_compatibility{
5
 
6
  public $_plugins_list = array();
7
+ public $_theme_list = array();
 
8
 
9
+ public function __construct() {
10
+
11
  $mappings_file = SASWP_DIR_NAME . '/core/array-list/compatibility-list.php';
12
 
13
  if ( file_exists( $mappings_file ) ) {
14
+
15
  $plugins_arr = include $mappings_file;
16
  $this->_plugins_list = $plugins_arr['plugins'];
17
+ $this->_theme_list = $plugins_arr['themes'];
18
+
19
+ foreach($plugins_arr['plugins'] as $key => $plugin){
20
+
21
+ register_activation_hook( WP_PLUGIN_DIR.'/'.$plugin['free'], array($this, $key.'_on_activation') );
22
+
23
+ if(isset($plugin['pro'])){
24
+ register_activation_hook( WP_PLUGIN_DIR.'/'.$plugin['pro'], array($this, $key.'_on_activation') );
25
+ }
26
+
27
+ }
28
+
29
  }
30
 
31
  }
35
  add_action( 'init', array($this, 'saswp_override_schema_markup'));
36
  add_filter( 'amp_init', array($this, 'saswp_override_schema_markup'));
37
  add_filter( 'wpsso_json_prop_https_schema_org_graph', 'saswp_exclude_wpsso_schema_graph', 10, 5 );
38
+ add_action( 'mv_create_modify_card_style_hooks', array($this, 'saswp_remove_create_mediavine'),100,2);
39
  }
40
 
41
  public function saswp_remove_create_mediavine($attr, $type){
75
  }
76
 
77
  }
78
+ //Theme starts here
79
+
80
+ if(!empty($this->_theme_list)){
81
+
82
+ foreach ($this->_theme_list as $key => $plugins){
83
+
84
+ if(isset($sd_data[$plugins['opt_name']]) && $sd_data[$plugins['opt_name']] == 1){
85
+
86
+ if(get_template() == $plugins['free'] || (isset($plugins['pro']) && get_template() ==$plugins['pro'])){
87
+
88
+ $func_name = 'saswp_'.$key.'_override';
89
+
90
+ if(method_exists($this, $func_name) && saswp_global_option()){
91
+ call_user_func(array($this, $func_name));
92
+ }
93
+
94
+ }
95
+
96
+ }
97
+
98
+ }
99
+
100
+ }
101
+
102
+ // Theme ends here
103
 
104
  }
105
 
106
+ public function saswp_soledad_override(){
107
+
108
+ saswp_remove_anonymous_object_filter_or_action(
109
+ 'wp_head',
110
+ 'Penci_JSON_Schema_Validator',
111
+ 'output_schema',
112
+ 'action'
113
+ );
114
+
115
+ }
116
+
117
+ public function saswp_wpamp_override(){
118
+ add_action('amphtml_template_head', array($this, 'saswp_wpamp_override_full'));
119
+ }
120
+ public function saswp_wpamp_override_full($data){
121
+ $data->metadata = array();
122
+ }
123
+
124
+ public function saswp_betteramp_override(){
125
+
126
+ add_action( 'template_redirect', array($this, 'saswp_betteramp_override_full') ,99);
127
+
128
+ }
129
+ public function saswp_betteramp_override_full(){
130
+
131
+ remove_action( 'wp_head', 'BF_Json_LD_Generator::print_output' );
132
+ remove_action( 'better-amp/template/head', 'BF_Json_LD_Generator::print_output' );
133
+
134
+ }
135
+
136
  public function saswp_easy_testimonials_override(){
137
 
138
  add_filter('easy_testimonials_json_ld', '__return_false');
139
 
140
+ }
141
+ public function saswp_testimonial_pro_override(){
142
+
143
+ $args = array(
144
+ 'post_type' => 'sp_tpro_shortcodes'
145
+ );
146
+ $my_posts = new WP_Query($args);
147
+
148
+ if ( $my_posts->have_posts() ) {
149
+
150
+ while ( $my_posts->have_posts() ) : $my_posts->the_post();
151
+ $shortcode_opt['tpro_schema_markup'] = '';
152
+ update_post_meta(get_the_id(), 'sp_tpro_shortcode_options',$shortcode_opt);
153
+ endwhile;
154
+
155
+ }
156
+
157
  }
158
  public function saswp_kk_star_ratings_override(){
159
 
267
  public function saswp_remove_rank_math_schema($entry){
268
  return array();
269
  }
270
+
271
+ /**
272
+ * Functions on compatiblity plugin activation starts here
273
+ */
274
+ public function flex_mls_idx_on_activation(){
275
+ $this->saswp_update_option_on_compatibility_activation('saswp-flexmlx-compativility');
276
+ }
277
+ public function kk_star_ratings_on_activation(){
278
+ $this->saswp_update_option_on_compatibility_activation('saswp-kk-star-raring');
279
+ }
280
+ public function easy_testimonials_on_activation(){
281
+ $this->saswp_update_option_on_compatibility_activation('saswp-easy-testimonials');
282
+ }
283
+ public function testimonial_pro_on_activation(){
284
+ $this->saswp_update_option_on_compatibility_activation('saswp-testimonial-pro');
285
+ }
286
+ public function bne_testimonials_on_activation(){
287
+ $this->saswp_update_option_on_compatibility_activation('saswp-bne-testimonials');
288
+ }
289
+ public function learn_press_on_activation(){
290
+ $this->saswp_update_option_on_compatibility_activation('saswp-learn-press');
291
+ }
292
+ public function learn_dash_on_activation(){
293
+ $this->saswp_update_option_on_compatibility_activation('saswp-learn-dash');
294
+ }
295
+ public function lifter_lms_on_activation(){
296
+ $this->saswp_update_option_on_compatibility_activation('saswp-lifter-lms');
297
+ }
298
+ public function wp_post_ratings_on_activation(){
299
+ $this->saswp_update_option_on_compatibility_activation('saswp-wppostratings-raring');
300
+ }
301
+ public function bb_press_on_activation(){
302
+ $this->saswp_update_option_on_compatibility_activation('saswp-bbpress');
303
+ }
304
+ public function woocommerce_on_activation(){
305
+ $this->saswp_update_option_on_compatibility_activation('saswp-woocommerce');
306
+ }
307
+ public function woocommerce_bookings_on_activation(){
308
+ $this->saswp_update_option_on_compatibility_activation('saswp-woocommerce-booking');
309
+ }
310
+ public function woocommerce_membership_on_activation(){
311
+ $this->saswp_update_option_on_compatibility_activation('saswp-woocommerce-membership');
312
+ }
313
+ public function cooked_on_activation(){
314
+ $this->saswp_update_option_on_compatibility_activation('saswp-cooked');
315
+ }
316
+ public function the_events_calendar_on_activation(){
317
+ $this->saswp_update_option_on_compatibility_activation('saswp-the-events-calendar');
318
+ }
319
+ public function event_organiser_on_activation(){
320
+ $this->saswp_update_option_on_compatibility_activation('saswp-event-organiser');
321
+ }
322
+ public function modern_events_calendar_on_activation(){
323
+ $this->saswp_update_option_on_compatibility_activation('saswp-modern-events-calendar');
324
+ }
325
+ public function wp_event_manager_on_activation(){
326
+ $this->saswp_update_option_on_compatibility_activation('saswp-wp-event-manager');
327
+ }
328
+ public function events_manager_on_activation(){
329
+ $this->saswp_update_option_on_compatibility_activation('saswp-events-manager');
330
+ }
331
+ public function event_calendar_wd_on_activation(){
332
+ $this->saswp_update_option_on_compatibility_activation('saswp-event-calendar-wd');
333
+ }
334
+ public function dw_qna_on_activation(){
335
+ $this->saswp_update_option_on_compatibility_activation('saswp-dw-question-answer');
336
+ }
337
+ public function yoast_seo_on_activation(){
338
+ $this->saswp_update_option_on_compatibility_activation('saswp-yoast');
339
+ }
340
+ public function rank_math_on_activation(){
341
+ $this->saswp_update_option_on_compatibility_activation('saswp-rankmath');
342
+ }
343
+ public function smart_crawl_on_activation(){
344
+ $this->saswp_update_option_on_compatibility_activation('saswp-smart-crawl');
345
+ }
346
+ public function the_seo_framework_on_activation(){
347
+ $this->saswp_update_option_on_compatibility_activation('saswp-the-seo-framework');
348
+ }
349
+ public function seo_press_on_activation(){
350
+ $this->saswp_update_option_on_compatibility_activation('saswp-seo-press');
351
+ }
352
+ public function aiosp_on_activation(){
353
+ $this->saswp_update_option_on_compatibility_activation('saswp-aiosp');
354
+ }
355
+ public function squirrly_seo_on_activation(){
356
+ $this->saswp_update_option_on_compatibility_activation('saswp-squirrly-seo');
357
+ }
358
+ public function wp_recipe_maker_on_activation(){
359
+ $this->saswp_update_option_on_compatibility_activation('saswp-wp-recipe-maker');
360
+ }
361
+ public function wp_ultimate_recipe_on_activation(){
362
+ $this->saswp_update_option_on_compatibility_activation('saswp-wp-ultimate-recipe');
363
+ }
364
+ public function zip_recipes_on_activation(){
365
+ $this->saswp_update_option_on_compatibility_activation('saswp-zip-recipes');
366
+ }
367
+ public function mediavine_create_on_activation(){
368
+ $this->saswp_update_option_on_compatibility_activation('saswp-mediavine-create');
369
+ }
370
+ public function ht_recipes_on_activation(){
371
+ $this->saswp_update_option_on_compatibility_activation('saswp-ht-recipes');
372
+ }
373
+ public function ampforwp_on_activation(){
374
+ $this->saswp_update_option_on_compatibility_activation('saswp-ampforwp');
375
+ }
376
+ public function ampbyautomatic_on_activation(){
377
+ $this->saswp_update_option_on_compatibility_activation('saswp-ampbyautomatic');
378
+ }
379
+ public function betteramp_on_activation(){
380
+ $this->saswp_update_option_on_compatibility_activation('saswp-betteramp');
381
+ }
382
+ public function wpamp_on_activation(){
383
+ $this->saswp_update_option_on_compatibility_activation('saswp-wpamp');
384
+ }
385
+ public function saswp_update_option_on_compatibility_activation($opt_name){
386
+ $defaults = get_option('sd_data');
387
+ $defaults[$opt_name] = 1;
388
+ update_option('sd_data', $defaults);
389
+ }
390
+ /**
391
+ * Functions on compatiblity plugin activation ends here
392
+ */
393
+
394
  }
395
 
396
  if(class_exists('saswp_output_compatibility')){
output/flexmls.php CHANGED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Flexmls Class
4
+ *
5
+ * @author Magazine3
6
+ * @category Frontend
7
+ * @path output/flexmls
8
+ * @Version 1.0.7
9
+ */
10
+
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ class saswp_flexmls_list extends flexmlsConnectPageCore{
15
+
16
+ public $shorcode = array();
17
+ protected $search_criteria;
18
+
19
+ function __construct() {
20
+
21
+ global $fmc_api;
22
+
23
+ if(!empty($fmc_api)){
24
+
25
+ parent::__construct($fmc_api);
26
+
27
+ }
28
+
29
+ add_filter('the_content', array($this,'saswp_content'),9);
30
+ add_action('wp_footer', array($this, 'saswp_get_flexidx_listing'));
31
+ add_action('amp_post_template_footer',array($this, 'saswp_get_flexidx_listing'));
32
+ }
33
+ public function saswp_get_flexidx_listing(){
34
+
35
+ global $fmc_api;
36
+
37
+ if(!empty($fmc_api)){
38
+
39
+ $settings = array();
40
+
41
+ foreach ($this->shorcode[1] as $shortcodeAttr){
42
+
43
+ if (preg_match_all('/(\b\w+)="(.*?(?="\s\w+=|$))/', $shortcodeAttr, $matches)) {
44
+
45
+ $settings = array_combine ( $matches[1], $matches[2] );
46
+
47
+ }
48
+
49
+ $title = isset($settings['title']) ? ($settings['title']) : '';
50
+ $source = isset($settings['source']) ? trim($settings['source']) : '';
51
+ $display = isset($settings['display']) ? trim($settings['display']) : '';
52
+ $days = isset($settings['days']) ? trim($settings['days']) : '';
53
+ $property_type = isset($settings['property_type']) ? trim($settings['property_type']): '';
54
+ $property_sub_type = isset($settings['property_sub_type']) ? trim($settings['property_sub_type']): '';
55
+ $link = isset($settings['link']) ? trim($settings['link']) : '';
56
+ $sort = isset($settings['sort']) ? trim($settings['sort']) : '';
57
+ $agent = isset($settings['agent']) ? trim($settings['agent']) : '';
58
+ $status = isset($settings['status']) ? trim($settings['status'], '"') : '';
59
+ $locations = '';
60
+
61
+ if ( isset($settings['location']) ) {
62
+ $locations = html_entity_decode( flexmlsConnect::clean_comma_list( stripslashes( $settings['location'] ) ) );
63
+ }
64
+ if ($link == "default") {
65
+ $link = flexmlsConnect::get_default_idx_link();
66
+ }
67
+ $source = (empty($source)) ? "my" : $source;
68
+ $pure_conditions = array();
69
+
70
+ if (isset($settings['days'])){
71
+ $days = $settings['days'];
72
+ }
73
+ elseif ($display == "open_houses"){
74
+ //For backward compatibility. Set # of days for open house default to 10
75
+ $days = 10;
76
+ }
77
+ else{
78
+ $days = 1;
79
+ if (date("l") == "Monday")
80
+ $days = 3;
81
+ }
82
+
83
+ $flexmls_temp_date = date_default_timezone_get();
84
+ date_default_timezone_set('America/Chicago');
85
+ $specific_time = date("Y-m-d\TH:i:s.u",strtotime("-".$days." days"));
86
+ date_default_timezone_set($flexmls_temp_date);
87
+
88
+ if ($display == "new") {
89
+ $pure_conditions["OriginalOnMarketTimestamp"] = $specific_time;
90
+ }
91
+ elseif ($display == "open_houses") {
92
+ $pure_conditions['OpenHouses'] = $days;
93
+ }
94
+ elseif ($display == "price_changes") {
95
+ $pure_conditions["PriceChangeTimestamp"] = $specific_time;
96
+ }
97
+ elseif ($display == "recent_sales") {
98
+ $pure_conditions["StatusChangeTimestamp"] = $specific_time;
99
+ }
100
+
101
+ if ($sort == "recently_changed") {
102
+ $pure_conditions['OrderBy'] = "-ModificationTimestamp"; // special tag caught later
103
+ }
104
+ elseif ($sort == "price_low_high") {
105
+ $pure_conditions['OrderBy'] = "+ListPrice";
106
+ }
107
+ elseif ($sort == "price_high_low") {
108
+ $pure_conditions['OrderBy'] = "-ListPrice";
109
+ }
110
+ elseif ($sort == "open_house"){
111
+ $pure_conditions['OrderBy'] = "+OpenHouses";
112
+ }
113
+ elseif ($sort == "sqft_low_high") {
114
+ $pure_conditions['OrderBy'] = "+BuildingAreaTotal";
115
+ }
116
+ elseif ($sort == "sqft_high_low") {
117
+ $pure_conditions['OrderBy'] = "-BuildingAreaTotal";
118
+ }
119
+ elseif ($sort == "year_built_high_low") {
120
+ $pure_conditions['OrderBy'] = "-YearBuilt";
121
+ }
122
+ elseif ($sort == "year_built_low_high") {
123
+ $pure_conditions['OrderBy'] = "+YearBuilt";
124
+ }
125
+
126
+ $apply_property_type = ($source == 'location') ? true : false;
127
+
128
+ if ($source == 'agent') {
129
+
130
+ $pure_conditions['ListAgentId'] = $agent;
131
+
132
+ }
133
+ // parse location search settings
134
+ $locations = flexmlsConnect::parse_location_search_string($locations);
135
+ if($locations){
136
+
137
+ foreach ($locations as $loc) {
138
+
139
+ if(array_key_exists($loc['f'], $pure_conditions)) {
140
+ $pure_conditions[$loc['f']] .= ',' . $loc['v'];
141
+ } else {
142
+ $pure_conditions[$loc['f']] = $loc['v'];
143
+ }
144
+
145
+ }
146
+ }
147
+
148
+ if ($apply_property_type and !empty($property_type)) {
149
+ $pure_conditions['PropertyType'] = $property_type;
150
+ $pure_conditions['PropertySubType'] = $property_sub_type;
151
+ }
152
+
153
+ if ($link) {
154
+ $link_details = $fmc_api->GetIDXLinkFromTinyId($link);
155
+
156
+ if ($link_details['LinkType'] == "SavedSearch") {
157
+ $pure_conditions['SavedSearch'] = $link_details['SearchId'];
158
+ }
159
+ }
160
+
161
+ if ($source == "my") {
162
+ // make a simple request to /my/listings with no _filter's
163
+ $pure_conditions['My'] = 'listings';
164
+ }
165
+ elseif ($source == "office") {
166
+ $pure_conditions['My'] = 'office';
167
+ }
168
+ elseif ($source == "company") {
169
+ $pure_conditions['My'] = 'company';
170
+ }
171
+
172
+ if ($status) {
173
+ $pure_conditions["StandardStatus"] = $status;
174
+ }
175
+
176
+ $custom_page = new flexmlsConnectPageSearchResults($fmc_api);
177
+ $custom_page->title = $title;
178
+ $custom_page->input_source = 'shortcode';
179
+ $custom_page->input_data = $pure_conditions;
180
+ list($params, $cleaned_raw_criteria, $context) = $custom_page->parse_search_parameters_into_api_request();
181
+ unset($params['_select']);
182
+ $this->search_criteria = $cleaned_raw_criteria;
183
+
184
+ require_once( ABSPATH . '/wp-content/plugins/flexmls-idx/lib/flexmlsAPI/Core.php' );
185
+ $flexcoreApi = new flexmlsAPI_Core();
186
+
187
+ if ($context == "listings") {
188
+ $results = $flexcoreApi->GetMyListings($params);
189
+
190
+ }
191
+ elseif ($context == "office") {
192
+ $results = $flexcoreApi->GetOfficeListings($params);
193
+ }
194
+ elseif ($context == "company") {
195
+ $results = $flexcoreApi->GetCompanyListings($params);
196
+ }
197
+ else {
198
+ $cache_time = (strpos($params['_filter'],'ListingCart')!==false) ? 0 : '10m';
199
+ $results = $flexcoreApi->GetListings($params, $cache_time);
200
+ }
201
+ $count = count($results);
202
+ echo "\n";
203
+ echo '<!-- Schema & Structured Data For WP v'.esc_attr(SASWP_VERSION) .' IDX - -->';
204
+ echo "\n";
205
+ echo '<script type="application/ld+json">';
206
+ echo "\n";
207
+ echo "[";
208
+
209
+ foreach ($results as $result){
210
+
211
+ if($count > 1){
212
+
213
+ echo json_encode($this->saswp_generate_schema_markup($result)).',';
214
+
215
+ }else{
216
+
217
+ echo json_encode($this->saswp_generate_schema_markup($result));
218
+
219
+ }
220
+
221
+ $count --;
222
+
223
+ }
224
+ echo ']';
225
+ echo "\n";
226
+ echo '</script>';
227
+ }
228
+
229
+ }
230
+
231
+ }
232
+ public function saswp_content($content){
233
+
234
+ preg_match_all("/[[]idx_listing_summary(.*?)[]]/", $content,$matches);
235
+
236
+ $this->shorcode = $matches;
237
+
238
+ return $content;
239
+
240
+ }
241
+ public function saswp_generate_schema_markup($result){
242
+
243
+ global $sd_data;
244
+ $sellername = '';
245
+ $sellerurl = '';
246
+ $sellerimage = '';
247
+ $selleraddress = '';
248
+ $sellertelephone = '';
249
+ $sellerpricerange = '';
250
+
251
+ if(isset($sd_data['saswp-flexmlx-compativility']) && $sd_data['saswp-flexmlx-compativility'] == 1 && is_plugin_active('flexmls-idx/flexmls_connect.php')){
252
+
253
+ if(isset($sd_data['sd-seller-name'])){
254
+ $sellername =$sd_data['sd-seller-name'];
255
+ }
256
+ if(isset($sd_data['sd-seller-url'])){
257
+ $sellerurl =$sd_data['sd-seller-url'];
258
+ }
259
+ if(isset($sd_data['sd_seller_image']['thumbnail'])){
260
+ $sellerimage = $sd_data['sd_seller_image']['thumbnail'];
261
+ }
262
+ if(isset($sd_data['sd-seller-address'])){
263
+ $selleraddress =$sd_data['sd-seller-address'];
264
+ }
265
+ if(isset($sd_data['sd-seller-telephone'])){
266
+ $sellertelephone =$sd_data['sd-seller-telephone'];
267
+ }
268
+ if(isset($sd_data['sd-seller-price-range'])){
269
+ $sellerpricerange =$sd_data['sd-seller-price-range'];
270
+ }
271
+
272
+ $link_to_details_criteria = $this->search_criteria;
273
+ $link_to_details = flexmlsConnect::make_nice_address_url($result['StandardFields'], $link_to_details_criteria, 'fmc_tag');
274
+
275
+ $photos = array();
276
+
277
+ if(isset($result['StandardFields'])){
278
+
279
+ foreach ($result['StandardFields']['Photos'] as $photo){
280
+
281
+ $photos[] = array(
282
+ 'url' => $photo['UriThumb']
283
+ );
284
+
285
+ }
286
+ }
287
+
288
+ $input = array();
289
+ $input = array(
290
+ "@context" => saswp_context_url(),
291
+ "@type" => ["Product", "Apartment"],
292
+ "name" => esc_attr($result['StandardFields']['UnparsedFirstLineAddress']),
293
+ "description" => isset($result['StandardFields']['PublicRemarks'])? $result['StandardFields']['PublicRemarks']:strip_tags(get_the_excerpt()),
294
+ "sku" => esc_attr($result['StandardFields']['BuildingAreaTotal']),
295
+ "brand" => get_bloginfo(),
296
+ "mpn" => esc_attr($result['StandardFields']['YearBuilt']),
297
+ "url" => esc_url($link_to_details),
298
+ "aggregateRating" => array(
299
+ "@type"=> "AggregateRating",
300
+ "ratingValue" => '5.0',
301
+ "reviewCount" => '1'
302
+ ),
303
+ "review" => array(
304
+ '@type' => 'Review',
305
+ 'author' => get_the_author(),
306
+ 'datePublished' => $result['StandardFields']['ListingUpdateTimestamp'],
307
+ 'reviewRating' => array(
308
+ '@type' => 'Rating',
309
+ 'bestRating' => '5.0',
310
+ 'ratingValue' => '5.0',
311
+ 'worstRating' => '1.0',
312
+ )
313
+ ),
314
+ "image" => esc_url($result['StandardFields']['Photos'][0]['Uri300']),
315
+ "offers" => array(
316
+ "priceCurrency" => "USD",
317
+ "price" => esc_attr($result['StandardFields']['ListPrice']),
318
+ "availability" => 'InStock',
319
+ "url" => esc_url($link_to_details),
320
+ "priceValidUntil" => $result['StandardFields']['ListingUpdateTimestamp'],
321
+ "seller" => array(
322
+ array(
323
+ "@type" => "RealEstateAgent",
324
+ "name" => esc_attr($sellername),
325
+ "url" => esc_url($sellerurl),
326
+ "image" => esc_attr($sellerimage),
327
+ "address" => esc_attr($selleraddress),
328
+ "priceRange" => esc_attr($sellerpricerange),
329
+ "telephone" => esc_attr($sellertelephone),
330
+ )
331
+ ),
332
+ ),
333
+ 'address' => esc_attr($result['StandardFields']['StreetNumber']).' '. esc_attr($result['StandardFields']['StreetName']).' '.esc_attr($result['StandardFields']['StreetSuffix']) .' '.esc_attr($result['StandardFields']['City']).' '. esc_attr($result['StandardFields']['PostalCode']),
334
+ 'geo' => array(
335
+ "@type" => "GeoCoordinates",
336
+ "address" => esc_attr($result['StandardFields']['UnparsedFirstLineAddress']),
337
+ "addressCountry" => esc_attr($result['StandardFields']['UnparsedFirstLineAddress']),
338
+ ),
339
+
340
+ 'photos' => $photos,
341
+ );
342
+
343
+ return $input;
344
+ }
345
+ }
346
+ }
347
+ if (class_exists('saswp_flexmls_list')) {
348
+ new saswp_flexmls_list;
349
+ };
output/function.php CHANGED
@@ -21,19 +21,28 @@ function saswp_schema_markup_hook_on_init() {
21
  global $sd_data;
22
 
23
  if(isset($sd_data['saswp-markup-footer']) && $sd_data['saswp-markup-footer'] == 1){
 
24
  add_action( 'wp_footer', 'saswp_schema_markup_output');
25
  add_action( 'amp_post_template_footer' , 'saswp_schema_markup_output' );
 
 
 
26
  }else{
27
- add_action('wp_head', 'saswp_schema_markup_output');
 
 
28
  add_action( 'amp_post_template_head' , 'saswp_schema_markup_output' );
 
 
29
  }
30
 
31
  add_action('cooked_amp_head', 'saswp_schema_markup_output');
32
 
33
  remove_action( 'amp_post_template_head', 'amp_post_template_add_schemaorg_metadata',99,1);
34
  remove_action( 'amp_post_template_footer', 'amp_post_template_add_schemaorg_metadata',99,1);
35
- remove_action('wp_footer', 'orbital_markup_site');
36
- add_filter('hunch_schema_markup', '__return_false');
 
37
 
38
  if(class_exists('BSF_AIOSRS_Pro_Markup')){
39
 
@@ -645,26 +654,6 @@ function saswp_structure_data_access_scripts($data){
645
  return $data;
646
 
647
  }
648
-
649
- /**
650
- * Function to fetch schema's post meta by its id from database using get_post_meta function
651
- * @param type $schema_id
652
- * @param type $schema_key
653
- * @return type array
654
- */
655
- function saswp_get_schema_data($schema_id, $schema_key){
656
-
657
- $details = array();
658
-
659
- if($schema_id && $schema_key){
660
-
661
- $details = get_post_meta($schema_id, $schema_key, true);
662
-
663
- }
664
-
665
- return $details;
666
- }
667
-
668
  /**
669
  * Function generates list items for the breadcrumbs schema markup
670
  * @global type $sd_data
@@ -806,6 +795,8 @@ function saswp_remove_microdata($content){
806
  $content = preg_replace("/itemprop='logo' itemscope itemtype='https:\/\/schema.org\/ImageObject'/", "", $content);
807
  $content = preg_replace('/itemprop="logo" itemscope="" itemtype="https:\/\/schema.org\/ImageObject"/', "", $content);
808
  $content = preg_replace('/itemprop=\"(worstRating|ratingValue|bestRating|aggregateRating|ratingCount|reviewBody|review|name|datePublished|author|reviewRating)\"/', "", $content);
 
 
809
  $content = preg_replace('/itemscope/', "", $content);
810
 
811
  //Clean json markup
@@ -1151,6 +1142,122 @@ function saswp_get_easy_testomonials(){
1151
 
1152
  }
1153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1154
  function saswp_get_bne_testimonials_data($atts, $testimo_str){
1155
 
1156
  $reviews = array();
@@ -1207,6 +1314,60 @@ function saswp_get_bne_testimonials_data($atts, $testimo_str){
1207
 
1208
  }
1209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1210
  function saswp_get_bne_testomonials(){
1211
 
1212
  $testimonial = array();
@@ -1263,21 +1424,33 @@ function saswp_get_bne_testomonials(){
1263
 
1264
  }
1265
 
1266
- function saswp_append_fetched_reviews($input1){
1267
 
1268
  global $post;
1269
 
1270
- if(is_object($post)){
 
 
 
 
 
 
 
 
 
 
1271
 
 
 
 
 
1272
  $pattern = get_shortcode_regex();
1273
 
1274
- if ( preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches )
1275
  && array_key_exists( 2, $matches )
1276
  && in_array( 'saswp-reviews', $matches[2] ) )
1277
  {
1278
-
1279
- $service = new saswp_reviews_service();
1280
-
1281
  foreach ($matches[0] as $matche){
1282
 
1283
  $mached = rtrim($matche, ']');
@@ -1307,9 +1480,49 @@ function saswp_append_fetched_reviews($input1){
1307
 
1308
  }
1309
 
1310
- }
1311
-
1312
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1313
  }
1314
  return $input1;
1315
  }
21
  global $sd_data;
22
 
23
  if(isset($sd_data['saswp-markup-footer']) && $sd_data['saswp-markup-footer'] == 1){
24
+
25
  add_action( 'wp_footer', 'saswp_schema_markup_output');
26
  add_action( 'amp_post_template_footer' , 'saswp_schema_markup_output' );
27
+ add_action( 'better-amp/template/footer', 'saswp_schema_markup_output', 1, 1 );
28
+ add_action( 'amphtml_template_footer', 'saswp_schema_markup_output');
29
+
30
  }else{
31
+
32
+ add_action( 'better-amp/template/head', 'saswp_schema_markup_output', 1, 1 );
33
+ add_action( 'wp_head', 'saswp_schema_markup_output');
34
  add_action( 'amp_post_template_head' , 'saswp_schema_markup_output' );
35
+ add_action( 'amphtml_template_head', 'saswp_schema_markup_output');
36
+
37
  }
38
 
39
  add_action('cooked_amp_head', 'saswp_schema_markup_output');
40
 
41
  remove_action( 'amp_post_template_head', 'amp_post_template_add_schemaorg_metadata',99,1);
42
  remove_action( 'amp_post_template_footer', 'amp_post_template_add_schemaorg_metadata',99,1);
43
+ remove_action( 'wp_footer', 'orbital_markup_site');
44
+ add_filter( 'amp_schemaorg_metadata', '__return_empty_array' );
45
+ add_filter( 'hunch_schema_markup', '__return_false');
46
 
47
  if(class_exists('BSF_AIOSRS_Pro_Markup')){
48
 
654
  return $data;
655
 
656
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
657
  /**
658
  * Function generates list items for the breadcrumbs schema markup
659
  * @global type $sd_data
795
  $content = preg_replace("/itemprop='logo' itemscope itemtype='https:\/\/schema.org\/ImageObject'/", "", $content);
796
  $content = preg_replace('/itemprop="logo" itemscope="" itemtype="https:\/\/schema.org\/ImageObject"/', "", $content);
797
  $content = preg_replace('/itemprop=\"(worstRating|ratingValue|bestRating|aggregateRating|ratingCount|reviewBody|review|name|datePublished|author|reviewRating)\"/', "", $content);
798
+ $content = preg_replace('/itemscope\=\"(.*?)\"/', "", $content);
799
+ $content = preg_replace("/itemscope\='(.*?)\'/", "", $content);
800
  $content = preg_replace('/itemscope/', "", $content);
801
 
802
  //Clean json markup
1142
 
1143
  }
1144
 
1145
+ function saswp_get_testimonial_pro_data($shortcode_data, $testimo_str){
1146
+
1147
+ $reviews = array();
1148
+ $ratings = array();
1149
+
1150
+ if ( $shortcode_data['display_testimonials_from'] == 'specific_testimonials' && ! empty( $shortcode_data['specific_testimonial'] ) ) {
1151
+ $specific_testimonial_ids = $shortcode_data['specific_testimonial'];
1152
+ } else {
1153
+ $specific_testimonial_ids = null;
1154
+ }
1155
+
1156
+ if ( $shortcode_data['layout'] == 'grid' && $shortcode_data['grid_pagination'] == 'true' || $shortcode_data['layout'] == 'masonry' && $shortcode_data['grid_pagination'] == 'true' || $shortcode_data['layout'] == 'list' && $shortcode_data['grid_pagination'] == 'true' ) {
1157
+ if ( is_front_page() ) {
1158
+ $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1;
1159
+ } else {
1160
+ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
1161
+ }
1162
+ $args = array(
1163
+ 'post_type' => 'spt_testimonial',
1164
+ 'orderby' => $shortcode_data['testimonial_order_by'],
1165
+ 'order' => $shortcode_data['testimonial_order'],
1166
+ 'posts_per_page' => $shortcode_data['number_of_total_testimonials'],
1167
+ 'post__in' => $specific_testimonial_ids,
1168
+ 'paged' => $paged,
1169
+ );
1170
+ } else {
1171
+ $args = array(
1172
+ 'post_type' => 'spt_testimonial',
1173
+ 'orderby' => $shortcode_data['testimonial_order_by'],
1174
+ 'order' => $shortcode_data['testimonial_order'],
1175
+ 'posts_per_page' => $shortcode_data['number_of_total_testimonials'],
1176
+ 'post__in' => $specific_testimonial_ids,
1177
+ );
1178
+ }
1179
+
1180
+ if ( $shortcode_data['display_testimonials_from'] == 'category' && ! empty( $shortcode_data['category_list'] ) ) {
1181
+ $args['tax_query'][] = array(
1182
+ 'taxonomy' => 'testimonial_cat',
1183
+ 'field' => 'term_id',
1184
+ 'terms' => $shortcode_data['category_list'],
1185
+ 'operator' => $shortcode_data['category_operator'],
1186
+ );
1187
+ }
1188
+
1189
+
1190
+
1191
+
1192
+ $testimonial = get_posts( $args );
1193
+
1194
+ if(!empty($testimonial)){
1195
+
1196
+ $sumofrating = 0;
1197
+ $avg_rating = 1;
1198
+
1199
+ foreach ($testimonial as $value){
1200
+
1201
+ $meta_option = get_post_meta($value->ID, 'sp_tpro_meta_options', true);
1202
+
1203
+ $tpro_rating_star = $meta_option['tpro_rating'];
1204
+
1205
+ switch ( $tpro_rating_star ) {
1206
+
1207
+ case 'five_star':
1208
+ $rating = 5;
1209
+ break;
1210
+ case 'four_star':
1211
+ $rating = 4;
1212
+ break;
1213
+ case 'three_star':
1214
+ $rating = 3;
1215
+ break;
1216
+ case 'two_star':
1217
+ $rating = 2;
1218
+ break;
1219
+ case 'one_star':
1220
+ $rating = 1;
1221
+ break;
1222
+ default:
1223
+ $rating = 1;
1224
+ }
1225
+
1226
+ $author = $meta_option['tpro_name'];
1227
+
1228
+ $sumofrating += $rating;
1229
+
1230
+ $reviews[] = array(
1231
+ '@type' => 'Review',
1232
+ 'author' => $author,
1233
+ 'datePublished' => saswp_format_date_time($value->post_date),
1234
+ 'description' => $value->post_content,
1235
+ 'reviewRating' => array(
1236
+ '@type' => 'Rating',
1237
+ 'bestRating' => '5',
1238
+ 'ratingValue' => $rating,
1239
+ 'worstRating' => '1',
1240
+ )
1241
+ );
1242
+
1243
+ }
1244
+
1245
+ if($sumofrating> 0){
1246
+ $avg_rating = $sumofrating / count($reviews);
1247
+ }
1248
+
1249
+ $ratings['aggregateRating'] = array(
1250
+ '@type' => 'AggregateRating',
1251
+ 'ratingValue' => $avg_rating,
1252
+ 'reviewCount' => count($testimonial)
1253
+ );
1254
+
1255
+ }
1256
+
1257
+ return array('reviews' => $reviews, 'rating' => $ratings);
1258
+
1259
+ }
1260
+
1261
  function saswp_get_bne_testimonials_data($atts, $testimo_str){
1262
 
1263
  $reviews = array();
1314
 
1315
  }
1316
 
1317
+ function saswp_get_testomonial_pro(){
1318
+
1319
+ $testimonial = array();
1320
+
1321
+ global $post, $sd_data;
1322
+
1323
+ if(isset($sd_data['saswp-testimonial-pro']) && $sd_data['saswp-testimonial-pro'] == 1){
1324
+
1325
+ if(is_object($post)){
1326
+
1327
+ $pattern = get_shortcode_regex();
1328
+
1329
+ if ( preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches )
1330
+ && array_key_exists( 2, $matches ) )
1331
+ {
1332
+
1333
+ $testimo_str = '';
1334
+
1335
+ if(in_array( 'testimonial_pro', $matches[2] )){
1336
+ $testimo_str = 'testimonial_pro';
1337
+ }
1338
+
1339
+ if($testimo_str){
1340
+
1341
+ foreach ($matches[0] as $matche){
1342
+
1343
+ $mached = rtrim($matche, ']');
1344
+ $mached = ltrim($mached, '[');
1345
+ $mached = trim($mached);
1346
+ $atts = shortcode_parse_atts('['.$mached.' ]');
1347
+
1348
+ $shortcode_data = get_post_meta( $atts['id'], 'sp_tpro_shortcode_options', true );
1349
+
1350
+ if($shortcode_data){
1351
+
1352
+ $testimonial = saswp_get_testimonial_pro_data($shortcode_data, $testimo_str);
1353
+
1354
+ }
1355
+
1356
+ break;
1357
+ }
1358
+
1359
+ }
1360
+
1361
+ }
1362
+
1363
+ }
1364
+
1365
+ }
1366
+
1367
+ return $testimonial;
1368
+
1369
+ }
1370
+
1371
  function saswp_get_bne_testomonials(){
1372
 
1373
  $testimonial = array();
1424
 
1425
  }
1426
 
1427
+ function saswp_append_fetched_reviews($input1, $schema_post_id = null){
1428
 
1429
  global $post;
1430
 
1431
+ $content = '';
1432
+
1433
+ if(is_object($post)){
1434
+ $content = $post->post_content;
1435
+ }
1436
+
1437
+ if((function_exists('is_product_category') && is_product_category()) || is_category() ){
1438
+
1439
+ $content = category_description();
1440
+
1441
+ }
1442
 
1443
+ if($content){
1444
+
1445
+ $service = new saswp_reviews_service();
1446
+
1447
  $pattern = get_shortcode_regex();
1448
 
1449
+ if ( preg_match_all( '/'. $pattern .'/s', $content, $matches )
1450
  && array_key_exists( 2, $matches )
1451
  && in_array( 'saswp-reviews', $matches[2] ) )
1452
  {
1453
+
 
 
1454
  foreach ($matches[0] as $matche){
1455
 
1456
  $mached = rtrim($matche, ']');
1480
 
1481
  }
1482
 
1483
+ }else{
1484
+
1485
+ if($schema_post_id){
1486
+
1487
+ $attached_rv = get_post_meta($schema_post_id, 'saswp_attahced_reviews', true);
1488
+ $append_reviews = get_post_meta($schema_post_id, 'saswp_enable_append_reviews', true);
1489
+
1490
+ if($append_reviews == 1 && $attached_rv){
1491
+
1492
+ $total_rv = array();
1493
+
1494
+ foreach($attached_rv as $review_id){
1495
+
1496
+ $attr['id'] = $review_id;
1497
+ $reviews = $service->saswp_get_reviews_list_by_parameters($attr);
1498
+ $total_rv = array_merge($total_rv, $reviews);
1499
+
1500
+ }
1501
+
1502
+ if($total_rv){
1503
+
1504
+ $rv_markup = $service->saswp_get_reviews_schema_markup($total_rv);
1505
+
1506
+ if($rv_markup){
1507
+
1508
+ if(isset($input1['review'])){
1509
+
1510
+ $input1['review'] = array_merge($input1['review'], $rv_markup['review']);
1511
+
1512
+ }else{
1513
+ $input1 = array_merge($input1, $rv_markup);
1514
+ }
1515
+
1516
+ }
1517
+
1518
+ }
1519
+
1520
+ }
1521
+
1522
+ }
1523
+
1524
+ }
1525
+
1526
  }
1527
  return $input1;
1528
  }
output/markup.php CHANGED
@@ -1723,7 +1723,9 @@ function saswp_dfp_schema_markup($schema_id, $schema_post_id, $all_post_meta){
1723
  'author' => array(
1724
  '@type' => 'Person',
1725
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_name_'.$schema_id, 'saswp_array'),
1726
- 'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_description_'.$schema_id, 'saswp_array')
 
 
1727
  ),
1728
  'publisher' => array(
1729
  '@type' => 'Organization',
@@ -1760,9 +1762,10 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
1760
  'datePublished' => isset($all_post_meta['saswp_blogposting_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_published_'.$schema_id][0])):'',
1761
  'dateModified' => isset($all_post_meta['saswp_blogposting_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_modified_'.$schema_id][0])):'',
1762
  'author' => array(
1763
- '@type' => 'Person',
1764
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array'),
1765
- 'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array')
 
1766
  ),
1767
  'publisher' => array(
1768
  '@type' => 'Organization',
@@ -1831,9 +1834,10 @@ function saswp_audio_object_schema_markup($schema_id, $schema_post_id, $all_post
1831
  'datePublished' => isset($all_post_meta['saswp_audio_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_published_'.$schema_id][0])):'',
1832
  'dateModified' => isset($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id][0])):'',
1833
  'author' => array(
1834
- '@type' => 'Person',
1835
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_name_'.$schema_id, 'saswp_array'),
1836
- 'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_description_'.$schema_id, 'saswp_array')
 
1837
  ),
1838
 
1839
  );
@@ -1868,6 +1872,7 @@ function saswp_webpage_schema_markup($schema_id, $schema_post_id, $all_post_meta
1868
  '@type' => 'Person',
1869
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_name_'.$schema_id, 'saswp_array'),
1870
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_description_'.$schema_id, 'saswp_array'),
 
1871
  ),
1872
  'publisher' => array(
1873
  '@type' => 'Organization',
@@ -1920,7 +1925,8 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
1920
  'author' => array(
1921
  '@type' => 'Person',
1922
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array'),
1923
- 'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array')
 
1924
  ),
1925
  'publisher' => array(
1926
  '@type' => 'Organization',
@@ -1987,7 +1993,8 @@ function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post
1987
  'author' => array(
1988
  '@type' => 'Person',
1989
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array'),
1990
- 'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array')
 
1991
  ),
1992
  'publisher' => array(
1993
  '@type' => 'Organization',
@@ -2066,11 +2073,12 @@ function saswp_news_article_schema_markup($schema_id, $schema_post_id, $all_post
2066
  '@type' => 'Person',
2067
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_name_'.$schema_id, 'saswp_array'),
2068
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_description_'.$schema_id, 'saswp_array'),
 
2069
  'Image' => array(
2070
- '@type' => 'ImageObject',
2071
- 'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_image_'.$schema_id, 'saswp_array'),
2072
- 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2073
- 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2074
  ),
2075
  ),
2076
  'publisher' => array(
@@ -2146,11 +2154,12 @@ function saswp_video_object_schema_markup($schema_id, $schema_post_id, $all_post
2146
  '@type' => 'Person',
2147
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_name_'.$schema_id, 'saswp_array'),
2148
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_description_'.$schema_id, 'saswp_array'),
 
2149
  'Image' => array(
2150
- '@type' => 'ImageObject',
2151
- 'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_image_'.$schema_id, 'saswp_array'),
2152
- 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2153
- 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2154
  ),
2155
  ),
2156
  'publisher' => array(
@@ -2193,11 +2202,12 @@ function saswp_image_object_schema_markup($schema_id, $schema_post_id, $all_post
2193
  '@type' => 'Person',
2194
  'name' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_name_'.$schema_id, 'saswp_array'),
2195
  'description' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_description_'.$schema_id, 'saswp_array'),
 
2196
  'Image' => array(
2197
- '@type' => 'ImageObject',
2198
- 'url' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_image_'.$schema_id, 'saswp_array'),
2199
- 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2200
- 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2201
  ),
2202
  ),
2203
  'publisher' => array(
@@ -2295,16 +2305,14 @@ function saswp_service_schema_markup($schema_id, $schema_post_id, $all_post_meta
2295
  function saswp_review_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2296
 
2297
  global $sd_data;
2298
- $input = array();
2299
 
2300
  if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah')){
2301
 
2302
  remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
2303
 
2304
  }
2305
-
2306
- $service = new saswp_output_service();
2307
-
2308
  $input1['@context'] = saswp_context_url();
2309
  $input1['@type'] = 'Review';
2310
  $input1['@id'] = trailingslashit(get_permalink()).'#review';
@@ -2414,6 +2422,6 @@ function saswp_review_schema_markup($schema_id, $schema_post_id, $all_post_meta)
2414
 
2415
  }
2416
 
2417
- return $input;
2418
 
2419
  }
1723
  'author' => array(
1724
  '@type' => 'Person',
1725
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_name_'.$schema_id, 'saswp_array'),
1726
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_description_'.$schema_id, 'saswp_array'),
1727
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_dfp_author_url_'.$schema_id, 'saswp_array')
1728
+
1729
  ),
1730
  'publisher' => array(
1731
  '@type' => 'Organization',
1762
  'datePublished' => isset($all_post_meta['saswp_blogposting_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_published_'.$schema_id][0])):'',
1763
  'dateModified' => isset($all_post_meta['saswp_blogposting_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_blogposting_date_modified_'.$schema_id][0])):'',
1764
  'author' => array(
1765
+ '@type' => 'Person',
1766
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_name_'.$schema_id, 'saswp_array'),
1767
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_description_'.$schema_id, 'saswp_array'),
1768
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_author_url_'.$schema_id, 'saswp_array')
1769
  ),
1770
  'publisher' => array(
1771
  '@type' => 'Organization',
1834
  'datePublished' => isset($all_post_meta['saswp_audio_schema_date_published_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_published_'.$schema_id][0])):'',
1835
  'dateModified' => isset($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id])?date('Y-m-d\TH:i:s\Z',strtotime($all_post_meta['saswp_audio_schema_date_modified_'.$schema_id][0])):'',
1836
  'author' => array(
1837
+ '@type' => 'Person',
1838
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_name_'.$schema_id, 'saswp_array'),
1839
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_description_'.$schema_id, 'saswp_array'),
1840
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_audio_schema_author_url_'.$schema_id, 'saswp_array')
1841
  ),
1842
 
1843
  );
1872
  '@type' => 'Person',
1873
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_name_'.$schema_id, 'saswp_array'),
1874
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_description_'.$schema_id, 'saswp_array'),
1875
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_webpage_author_url_'.$schema_id, 'saswp_array'),
1876
  ),
1877
  'publisher' => array(
1878
  '@type' => 'Organization',
1925
  'author' => array(
1926
  '@type' => 'Person',
1927
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_name_'.$schema_id, 'saswp_array'),
1928
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_description_'.$schema_id, 'saswp_array'),
1929
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_author_url_'.$schema_id, 'saswp_array')
1930
  ),
1931
  'publisher' => array(
1932
  '@type' => 'Organization',
1993
  'author' => array(
1994
  '@type' => 'Person',
1995
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_name_'.$schema_id, 'saswp_array'),
1996
+ 'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_description_'.$schema_id, 'saswp_array'),
1997
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_author_url_'.$schema_id, 'saswp_array')
1998
  ),
1999
  'publisher' => array(
2000
  '@type' => 'Organization',
2073
  '@type' => 'Person',
2074
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_name_'.$schema_id, 'saswp_array'),
2075
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_description_'.$schema_id, 'saswp_array'),
2076
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_url_'.$schema_id, 'saswp_array'),
2077
  'Image' => array(
2078
+ '@type' => 'ImageObject',
2079
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_author_image_'.$schema_id, 'saswp_array'),
2080
+ 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2081
+ 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2082
  ),
2083
  ),
2084
  'publisher' => array(
2154
  '@type' => 'Person',
2155
  'name' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_name_'.$schema_id, 'saswp_array'),
2156
  'description' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_description_'.$schema_id, 'saswp_array'),
2157
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_url_'.$schema_id, 'saswp_array'),
2158
  'Image' => array(
2159
+ '@type' => 'ImageObject',
2160
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswp_video_object_author_image_'.$schema_id, 'saswp_array'),
2161
+ 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2162
+ 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2163
  ),
2164
  ),
2165
  'publisher' => array(
2202
  '@type' => 'Person',
2203
  'name' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_name_'.$schema_id, 'saswp_array'),
2204
  'description' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_description_'.$schema_id, 'saswp_array'),
2205
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_url_'.$schema_id, 'saswp_array'),
2206
  'Image' => array(
2207
+ '@type' => 'ImageObject',
2208
+ 'url' => saswp_remove_warnings($all_post_meta, 'saswpimage_object_author_image_'.$schema_id, 'saswp_array'),
2209
+ 'height' => saswp_remove_warnings($author_image, 'height', 'saswp_string'),
2210
+ 'width' => saswp_remove_warnings($author_image, 'width', 'saswp_string')
2211
  ),
2212
  ),
2213
  'publisher' => array(
2305
  function saswp_review_schema_markup($schema_id, $schema_post_id, $all_post_meta){
2306
 
2307
  global $sd_data;
2308
+ $input1 = array();
2309
 
2310
  if(isset($sd_data['saswp-tagyeem']) && $sd_data['saswp-tagyeem'] == 1 && (is_plugin_active('taqyeem/taqyeem.php') || get_template() != 'jannah')){
2311
 
2312
  remove_action( 'TieLabs/after_post_entry', 'tie_article_schemas' );
2313
 
2314
  }
2315
+
 
 
2316
  $input1['@context'] = saswp_context_url();
2317
  $input1['@type'] = 'Review';
2318
  $input1['@id'] = trailingslashit(get_permalink()).'#review';
2422
 
2423
  }
2424
 
2425
+ return $input1;
2426
 
2427
  }
output/output.php CHANGED
@@ -289,7 +289,7 @@ function saswp_schema_output() {
289
  $input1['author']['@type'] = 'Organization';
290
  $input1['offers']['@type'] = 'Offer';
291
 
292
- $input1 = saswp_append_fetched_reviews($input1);
293
 
294
  $input1 = apply_filters('saswp_modify_video_game_schema_output', $input1 );
295
 
@@ -318,7 +318,7 @@ function saswp_schema_output() {
318
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#TVSeries';
319
  $input1['author']['@type'] = 'Person';
320
 
321
- $input1 = saswp_append_fetched_reviews($input1);
322
 
323
  $input1 = apply_filters('saswp_modify_tvseries_schema_output', $input1 );
324
 
@@ -333,7 +333,7 @@ function saswp_schema_output() {
333
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#HowTo';
334
  $input1['estimatedCost']['@type'] = 'MonetaryAmount';
335
 
336
- $input1 = saswp_append_fetched_reviews($input1);
337
 
338
  $input1 = apply_filters('saswp_modify_howto_schema_output', $input1 );
339
 
@@ -398,7 +398,7 @@ function saswp_schema_output() {
398
  $input1['@type'] = 'MusicPlaylist';
399
  $input1['@id'] = trailingslashit(get_permalink()).'#MusicPlaylist';
400
 
401
- $input1 = saswp_append_fetched_reviews($input1);
402
 
403
  $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
404
 
@@ -412,22 +412,26 @@ function saswp_schema_output() {
412
  $input1['@type'] = 'Book';
413
  $input1['@id'] = trailingslashit(get_permalink()).'#Book';
414
 
415
- $input1 = saswp_append_fetched_reviews($input1);
 
 
 
 
 
416
 
417
  $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
418
 
419
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
420
 
421
  }
422
-
423
-
424
  if( 'MusicAlbum' === $schema_type){
425
 
426
  $input1['@context'] = saswp_context_url();
427
  $input1['@type'] = 'MusicAlbum';
428
  $input1['@id'] = trailingslashit(get_permalink()).'#MusicAlbum';
429
 
430
- $input1 = saswp_append_fetched_reviews($input1);
431
  $input1 = apply_filters('saswp_modify_music_album_schema_output', $input1 );
432
 
433
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
@@ -595,7 +599,7 @@ function saswp_schema_output() {
595
  "articleSection" => bbp_get_forum_title(),
596
  "articleBody" => saswp_get_the_content(),
597
  'url' => bbp_get_topic_permalink(),
598
- 'datePublished' => esc_html($date),
599
  'dateModified' => esc_html($modified_date),
600
  'author' => saswp_get_author_details(),
601
  'interactionStatistic' => array(
@@ -713,7 +717,7 @@ function saswp_schema_output() {
713
  $input1['comment'] = saswp_get_comments(get_the_ID());
714
  }
715
 
716
- $input1 = saswp_append_fetched_reviews($input1);
717
 
718
 
719
  $input1 = apply_filters('saswp_modify_audio_object_schema_output', $input1 );
@@ -739,7 +743,7 @@ function saswp_schema_output() {
739
  $input1['comment'] = saswp_get_comments(get_the_ID());
740
  }
741
 
742
- $input1 = saswp_append_fetched_reviews($input1);
743
 
744
  $input1 = apply_filters('saswp_modify_event_schema_output', $input1 );
745
 
@@ -758,7 +762,11 @@ function saswp_schema_output() {
758
  'author' => saswp_get_author_details()
759
  );
760
 
761
-
 
 
 
 
762
  if(!empty($publisher)){
763
  $input1 = array_merge($input1, $publisher);
764
  }
@@ -772,7 +780,7 @@ function saswp_schema_output() {
772
  $input1['comment'] = saswp_get_comments(get_the_ID());
773
  }
774
 
775
- $input1 = saswp_append_fetched_reviews($input1);
776
 
777
  $input1 = apply_filters('saswp_modify_software_application_schema_output', $input1 );
778
 
@@ -890,7 +898,7 @@ function saswp_schema_output() {
890
  $input1 = array_merge($input1, $extra_theme_review);
891
  }
892
 
893
- $input1 = saswp_append_fetched_reviews($input1);
894
 
895
  }
896
 
@@ -926,7 +934,7 @@ function saswp_schema_output() {
926
  $service = new saswp_output_service();
927
  $input1 = $service->saswp_schema_markup_generator($schema_type);
928
 
929
- $input1 = saswp_append_fetched_reviews($input1);
930
 
931
  $input1 = apply_filters('saswp_modify_product_schema_output', $input1 );
932
 
@@ -1009,7 +1017,7 @@ function saswp_schema_output() {
1009
  $input1 = array_merge($input1, $extra_theme_review);
1010
  }
1011
 
1012
- $input1 = saswp_append_fetched_reviews($input1);
1013
 
1014
  $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1015
 
@@ -1018,12 +1026,10 @@ function saswp_schema_output() {
1018
  }
1019
 
1020
  if('Review' === $schema_type){
1021
-
1022
- $schema_data = saswp_get_schema_data($schema_post_id, 'saswp_review_schema_details');
1023
  $service = new saswp_output_service();
1024
- $review_markup = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
1025
-
1026
- $item_reviewed = $schema_data['saswp_review_schema_item_type'];
1027
 
1028
  if($item_reviewed == 'local_business'){
1029
  $item_reviewed = 'LocalBusiness';
@@ -1035,7 +1041,7 @@ function saswp_schema_output() {
1035
  $input1['itemReviewed']['@type'] = $item_reviewed;
1036
 
1037
  if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] == 1){
1038
-
1039
  if($review_markup){
1040
 
1041
  if(isset($review_markup['review'])){
@@ -1145,7 +1151,7 @@ function saswp_schema_output() {
1145
  $input1 = array_merge($input1, $extra_theme_review);
1146
  }
1147
 
1148
- $input1 = saswp_append_fetched_reviews($input1);
1149
  $input1 = apply_filters('saswp_modify_video_object_schema_output', $input1 );
1150
 
1151
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
@@ -1187,7 +1193,7 @@ function saswp_schema_output() {
1187
  $input1 = array_merge($input1, $extra_theme_review);
1188
  }
1189
 
1190
- $input1 = saswp_append_fetched_reviews($input1);
1191
  $input1 = apply_filters('saswp_modify_image_object_schema_output', $input1 );
1192
 
1193
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
@@ -1225,7 +1231,7 @@ function saswp_schema_output() {
1225
  $input1 = array_merge($input1, $extra_theme_review);
1226
  }
1227
 
1228
- $input1 = saswp_append_fetched_reviews($input1);
1229
 
1230
  $input1 = apply_filters('saswp_modify_local_business_schema_output', $input1 );
1231
 
@@ -1323,7 +1329,22 @@ function saswp_schema_output() {
1323
  $input1['review'] = $testomonials['reviews'];
1324
  }
1325
 
1326
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1327
 
1328
  }
1329
 
@@ -1481,8 +1502,9 @@ function saswp_woocommerce_category_schema(){
1481
  $category_posts['@type'] = 'ListItem';
1482
  $category_posts['position'] = $i;
1483
  $category_posts['item'] = $service->saswp_schema_markup_generator('Product');
1484
- $category_posts['item']['url'] = get_category_link($term->term_id).'#product_'.$i;
1485
  unset($category_posts['item']['@id']);
 
1486
  $list_item[] = $category_posts;
1487
 
1488
  $i++;
289
  $input1['author']['@type'] = 'Organization';
290
  $input1['offers']['@type'] = 'Offer';
291
 
292
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
293
 
294
  $input1 = apply_filters('saswp_modify_video_game_schema_output', $input1 );
295
 
318
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#TVSeries';
319
  $input1['author']['@type'] = 'Person';
320
 
321
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
322
 
323
  $input1 = apply_filters('saswp_modify_tvseries_schema_output', $input1 );
324
 
333
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#HowTo';
334
  $input1['estimatedCost']['@type'] = 'MonetaryAmount';
335
 
336
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
337
 
338
  $input1 = apply_filters('saswp_modify_howto_schema_output', $input1 );
339
 
398
  $input1['@type'] = 'MusicPlaylist';
399
  $input1['@id'] = trailingslashit(get_permalink()).'#MusicPlaylist';
400
 
401
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
402
 
403
  $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
404
 
412
  $input1['@type'] = 'Book';
413
  $input1['@id'] = trailingslashit(get_permalink()).'#Book';
414
 
415
+ $service = new saswp_output_service();
416
+ $input1 = $service->saswp_schema_markup_generator($schema_type);
417
+
418
+ unset($input1['brand'], $input1['mpn'], $input1['sku'],$input1['gtin8']);
419
+
420
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
421
 
422
  $input1 = apply_filters('saswp_modify_music_playlist_schema_output', $input1 );
423
 
424
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
425
 
426
  }
427
+
 
428
  if( 'MusicAlbum' === $schema_type){
429
 
430
  $input1['@context'] = saswp_context_url();
431
  $input1['@type'] = 'MusicAlbum';
432
  $input1['@id'] = trailingslashit(get_permalink()).'#MusicAlbum';
433
 
434
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
435
  $input1 = apply_filters('saswp_modify_music_album_schema_output', $input1 );
436
 
437
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
599
  "articleSection" => bbp_get_forum_title(),
600
  "articleBody" => saswp_get_the_content(),
601
  'url' => bbp_get_topic_permalink(),
602
+ 'datePublished' => bbp_get_topic_post_date(),
603
  'dateModified' => esc_html($modified_date),
604
  'author' => saswp_get_author_details(),
605
  'interactionStatistic' => array(
717
  $input1['comment'] = saswp_get_comments(get_the_ID());
718
  }
719
 
720
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
721
 
722
 
723
  $input1 = apply_filters('saswp_modify_audio_object_schema_output', $input1 );
743
  $input1['comment'] = saswp_get_comments(get_the_ID());
744
  }
745
 
746
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
747
 
748
  $input1 = apply_filters('saswp_modify_event_schema_output', $input1 );
749
 
762
  'author' => saswp_get_author_details()
763
  );
764
 
765
+ $service = new saswp_output_service();
766
+ $input1 = $service->saswp_schema_markup_generator($schema_type);
767
+
768
+ unset($input1['brand'], $input1['mpn'], $input1['sku'],$input1['gtin8']);
769
+
770
  if(!empty($publisher)){
771
  $input1 = array_merge($input1, $publisher);
772
  }
780
  $input1['comment'] = saswp_get_comments(get_the_ID());
781
  }
782
 
783
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
784
 
785
  $input1 = apply_filters('saswp_modify_software_application_schema_output', $input1 );
786
 
898
  $input1 = array_merge($input1, $extra_theme_review);
899
  }
900
 
901
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
902
 
903
  }
904
 
934
  $service = new saswp_output_service();
935
  $input1 = $service->saswp_schema_markup_generator($schema_type);
936
 
937
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
938
 
939
  $input1 = apply_filters('saswp_modify_product_schema_output', $input1 );
940
 
1017
  $input1 = array_merge($input1, $extra_theme_review);
1018
  }
1019
 
1020
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
1021
 
1022
  $input1 = apply_filters('saswp_modify_service_schema_output', $input1 );
1023
 
1026
  }
1027
 
1028
  if('Review' === $schema_type){
1029
+
 
1030
  $service = new saswp_output_service();
1031
+ $review_markup = $service->saswp_replace_with_custom_fields_value($input1, $schema_post_id);
1032
+ $item_reviewed = get_post_meta($schema_post_id, 'saswp_review_item_reviewed_'.$schema_post_id, true);
 
1033
 
1034
  if($item_reviewed == 'local_business'){
1035
  $item_reviewed = 'LocalBusiness';
1041
  $input1['itemReviewed']['@type'] = $item_reviewed;
1042
 
1043
  if(isset($schema_options['enable_custom_field']) && $schema_options['enable_custom_field'] == 1){
1044
+
1045
  if($review_markup){
1046
 
1047
  if(isset($review_markup['review'])){
1151
  $input1 = array_merge($input1, $extra_theme_review);
1152
  }
1153
 
1154
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
1155
  $input1 = apply_filters('saswp_modify_video_object_schema_output', $input1 );
1156
 
1157
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
1193
  $input1 = array_merge($input1, $extra_theme_review);
1194
  }
1195
 
1196
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
1197
  $input1 = apply_filters('saswp_modify_image_object_schema_output', $input1 );
1198
 
1199
  $input1 = saswp_get_modified_markup($input1, $schema_type, $schema_post_id, $schema_options);
1231
  $input1 = array_merge($input1, $extra_theme_review);
1232
  }
1233
 
1234
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
1235
 
1236
  $input1 = apply_filters('saswp_modify_local_business_schema_output', $input1 );
1237
 
1329
  $input1['review'] = $testomonials['reviews'];
1330
  }
1331
 
1332
+ }
1333
+
1334
+ // Testomonial Pro
1335
+ $testomonial_pro = saswp_get_testomonial_pro();
1336
+
1337
+ if($testomonial_pro){
1338
+
1339
+ $input1 = array_merge($input1,$testomonial_pro['rating']);
1340
+
1341
+ if(isset($input1['review'])){
1342
+ $input1 = array_merge($input1['review'],$testomonial_pro['reviews']);
1343
+ }else{
1344
+ $input1['review'] = $testomonial_pro['reviews'];
1345
+ }
1346
+
1347
+ }
1348
 
1349
  }
1350
 
1502
  $category_posts['@type'] = 'ListItem';
1503
  $category_posts['position'] = $i;
1504
  $category_posts['item'] = $service->saswp_schema_markup_generator('Product');
1505
+ $category_posts['item']['url'] = rtrim( get_category_link($term->term_id), '/'). "#product_".$i;
1506
  unset($category_posts['item']['@id']);
1507
+ unset($category_posts['item']['@context']);
1508
  $list_item[] = $category_posts;
1509
 
1510
  $i++;
output/service.php CHANGED
@@ -347,9 +347,8 @@ Class saswp_output_service{
347
 
348
  if($schema_type == 'Review'){
349
 
350
- $main_schema_type = $schema_type;
351
- $review_post_meta = get_post_meta($schema_post_id, 'saswp_review_schema_details', true);
352
- $schema_type = $review_post_meta['saswp_review_schema_item_type'];
353
 
354
  if(isset($custom_fields['saswp_review_name'])){
355
  $review_markup['name'] = $custom_fields['saswp_review_name'];
@@ -418,8 +417,8 @@ Class saswp_output_service{
418
  if(isset($custom_fields['saswp_book_image'])){
419
  $input1['image'] = $custom_fields['saswp_book_image'];
420
  }
421
- if(isset($custom_fields['saswp_book_published_date'])){
422
- $input1['datePublished'] = date('c',strtotime($custom_fields['saswp_book_published_date']));
423
  }
424
  if(isset($custom_fields['saswp_book_price_currency']) && isset($custom_fields['saswp_book_price'])){
425
  $input1['offers']['@type'] = 'Offer';
@@ -509,7 +508,13 @@ Class saswp_output_service{
509
  }
510
  if(isset($custom_fields['saswp_article_author_name'])){
511
  $input1['author']['name'] = $custom_fields['saswp_article_author_name'];
512
- }
 
 
 
 
 
 
513
  if(isset($custom_fields['saswp_article_organization_logo']) && isset($custom_fields['saswp_article_organization_name'])){
514
  $input1['Publisher']['@type'] = 'Organization';
515
  $input1['Publisher']['name'] = $custom_fields['saswp_article_organization_name'];
@@ -649,6 +654,12 @@ Class saswp_output_service{
649
  if(isset($custom_fields['saswp_blogposting_author_name'])){
650
  $input1['author']['name'] = $custom_fields['saswp_blogposting_author_name'];
651
  }
 
 
 
 
 
 
652
 
653
  if(isset($custom_fields['saswp_blogposting_organization_logo']) && isset($custom_fields['saswp_blogposting_organization_name'])){
654
  $input1['Publisher']['@type'] = 'Organization';
@@ -684,8 +695,14 @@ Class saswp_output_service{
684
  $input1['dateModified'] = $custom_fields['saswp_audio_schema_date_modified'];
685
  }
686
  if(isset($custom_fields['saswp_audio_schema_author_name'])){
687
- $input1['author']['name'] = $custom_fields['saswp_audio_author_name'];
688
- }
 
 
 
 
 
 
689
 
690
  break;
691
 
@@ -773,6 +790,9 @@ Class saswp_output_service{
773
  if(isset($custom_fields['saswp_newsarticle_author_name'])){
774
  $input1['author']['name'] = $custom_fields['saswp_newsarticle_author_name'];
775
  }
 
 
 
776
  if(isset($custom_fields['saswp_newsarticle_author_image'])){
777
  $input1['author']['Image']['url'] = $custom_fields['saswp_newsarticle_author_image'];
778
  }
@@ -815,6 +835,9 @@ Class saswp_output_service{
815
  if(isset($custom_fields['saswp_webpage_author_name'])){
816
  $input1['mainEntity']['author']['name'] = $custom_fields['saswp_webpage_author_name'];
817
  }
 
 
 
818
 
819
  if(isset($custom_fields['saswp_webpage_organization_name'])){
820
  $input1['mainEntity']['Publisher']['name'] = $custom_fields['saswp_webpage_organization_name'];
@@ -948,6 +971,12 @@ Class saswp_output_service{
948
  if(isset($custom_fields['saswp_tech_article_author_name'])){
949
  $input1['author']['name'] = $custom_fields['saswp_tech_article_author_name'];
950
  }
 
 
 
 
 
 
951
 
952
  if(isset($custom_fields['saswp_tech_article_organization_logo']) && isset($custom_fields['saswp_tech_article_organization_name'])){
953
  $input1['Publisher']['@type'] = 'Organization';
@@ -1003,6 +1032,12 @@ Class saswp_output_service{
1003
  if(isset($custom_fields['saswp_dfp_author_name'])){
1004
  $input1['author']['name'] = $custom_fields['saswp_dfp_author_name'];
1005
  }
 
 
 
 
 
 
1006
 
1007
  if(isset($custom_fields['saswp_dfp_main_entity_of_page'])){
1008
  $input1['mainEntityOfPage'] = $custom_fields['saswp_dfp_main_entity_of_page'];
@@ -1039,6 +1074,12 @@ Class saswp_output_service{
1039
  if(isset($custom_fields['saswp_recipe_author_name'])){
1040
  $input1['author']['name'] = $custom_fields['saswp_recipe_author_name'];
1041
  }
 
 
 
 
 
 
1042
  if(isset($custom_fields['saswp_recipe_author_image'])){
1043
  $input1['author']['Image']['url'] = $custom_fields['saswp_recipe_author_image'];
1044
  }
@@ -1254,6 +1295,12 @@ Class saswp_output_service{
1254
  if(isset($custom_fields['saswp_video_object_author_name'])){
1255
  $input1['author']['name'] = $custom_fields['saswp_video_object_author_name'];
1256
  }
 
 
 
 
 
 
1257
  if(isset($custom_fields['saswp_video_object_author_image'])){
1258
  $input1['author']['image'] = $custom_fields['saswp_video_object_author_image'];
1259
  }
@@ -1297,6 +1344,12 @@ Class saswp_output_service{
1297
  if(isset($custom_fields['saswpimage_object_author_name'])){
1298
  $input1['author']['name'] = $custom_fields['saswpimage_object_author_name'];
1299
  }
 
 
 
 
 
 
1300
  if(isset($custom_fields['saswpimage_object_author_image'])){
1301
  $input1['author']['image'] = $custom_fields['saswpimage_object_author_image'];
1302
  }
@@ -2720,6 +2773,8 @@ Class saswp_output_service{
2720
  break;
2721
 
2722
  case 'Product':
 
 
2723
 
2724
  $product_details = $this->saswp_woocommerce_product_details(get_the_ID());
2725
 
@@ -2727,7 +2782,7 @@ Class saswp_output_service{
2727
 
2728
  $input1 = array(
2729
  '@context' => saswp_context_url(),
2730
- '@type' => 'Product',
2731
  '@id' => trailingslashit(saswp_get_permalink()).'#product',
2732
  'url' => trailingslashit(saswp_get_permalink()),
2733
  'name' => saswp_remove_warnings($product_details, 'product_name', 'saswp_string'),
@@ -2808,8 +2863,12 @@ Class saswp_output_service{
2808
  $input1['@context'] = saswp_context_url();
2809
  $input1['@type'] = 'Product';
2810
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#Product';
2811
- }
2812
-
 
 
 
 
2813
  break;
2814
 
2815
  default:
@@ -2847,8 +2906,8 @@ Class saswp_output_service{
2847
 
2848
  if(isset($image_details[1]) && ($image_details[1] < 1200) && function_exists('saswp_aq_resize')){
2849
 
2850
- $width = array(1280, 640, 300);
2851
- $height = array(720, 480, 300);
2852
 
2853
  for($i = 0; $i<3; $i++){
2854
 
@@ -2978,7 +3037,7 @@ Class saswp_output_service{
2978
 
2979
  if($image['width'] < 1200){
2980
 
2981
- $resized_image = saswp_aq_resize( $image['url'], 1280, 720, true, false, true );
2982
  $attach_images['image'][$key]['url'] = $resized_image[0];
2983
  $attach_images['image'][$key]['width'] = $resized_image[1];
2984
  $attach_images['image'][$key]['height'] = $resized_image[2];
347
 
348
  if($schema_type == 'Review'){
349
 
350
+ $main_schema_type = $schema_type;
351
+ $schema_type = get_post_meta($schema_post_id, 'saswp_review_item_reviewed_'.$schema_post_id, true);
 
352
 
353
  if(isset($custom_fields['saswp_review_name'])){
354
  $review_markup['name'] = $custom_fields['saswp_review_name'];
417
  if(isset($custom_fields['saswp_book_image'])){
418
  $input1['image'] = $custom_fields['saswp_book_image'];
419
  }
420
+ if(isset($custom_fields['saswp_book_date_published'])){
421
+ $input1['datePublished'] = date('c',strtotime($custom_fields['saswp_book_date_published']));
422
  }
423
  if(isset($custom_fields['saswp_book_price_currency']) && isset($custom_fields['saswp_book_price'])){
424
  $input1['offers']['@type'] = 'Offer';
508
  }
509
  if(isset($custom_fields['saswp_article_author_name'])){
510
  $input1['author']['name'] = $custom_fields['saswp_article_author_name'];
511
+ }
512
+ if(isset($custom_fields['saswp_article_author_description'])){
513
+ $input1['author']['description'] = $custom_fields['saswp_article_author_description'];
514
+ }
515
+ if(isset($custom_fields['saswp_article_author_url'])){
516
+ $input1['author']['url'] = $custom_fields['saswp_article_author_url'];
517
+ }
518
  if(isset($custom_fields['saswp_article_organization_logo']) && isset($custom_fields['saswp_article_organization_name'])){
519
  $input1['Publisher']['@type'] = 'Organization';
520
  $input1['Publisher']['name'] = $custom_fields['saswp_article_organization_name'];
654
  if(isset($custom_fields['saswp_blogposting_author_name'])){
655
  $input1['author']['name'] = $custom_fields['saswp_blogposting_author_name'];
656
  }
657
+ if(isset($custom_fields['saswp_blogposting_author_url'])){
658
+ $input1['author']['url'] = $custom_fields['saswp_blogposting_author_url'];
659
+ }
660
+ if(isset($custom_fields['saswp_blogposting_author_description'])){
661
+ $input1['author']['description'] = $custom_fields['saswp_blogposting_author_description'];
662
+ }
663
 
664
  if(isset($custom_fields['saswp_blogposting_organization_logo']) && isset($custom_fields['saswp_blogposting_organization_name'])){
665
  $input1['Publisher']['@type'] = 'Organization';
695
  $input1['dateModified'] = $custom_fields['saswp_audio_schema_date_modified'];
696
  }
697
  if(isset($custom_fields['saswp_audio_schema_author_name'])){
698
+ $input1['author']['name'] = $custom_fields['saswp_audio_schema_author_name'];
699
+ }
700
+ if(isset($custom_fields['saswp_audio_schema_author_description'])){
701
+ $input1['author']['description'] = $custom_fields['saswp_audio_schema_author_description'];
702
+ }
703
+ if(isset($custom_fields['saswp_audio_schema_author_url'])){
704
+ $input1['author']['url'] = $custom_fields['saswp_audio_schema_author_url'];
705
+ }
706
 
707
  break;
708
 
790
  if(isset($custom_fields['saswp_newsarticle_author_name'])){
791
  $input1['author']['name'] = $custom_fields['saswp_newsarticle_author_name'];
792
  }
793
+ if(isset($custom_fields['saswp_newsarticle_author_url'])){
794
+ $input1['author']['url'] = $custom_fields['saswp_newsarticle_author_url'];
795
+ }
796
  if(isset($custom_fields['saswp_newsarticle_author_image'])){
797
  $input1['author']['Image']['url'] = $custom_fields['saswp_newsarticle_author_image'];
798
  }
835
  if(isset($custom_fields['saswp_webpage_author_name'])){
836
  $input1['mainEntity']['author']['name'] = $custom_fields['saswp_webpage_author_name'];
837
  }
838
+ if(isset($custom_fields['saswp_webpage_author_url'])){
839
+ $input1['mainEntity']['author']['url'] = $custom_fields['saswp_webpage_author_url'];
840
+ }
841
 
842
  if(isset($custom_fields['saswp_webpage_organization_name'])){
843
  $input1['mainEntity']['Publisher']['name'] = $custom_fields['saswp_webpage_organization_name'];
971
  if(isset($custom_fields['saswp_tech_article_author_name'])){
972
  $input1['author']['name'] = $custom_fields['saswp_tech_article_author_name'];
973
  }
974
+ if(isset($custom_fields['saswp_tech_article_author_url'])){
975
+ $input1['author']['url'] = $custom_fields['saswp_tech_article_author_url'];
976
+ }
977
+ if(isset($custom_fields['saswp_tech_article_author_description'])){
978
+ $input1['author']['description'] = $custom_fields['saswp_tech_article_author_description'];
979
+ }
980
 
981
  if(isset($custom_fields['saswp_tech_article_organization_logo']) && isset($custom_fields['saswp_tech_article_organization_name'])){
982
  $input1['Publisher']['@type'] = 'Organization';
1032
  if(isset($custom_fields['saswp_dfp_author_name'])){
1033
  $input1['author']['name'] = $custom_fields['saswp_dfp_author_name'];
1034
  }
1035
+ if(isset($custom_fields['saswp_dfp_author_url'])){
1036
+ $input1['author']['url'] = $custom_fields['saswp_dfp_author_url'];
1037
+ }
1038
+ if(isset($custom_fields['saswp_dfp_author_description'])){
1039
+ $input1['author']['description'] = $custom_fields['saswp_dfp_author_description'];
1040
+ }
1041
 
1042
  if(isset($custom_fields['saswp_dfp_main_entity_of_page'])){
1043
  $input1['mainEntityOfPage'] = $custom_fields['saswp_dfp_main_entity_of_page'];
1074
  if(isset($custom_fields['saswp_recipe_author_name'])){
1075
  $input1['author']['name'] = $custom_fields['saswp_recipe_author_name'];
1076
  }
1077
+ if(isset($custom_fields['saswp_recipe_author_url'])){
1078
+ $input1['author']['url'] = $custom_fields['saswp_recipe_author_url'];
1079
+ }
1080
+ if(isset($custom_fields['saswp_recipe_author_description'])){
1081
+ $input1['author']['description'] = $custom_fields['saswp_recipe_author_description'];
1082
+ }
1083
  if(isset($custom_fields['saswp_recipe_author_image'])){
1084
  $input1['author']['Image']['url'] = $custom_fields['saswp_recipe_author_image'];
1085
  }
1295
  if(isset($custom_fields['saswp_video_object_author_name'])){
1296
  $input1['author']['name'] = $custom_fields['saswp_video_object_author_name'];
1297
  }
1298
+ if(isset($custom_fields['saswp_video_object_author_url'])){
1299
+ $input1['author']['url'] = $custom_fields['saswp_video_object_author_url'];
1300
+ }
1301
+ if(isset($custom_fields['saswp_video_object_author_description'])){
1302
+ $input1['author']['description'] = $custom_fields['saswp_video_object_author_description'];
1303
+ }
1304
  if(isset($custom_fields['saswp_video_object_author_image'])){
1305
  $input1['author']['image'] = $custom_fields['saswp_video_object_author_image'];
1306
  }
1344
  if(isset($custom_fields['saswpimage_object_author_name'])){
1345
  $input1['author']['name'] = $custom_fields['saswpimage_object_author_name'];
1346
  }
1347
+ if(isset($custom_fields['saswpimage_object_author_url'])){
1348
+ $input1['author']['url'] = $custom_fields['saswpimage_object_author_url'];
1349
+ }
1350
+ if(isset($custom_fields['saswpimage_object_author_description'])){
1351
+ $input1['author']['description'] = $custom_fields['saswpimage_object_author_description'];
1352
+ }
1353
  if(isset($custom_fields['saswpimage_object_author_image'])){
1354
  $input1['author']['image'] = $custom_fields['saswpimage_object_author_image'];
1355
  }
2773
  break;
2774
 
2775
  case 'Product':
2776
+ case 'SoftwareApplication':
2777
+ case 'Book':
2778
 
2779
  $product_details = $this->saswp_woocommerce_product_details(get_the_ID());
2780
 
2782
 
2783
  $input1 = array(
2784
  '@context' => saswp_context_url(),
2785
+ '@type' => $schema_type,
2786
  '@id' => trailingslashit(saswp_get_permalink()).'#product',
2787
  'url' => trailingslashit(saswp_get_permalink()),
2788
  'name' => saswp_remove_warnings($product_details, 'product_name', 'saswp_string'),
2863
  $input1['@context'] = saswp_context_url();
2864
  $input1['@type'] = 'Product';
2865
  $input1['@id'] = trailingslashit(saswp_get_permalink()).'#Product';
2866
+ }
2867
+
2868
+ if(!isset($input1['review'])){
2869
+ $input1 = saswp_append_fetched_reviews($input1);
2870
+ }
2871
+
2872
  break;
2873
 
2874
  default:
2906
 
2907
  if(isset($image_details[1]) && ($image_details[1] < 1200) && function_exists('saswp_aq_resize')){
2908
 
2909
+ $width = array(1200, 1200, 1200);
2910
+ $height = array(1200, 900, 675);
2911
 
2912
  for($i = 0; $i<3; $i++){
2913
 
3037
 
3038
  if($image['width'] < 1200){
3039
 
3040
+ $resized_image = saswp_aq_resize( $image['url'], 1200, 675, true, false, true );
3041
  $attach_images['image'][$key]['url'] = $resized_image[0];
3042
  $attach_images['image'][$key]['width'] = $resized_image[1];
3043
  $attach_images['image'][$key]['height'] = $resized_image[2];
output/single.php CHANGED
@@ -122,7 +122,7 @@ function saswp_post_specific_schema_output() {
122
 
123
  $input1 = saswp_music_playlist_schema_markup($schema_id, $schema_post_id, $all_post_meta);
124
 
125
- $input1 = saswp_append_fetched_reviews($input1);
126
 
127
  }
128
 
@@ -130,7 +130,7 @@ function saswp_post_specific_schema_output() {
130
 
131
  $input1 = saswp_music_album_schema_markup($schema_id, $schema_post_id, $all_post_meta);
132
 
133
- $input1 = saswp_append_fetched_reviews($input1);
134
 
135
  }
136
 
@@ -168,7 +168,7 @@ function saswp_post_specific_schema_output() {
168
 
169
  $input1 = saswp_book_schema_markup($schema_id, $all_post_meta);
170
 
171
- $input1 = saswp_append_fetched_reviews($input1);
172
 
173
  }
174
 
@@ -206,7 +206,7 @@ function saswp_post_specific_schema_output() {
206
 
207
  $input1 = saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta);
208
 
209
- $input1 = saswp_append_fetched_reviews($input1);
210
 
211
  }
212
 
@@ -214,7 +214,7 @@ function saswp_post_specific_schema_output() {
214
 
215
  $input1 = saswp_tv_series_schema_markup($schema_id, $schema_post_id, $all_post_meta);
216
 
217
- $input1 = saswp_append_fetched_reviews($input1);
218
 
219
  }
220
 
@@ -228,7 +228,7 @@ function saswp_post_specific_schema_output() {
228
 
229
  $input1 = saswp_video_game_schema_markup($schema_id, $schema_post_id, $all_post_meta);
230
 
231
- $input1 = saswp_append_fetched_reviews($input1);
232
 
233
  }
234
 
@@ -254,7 +254,7 @@ function saswp_post_specific_schema_output() {
254
  $input1 = array_merge($input1, $extra_theme_review);
255
  }
256
 
257
- $input1 = saswp_append_fetched_reviews($input1);
258
 
259
  }
260
 
@@ -302,7 +302,7 @@ function saswp_post_specific_schema_output() {
302
  if(!empty($extra_theme_review)){
303
  $input1 = array_merge($input1, $extra_theme_review);
304
  }
305
- $input1 = saswp_append_fetched_reviews($input1);
306
  }
307
 
308
  if( 'SoftwareApplication' === $schema_type){
@@ -315,7 +315,7 @@ function saswp_post_specific_schema_output() {
315
  if(!empty($extra_theme_review)){
316
  $input1 = array_merge($input1, $extra_theme_review);
317
  }
318
- $input1 = saswp_append_fetched_reviews($input1);
319
  }
320
 
321
  if( 'WebPage' === $schema_type){
@@ -386,7 +386,7 @@ function saswp_post_specific_schema_output() {
386
  if(!empty($extra_theme_review)){
387
  $input1 = array_merge($input1, $extra_theme_review);
388
  }
389
- $input1 = saswp_append_fetched_reviews($input1);
390
  }
391
 
392
  if( 'Product' === $schema_type){
@@ -400,7 +400,7 @@ function saswp_post_specific_schema_output() {
400
  $input1 = array_merge($input1, $extra_theme_review);
401
  }
402
 
403
- $input1 = saswp_append_fetched_reviews($input1);
404
  }
405
 
406
  if( 'NewsArticle' === $schema_type ){
@@ -431,7 +431,7 @@ function saswp_post_specific_schema_output() {
431
  if(!empty($extra_theme_review)){
432
  $input1 = array_merge($input1, $extra_theme_review);
433
  }
434
- $input1 = saswp_append_fetched_reviews($input1);
435
  }
436
 
437
  if( 'ImageObject' === $schema_type){
@@ -444,7 +444,7 @@ function saswp_post_specific_schema_output() {
444
  if(!empty($extra_theme_review)){
445
  $input1 = array_merge($input1, $extra_theme_review);
446
  }
447
- $input1 = saswp_append_fetched_reviews($input1);
448
 
449
  }
450
 
@@ -454,7 +454,7 @@ function saswp_post_specific_schema_output() {
454
 
455
  }
456
 
457
- if( 'Review' === $schema_type ){
458
 
459
  $input1 = saswp_review_schema_markup($schema_id, $schema_post_id, $all_post_meta);
460
 
@@ -471,7 +471,7 @@ function saswp_post_specific_schema_output() {
471
  $input1 = array_merge($input1, $extra_theme_review);
472
  }
473
 
474
- $input1 = saswp_append_fetched_reviews($input1);
475
  }
476
 
477
  global $without_aggregate;
122
 
123
  $input1 = saswp_music_playlist_schema_markup($schema_id, $schema_post_id, $all_post_meta);
124
 
125
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
126
 
127
  }
128
 
130
 
131
  $input1 = saswp_music_album_schema_markup($schema_id, $schema_post_id, $all_post_meta);
132
 
133
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
134
 
135
  }
136
 
168
 
169
  $input1 = saswp_book_schema_markup($schema_id, $all_post_meta);
170
 
171
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
172
 
173
  }
174
 
206
 
207
  $input1 = saswp_howto_schema_markup($schema_id, $schema_post_id, $all_post_meta);
208
 
209
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
210
 
211
  }
212
 
214
 
215
  $input1 = saswp_tv_series_schema_markup($schema_id, $schema_post_id, $all_post_meta);
216
 
217
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
218
 
219
  }
220
 
228
 
229
  $input1 = saswp_video_game_schema_markup($schema_id, $schema_post_id, $all_post_meta);
230
 
231
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
232
 
233
  }
234
 
254
  $input1 = array_merge($input1, $extra_theme_review);
255
  }
256
 
257
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
258
 
259
  }
260
 
302
  if(!empty($extra_theme_review)){
303
  $input1 = array_merge($input1, $extra_theme_review);
304
  }
305
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
306
  }
307
 
308
  if( 'SoftwareApplication' === $schema_type){
315
  if(!empty($extra_theme_review)){
316
  $input1 = array_merge($input1, $extra_theme_review);
317
  }
318
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
319
  }
320
 
321
  if( 'WebPage' === $schema_type){
386
  if(!empty($extra_theme_review)){
387
  $input1 = array_merge($input1, $extra_theme_review);
388
  }
389
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
390
  }
391
 
392
  if( 'Product' === $schema_type){
400
  $input1 = array_merge($input1, $extra_theme_review);
401
  }
402
 
403
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
404
  }
405
 
406
  if( 'NewsArticle' === $schema_type ){
431
  if(!empty($extra_theme_review)){
432
  $input1 = array_merge($input1, $extra_theme_review);
433
  }
434
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
435
  }
436
 
437
  if( 'ImageObject' === $schema_type){
444
  if(!empty($extra_theme_review)){
445
  $input1 = array_merge($input1, $extra_theme_review);
446
  }
447
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
448
 
449
  }
450
 
454
 
455
  }
456
 
457
+ if( 'Review' === $schema_type ){
458
 
459
  $input1 = saswp_review_schema_markup($schema_id, $schema_post_id, $all_post_meta);
460
 
471
  $input1 = array_merge($input1, $extra_theme_review);
472
  }
473
 
474
+ $input1 = saswp_append_fetched_reviews($input1, $schema_post_id);
475
  }
476
 
477
  global $without_aggregate;
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.3
6
- Stable tag: 1.9.17
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -118,6 +118,28 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  = 1.9.17 (05 Dec 2019) =
122
 
123
  * Major Feature: Reviews Collection ( Create a collection using different platform's reviews and display them using shortcode with multiple design option )
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
+ Stable tag: 1.9.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.9.18 (14 Dec 2019) =
122
+
123
+ * Major Feature: Added review form to submit user review from the post. Use the shortcode to show form [saswp-reviews-form] #538
124
+ * Feature: Added reviews popup to select review on add review enabling #600
125
+ * Added: Author URL property in author schema #638
126
+ * Added: Compatibility with Testimonial Pro plugin #627
127
+ * Added: WP Customer Reviews ( https://wordpress.org/plugins/wp-customer-reviews/ ) importer #597
128
+ * Added: Compatiblity with Better AMP ( https://wordpress.org/plugins/better-amp/ ), WP AMP — Accelerated Mobile Pages for WordPress and WooCommerce, PenCi Soledad AMP - WordPress Complete AMP #615
129
+ * Added: datPublished property in DiscussionForumPosting schema #648
130
+ * Fixed: Show the review count correctly if user is inserting multiple shortcodes. #642
131
+ * Fixed: Review full content is not displaying in front end #624
132
+ * Fixed: RDFa CleanUp #632
133
+ * Fixed: Product page schema should be dynamic for (Product, SoftwareApplication, Book) not static #634
134
+ * Fixed: All values provided for url must point to the same page in itemList schema. #653
135
+ * Fixed: PHP Fatal error "Uncaught Error: Using $this when not in object context" in php v7.4 #644
136
+ * Fixed: Collection js and css should load when its need #656
137
+ * Fixed: Review logos are not redirecting to the link #652
138
+ * Fixed: Reviews collection not creating schema markup #655
139
+ * Fixed: After last update error comes in review schema #657
140
+ * Fixed: Images aspect ratio as Images should be at least 1200 pixels wide. #617
141
+ * Enhancement: Automatic detection of compatible plugin and enable it in compatibility section #607
142
+
143
  = 1.9.17 (05 Dec 2019) =
144
 
145
  * Major Feature: Reviews Collection ( Create a collection using different platform's reviews and display them using shortcode with multiple design option )
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.17
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
@@ -13,7 +13,7 @@ License: GPL2
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- define('SASWP_VERSION', '1.9.17');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -57,6 +57,13 @@ if ( ! function_exists('saswp_non_amp') ){
57
 
58
  }
59
 
 
 
 
 
 
 
 
60
  return $non_amp;
61
 
62
  }
@@ -75,8 +82,8 @@ require_once SASWP_DIR_NAME.'/view/schema_type.php';
75
  require_once SASWP_DIR_NAME.'/view/paywall.php';
76
  require_once SASWP_DIR_NAME.'/admin_section/add-schema/add_new.php';
77
  require_once SASWP_DIR_NAME.'/view/post_specific.php';
78
- require_once SASWP_DIR_NAME.'/view/review.php';
79
- require_once SASWP_DIR_NAME.'/output/review-output.php';
80
  require_once SASWP_DIR_NAME.'/output/service.php';
81
  require_once SASWP_DIR_NAME.'/output/compatibility.php';
82
  //Loading Reviews files
@@ -85,7 +92,9 @@ require_once SASWP_DIR_NAME.'/modules/reviews/reviews_setup.php';
85
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_service.php';
86
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_widget.php';
87
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_collection.php';
 
88
  require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
 
89
  //Module files load
90
  require_once SASWP_DIR_NAME.'/modules/gutenberg/includes/class-gutenberg.php';
91
 
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.18
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.18');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
57
 
58
  }
59
 
60
+ if(function_exists('is_amp_endpoint') && is_amp_endpoint()){
61
+ $non_amp = false;
62
+ }
63
+ if(function_exists('is_better_amp')){
64
+
65
+ $non_amp = false;
66
+ }
67
  return $non_amp;
68
 
69
  }
82
  require_once SASWP_DIR_NAME.'/view/paywall.php';
83
  require_once SASWP_DIR_NAME.'/admin_section/add-schema/add_new.php';
84
  require_once SASWP_DIR_NAME.'/view/post_specific.php';
85
+ require_once SASWP_DIR_NAME.'/modules/rating-box/backend.php';
86
+ require_once SASWP_DIR_NAME.'/modules/rating-box/frontend.php';
87
  require_once SASWP_DIR_NAME.'/output/service.php';
88
  require_once SASWP_DIR_NAME.'/output/compatibility.php';
89
  //Loading Reviews files
92
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_service.php';
93
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_widget.php';
94
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_collection.php';
95
+ require_once SASWP_DIR_NAME.'/modules/reviews/reviews_form.php';
96
  require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
97
+ require_once SASWP_DIR_NAME.'/core/global.php';
98
  //Module files load
99
  require_once SASWP_DIR_NAME.'/modules/gutenberg/includes/class-gutenberg.php';
100
 
view/help.php CHANGED
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
18
  */
19
  function saswp_help_meta_box_cb(){
20
 
21
- echo '<a href="'.esc_url(admin_url('admin.php?page=structured_data_options&tab=help')).'">'.esc_html__('Need Help', 'schema-and-structured-data-for-wp').'</a>';
22
  }
23
 
24
  /**
18
  */
19
  function saswp_help_meta_box_cb(){
20
 
21
+ echo '<a href="'.esc_url(admin_url('admin.php?page=structured_data_options&tab=support')).'">'.esc_html__('Need Help', 'schema-and-structured-data-for-wp').'</a>';
22
  }
23
 
24
  /**
view/schema_type.php CHANGED
@@ -13,6 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
13
  * List of hooks used in this file
14
  */
15
  add_action( 'wp_ajax_saswp_get_manual_fields_on_ajax', 'saswp_get_manual_fields_on_ajax' ) ;
 
16
  add_action( 'save_post', 'saswp_schema_type_add_meta_box_save' ) ;
17
  add_action( 'add_meta_boxes', 'saswp_add_all_meta_boxes',99 ) ;
18
 
@@ -57,13 +58,20 @@ function saswp_add_all_meta_boxes() {
57
  'normal',
58
  'high'
59
  );
 
 
 
 
 
 
 
60
  add_meta_box(
61
  'submitdiv',
62
  esc_html__( 'Publish' ),
63
  'post_submit_meta_box',
64
  array('saswp', 'saswp_reviews'),
65
  'side',
66
- 'low'
67
  );
68
 
69
  }
@@ -582,7 +590,7 @@ function saswp_schema_type_meta_box_callback( $post) {
582
 
583
  <tr>
584
  <td>
585
- <label for="saswp-speakable"><?php echo esc_html__( 'Speakable ' ,'schema-and-structured-data-for-wp');?></label>
586
  </td>
587
  <td>
588
  <input class="saswp-enable-speakable" type="checkbox" name="saswp_enable_speakable_schema" value="1" <?php if(isset($speakable) && $speakable == 1){echo 'checked'; }else{ echo ''; } ?>>
@@ -594,7 +602,92 @@ function saswp_schema_type_meta_box_callback( $post) {
594
  <label for="saswp-append-reviews"><?php echo esc_html__('Add Reviews' ,'schema-and-structured-data-for-wp');?></label>
595
  </td>
596
  <td>
597
- <input class="saswp-enable-append-reviews" type="checkbox" name="saswp_enable_append_reviews" value="1" <?php if(isset($append_reviews) && $append_reviews == 1){echo 'checked'; }else{ echo ''; } ?>>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  </td>
599
  </tr>
600
 
@@ -898,6 +991,36 @@ function saswp_schema_type_meta_box_callback( $post) {
898
  <?php
899
  }
900
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
901
  function saswp_get_manual_fields_on_ajax(){
902
 
903
  if ( ! isset( $_GET['saswp_security_nonce'] ) ){
@@ -920,6 +1043,8 @@ function saswp_get_manual_fields_on_ajax(){
920
 
921
  wp_die();
922
  }
 
 
923
  /**
924
  * Function to save schema type metabox value
925
  * @param type $post_id
@@ -945,7 +1070,9 @@ function saswp_schema_type_add_meta_box_save( $post_id ) {
945
  update_post_meta( $post_id, 'saswp_item_list_tags', sanitize_text_field($_POST['saswp_item_list_tags']) );
946
  update_post_meta( $post_id, 'saswp_item_list_custom', sanitize_text_field($_POST['saswp_item_list_custom']) );
947
  update_post_meta( $post_id, 'saswp_review_item_reviewed_'.$post_id, sanitize_text_field($_POST['saswp_review_item_reviewed_'.$post_id]) );
948
-
 
 
949
  $common_obj = new saswp_view_common_class();
950
 
951
  $post_obj[] = (object) array(
13
  * List of hooks used in this file
14
  */
15
  add_action( 'wp_ajax_saswp_get_manual_fields_on_ajax', 'saswp_get_manual_fields_on_ajax' ) ;
16
+ add_action( 'wp_ajax_saswp_get_reviews_on_load', 'saswp_get_reviews_on_load' ) ;
17
  add_action( 'save_post', 'saswp_schema_type_add_meta_box_save' ) ;
18
  add_action( 'add_meta_boxes', 'saswp_add_all_meta_boxes',99 ) ;
19
 
58
  'normal',
59
  'high'
60
  );
61
+ add_meta_box(
62
+ 'saswp_reviews_form',
63
+ esc_html__( 'Reviews form Shortcode','schema-and-structured-data-for-wp' ),
64
+ 'saswp_reviews_form_shortcode_metabox', 'saswp_reviews',
65
+ 'side',
66
+ 'low'
67
+ );
68
  add_meta_box(
69
  'submitdiv',
70
  esc_html__( 'Publish' ),
71
  'post_submit_meta_box',
72
  array('saswp', 'saswp_reviews'),
73
  'side',
74
+ 'high'
75
  );
76
 
77
  }
590
 
591
  <tr>
592
  <td>
593
+ <label for="saswp-speakable"><?php echo esc_html__( 'Speakable' ,'schema-and-structured-data-for-wp');?></label>
594
  </td>
595
  <td>
596
  <input class="saswp-enable-speakable" type="checkbox" name="saswp_enable_speakable_schema" value="1" <?php if(isset($speakable) && $speakable == 1){echo 'checked'; }else{ echo ''; } ?>>
602
  <label for="saswp-append-reviews"><?php echo esc_html__('Add Reviews' ,'schema-and-structured-data-for-wp');?></label>
603
  </td>
604
  <td>
605
+
606
+ <input class="saswp-attach-reviews saswp-enable-append-reviews" type="checkbox" name="saswp_enable_append_reviews" value="1" <?php if(isset($append_reviews) && $append_reviews == 1){echo 'checked'; }else{ echo ''; } ?>>
607
+ <a class="saswp-attach-reviews">
608
+ <?php
609
+
610
+ $attached_rv_json = '';
611
+ $attached_rv = get_post_meta($post->ID, 'saswp_attahced_reviews', true);
612
+ if($attached_rv){
613
+ $attached_rv_json = json_encode($attached_rv);
614
+ }
615
+
616
+ if($append_reviews == 1){
617
+
618
+ if(is_array($attached_rv)){
619
+ echo '<span class="saswp-attached-rv-count"> '.esc_attr(count($attached_rv)).' Reviews Attached</span>';
620
+ }else{
621
+ echo '<span class="saswp-attached-rv-count"> 0 Reviews Attached</span>';
622
+ }
623
+
624
+ }else{
625
+ echo '<span class="saswp-attached-rv-count saswp_hide"> 0 Reviews Attached</span>';
626
+ }
627
+
628
+ ?>
629
+ </a>
630
+ <div style="display:none;" id="saswp-embed-code-div">
631
+ <div class="saswp-add-rv-title"><?php echo esc_html__('Get reviews attached to the schema type with two different method.' ,'schema-and-structured-data-for-wp');?> <a href="#"><?php echo esc_html__('Learn More...' ,'schema-and-structured-data-for-wp');?></a></div>
632
+ <div class="saswp-thick-box-container">
633
+
634
+ <div class="saswp-add-rv-popup" id="saswp-global-tabs">
635
+ <h2 class="nav-tab-wrapper">
636
+ <a class="nav-tab" data-id="saswp-add-rv-automatic"><?php echo esc_html__( 'Automatic' ,'schema-and-structured-data-for-wp');?></a>
637
+ <a class="nav-tab" data-id="saswp-add-rv-manual"><?php echo esc_html__( 'Manual' ,'schema-and-structured-data-for-wp');?></a>
638
+ </h2>
639
+ </div>
640
+
641
+ <div class="saswp-global-container" id="saswp-add-rv-automatic">
642
+
643
+ <div class="saswp-add-rv-automatic-list">
644
+
645
+ <?php
646
+
647
+ $reviews_service = new saswp_reviews_service();
648
+
649
+ $reviews = $reviews_service->saswp_get_reviews_list_by_parameters(null, null, 10, 1);
650
+
651
+ if($reviews){
652
+
653
+ foreach($reviews as $key => $val){
654
+
655
+ $checked = '';
656
+ echo '<div class="saswp-add-rv-loop" review-id="'.esc_attr($val['saswp_review_id']).'">';
657
+
658
+ if(is_array($attached_rv) && in_array($val['saswp_review_id'], $attached_rv)){
659
+ $checked = 'checked';
660
+ }
661
+
662
+ echo '<input class="saswp-attach-rv-checkbox" type="checkbox" '.$checked.'> <strong> '.esc_attr($val['saswp_reviewer_name']).' ( Rating - '.esc_attr($val['saswp_review_rating']).' ) <span class="saswp-g-plus"><img src="'.esc_url($val['saswp_review_platform_icon']).'"/></span></strong>';
663
+ echo '</div>';
664
+
665
+ }
666
+
667
+ }
668
+
669
+ ?>
670
+
671
+ </div>
672
+
673
+ <?php
674
+ echo '<input id="saswp_attahced_reviews" type="hidden" name="saswp_attahced_reviews" value="'. esc_attr($attached_rv_json).'">';
675
+ ?>
676
+
677
+ <div class="saswp-rv-not-found saswp_hide"><?php echo esc_html__( 'Reviews not found' ,'schema-and-structured-data-for-wp');?></div>
678
+ <span class="spinner"></span>
679
+ <div><a class="saswp-load-more-rv"><?php echo esc_html__( 'Load More...' ,'schema-and-structured-data-for-wp');?></a></div>
680
+
681
+ </div>
682
+
683
+ <div class="saswp-global-container" id="saswp-add-rv-manual">
684
+ <p> <?php echo esc_html__('Output reviews in front and its schema markup in source by using below shortcode' ,'schema-and-structured-data-for-wp');?> </p>
685
+ <strong>[saswp-reviews]</strong><br>OR<br>
686
+ <strong>[saswp-reviews-collection id="your collection id"]</strong>
687
+ </div>
688
+
689
+ </div>
690
+ </div>
691
  </td>
692
  </tr>
693
 
991
  <?php
992
  }
993
 
994
+ function saswp_get_reviews_on_load(){
995
+
996
+ if ( ! isset( $_GET['saswp_security_nonce'] ) ){
997
+ return;
998
+ }
999
+ if ( !wp_verify_nonce( $_GET['saswp_security_nonce'], 'saswp_ajax_check_nonce' ) ){
1000
+ return;
1001
+ }
1002
+
1003
+ $offset = intval($_GET['offset']);
1004
+ $paged = intval($_GET['paged']);
1005
+
1006
+ if($paged && $offset){
1007
+
1008
+ $reviews_service = new saswp_reviews_service();
1009
+
1010
+ $reviews = $reviews_service->saswp_get_reviews_list_by_parameters(null, null, 10, $paged, $offset);
1011
+
1012
+ if($reviews){
1013
+ echo json_encode(array('status' => 't', 'result' => $reviews));
1014
+ }else{
1015
+ echo json_encode(array('status' => 't', 'message' => 'Reviews not found'));
1016
+ }
1017
+
1018
+ }else{
1019
+ echo json_encode(array('status' => 'f', 'message' => 'Page number or offset is missing'));
1020
+ }
1021
+ wp_die();
1022
+ }
1023
+
1024
  function saswp_get_manual_fields_on_ajax(){
1025
 
1026
  if ( ! isset( $_GET['saswp_security_nonce'] ) ){
1043
 
1044
  wp_die();
1045
  }
1046
+
1047
+
1048
  /**
1049
  * Function to save schema type metabox value
1050
  * @param type $post_id
1070
  update_post_meta( $post_id, 'saswp_item_list_tags', sanitize_text_field($_POST['saswp_item_list_tags']) );
1071
  update_post_meta( $post_id, 'saswp_item_list_custom', sanitize_text_field($_POST['saswp_item_list_custom']) );
1072
  update_post_meta( $post_id, 'saswp_review_item_reviewed_'.$post_id, sanitize_text_field($_POST['saswp_review_item_reviewed_'.$post_id]) );
1073
+
1074
+ update_post_meta( $post_id, 'saswp_attahced_reviews', json_decode(wp_unslash($_POST['saswp_attahced_reviews'])) );
1075
+
1076
  $common_obj = new saswp_view_common_class();
1077
 
1078
  $post_obj[] = (object) array(