Schema & Structured Data for WP & AMP - Version 1.9.86

Version Description

(18 Oct 2021) =

  • Fixed: Undefined index _mbdb_isbn in other-schema.php #1545
  • Fixed: css issue of star ratings in comment form with Neptune by Osetin Theme. #1476
  • Fixed: Woocommerce-Product priceValidUntil #1537
  • Fixed: Debug log Errors #1536
  • Fixed: Images are not displaying while fetching the reviews [oneflare]. #1544
  • Added: Dynamic Aggregate Rating #1393
  • Added: More properties to Person Schema #1366
  • Added: An option to Set variable product as simple product #1291
  • Added: Need to show the review text in the review list #1344
  • Added: Enfold Theme compatibility #1530
  • Added: Schema blocks (FAQ & HowTo) for classic editor #1362
  • Added: The condition to fetch GTIN or SKU of the product on woocommerce compatibility for schema. #1531
Download this release

Release Info

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

Code changes from version 1.9.85 to 1.9.86

admin_section/common-function.php CHANGED
@@ -2385,7 +2385,7 @@ if ( ! defined('ABSPATH') ) exit;
2385
 
2386
  if(saswp_remove_warnings($sd_data, 'saswp-rankmath', 'saswp_string') == 1 && class_exists('RankMath\Post')){
2387
 
2388
- $c_title = RankMath\Post::get_meta( 'title', $post->ID );
2389
 
2390
  if(empty($c_title)){
2391
  $c_title = RankMath\Paper\Paper::get()->get_title();
@@ -3148,6 +3148,7 @@ function saswp_get_field_note($pname){
3148
  'wp_product_review' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/wp-product-review/">WP Product Review</a>',
3149
  'stamped' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/stampedio-product-reviews">Stamped.io Product Reviews & UGC for WooCommerce</a>',
3150
  'soledad' => saswp_t_string('Requires').' <a target="_blank" href="https://themeforest.net/item/soledad-multiconcept-blogmagazine-wp-theme/12945398">Soledad Theme</a>',
 
3151
  'zip_recipes' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
3152
  'mediavine_create' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/mediavine-create/">Create by Mediavine</a>',
3153
  'ht_recipes' => saswp_t_string('Requires').' <a target="_blank" href="https://themeforest.net/item/culinier-food-recipe-wordpress-theme/11088564/">HT-Recipes</a>',
2385
 
2386
  if(saswp_remove_warnings($sd_data, 'saswp-rankmath', 'saswp_string') == 1 && class_exists('RankMath\Post')){
2387
 
2388
+ $c_title = RankMath\Post::get_meta( 'title', get_the_ID() );
2389
 
2390
  if(empty($c_title)){
2391
  $c_title = RankMath\Paper\Paper::get()->get_title();
3148
  'wp_product_review' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/wp-product-review/">WP Product Review</a>',
3149
  'stamped' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/stampedio-product-reviews">Stamped.io Product Reviews & UGC for WooCommerce</a>',
3150
  'soledad' => saswp_t_string('Requires').' <a target="_blank" href="https://themeforest.net/item/soledad-multiconcept-blogmagazine-wp-theme/12945398">Soledad Theme</a>',
3151
+ 'enfold' => saswp_t_string('Requires').' <a target="_blank" href="https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990">Enfold Theme</a>',
3152
  'zip_recipes' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/zip-recipes/">Zip Recipes</a>',
3153
  'mediavine_create' => saswp_t_string('Requires').' <a target="_blank" href="https://wordpress.org/plugins/mediavine-create/">Create by Mediavine</a>',
3154
  'ht_recipes' => saswp_t_string('Requires').' <a target="_blank" href="https://themeforest.net/item/culinier-food-recipe-wordpress-theme/11088564/">HT-Recipes</a>',
admin_section/css/jquery.rateyo.min.css CHANGED
@@ -20,7 +20,7 @@
20
  position: relative;
21
  line-height: 0;
22
  z-index: 10;
23
- white-space: nowrap;
24
  }
25
  .jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group > svg {
26
  display: inline-block;
20
  position: relative;
21
  line-height: 0;
22
  z-index: 10;
23
+ white-space: nowrap !important;
24
  }
25
  .jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group > svg {
26
  display: inline-block;
admin_section/css/main-style.css CHANGED
@@ -379,6 +379,9 @@ clear: both;
379
  label[for="saswp_archive_schema_type"] {
380
  padding-left: 10px;
381
  }
 
 
 
382
  .saswp-amp .saswp-knowledge-field{
383
  float: right;
384
  width: 75%;
@@ -920,32 +923,31 @@ Google review module ends here
920
  .saswp-ele-tlt p{
921
  margin-top:10px;
922
  }
923
- .saswp-sts-btn{
924
  box-sizing: border-box;
925
- height: 52px;
926
  margin-top: 20px;
927
- padding: 6px 15px;
928
  border: 1px solid #e5e5e5;
929
  border-radius: 3px;
930
- display: flex;
931
  align-items: center;
932
  justify-content: space-between;
933
  }
 
934
  .saswp-d-btn{
935
  background: #d2150a;
936
  padding: 6px 18px;
937
  border-radius: 30px;
938
  font-size: 14px;
939
  color: #fff;
 
 
940
  }
941
  .form-wrap .saswp-sts-txt{
942
- font-size: 16px;
943
  color:#000;
944
  }
945
- .saswp-sts-txt span{
946
- color:#bebfc0;
947
- padding-left:5px;
948
- }
949
 
950
  /** star rating Feature CSS **/
951
  .saswp_review_platform .saswp-g-plus{
@@ -2498,7 +2500,483 @@ padding: 2px;
2498
  }
2499
  .saswp-modify-schema-on-taxonomy .form-table fieldset input[type="button"]{
2500
  width: 24% !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2501
  }
 
 
 
2502
  /* Offer Banner Starts Here */
2503
  /* .saswp-offer-banner{
2504
  background: #ca4a1f;
379
  label[for="saswp_archive_schema_type"] {
380
  padding-left: 10px;
381
  }
382
+ label[for="saswp-single-price-type"] {
383
+ padding-left: 10px;
384
+ }
385
  .saswp-amp .saswp-knowledge-field{
386
  float: right;
387
  width: 75%;
923
  .saswp-ele-tlt p{
924
  margin-top:10px;
925
  }
926
+ .saswp-sts-btn {
927
  box-sizing: border-box;
 
928
  margin-top: 20px;
929
+ padding: 6px 12px;
930
  border: 1px solid #e5e5e5;
931
  border-radius: 3px;
932
+ display: block;
933
  align-items: center;
934
  justify-content: space-between;
935
  }
936
+
937
  .saswp-d-btn{
938
  background: #d2150a;
939
  padding: 6px 18px;
940
  border-radius: 30px;
941
  font-size: 14px;
942
  color: #fff;
943
+ float: right;
944
+ margin-top: -31px;
945
  }
946
  .form-wrap .saswp-sts-txt{
947
+ font-size: 14px;
948
  color:#000;
949
  }
950
+ .saswp-sts-txt{font-size:14px;color:#000}
 
 
 
951
 
952
  /** star rating Feature CSS **/
953
  .saswp_review_platform .saswp-g-plus{
2500
  }
2501
  .saswp-modify-schema-on-taxonomy .form-table fieldset input[type="button"]{
2502
  width: 24% !important;
2503
+ }.activated-plugins {
2504
+ position: relative;
2505
+ display: inline-block;
2506
+ color: #222;
2507
+ font-size: 14px;
2508
+ letter-spacing: 0;
2509
+ right: 5px;
2510
+ margin-left: 4px
2511
+ }
2512
+
2513
+ .saswppro_icon:before {
2514
+ content: "\f147";
2515
+ background: #388e3c;
2516
+ border-radius: 40px;
2517
+ color: #fff;
2518
+ position: relative;
2519
+ left: 1px;
2520
+ border-radius: 40px;
2521
+ padding: 1px 1px 0 0;
2522
+ top: 1px;
2523
+ margin: 0;
2524
+ font-size: 14px
2525
+ }
2526
+
2527
+ .pro_icon {
2528
+ margin: 0;
2529
+ font-size: 16px;
2530
+ margin-left: 3px;
2531
+ margin-top: 1px;
2532
+ right: 5px
2533
+ }
2534
+
2535
+ .expiredinner_span {
2536
+ color: green
2537
+ }
2538
+
2539
+ i.dashicons-before.dashicons-admin-generic {
2540
+ color: #666
2541
+ }
2542
+
2543
+ #exp {
2544
+ color: red
2545
+ }
2546
+
2547
+ .dashicons-no {
2548
+ background: red;
2549
+ color: #fff;
2550
+ border-radius: 10px;
2551
+ position: relative;
2552
+ font-size: 15px
2553
+ }
2554
+
2555
+ .dashicons-no:before {
2556
+ content: "\f158";
2557
+ top: 3px;
2558
+ position: relative;
2559
+ left: 0
2560
+ }
2561
+
2562
+ .saswp-addon-alert {
2563
+ color: red;
2564
+ font-size: 14px;
2565
+ letter-spacing: 0;
2566
+ cursor: default
2567
+ }
2568
+
2569
+ .dashicons-alert::before {
2570
+ content: "\f534";
2571
+ background: #ffb900;
2572
+ border-radius: 40px;
2573
+ color: #fff;
2574
+ border-radius: 40px;
2575
+ padding: 4px 3px 4px 4px;
2576
+ top: 0;
2577
+ right: 9px;
2578
+ margin: 0;
2579
+ position: relative
2580
+ }
2581
+
2582
+ a.renewal-license {
2583
+ margin-left: 5px;
2584
+ font-size: 12px !important;
2585
+ padding: 4px 10px 5px;
2586
+ letter-spacing: .1px;
2587
+ border-radius: 60px;
2588
+ margin-right: 0;
2589
+ background: #388e3c;
2590
+ color: #fff;
2591
+ box-shadow: 0 .15em .65em 0 rgb(0 0 0 / 25%);
2592
+ text-decoration: none
2593
+ }
2594
+
2595
+ span.renew-lic {
2596
+ font-size: 14px
2597
+ }
2598
+
2599
+ .sasfwp_key_user_name {
2600
+ font-weight: 700
2601
+ }
2602
+
2603
+ .before_msg {
2604
+ margin-left: 4px;
2605
+ cursor: default
2606
+ }
2607
+
2608
+ .before_msg_active {
2609
+ margin-left: 3px
2610
+ }
2611
+
2612
+ .saswp_addon_inactive {
2613
+ margin-left: 3px
2614
+ }
2615
+
2616
+ .ext_settings_url {
2617
+ margin-left: 8px;
2618
+ text-decoration: unset
2619
+ }
2620
+
2621
+ .sasfwp-main {
2622
+ float: right;
2623
+ background-color: #fff;
2624
+ border: 8px solid #fff;
2625
+ border-radius: 21px;
2626
+ padding: 1px 0 0 7px
2627
+ }
2628
+
2629
+ .sasfwp-main .activated-plugins {
2630
+ color: #222
2631
+ }
2632
+
2633
+ a.ext_url {
2634
+ text-decoration: unset
2635
+ }
2636
+
2637
+ span#saswp-addon-dashicons-yes {
2638
+ top: 20px;
2639
+ left: 60px;
2640
+ position: relative;
2641
+ margin: 0;
2642
+ font-size: 16px
2643
+ }
2644
+
2645
+ p.saswp_license_status_msg {
2646
+ display: inline-block;
2647
+ margin: 0 0 0 7px;
2648
+ position: relative;
2649
+ bottom: 10px
2650
+ }
2651
+
2652
+ span#saswp-addon-dashicons-no {
2653
+ display: none;
2654
+ position: relative;
2655
+ top: 22px;
2656
+ left: 59px
2657
+ }
2658
+
2659
+ .saswp-d-btn-1,
2660
+ .saswp-d-btn-2,
2661
+ .saswp-d-btn-3 {
2662
+ background: #d2150a;
2663
+ padding: 6px 18px;
2664
+ border-radius: 30px;
2665
+ font-size: 14px;
2666
+ color: #fff;
2667
+ display: inline-block
2668
+ }
2669
+
2670
+ .saswp-reviews-dashicons {
2671
+ float: right;
2672
+ left: -163px
2673
+ }
2674
+
2675
+ .license_key_input_inactive {
2676
+ display: inline-block;
2677
+ bottom: 8px;
2678
+ position: relative
2679
+ }
2680
+
2681
+ .saswp-woocommerce-dashicons {
2682
+ float: right;
2683
+ margin-right: 45px
2684
+ }
2685
+
2686
+ .saswp-addon-no {
2687
+ position: relative;
2688
+ display: block
2689
+ }
2690
+
2691
+ span.saswp_addon_icon.dashicons.dashicons-yes.pro_icon {
2692
+ top: 0;
2693
+ position: relative
2694
+ }
2695
+
2696
+ p#enter_key_reviews {
2697
+ position: relative;
2698
+ top: 20px
2699
+ }
2700
+
2701
+ p.enter_key_Reviews {
2702
+ position: relative;
2703
+ top: 8px
2704
+ }
2705
+
2706
+ label.saswp-sts-txt {
2707
+ font-size: 14px;
2708
+ color: #000
2709
+ }
2710
+
2711
+ p#enter_key_woocommerce {
2712
+ position: relative;
2713
+ top: 20px
2714
+ }
2715
+
2716
+ input.license_key_input_active::placeholder {
2717
+ color: #000
2718
+ }
2719
+
2720
+ .saswp-sts-active-main {
2721
+ margin-top: -21px;
2722
+ padding: 6px 15px
2723
+ }
2724
+
2725
+ .saswp-active-input {
2726
+ float: left
2727
+ }
2728
+
2729
+ span.addon-activated {
2730
+ color: green;
2731
+ padding-left: 5px
2732
+ }
2733
+
2734
+ .saswp-sts-deactive-main {
2735
+ margin-top: -21px;
2736
+ padding: 6px 15px
2737
+ }
2738
+
2739
+ .saswp-sts-active-main.woocommerce_addon {
2740
+ margin-top: 0
2741
+ }
2742
+
2743
+ .saswp-deactive-input.woocommerce_addon {
2744
+ margin: -49px 0 0 0
2745
+ }
2746
+
2747
+ .saswp-addon-sub-inactive.woocommerce {
2748
+ margin: 29px 0 0 0
2749
+ }
2750
+
2751
+ .saswp-sts-deactive-main.woocommerce_addon {
2752
+ margin-top: 0;
2753
+ padding: 1px 15px
2754
+ }
2755
+
2756
+ .saswp-active-inputbtn.woocommerce_addon {
2757
+ position: relative;
2758
+ bottom: 20px
2759
+ }
2760
+
2761
+ .saswp-woocommerce-dashicons {
2762
+ float: right;
2763
+ margin-right: 45px;
2764
+ top: 20px;
2765
+ left: 14px;
2766
+ position: relative;
2767
+ margin: 0;
2768
+ font-size: 16px
2769
+ }
2770
+
2771
+ span.saswp-woocommerce-addondashicon-yes {
2772
+ position: relative;
2773
+ right: 51px
2774
+ }
2775
+
2776
+ .saswp-addon-sub-inactive.reviews {
2777
+ margin-top: -20px
2778
+ }
2779
+
2780
+ .saswp-sts-deactive-main.reviews_addon {
2781
+ margin-top: 0
2782
+ }
2783
+
2784
+ .saswp-active-inputbtn.reviews_addon {
2785
+ bottom: 18px;
2786
+ position: relative
2787
+ }
2788
+
2789
+ input.reviewslicense_key_input_inactive.reviews_addon_inactive {
2790
+ margin: 0 0 0 10px
2791
+ }
2792
+
2793
+ span.limit_span {
2794
+ font-weight: 400;
2795
+ color: #646970;
2796
+ }
2797
+
2798
+ input.license_key_input_inactive.reviews_addon_inactive {
2799
+ display: none
2800
+ }
2801
+
2802
+ a.button.button-default.saswp_license_activation.reviews {
2803
+ display: none
2804
+ }
2805
+
2806
+ a#saswp_license_deactivationbtn {
2807
+ display: none
2808
+ }
2809
+
2810
+ a#saswp_license_activation_ {
2811
+ display: none
2812
+ }
2813
+
2814
+ .license_key_input_inactive {
2815
+ top: 0
2816
+ }
2817
+
2818
+ span.reviews_inactive {
2819
+ padding-left: 5px;
2820
+ font-weight: 400
2821
+ }
2822
+
2823
+ .form-wrap label {
2824
+ display: block;
2825
+ padding: 0 0
2826
+ }
2827
+
2828
+ .form-wrap label {
2829
+ display: block;
2830
+ padding: 8px 0
2831
+ }
2832
+
2833
+ .saswp-sts-active-main.reviews_addon {
2834
+ margin: -7px 0 0 -1em
2835
+ }
2836
+
2837
+ input.license_key_input_active {
2838
+ margin-left: 10px
2839
+ }
2840
+
2841
+ input.license_key_input_inactive {
2842
+ margin-left: 10px
2843
+ }
2844
+
2845
+ .saswp-sts-active-main.woocommerce_addon {
2846
+ margin-top: -4px
2847
+ }
2848
+
2849
+ label.saswp-sts-txt.inactive {
2850
+ padding: 10px 0 6px 16px
2851
+ }
2852
+
2853
+ a#saswp_license_deactivation_internal {
2854
+ display: none
2855
+ }
2856
+
2857
+ .inner_span_expiring {
2858
+ color: red;
2859
+ margin-right: 2px
2860
+ }
2861
+
2862
+ i#refresh_license_icon_top {
2863
+ cursor: pointer;
2864
+ display: none
2865
+ }
2866
+
2867
+ .dashicons.spin {
2868
+ animation: dashicons-spin 2s infinite;
2869
+ animation-timing-function: linear
2870
+ }
2871
+
2872
+ @keyframes dashicons-spin {
2873
+ 0% {
2874
+ transform: rotate(0)
2875
+ }
2876
+ 100% {
2877
+ transform: rotate(-360deg)
2878
+ }
2879
+ }
2880
+
2881
+ span#lic_exp {
2882
+ color: red;
2883
+ margin-left: 4px
2884
+ }
2885
+
2886
+ i#refresh_expired_addon {
2887
+ cursor: pointer;
2888
+ display: none
2889
+ }
2890
+
2891
+ i#user_refresh_expired_addon {
2892
+ cursor: pointer
2893
+ }
2894
+
2895
+ span.one_of_expired {
2896
+ color: red
2897
+ }
2898
+
2899
+ .pro_warning {
2900
+ color: #ffb229;
2901
+ right: 3px;
2902
+ position: relative;
2903
+ bottom: 1px
2904
+ }
2905
+
2906
+ .saswppro_alert {
2907
+ color: #ffb229;
2908
+ top: 2px;
2909
+ position: relative;
2910
+ right: 1px
2911
+ }
2912
+
2913
+ #lic_active {
2914
+ color: green;
2915
+ margin-left: 8px
2916
+ }
2917
+
2918
+ .saswp-license-tenure {
2919
+ display: inline-block;
2920
+ margin-top: 8px
2921
+ }
2922
+
2923
+ .lic_is_active {
2924
+ color: #000
2925
+ }
2926
+
2927
+ #lic_inactive {
2928
+ color: #bebfc0;
2929
+ margin-left: 8px
2930
+ }
2931
+
2932
+ .single_addon_warning {
2933
+ color: #ffb229
2934
+ }
2935
+
2936
+ .expire_msg {
2937
+ color: red
2938
+ }
2939
+
2940
+ .less_than_zero {
2941
+ color: red;
2942
+ cursor: default
2943
+ }
2944
+
2945
+ .lifetime_ {
2946
+ color: green
2947
+ }
2948
+
2949
+ .saswp_pro_alert {
2950
+ color: #ffb229;
2951
+ }
2952
+
2953
+ .user_refresh_single_addon {
2954
+ cursor: pointer;
2955
+ }
2956
+
2957
+ .saswp_pro_alert {
2958
+ color: #ffb229;
2959
+ }.single_addon_warning {
2960
+ color: #ffb229;
2961
+ }.saswp-license-tenure {
2962
+ display: inline-block;
2963
+ margin-top: 8px;
2964
+ }.before_msg {
2965
+ margin-left: 4px;
2966
+ cursor: default;
2967
+ }label.saswp-sts-txt {
2968
+ font-size: 14px;
2969
+ color: #000;
2970
+ }span.renew-lic {
2971
+ font-size: 14px;
2972
+ }
2973
+ .saswp_inactive_key {
2974
+ color: #bebfc0;
2975
+ padding-left: 5px;
2976
  }
2977
+ span.inactive_status_reviews{padding-left:5px;font-weight:400}
2978
+ label.saswp-sts-txt.active {font-weight: 400;}
2979
+ span.inactive_Reviews { font-weight: 400; font-size: 14px; color: #000; }
2980
  /* Offer Banner Starts Here */
2981
  /* .saswp-offer-banner{
2982
  background: #ca4a1f;
admin_section/css/main-style.min.css CHANGED
@@ -1 +1 @@
1
- #saswp-default-rating{width:100px!important}.saswp-settings-container .nav-tab-wrapper{display:flex}.saswp_review_form_toggle_check{margin:10px!important}.saswp-show-form-on-tab{padding:5px;display:inline-block;width:100%}.saswp-show-form-on-tab strong{display:inline-block;width:30%}.saswp-show-form-on-tab input{width:45%;text-align:center}.saswp-disable-btn-container{float:right;padding:10px}.saswp-disable-label{padding:10px;color:#999}.saswp-setup-schema-btn{margin:5px!important}.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_imp{display:none!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:75%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:0;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}label[for=saswp_archive_schema_type]{padding-left:10px}.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}.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{color:#555;background-color:#fff}.saswp-tab-links{display:block;padding:12px 14px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:100%;overflow:hidden;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee}#post_specific .inside{padding:0;margin:0}.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:30px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp-license-label{display:inline-block;width:400px}.saswp-clear-images{margin-left:10px!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:30px;height:16px;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:#b5b5b5;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:10px;width:10px;left:2px;bottom:3px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#00a0d2;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{background-color:#f9f9f9;margin-top:0}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}.saswp-tab-nav .selected{width:100.5%;z-index:9999}.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_breadcrumb_remove_cat_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:25px;height:25px}.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:100%;box-sizing:border-box}.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:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}.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{width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{cursor:pointer}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;cursor:pointer}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-update-notice-btns ul{list-style:inside;margin:0 10px 20px 20px}.saswp-notice-p{font-size:16px;color:#28672d}.saswp-update-notice-btns li a{text-decoration:underline}.saswp-update-notice-btns li{font-size:14px;font-weight:700;line-height:20px}.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-add-dynamic-section{padding:0 30px}.saswp-add-dynamic-btn{text-align:center;margin-bottom:10px}.saswp-add-single-rv{margin-left:10px!important}.saswp-dynamic-platforms{display:flex;width:100%}.saswp-dynamic-platforms select{margin-right:10px;width:40%}.saswp-add-rv-btn{font-size:25px;margin-left:-8px;padding-top:15px;cursor:pointer}.saswp-remove-coll-rv{position:absolute;top:2;top:0;right:0}.saswp-rmv-coll-rv{padding:3px;cursor:pointer}.saswp-collection-placement-post{width:-webkit-fill-available}.saswp-collection-placement-post td{vertical-align:top;width:-webkit-fill-available}.saswp-grid-pagination{display:inline-block;padding:20px}.saswp-grid-pagination a{color:#000;float:left;padding:8px 16px;text-decoration:none}.saswp-grid-pagination a.active{background-color:#4caf50;color:#fff}.saswp-grid-pagination a:hover:not(.active){background-color:#ddd}.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:96%;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;text-align:center}.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:25px;height:25px;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%;text-align:left}.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;text-align:initial}.saswp_reviewer_image .saswp-rv-img span{vertical-align:top}.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;padding-bottom:8px}.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;margin-left:75px}.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 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 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-thick-box-container{width:580px}#saswp-add-rv-manual{padding:10px}#saswp-add-rv-automatic,#saswp-add-rv-collection{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.saswp-add-collection-loop,.saswp-add-rv-loop{padding-bottom:10px}.saswp-add-rv-title{padding:10px}.close-attached-reviews-popup{float:right;margin-right:20px!important}.saswp-add-rv-note{padding-bottom:10px}.saswp-accept-rv-container{margin-right:20px}.saswp-post-specific-setting{border-bottom:1px solid #eee;text-align:center;padding-bottom:10px}.saswp-ps-text{padding:20px 5px}.saswp-ps-text span{font-weight:600}.saswp-ps-toggle{padding:10px}.saswp-stars-post-table td{padding:2px}.saswp-modify-schema-on-taxonomy td{background:#fff}.saswp-modify-schema-on-taxonomy .form-table th{width:auto!important}.saswp-modify-schema-on-taxonomy #saswp_specific_custom textarea{width:100%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=text]{width:75%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=button]{width:24%!important}
1
+ #saswp-default-rating{width:100px!important}.saswp-settings-container .nav-tab-wrapper{display:flex}.saswp_review_form_toggle_check{margin:10px!important}.saswp-show-form-on-tab{padding:5px;display:inline-block;width:100%}.saswp-show-form-on-tab strong{display:inline-block;width:30%}.saswp-show-form-on-tab input{width:45%;text-align:center}.saswp-disable-btn-container{float:right;padding:10px}.saswp-disable-label{padding:10px;color:#999}.saswp-setup-schema-btn{margin:5px!important}.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_imp{display:none!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:75%}.saswp-settings-container{display:inline-flex;width:100%}.saswp-settings-second-div{float:right;position:relative;top:20px;margin-right:0;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}label[for=saswp_archive_schema_type]{padding-left:10px}label[for=saswp-single-price-type]{padding-left:10px}.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}.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{color:#555;background-color:#fff}.saswp-tab-links{display:block;padding:12px 14px;outline:0;text-align:left;cursor:pointer;transition:.3s;font-size:15px;width:100%;overflow:hidden;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee}#post_specific .inside{padding:0;margin:0}.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:30px}.saswp_kg_logo,.saswp_person_fields{background-color:#fff!important}.saswp-license-label{display:inline-block;width:400px}.saswp-clear-images{margin-left:10px!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:30px;height:16px;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:#b5b5b5;transition:.4s;border-radius:20px}.saswp-slider:before{position:absolute;content:"";height:10px;width:10px;left:2px;bottom:3px;background-color:#fff;transition:.4s;border-radius:20px}input:checked+.saswp-slider{background-color:#00a0d2;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{background-color:#f9f9f9;margin-top:0}.saswp-tab-nav li{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}.saswp-tab-nav .selected{width:100.5%;z-index:9999}.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_breadcrumb_remove_cat_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;margin-top:20px;padding:6px 12px;border:1px solid #e5e5e5;border-radius:3px;display:block;align-items:center;justify-content:space-between}.saswp-d-btn{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;float:right;margin-top:-31px}.form-wrap .saswp-sts-txt{font-size:14px;color:#000}.saswp-sts-txt{font-size:14px;color:#000}.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:25px;height:25px}.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:100%;box-sizing:border-box}.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:"\f147";background-repeat:no-repeat;font-family:dashicons;position:absolute;color:#46b450;font-size:25px;left:0;line-height:1;top:0}.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{width:100%;align-items:center}.updated.notice .dashicons-thumbs-up{margin-right:10px}a.saswp-feedback-no-thanks,a.saswp-feedback-remindme{cursor:pointer}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;cursor:pointer}.saswp-update-notice-btns{display:inline-block;width:100%;margin-bottom:5px}.saswp-update-notice-btns ul{list-style:inside;margin:0 10px 20px 20px}.saswp-notice-p{font-size:16px;color:#28672d}.saswp-update-notice-btns li a{text-decoration:underline}.saswp-update-notice-btns li{font-size:14px;font-weight:700;line-height:20px}.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-add-dynamic-section{padding:0 30px}.saswp-add-dynamic-btn{text-align:center;margin-bottom:10px}.saswp-add-single-rv{margin-left:10px!important}.saswp-dynamic-platforms{display:flex;width:100%}.saswp-dynamic-platforms select{margin-right:10px;width:40%}.saswp-add-rv-btn{font-size:25px;margin-left:-8px;padding-top:15px;cursor:pointer}.saswp-remove-coll-rv{position:absolute;top:2;top:0;right:0}.saswp-rmv-coll-rv{padding:3px;cursor:pointer}.saswp-collection-placement-post{width:-webkit-fill-available}.saswp-collection-placement-post td{vertical-align:top;width:-webkit-fill-available}.saswp-grid-pagination{display:inline-block;padding:20px}.saswp-grid-pagination a{color:#000;float:left;padding:8px 16px;text-decoration:none}.saswp-grid-pagination a.active{background-color:#4caf50;color:#fff}.saswp-grid-pagination a:hover:not(.active){background-color:#ddd}.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:96%;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;text-align:center}.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:25px;height:25px;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%;text-align:left}.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;text-align:initial}.saswp_reviewer_image .saswp-rv-img span{vertical-align:top}.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;padding-bottom:8px}.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;margin-left:75px}.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 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 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-thick-box-container{width:580px}#saswp-add-rv-manual{padding:10px}#saswp-add-rv-automatic,#saswp-add-rv-collection{padding:10px;box-sizing:border-box;width:100%;overflow-y:scroll;height:260px}.saswp-add-collection-loop,.saswp-add-rv-loop{padding-bottom:10px}.saswp-add-rv-title{padding:10px}.close-attached-reviews-popup{float:right;margin-right:20px!important}.saswp-add-rv-note{padding-bottom:10px}.saswp-accept-rv-container{margin-right:20px}.saswp-post-specific-setting{border-bottom:1px solid #eee;text-align:center;padding-bottom:10px}.saswp-ps-text{padding:20px 5px}.saswp-ps-text span{font-weight:600}.saswp-ps-toggle{padding:10px}.saswp-stars-post-table td{padding:2px}.saswp-modify-schema-on-taxonomy td{background:#fff}.saswp-modify-schema-on-taxonomy .form-table th{width:auto!important}.saswp-modify-schema-on-taxonomy #saswp_specific_custom textarea{width:100%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=text]{width:75%!important}.saswp-modify-schema-on-taxonomy .form-table fieldset input[type=button]{width:24%!important}.activated-plugins{position:relative;display:inline-block;color:#222;font-size:14px;letter-spacing:0;right:5px;margin-left:4px}.saswppro_icon:before{content:"\f147";background:#388e3c;border-radius:40px;color:#fff;position:relative;left:1px;border-radius:40px;padding:1px 1px 0 0;top:1px;margin:0;font-size:14px}.pro_icon{margin:0;font-size:16px;margin-left:3px;margin-top:1px;right:5px}.expiredinner_span{color:green}i.dashicons-before.dashicons-admin-generic{color:#666}#exp{color:red}.dashicons-no{background:red;color:#fff;border-radius:10px;position:relative;font-size:15px}.dashicons-no:before{content:"\f158";top:3px;position:relative;left:0}.saswp-addon-alert{color:red;font-size:14px;letter-spacing:0;cursor:default}.dashicons-alert::before{content:"\f534";background:#ffb900;border-radius:40px;color:#fff;border-radius:40px;padding:4px 3px 4px 4px;top:0;right:9px;margin:0;position:relative}a.renewal-license{margin-left:5px;font-size:12px!important;padding:4px 10px 5px;letter-spacing:.1px;border-radius:60px;margin-right:0;background:#388e3c;color:#fff;box-shadow:0 .15em .65em 0 rgb(0 0 0 / 25%);text-decoration:none}span.renew-lic{font-size:14px}.sasfwp_key_user_name{font-weight:700}.before_msg{margin-left:4px;cursor:default}.before_msg_active{margin-left:3px}.saswp_addon_inactive{margin-left:3px}.ext_settings_url{margin-left:8px;text-decoration:unset}.sasfwp-main{float:right;background-color:#fff;border:8px solid #fff;border-radius:21px;padding:1px 0 0 7px}.sasfwp-main .activated-plugins{color:#222}a.ext_url{text-decoration:unset}span#saswp-addon-dashicons-yes{top:20px;left:60px;position:relative;margin:0;font-size:16px}p.saswp_license_status_msg{display:inline-block;margin:0 0 0 7px;position:relative;bottom:10px}span#saswp-addon-dashicons-no{display:none;position:relative;top:22px;left:59px}.saswp-d-btn-1,.saswp-d-btn-2,.saswp-d-btn-3{background:#d2150a;padding:6px 18px;border-radius:30px;font-size:14px;color:#fff;display:inline-block}.saswp-reviews-dashicons{float:right;left:-163px}.license_key_input_inactive{display:inline-block;bottom:8px;position:relative}.saswp-woocommerce-dashicons{float:right;margin-right:45px}.saswp-addon-no{position:relative;display:block}span.saswp_addon_icon.dashicons.dashicons-yes.pro_icon{top:0;position:relative}p#enter_key_reviews{position:relative;top:20px}p.enter_key_Reviews{position:relative;top:8px}label.saswp-sts-txt{font-size:14px;color:#000}p#enter_key_woocommerce{position:relative;top:20px}input.license_key_input_active::placeholder{color:#000}.saswp-sts-active-main{margin-top:-21px;padding:6px 15px}.saswp-active-input{float:left}span.addon-activated{color:green;padding-left:5px}.saswp-sts-deactive-main{margin-top:-21px;padding:6px 15px}.saswp-sts-active-main.woocommerce_addon{margin-top:0}.saswp-deactive-input.woocommerce_addon{margin:-49px 0 0 0}.saswp-addon-sub-inactive.woocommerce{margin:29px 0 0 0}.saswp-sts-deactive-main.woocommerce_addon{margin-top:0;padding:1px 15px}.saswp-active-inputbtn.woocommerce_addon{position:relative;bottom:20px}.saswp-woocommerce-dashicons{float:right;margin-right:45px;top:20px;left:14px;position:relative;margin:0;font-size:16px}span.saswp-woocommerce-addondashicon-yes{position:relative;right:51px}.saswp-addon-sub-inactive.reviews{margin-top:-20px}.saswp-sts-deactive-main.reviews_addon{margin-top:0}.saswp-active-inputbtn.reviews_addon{bottom:18px;position:relative}input.reviewslicense_key_input_inactive.reviews_addon_inactive{margin:0 0 0 10px}span.limit_span{font-weight:400;color:#646970}input.license_key_input_inactive.reviews_addon_inactive{display:none}a.button.button-default.saswp_license_activation.reviews{display:none}a#saswp_license_deactivationbtn{display:none}a#saswp_license_activation_{display:none}.license_key_input_inactive{top:0}span.reviews_inactive{padding-left:5px;font-weight:400}.form-wrap label{display:block;padding:0 0}.form-wrap label{display:block;padding:8px 0}.saswp-sts-active-main.reviews_addon{margin:-7px 0 0 -1em}input.license_key_input_active{margin-left:10px}input.license_key_input_inactive{margin-left:10px}.saswp-sts-active-main.woocommerce_addon{margin-top:-4px}label.saswp-sts-txt.inactive{padding:10px 0 6px 16px}a#saswp_license_deactivation_internal{display:none}.inner_span_expiring{color:red;margin-right:2px}i#refresh_license_icon_top{cursor:pointer;display:none}.dashicons.spin{animation:dashicons-spin 2s infinite;animation-timing-function:linear}@keyframes dashicons-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}span#lic_exp{color:red;margin-left:4px}i#refresh_expired_addon{cursor:pointer;display:none}i#user_refresh_expired_addon{cursor:pointer}span.one_of_expired{color:red}.pro_warning{color:#ffb229;right:3px;position:relative;bottom:1px}.saswppro_alert{color:#ffb229;top:2px;position:relative;right:1px}#lic_active{color:green;margin-left:8px}.saswp-license-tenure{display:inline-block;margin-top:8px}.lic_is_active{color:#000}#lic_inactive{color:#bebfc0;margin-left:8px}.single_addon_warning{color:#ffb229}.expire_msg{color:red}.less_than_zero{color:red;cursor:default}.lifetime_{color:green}.saswp_pro_alert{color:#ffb229}.user_refresh_single_addon{cursor:pointer}.saswp_pro_alert{color:#ffb229}.single_addon_warning{color:#ffb229}.saswp-license-tenure{display:inline-block;margin-top:8px}.before_msg{margin-left:4px;cursor:default}label.saswp-sts-txt{font-size:14px;color:#000}span.renew-lic{font-size:14px}.saswp_inactive_key{color:#bebfc0;padding-left:5px}span.inactive_status_reviews{padding-left:5px;font-weight:400}label.saswp-sts-txt.active{font-weight:400}span.inactive_Reviews{font-weight:400;font-size:14px;color:#000}
admin_section/css/saswp-frontend-extra.css DELETED
@@ -1,3 +0,0 @@
1
- .jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group {
2
- position: absolute !important;
3
- }
 
 
 
admin_section/css/saswp-frontend-extra.min.css DELETED
@@ -1,3 +0,0 @@
1
- .jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group {
2
- position: absolute !important;
3
- }
 
 
 
admin_section/fields-generator.php CHANGED
@@ -540,9 +540,11 @@ class saswp_fields_generator {
540
  switch ($meta_field['id']) {
541
 
542
  case 'saswp-reviews-pro-api':
543
-
 
 
544
  $pro_api = '<div class="" style="display:block;">
545
- '.saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg, $lable=false, $rv_limits).'
546
  </div>';
547
 
548
 
540
  switch ($meta_field['id']) {
541
 
542
  case 'saswp-reviews-pro-api':
543
+ $license_user_name = '';
544
+ $license_download_id = '';
545
+ $license_expires = '';
546
  $pro_api = '<div class="" style="display:block;">
547
+ '.saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg,$license_user_name, $license_download_id, $license_expires, $lable=false, $rv_limits).'
548
  </div>';
549
 
550
 
admin_section/js/functions-list.js CHANGED
@@ -78,12 +78,44 @@
78
  jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
79
  }else{
80
  jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
81
- }
82
-
83
  }).change();
84
  }
85
 
86
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  function getParameterByName(name, url) {
89
  if (!url){
78
  jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).show();
79
  }else{
80
  jQuery(this).parent().parent().siblings('.saswp-rating-review-'+schema_type.toLowerCase()).hide();
81
+ }
82
+ saswp_enable_rating_automate();
83
  }).change();
84
  }
85
 
86
+ }
87
+
88
+ function saswp_enable_rating_automate(){
89
+ var schema_type = "";
90
+ if(jQuery('select#schema_type option:selected').val()){
91
+ schema_type = jQuery('select#schema_type option:selected').val();
92
+ }
93
+ if(jQuery(".saswp-tab-links.selected").attr('saswp-schema-type')){
94
+ schema_type = jQuery(".saswp-tab-links.selected").attr('saswp-schema-type');
95
+ }
96
+
97
+ if(schema_type){
98
+ jQuery(".saswp-enable-rating-automate-"+schema_type.toLowerCase()).change(function(){
99
+
100
+ if(jQuery(this).is(':checked') && jQuery(this).is(":visible")){
101
+ jQuery(this).parent().parent().next().show();
102
+ jQuery(this).parent().parent().next().next().hide();
103
+ jQuery(this).parent().parent().next().next().next().hide();
104
+ }
105
+ else{
106
+ jQuery(this).parent().parent().next().hide();
107
+
108
+ if(jQuery(".saswp-enable-rating-review-"+schema_type.toLowerCase()).is(":checked")){
109
+ jQuery(this).parent().parent().next().next().show();
110
+ jQuery(this).parent().parent().next().next().next().show();
111
+ }
112
+
113
+ }
114
+
115
+ }).change();
116
+ }
117
+
118
+ }
119
 
120
  function getParameterByName(name, url) {
121
  if (!url){
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_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s),t=a.getDate(),i=a.getMonth();i+=1;var n=a.getFullYear(),p=a.toLocaleDateString(),r=jQuery(".saswp-collection-date-format").val();r&&"Y-m-d"==r&&(p=n+"-"+i+"-"+t),r&&"d-m-Y"==r&&(p=t+"-"+i+"-"+n),e={time:a.toLocaleTimeString(),date:p}}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").length||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=jQuery(".saswp_modify_this_schema_hidden_"+n).val();append_id=null==a?jQuery("#saswp_specific_"+n):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:r,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(append_id).find(".saswp-table-create-onajax").remove();var e=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(append_id).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_publisher_url">Review Publisher URL</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_date_modified">Review Modified 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,p){if(saswp_meta_fields[n]){var r=saswp_fields_html_generator(e,i,n,t,saswp_meta_fields[n]);r&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(r),saswp_schema_datepicker(),saswp_schema_timepicker(),s.removeClass("updating-message"))}else jQuery.get(ajaxurl,{action:"saswp_get_schema_dynamic_fields_ajax",schema_id:i,schema_type:p,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((i.name.indexOf("published_date")>-1||i.name.indexOf("date_created")>-1||i.name.indexOf("created_date")>-1||i.name.indexOf("modified_date")>-1||i.name.indexOf("date_published")>-1||i.name.indexOf("date_modified")>-1)&&(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){rmv_boolean?e.is_remove=!0:e.is_remove=!1,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 e>0&&(a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+e+")</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>"),a}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,r="";jQuery.each(saswp_collection[e],function(s,e){r=e.saswp_review_location_id,a=e.saswp_review_platform_icon,"Self"==(t=e.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),n+=parseFloat(e.saswp_review_rating),i++}),n>0&&(p=n/i),saswp_collection[e]&&(s+="<li>",s+='<a target="_blank" href="'+r+'">',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.toFixed(1),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+=saswp_localize_data.trans_based_on+" "+i+" "+saswp_localize_data.trans_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_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,e){saswp_total_reviews.push(e.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,e,a,t,i){var n="",p="",r=0;if(saswp_total_collection.length>0){r=Math.ceil(saswp_total_collection.length/a),n+='<div class="saswp-r1">';for(var l=1;l<=s;l++)p+=" 1fr";if(s.length>3?n+='<ul style="grid-template-columns:'+p+';overflow-y: scroll;">':n+='<ul style="grid-template-columns:'+p+';overflow-y:hidden;">',saswp_total_collection){var c=saswp_total_collection;e&&a>0&&(c=c.slice(t,i)),jQuery.each(c,function(s,e){var a=saswp_convert_datetostring(e.saswp_review_date);n+="<li>",n+='<div class="saswp-rc">',n+='<div class="saswp-rc-a">',n+='<div class="saswp-r1-aimg">',n+='<img src="'+e.saswp_reviewer_image+'" width="56" height="56"/>',n+="</div>",n+='<div class="saswp-rc-nm">',n+='<a href="#">'+e.saswp_reviewer_name+"</a>",n+=saswp_create_rating_html_by_value(e.saswp_review_rating),a.date&&(n+='<span class="saswp-rc-dt">'+a.date+"</span>"),n+="</div>",n+="</div>",n+='<div class="saswp-rc-lg">',n+='<img src="'+e.saswp_review_platform_icon+'"/>',n+="</div>",n+="</div>",n+='<div class="saswp-rc-cnt">',n+="<p>"+e.saswp_review_text+"</p>",n+="</div>",e.is_remove&&(n+='<span platform-id="'+e.saswp_review_platform+'" data-id="'+e.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),n+="</li>"})}if(n+="</ul>",r>0&&e){n+='<div class="saswp-grid-pagination">',n+='<a class="saswp-grid-page" data-id="1" href="#">&laquo;</a>';var o=parseInt(saswp_grid_page)-3,_=parseInt(saswp_grid_page)+3;for(l=1;l<=r;l++){var w="saswp_hide";l>o&&l<_&&(w=""),n+=l==saswp_grid_page?'<a class="active saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>":'<a class="saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>"}n+='<a class="saswp-grid-page" data-id="'+r+'" href="#">&raquo;</a>',n+="</div>"}n+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(n)}function saswp_create_collection_by_design(s,e,a,t,i,n,p,r,l,c,o){switch(s){case"grid":saswp_create_collection_grid(e,r,l,c,o);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(),n=parseInt(jQuery("#saswp-coll-per-page").val()),p=!1,r=0,l=n;if(jQuery("#saswp-coll-pagination").is(":checked")){p=!0;saswp_grid_page>0&&(l=saswp_grid_page*n),r=l-n}if(jQuery("#saswp_gallery_arrow").is(":checked"))var c=!0;else c=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var o=!0;else o=!1;saswp_create_total_collection(),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(e,a,t,c,o,i,i,p,n,r,l)}function saswp_get_collection_data(s,e,a=null,t=null,i=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:i,review_id:t,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,e){var a=JSON.parse(e.saswp_review_platform),t=[];if(t.push(e),void 0===saswp_collection[a])saswp_collection[a]=t;else{var i=[...new Set([...saswp_collection[a],...t])];saswp_collection[a]=i}}),saswp_on_collection_design_change()),a&&a.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,e){var a=jQuery(this),t=jQuery("option[value]:not([selected])",a),i=[];t.each(function(){var s=jQuery(this);i.push({id:s.attr("value"),text:s.text()})});var n=a.attr("data-type"),p=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+n;a.select2({ajax:{url:p,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:i})})}
1
+ var saswp_meta_list=[],saswp_meta_fields=[],saswp_meta_list_fields=[],saswp_taxonomy_term=[],saswp_collection=[],saswp_total_collection=[],saswp_total_reviews=[],saswp_coll_json=null,saswp_grid_page=1;function saswp_convert_datetostring(s){var e={};if(s){var a=new Date(s),t=a.getDate(),i=a.getMonth();i+=1;var n=a.getFullYear(),r=a.toLocaleDateString(),p=jQuery(".saswp-collection-date-format").val();p&&"Y-m-d"==p&&(r=n+"-"+i+"-"+t),p&&"d-m-Y"==p&&(r=t+"-"+i+"-"+n),e={time:a.toLocaleTimeString(),date:r}}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(),saswp_enable_rating_automate()}).change()}function saswp_enable_rating_automate(){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-automate-"+s.toLowerCase()).change(function(){jQuery(this).is(":checked")&&jQuery(this).is(":visible")?(jQuery(this).parent().parent().next().show(),jQuery(this).parent().parent().next().next().hide(),jQuery(this).parent().parent().next().next().next().hide()):(jQuery(this).parent().parent().next().hide(),jQuery(".saswp-enable-rating-review-"+s.toLowerCase()).is(":checked")&&(jQuery(this).parent().parent().next().next().show(),jQuery(this).parent().parent().next().next().next().show()))}).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").length||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"),r=jQuery(e).attr("post-specific"),p=jQuery(".saswp_modify_this_schema_hidden_"+n).val();append_id=null==a?jQuery("#saswp_specific_"+n):jQuery(".saswp-manual-modification"),jQuery.get(ajaxurl,{action:"saswp_get_item_reviewed_fields",modify_this:p,schema_type:s,schema_id:n,post_specific:r,item:t,post_id:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){jQuery(append_id).find(".saswp-table-create-onajax").remove();var e=jQuery(append_id).find(".saswp-table-create-onload");jQuery.each(e,function(s,e){0!=s&&jQuery(this).remove()}),jQuery(append_id).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 r=t;null==r&&(r=Object.keys(a)[0]);var p="";if(p+='<select class="saswp-custom-meta-list" name="saswp_meta_list_val['+r+']">',jQuery.each(e,function(s,e){p+='<optgroup label="'+e.label+'">',jQuery.each(e["meta-list"],function(s,e){p+='<option value="'+s+'">'+e+"</option>"}),p+="</optgroup>"}),p+="</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_publisher_url">Review Publisher URL</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_date_modified">Review Modified 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+=p,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(p),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(r){saswp_meta_list[e]=r[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,r){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",schema_id:i,schema_type:r,meta_name:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){saswp_meta_fields[n]=a;var r=saswp_fields_html_generator(e,i,n,t,a);r&&(jQuery(".saswp-"+t+'-section[data-id="'+i+'"]').append(r),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 r="";switch((i.name.indexOf("published_date")>-1||i.name.indexOf("date_created")>-1||i.name.indexOf("created_date")>-1||i.name.indexOf("modified_date")>-1||i.name.indexOf("date_published")>-1||i.name.indexOf("date_modified")>-1)&&(r="saswp-datepicker-picker"),i.type){case"number":case"text":n+="<tr><th>"+i.label+'</th><td><input class="'+r+'" 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 p="";jQuery.each(i.options,function(s,e){p+='<option value="'+s+'">'+e+"</option>"}),n+="<tr><th>"+i.label+'</th><td><select id="'+i.name+"_"+s+"_"+e+'" name="'+a+e+"["+s+"]["+i.name+']">'+p+"</select></td></tr>";break;case"media":n+="<tr><th>"+i.label+'</th><td><fieldset><input style="width:80%" type="text" id="'+i.name+"_"+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){rmv_boolean?e.is_remove=!0:e.is_remove=!1,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 e>0&&(a+='<div class="cancel-btn">',a+="<span>"+jQuery("#saswp-plaftorm-list option[value="+s+"]").text()+"</span><span>("+e+")</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>"),a}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"),r=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,r=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( -"+r+"px, 0px)"})}()}),r.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),r=e.offset().left,p=n.offset().left-r;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( -"+p+"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,r=1,p="";jQuery.each(saswp_collection[e],function(s,e){p=e.saswp_review_location_id,a=e.saswp_review_platform_icon,"Self"==(t=e.saswp_review_platform_name)&&(t=saswp_localize_data.trans_self),n+=parseFloat(e.saswp_review_rating),i++}),n>0&&(r=n/i),saswp_collection[e]&&(s+="<li>",s+='<a target="_blank" href="'+p+'">',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+=r.toFixed(1),s+="</span>",s+='<span class="saswp-stars">',s+=saswp_create_rating_html_by_value(r.toString()),s+="</span>",s+="</div>",s+='<span class="saswp-r3-brv">',s+=saswp_localize_data.trans_based_on+" "+i+" "+saswp_localize_data.trans_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_collection_total_reviews_id(){if(saswp_total_collection.length>0){saswp_total_reviews=[],jQuery.each(saswp_total_collection,function(s,e){saswp_total_reviews.push(e.saswp_review_id)});var s='<input type="hidden" id="saswp_total_reviews_list" name="saswp_total_reviews" value="'+JSON.stringify(saswp_total_reviews)+'">';jQuery(".saswp-total-reviews-list").html(""),jQuery(".saswp-total-reviews-list").append(s)}}function saswp_create_collection_grid(s,e,a,t,i){var n="",r="",p=0;if(saswp_total_collection.length>0){p=Math.ceil(saswp_total_collection.length/a),n+='<div class="saswp-r1">';for(var l=1;l<=s;l++)r+=" 1fr";if(s.length>3?n+='<ul style="grid-template-columns:'+r+';overflow-y: scroll;">':n+='<ul style="grid-template-columns:'+r+';overflow-y:hidden;">',saswp_total_collection){var c=saswp_total_collection;e&&a>0&&(c=c.slice(t,i)),jQuery.each(c,function(s,e){var a=saswp_convert_datetostring(e.saswp_review_date);n+="<li>",n+='<div class="saswp-rc">',n+='<div class="saswp-rc-a">',n+='<div class="saswp-r1-aimg">',n+='<img src="'+e.saswp_reviewer_image+'" width="56" height="56"/>',n+="</div>",n+='<div class="saswp-rc-nm">',n+='<a href="#">'+e.saswp_reviewer_name+"</a>",n+=saswp_create_rating_html_by_value(e.saswp_review_rating),a.date&&(n+='<span class="saswp-rc-dt">'+a.date+"</span>"),n+="</div>",n+="</div>",n+='<div class="saswp-rc-lg">',n+='<img src="'+e.saswp_review_platform_icon+'"/>',n+="</div>",n+="</div>",n+='<div class="saswp-rc-cnt">',n+="<p>"+e.saswp_review_text+"</p>",n+="</div>",e.is_remove&&(n+='<span platform-id="'+e.saswp_review_platform+'" data-id="'+e.saswp_review_id+'" class="dashicons dashicons-remove saswp-remove-coll-rv"></span>'),n+="</li>"})}if(n+="</ul>",p>0&&e){n+='<div class="saswp-grid-pagination">',n+='<a class="saswp-grid-page" data-id="1" href="#">&laquo;</a>';var o=parseInt(saswp_grid_page)-3,_=parseInt(saswp_grid_page)+3;for(l=1;l<=p;l++){var w="saswp_hide";l>o&&l<_&&(w=""),n+=l==saswp_grid_page?'<a class="active saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>":'<a class="saswp-grid-page '+w+'" data-id="'+l+'" href="#">'+l+"</a>"}n+='<a class="saswp-grid-page" data-id="'+p+'" href="#">&raquo;</a>',n+="</div>"}n+="</div>"}jQuery(".saswp-collection-preview").html(""),jQuery(".saswp-collection-preview").append(n)}function saswp_create_collection_by_design(s,e,a,t,i,n,r,p,l,c,o){switch(s){case"grid":saswp_create_collection_grid(e,p,l,c,o);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,r)}}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(),n=parseInt(jQuery("#saswp-coll-per-page").val()),r=!1,p=0,l=n;if(jQuery("#saswp-coll-pagination").is(":checked")){r=!0;saswp_grid_page>0&&(l=saswp_grid_page*n),p=l-n}if(jQuery("#saswp_gallery_arrow").is(":checked"))var c=!0;else c=!1;if(jQuery("#saswp_gallery_dots").is(":checked"))var o=!0;else o=!1;saswp_create_total_collection(),saswp_collection_sorting(s),saswp_collection_total_reviews_id(),saswp_create_collection_by_design(e,a,t,c,o,i,i,r,n,p,l)}function saswp_get_collection_data(s,e,a=null,t=null,i=null){jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:s,reviews_ids:i,review_id:t,platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){s.status&&(jQuery.each(s.message,function(s,e){var a=JSON.parse(e.saswp_review_platform),t=[];if(t.push(e),void 0===saswp_collection[a])saswp_collection[a]=t;else{var i=[...new Set([...saswp_collection[a],...t])];saswp_collection[a]=i}}),saswp_on_collection_design_change()),a&&a.removeClass("updating-message")},"json")}function saswpIsEmail(s){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s)}function saswp_select2(){var s=jQuery(".saswp-select2");s.length>0&&jQuery(s).each(function(s,e){var a=jQuery(this),t=jQuery("option[value]:not([selected])",a),i=[];t.each(function(){var s=jQuery(this);i.push({id:s.attr("value"),text:s.text()})});var n=a.attr("data-type"),r=ajaxurl+"?action=saswp_get_select2_data&saswp_security_nonce="+saswp_localize_data.saswp_security_nonce+"&type="+n;a.select2({ajax:{url:r,delay:250,cache:!1},minimumInputLength:2,minimumResultsForSearch:50,dataAdapter:jQuery.fn.select2.amd.require("select2/data/extended-ajax"),defaultResults:i})})}
admin_section/js/main-script.js CHANGED
@@ -548,10 +548,14 @@ jQuery(document).ready(function($){
548
  }
549
  $(this).siblings().removeClass("nav-tab-active");
550
  $(this).addClass("nav-tab-active");
 
 
 
551
  $(".form-wrap").find(".saswp-"+currentTab).siblings().hide();
552
  $(".form-wrap .saswp-"+currentTab).show();
553
  window.history.pushState("", "", href);
554
  return false;
 
555
  });
556
  $(".saswp-schame-type-select").select2();
557
  $(".saswp-schame-type-select").change(function(e){
@@ -637,6 +641,7 @@ jQuery(document).ready(function($){
637
  $(".saswp-schema-modify-section").show();
638
  }
639
  saswp_enable_rating_review();
 
640
 
641
  $(".saswp-manual-modification").html('');
642
  $('.saswp-static-container .spinner').addClass('is-active');
@@ -746,6 +751,7 @@ jQuery(document).ready(function($){
746
  }
747
 
748
  saswp_enable_rating_review();
 
749
  }).change();
750
 
751
 
@@ -1141,6 +1147,17 @@ jQuery(document).ready(function($){
1141
  $("#saswp_default_review").val(0);
1142
  }
1143
  break;
 
 
 
 
 
 
 
 
 
 
 
1144
 
1145
  case 'saswp-extra-checkbox':
1146
  saswp_compatibliy_notes(current, id);
@@ -1150,7 +1167,16 @@ jQuery(document).ready(function($){
1150
  $("#saswp-extra").val(0);
1151
  }
1152
  break;
1153
-
 
 
 
 
 
 
 
 
 
1154
  case 'saswp-soledad-checkbox':
1155
  saswp_compatibliy_notes(current, id);
1156
  if ($(this).is(':checked')) {
@@ -2401,6 +2427,7 @@ jQuery(document).ready(function($){
2401
  saswp_schema_datepicker();
2402
  saswp_schema_timepicker();
2403
  saswp_enable_rating_review();
 
2404
  saswp_item_reviewed_call();
2405
 
2406
  });
@@ -2528,11 +2555,15 @@ jQuery(document).ready(function($){
2528
 
2529
  $(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "inactive");
2530
  $(".saswp_license_activation[add-on='" + add_on + "']").text("Deactivate");
2531
-
2532
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text('Activated');
2533
 
2534
  $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "green");
2535
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
 
 
 
 
2536
 
2537
  }else{
2538
 
@@ -2545,6 +2576,10 @@ jQuery(document).ready(function($){
2545
 
2546
  $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "red");
2547
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
 
 
 
 
2548
  }
2549
  current.removeClass('updating-message');
2550
  },
@@ -2560,6 +2595,262 @@ jQuery(document).ready(function($){
2560
 
2561
  });
2562
  //Licensing jquery ends here
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2563
  //query form send starts here
2564
 
2565
  $(".saswp-send-query").on("click", function(e){
@@ -2796,6 +3087,7 @@ jQuery(document).ready(function($){
2796
  $(this).addClass('selected');
2797
  $(this).parent().addClass('selected');
2798
  saswp_enable_rating_review();
 
2799
  });
2800
 
2801
 
@@ -3086,7 +3378,12 @@ jQuery(document).ready(function($){
3086
  }
3087
  });
3088
  saswpCustomSelect2();
3089
- saswp_enable_rating_review();
 
 
 
 
 
3090
 
3091
  //custom fields modify schema ends here
3092
 
548
  }
549
  $(this).siblings().removeClass("nav-tab-active");
550
  $(this).addClass("nav-tab-active");
551
+ if(currentTab=="premium_features" && jQuery(this).attr('data-extmgr')=='yes'){
552
+ window.location.href = "edit.php?post_type=saswp&page=saswp-extension-manager";
553
+ }else{
554
  $(".form-wrap").find(".saswp-"+currentTab).siblings().hide();
555
  $(".form-wrap .saswp-"+currentTab).show();
556
  window.history.pushState("", "", href);
557
  return false;
558
+ }
559
  });
560
  $(".saswp-schame-type-select").select2();
561
  $(".saswp-schame-type-select").change(function(e){
641
  $(".saswp-schema-modify-section").show();
642
  }
643
  saswp_enable_rating_review();
644
+ saswp_enable_rating_automate();
645
 
646
  $(".saswp-manual-modification").html('');
647
  $('.saswp-static-container .spinner').addClass('is-active');
751
  }
752
 
753
  saswp_enable_rating_review();
754
+ saswp_enable_rating_automate();
755
  }).change();
756
 
757
 
1147
  $("#saswp_default_review").val(0);
1148
  }
1149
  break;
1150
+
1151
+ case 'saswp-single-price-product-checkbox':
1152
+ saswp_compatibliy_notes(current, id);
1153
+ if ($(this).is(':checked')) {
1154
+ $("#saswp-single-price-product").val(1);
1155
+ $(".saswp-single-price-opt").parent().parent().show();
1156
+ }else{
1157
+ $("#saswp-single-price-product").val(0);
1158
+ $(".saswp-single-price-opt").parent().parent().hide();
1159
+ }
1160
+ break;
1161
 
1162
  case 'saswp-extra-checkbox':
1163
  saswp_compatibliy_notes(current, id);
1167
  $("#saswp-extra").val(0);
1168
  }
1169
  break;
1170
+
1171
+ case 'saswp-enfold-checkbox':
1172
+ saswp_compatibliy_notes(current, id);
1173
+ if ($(this).is(':checked')) {
1174
+ $("#saswp-enfold").val(1);
1175
+ }else{
1176
+ $("#saswp-enfold").val(0);
1177
+ }
1178
+ break;
1179
+
1180
  case 'saswp-soledad-checkbox':
1181
  saswp_compatibliy_notes(current, id);
1182
  if ($(this).is(':checked')) {
2427
  saswp_schema_datepicker();
2428
  saswp_schema_timepicker();
2429
  saswp_enable_rating_review();
2430
+ saswp_enable_rating_automate();
2431
  saswp_item_reviewed_call();
2432
 
2433
  });
2555
 
2556
  $(".saswp_license_activation[add-on='" + add_on + "']").attr("license-status", "inactive");
2557
  $(".saswp_license_activation[add-on='" + add_on + "']").text("Deactivate");
2558
+ $("span.addon-activated_reviews").css({ color: "green", "margin-left": "8px", "font-weight": "400" });
2559
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text('Activated');
2560
 
2561
  $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "green");
2562
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
2563
+
2564
+ $("span.inactive_status_" + add_on + "").text('Active');
2565
+ $("span.inactive_status_" + add_on + "").css("color", "green");
2566
+ $("span.inactive_status_" + add_on + "").removeClass("inactive_status_" + add_on + "").addClass("addon-activated_" + add_on + "");
2567
 
2568
  }else{
2569
 
2576
 
2577
  $(".saswp_license_status_msg[add-on='" + add_on + "']").css("color", "red");
2578
  $(".saswp_license_status_msg[add-on='" + add_on + "']").text(response['message']);
2579
+ $("span.addon-activated_" + add_on + "").text('Inactive');
2580
+ $("span.addon-activated_" + add_on + "").css("color", "#bebfc0");
2581
+ $("span.addon-activated_" + add_on + "").removeClass("addon-activated_" + add_on + "").addClass("inactive_status_" + add_on + "");
2582
+ $("span.limit_span").css("display", "none");
2583
  }
2584
  current.removeClass('updating-message');
2585
  },
2595
 
2596
  });
2597
  //Licensing jquery ends here
2598
+
2599
+ // Start Refreshing single addon
2600
+
2601
+ jQuery(document).on("click",".user_refresh_single_addon", function(e){
2602
+
2603
+ var currentThis = jQuery(this);
2604
+ e.preventDefault();
2605
+ var license_status = 'active';
2606
+ var add_on = currentThis.attr('add-on');
2607
+ var remaining_days_org = currentThis.attr('remaining_days_org');
2608
+ var license_key = jQuery("#"+add_on+"_addon_license_key").val();
2609
+ document.getElementById("user_refresh_" + add_on + "").classList.add("spin")
2610
+
2611
+ var today = new Date();
2612
+ function saswpreadCookie(name) {
2613
+ var nameEQ = name + "=";
2614
+ var ca = document.cookie.split(";");
2615
+ for(var i=0;i < ca.length;i++) {
2616
+ var c = ca[i];
2617
+ while (c.charAt(0)==" ") c = c.substring(1,c.length);
2618
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
2619
+ }
2620
+ return null;
2621
+ }
2622
+ var previous_check = saswpreadCookie('saswp_addon_refresh_check');
2623
+
2624
+ previous_check = new Date(previous_check);
2625
+ var diffDays = -1;
2626
+ if( typeof previous_check != undefined){
2627
+ var diffTime = Math.abs(today.getTime() - previous_check.getTime());
2628
+ var diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
2629
+ }
2630
+ var expireDate = new Date(remaining_days_org);
2631
+ var diffTime = Math.abs( expireDate.getTime()-today.getTime() );
2632
+ var expireDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
2633
+ if( diffDays==-1 || diffDays>1 || expireDays<1 ){
2634
+ document.cookie = "saswp_addon_refresh_check="+today;jQuery.ajax({
2635
+ type: "POST",
2636
+ url:ajaxurl,
2637
+ dataType: "json",
2638
+ data:{action:"saswp_license_status_check",license_key:license_key,license_status:license_status, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
2639
+ success:function(response){
2640
+ jQuery("#"+add_on+"_addon_license_key_status").val(response['status']);
2641
+ document.getElementById("user_refresh_"+add_on+"").classList.remove("spin")
2642
+ currentThis.removeClass('updating-message');
2643
+ },
2644
+ error: function(response){
2645
+ console.log(response);
2646
+ }
2647
+ })
2648
+ }
2649
+ else{
2650
+ setTimeout( function() {
2651
+ jQuery(".dashicons").removeClass( 'spin' );}, 0 );
2652
+ previous_check = Math.abs(previous_check.getDate()+1)+'/'+Math.abs(previous_check.getMonth()+1) +'/'+previous_check.getFullYear()+' '+previous_check.getHours()+':'+previous_check.getMinutes()+':'+previous_check.getSeconds();
2653
+ alert('Please try after '+ previous_check);
2654
+ }
2655
+
2656
+ });
2657
+
2658
+ // End Refreshing single addon
2659
+
2660
+ // Start Refresh and check if user has done renewal in between 0-7 Days
2661
+
2662
+ var ap = document.getElementById("activated-plugins-days_remaining");
2663
+ if (ap) {
2664
+ var remainingdays = ap.getAttribute("days_remaining");
2665
+ }
2666
+ // console.log(remainingdays)
2667
+ if ( remainingdays >= 0 && remainingdays <= 7 ){
2668
+ setTimeout(function () {
2669
+ jQuery("#refresh_license_icon_top-").trigger("click");
2670
+ }, 0);
2671
+ }
2672
+ jQuery(document).on("click", "#refresh_license_icon_top-", function (a) {
2673
+ document.getElementById("refresh_license_icon_top").classList.add("spin"), jQuery(this);
2674
+ var current = $(this);
2675
+ var licensestatusinternal = $(this).attr("licensestatusinternal");
2676
+ var add_on = $(this).attr('add-on');
2677
+ // var license_key = $("#"+add_on+"_addon_license_key").val();
2678
+ var data_attr = $(this).attr("data-attr");
2679
+ var add_onname = $(this).attr("add-onname");
2680
+ var license_key = $("#"+add_on+"_addon_license_key").val();
2681
+ var license_status = 'active';
2682
+ if(add_on){
2683
+
2684
+ $.ajax({type: "POST",
2685
+ url:ajaxurl,
2686
+ dataType: "json",
2687
+ data:{action:"saswp_license_status_check",license_key:license_key,license_status:licensestatusinternal, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
2688
+ success:function(response){
2689
+ var addon_value = $("#" + add_on + "_addon_license_key_status").val()
2690
+ if ( addon_value == 'active' ) {
2691
+ document.getElementById("refresh_license_icon_top").classList.remove("spin");
2692
+ var remaining_days = response.days_remaining;
2693
+ if ( remaining_days >= 0 && remaining_days <= 7){
2694
+ $("span.saswp-addon-alert").text("expiring in " + remaining_days + " days ");
2695
+ }
2696
+ }
2697
+ else{
2698
+ var alert = document.getElementsByClassName("saswp-addon-alert");
2699
+ alert[0].style.color = "green";
2700
+ var renewal = document.getElementsByClassName("renewal-license");
2701
+ renewal[0].style.display = "none";
2702
+ document.getElementById("refresh_license_icon_top").classList.remove("spin");
2703
+ $("span.pro_warning").css("display","none");
2704
+ }
2705
+ }
2706
+
2707
+ });
2708
+
2709
+ }else{
2710
+ alert('Please enter value license key');
2711
+ current.removeClass('updating-message');
2712
+ }
2713
+
2714
+ $.ajax({
2715
+ type: "POST",
2716
+ url: ajaxurl,
2717
+ dataType: "json",
2718
+ data: { action: "saswp_license_transient", license_key: license_key, license_key: license_key, add_on: add_on, saswp_security_nonce: saswp_localize_data.saswp_security_nonce },
2719
+ success: function (s) {
2720
+ JSON.parse(s);
2721
+ },
2722
+ });
2723
+
2724
+ });
2725
+
2726
+ // End Refresh and check if user has done renewal in between 0-7 Days
2727
+
2728
+ // Start User manual Refresh to check if user has done renewal in After Key has expired
2729
+
2730
+ var ap = document.getElementById("activated-plugins-days_remaining");
2731
+ if (ap) {
2732
+ var remainingdays = ap.getAttribute("days_remaining");
2733
+ }
2734
+ // console.log(remainingdays)
2735
+ if ( remainingdays >= 0 && remainingdays <= 7 ){
2736
+ setTimeout(function () {
2737
+ jQuery("#user_refresh_expired_addon-").trigger("click");
2738
+ }, 0);
2739
+ }
2740
+ jQuery(document).on("click", "#user_refresh_expired_addon-", function (a) {
2741
+ document.getElementById("user_refresh_expired_addon").classList.add("spin"), jQuery(this);
2742
+ var current = $(this);
2743
+ var licensestatusinternal = $(this).attr("licensestatusinternal");
2744
+ var add_on = $(this).attr('add-on');
2745
+ // var license_key = $("#"+add_on+"_addon_license_key").val();
2746
+ var data_attr = $(this).attr("data-attr");
2747
+ var add_onname = $(this).attr("add-onname");
2748
+ var license_key = $("#"+add_on+"_addon_license_key").val();
2749
+ var license_status = 'active';
2750
+ if(add_on){
2751
+
2752
+ $.ajax({type: "POST",
2753
+ url:ajaxurl,
2754
+ dataType: "json",
2755
+ data:{action:"saswp_license_status_check",license_key:license_key,license_status:licensestatusinternal, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
2756
+ success:function(response){
2757
+ var addon_value = $("#" + add_on + "_addon_license_key_status").val()
2758
+ if ( addon_value == 'active' ) {
2759
+ document.getElementById("user_refresh_expired_addon").classList.remove("spin");
2760
+ var remaining_days = response.days_remaining;
2761
+ if ( remaining_days <0 ){
2762
+ $("span#exp").text("Expired");
2763
+ location.reload();
2764
+ }
2765
+ else if( remaining_days >7){
2766
+ $("span.inner_span").text("");
2767
+ $("span.saswp_addon_inactive").text("");
2768
+ $("span.expiredinner_span").text("Your License is Active");
2769
+ $("span.expiredinner_span").css("color", "green");
2770
+ $(".renewal-license").css("display", "none");
2771
+ $(".saswp_addon_icon").css("display", "none");
2772
+ }
2773
+ }
2774
+ }
2775
+ });
2776
+ }else{
2777
+ alert('Please enter value license key');
2778
+ current.removeClass('updating-message');
2779
+ }
2780
+
2781
+ });
2782
+
2783
+ // End User manual Refresh to check if user has done renewal in After Key has expired
2784
+
2785
+ // Start Auto Refresh and check if user has done renewal After Key has expired
2786
+
2787
+ var ap = document.getElementById("activated-plugins-days_remaining");
2788
+ if (ap) {
2789
+ var remainingdays = ap.getAttribute("days_remaining");
2790
+ }
2791
+
2792
+ setTimeout(function () {
2793
+ jQuery("#refresh_expired_addon-").trigger("click");
2794
+ }, 0);
2795
+
2796
+ jQuery(document).on("click", "#refresh_expired_addon-", function (a) {
2797
+ document.getElementById("refresh_expired_addon").classList.add("spin"), jQuery(this);
2798
+ var current = $(this);
2799
+ var licensestatusinternal = $(this).attr("licensestatusinternal");
2800
+ var add_on = $(this).attr('add-on');
2801
+ var data_attr = $(this).attr("data-attr");
2802
+ var add_onname = $(this).attr("add-onname");
2803
+ var license_key = $("#"+add_on+"_addon_license_key").val();
2804
+ var license_status = 'active';
2805
+ if(add_on){
2806
+
2807
+ $.ajax({type: "POST",
2808
+ url:ajaxurl,
2809
+ dataType: "json",
2810
+ data:{action:"saswp_license_status_check",license_key:license_key,license_status:licensestatusinternal, add_on:add_on, saswp_security_nonce:saswp_localize_data.saswp_security_nonce},
2811
+ success:function(response){
2812
+ var addon_value = $("#" + add_on + "_addon_license_key_status").val()
2813
+ if ( addon_value == 'active' ) {
2814
+ document.getElementById("refresh_expired_addon").classList.remove("spin");
2815
+ var remaining_days = response.days_remaining;
2816
+ if ( remaining_days <0 ){
2817
+ $("span#exp").text("Expired");
2818
+ }
2819
+ else if( remaining_days >7){
2820
+ $("span.inner_span").text("");
2821
+ $("span.saswp_addon_inactive").text("");
2822
+ $("span.expiredinner_span").text("Your License is Active");
2823
+ $("span.expiredinner_span").css("color", "green");
2824
+ $(".renewal-license").css("display", "none");
2825
+ $(".saswp_addon_icon").css("display", "none");
2826
+ }
2827
+ }
2828
+ }
2829
+
2830
+ });
2831
+
2832
+ }else{
2833
+ alert('Please enter value license key');
2834
+ current.removeClass('updating-message');
2835
+ }
2836
+
2837
+ $.ajax({
2838
+ type: "POST",
2839
+ url: ajaxurl,
2840
+ dataType: "json",
2841
+ data: { action: "saswp_expired_license_transient", license_key: license_key, license_key: license_key, add_on: add_on, saswp_security_nonce: saswp_localize_data.saswp_security_nonce },
2842
+ success: function (s) {
2843
+ JSON.parse(s);
2844
+ },
2845
+ });
2846
+
2847
+ });
2848
+
2849
+ // End Auto Refresh and check if user has done renewal After Key has expired
2850
+
2851
+
2852
+
2853
+
2854
  //query form send starts here
2855
 
2856
  $(".saswp-send-query").on("click", function(e){
3087
  $(this).addClass('selected');
3088
  $(this).parent().addClass('selected');
3089
  saswp_enable_rating_review();
3090
+ saswp_enable_rating_automate();
3091
  });
3092
 
3093
 
3378
  }
3379
  });
3380
  saswpCustomSelect2();
3381
+ saswp_enable_rating_review();
3382
+
3383
+ saswp_enable_rating_automate();
3384
+
3385
+ saswp_enable_rating_automate();
3386
+
3387
 
3388
  //custom fields modify schema ends here
3389
 
admin_section/js/main-script.min.js CHANGED
@@ -1 +1 @@
1
- var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function(s){if(s(document).on("click","#saswp_loc_display_on_front",function(){s(this).is(":checked")?s(".saswp-front-location-inst").removeClass("saswp_hide"):s(".saswp-front-location-inst").addClass("saswp_hide")}),s(document).on("change",".saswp-collection-where",function(){s(this);var a=s(this).val();a&&function(a){a&&s.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:a,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(a){if(a){var e="";s.each(a,function(s,a){e+='<option value="'+a.id+'">'+a.text+"</option>"}),s(".saswp-collection-where-data").html(""),s(".saswp-collection-where-data").append(e),saswp_select2()}},error:function(s){console.log("Failed Ajax Request"),console.log(s)}})}(a)}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?(s(".saswp-coll-where").addClass("saswp_hide"),s("#saswp-motivatebox").css("display","block")):(s(".saswp-coll-where").removeClass("saswp_hide"),s("#saswp-motivatebox").css("display","none"))}).change(),s(document).on("click",".saswp-dismiss-notices",function(){var a=s(this),e=s(this).attr("notice-type");e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status&&a.parent().parent().hide()},error:function(s){console.log(s)}})}),saswp_select2(),s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show(saswp_localize_data.translable_txt.attach_review,"#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var a;a=parseInt(s(this).parent().attr("data-id"));var e=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==e&&saswp_attached_rv.push(a),"collection"==e&&saswp_attached_col.push(a)):("review"==e&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(a),1),"collection"==e&&saswp_attached_col.splice(saswp_attached_col.indexOf(a),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,c="";t>0&&(c+=t+" Reviews, "),i>0&&(c+=i+" Collection"),c||(c=0),s(".saswp-attached-rv-count").text("Attached "+c),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(a){var e=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+e+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),a.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:e,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){if("t"==a.status){var t="";a.result&&(s.each(a.result,function(s,a){var i="";"review"==e&&saswp_attached_rv.includes(parseInt(a.saswp_review_id))&&(i="checked"),"collection"==e&&saswp_attached_col.includes(parseInt(a.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+e+'" data-id="'+a.saswp_review_id+'">',"review"==e&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+a.saswp_reviewer_name+" ( Rating - "+a.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+a.saswp_review_platform_icon+'"/></span></strong>'),"collection"==e&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+a.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+e+"]").append(t)),a.message&&(s(".saswp-rv-not-found[data-type="+e+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+e+"]").addClass("saswp_hide"))}else alert(a.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(a){a.preventDefault(),s(".saswp-modify-container").slideToggle("300");var e=s("#saswp_enable_custom_field"),t=e.val();e.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(a){var e="";e=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">',a.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>'+saswp_localize_data.translable_txt.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>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+e+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.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 a=s(this),e="free";a.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(),c=s("#saswp_google_place_api_key").val(),p=s("#reviews_addon_license_key").val(),o=s("#reviews_addon_license_key_status").val();if("premium"==(e=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert(saswp_localize_data.translable_txt.blocks_zero),a.removeClass("updating-message"),!1;if(0!=i%10)return a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),a.removeClass("updating-message"),!1}""!=t&&(p||c)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:o,reviews_api:p,location:t,blocks:i,g_api:c,premium_status:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status?(a.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.success),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","green")):(a.parent().parent().find(".saswp-rv-fetched-msg").text(s.message),a.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b")),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(""==t&&alert(saswp_localize_data.translable_txt.enter_place_id),""==c&&alert(saswp_localize_data.translable_txt.enter_api_key),""==p&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),a.removeClass("updating-message"))}),saswp_localize_data.do_tour){var a,e="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";e+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</p>",e+='<style type="text/css">',e+=".wp-pointer-buttons{ padding:0; overflow: hidden; }",e+=".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} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",e+="</style>",e+='<div id="saswp_mc_embed_signup">',e+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',e+='<div id="saswp_mc_embed_signup_scroll">',e+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',e+='<input type="text" name="saswp_subscriber_name" class="form-control" placeholder="Name" hidden value="'+saswp_localize_data.current_user_name+'" style="display:none">',e+='<input type="text" value="'+saswp_localize_data.current_user_email+'" name="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',e+='<input type="text" name="saswp_subscriber_website" class="form-control" placeholder="Website" hidden style=" display:none; width: 168px; padding: 6px 5px;" value="'+saswp_localize_data.get_home_url+'">',e+='<input type="hidden" name="ml-submit" value="1" />',e+="</div>",e+='<div id="mce-responses">',e+="</div>",e+='<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a631df13442f19caede5a5baf_c9a71edce6" tabindex="-1" value=""></div>',e+='<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;">',e+='<p id="saswp-news-letter-status"></p>',e+="</div>",e+="</form>",e+="</div>",s(document).on("submit","#saswp-news-letter-form",function(a){a.preventDefault();var e=s(this),t=e.find('input[name="saswp_subscriber_name"]').val(),i=e.find('input[name="saswp_subscriber_email"]').val();website=e.find('input[name="saswp_subscriber_website"]').val(),s.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:t,email:i,website:website},function(a){a?"Some fields are missing."==a?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid email address."==a?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==a?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Already subscribed."==a?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):(s("#saswp-news-letter-status").text("You're subscribed!"),s("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var t={content:e,position:{edge:"top",align:"left"}};a=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,a){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(){a.element.pointer("close")}),button_2.on("click",function(){setTimeout(function(){a.element.pointer("close")},3e3)}),button},close:function(){s.post(saswp_localize_data.ajax_url,{pointer:"saswp_subscribe_pointer",action:"dismiss-wp-pointer"})},show:function(s,a){a.pointer.css({left:"170px",top:"160px"})}})).position&&t.position.defer_loading?s(window).bind("load.wp-pointers",a):a()}s(".saswp-tabs a").click(function(a){var e=s(this).attr("href"),t=getParameterByName("tab",e);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("","",e),!1}),s(".saswp-schame-type-select").select2(),s(".saswp-schame-type-select").change(function(a){a.preventDefault(),s(".saswp-custom-fields-table").html("");var e=s(this).val();s(".saswp-option-table-class tr").each(function(a,e){a>0&&s(this).hide()}),"TechArticle"==e||"Article"==e||"Blogposting"==e||"NewsArticle"==e||"WebPage"==e?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==e||"Course"==e||"Organization"==e||"CreativeWorkSeries"==e||"MobileApplication"==e||"ImageObject"==e||"HowTo"==e||"MusicPlaylist"==e||"MusicAlbum"==e||"Recipe"==e||"TVSeries"==e||"SoftwareApplication"==e||"Event"==e||"VideoGame"==e||"Service"==e||"AudioObject"==e||"VideoObject"==e||"local_business"==e||"Product"==e||"Review"==e?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==e?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==e&&(s("#saswp_location_meta_box").removeClass("saswp_hide"),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"==e&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==e&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==e&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==e?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),s(".saswp-manual-modification").html(""),s(".saswp-static-container .spinner").addClass("is-active"),s.get(ajaxurl,{action:"saswp_get_manual_fields_on_ajax",schema_type:e,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){s(".saswp-static-container .spinner").removeClass("is-active"),s(".saswp-manual-modification").append(a),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_item_reviewed_call()}),"HowTo"==e||"local_business"==e||"FAQ"==e?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").select2(),s(".saswp-local-sub-type-2").select2(),s("#saswp_business_type").change(function(){var a=s(this).val(),e=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(a,e){a>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==e||"Article"==e||"Blogposting"==e||"NewsArticle"==e||"WebPage"==e?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==e||"Course"==e||"Organization"==e||"CreativeWorkSeries"==e||"MobileApplication"==e||"ImageObject"==e||"HowTo"==e||"MusicPlaylist"==e||"MusicAlbum"==e||"Recipe"==e||"TVSeries"==e||"SoftwareApplication"==e||"Event"==e||"VideoGame"==e||"Service"==e||"AudioObject"==e||"VideoObject"==e||"local_business"==e||"Product"==e||"Review"==e?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==e?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==e&&(s(".saswp-"+a+"-tr").show(),s(".saswp-business-text-field-tr").show(),s(".saswp-"+a+"-tr").find("select").attr("disabled",!1),s("#saswp_location_meta_box").removeClass("saswp_hide")),"Review"==e&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==e?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==e&&(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 a=s(this).attr("id"),e=s(this);switch(a){case"saswp-the-seo-framework-checkbox":saswp_compatibliy_notes(e,a),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(e,a),s(this).is(":checked")?s("#saswp-seo-press").val(1):s("#saswp-seo-press").val(0);break;case"saswp-aiosp-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-aiosp").val(1):s("#saswp-aiosp").val(0);break;case"saswp-smart-crawl-checkbox":saswp_compatibliy_notes(e,a),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(e,a),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(e,a),s(this).is(":checked")?s("#saswp-wp-recipe-maker").val(1):s("#saswp-wp-recipe-maker").val(0);break;case"saswp-wpzoom-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpzoom").val(1):s("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-yotpo").val(1):s("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ryviu").val(1):s("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ultimate-blocks").val(1):s("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-starsrating").val(1):s("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wptastyrecipe").val(1):s("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-recipress").val(1):s("#saswp-recipress").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(e,a),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(e,a),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(e,a),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(e,a),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(e,a),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_remove_cat_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_remove_cat").val(1):s("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?(s("#saswp_breadcrumb_schema").val(1),s("#saswp_breadcrumb_remove_cat").parent().parent().show()):(s("#saswp_breadcrumb_schema").val(0),s("#saswp_breadcrumb_remove_cat").parent().parent().hide());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-stars-rating-checkbox":s(this).is(":checked")?(s(".saswp-stars-post-table").removeClass("saswp_hide"),s(this).parent().parent().next().removeClass("saswp_hide"),s("#saswp-stars-rating").val(1)):(s(this).parent().parent().next().addClass("saswp_hide"),s(".saswp-stars-post-table").addClass("saswp_hide"),s("#saswp-stars-rating").val(0));break;case"saswp-kk-star-raring-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-kk-star-raring").val(1):s("#saswp-kk-star-raring").val(0);break;case"saswp-rmprating-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-rmprating").val(1):s("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ratingform").val(1):s("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpdiscuz").val(1):s("#saswp-wpdiscuz").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp_woocommerce_archive_checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp_woocommerce_archive").val(1):s("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpecommerce").val(1):s("#saswp-wpecommerce").val(0);break;case"saswp-default-review-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp_default_review").val(1):s("#saswp_default_review").val(0);break;case"saswp-extra-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-extra").val(1):s("#saswp-extra").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wpqa-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpqa").val(1):s("#saswp-wpqa").val(0);break;case"saswp-wp-job-manager-checkbox":saswp_compatibliy_notes(e,a),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(e,a),s(this).is(":checked")?s("#saswp-yoast").val(1):s("#saswp-yoast").val(0);break;case"saswp-polylang-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-polylang").val(1):s("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-autolistings").val(1):s("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpml").val(1):s("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-metatagmanager").val(1):s("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-slimseo").val(1):s("#saswp-slimseo").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-video-thumbnails-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-video-thumbnails").val(1):s("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-featured-video-plus").val(1):s("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wp-product-review").val(1):s("#saswp-wp-product-review").val(0);break;case"saswp-the-events-calendar-checkbox":saswp_compatibliy_notes(e,a),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(e,a),s(this).is(":checked")?s("#saswp-homeland").val(1):s("#saswp-homeland").val(0);break;case"saswp-ratency-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ratency").val(1):s("#saswp-ratency").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-myhome").val(1):s("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-realestate-5").val(1):s("#saswp-realestate-5").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-stamped").val(1):s("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-sabaidiscuss").val(1):s("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-geodirectory").val(1):s("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-classipress").val(1):s("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wplms").val(1):s("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(e,a),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(e,a),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-senseilms-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-senseilms").val(1):s("#saswp-senseilms").val(0);break;case"saswp-wp-event-manager-checkbox":saswp_compatibliy_notes(e,a),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(e,a),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(e,a),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(e,a),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(e,a),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(e,a),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(e,a),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(e,a),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(e,a),s(this).is(":checked")?s("#saswp-cooked").val(1):s("#saswp-cooked").val(0);break;case"saswp-flexmlx-compativility-checkbox":saswp_compatibliy_notes(e,a),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(e,a),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(e,a),s(this).is(":checked")?s("#saswp-wppostratings-raring").val(1):s("#saswp-wppostratings-raring").val(0);break;case"saswp-bbpress-checkbox":saswp_compatibliy_notes(e,a),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-full-heading-checkbox":s(this).is(":checked")?s("#saswp-full-heading").val(1):s("#saswp-full-heading").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-image-resizing-checkbox":s(this).is(":checked")?s("#saswp-image-resizing").val(1):s("#saswp-image-resizing").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-brb-checkbox":s(this).is(":checked")?s("#saswp-brb").val(1):s("#saswp-brb").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(e,a),s(this).is(":checked")?s("#saswp-ampforwp").val(1):s("#saswp-ampforwp").val(0);break;case"saswp-wpreviewslider-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpreviewslider").val(1):s("#saswp-wpreviewslider").val(0);break;case"saswp-ampbyautomatic-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ampbyautomatic").val(1):s("#saswp-ampbyautomatic").val(0);break;case"saswp-cmp-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-cmp").val(1):s("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpreviewpro").val(1):s("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-webstories").val(1):s("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var t=s("#saswp-resized-image-folder-checkbox");s(this).is(":checked")?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?(s("#saswp-resized-image-folder").val(1),s("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(t.prop("checked",!1),t.next().text(a.message),t.next().css("color","red"))},error:function(s){t.prop("checked",!1),t.next().text(s),t.next().css("color","red")}}):(s("#saswp-resized-image-folder").val(0),s(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-elementor").val(1):s("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-rannarecipe").val(1):s("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-jetpackrecipe").val(1):s("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-quickandeasyfaq").val(1):s("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ultimatefaqs").val(1):s("#saswp-ultimatefaqs").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-arconixfaq").val(1):s("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-faqconcertina").val(1):s("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpjobmanager").val(1):s("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-simplejobboard").val(1):s("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpjobopenings").val(1):s("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-webfaq10").val(1):s("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpfaqschemamarkup").val(1):s("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-faqschemaforpost").val(1):s("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-masteraccordion").val(1):s("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-easyfaqs").val(1):s("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-accordion").val(1):s("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-html5responsivefaq").val(1):s("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpresponsivefaq").val(1):s("#saswp-wpresponsivefaq").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-easyaccordion").val(1):s("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-helpiefaq").val(1):s("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-mooberrybm").val(1):s("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-novelist").val(1):s("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-accordionfaq").val(1):s("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-schemaforfaqs").val(1):s("#saswp-schemaforfaqs").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-timetable-event-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-timetable-event").val(1):s("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-xo-event-calendar").val(1):s("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-vs-event-list").val(1):s("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-calendarize-it").val(1):s("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-events-schedule").val(1):s("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-woo-event-manager").val(1):s("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-stachethemes-event-calendar").val(1):s("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-all-in-one-event-calendar").val(1):s("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-event-on").val(1):s("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(e,a),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var a=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"==a&&(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"==a&&(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(a){a.preventDefault();var e=s(this),t=e.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var a=i.state().get("selection").first().toJSON();s("#"+t).val(a.url),s("input[data-id='"+t+"_id']").val(a.id),s("input[data-id='"+t+"_height']").val(a.height),s("input[data-id='"+t+"_width']").val(a.width),s("input[data-id='"+t+"_thumbnail']").val(a.url),"sd_default_image_button"===e.attr("id")&&(s("#sd_default_image_width").val(a.width),s("#sd_default_image_height").val(a.height));var c="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&a.height<1200&&(c='<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="'+a.url+'"/><a data-id="'+t+'" href="#" class="saswp_prev_close">X</a></div>'+c)}).open()}),s(document).on("click",".saswp_prev_close",function(a){a.preventDefault();var e=s(this).attr("data-id");s(this).parent().remove(),s("#"+e).val(""),s("input[data-id='"+e+"_id']").val(""),s("input[data-id='"+e+"_height']").val(""),s("input[data-id='"+e+"_width']").val(""),s("input[data-id='"+e+"_thumbnail']").val(""),"sd_default_image"===e&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(a){a.preventDefault();var e=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",tag_ID:saswp_localize_data.tag_ID,schema_id:e,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){s(".saswp-post-specific-wrapper[data-id="+e+"] .saswp-post-specific-setting").after(a),s(".saswp_modify_this_schema_hidden_"+e).val(1),s(".saswp-ps-toggle[schema-id="+e+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+e+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+e+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(a){a.preventDefault();var e=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",tag_ID:saswp_localize_data.tag_ID,schema_id:e,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){t.removeClass("updating-message"),"t"==a.status?(s(".saswp_modify_this_schema_hidden_"+e).val(0),s(".saswp-restore-schema[schema-id="+e+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+e+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+e+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(a){var e=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+e).val();if(s(this).is(":checked")){var c=0;s(".saswp-ps-toggle[schema-id="+e+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+e+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+e+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+e+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+e+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+e+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+e+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+e+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+e+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+e+"]").parent().addClass("saswp_hide"));c=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:c,schema_id:e,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(a){a.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(a){a.preventDefault();var e=s(this);e.addClass("updating-message");var t=s(this).attr("license-status"),i=s(this).attr("add-on"),c=s("#"+i+"_addon_license_key").val();t&&i&&c?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){s("#"+i+"_addon_license_key_status").val(a.status),"active"==a.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(a.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(a.message)),e.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),e.removeClass("updating-message"))}),s(".saswp-send-query").on("click",function(a){a.preventDefault();var e=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();""!=s.trim(e)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:e,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(a){"t"==a.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(e)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(e)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(a){a.preventDefault();var e=s(this);e.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(a){"t"==a.status?(s(e).parent().find(".saswp-imported-message").text(a.message),s(e).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(e).parent().find(".saswp-imported-message").addClass("saswp-error"),s(e).parent().find(".saswp-imported-message").text(a.message)),e.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(a){a.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(a){a.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){"t"==a.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(a){a.preventDefault();var e=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(a){if("t"==a.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=e.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(a.result,function(s,a){i+='<option value="'+s+'">'+a+"</option>"}),i+="</select></td>",i+="</tr>",e.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(a){a.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(a){a.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(a){a.preventDefault();s(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),s(document).on("click",".saswp-remove-review-item",function(a){a.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(a){a.preventDefault();var e=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(a,t){""==s(t).val()?e+=parseFloat(0):e+=parseFloat(s(t).val())});var i=e/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var a=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==a&&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(a){a.preventDefault();var e=s(this);if(e.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)),e.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(a){a.preventDefault();var e=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+e).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();var i=window.location.hash;if("#saswp-default-container"==i?s(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==i?s(".saswp-global-container:eq(1)").show():s(".saswp-global-container:first").show(),s("#saswp-global-tabs a").click(function(){var a=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("#"+a).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 a=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("#"+a).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 a=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("#"+a).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 a="text",e=s(this).parent().parent("tr"),t=s(this).val();-1==t.indexOf("_image")&&-1==t.indexOf("_logo")||(a="image");var i=s(this).parent().parent("tr").find("td:eq(1)");saswp_get_meta_list(null,a,null,i,t,e)}),s(document).on("click",".saswp-skip-button",function(a){a.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(a){a.preventDefault();var e=s(this);e.addClass("updating-message");var t=s(this).attr("data-id"),i=s(this).attr("fields_type"),c=s(this).attr("div_type"),p=s(this).attr("itemlist_sub_type"),o=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div").length,l=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div:nth-child("+o+")").attr("data-id");(l=++l)||(l=0),saswp_get_post_specific_schema_fields(e,l,i,c,t,i+"_",p)}),s(document).on("click",".saswp-table-close",function(){s(this).parent().remove()}),s(document).on("click",".saswp-rmv-modify_row",function(a){a.preventDefault(),s(this).parent().parent().remove()}),s(document).on("change",".saswp-custom-meta-list",function(){var a=s(this),e=s("select#schema_type option:selected").val(),t=s(this).val(),i=s(this).parent().parent("tr").find(".saswp-custom-fields-name").val(),c="",p=e.toLowerCase()+"_"+i,o="saswp_fixed_image["+i+"]";"manual_text"==t?(c+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',c+='<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(c),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(c+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),a.parent().parent("tr").find("td:gt(1)").remove(),a.parent().parent("tr").append(c),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,c+=saswp_taxonomy_term_html(s,i),a.parent().parent("tr").find("td:gt(1)").remove(),a.parent().parent("tr").append(c),saswpCustomSelect2())},"json"):"custom_field"==t?(c+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',c+="</select></td>",c+='<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(c),saswpCustomSelect2()):"fixed_image"==t?(c+="<td>",c+="<fieldset>",c+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',c+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+o+'[height]" id="'+p+'_height" value="">',c+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+o+'[width]" id="'+p+'_width" value="">',c+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+o+'[thumbnail]" id="'+p+'_thumbnail" value="">',c+='<div class="saswp_image_div_'+p+'">',c+="</div>",c+="</fieldset>",c+="</td>",c+='<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(c),saswpCustomSelect2()):(c+="<td></td>",c+='<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(c),saswpCustomSelect2())}),s(document).on("change",".saswp-item-reivewed-list",function(){s(".saswp-custom-fields-table").html(""),saswp_meta_list_fields=[];var a=s(this),e=s("select#schema_type option:selected").val();saswp_item_reviewed_ajax(e,a,"manual")}),s(document).on("click",".saswp-add-custom-fields",function(){var a=s(this);a.addClass("updating-message");var e=s("select#schema_type option:selected").val(),t="",i=null;"Review"==e&&(t=s("select.saswp-item-reivewed-list option:selected").val(),i="saswp_review_name");var c=s("#post_ID").val();""!=e&&(saswp_meta_list_fields[e]?saswp_get_meta_list(a,"text",saswp_meta_list_fields[e],null,i,null):s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_get_schema_type_fields",post_id:c,schema_type:e,schema_subtype:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){saswp_meta_list_fields[e]=s,saswp_get_meta_list(a,"text",saswp_meta_list_fields[e],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 a=s("#saswp_google_place_id").val(),e=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=a&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:a,language:e,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var c='<div class="saswp-custom-post-tab">';c+='<div style="display:none;" id="saswp-accept-reviews-popup">',c+='<div class="saswp-accept-rv-container">',c+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",c+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',c+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',c+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',c+="</div>",c+="</div>",c+='<h2 class="nav-tab-wrapper">',c+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',c+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',c+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',c+="</h2>",c+="</div>",jQuery(jQuery(".wrap")).prepend(c)}jQuery(document).on("click",".saswp-clear-images",function(a){a.preventDefault();var e=s(this);1==confirm("Are you sure? It will remove all the resized images")&&(e.addClass("updating-message"),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){e.removeClass("updating-message"),"t"!=s.status&&alert("something went wrong")},error:function(s){console.log(s)}}))}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&s(".saswp-rating-div").rateYo({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(a,e){s(this).next().next().val(a)}}).on("rateyo.change",function(a,e){var t=e.rating;s(this).next().text(t)}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var a=s(this);a.parent().find(".saswp-phone-validation").remove();var e=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(e)?a.parent().find(".saswp-phone-validation").remove():a.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-add-rv-btn",function(){s(".saswp-dynamic-platforms").toggle()}),s(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var s="";s+='<div class="saswp-add-dynamic-section">',s+='<div class="saswp-add-dynamic-btn">',s+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',s+="</div>",s+='<div class="saswp-dynamic-platforms" style="display:none;">',s+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",s+="</div>",s+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(s)}}),s(document).on("change","#saswp_dynamic_platforms",function(){var a=s(this).val();a&&jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:"",platform_id:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(a){if(a.status&&a.message){var e="";if(s.each(a.message,function(s,a){e+='<option value="'+a.saswp_review_id+'">'+a.saswp_reviewer_name+" ( "+a.saswp_review_rating+" ) </option>"}),e){var t="";t+='<select id="saswp_dynamic_reviews_list" class="saswp-select2">',t+=e,t+="</select>",t+='<a class="button button-default saswp-add-single-rv">Add</a>',s("#saswp_dynamic_platforms").nextAll().remove(),s("#saswp_dynamic_platforms").after(t),saswp_select2()}}},"json")}),s(document).on("click",".saswp-add-single-rv",function(a){a.preventDefault();var e=s("#saswp_dynamic_reviews_list").val(),t=s("#saswp_dynamic_platforms").val();e&&saswp_get_collection_data(null,t,null,e,!0)}),s(document).on("click",".saswp-remove-coll-rv",function(){var a=s(this).attr("data-id"),e=s(this).attr("platform-id");if(e){var t=saswp_collection[e].filter(function(s){return s.saswp_review_id!=a});saswp_collection[e]=t,saswp_on_collection_design_change()}}),s(document).on("click",".saswp-grid-page",function(a){a.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(a){a.preventDefault();var e=s(this).attr("platform-id");saswp_collection.splice(e,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var a=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),s(".saswp-rmv-coll-rv").hide(),s(".saswp-add-dynamic-section").hide(),"grid"==a&&(s(".saswp-grid-options").removeClass("saswp_hide"),s(".saswp-rmv-coll-rv").show(),s(".saswp-add-dynamic-section").show()),"gallery"==a&&s(".saswp-slider-options").removeClass("saswp_hide"),"fomo"==a&&(s(".saswp-fomo-options").removeClass("saswp_hide"),s(".saswp-collection-lp").css("height","31px")),"popup"==a&&s(".saswp-collection-lp").css("height","31px"),saswp_on_collection_design_change()}).change(),s(".saswp-add-to-collection").on("click",function(a){a.preventDefault();var e=s(this),t=s("#saswp-plaftorm-list").val(),i=s("#saswp-review-count").val();t&&i>0?(e.addClass("updating-message"),saswp_get_collection_data(i,t,e,null)):alert("Enter Count")});var p,o,l=s("#saswp_total_reviews_list").val();l&&saswp_get_collection_data(null,null,null,null,l),(p=document.createElement("div")).style.cssText="position:absolute; background:black; color:white; padding:4px 6px;z-index:10000;border-radius:2px; font-size:12px;box-shadow:3px 3px 3px rgba(0,0,0,.4);opacity:0;transition:opacity 0.3s",p.innerHTML="Copied!",document.body.appendChild(p);var n=document.getElementById("saswp-motivatebox");n&&n.addEventListener("mouseup",function(s){var a=(s=s||event).target||s.srcElement;"motivate"==a.className&&(!function(s){var a=document.createRange();a.selectNodeContents(s);var e=window.getSelection();e.removeAllRanges(),e.addRange(a)}(a),function(){var s;try{s=document.execCommand("copy")}catch(a){s=!1}return s}()&&function(s){var a=s||event;clearTimeout(o),p.style.left=a.pageX-10+"px",p.style.top=a.pageY+15+"px",p.style.opacity=1,o=setTimeout(function(){p.style.opacity=0},500)}(s))},!1)});
1
+ var saswp_attached_rv=[],saswp_attached_col=[],rmv_boolean=!1,rmv_html="";jQuery(document).ready(function(s){if(s(document).on("click","#saswp_loc_display_on_front",function(){s(this).is(":checked")?s(".saswp-front-location-inst").removeClass("saswp_hide"):s(".saswp-front-location-inst").addClass("saswp_hide")}),s(document).on("change",".saswp-collection-where",function(){s(this);var e=s(this).val();e&&function(e){e&&s.ajax({url:ajaxurl,method:"GET",data:{action:"saswp_get_select2_data",type:e,q:"",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},beforeSend:function(){},success:function(e){if(e){var a="";s.each(e,function(s,e){a+='<option value="'+e.id+'">'+e.text+"</option>"}),s(".saswp-collection-where-data").html(""),s(".saswp-collection-where-data").append(a),saswp_select2()}},error:function(s){console.log("Failed Ajax Request"),console.log(s)}})}(e)}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?(s(".saswp-coll-where").addClass("saswp_hide"),s("#saswp-motivatebox").css("display","block")):(s(".saswp-coll-where").removeClass("saswp_hide"),s("#saswp-motivatebox").css("display","none"))}).change(),s(document).on("click",".saswp-dismiss-notices",function(){var e=s(this),a=s(this).attr("notice-type");a&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_dismiss_notices",notice_type:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){"t"==s.status&&e.parent().parent().hide()},error:function(s){console.log(s)}})}),saswp_select2(),s(".saswp-upgrade-to-pro").parent().attr({href:"https://structured-data-for-wp.com/pricing/",target:"_blank"}),s(document).on("click",".saswp-attach-reviews",function(){s(".saswp-enable-append-reviews").is(":checked")?(tb_show(saswp_localize_data.translable_txt.attach_review,"#TB_inline??width=615&height=400&inlineId=saswp-embed-code-div"),s(document).find("#TB_window").width(600).height(415).css({top:"200px","margin-top":"0px"}),s(".saswp-attached-rv-count").show()):s(".saswp-attached-rv-count").hide()}),s(".close-attached-reviews-popup").on("click",function(){s("#TB_closeWindowButton").trigger("click")}),s("#saswp_attahced_reviews").val()&&(saswp_attached_rv=JSON.parse(s("#saswp_attahced_reviews").val())),s("#saswp_attached_collection").val()&&(saswp_attached_col=JSON.parse(s("#saswp_attached_collection").val())),s(document).on("click",".saswp-attach-rv-checkbox",function(){var e;e=parseInt(s(this).parent().attr("data-id"));var a=s(this).parent().attr("data-type");s(this).is(":checked")?("review"==a&&saswp_attached_rv.push(e),"collection"==a&&saswp_attached_col.push(e)):("review"==a&&saswp_attached_rv.splice(saswp_attached_rv.indexOf(e),1),"collection"==a&&saswp_attached_col.splice(saswp_attached_col.indexOf(e),1));var t=saswp_attached_rv.length,i=saswp_attached_col.length,c="";t>0&&(c+=t+" Reviews, "),i>0&&(c+=i+" Collection"),c||(c=0),s(".saswp-attached-rv-count").text("Attached "+c),s("#saswp_attahced_reviews").val(JSON.stringify(saswp_attached_rv)),s("#saswp_attached_collection").val(JSON.stringify(saswp_attached_col))}),s(".saswp-load-more-rv").on("click",function(e){var a=s(this).attr("data-type"),t=s(".saswp-add-rv-loop[data-type="+a+"]").length,i=t/10+1;s("#saswp-add-rv-automatic .spinner").addClass("is-active"),e.preventDefault(),s.get(ajaxurl,{action:"saswp_get_reviews_on_load",data_type:a,offset:t,paged:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){var t="";e.result&&(s.each(e.result,function(s,e){var i="";"review"==a&&saswp_attached_rv.includes(parseInt(e.saswp_review_id))&&(i="checked"),"collection"==a&&saswp_attached_col.includes(parseInt(e.saswp_review_id))&&(i="checked"),t+='<div class="saswp-add-rv-loop" data-type="'+a+'" data-id="'+e.saswp_review_id+'">',"review"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" ( Rating - "+e.saswp_review_rating+' ) <span class="saswp-g-plus"><img src="'+e.saswp_review_platform_icon+'"/></span></strong>'),"collection"==a&&(t+='<input class="saswp-attach-rv-checkbox" type="checkbox" '+i+"> <strong> "+e.saswp_reviewer_name+" </strong>"),t+="</div>"}),s(".saswp-add-rv-automatic-list[data-type="+a+"]").append(t)),e.message&&(s(".saswp-rv-not-found[data-type="+a+"]").removeClass("saswp_hide"),s(".saswp-load-more-rv[data-type="+a+"]").addClass("saswp_hide"))}else alert(e.message);s("#saswp-add-rv-automatic .spinner").removeClass("is-active")},"json")}),s(".saswp-modify-schema-toggle").click(function(e){e.preventDefault(),s(".saswp-modify-container").slideToggle("300");var a=s("#saswp_enable_custom_field"),t=a.val();a.val("1"===t?"0":"1"),s(".saswp-enable-modify-schema-output").change()}),s(".saswp-enable-itemlist").change(function(){s(this).is(":checked")?(s("#saswp_item_list_tags").show(),s(".saspw-item-list-note").show(),"custom"==s("#saswp_item_list_tags").val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()):(s(".saspw-item-list-note").hide(),s("#saswp_item_list_tags").hide(),s("#saswp_item_list_custom").hide())}),s("#saswp_item_list_tags").change(function(){"custom"==s(this).val()?s("#saswp_item_list_custom").show():s("#saswp_item_list_custom").hide()}),s(document).on("click",".saswp-add-g-location-btn",function(e){var a="";a=s("#saswp_google_place_api_key").length?'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="5" step="5" placeholder="5" disabled="disabled">':'<input class="saswp-g-blocks-field" name="sd_data[saswp_reviews_location_blocks][]" type="number" min="10" step="10" placeholder="10">',e.preventDefault();var t="";(t+='<tr><td style="width:12%;"><strong>'+saswp_localize_data.translable_txt.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>'+saswp_localize_data.translable_txt.reviews+'</strong></td><td style="width:10%;">'+a+'</td><td style="width:10%;"><a class="button button-default saswp-fetch-g-reviews">'+saswp_localize_data.translable_txt.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(),c=s("#saswp_google_place_api_key").val(),p=s("#reviews_addon_license_key").val(),o=s("#reviews_addon_license_key_status").val();if("premium"==(a=s("#saswp_google_place_api_key").length?"free":"premium")){if(!(i>0))return alert(saswp_localize_data.translable_txt.blocks_zero),e.removeClass("updating-message"),!1;if(0!=i%10)return e.parent().parent().find(".saswp-rv-fetched-msg").text(saswp_localize_data.translable_txt.step_in),e.parent().parent().find(".saswp-rv-fetched-msg").css("color","#988f1b"),e.removeClass("updating-message"),!1}""!=t&&(p||c)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_fetch_google_reviews",reviews_api_status:o,reviews_api:p,location:t,blocks:i,g_api:c,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(saswp_localize_data.translable_txt.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(saswp_localize_data.translable_txt.enter_place_id),""==c&&alert(saswp_localize_data.translable_txt.enter_api_key),""==p&&alert(saswp_localize_data.translable_txt.enter_rv_api_key),e.removeClass("updating-message"))}),saswp_localize_data.do_tour){var e,a="<h3>"+saswp_localize_data.translable_txt.using_schema+"</h3>";a+="<p>"+saswp_localize_data.translable_txt.do_you_want+" <b>"+saswp_localize_data.translable_txt.sd_update+"</b> "+saswp_localize_data.translable_txt.before_others+"</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} #saswp_mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }",a+="</style>",a+='<div id="saswp_mc_embed_signup">',a+='<form method="POST" accept-charset="utf-8" id="saswp-news-letter-form">',a+='<div id="saswp_mc_embed_signup_scroll">',a+='<div class="saswp-mc-field-group" style=" margin-left: 15px; width: 195px; float: left;">',a+='<input type="text" name="saswp_subscriber_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="saswp_subscriber_email" class="form-control" placeholder="Email*" style=" width: 180px; padding: 6px 5px;">',a+='<input type="text" name="saswp_subscriber_website" 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>",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+='<p id="saswp-news-letter-status"></p>',a+="</div>",a+="</form>",a+="</div>",s(document).on("submit","#saswp-news-letter-form",function(e){e.preventDefault();var a=s(this),t=a.find('input[name="saswp_subscriber_name"]').val(),i=a.find('input[name="saswp_subscriber_email"]').val();website=a.find('input[name="saswp_subscriber_website"]').val(),s.post(saswp_localize_data.ajax_url,{action:"saswp_subscribe_to_news_letter",saswp_security_nonce:saswp_localize_data.saswp_security_nonce,name:t,email:i,website:website},function(e){e?"Some fields are missing."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid email address."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Invalid list ID."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):"Already subscribed."==e?(s("#saswp-news-letter-status").text(""),s("#saswp-news-letter-status").css("color","red")):(s("#saswp-news-letter-status").text("You're subscribed!"),s("#saswp-news-letter-status").css("color","green")):alert("Sorry, unable to subscribe. Please try again later!")})});var t={content:a,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(){setTimeout(function(){e.element.pointer("close")},3e3)}),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()}var i;if(s(".saswp-tabs a").click(function(e){var a=s(this).attr("href"),t=getParameterByName("tab",a);if(t||(t="general"),s(this).siblings().removeClass("nav-tab-active"),s(this).addClass("nav-tab-active"),"premium_features"!=t||"yes"!=jQuery(this).attr("data-extmgr"))return s(".form-wrap").find(".saswp-"+t).siblings().hide(),s(".form-wrap .saswp-"+t).show(),window.history.pushState("","",a),!1;window.location.href="edit.php?post_type=saswp&page=saswp-extension-manager"}),s(".saswp-schame-type-select").select2(),s(".saswp-schame-type-select").change(function(e){e.preventDefault(),s(".saswp-custom-fields-table").html("");var a=s(this).val();s(".saswp-option-table-class tr").each(function(e,a){e>0&&s(this).hide()}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_hide"),"local_business"==a&&(s("#saswp_location_meta_box").removeClass("saswp_hide"),s(".saswp-option-table-class tr").eq(1).show(),s(".saswp-business-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".select-post-type").val("show_globally").trigger("change")),"Service"==a&&(s(".saswp-service-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-item-reivewed-list").change()),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1),s(".saswp-itemlist-item-type-list").change()):s(".saswp-schema-modify-section").show(),saswp_enable_rating_review(),saswp_enable_rating_automate(),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").select2(),s(".saswp-local-sub-type-2").select2(),s("#saswp_business_type").change(function(){var e=s(this).val(),a=s(".saswp-schame-type-select").val();s(".saswp-option-table-class tr").each(function(e,a){e>1&&(s(this).hide(),s(this).find(".saswp-local-sub-type-2").attr("disabled",!0))}),"TechArticle"==a||"Article"==a||"Blogposting"==a||"NewsArticle"==a||"WebPage"==a?s(".saswp-enable-speakable").parent().parent().show():s(".saswp-enable-speakable").parent().parent().hide(),"Book"==a||"Course"==a||"Organization"==a||"CreativeWorkSeries"==a||"MobileApplication"==a||"ImageObject"==a||"HowTo"==a||"MusicPlaylist"==a||"MusicAlbum"==a||"Recipe"==a||"TVSeries"==a||"SoftwareApplication"==a||"Event"==a||"VideoGame"==a||"Service"==a||"AudioObject"==a||"VideoObject"==a||"local_business"==a||"Product"==a||"Review"==a?s(".saswp-enable-append-reviews").parent().parent().show():s(".saswp-enable-append-reviews").parent().parent().hide(),"VideoObject"==a?s(".saswp-enable-markup-class").parent().parent().show():s(".saswp-enable-markup-class").parent().parent().hide(),s("#saswp_location_meta_box").addClass("saswp_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),s("#saswp_location_meta_box").removeClass("saswp_hide")),"Review"==a&&(s(".saswp-review-text-field-tr").show(),s(".saswp-review-text-field-tr").find("select").attr("disabled",!1)),"ItemList"==a?(s(".saswp-schema-modify-section").hide(),s(".saswp-itemlist-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)):s(".saswp-schema-modify-section").show(),"Event"==a&&(s(".saswp-event-text-field-tr").show(),s(".saswp-option-table-class tr").find("select").attr("disabled",!1)),saswp_enable_rating_review(),saswp_enable_rating_automate()}).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-wpzoom-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpzoom").val(1):s("#saswp-wpzoom").val(0);break;case"saswp-yotpo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yotpo").val(1):s("#saswp-yotpo").val(0);break;case"saswp-ryviu-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ryviu").val(1):s("#saswp-ryviu").val(0);break;case"saswp-ultimate-blocks-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimate-blocks").val(1):s("#saswp-ultimate-blocks").val(0);break;case"saswp-starsrating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-starsrating").val(1):s("#saswp-starsrating").val(0);break;case"saswp-wptastyrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wptastyrecipe").val(1):s("#saswp-wptastyrecipe").val(0);break;case"saswp-recipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-recipress").val(1):s("#saswp-recipress").val(0);break;case"saswp-wp-ultimate-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-ultimate-recipe").val(1):s("#saswp-wp-ultimate-recipe").val(0);break;case"saswp-zip-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-zip-recipes").val(1):s("#saswp-zip-recipes").val(0);break;case"saswp-mediavine-create-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mediavine-create").val(1):s("#saswp-mediavine-create").val(0);break;case"saswp-ht-recipes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ht-recipes").val(1):s("#saswp-ht-recipes").val(0);break;case"saswp-wpsso-core-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpsso-core").val(1):s("#saswp-wpsso-core").val(0);break;case"saswp-for-wordpress-checkbox":s(this).is(":checked")?s("#saswp-for-wordpress").val(1):s("#saswp-for-wordpress").val(0);break;case"saswp-for-amp-checkbox":s(this).is(":checked")?s("#saswp-for-amp").val(1):s("#saswp-for-amp").val(0);break;case"saswp_kb_contact_1_checkbox":s(this).is(":checked")?(s("#saswp_kb_contact_1").val(1),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").removeClass("saswp-display-none")):(s("#saswp_kb_contact_1").val(0),s("#saswp_kb_telephone, #saswp_contact_type").parent().parent("li").addClass("saswp-display-none"));break;case"saswp-logo-dimensions-check":s(this).is(":checked")?(s("#saswp-logo-dimensions").val(1),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").show()):(s("#saswp-logo-dimensions").val(0),s("#saswp-logo-width, #saswp-logo-height").parent().parent("li").hide());break;case"saswp_archive_schema_checkbox":s(this).is(":checked")?(s("#saswp_archive_schema").val(1),s(".saswp_archive_schema_type_class").parent().parent().show()):(s("#saswp_archive_schema").val(0),s(".saswp_archive_schema_type_class").parent().parent().hide());break;case"saswp_website_schema_checkbox":s(this).is(":checked")?(s("#saswp_website_schema").val(1),s("#saswp_search_box_schema").parent().parent().show()):(s("#saswp_website_schema").val(0),s("#saswp_search_box_schema").parent().parent().hide());break;case"saswp_search_box_schema_checkbox":s(this).is(":checked")?s("#saswp_search_box_schema").val(1):s("#saswp_search_box_schema").val(0);break;case"saswp_breadcrumb_remove_cat_checkbox":s(this).is(":checked")?s("#saswp_breadcrumb_remove_cat").val(1):s("#saswp_breadcrumb_remove_cat").val(0);break;case"saswp_breadcrumb_schema_checkbox":s(this).is(":checked")?(s("#saswp_breadcrumb_schema").val(1),s("#saswp_breadcrumb_remove_cat").parent().parent().show()):(s("#saswp_breadcrumb_schema").val(0),s("#saswp_breadcrumb_remove_cat").parent().parent().hide());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-stars-rating-checkbox":s(this).is(":checked")?(s(".saswp-stars-post-table").removeClass("saswp_hide"),s(this).parent().parent().next().removeClass("saswp_hide"),s("#saswp-stars-rating").val(1)):(s(this).parent().parent().next().addClass("saswp_hide"),s(".saswp-stars-post-table").addClass("saswp_hide"),s("#saswp-stars-rating").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-rmprating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rmprating").val(1):s("#saswp-rmprating").val(0);break;case"saswp-ratingform-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratingform").val(1):s("#saswp-ratingform").val(0);break;case"saswp-wpdiscuz-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpdiscuz").val(1):s("#saswp-wpdiscuz").val(0);break;case"saswp-yet-another-stars-rating-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-yet-another-stars-rating").val(1):s("#saswp-yet-another-stars-rating").val(0);break;case"saswp-simple-author-box-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simple-author-box").val(1):s("#saswp-simple-author-box").val(0);break;case"saswp-woocommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woocommerce").val(1):s("#saswp-woocommerce").val(0);break;case"saswp_woocommerce_archive_checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp_woocommerce_archive").val(1):s("#saswp_woocommerce_archive").val(0);break;case"saswp-wpecommerce-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpecommerce").val(1):s("#saswp-wpecommerce").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-single-price-product-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?(s("#saswp-single-price-product").val(1),s(".saswp-single-price-opt").parent().parent().show()):(s("#saswp-single-price-product").val(0),s(".saswp-single-price-opt").parent().parent().hide());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-enfold-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-enfold").val(1):s("#saswp-enfold").val(0);break;case"saswp-soledad-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-soledad").val(1):s("#saswp-soledad").val(0);break;case"saswp-wp-theme-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-theme-reviews").val(1):s("#saswp-wp-theme-reviews").val(0);break;case"saswp-dw-question-answer-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-dw-question-answer").val(1):s("#saswp-dw-question-answer").val(0);break;case"saswp-wpqa-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpqa").val(1):s("#saswp-wpqa").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-polylang-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-polylang").val(1):s("#saswp-polylang").val(0);break;case"saswp-autolistings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-autolistings").val(1):s("#saswp-autolistings").val(0);break;case"saswp-wpml-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpml").val(1):s("#saswp-wpml").val(0);break;case"saswp-metatagmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-metatagmanager").val(1):s("#saswp-metatagmanager").val(0);break;case"saswp-slimseo-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-slimseo").val(1):s("#saswp-slimseo").val(0);break;case"saswp-rankmath-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rankmath").val(1):s("#saswp-rankmath").val(0);break;case"saswp-taqyeem-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-taqyeem").val(1):s("#saswp-taqyeem").val(0);break;case"saswp-video-thumbnails-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-video-thumbnails").val(1):s("#saswp-video-thumbnails").val(0);break;case"saswp-featured-video-plus-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-featured-video-plus").val(1):s("#saswp-featured-video-plus").val(0);break;case"saswp-wp-product-review-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-product-review").val(1):s("#saswp-wp-product-review").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-ratency-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ratency").val(1):s("#saswp-ratency").val(0);break;case"saswp-wpresidence-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresidence").val(1):s("#saswp-wpresidence").val(0);break;case"saswp-myhome-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-myhome").val(1):s("#saswp-myhome").val(0);break;case"saswp-realestate-5-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realestate-5").val(1):s("#saswp-realestate-5").val(0);break;case"saswp-stamped-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stamped").val(1):s("#saswp-stamped").val(0);break;case"saswp-sabaidiscuss-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-sabaidiscuss").val(1):s("#saswp-sabaidiscuss").val(0);break;case"saswp-geodirectory-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-geodirectory").val(1):s("#saswp-geodirectory").val(0);break;case"saswp-classipress-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-classipress").val(1):s("#saswp-classipress").val(0);break;case"saswp-realhomes-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-realhomes").val(1):s("#saswp-realhomes").val(0);break;case"saswp-learn-press-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-press").val(1):s("#saswp-learn-press").val(0);break;case"saswp-wplms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wplms").val(1):s("#saswp-wplms").val(0);break;case"saswp-learn-dash-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-learn-dash").val(1):s("#saswp-learn-dash").val(0);break;case"saswp-lifter-lms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-lifter-lms").val(1):s("#saswp-lifter-lms").val(0);break;case"saswp-senseilms-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-senseilms").val(1):s("#saswp-senseilms").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-full-heading-checkbox":s(this).is(":checked")?s("#saswp-full-heading").val(1):s("#saswp-full-heading").val(0);break;case"saswp-rss-feed-image-checkbox":s(this).is(":checked")?s("#saswp-rss-feed-image").val(1):s("#saswp-rss-feed-image").val(0);break;case"saswp-image-resizing-checkbox":s(this).is(":checked")?s("#saswp-image-resizing").val(1):s("#saswp-image-resizing").val(0);break;case"saswp-multiple-size-image-checkbox":s(this).is(":checked")?s("#saswp-multiple-size-image").val(1):s("#saswp-multiple-size-image").val(0);break;case"saswp-easy-testimonials-checkbox":s(this).is(":checked")?s("#saswp-easy-testimonials").val(1):s("#saswp-easy-testimonials").val(0);break;case"saswp-brb-checkbox":s(this).is(":checked")?s("#saswp-brb").val(1):s("#saswp-brb").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-wpreviewslider-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewslider").val(1):s("#saswp-wpreviewslider").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-cmp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-cmp").val(1):s("#saswp-cmp").val(0);break;case"saswp-wpreviewpro-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpreviewpro").val(1):s("#saswp-wpreviewpro").val(0);break;case"saswp-webstories-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webstories").val(1):s("#saswp-webstories").val(0);break;case"saswp-resized-image-folder-checkbox":var t=s("#saswp-resized-image-folder-checkbox");s(this).is(":checked")?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_create_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s("#saswp-resized-image-folder").val(1),s("#saswp-resized-image-folder-checkbox").after('<a class="saswp-clear-images button button-default">Clear Images</a>')):(t.prop("checked",!1),t.next().text(e.message),t.next().css("color","red"))},error:function(s){t.prop("checked",!1),t.next().text(s),t.next().css("color","red")}}):(s("#saswp-resized-image-folder").val(0),s(".saswp-clear-images").remove());break;case"saswp-elementor-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-elementor").val(1):s("#saswp-elementor").val(0);break;case"saswp-rannarecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-rannarecipe").val(1):s("#saswp-rannarecipe").val(0);break;case"saswp-jetpackrecipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-jetpackrecipe").val(1):s("#saswp-jetpackrecipe").val(0);break;case"saswp-quickandeasyfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-quickandeasyfaq").val(1):s("#saswp-quickandeasyfaq").val(0);break;case"saswp-ultimatefaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ultimatefaqs").val(1):s("#saswp-ultimatefaqs").val(0);break;case"saswp-arconixfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-arconixfaq").val(1):s("#saswp-arconixfaq").val(0);break;case"saswp-faqconcertina-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqconcertina").val(1):s("#saswp-faqconcertina").val(0);break;case"saswp-wpjobmanager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobmanager").val(1):s("#saswp-wpjobmanager").val(0);break;case"saswp-simplejobboard-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-simplejobboard").val(1):s("#saswp-simplejobboard").val(0);break;case"saswp-wpjobopenings-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpjobopenings").val(1):s("#saswp-wpjobopenings").val(0);break;case"saswp-webfaq10-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-webfaq10").val(1):s("#saswp-webfaq10").val(0);break;case"saswp-wpfaqschemamarkup-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpfaqschemamarkup").val(1):s("#saswp-wpfaqschemamarkup").val(0);break;case"saswp-faqschemaforpost-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-faqschemaforpost").val(1):s("#saswp-faqschemaforpost").val(0);break;case"saswp-masteraccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-masteraccordion").val(1):s("#saswp-masteraccordion").val(0);break;case"saswp-easyfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyfaqs").val(1):s("#saswp-easyfaqs").val(0);break;case"saswp-accordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordion").val(1):s("#saswp-accordion").val(0);break;case"saswp-html5responsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-html5responsivefaq").val(1):s("#saswp-html5responsivefaq").val(0);break;case"saswp-wpresponsivefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpresponsivefaq").val(1):s("#saswp-wpresponsivefaq").val(0);break;case"saswp-easyaccordion-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easyaccordion").val(1):s("#saswp-easyaccordion").val(0);break;case"saswp-helpiefaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-helpiefaq").val(1):s("#saswp-helpiefaq").val(0);break;case"saswp-mooberrybm-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-mooberrybm").val(1):s("#saswp-mooberrybm").val(0);break;case"saswp-novelist-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-novelist").val(1):s("#saswp-novelist").val(0);break;case"saswp-accordionfaq-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-accordionfaq").val(1):s("#saswp-accordionfaq").val(0);break;case"saswp-schemaforfaqs-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-schemaforfaqs").val(1):s("#saswp-schemaforfaqs").val(0);break;case"saswp-wp-customer-reviews-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-customer-reviews").val(1):s("#saswp-wp-customer-reviews").val(0);break;case"saswp-total-recipe-generator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-total-recipe-generator").val(1):s("#saswp-total-recipe-generator").val(0);break;case"saswp-wordpress-news-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordpress-news").val(1):s("#saswp-wordpress-news").val(0);break;case"saswp-ampwp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-ampwp").val(1):s("#saswp-ampwp").val(0);break;case"saswp-wp-event-aggregator-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wp-event-aggregator").val(1):s("#saswp-wp-event-aggregator").val(0);break;case"saswp-timetable-event-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-timetable-event").val(1):s("#saswp-timetable-event").val(0);break;case"saswp-xo-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-xo-event-calendar").val(1):s("#saswp-xo-event-calendar").val(0);break;case"saswp-vs-event-list-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-vs-event-list").val(1):s("#saswp-vs-event-list").val(0);break;case"saswp-calendarize-it-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-calendarize-it").val(1):s("#saswp-calendarize-it").val(0);break;case"saswp-events-schedule-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-events-schedule").val(1):s("#saswp-events-schedule").val(0);break;case"saswp-woo-event-manager-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-woo-event-manager").val(1):s("#saswp-woo-event-manager").val(0);break;case"saswp-stachethemes-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-stachethemes-event-calendar").val(1):s("#saswp-stachethemes-event-calendar").val(0);break;case"saswp-all-in-one-event-calendar-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-all-in-one-event-calendar").val(1):s("#saswp-all-in-one-event-calendar").val(0);break;case"saswp-event-on-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-event-on").val(1):s("#saswp-event-on").val(0);break;case"saswp-easy-recipe-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-easy-recipe").val(1):s("#saswp-easy-recipe").val(0);break;case"saswp-tevolution-events-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-tevolution-events").val(1):s("#saswp-tevolution-events").val(0);break;case"saswp-strong-testimonials-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-strong-testimonials").val(1):s("#saswp-strong-testimonials").val(0);break;case"saswp-wordlift-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wordlift").val(1):s("#saswp-wordlift").val(0);break;case"saswp-betteramp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-betteramp").val(1):s("#saswp-betteramp").val(0);break;case"saswp-wpamp-checkbox":saswp_compatibliy_notes(a,e),s(this).is(":checked")?s("#saswp-wpamp").val(1):s("#saswp-wpamp").val(0)}}).change(),s("#saswp_kb_type").change(function(){var e=s(this).val();s(".saswp_org_fields, .saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().addClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide"),"Organization"==e&&(s(".saswp_org_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_person_fields").parent().parent().addClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().addClass("saswp_hide")),"Person"==e&&(s(".saswp_org_fields").parent().parent().addClass("saswp_hide"),s(".saswp_person_fields").parent().parent().removeClass("saswp_hide"),s(".saswp_kg_logo").parent().parent().parent().removeClass("saswp_hide"),s("#sd-person-image").parent().parent().parent().removeClass("saswp_hide"))}).change(),s(document).on("click","input[data-id=media]",function(e){e.preventDefault();var a=s(this),t=a.attr("id").replace("_button",""),i=wp.media({title:"Application Icon",button:{text:"Select Icon"},multiple:!1,library:{type:"image"}}).on("select",function(){var e=i.state().get("selection").first().toJSON();s("#"+t).val(e.url),s("input[data-id='"+t+"_id']").val(e.id),s("input[data-id='"+t+"_height']").val(e.height),s("input[data-id='"+t+"_width']").val(e.width),s("input[data-id='"+t+"_thumbnail']").val(e.url),"sd_default_image_button"===a.attr("id")&&(s("#sd_default_image_width").val(e.width),s("#sd_default_image_height").val(e.height));var c="";"saswp_image_div_"+t=="saswp_image_div_sd_default_image"&&e.height<1200&&(c='<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>'+c)}).open()}),s(document).on("click",".saswp_prev_close",function(e){e.preventDefault();var a=s(this).attr("data-id");s(this).parent().remove(),s("#"+a).val(""),s("input[data-id='"+a+"_id']").val(""),s("input[data-id='"+a+"_height']").val(""),s("input[data-id='"+a+"_width']").val(""),s("input[data-id='"+a+"_thumbnail']").val(""),"sd_default_image"===a&&(s("#sd_default_image_width").val(""),s("#sd_default_image_height").val(""))}),s(document).on("click",".saswp-modify-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.get(ajaxurl,{action:"saswp_modify_schema_post_enable",tag_ID:saswp_localize_data.tag_ID,schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){s(".saswp-post-specific-wrapper[data-id="+a+"] .saswp-post-specific-setting").after(e),s(".saswp_modify_this_schema_hidden_"+a).val(1),s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),t.removeClass("updating-message"),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_enable_rating_review(),saswp_enable_rating_automate(),saswp_item_reviewed_call()})}),s(document).on("click",".saswp-restore-schema",function(e){e.preventDefault();var a=s(this).attr("schema-id"),t=s(this);t.addClass("updating-message"),s.post(ajaxurl,{action:"saswp_modify_schema_post_restore",tag_ID:saswp_localize_data.tag_ID,schema_id:a,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){t.removeClass("updating-message"),"t"==e.status?(s(".saswp_modify_this_schema_hidden_"+a).val(0),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").remove()):alert("Something went wrong")},"json")}),s(document).on("change",".saswp-schema-type-toggle",function(e){var a=s(this).attr("data-schema-id"),t=s(this).attr("data-post-id"),i=s(".saswp_modify_this_schema_hidden_"+a).val();if(s(this).is(":checked")){var c=0;s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s(".saswp-modify-schema[schema-id="+a+"]").parent().addClass("saswp_hide"),s("#saswp_custom_schema_field[schema-id="+a+"]").parent().addClass("saswp_hide")}else{s("#saswp_custom_schema_field[schema-id="+a+"]").parent().removeClass("saswp_hide"),1==i?(s(".saswp-ps-toggle[schema-id="+a+"]").removeClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().removeClass("saswp_hide")):(s(".saswp-modify-schema[schema-id="+a+"]").parent().removeClass("saswp_hide"),s(".saswp-ps-toggle[schema-id="+a+"]").addClass("saswp_hide"),s(".saswp-restore-schema[schema-id="+a+"]").parent().addClass("saswp_hide"));c=1}s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_enable_disable_schema_on_post",status:c,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"),c=s("#"+i+"_addon_license_key").val();t&&i&&c?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,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("span.addon-activated_reviews").css({color:"green","margin-left":"8px","font-weight":"400"}),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("span.inactive_status_"+i).text("Active"),s("span.inactive_status_"+i).css("color","green"),s("span.inactive_status_"+i).removeClass("inactive_status_"+i).addClass("addon-activated_"+i)):(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),s("span.addon-activated_"+i).text("Inactive"),s("span.addon-activated_"+i).css("color","#bebfc0"),s("span.addon-activated_"+i).removeClass("addon-activated_"+i).addClass("inactive_status_"+i),s("span.limit_span").css("display","none")),a.removeClass("updating-message")},error:function(s){console.log(s)}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),jQuery(document).on("click",".user_refresh_single_addon",function(s){var e=jQuery(this);s.preventDefault();var a=e.attr("add-on"),t=e.attr("remaining_days_org"),i=jQuery("#"+a+"_addon_license_key").val();document.getElementById("user_refresh_"+a).classList.add("spin");var c=new Date;var p=function(s){for(var e=s+"=",a=document.cookie.split(";"),t=0;t<a.length;t++){for(var i=a[t];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return null}("saswp_addon_refresh_check"),o=-1;if(null!=typeof(p=new Date(p))){var n=Math.abs(c.getTime()-p.getTime());o=Math.ceil(n/864e5)}var l=new Date(t),r=(n=Math.abs(l.getTime()-c.getTime()),Math.ceil(n/864e5));-1==o||o>1||r<1?(document.cookie="saswp_addon_refresh_check="+c,jQuery.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:i,license_status:"active",add_on:a,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){jQuery("#"+a+"_addon_license_key_status").val(s.status),document.getElementById("user_refresh_"+a).classList.remove("spin"),e.removeClass("updating-message")},error:function(s){console.log(s)}})):(setTimeout(function(){jQuery(".dashicons").removeClass("spin")},0),p=Math.abs(p.getDate()+1)+"/"+Math.abs(p.getMonth()+1)+"/"+p.getFullYear()+" "+p.getHours()+":"+p.getMinutes()+":"+p.getSeconds(),alert("Please try after "+p))}),i=document.getElementById("activated-plugins-days_remaining"))var c=i.getAttribute("days_remaining");if(c>=0&&c<=7&&setTimeout(function(){jQuery("#refresh_license_icon_top-").trigger("click")},0),jQuery(document).on("click","#refresh_license_icon_top-",function(e){document.getElementById("refresh_license_icon_top").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on"),c=(s(this).attr("data-attr"),s(this).attr("add-onname"),s("#"+i+"_addon_license_key").val());i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_license_icon_top").classList.remove("spin");var a=e.days_remaining;a>=0&&a<=7&&s("span.saswp-addon-alert").text("expiring in "+a+" days ")}else{document.getElementsByClassName("saswp-addon-alert")[0].style.color="green",document.getElementsByClassName("renewal-license")[0].style.display="none",document.getElementById("refresh_license_icon_top").classList.remove("spin"),s("span.pro_warning").css("display","none")}}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})}),i=document.getElementById("activated-plugins-days_remaining"))c=i.getAttribute("days_remaining");if(c>=0&&c<=7&&setTimeout(function(){jQuery("#user_refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#user_refresh_expired_addon-",function(e){document.getElementById("user_refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on"),c=(s(this).attr("data-attr"),s(this).attr("add-onname"),s("#"+i+"_addon_license_key").val());i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("user_refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?(s("span#exp").text("Expired"),location.reload()):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message"))}),i=document.getElementById("activated-plugins-days_remaining"))c=i.getAttribute("days_remaining");setTimeout(function(){jQuery("#refresh_expired_addon-").trigger("click")},0),jQuery(document).on("click","#refresh_expired_addon-",function(e){document.getElementById("refresh_expired_addon").classList.add("spin"),jQuery(this);var a=s(this),t=s(this).attr("licensestatusinternal"),i=s(this).attr("add-on"),c=(s(this).attr("data-attr"),s(this).attr("add-onname"),s("#"+i+"_addon_license_key").val());i?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_license_status_check",license_key:c,license_status:t,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){if("active"==s("#"+i+"_addon_license_key_status").val()){document.getElementById("refresh_expired_addon").classList.remove("spin");var a=e.days_remaining;a<0?s("span#exp").text("Expired"):a>7&&(s("span.inner_span").text(""),s("span.saswp_addon_inactive").text(""),s("span.expiredinner_span").text("Your License is Active"),s("span.expiredinner_span").css("color","green"),s(".renewal-license").css("display","none"),s(".saswp_addon_icon").css("display","none"))}}}):(alert("Please enter value license key"),a.removeClass("updating-message")),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_expired_license_transient",license_key:c,license_key:c,add_on:i,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){JSON.parse(s)}})}),s(".saswp-send-query").on("click",function(e){e.preventDefault();var a=s("#saswp_query_message").val(),t=s("#saswp_query_email").val(),i=s("#saswp_query_premium_cus").val();""!=s.trim(a)&&i&&""!=s.trim(t)&&1==saswpIsEmail(t)?s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_send_query_message",premium_cus:i,message:a,email:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(e){"t"==e.status?(s(".saswp-query-success").show(),s(".saswp-query-error").hide()):(s(".saswp-query-success").hide(),s(".saswp-query-error").show())},error:function(s){console.log(s)}}):""==s.trim(a)&&""==i&&""==s.trim(t)?alert("Please enter the message, email and select customer type"):(""==i&&alert("Select Customer type"),""==s.trim(a)&&alert("Please enter the message"),""==s.trim(t)&&alert("Please enter the email"),0==saswpIsEmail(t)&&alert("Please enter a valid email"))}),s(".saswp-import-plugins").on("click",function(e){e.preventDefault();var a=s(this);a.addClass("updating-message");var t=s(this).attr("data-id");s.get(ajaxurl,{action:"saswp_import_plugin_data",plugin_name:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status?(s(a).parent().find(".saswp-imported-message").text(e.message),s(a).parent().find(".saswp-imported-message").removeClass("saswp-error"),setTimeout(function(){location.reload()},2e3)):(s(a).parent().find(".saswp-imported-message").addClass("saswp-error"),s(a).parent().find(".saswp-imported-message").text(e.message)),a.removeClass("updating-message")},"json")}),s(".saswp-feedback-no-thanks").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_no_thanks",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(".saswp-feedback-remindme").on("click",function(e){e.preventDefault(),s.get(ajaxurl,{action:"saswp_feeback_remindme",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){"t"==e.status&&s(".saswp-feedback-notice").hide()},"json")}),s(document).on("change",".saswp-local-business-type-select",function(e){e.preventDefault();var a=s(this),t=s(this).val();s.get(ajaxurl,{action:"saswp_get_sub_business_ajax",business_type:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if("t"==e.status){s(".saswp-local-business-name-select").parents("tr").remove();var t=a.parents(".saswp-post-specific-wrapper").attr("data-id"),i='<tr><th><label for="saswp_business_name_'+t+'">Sub Business Type</label></th>';i+='<td><select class="saswp-local-business-name-select" id="saswp_business_name_'+t+'" name="saswp_business_name_'+t+'">',s.each(e.result,function(s,e){i+='<option value="'+s+'">'+e+"</option>"}),i+="</select></td>",i+="</tr>",a.parents(".form-table tr:first").after(i)}else s(".saswp-local-business-name-select").parents("tr").remove()},"json")}),saswp_item_reviewed_call(),jQuery(".saswp-local-schema-time-picker").timepicker({timeFormat:"H:i:s"}),s(document).on("click",".saswp-add-custom-schema",function(e){e.preventDefault(),s(".saswp-add-custom-schema-field").removeClass("saswp_hide"),s(this).hide()}),s(document).on("click",".saswp-delete-custom-schema",function(e){e.preventDefault(),s("#saswp_custom_schema_field").val(""),s(".saswp-add-custom-schema-field").addClass("saswp_hide"),s(".saswp-add-custom-schema").show()}),saswp_schema_datepicker(),saswp_schema_timepicker(),saswp_reviews_datepicker(),s(document).on("click",".saswp-add-more-item",function(e){e.preventDefault();s(".saswp-review-item-list-table").append('<tr class="saswp-review-item-tr"><td>Review Item Feature</td><td><input type="text" name="saswp-review-item-feature[]"></td><td>Rating</td><td><input step="0.1" min="0" max="5" type="number" name="saswp-review-item-star-rating[]"></td><td><a type="button" class="saswp-remove-review-item button">x</a></td></tr>')}),s(document).on("click",".saswp-remove-review-item",function(e){e.preventDefault(),s(this).parent().parent("tr").remove()}),s(document).on("focusout",".saswp-review-item-tr input[type=number]",function(e){e.preventDefault();var a=0,t=s(".saswp-review-item-tr input[type=number]").length;s(".saswp-review-item-tr input[type=number]").each(function(e,t){""==s(t).val()?a+=parseFloat(0):a+=parseFloat(s(t).val())});var i=a/t;s("#saswp-review-item-over-all").val(i)}),s("#saswp-review-location").change(function(){var e=s(this).val();s(".saswp-review-shortcode").addClass("saswp_hide"),3==e&&s(".saswp-review-shortcode").removeClass("saswp_hide")}).change(),s("#saswp-review-item-enable").change(function(){s(this).is(":checked")?s(".saswp-review-fields").show():s(".saswp-review-fields").hide()}).change(),s(document).on("click",".saswp-restore-post-schema",function(e){e.preventDefault();var a=s(this);if(a.addClass("updating-message"),s(".saswp-post-specific-schema-ids").val())var t=JSON.parse(s(".saswp-post-specific-schema-ids").val());s.post(ajaxurl,{action:"saswp_restore_schema",schema_ids:t,post_id:saswp_localize_data.post_id,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(s){"t"==s.status?setTimeout(function(){location.reload()},1e3):(alert(s.msg),setTimeout(function(){location.reload()},1e3)),a.removeClass("updating-message")},"json")}),s(document).on("click","div.saswp-tab ul.saswp-tab-nav a",function(e){e.preventDefault();var a=s(this).attr("data-id");s(".saswp-post-specific-wrapper").hide(),s("#"+a).show(),s("div.saswp-tab ul.saswp-tab-nav a").removeClass("selected"),s("div.saswp-tab ul.saswp-tab-nav li").removeClass("selected"),s(this).addClass("selected"),s(this).parent().addClass("selected"),saswp_enable_rating_review(),saswp_enable_rating_automate()}),s("#saswp-global-tabs a:first").addClass("saswp-global-selected"),s(".saswp-global-container").hide();var p=window.location.hash;if("#saswp-default-container"==p?s(".saswp-global-container:eq(2)").show():"#saswp-knowledge-container"==p?s(".saswp-global-container:eq(1)").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-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"),c=s(this).attr("div_type"),p=s(this).attr("itemlist_sub_type"),o=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div").length,n=s("saswp_specific_"+t+" , .saswp-"+c+"-table-div:nth-child("+o+")").attr("data-id");(n=++n)||(n=0),saswp_get_post_specific_schema_fields(a,n,i,c,t,i+"_",p)}),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(),c="",p=a.toLowerCase()+"_"+i,o="saswp_fixed_image["+i+"]";"manual_text"==t?(c+='<td><input type="text" name="saswp_fixed_text['+i+']"></td>',c+='<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(c),saswpCustomSelect2()):"taxonomy_term"==t?saswp_taxonomy_term.taxonomy?(c+=saswp_taxonomy_term_html(saswp_taxonomy_term.taxonomy,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),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,c+=saswp_taxonomy_term_html(s,i),e.parent().parent("tr").find("td:gt(1)").remove(),e.parent().parent("tr").append(c),saswpCustomSelect2())},"json"):"custom_field"==t?(c+='<td><select class="saswp-custom-fields-select2" name="saswp_custom_meta_field['+i+']">',c+="</select></td>",c+='<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(c),saswpCustomSelect2()):"fixed_image"==t?(c+="<td>",c+="<fieldset>",c+='<input data-id="media" style="width: 30%;" class="button" id="'+p+'_button" name="'+p+'_button" type="button" value="Upload" />',c+='<input type="hidden" data-id="'+p+'_height" class="upload-height" name="'+o+'[height]" id="'+p+'_height" value="">',c+='<input type="hidden" data-id="'+p+'_width" class="upload-width" name="'+o+'[width]" id="'+p+'_width" value="">',c+='<input type="hidden" data-id="'+p+'_thumbnail" class="upload-thumbnail" name="'+o+'[thumbnail]" id="'+p+'_thumbnail" value="">',c+='<div class="saswp_image_div_'+p+'">',c+="</div>",c+="</fieldset>",c+="</td>",c+='<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(c),saswpCustomSelect2()):(c+="<td></td>",c+='<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(c),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 c=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:c,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(),saswp_enable_rating_automate(),saswp_enable_rating_automate(),s('a[href="'+saswp_localize_data.collection_post_add_url+'"]').attr("href",saswp_localize_data.collection_post_add_new_url),s(document).on("click",".saswp_coonect_google_place",function(){var e=s("#saswp_google_place_id").val(),a=s("#saswp_language_list").val(),t=s("#saswp_googel_api").val();""!=e&&s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_connect_google_place",place_id:e,language:a,google_api:t,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){console.log(s.status)},error:function(s){console.log(s)}})}),s(document).on("click",".saswp-add-social-links",function(){s(".saswp-social-links-table").append('<tr><td><input type="text" placeholder="https://www.facebook.com/profile" name="sd_data[saswp_social_links][]" value=""></td><td><a class="button button-default saswp-rmv-modify_row">X</a></td></tr>')}),s(document).on("click",".saswp-show-accept-rv-popup",function(){tb_show("Reviews Form","#TB_inline??width=600&height=400&inlineId=saswp-accept-reviews-popup"),s(document).find("#TB_window").width(600).height(400).css({top:"100px","margin-top":"0px"})}),("saswp_reviews"==saswp_localize_data.post_type||"saswp-collections"==saswp_localize_data.post_type)&&"edit.php"==saswp_localize_data.page_now){var o='<div class="saswp-custom-post-tab">';o+='<div style="display:none;" id="saswp-accept-reviews-popup">',o+='<div class="saswp-accept-rv-container">',o+="<p>Use Below shortcode to show reviews form in your website. Using this you can accept reviews from your website directly</p>",o+='<div class="saswp-show-form-on-tab"><strong>Simple Form</strong> <input value="[saswp-reviews-form]" type="text" readonly></div>',o+='<div class="saswp-show-form-on-tab"><strong>Show form on button tap</strong> <input value="[saswp-reviews-form onbutton=&quot;1&quot;]" type="text" readonly></div>',o+='<p><strong>Note:</strong> To enable google reCAPTCHA v2 add SITE KEY & SECRET KEY respectively as parameters in above shortcode. Eg <input value="[saswp-reviews-form site_key=&quot;your key&quot; secret_key=&quot;your key&quot;]" type="text" readonly>. To get keys <a target="_blank" href="https://www.google.com/recaptcha/admin/create">Click here.</a> You must choose reCAPTCHA type v2 </p>',o+="</div>",o+="</div>",o+='<h2 class="nav-tab-wrapper">',o+="<a href="+saswp_localize_data.reviews_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.reviews_page_url?"saswp-global-selected":"")+'">Reviews</a>',o+="<a href="+saswp_localize_data.collections_page_url+' class="nav-tab '+(saswp_localize_data.current_url==saswp_localize_data.collections_page_url?"saswp-global-selected":"")+'">Collections</a>',o+='<a class="nav-tab saswp-show-accept-rv-popup">Accept Reviews</a>',o+="</h2>",o+="</div>",jQuery(jQuery(".wrap")).prepend(o)}jQuery(document).on("click",".saswp-clear-images",function(e){e.preventDefault();var a=s(this);1==confirm("Are you sure? It will remove all the resized images")&&(a.addClass("updating-message"),s.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"saswp_clear_resized_image_folder",saswp_security_nonce:saswp_localize_data.saswp_security_nonce},success:function(s){a.removeClass("updating-message"),"t"!=s.status&&alert("something went wrong")},error:function(s){console.log(s)}}))}),"saswp"==saswp_localize_data.post_type&&"edit.php"==saswp_localize_data.page_now&&jQuery(jQuery(".wrap a")[0]).after("<a href='"+saswp_localize_data.saswp_settings_url+"' id='' class='page-title-action'>Settings</a>"),"undefined"!=typeof saswp_reviews_data&&s(".saswp-rating-div").rateYo({spacing:"5px",rtl:saswp_localize_data.is_rtl,rating:saswp_reviews_data.rating_val,readOnly:saswp_reviews_data.readonly,onSet:function(e,a){s(this).next().next().val(e)}}).on("rateyo.change",function(e,a){var t=a.rating;s(this).next().text(t)}),s("#sd-person-phone-number, #saswp_kb_telephone").focusout(function(){var e=s(this);e.parent().find(".saswp-phone-validation").remove();var a=s(this).val();/^\+([0-9]{1,3})\)?[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})[-. ]?([0-9]{2,4})$/.test(a)?e.parent().find(".saswp-phone-validation").remove():e.after('<span style="color:red;" class="saswp-phone-validation">Invalid Phone Number</span>')}),saswpCollectionSlider(),s(document).on("click",".saswp-add-rv-btn",function(){s(".saswp-dynamic-platforms").toggle()}),s(".saswp-rmv-coll-rv").on("click",function(){if(rmv_boolean=!rmv_boolean,saswp_on_collection_design_change(),jQuery(jQuery(".saswp-add-dynamic-section")).remove(),rmv_boolean){var s="";s+='<div class="saswp-add-dynamic-section">',s+='<div class="saswp-add-dynamic-btn">',s+='<span class="dashicons dashicons-plus-alt saswp-add-rv-btn"></span>',s+="</div>",s+='<div class="saswp-dynamic-platforms" style="display:none;">',s+='<select name="saswp_dynamic_platforms" id="saswp_dynamic_platforms"><option value="">Choose Platform</option>'+jQuery("#saswp-plaftorm-list").html()+"</select>",s+="</div>",s+="</div>",jQuery(jQuery(".saswp-collection-preview")[0]).after(s)}}),s(document).on("change","#saswp_dynamic_platforms",function(){var e=s(this).val();e&&jQuery.get(ajaxurl,{action:"saswp_add_to_collection",rvcount:"",platform_id:e,saswp_security_nonce:saswp_localize_data.saswp_security_nonce},function(e){if(e.status&&e.message){var a="";if(s.each(e.message,function(s,e){a+='<option value="'+e.saswp_review_id+'">'+e.saswp_reviewer_name+" ( "+e.saswp_review_rating+" ) </option>"}),a){var t="";t+='<select id="saswp_dynamic_reviews_list" class="saswp-select2">',t+=a,t+="</select>",t+='<a class="button button-default saswp-add-single-rv">Add</a>',s("#saswp_dynamic_platforms").nextAll().remove(),s("#saswp_dynamic_platforms").after(t),saswp_select2()}}},"json")}),s(document).on("click",".saswp-add-single-rv",function(e){e.preventDefault();var a=s("#saswp_dynamic_reviews_list").val(),t=s("#saswp_dynamic_platforms").val();a&&saswp_get_collection_data(null,t,null,a,!0)}),s(document).on("click",".saswp-remove-coll-rv",function(){var e=s(this).attr("data-id"),a=s(this).attr("platform-id");if(a){var t=saswp_collection[a].filter(function(s){return s.saswp_review_id!=e});saswp_collection[a]=t,saswp_on_collection_design_change()}}),s(document).on("click",".saswp-grid-page",function(e){e.preventDefault(),saswp_grid_page=s(this).attr("data-id"),saswp_on_collection_design_change()}),s("#saswp-coll-pagination").change(function(){saswp_grid_page=1,s("#saswp-coll-per-page").parent().addClass("saswp_hide_imp"),s(this).is(":checked")&&s("#saswp-coll-per-page").parent().removeClass("saswp_hide_imp"),saswp_on_collection_design_change()}),s(".saswp-accordion").click(function(){s(this).toggleClass("active"),s(this).next(".saswp-accordion-panel").slideToggle(200)}),s(document).on("click",".saswp-opn-cls-btn",function(){s("#saswp-reviews-cntn").toggle(),s("#saswp-reviews-cntn").is(":visible")?(s(".saswp-onclick-show").css("display","flex"),s(".saswp-onclick-hide").hide(),s(".saswp-open-class").css("width","500px")):(s(".saswp-onclick-show").css("display","none"),s(".saswp-onclick-hide").show(),s(".saswp-open-class").css("width","300px"))}),s(".saswp-collection-display-method").change(function(){"shortcode"==s(this).val()?s(".saswp-collection-shortcode").removeClass("saswp_hide"):s(".saswp-collection-shortcode").addClass("saswp_hide")}).change(),s(document).on("click",".saswp-remove-platform",function(e){e.preventDefault();var a=s(this).attr("platform-id");saswp_collection.splice(a,1),s(this).parent().remove(),saswp_on_collection_design_change()}),s(".saswp-number-change").bind("keyup mouseup",function(){saswp_on_collection_design_change()}),s(".saswp-coll-settings-options").change(function(){saswp_grid_page=1;var e=s(".saswp-collection-desing").val();s(".saswp-coll-options").addClass("saswp_hide"),s(".saswp-collection-lp").css("height","auto"),s(".saswp-rmv-coll-rv").hide(),s(".saswp-add-dynamic-section").hide(),"grid"==e&&(s(".saswp-grid-options").removeClass("saswp_hide"),s(".saswp-rmv-coll-rv").show(),s(".saswp-add-dynamic-section").show()),"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,null)):alert("Enter Count")});var n,l,r=s("#saswp_total_reviews_list").val();r&&saswp_get_collection_data(null,null,null,null,r),(n=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",n.innerHTML="Copied!",document.body.appendChild(n);var w=document.getElementById("saswp-motivatebox");w&&w.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(l),n.style.left=e.pageX-10+"px",n.style.top=e.pageY+15+"px",n.style.opacity=1,l=setTimeout(function(){n.style.opacity=0},500)}(s))},!1)});
admin_section/settings.php CHANGED
@@ -101,11 +101,298 @@ function saswp_admin_interface_render(){
101
  ?>
102
  <div class="saswp-settings-container">
103
  <div class="wrap saswp-settings-form saswp-settings-first-div" style="<?php echo( saswp_ext_installed_status()? 'width:100%;':''); ?>">
104
- <h1 class="wp-heading-inline"> <?php echo saswp_t_string( 'Schema & Structured Data For WP' ); ?> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=saswp' ) ); ?>" class="page-title-action"><?php echo saswp_t_string( 'Schema Types' ); ?></a></h1><br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  <div>
106
  <h2 class="nav-tab-wrapper saswp-tabs">
107
 
108
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  $tab_links = apply_filters( 'saswp_extra_settings_tab_link',
111
  array(
@@ -115,7 +402,7 @@ function saswp_admin_interface_render(){
115
  '<a href="' . esc_url(saswp_admin_link('compatibility')) . '" class="nav-tab ' . esc_attr( $tab == 'compatibility' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Compatibility') . '</a>',
116
  '<a href="' . esc_url(saswp_admin_link('email_schema')) . '" class="nav-tab ' . esc_attr( $tab == 'email_schema' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Email Schema') . '</a>',
117
  '<a href="' . esc_url(saswp_admin_link('tools')) . '" class="nav-tab ' . esc_attr( $tab == 'tools' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Advanced') . '</a>',
118
- '<a href="' . esc_url(saswp_admin_link('premium_features')) . '" class="nav-tab ' . esc_attr( $tab == 'premium_features' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Premium Features') . '</a>',
119
  '<a href="' . esc_url(saswp_admin_link('services')) . '" class="nav-tab ' . esc_attr( $tab == 'services' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Services') . '</a>',
120
  '<a href="' . esc_url(saswp_admin_link('support')) . '" class="nav-tab ' . esc_attr( $tab == 'support' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Support') . '</a>',
121
  //'<a target="_blank" href="http://structured-data-for-wp.com/festive-season/" class="nav-tab saswp-offer-banner">50% OFF for LIMITED time</a>'
@@ -185,7 +472,7 @@ function saswp_admin_interface_render(){
185
 
186
  echo '<div id="saswp-tools-tabs" style="margin-top: 10px;">';
187
 
188
- echo '<a class="saswp-tools-tab-nav" href="#saswp-advanced-heading">'.saswp_t_string('Advanced').'</a> | <a href="#saswp-translation-heading" class="saswp-tools-tab-nav">'.saswp_t_string('Translation Panel').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-migration-heading">'.saswp_t_string('Migration').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-import-export-heading">'.saswp_t_string('Import / Export').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-misc-heading">'.saswp_t_string('Misc').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-license-heading">'.saswp_t_string('License').'</a>';
189
 
190
  echo'</div> ';
191
  // Status
@@ -408,472 +695,192 @@ function saswp_handle_file_upload($option){
408
 
409
  }
410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
 
412
  function saswp_premium_features_callback(){ ?>
413
 
414
  <div class="saswp-pre-ftrs-wrap">
415
 
416
  <ul class="saswp-features-blocks">
417
-
418
- <li>
419
-
420
  <?php
421
 
422
  $cooked_active_text = '';
423
-
424
- if(is_plugin_active('classifieds-plugin-compatibility/classifieds-plugin-compatibility.php')){
425
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
426
- }else{
427
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
428
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
429
- }
430
-
431
- ?>
432
-
433
- <div class="saswp-features-ele">
434
- <div class="saswp-ele-ic" style="background: #9fa2f5;">
435
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/cpc.png">
436
- </div>
437
- <div class="saswp-ele-tlt">
438
- <h3><?php echo saswp_t_string('Classifieds Plugin Compatibility') ?></h3>
439
- <p><?php echo saswp_t_string('Classifieds Plugin Compatibility generated schema markup automatically for classified theme and plugin with just few steps click.') ?></p>
440
- </div>
441
- </div>
442
- <div class="saswp-sts-btn">
443
-
444
- <?php echo $cooked_active_text; ?>
445
-
446
- </div>
447
- </li>
448
 
449
- <li>
450
-
451
- <?php
452
-
453
- $cooked_active_text = '';
454
-
455
- if(is_plugin_active('1-click-indexing-api-integration-for-saswp/1-click-indexing-api-integration-for-saswp.php')){
456
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
457
- }else{
458
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
459
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
460
- }
461
-
462
- ?>
463
-
464
- <div class="saswp-features-ele">
465
- <div class="saswp-ele-ic" style="background: #9fa2f5;">
466
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/indexing.png">
467
- </div>
468
- <div class="saswp-ele-tlt">
469
- <h3><?php echo saswp_t_string('1-Click Indexing API Integration') ?></h3>
470
- <p><?php echo saswp_t_string('The Indexing API allows any site owner to directly notify Google when pages are added or removed. This allows Google to schedule pages for a fresh crawl, which can lead to higher quality user traffic') ?></p>
471
- </div>
472
- </div>
473
- <div class="saswp-sts-btn">
474
-
475
- <?php echo $cooked_active_text; ?>
476
-
477
- </div>
478
- </li>
479
 
480
- <li>
481
-
482
- <?php
483
-
484
- $cooked_active_text = '';
485
-
486
- if(is_plugin_active('wpml-schema-compatibility/wpml-schema-compatibility.php')){
487
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
488
- }else{
489
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
490
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
491
- }
492
-
493
- ?>
494
-
495
- <div class="saswp-features-ele">
496
- <div class="saswp-ele-ic" style="background: #33879e;">
497
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/wpml.png">
498
- </div>
499
- <div class="saswp-ele-tlt">
500
- <h3><?php echo saswp_t_string('WPML Schema Compatibility') ?></h3>
501
- <p><?php echo saswp_t_string('Get Multi-Currency in schema on Woocommerce Product and set placement based on languages for easy display of schema') ?></p>
502
- </div>
503
- </div>
504
- <div class="saswp-sts-btn">
505
-
506
- <?php echo $cooked_active_text; ?>
507
-
508
- </div>
509
- </li>
510
 
511
- <li>
512
-
513
- <?php
514
-
515
- $cooked_active_text = '';
516
-
517
- if(is_plugin_active('polylang-compatibility-for-saswp/polylang-compatibility-for-saswp.php')){
518
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
519
- }else{
520
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
521
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
522
- }
523
-
524
- ?>
525
-
526
- <div class="saswp-features-ele">
527
- <div class="saswp-ele-ic" style="background: #509207;">
528
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/polylang.png">
529
- </div>
530
- <div class="saswp-ele-tlt">
531
- <h3><?php echo saswp_t_string('Polylang Schema Compatibility') ?></h3>
532
- <p><?php echo saswp_t_string('It adds all the static labels from this plugin to Polylang Strings Translations dashboard where user can translate it') ?></p>
533
- </div>
534
- </div>
535
- <div class="saswp-sts-btn">
536
-
537
- <?php echo $cooked_active_text; ?>
538
-
539
- </div>
540
- </li>
541
 
542
- <li>
543
-
544
- <?php
545
-
546
- $cooked_active_text = '';
547
-
548
- if(is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
549
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
550
- }else{
551
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
552
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
553
- }
554
-
555
- ?>
556
-
557
- <div class="saswp-features-ele">
558
- <div class="saswp-ele-ic" style="background: #509207;">
559
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/customer-review.png">
560
- </div>
561
- <div class="saswp-ele-tlt">
562
- <h3><?php echo saswp_t_string('Reviews for Schema') ?></h3>
563
- <p><?php echo saswp_t_string('Fetch reviews from 75+ platforms with a single click with proper structured data so you can get the stars in your search engine rankings. It also works for the AMP.') ?></p>
564
- </div>
565
- </div>
566
- <div class="saswp-sts-btn">
567
-
568
- <?php echo $cooked_active_text; ?>
569
-
570
- </div>
571
- </li>
572
 
 
 
573
 
574
- <li>
575
- <?php
576
-
577
- $cooked_active_text = '';
578
-
579
- if(is_plugin_active('jobposting-schema-compatibility/jobposting-schema-compatibility.php')){
580
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
581
- }else{
582
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
583
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
584
- }
585
-
586
- ?>
587
-
588
- <div class="saswp-features-ele">
589
- <div class="saswp-ele-ic" style="background: #509207;">
590
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/jobposting.png">
591
- </div>
592
- <div class="saswp-ele-tlt">
593
- <h3><?php echo saswp_t_string('JobPosting Schema Compatibility') ?></h3>
594
- <p><?php echo saswp_t_string(' JobPosting Schema Compatibility extension is the number one solution to enhance your JOBs website with the right structured data.') ?></p>
595
- </div>
596
- </div>
597
- <div class="saswp-sts-btn">
598
-
599
- <?php echo $cooked_active_text; ?>
600
-
601
- </div>
602
- </li>
603
 
604
 
605
- <li>
606
- <?php
607
-
608
- $cooked_active_text = '';
609
-
610
- if(is_plugin_active('faq-schema-compatibility/faq-schema-compatibility.php')){
611
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
612
- }else{
613
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
614
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
615
- }
616
-
617
- ?>
618
-
619
- <div class="saswp-features-ele">
620
- <div class="saswp-ele-ic" style="background: #509207;">
621
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/faq.png">
622
- </div>
623
- <div class="saswp-ele-tlt">
624
- <h3><?php echo saswp_t_string('FAQ Schema Compatibility') ?></h3>
625
- <p><?php echo saswp_t_string(' FAQ Schema Compatibility extension is the number one solution to enhance your FAQs website with the right structured data.') ?></p>
626
- </div>
627
- </div>
628
- <div class="saswp-sts-btn">
629
-
630
- <?php echo $cooked_active_text; ?>
631
-
632
- </div>
633
- </li>
634
 
 
635
 
636
- <li>
637
-
638
- <?php
639
-
640
- $cooked_active_text = '';
641
-
642
- if(is_plugin_active('qanda-schema-for-saswp/qanda-schema-for-saswp.php')){
643
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
644
- }else{
645
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
646
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
647
- }
648
-
649
- ?>
650
-
651
- <div class="saswp-features-ele">
652
- <div class="saswp-ele-ic" style="background: #509207;">
653
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/question.png">
654
- </div>
655
- <div class="saswp-ele-tlt">
656
- <h3><?php echo saswp_t_string('Q&A Schema Compatibility') ?></h3>
657
- <p><?php echo saswp_t_string(' extension is the number one solution to enhance your discussion forum website with the right structured data.') ?></p>
658
- </div>
659
- </div>
660
- <div class="saswp-sts-btn">
661
-
662
- <?php echo $cooked_active_text; ?>
663
-
664
- </div>
665
- </li>
666
 
667
- <li>
668
-
669
- <?php
670
-
671
- $cooked_active_text = '';
672
-
673
- if(is_plugin_active('recipe-schema-for-saswp/recipe-schema-for-saswp.php')){
674
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
675
- }else{
676
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
677
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
678
- }
679
-
680
- ?>
681
-
682
- <div class="saswp-features-ele">
683
- <div class="saswp-ele-ic" style="background: #509207;">
684
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/recipe.png">
685
- </div>
686
- <div class="saswp-ele-tlt">
687
- <h3><?php echo saswp_t_string('Recipe Schema') ?></h3>
688
- <p><?php echo saswp_t_string('Recipe Schema extension is the number one solution to enhance your recipe website with the right structured data.') ?></p>
689
- </div>
690
- </div>
691
- <div class="saswp-sts-btn">
692
-
693
- <?php echo $cooked_active_text; ?>
694
-
695
- </div>
696
- </li>
697
-
698
- <li>
699
-
700
- <?php
701
-
702
- $cooked_active_text = '';
703
-
704
- if(is_plugin_active('event-schema-for-saswp/event-schema-for-saswp.php')){
705
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
706
- }else{
707
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
708
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
709
- }
710
-
711
- ?>
712
-
713
- <div class="saswp-features-ele">
714
- <div class="saswp-ele-ic" style="background: #eae4ca;">
715
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/event.png">
716
- </div>
717
- <div class="saswp-ele-tlt">
718
- <h3><?php echo saswp_t_string('Event Schema') ?></h3>
719
- <p><?php echo saswp_t_string('Event Schema extension is the number one solution to enhance your event website with the right structured data.') ?></p>
720
- </div>
721
- </div>
722
- <div class="saswp-sts-btn">
723
-
724
- <?php echo $cooked_active_text; ?>
725
-
726
- </div>
727
- </li>
728
- <li>
729
-
730
- <?php
731
-
732
- $cooked_active_text = '';
733
-
734
- if(is_plugin_active('course-schema-for-saswp/course-schema-for-saswp.php')){
735
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
736
- }else{
737
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
738
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
739
- }
740
-
741
- ?>
742
-
743
- <div class="saswp-features-ele">
744
- <div class="saswp-ele-ic" style="background: #dcb71d;">
745
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/course.png">
746
- </div>
747
- <div class="saswp-ele-tlt">
748
- <h3><?php echo saswp_t_string('Course Schema') ?></h3>
749
- <p><?php echo saswp_t_string('Course Schema extension is the number one solution to enhance your course offering website with the right structured data.') ?></p>
750
- </div>
751
- </div>
752
- <div class="saswp-sts-btn">
753
-
754
- <?php echo $cooked_active_text; ?>
755
-
756
- </div>
757
- </li>
758
- <li>
759
- <?php
760
- $woocommerce_active_text = '';
761
- if(is_plugin_active('woocommerce-compatibility-for-schema/woocommerce-compatibility-for-schema.php')){
762
- $woocommerce_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green">'.saswp_t_string('Active').'</span></label>'; ;
763
- }else{
764
- $woocommerce_active_text .= '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
765
- $woocommerce_active_text .= '<a target="_blank" href="http://structured-data-for-wp.com/extensions/woocommerce-compatibility-for-schema/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
766
- }
767
-
768
- ?>
769
- <div class="saswp-features-ele">
770
- <div class="saswp-ele-ic saswp-ele-1">
771
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/woocommerce-icon.png">
772
- </div>
773
- <div class="saswp-ele-tlt">
774
- <h3><?php echo saswp_t_string('WooCommerce Compatibility for Schema') ?></h3>
775
- <p><?php echo saswp_t_string('WooCommerce Compatibility extension is the number one solution to enhance your store with the right structured data.') ?></p>
776
- </div>
777
- </div>
778
- <div class="saswp-sts-btn">
779
-
780
- <?php echo $woocommerce_active_text; ?>
781
-
782
- </div>
783
- </li>
784
- <li>
785
-
786
- <?php
787
-
788
- $cooked_active_text = '';
789
-
790
- if(is_plugin_active('real-estate-schema/real-estate-schema.php')){
791
- $cooked_active_text = '<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span style="color:green;">'.saswp_t_string('Active').'</span></label>';
792
- }else{
793
- $cooked_active_text .='<label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span>'.saswp_t_string('Inactive').'</span></label>';
794
- $cooked_active_text .='<a target="_blank" href="http://structured-data-for-wp.com/extensions/real-estate-schema/"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
795
- }
796
-
797
- ?>
798
-
799
- <div class="saswp-features-ele">
800
- <div class="saswp-ele-ic" style="background: #ace;">
801
- <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/real-estate-schema-wp.png">
802
- </div>
803
- <div class="saswp-ele-tlt">
804
- <h3><?php echo saswp_t_string('Real Estate Schema') ?></h3>
805
- <p><?php echo saswp_t_string('Real Estate Schema extension is the number one solution to enhance your real estate website with the right structured data.') ?></p>
806
- </div>
807
- </div>
808
- <div class="saswp-sts-btn">
809
-
810
- <?php echo $cooked_active_text; ?>
811
-
812
- </div>
813
- </li>
814
-
815
- </ul>
816
- </div>
817
 
818
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
819
  }
 
 
 
 
820
 
821
  function saswp_services_callback(){ ?>
822
  <div class="saswp-pre-ftrs-wrap">
823
- <ul class="saswp-features-blocks">
824
  <li>
825
- <div class="saswp-features-ele">
826
- <div class="saswp-ele-ic saswp-ele-4" style="background: #69e781;">
827
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/support-1.png">
828
- </div>
829
- <div class="saswp-ele-tlt">
830
- <h3><?php echo saswp_t_string('Priority Support') ?></h3>
831
- <p><?php echo saswp_t_string('We get more than 100 technical queries a day but the Priority support plan will help you skip that and get the help from a dedicated team.') ?></p>
832
- </div>
833
- </div>
834
  <a target="_blank" href="https://structured-data-for-wp.com/priority-support//">
835
- <div class="saswp-sts-btn">
836
- <span class="saswp-d-btn"><?php echo saswp_t_string('Try it') ?></span>
837
- </div>
838
  </a>
839
-
840
- </li>
841
- <li>
842
- <div class="saswp-features-ele">
843
- <div class="saswp-ele-ic saswp-ele-3">
844
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/news.png">
845
- </div>
846
- <div class="saswp-ele-tlt">
847
- <h3><?php echo saswp_t_string('Google News Schema Setup') ?></h3>
848
- <p><?php echo saswp_t_string('Get quick approval to Google News with our service. Our structured data experts will set up the Google News schema properly on your website.') ?></p>
849
- </div>
850
- </div>
851
  <a target="_blank" href="http://structured-data-for-wp.com/services/google-news-schema-setup/">
852
- <div class="saswp-sts-btn">
853
- <span class="saswp-d-btn"><?php echo saswp_t_string('Try it') ?></span>
854
- </div>
855
  </a>
856
-
857
- </li>
858
- <li>
859
- <div class="saswp-features-ele">
860
- <div class="saswp-ele-ic saswp-ele-4">
861
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/schema-setup-icon.png">
862
- </div>
863
- <div class="saswp-ele-tlt">
864
- <h3><?php echo saswp_t_string('Structured Data Setup & Error Clean Up') ?></h3>
865
- <p><?php echo saswp_t_string('We will help you setup Schema and Structured data on your website as per your requirements and as per recommendation by our expert developers.') ?></p>
866
- </div>
867
- </div>
868
  <a target="_blank" href="http://structured-data-for-wp.com/services/structured-data-setup-error-clean-up/">
869
- <div class="saswp-sts-btn">
870
- <span class="saswp-d-btn"><?php echo saswp_t_string('Try it') ?></span>
871
- </div>
872
  </a>
873
-
874
- </li>
875
- </ul>
876
- </div>
877
 
878
  <?php }
879
  function saswp_amp_page_callback(){
@@ -1038,7 +1045,7 @@ function saswp_general_page_callback(){
1038
  'id' => 'saswp_comments_schema',
1039
  'name' => 'sd_data[saswp_comments_schema]',
1040
  )
1041
- );
1042
 
1043
  if($nav_menu){
1044
 
@@ -1395,7 +1402,7 @@ function saswp_general_page_callback(){
1395
 
1396
  if(is_plugin_active('woocommerce/woocommerce.php')){
1397
 
1398
- $meta_fields_default[] = array(
1399
  'label' => 'Product Default Review',
1400
  'id' => 'saswp-default-review-checkbox',
1401
  'name' => 'saswp-default-review-checkbox',
@@ -1407,6 +1414,31 @@ function saswp_general_page_callback(){
1407
  'name' => 'sd_data[saswp_default_review]',
1408
  )
1409
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1410
 
1411
  }
1412
 
@@ -1830,6 +1862,9 @@ if(is_array($translation_labels)){
1830
 
1831
  }
1832
  echo '</ul>';
 
 
 
1833
 
1834
  $add_on = array();
1835
 
@@ -1903,10 +1938,16 @@ echo '</ul>';
1903
  $add_on[] = 'Rs';
1904
 
1905
  }
 
 
 
 
 
 
1906
 
1907
  if(!empty($add_on)){
1908
 
1909
- echo '<h2 id="saswp-license-heading">'.saswp_t_string('License').'</h2>';
1910
 
1911
  echo '<ul>';
1912
 
@@ -1927,10 +1968,25 @@ echo '</ul>';
1927
  if(isset($sd_data[strtolower($on).'_addon_license_key_message'])){
1928
  $license_status_msg = $sd_data[strtolower($on).'_addon_license_key_message'];
1929
  }
1930
-
1931
- echo '<li>';
1932
- echo saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg, true, false);
1933
- echo '</li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1934
 
1935
  }
1936
 
@@ -1949,57 +2005,57 @@ echo '</ul>';
1949
 
1950
  }
1951
 
1952
- function saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg, $label=null, $limit_status=null){
1953
-
1954
  $limits_html = $response = '';
1955
 
1956
  $limits = get_option('reviews_addon_reviews_limits');
1957
 
1958
- if($limit_status){
1959
- $limits_html = '<span style="padding:10px;">Maximum Reviews Limits '. esc_attr($limits).'</span>';
1960
  }
1961
 
 
1962
  $response.= '<div class="saswp-tools-field-title">';
1963
 
1964
  if($label == true && $on == 'OCIAIFS'){
1965
 
1966
  $response.= '<div class="saswp-license-label">';
1967
- $response.= '<strong>'.saswp_t_string('1-Click Indexing API Integration').'</strong>';
1968
  $response.= '</div>';
1969
 
1970
  }
1971
  if($label == true && $on == 'Polylang'){
1972
 
1973
  $response.= '<div class="saswp-license-label">';
1974
- $response.= '<strong>'.saswp_t_string(''.$on.' Schema Compatibility').'</strong>';
1975
  $response.= '</div>';
1976
 
1977
  }
1978
  if($label == true && $on == 'CPC'){
1979
 
1980
  $response.= '<div class="saswp-license-label">';
1981
- $response.= '<strong>'.saswp_t_string('Classifieds Plugin Compatibility').'</strong>';
1982
  $response.= '</div>';
1983
 
1984
  }
1985
  if($label == true && $on == 'WPML'){
1986
 
1987
  $response.= '<div class="saswp-license-label">';
1988
- $response.= '<strong>'.saswp_t_string(''.$on.' Schema Compatibility').'</strong>';
1989
  $response.= '</div>';
1990
 
1991
  }
1992
  if($label == true && $on == 'Cooked'){
1993
 
1994
  $response.= '<div class="saswp-license-label">';
1995
- $response.= '<strong>'.saswp_t_string(''.$on.' Compatibility For Schema').'</strong>';
1996
  $response.= '</div>';
1997
 
1998
  }
1999
  if($label == true && $on == 'Woocommerce'){
2000
 
2001
  $response.= '<div class="saswp-license-label">';
2002
- $response.= '<strong>'.saswp_t_string(''.$on.' Compatibility For Schema').'</strong>';
2003
  $response.= '</div>';
2004
 
2005
  }
@@ -2007,7 +2063,7 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2007
  if($label == true && $on == 'Res'){
2008
 
2009
  $response.= '<div class="saswp-license-label">';
2010
- $response.= '<strong>'.saswp_t_string('Real Estate Schema').'</strong>';
2011
  $response.= '</div>';
2012
 
2013
  }
@@ -2015,7 +2071,7 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2015
  if($label == true && $on == 'Jobposting'){
2016
 
2017
  $response.= '<div class="saswp-license-label">';
2018
- $response.= '<strong>'.saswp_t_string('JobPosting Schema Compatibility').'</strong>';
2019
  $response.= '</div>';
2020
 
2021
  }
@@ -2023,14 +2079,14 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2023
  if($label == true && $on == 'Cs'){
2024
 
2025
  $response.= '<div class="saswp-license-label">';
2026
- $response.= '<strong>'.saswp_t_string('Course Schema').'</strong>';
2027
  $response.= '</div>';
2028
 
2029
  }
2030
  if($label == true && $on == 'Es'){
2031
 
2032
  $response.= '<div class="saswp-license-label">';
2033
- $response.= '<strong>'.saswp_t_string('Event Schema').'</strong>';
2034
  $response.= '</div>';
2035
 
2036
  }
@@ -2038,7 +2094,7 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2038
  if($label == true && $on == 'qanda'){
2039
 
2040
  $response.= '<div class="saswp-license-label">';
2041
- $response.= '<strong>'.saswp_t_string('Q&A Schema').'</strong>';
2042
  $response.= '</div>';
2043
 
2044
  }
@@ -2046,7 +2102,7 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2046
  if($label == true && $on == 'faq'){
2047
 
2048
  $response.= '<div class="saswp-license-label">';
2049
- $response.= '<strong>'.saswp_t_string('FAQ Schema Compatibility').'</strong>';
2050
  $response.= '</div>';
2051
 
2052
  }
@@ -2054,42 +2110,152 @@ function saswp_get_license_section_html($on, $license_key, $license_status, $lic
2054
  if($label == true && $on == 'Rs'){
2055
 
2056
  $response.= '<div class="saswp-license-label">';
2057
- $response.= '<strong>'.saswp_t_string('Recipe Schema').'</strong>';
2058
  $response.= '</div>';
2059
 
2060
  }
2061
-
 
 
 
 
 
 
 
 
 
 
 
2062
  if($license_status == 'active'){
2063
-
2064
- $response.= '<span class="dashicons dashicons-yes saswp-'.strtolower($on).'-dashicons" style="color: #46b450;"></span>';
2065
-
2066
- }else{
2067
-
2068
- $response.= '<span class="dashicons dashicons-no-alt saswp-'.strtolower($on).'-dashicons" style="color: #dc3232;"></span>';
2069
-
 
 
 
2070
  }
2071
-
2072
- $response.= '<input type="text" placeholder="Enter License Key" id="'.strtolower($on).'_addon_license_key" name="sd_data['.strtolower($on).'_addon_license_key]" value="'.esc_attr($license_key).'">';
2073
-
2074
- $response.= '<input type="hidden" id="'.strtolower($on).'_addon_license_key_status" name="sd_data['.strtolower($on).'_addon_license_key_status]" value="'.esc_attr($license_status).'">';
2075
-
2076
- if($license_status == 'active'){
2077
-
2078
- $response.= '<a license-status="inactive" add-on="'.strtolower($on).'" class="button button-default saswp_license_activation">'.saswp_t_string('Deactivate').'</a>'.$limits_html;
2079
-
2080
- }else{
2081
-
2082
- $response.= '<a license-status="active" add-on="'.strtolower($on).'" class="button button-default saswp_license_activation">'.saswp_t_string('Activate').'</a>'.$limits_html;
2083
-
 
 
 
 
 
 
 
2084
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2085
 
2086
- if($license_status_msg !='active'){
2087
-
2088
- $response.= '<p style="color:red;" add-on="'.strtolower($on).'" class="saswp_license_status_msg">'.$license_status_msg.'</p>';
2089
- }
2090
-
2091
- $response.= '<p>'.saswp_t_string('Enter your '.$on.' addon license key to activate updates & support.').'</p>';
2092
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2093
  $response.= '</div>';
2094
 
2095
  return $response;
@@ -3622,6 +3788,18 @@ function saswp_compatibility_page_callback(){
3622
  'name' => 'sd_data[saswp-soledad]',
3623
  )
3624
  );
 
 
 
 
 
 
 
 
 
 
 
 
3625
  $reviews_wp_theme = array(
3626
  'label' => 'Reviews WP Theme',
3627
  'id' => 'saswp-wp-theme-reviews-checkbox',
@@ -3866,6 +4044,7 @@ function saswp_compatibility_page_callback(){
3866
  $wpfaqschemamarkup['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
3867
  $faqschemaforpost['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
3868
  $webfaq10['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
 
3869
 
3870
  }
3871
  if(!is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
@@ -3955,6 +4134,7 @@ function saswp_compatibility_page_callback(){
3955
  $woocommerce_mem,
3956
  $cooked,
3957
  $soledad,
 
3958
  $reviews_wp_theme,
3959
  $taqyeem,
3960
  $wp_product_review,
101
  ?>
102
  <div class="saswp-settings-container">
103
  <div class="wrap saswp-settings-form saswp-settings-first-div" style="<?php echo( saswp_ext_installed_status()? 'width:100%;':''); ?>">
104
+ <?php
105
+ if ( class_exists('SASWPPROExtensionManager') ) {
106
+ $license_info = get_option( 'saswppro_license_info');
107
+ if ( defined('SASWPPRO_PLUGIN_DIR') && !empty($license_info) ){
108
+ $saswp_pro_manager = SASWPPRO_PLUGIN_DIR.'inc/saswp-ext-manager-lic-data.php';
109
+ if( file_exists($saswp_pro_manager) ){
110
+ require_once $saswp_pro_manager;
111
+ }
112
+ }
113
+ }
114
+ ?>
115
+ <?php
116
+ if ( !class_exists('SASWPPROExtensionManager') ) {
117
+ $license_info = get_option( 'saswppro_license_info');
118
+ if ( !defined('SASWPPRO_PLUGIN_DIR') || empty($license_info) ){
119
+ $saswp_add_on = array();
120
+ if(is_plugin_active('1-click-indexing-api-integration-for-saswp/1-click-indexing-api-integration-for-saswp.php')){
121
+ $saswp_add_on[] = 'OCIAIFS';
122
+ }
123
+ if(is_plugin_active('cooked-compatibility-for-schema/cooked-compatibility-for-schema.php')){
124
+ $saswp_add_on[] = 'Cooked';
125
+ }
126
+ if(is_plugin_active('polylang-compatibility-for-saswp/polylang-compatibility-for-saswp.php')){
127
+ $saswp_add_on[] = 'Polylang';
128
+ }
129
+ if(is_plugin_active('classifieds-plugin-compatibility/classifieds-plugin-compatibility.php')){
130
+ $saswp_add_on[] = 'CPC';
131
+ }
132
+ if(is_plugin_active('wpml-schema-compatibility/wpml-schema-compatibility.php')){
133
+ $saswp_add_on[] = 'WPML';
134
+ }
135
+ if(is_plugin_active('jobposting-schema-compatibility/jobposting-schema-compatibility.php')){
136
+ $saswp_add_on[] = 'Jobposting';
137
+ }
138
+ if(is_plugin_active('woocommerce-compatibility-for-schema/woocommerce-compatibility-for-schema.php')){
139
+ $saswp_add_on[] = 'Woocommerce';
140
+ }
141
+ if(is_plugin_active('real-estate-schema/real-estate-schema.php')){
142
+ $saswp_add_on[] = 'Res';
143
+ }
144
+ if(is_plugin_active('course-schema-for-saswp/course-schema-for-saswp.php')){
145
+ $saswp_add_on[] = 'Cs';
146
+ }
147
+ if(is_plugin_active('qanda-schema-for-saswp/qanda-schema-for-saswp.php')){
148
+ $saswp_add_on[] = 'qanda';
149
+ }
150
+ if(is_plugin_active('faq-schema-compatibility/faq-schema-compatibility.php')){
151
+ $saswp_add_on[] = 'faq';
152
+ }
153
+ if(is_plugin_active('event-schema-for-saswp/event-schema-for-saswp.php')){
154
+ $saswp_add_on[] = 'Es';
155
+ }
156
+ if(is_plugin_active('recipe-schema-for-saswp/recipe-schema-for-saswp.php')){
157
+ $saswp_add_on[] = 'Rs';
158
+ }
159
+ if(is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
160
+ $saswp_add_on[] = 'reviews';
161
+ }
162
+ $expiredLicensedata = array();
163
+ foreach($saswp_add_on as $addon){
164
+
165
+ global $sd_data;
166
+ $license_key = '';
167
+ $license_status = 'inactive';
168
+ $license_status_msg = '';
169
+ $license_user_name = '';
170
+ if(isset($sd_data[strtolower($addon).'_addon_license_key'])){
171
+ $license_key = $sd_data[strtolower($addon).'_addon_license_key'];
172
+ }
173
+
174
+ if(isset($sd_data[strtolower($addon).'_addon_license_key_status'])){
175
+ $license_status = $sd_data[strtolower($addon).'_addon_license_key_status'];
176
+ }
177
+ if(isset($sd_data[strtolower($addon).'_addon_license_key_message'])){
178
+ $license_status_msg = $sd_data[strtolower($addon).'_addon_license_key_message'];
179
+ }
180
+ if (isset($sd_data[strtolower($addon).'_addon_license_key_user_name'])) {
181
+ $license_user_name = $sd_data[strtolower($addon).'_addon_license_key_user_name'];
182
+ }
183
+
184
+ if (isset($sd_data[strtolower($addon).'_addon_license_key_download_id'])) {
185
+ $license_download_id = $sd_data[strtolower($addon).'_addon_license_key_download_id'];
186
+ }
187
+
188
+ if (isset($sd_data[strtolower($addon).'_addon_license_key_expires'])) {
189
+ // $sd_data['woocommerce_addon_license_key_expires'] = -1;
190
+ $license_expires = $sd_data[strtolower($addon).'_addon_license_key_expires'];
191
+ $expiredLicensedata[strtolower($addon)] = $license_expires < 0 ? 1 : 0 ;
192
+ }
193
+ }
194
+
195
+ if ( isset( $license_user_name ) && $license_user_name!=="" && isset( $license_expires ) ){
196
+ if ( !empty( $addon ) && $license_status =='active' ) {
197
+
198
+ $renew = "no";
199
+ $license_exp = "";
200
+ $license_k = $license_key;
201
+ $download_id = $license_download_id;
202
+ $days = $license_expires;
203
+ // print_r($days);die;
204
+ // print_r($expiredLicensedata);die;
205
+ $one_of_plugin_expired = 0;
206
+ if ( in_array( 1, $expiredLicensedata ) ){
207
+ $one_of_plugin_expired = 1;
208
+ }
209
+ if ( !in_array( 0, $expiredLicensedata ) ){
210
+ $one_of_plugin_expired = 0;
211
+ }
212
+ $exp_id = '';
213
+ $expire_msg = '';
214
+ $renew_mesg = '';
215
+ $span_class = '';
216
+ $expire_msg_before = '';
217
+ $ZtoS_days = '';
218
+ $refresh_addon = '';
219
+ $refresh_addon_user = '';
220
+ $alert_icon = '';
221
+ $ext_settings_url = 'ext_url';
222
+ $settings_url = esc_url(admin_url('edit.php?post_type=saswp&page=structured_data_options'));
223
+ if ( $days == 'Lifetime' ) {
224
+ $expire_msg = " ".saswp_t_string('Valid for Lifetime')." ";
225
+ // $expire_msg = " Active ";
226
+ $expire_msg_before = '<span class="before_msg_active">'.saswp_t_string('Your License is').'</span>';
227
+ $span_class = "saswp_addon_icon dashicons dashicons-yes pro_icon saswppro_icon";
228
+ $color = 'color:green';
229
+ }
230
+ elseif( $days >= 0 && $days <= 7 ){
231
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_k."&download_id=".$download_id."";
232
+ $expire_msg_before = '<span class="before_msg">'.saswp_t_string('Your License is').'</span> <span class="saswp-addon-alert">'.saswp_t_string('expiring in').' '.$days.' '.saswp_t_string('days').'</span><a target="blank" class="renewal-license" href="'.$renew_url.'"><span class="renew-lic">'.esc_html__('Renew', 'saswp').'</span></a>';
233
+ // $span_class = "saswp_addon_icon dashicons dashicons-alert pro_icon";
234
+ $color = 'color:green';
235
+ $alert_icon = '<span class="saswp_addon_icon dashicons dashicons-warning pro_warning"></span>';
236
+ }
237
+ elseif( $days>=0 && $days<=30 ){
238
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_k."&download_id=".$download_id."";
239
+ $expire_msg_before = '<span class="before_msg">'.saswp_t_string('Your License is').'</span> <span class="saswp-addon-alert">'.saswp_t_string('expiring in').' '.$days.' '.saswp_t_string('days').'</span><a target="blank" class="renewal-license" href="'.$renew_url.'"><span class="renew-lic">'.esc_html__('Renew', 'saswp').'</span></a>';
240
+ // $span_class = "saswp_addon_icon dashicons dashicons-alert pro_icon";
241
+ $color = 'color:green';
242
+ $alert_icon = '<span class="saswp_addon_icon dashicons dashicons-warning pro_warning"></span>';
243
+ }
244
+ elseif($days<0){
245
+ $ext_settings_url = 'ext_settings_url';
246
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_k."&download_id=".$download_id."";
247
+ if ($one_of_plugin_expired == 1) {
248
+ $expire_msg_before = '<span class="saswp_addon_inactive">'.saswp_t_string('One of your').' <span class="<than_0" style="color:red;">'.saswp_t_string('license key is').'</span></span>';
249
+ }else{
250
+ $expire_msg_before = '<span class="saswp_addon_inactive">'.saswp_t_string('Your').' <span class="<than_0" style="color:red;">'.saswp_t_string('License has been').'</span></span>';
251
+ }
252
+ $expire_msg = " Expired ";
253
+ $exp_class = 'expired';
254
+ $exp_id = 'exp';
255
+ $exp_class_2 = 'renew_license_key_';
256
+ $span_class = "saswp_addon_icon dashicons dashicons-no";
257
+
258
+ $renew_mesg = '<a target="blank" class="renewal-license" href="'.$renew_url.'"><span class="renew-lic">'.esc_html__('Renew', 'saswp').'</span></a>';
259
+ $color = 'color:red';
260
+ }
261
+ else{
262
+ if ($one_of_plugin_expired == 1) {
263
+ $expire_msg_before = '<span class="before_msg_active">'.saswp_t_string('One of your').' <span class=">than_30" style="color:red;">'.saswp_t_string('license key is').'</span></span>';
264
+ }else{
265
+ $expire_msg_before = '<span class="before_msg_active">'.saswp_t_string('Your License is').'</span>';
266
+ }
267
+ if ($one_of_plugin_expired == 1) {
268
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_k."&download_id=".$download_id."";
269
+ $expire_msg = " <span class='one_of_expired'>".saswp_t_string('Expired')."</span> ";
270
+ $renew_mesg = '<a target="blank" class="renewal-license" href="'.$renew_url.'"><span class="renew-lic">'.esc_html__('Renew', 'saswp').'</span></a>';
271
+ }
272
+ else{
273
+ $expire_msg = " Active ";
274
+ }
275
+ if ($one_of_plugin_expired == 1) {
276
+ $span_class = "saswp_addon_icon dashicons dashicons-no pro_icon";
277
+ }
278
+ else{
279
+ $span_class = "saswp_addon_icon dashicons dashicons-yes pro_icon saswppro_icon";
280
+ }
281
+ if ($one_of_plugin_expired == 1) { $color = 'color:red';}
282
+ else{ $color = 'color:green'; }
283
+ }
284
+ if($days<0){
285
+ $exp_id = 'exp';
286
+ }
287
+ $saswp_addon_license_info = "<div class='sasfwp-main'>
288
+ <span class='sasfwp-info'>
289
+ ".$alert_icon."<span class='activated-plugins'>".saswp_t_string('Hi')." <span class='sasfwp_key_user_name'>".esc_html($license_user_name)."</span>".','."
290
+ <span id='activated-plugins-days_remaining' days_remaining=".$days."> ".$expire_msg_before." <span expired-days-data=".$days." class='expiredinner_span' id=".$exp_id.">".$expire_msg."</span></span>
291
+ <span class='".$span_class."'></span>".$renew_mesg.$refresh_addon.$refresh_addon_user ;
292
+ $trans_check = get_transient( 'saswp_addons_set_transient' );
293
+
294
+ $saswp_addon_license_info .= $ZtoS_days."
295
+ </span>
296
+ </div>";
297
+ echo $saswp_addon_license_info;
298
+ }
299
+ }
300
+ }
301
+ }
302
+ ?>
303
+ <h1 class="wp-heading-inline"> <?php echo saswp_t_string( 'Schema & Structured Data' ); ?> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=saswp' ) ); ?>" class="page-title-action"><?php echo saswp_t_string( 'Schema Types' ); ?></a></h1>
304
+
305
+ <br>
306
  <div>
307
  <h2 class="nav-tab-wrapper saswp-tabs">
308
 
309
  <?php
310
+ $license_alert = $license_expires = $license_expnormal = '' ;
311
+ $saswp_add_on = array();
312
+ if(is_plugin_active('1-click-indexing-api-integration-for-saswp/1-click-indexing-api-integration-for-saswp.php')){
313
+ $saswp_add_on[] = 'OCIAIFS';
314
+ }
315
+ if(is_plugin_active('cooked-compatibility-for-schema/cooked-compatibility-for-schema.php')){
316
+ $saswp_add_on[] = 'Cooked';
317
+ }
318
+ if(is_plugin_active('polylang-compatibility-for-saswp/polylang-compatibility-for-saswp.php')){
319
+ $saswp_add_on[] = 'Polylang';
320
+ }
321
+ if(is_plugin_active('classifieds-plugin-compatibility/classifieds-plugin-compatibility.php')){
322
+ $saswp_add_on[] = 'CPC';
323
+ }
324
+ if(is_plugin_active('wpml-schema-compatibility/wpml-schema-compatibility.php')){
325
+ $saswp_add_on[] = 'WPML';
326
+ }
327
+ if(is_plugin_active('jobposting-schema-compatibility/jobposting-schema-compatibility.php')){
328
+ $saswp_add_on[] = 'Jobposting';
329
+ }
330
+ if(is_plugin_active('woocommerce-compatibility-for-schema/woocommerce-compatibility-for-schema.php')){
331
+ $saswp_add_on[] = 'Woocommerce';
332
+ }
333
+ if(is_plugin_active('real-estate-schema/real-estate-schema.php')){
334
+ $saswp_add_on[] = 'Res';
335
+ }
336
+ if(is_plugin_active('course-schema-for-saswp/course-schema-for-saswp.php')){
337
+ $saswp_add_on[] = 'Cs';
338
+ }
339
+ if(is_plugin_active('qanda-schema-for-saswp/qanda-schema-for-saswp.php')){
340
+ $saswp_add_on[] = 'qanda';
341
+ }
342
+ if(is_plugin_active('faq-schema-compatibility/faq-schema-compatibility.php')){
343
+ $saswp_add_on[] = 'faq';
344
+ }
345
+ if(is_plugin_active('event-schema-for-saswp/event-schema-for-saswp.php')){
346
+ $saswp_add_on[] = 'Es';
347
+ }
348
+ if(is_plugin_active('recipe-schema-for-saswp/recipe-schema-for-saswp.php')){
349
+ $saswp_add_on[] = 'Rs';
350
+ }
351
+ if(is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
352
+ $saswp_add_on[] = 'reviews';
353
+ }
354
+
355
+ foreach($saswp_add_on as $addon){
356
+ global $sd_data;
357
+ $license_key = '';
358
+ $license_status = 'inactive';
359
+ $license_status_msg = '';
360
+ $license_user_name = '';
361
+ $license_expires = '';
362
+ $license_expnormal = '';
363
+
364
+ if (isset($sd_data[strtolower($addon).'_addon_license_key_expires'])) {
365
+ $license_expires = $sd_data[strtolower($addon).'_addon_license_key_expires'];
366
+ }
367
+
368
+ if (isset($sd_data[strtolower($addon).'_addon_license_key_expires_normal'])) {
369
+ $license_expnormal = $sd_data[strtolower($addon).'_addon_license_key_expires_normal'];
370
+ }
371
+
372
+ }
373
+
374
+ $license_alert = '' ;
375
+ if($license_expires){
376
+ if( $license_expires == 'Lifetime' ){
377
+ $days = 'Lifetime';
378
+ }
379
+ }
380
+
381
+ if( $license_expires !== 'Lifetime' ){
382
+ $today = date('Y-m-d');
383
+ $exp_date = $license_expnormal;
384
+ $date1 = date_create($today);
385
+ $date2 = date_create($exp_date);
386
+ $diff = date_diff($date1,$date2);
387
+ $days = $diff->format("%a");
388
+ if($today > $exp_date ){
389
+ $days = -$days;
390
+ }
391
+ }
392
+ if ( function_exists('saswp_cpc_schema_updater') || function_exists('saswp_enqueue_instant_indexing_js') || function_exists('saswp_wpml_schema_compatibility') || function_exists('polylang_compatibility_for_schema_updater') || function_exists('reviews_for_schema_updater') || function_exists('saswp_jobposting_schema_updater') || function_exists('saswp_faq_schema_updater') || function_exists('qanda_schema_updater') || function_exists('saswp_recipe_schema_updater') || function_exists('event_schema_updater') ||function_exists('course_schema_updater') ||function_exists('woocommerce_compatibility_for_schema_updater') ||function_exists('real_estate_schema_updater') ) {
393
+
394
+ $license_alert = isset($days) && $days!==0 && $days<=30 && $days!=='Lifetime' ? "<span class='saswp_pro_icon dashicons dashicons-warning saswp_pro_alert'></span>": "" ;
395
+ }
396
 
397
  $tab_links = apply_filters( 'saswp_extra_settings_tab_link',
398
  array(
402
  '<a href="' . esc_url(saswp_admin_link('compatibility')) . '" class="nav-tab ' . esc_attr( $tab == 'compatibility' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Compatibility') . '</a>',
403
  '<a href="' . esc_url(saswp_admin_link('email_schema')) . '" class="nav-tab ' . esc_attr( $tab == 'email_schema' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Email Schema') . '</a>',
404
  '<a href="' . esc_url(saswp_admin_link('tools')) . '" class="nav-tab ' . esc_attr( $tab == 'tools' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Advanced') . '</a>',
405
+ '<a href="'.esc_url( admin_url( 'admin.php?page=structured_data_options&tab=premium_features' ) ).'" data-extmgr="'. ( class_exists('SASWPPROExtensionManager')? "yes": "no" ).'" class="nav-tab ' . esc_attr( $tab == 'premium_features' ? 'nav-tab-active' : '') . '"><span class=""></span> '.$license_alert.'' . saswp_t_string('Premium Features') . '</a>',
406
  '<a href="' . esc_url(saswp_admin_link('services')) . '" class="nav-tab ' . esc_attr( $tab == 'services' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Services') . '</a>',
407
  '<a href="' . esc_url(saswp_admin_link('support')) . '" class="nav-tab ' . esc_attr( $tab == 'support' ? 'nav-tab-active' : '') . '"><span class=""></span> ' . saswp_t_string('Support') . '</a>',
408
  //'<a target="_blank" href="http://structured-data-for-wp.com/festive-season/" class="nav-tab saswp-offer-banner">50% OFF for LIMITED time</a>'
472
 
473
  echo '<div id="saswp-tools-tabs" style="margin-top: 10px;">';
474
 
475
+ echo '<a class="saswp-tools-tab-nav" href="#saswp-advanced-heading">'.saswp_t_string('Advanced').'</a> | <a href="#saswp-translation-heading" class="saswp-tools-tab-nav">'.saswp_t_string('Translation Panel').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-migration-heading">'.saswp_t_string('Migration').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-import-export-heading">'.saswp_t_string('Import / Export').'</a> | <a class="saswp-tools-tab-nav" href="#saswp-misc-heading">'.saswp_t_string('Misc').'</a> | <a class="saswp-tools-tab-nav" href="' . esc_url( admin_url( 'admin.php?page=structured_data_options&tab=premium_features' ) ) . '">' . saswp_t_string( 'License' ) . '</a>';
476
 
477
  echo'</div> ';
478
  // Status
695
 
696
  }
697
 
698
+ function saswp_is_check_plugin($ext_ind,$index){
699
+
700
+ if(function_exists($ext_ind)){
701
+ global $sd_data;
702
+
703
+
704
+ $license_key = '';
705
+ $license_status = 'inactive';
706
+ $license_status_msg = '';
707
+ $license_user_name = '';
708
+ $license_download_id = '';
709
+ $license_expires = '';
710
+ $license_expnormal = '';
711
+
712
+ if(isset($sd_data[strtolower($index).'_addon_license_key'])){
713
+ $license_key = $sd_data[strtolower($index).'_addon_license_key'];
714
+ }
715
+
716
+ if(isset($sd_data[strtolower($index).'_addon_license_key_status'])){
717
+ $license_status = $sd_data[strtolower($index).'_addon_license_key_status'];
718
+ }
719
+
720
+ if(isset($sd_data[strtolower($index).'_addon_license_key_message'])){
721
+ $license_status_msg = $sd_data[strtolower($index).'_addon_license_key_message'];
722
+ }
723
+
724
+ if (isset($sd_data[strtolower($index).'_addon_license_key_user_name'])) {
725
+ $license_user_name = $sd_data[strtolower($index).'_addon_license_key_user_name'];
726
+ }
727
+
728
+ if (isset($sd_data[strtolower($index).'_addon_license_key_download_id'])) {
729
+ $license_download_id = $sd_data[strtolower($index).'_addon_license_key_download_id'];
730
+ }
731
+
732
+ if (isset($sd_data[strtolower($index).'_addon_license_key_expires'])) {
733
+ $license_expires = $sd_data[strtolower($index).'_addon_license_key_expires'];
734
+ }
735
+
736
+ if (isset($sd_data[strtolower($index).'_addon_license_key_expires_normal'])) {
737
+ $license_expnormal = $sd_data[strtolower($index).'_addon_license_key_expires_normal'];
738
+ }
739
+
740
+ $active_data = saswp_get_license_section_html($index, $license_key, $license_status, $license_status_msg, $license_user_name, $license_download_id,$license_expires, $license_expnormal, true, false);
741
+
742
+ return $active_data;
743
+ }
744
+
745
+ return false;
746
+ }
747
 
748
  function saswp_premium_features_callback(){ ?>
749
 
750
  <div class="saswp-pre-ftrs-wrap">
751
 
752
  <ul class="saswp-features-blocks">
753
+
 
 
754
  <?php
755
 
756
  $cooked_active_text = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
 
758
+ // print_r($add_on);die;
759
+ // $status = saswp_is_check_plugin('OCIAIFS');
760
+ $main_ext_array = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
761
 
762
+ $main_ext_array['CPC'] = array( 'name' => 'Classifieds Plugin Compatibility','desc' => 'Classifieds Plugin Compatibility generated schema markup automatically for classified theme and plugin with just few steps click.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/cpc.png', 'bgcolor' => '#9fa2f5', 'href' => 'https://structured-data-for-wp.com/classifieds-plugin-compatibility/' , 'status' => saswp_is_check_plugin('saswp_cpc_schema_updater','CPC'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
763
 
764
+ $main_ext_array['OCIAIFS'] = array( 'name' => '1-Click Indexing API Integration','desc' => 'The Indexing API allows any site owner to directly notify Google when pages are added or removed. This allows Google to schedule pages for a fresh crawl, which can lead to higher quality user traffic' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/indexing.png', 'bgcolor' => '#9fa2f5', 'href' => 'https://structured-data-for-wp.com/1-click-indexing-api-integration/' , 'status' => saswp_is_check_plugin('saswp_enqueue_instant_indexing_js','OCIAIFS'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
 
766
+ $main_ext_array['WPML'] = array( 'name' => 'WPML Schema Compatibility
767
+ ','desc' => 'Get Multi-Currency in schema on Woocommerce Product and set placement based on languages for easy display of schema' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/wpml.png', 'bgcolor' => '#33879e', 'href' => 'https://structured-data-for-wp.com/wpml-schema-compatibility/' , 'status' => saswp_is_check_plugin('saswp_wpml_schema_compatibility','WPML'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
768
 
769
+ $main_ext_array['Polylang'] = array( 'name' => 'Polylang Schema Compatibility
770
+ ','desc' => 'It adds all the static labels from this plugin to Polylang Strings Translations dashboard where user can translate it' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/polylang.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/polylang-compatibility-for-saswp' , 'status' => saswp_is_check_plugin('polylang_compatibility_for_schema_updater','Polylang'));
771
 
772
+ $main_ext_array['reviews'] = array( 'name' => 'Reviews for Schema','desc' => 'Fetch reviews from 75+ platforms with a single click with proper structured data so you can get the stars in your search engine rankings, works for AMP.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/customer-review.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/reviews-for-schema' , 'status' => saswp_is_check_plugin('reviews_for_schema_updater','reviews'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
 
774
 
775
+ $main_ext_array['Jobposting'] = array( 'name' => 'JobPosting Schema Compatibility','desc' => 'JobPosting Schema Compatibility extension is the number one solution to enhance your JOBs website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/jobposting.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/jobposting-schema-compatibility/' , 'status' => saswp_is_check_plugin('saswp_jobposting_schema_updater','Jobposting'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
776
 
777
+ $main_ext_array['faq'] = array( 'name' => 'FAQ Schema Compatibility','desc' => 'FAQ Schema Compatibility extension is the number one solution to enhance your FAQs website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/faq.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/faq-schema-compatibility/' , 'status' => saswp_is_check_plugin('saswp_faq_schema_updater','faq'));
778
 
779
+ $main_ext_array['qanda'] = array( 'name' => 'Q&A Schema Compatibility','desc' => 'Q&A Schema Compatibility extension is the number one solution to enhance your discussion forum website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/question.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/qanda-schema-for-saswp/' , 'status' => saswp_is_check_plugin('qanda_schema_updater','qanda'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
780
 
781
+ $main_ext_array['Rs'] = array( 'name' => 'Recipe Schema','desc' => 'Recipe Schema extension is the number one solution to enhance your recipe website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/recipe.png', 'bgcolor' => '#509207', 'href' => 'https://structured-data-for-wp.com/recipe-schema/' , 'status' => saswp_is_check_plugin('saswp_recipe_schema_updater','Rs'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
782
 
783
+ $main_ext_array['Es'] = array( 'name' => 'Event Schema','desc' => 'Event Schema extension is the number one solution to enhance your event website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/event.png', 'bgcolor' => '#eae4ca', 'href' => 'https://structured-data-for-wp.com/event-schema/' , 'status' => saswp_is_check_plugin('event_schema_updater','Es'));
784
+
785
+ $main_ext_array['Cs'] = array( 'name' => 'Course Schema','desc' => 'Course Schema extension is the number 1 solution to enhance your course offering website with right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/course.png', 'bgcolor' => '#dcb71d', 'href' => 'https://structured-data-for-wp.com/course-schema/' , 'status' => saswp_is_check_plugin('course_schema_updater','Cs'));
786
+
787
+ $main_ext_array['woocommerce'] = array( 'name' => 'WooCommerce Compatibility for Schema','desc' => 'WooCommerce Compatibility extension is the number one solution to enhance your store with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/woocommerce-icon.png', 'bgcolor' => '#96588a', 'href' => 'https://structured-data-for-wp.com/extensions/woocommerce-compatibility-for-schema/' , 'status' => saswp_is_check_plugin('woocommerce_compatibility_for_schema_updater','woocommerce'));
788
+
789
+ $main_ext_array['Res'] = array( 'name' => 'Real Estate Schema','desc' => 'Real Estate Schema extension is the number one solution to enhance your real estate website with the right structured data.' , 'image' => "".SASWP_PLUGIN_URL."".'/admin_section/images/real-estate-schema-wp.png', 'bgcolor' => '#ace', 'href' => 'https://structured-data-for-wp.com/extensions/real-estate-schema/' , 'status' => saswp_is_check_plugin('real_estate_schema_updater','Res'));
790
+
791
+ $cooked_active_text = 'Active';
792
+
793
+ foreach($main_ext_array as $key => $value){
794
+ $addon_name = $value['name'];
795
+ $addon_image = $value['image'];
796
+ $addon_desc = $value['desc'];
797
+ $addon_bgcolor = $value['bgcolor'];
798
+ $addon_status = $value['status'];
799
+ $addon_href = $value['href'];
800
+ $css = '';
801
+ if($addon_status != false){
802
+ $addon_status; // plugin active
803
+ $css = '';
804
+ // $css = 'style="border: unset;"';
805
+ }else{
806
+ $addon_status = '<label class="saswp-sts-txt inactive">'. saswp_t_string('Status') .' :<span class="saswp_inactive_key">'.saswp_t_string('Inactive').'</span></label><a target="_blank" href="'.$addon_href.'"><span class="saswp-d-btn">'.saswp_t_string('Download').'</span></a>';
807
+ }
808
+
809
+ echo "<li>
810
+ <div class='saswp-features-ele'>
811
+ <div class='saswp-ele-ic' style='background: ".$addon_bgcolor.";'>
812
+ <img src=".$addon_image.">
813
+ </div>
814
+ <div class='saswp-ele-tlt'>
815
+ <h3>".saswp_t_string($addon_name)."</h3>
816
+ <p>".saswp_t_string($addon_desc)."</p>
817
+ </div>
818
+ <div class='saswp-sts-btn' ".$css.">".$addon_status."
819
+ </div>
820
+ </div>
821
+ </li>";
822
  }
823
+ ?>
824
+ </div>
825
+ <?php
826
+ }
827
 
828
  function saswp_services_callback(){ ?>
829
  <div class="saswp-pre-ftrs-wrap">
830
+ <ul class="saswp-features-blocks">
831
  <li>
832
+ <div class="saswp-features-ele">
833
+ <div class="saswp-ele-ic saswp-ele-4" style="background: #69e781;">
834
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/support-1.png">
835
+ </div>
836
+ <div class="saswp-ele-tlt">
837
+ <h3><?php echo saswp_t_string('Priority Support') ?></h3>
838
+ <p><?php echo saswp_t_string('We get more than 100 technical queries a day but the Priority support plan will help you skip that and get the help from a dedicated team.') ?></p>
839
+ </div>
840
+ </div>
841
  <a target="_blank" href="https://structured-data-for-wp.com/priority-support//">
842
+ <div class="saswp-sts-btn">
843
+ <span class="saswp-d-btn-1"><?php echo saswp_t_string('Try it') ?></span>
844
+ </div>
845
  </a>
846
+
847
+ </li>
848
+ <li>
849
+ <div class="saswp-features-ele">
850
+ <div class="saswp-ele-ic saswp-ele-3">
851
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/news.png">
852
+ </div>
853
+ <div class="saswp-ele-tlt">
854
+ <h3><?php echo saswp_t_string('Google News Schema Setup') ?></h3>
855
+ <p><?php echo saswp_t_string('Get quick approval to Google News with our service. Our structured data experts will set up the Google News schema properly on your website.') ?></p>
856
+ </div>
857
+ </div>
858
  <a target="_blank" href="http://structured-data-for-wp.com/services/google-news-schema-setup/">
859
+ <div class="saswp-sts-btn">
860
+ <span class="saswp-d-btn-2"><?php echo saswp_t_string('Try it') ?></span>
861
+ </div>
862
  </a>
863
+
864
+ </li>
865
+ <li>
866
+ <div class="saswp-features-ele">
867
+ <div class="saswp-ele-ic saswp-ele-4">
868
  <img src="<?php echo SASWP_PLUGIN_URL; ?>/admin_section/images/schema-setup-icon.png">
869
+ </div>
870
+ <div class="saswp-ele-tlt">
871
+ <h3><?php echo saswp_t_string('Structured Data Setup & Error Clean Up') ?></h3>
872
+ <p><?php echo saswp_t_string('We will help you setup Schema and Structured data on your website as per your requirements and as per recommendation by our expert developers.') ?></p>
873
+ </div>
874
+ </div>
875
  <a target="_blank" href="http://structured-data-for-wp.com/services/structured-data-setup-error-clean-up/">
876
+ <div class="saswp-sts-btn">
877
+ <span class="saswp-d-btn-3"><?php echo saswp_t_string('Try it') ?></span>
878
+ </div>
879
  </a>
880
+
881
+ </li>
882
+ </ul>
883
+ </div>
884
 
885
  <?php }
886
  function saswp_amp_page_callback(){
1045
  'id' => 'saswp_comments_schema',
1046
  'name' => 'sd_data[saswp_comments_schema]',
1047
  )
1048
+ );
1049
 
1050
  if($nav_menu){
1051
 
1402
 
1403
  if(is_plugin_active('woocommerce/woocommerce.php')){
1404
 
1405
+ $meta_fields_default[] = array(
1406
  'label' => 'Product Default Review',
1407
  'id' => 'saswp-default-review-checkbox',
1408
  'name' => 'saswp-default-review-checkbox',
1414
  'name' => 'sd_data[saswp_default_review]',
1415
  )
1416
  );
1417
+
1418
+ $meta_fields_default[] = array(
1419
+ 'label' => 'Force to show single price for variable product',
1420
+ 'id' => 'saswp-single-price-product-checkbox',
1421
+ 'name' => 'saswp-single-price-product-checkbox',
1422
+ 'type' => 'checkbox',
1423
+ 'class' => 'checkbox saswp-checkbox',
1424
+ 'note' => 'This option forces variable product\'s price range to show only selected price in schema markup',
1425
+ 'hidden' => array(
1426
+ 'id' => 'saswp-single-price-product',
1427
+ 'name' => 'sd_data[saswp-single-price-product]',
1428
+ )
1429
+ );
1430
+
1431
+ $meta_fields_default[] = array(
1432
+ 'label' => 'Select Price Type',
1433
+ 'id' => 'saswp-single-price-type',
1434
+ 'name' => 'sd_data[saswp-single-price-type]',
1435
+ 'type' => 'select',
1436
+ 'class' => 'saswp_org_fields saswp-single-price-opt',
1437
+ 'options' => array(
1438
+ 'high' => 'High',
1439
+ 'low' => 'Low'
1440
+ )
1441
+ );
1442
 
1443
  }
1444
 
1862
 
1863
  }
1864
  echo '</ul>';
1865
+ $premium_feat_redirect = esc_url(admin_url().'admin.php?page=structured_data_options&tab=premium_features');
1866
+ echo '<h2 id="saswp-license-heading">'.saswp_t_string('License').'</h2>
1867
+ <p> This section has been shifted to <a href="'.$premium_feat_redirect.'">Premium Features Tab</a>';
1868
 
1869
  $add_on = array();
1870
 
1938
  $add_on[] = 'Rs';
1939
 
1940
  }
1941
+
1942
+ if(is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
1943
+
1944
+ $add_on[] = 'reviews';
1945
+
1946
+ }
1947
 
1948
  if(!empty($add_on)){
1949
 
1950
+ // echo '<h2 id="saswp-license-heading">'.saswp_t_string('License').'</h2>';
1951
 
1952
  echo '<ul>';
1953
 
1968
  if(isset($sd_data[strtolower($on).'_addon_license_key_message'])){
1969
  $license_status_msg = $sd_data[strtolower($on).'_addon_license_key_message'];
1970
  }
1971
+
1972
+ if (isset($sd_data[strtolower($on).'_addon_license_key_user_name'])) {
1973
+ $license_user_name = $sd_data[strtolower($on).'_addon_license_key_user_name'];
1974
+ }
1975
+
1976
+ if (isset($sd_data[strtolower($on).'_addon_license_key_download_id'])) {
1977
+ $license_download_id = $sd_data[strtolower($on).'_addon_license_key_download_id'];
1978
+ }
1979
+
1980
+ if (isset($sd_data[strtolower($on).'_addon_license_key_expires'])) {
1981
+ $license_expires = $sd_data[strtolower($on).'_addon_license_key_expires'];
1982
+ }
1983
+
1984
+ if (isset($sd_data[strtolower($on).'_addon_license_key_expires_normal'])) {
1985
+ $license_expnormal = $sd_data[strtolower($on).'_addon_license_key_expires_normal'];
1986
+ }
1987
+ // echo '<li>';
1988
+ // echo saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg, $license_user_name, $license_download_id, $license_expires, true, false);
1989
+ // echo '</li>';
1990
 
1991
  }
1992
 
2005
 
2006
  }
2007
 
2008
+ function saswp_get_license_section_html($on, $license_key, $license_status, $license_status_msg, $license_user_name, $license_download_id, $license_expires, $license_expnormal, $label=null, $limit_status=null){
 
2009
  $limits_html = $response = '';
2010
 
2011
  $limits = get_option('reviews_addon_reviews_limits');
2012
 
2013
+ if(!$limit_status){
2014
+ $limits_html = '<span class="limit_span"><span style="padding:10px;">Maximum Reviews Limits '. esc_attr($limits).'</span></span>';
2015
  }
2016
 
2017
+ $response.= '<div class="saswp-tools-main-field-title">';
2018
  $response.= '<div class="saswp-tools-field-title">';
2019
 
2020
  if($label == true && $on == 'OCIAIFS'){
2021
 
2022
  $response.= '<div class="saswp-license-label">';
2023
+ // $response.= '<strong>'.saswp_t_string('1-Click Indexing API Integration').'</strong>';
2024
  $response.= '</div>';
2025
 
2026
  }
2027
  if($label == true && $on == 'Polylang'){
2028
 
2029
  $response.= '<div class="saswp-license-label">';
2030
+ // $response.= '<strong>'.saswp_t_string(''.$on.' Schema Compatibility').'</strong>';
2031
  $response.= '</div>';
2032
 
2033
  }
2034
  if($label == true && $on == 'CPC'){
2035
 
2036
  $response.= '<div class="saswp-license-label">';
2037
+ // $response.= '<strong>'.saswp_t_string('Classifieds Plugin Compatibility').'</strong>';
2038
  $response.= '</div>';
2039
 
2040
  }
2041
  if($label == true && $on == 'WPML'){
2042
 
2043
  $response.= '<div class="saswp-license-label">';
2044
+ // $response.= '<strong>'.saswp_t_string(''.$on.' Schema Compatibility').'</strong>';
2045
  $response.= '</div>';
2046
 
2047
  }
2048
  if($label == true && $on == 'Cooked'){
2049
 
2050
  $response.= '<div class="saswp-license-label">';
2051
+ // $response.= '<strong>'.saswp_t_string(''.$on.' Compatibility For Schema').'</strong>';
2052
  $response.= '</div>';
2053
 
2054
  }
2055
  if($label == true && $on == 'Woocommerce'){
2056
 
2057
  $response.= '<div class="saswp-license-label">';
2058
+ // $response.= '<strong>'.saswp_t_string(''.$on.' Compatibility For Schema').'</strong>';
2059
  $response.= '</div>';
2060
 
2061
  }
2063
  if($label == true && $on == 'Res'){
2064
 
2065
  $response.= '<div class="saswp-license-label">';
2066
+ // $response.= '<strong>'.saswp_t_string('Real Estate Schema').'</strong>';
2067
  $response.= '</div>';
2068
 
2069
  }
2071
  if($label == true && $on == 'Jobposting'){
2072
 
2073
  $response.= '<div class="saswp-license-label">';
2074
+ // $response.= '<strong>'.saswp_t_string('JobPosting Schema Compatibility').'</strong>';
2075
  $response.= '</div>';
2076
 
2077
  }
2079
  if($label == true && $on == 'Cs'){
2080
 
2081
  $response.= '<div class="saswp-license-label">';
2082
+ // $response.= '<strong>'.saswp_t_string('Course Schema').'</strong>';
2083
  $response.= '</div>';
2084
 
2085
  }
2086
  if($label == true && $on == 'Es'){
2087
 
2088
  $response.= '<div class="saswp-license-label">';
2089
+ // $response.= '<strong>'.saswp_t_string('Event Schema').'</strong>';
2090
  $response.= '</div>';
2091
 
2092
  }
2094
  if($label == true && $on == 'qanda'){
2095
 
2096
  $response.= '<div class="saswp-license-label">';
2097
+ // $response.= '<strong>'.saswp_t_string('Q&A Schema').'</strong>';
2098
  $response.= '</div>';
2099
 
2100
  }
2102
  if($label == true && $on == 'faq'){
2103
 
2104
  $response.= '<div class="saswp-license-label">';
2105
+ // $response.= '<strong>'.saswp_t_string('FAQ Schema Compatibility').'</strong>';
2106
  $response.= '</div>';
2107
 
2108
  }
2110
  if($label == true && $on == 'Rs'){
2111
 
2112
  $response.= '<div class="saswp-license-label">';
2113
+ // $response.= '<strong>'.saswp_t_string('Recipe Schema').'</strong>';
2114
  $response.= '</div>';
2115
 
2116
  }
2117
+
2118
+ $original_license = $license_key;
2119
+ // $unreadable_license_k = $license_key;
2120
+ // $strlen = strlen($unreadable_license_k);
2121
+ // $show_key = "";
2122
+ // for( $i=1; $i<$strlen; $i++) {
2123
+ // if( $i<$strlen-9 ){
2124
+ // $show_key .= "*";
2125
+ // }else{
2126
+ // $show_key .= $unreadable_license_k[$i];
2127
+ // }
2128
+ // }
2129
  if($license_status == 'active'){
2130
+ if ( !defined('SASWPPRO_PLUGIN_DIR')){
2131
+
2132
+ if ($license_expires<0) {
2133
+ $license_Status_ = ''.saswp_t_string('Expired').'';
2134
+ $license_Status_id = ' id="lic_exp"';
2135
+ }
2136
+ else{
2137
+ $license_Status_ = ''.saswp_t_string('Active').'';
2138
+ $license_Status_id = 'id="lic_active"';
2139
+ }
2140
  }
2141
+ else{
2142
+ $license_Status_ = ''.saswp_t_string('Active').'';
2143
+ $license_Status_id = 'id="lic_active"';
2144
+ }
2145
+ $expire_msg_before = $single_expire_msg = $expire_msg = $license_expires_class = $alert_icon = $when_active = '';
2146
+
2147
+ $original_license = $license_key;
2148
+ $license_name_ = strtolower($on);
2149
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_key."&download_id=".$license_download_id."";
2150
+ $user_refresh_addon = '<a addon-is-expired id="'.strtolower($license_name_).'" remaining_days_org='.$license_expnormal.' days_remaining="'.$license_expires.'" licensestatusinternal="'.$license_status.'" add-on="'.$license_name_.'" class="user_refresh_single_addon" data-attr="'.$original_license.'" add-onname="sd_data['.strtolower($license_name_).'_addon_license_key]">
2151
+ <i addon-is-expired class="dashicons dashicons-update-alt" id="user_refresh_'.strtolower($license_name_).'"></i>
2152
+ Refresh
2153
+ </a>
2154
+ <input type="hidden" license-status="inactive" licensestatusinternal="'.$license_status.'" add-on="'.strtolower($license_name_).'" class="button button-default saswp_license_activation '.$license_status.'mode '.strtolower($license_name_).''.strtolower($license_name_).'" id="saswp_license_deactivation_internal">';
2155
+
2156
+ if ( $license_expires == 'Lifetime' ) {
2157
+ $expire_msg_before = '<span class="before_msg_active">'.esc_html__('License is', 'saswp').'</span>';
2158
+ $single_expire_msg = " ".esc_html__('Valid for Lifetime', 'saswp')." ";
2159
+ $renew_text = 'Renew';
2160
+ $license_expires_class = "lifetime_";
2161
  }
2162
+ else if( $license_expires < 0 ){
2163
+ $expire_msg_before = '<span class="before_msg">'.esc_html__('Your', 'saswp').' <span class="less_than_zero">'.esc_html__('License is', 'saswp').'</span></span>';
2164
+ $single_expire_msg = " ".esc_html__('Expired', 'saswp')." ";
2165
+ $renew_text = 'Renew';
2166
+ $license_expires_class = "expire_msg";
2167
+ }
2168
+ else if( $license_expires >=0 && $license_expires <=30 ){
2169
+ $expire_msg_before = '<span class="before_msg">'.esc_html__('Your', 'saswp').' <span class="zero_to_30">'.esc_html__('License is', 'saswp').'</span></span>';
2170
+ $license_expires_class = "zero2thirty";
2171
+ $single_expire_msg = '<span class="saswp-addon-alert">'.esc_html__('expiring in', 'saswp').' '.$license_expires .' '.esc_html__('days', 'saswp').'</span>';
2172
+ $renew_text = 'Renew';
2173
+ $alert_icon = '<span class="saswp_addon_icon dashicons dashicons-warning single_addon_warning"></span>';
2174
+ }
2175
+ else{
2176
+ $expire_msg_before = '<span class="saswp-addon-active">'.esc_html__('', 'saswp').'</span>';
2177
+ $single_expire_msg = "".esc_html__('', 'saswp')." ".$license_expires ." ".esc_html__("days remaning", "saswp")." ";
2178
+ $license_expires_class = "lic_is_active";
2179
+ $renew_text = 'Renew License';
2180
+ }
2181
+
2182
 
2183
+ if ( !empty($license_expires) ) {
2184
+ $when_active = '<span class="saswp-license-tenure" days_remaining='.$license_expires.'>'.$alert_icon.' '.$expire_msg_before.'
2185
+ <span expired-days-dataa="'.$license_expires.'" class='.$license_expires_class.'>'.$single_expire_msg.'
2186
+ <a target="blank" class="renewal-license" href="'.$renew_url.'">
2187
+ <span class="renew-lic">'.esc_html__( $renew_text , 'saswp').'</span></a>'.$user_refresh_addon.'
2188
+ </span>
2189
+ </span>';
2190
+ }
2191
+ $Reviews_h = '';
2192
+ if ($on == 'Reviews') {
2193
+ $Reviews_h = $limits_html;
2194
+ }
2195
+ $response.= '<div class="saswp-sts-active-main '.strtolower($on).'_addon "><label class="saswp-sts-txt '.$license_status.'">'.saswp_t_string('Status').' :<span class="addon-activated_'.strtolower($on).'" '.$license_Status_id.'>'.$license_Status_.'</span>
2196
+ <input type="password" class="license_key_input_active '.strtolower($on).'_addon_license_key" value="'.esc_attr(''.$original_license.'').'" placeholder="'.saswp_t_string('Enter License Key').'" id="'.strtolower($on).'_addon_license_key">
2197
+ <a license-status="inactive" add-on="'.strtolower($on).'" class="button button-default saswp_license_activation deactive_state '.strtolower($on).''.strtolower($on).'" id="saswp_license_deactivation">'.saswp_t_string('Deactivate').'</a>'.$Reviews_h.'
2198
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_expires_normal" name="sd_data['.strtolower($on).'_addon_license_key_expires_normal]" value="'.esc_attr($license_expnormal).'">
2199
+ <input type="hidden" class="license_key_input_active '.strtolower($on).'_addon_license_key" placeholder="'.saswp_t_string('Enter License Key').'" name="sd_data['.strtolower($on).'_addon_license_key]" value="'.esc_attr($original_license).'">
2200
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_status" name="sd_data['.strtolower($on).'_addon_license_key_status]" value="'.esc_attr($license_status).'">
2201
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_user_name" name="sd_data['.strtolower($on).'_addon_license_key_user_name]" value="'.esc_attr($license_user_name).'">
2202
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_download_id" name="sd_data['.strtolower($on).'_addon_license_key_download_id]" value="'.esc_attr($license_download_id).'">
2203
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_expires" name="sd_data['.strtolower($on).'_addon_license_key_expires]" value="'.esc_attr($license_expires).'">
2204
+ '.$when_active.'
2205
+ </label></div>';
2206
+
2207
+ }
2208
+ elseif ( $license_status_msg !='active' && $on == 'Reviews') {
2209
+
2210
+ $response.= '<span class="saswp-sts-deactive-reviews '.strtolower($on).'_addon">
2211
+ <label class="saswp-sts-txt"><span class="inactive_Reviews">'.saswp_t_string('Status').' :</span><span class="inactive_status_'.strtolower($on).'">'.saswp_t_string('Inactive').'
2212
+ </span>
2213
+ <input type="text" class="reviewslicense_key_input_inactive '.strtolower($on).'_addon_inactive" placeholder="Enter License Key" name="sd_data['.strtolower($on).'_addon_license_key]" id="'.strtolower($on).'_addon_license_key" value="">
2214
+ <a license-status="active" add-on="'.strtolower($on).'" class="button button-default saswp_license_activation Reviews '.$on.'" id="saswp_license_activation">'.saswp_t_string('Activate').'</a>
2215
+ </label>
2216
+ </span>';
2217
+ }
2218
+
2219
+ else{
2220
+ $final_otp = '';
2221
+ if (isset($expire_msg_before) && isset($single_expire_msg) && isset($license_expires_class) && isset($license_expires) ) {
2222
+ $original_license = $license_key;
2223
+ $license_name_ = strtolower($on);
2224
+ $renew_url = "https://structured-data-for-wp.com/order/?edd_license_key=".$license_key."&download_id=".$license_download_id."";
2225
+ $user_refresh_addon = '<a addon-is-expired remaining_days_org='.$license_expnormal.' id="'.strtolower($license_name_).'" days_remaining="'.$license_expires.'" licensestatusinternal="'.$license_status.'" add-on="'.$license_name_.'" class="user_refresh_single_addon" data-attr="'.$original_license.'" add-onname="sd_data['.strtolower($license_name_).'_addon_license_key]">
2226
+ <i addon-is-expired class="dashicons dashicons-update-alt" id="user_refresh_'.strtolower($license_name_).'"></i>
2227
+ Refresh
2228
+ </a>
2229
+ <input type="hidden" license-status="inactive" licensestatusinternal="'.$license_status.'" add-on="'.strtolower($license_name_).'" class="button button-default saswp_license_activation '.$license_status.'mode '.strtolower($license_name_).''.strtolower($license_name_).'" id="saswp_license_deactivation_internal">';
2230
+
2231
+ $final_otp = '';
2232
+ if( $license_expires < 0 ){
2233
+ $expire_msg_before = '<span class="expired_before_msg">'.esc_html__('Your', 'saswp-for-wp').' <span class="less_than_zero">'.esc_html__('License is', 'saswp-for-wp').'</span></span>';
2234
+ $single_expire_msg = " ".esc_html__('Expired', 'saswp-for-wp')." ";
2235
+ $license_expires_class = "expire_msg";
2236
+ $final_otp = '<span class="expired-saswp-license-tenure" days_remaining='.$license_expires.'>'.$alert_icon.' '.$expire_msg_before.'
2237
+ <span expired-days-data="'.$license_expires.'" class='.$license_expires_class.'>'.$single_expire_msg.'
2238
+ <a target="blank" class="renewal-license" href="'.$renew_url.'">
2239
+ <span class="renew-lic">'.esc_html__('Renew', 'saswp-for-wp').'</span></a>'.$user_refresh_addon.'
2240
+ </span>
2241
+ </span>';
2242
+ }
2243
+ }
2244
+
2245
+
2246
+ $original_license = $license_key;
2247
+ $response.= '<div class="saswp-sts-deactive-main '.strtolower($on).'_addon"><label class="saswp-sts-txt">'.saswp_t_string('Status').' :<span id="lic_inactive" class="inactive_status_'.strtolower($on).'">'.saswp_t_string('Inactive').'</span>
2248
+ <input type="password" class="license_key_input_inactive '.strtolower($on).'_addon_inactive" placeholder="Enter License Key" name="sd_data['.strtolower($on).'_addon_license_key]" id="'.strtolower($on).'_addon_license_key" value="'.$original_license.'">
2249
+ <a license-status="active" add-on="'.strtolower($on).'" class="button button-default saswp_license_activation '.strtolower($on).'" id="saswp_license_activation">'.saswp_t_string('Activate').'</a>
2250
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_status" name="sd_data['.strtolower($on).'_addon_license_key_status]" value="'.esc_attr($license_status).'">
2251
+ <input type="hidden" id="'.strtolower($on).'_addon_license_key_download_id" name="sd_data['.strtolower($on).'_addon_license_key_download_id]" value="'.esc_attr($license_download_id).'">
2252
+
2253
+ </label>
2254
+ </div>';
2255
+ $response .= $final_otp ;
2256
+ }
2257
+
2258
+ $response.= '</div>';
2259
  $response.= '</div>';
2260
 
2261
  return $response;
3788
  'name' => 'sd_data[saswp-soledad]',
3789
  )
3790
  );
3791
+ $enfold = array(
3792
+ 'label' => 'Enfold Theme',
3793
+ 'id' => 'saswp-enfold-checkbox',
3794
+ 'name' => 'saswp-enfold-checkbox',
3795
+ 'type' => 'checkbox',
3796
+ 'class' => 'checkbox saswp-checkbox',
3797
+ 'note' => saswp_get_field_note('enfold'),
3798
+ 'hidden' => array(
3799
+ 'id' => 'saswp-enfold',
3800
+ 'name' => 'sd_data[saswp-enfold]',
3801
+ )
3802
+ );
3803
  $reviews_wp_theme = array(
3804
  'label' => 'Reviews WP Theme',
3805
  'id' => 'saswp-wp-theme-reviews-checkbox',
4044
  $wpfaqschemamarkup['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
4045
  $faqschemaforpost['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
4046
  $webfaq10['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
4047
+ $enfold['note'] = saswp_t_string('This feature requires').' <a target="_blank" href="https://structured-data-for-wp.com/faq-schema/">FAQ Schema Compatibility Addon</a>';
4048
 
4049
  }
4050
  if(!is_plugin_active('reviews-for-schema/reviews-for-schema.php')){
4134
  $woocommerce_mem,
4135
  $cooked,
4136
  $soledad,
4137
+ $enfold,
4138
  $reviews_wp_theme,
4139
  $taqyeem,
4140
  $wp_product_review,
admin_section/structure_admin.php CHANGED
@@ -1217,9 +1217,12 @@ function saswp_custom_breadcrumbs() {
1217
  $post_type_archive = get_permalink();
1218
  }
1219
 
1220
- $variables1_titles[]= $post_type_object->labels->name;
1221
- $variables2_links[] = $post_type_archive;
1222
- $breadcrumb_url = $post_type_archive;
 
 
 
1223
  }
1224
 
1225
  if( !isset($sd_data['saswp_breadcrumb_remove_cat']) || (isset($sd_data['saswp_breadcrumb_remove_cat']) && $sd_data['saswp_breadcrumb_remove_cat'] == 0 ) ){
@@ -1792,7 +1795,8 @@ function saswp_license_status($add_on, $license_status, $license_key){
1792
  'rs' => 'Recipe Schema',
1793
  'qanda' => 'Q&A Schema Compatibility',
1794
  'faq' => 'FAQ Schema Compatibility',
1795
- 'ociaifs' => '1-Click Indexing API Integration'
 
1796
  );
1797
 
1798
  $edd_action = '';
@@ -1814,6 +1818,7 @@ function saswp_license_status($add_on, $license_status, $license_key){
1814
  );
1815
 
1816
  $message = '';
 
1817
  $current_status = '';
1818
  $response = @wp_remote_post( SASWP_EDD_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
1819
 
@@ -1830,10 +1835,57 @@ function saswp_license_status($add_on, $license_status, $license_key){
1830
 
1831
  switch( $license_data->error ) {
1832
  case 'expired' :
1833
- $message = sprintf(
1834
- __( 'Your license key expired on %s.' ),
1835
- date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
1836
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1837
  break;
1838
  case 'revoked' :
1839
  $message = __( 'Your license key has been disabled.' );
@@ -1865,6 +1917,20 @@ function saswp_license_status($add_on, $license_status, $license_key){
1865
  $license[strtolower($add_on).'_addon_license_key_status'] = $current_status;
1866
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1867
  $license[strtolower($add_on).'_addon_license_key_message']= $message;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1868
 
1869
  }else{
1870
 
@@ -1889,10 +1955,57 @@ function saswp_license_status($add_on, $license_status, $license_key){
1889
 
1890
  $license[strtolower($add_on).'_addon_license_key_status'] = 'active';
1891
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1892
- $license[strtolower($add_on).'_addon_license_key_message'] = 'active';
1893
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1894
  $current_status = 'active';
1895
  $message = 'Activated';
 
 
1896
  }
1897
 
1898
  if($license_status == 'inactive'){
@@ -1900,8 +2013,31 @@ function saswp_license_status($add_on, $license_status, $license_key){
1900
  $license[strtolower($add_on).'_addon_license_key_status'] = 'deactivated';
1901
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1902
  $license[strtolower($add_on).'_addon_license_key_message'] = 'Deactivated';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1903
  $current_status = 'deactivated';
1904
- $message = 'Deactivated';
 
 
1905
  }
1906
 
1907
  }
@@ -1910,7 +2046,7 @@ function saswp_license_status($add_on, $license_status, $license_key){
1910
  $merge_options = array_merge($get_options, $license);
1911
  update_option('sd_data', $merge_options);
1912
 
1913
- return array('status'=> $current_status, 'message'=> $message);
1914
 
1915
  }
1916
 
@@ -1929,7 +2065,12 @@ function saswp_license_status_check(){
1929
  $add_on = sanitize_text_field($_POST['add_on']);
1930
  $license_status = sanitize_text_field($_POST['license_status']);
1931
  $license_key = sanitize_text_field($_POST['license_key']);
1932
-
 
 
 
 
 
1933
  if($add_on && $license_status && $license_key){
1934
 
1935
  $result = saswp_license_status($add_on, $license_status, $license_key);
@@ -1942,6 +2083,23 @@ function saswp_license_status_check(){
1942
  }
1943
 
1944
  add_action('wp_ajax_saswp_license_status_check', 'saswp_license_status_check');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1945
  /**
1946
  * Licensing code ends here
1947
  */
1217
  $post_type_archive = get_permalink();
1218
  }
1219
 
1220
+ if(is_object($post_type_object)){
1221
+ $variables1_titles[]= $post_type_object->labels->name;
1222
+ $variables2_links[] = $post_type_archive;
1223
+ $breadcrumb_url = $post_type_archive;
1224
+ }
1225
+
1226
  }
1227
 
1228
  if( !isset($sd_data['saswp_breadcrumb_remove_cat']) || (isset($sd_data['saswp_breadcrumb_remove_cat']) && $sd_data['saswp_breadcrumb_remove_cat'] == 0 ) ){
1795
  'rs' => 'Recipe Schema',
1796
  'qanda' => 'Q&A Schema Compatibility',
1797
  'faq' => 'FAQ Schema Compatibility',
1798
+ 'ociaifs' => '1-Click Indexing API Integration',
1799
+ 'cpc' => 'Classifieds Plugin Compatibility',
1800
  );
1801
 
1802
  $edd_action = '';
1818
  );
1819
 
1820
  $message = '';
1821
+ $fname = '';
1822
  $current_status = '';
1823
  $response = @wp_remote_post( SASWP_EDD_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
1824
 
1835
 
1836
  switch( $license_data->error ) {
1837
  case 'expired' :
1838
+
1839
+ $license[strtolower($add_on).'_addon_license_key_status'] = 'active';
1840
+ $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1841
+ $license[strtolower($add_on).'_addon_license_key_message'] = 'active';
1842
+ if ($license_data) {
1843
+ // Get UserName
1844
+ $fname = $license_data->customer_name;
1845
+ $fname = substr($fname, 0, strpos($fname, ' '));
1846
+ $check_for_Caps = ctype_upper($fname);
1847
+ if ( $check_for_Caps == 1 ) {
1848
+ $fname = strtolower($fname);
1849
+ $fname = ucwords($fname);
1850
+ }
1851
+ else
1852
+ {
1853
+ $fname = ucwords($fname);
1854
+ }
1855
+ // Get Expiring Date
1856
+ $license_exp = date('Y-m-d', strtotime($license_data->expires));
1857
+ $license_info_lifetime = $license_data->expires;
1858
+ $today = date('Y-m-d');
1859
+ $exp_date =$license_exp;
1860
+ $date1 = date_create($today);
1861
+ $date2 = date_create($exp_date);
1862
+ $diff = date_diff($date1,$date2);
1863
+ $days = $diff->format("%a");
1864
+ if( $license_info_lifetime == 'lifetime' ){
1865
+ $days = 'Lifetime';
1866
+ if ($days == 'Lifetime') {
1867
+ $expire_msg = " Your License is Valid for Lifetime ";
1868
+ }
1869
+ }
1870
+ elseif($today > $exp_date){
1871
+ $days = -$days;
1872
+ }
1873
+ // Get Download_ID
1874
+ $download_id = $license_data->payment_id;
1875
+ }
1876
+ $license_exp_norml = date('Y-m-d', strtotime($license_data->expires));
1877
+ $license[strtolower($add_on).'_addon_license_key_user_name'] = $fname;
1878
+ $license[strtolower($add_on).'_addon_license_key_expires'] = $days;
1879
+ $license[strtolower($add_on).'_addon_license_key_expires_normal'] = $license_exp_norml;
1880
+ $license[strtolower($add_on).'_addon_license_key_download_id'] = $download_id;
1881
+ $current_status = 'active';
1882
+ $message = 'Activated';
1883
+ $days_remaining = $days;
1884
+ $username = $fname;
1885
+ $message = sprintf(
1886
+ __( 'Your license key expired on %s.' ),
1887
+ date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
1888
+ );
1889
  break;
1890
  case 'revoked' :
1891
  $message = __( 'Your license key has been disabled.' );
1917
  $license[strtolower($add_on).'_addon_license_key_status'] = $current_status;
1918
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1919
  $license[strtolower($add_on).'_addon_license_key_message']= $message;
1920
+ if ($license_data) {
1921
+ $fname = $license_data->customer_name;
1922
+ $fname = substr($fname, 0, strpos($fname, ' '));
1923
+ $check_for_Caps = ctype_upper($fname);
1924
+ if ( $check_for_Caps == 1 ) {
1925
+ $fname = strtolower($fname);
1926
+ $fname = ucwords($fname);
1927
+ }
1928
+ else
1929
+ {
1930
+ $fname = ucwords($fname);
1931
+ }
1932
+ }
1933
+ $license[strtolower($add_on).'_addon_license_key_user_name'] = $fname;
1934
 
1935
  }else{
1936
 
1955
 
1956
  $license[strtolower($add_on).'_addon_license_key_status'] = 'active';
1957
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
1958
+ $license[strtolower($add_on).'_addon_license_key_message'] = 'active';
1959
+
1960
+ if ($license_data) {
1961
+ // Get UserName
1962
+ $fname = $license_data->customer_name;
1963
+ $fname = substr($fname, 0, strpos($fname, ' '));
1964
+ $check_for_Caps = ctype_upper($fname);
1965
+ if ( $check_for_Caps == 1 ) {
1966
+ $fname = strtolower($fname);
1967
+ $fname = ucwords($fname);
1968
+ }
1969
+ else
1970
+ {
1971
+ $fname = ucwords($fname);
1972
+ }
1973
+
1974
+ // Get Expiring Date
1975
+ $license_exp = date('Y-m-d', strtotime($license_data->expires));
1976
+ $license_exp_norml = date('Y-m-d', strtotime($license_data->expires));
1977
+ $license_info_lifetime = $license_data->expires;
1978
+ $today = date('Y-m-d');
1979
+ $exp_date =$license_exp;
1980
+ $date1 = date_create($today);
1981
+ $date2 = date_create($exp_date);
1982
+ $diff = date_diff($date1,$date2);
1983
+ $days = $diff->format("%a");
1984
+ if( $license_info_lifetime == 'lifetime' ){
1985
+ $days = 'Lifetime';
1986
+ if ($days == 'Lifetime') {
1987
+ $expire_msg = " Your License is Valid for Lifetime ";
1988
+ }
1989
+ }
1990
+ elseif($today > $exp_date){
1991
+ $days = -$days;
1992
+ }
1993
+ // Get Download_ID
1994
+ $download_id = $license_data->payment_id;
1995
+ }
1996
+
1997
+ $license[strtolower($add_on).'_addon_license_key_user_name'] = $fname;
1998
+
1999
+ $license[strtolower($add_on).'_addon_license_key_expires'] = $days;
2000
+
2001
+ $license[strtolower($add_on).'_addon_license_key_expires_normal'] = $license_exp_norml;
2002
+
2003
+ $license[strtolower($add_on).'_addon_license_key_download_id'] = $download_id;
2004
+
2005
  $current_status = 'active';
2006
  $message = 'Activated';
2007
+ $days_remaining = $days;
2008
+ $username = $fname;
2009
  }
2010
 
2011
  if($license_status == 'inactive'){
2013
  $license[strtolower($add_on).'_addon_license_key_status'] = 'deactivated';
2014
  $license[strtolower($add_on).'_addon_license_key'] = $license_key;
2015
  $license[strtolower($add_on).'_addon_license_key_message'] = 'Deactivated';
2016
+ if ($license_data) {
2017
+ $fname = $license_data->customer_name;
2018
+ $fname = substr($fname, 0, strpos($fname, ' '));
2019
+ $check_for_Caps = ctype_upper($fname);
2020
+ if ( $check_for_Caps == 1 ) {
2021
+ $fname = strtolower($fname);
2022
+ $fname = ucwords($fname);
2023
+ }
2024
+ else
2025
+ {
2026
+ $fname = ucwords($fname);
2027
+ }
2028
+ }
2029
+
2030
+ $license_exp_norml = date('Y-m-d', strtotime($license_data->expires));
2031
+ $license[strtolower($add_on).'_addon_license_key_user_name'] = $fname;
2032
+
2033
+ $license[strtolower($add_on).'_addon_license_key_expires'] = $days;
2034
+
2035
+ $license[strtolower($add_on).'_addon_license_key_expires_normal'] = $license_exp_norml;
2036
+
2037
  $current_status = 'deactivated';
2038
+ $message = 'Deactivated';
2039
+ $days_remaining = $days;
2040
+ $username = $fname;
2041
  }
2042
 
2043
  }
2046
  $merge_options = array_merge($get_options, $license);
2047
  update_option('sd_data', $merge_options);
2048
 
2049
+ return array('status'=> $current_status, 'message'=> $message, 'days_remaining' => $days_remaining, 'username' => $fname );
2050
 
2051
  }
2052
 
2065
  $add_on = sanitize_text_field($_POST['add_on']);
2066
  $license_status = sanitize_text_field($_POST['license_status']);
2067
  $license_key = sanitize_text_field($_POST['license_key']);
2068
+ // $match_asterick_pattern = "**********************";
2069
+ // if (strpos($license_key, $match_asterick_pattern)===0) {
2070
+ // $data = get_option('sd_data');
2071
+ // $license_key = $data[$add_on.'_addon_license_key'];
2072
+ // }
2073
+
2074
  if($add_on && $license_status && $license_key){
2075
 
2076
  $result = saswp_license_status($add_on, $license_status, $license_key);
2083
  }
2084
 
2085
  add_action('wp_ajax_saswp_license_status_check', 'saswp_license_status_check');
2086
+
2087
+ add_action('wp_ajax_saswp_license_transient', 'saswp_license_transient');
2088
+ function saswp_license_transient(){
2089
+ $transient_load = 'saswp_addons_set_transient';
2090
+ $value_load = 'saswp_addons_set_transient_value';
2091
+ $expiration_load = 86400 ;
2092
+ set_transient( $transient_load, $value_load, $expiration_load );
2093
+ }
2094
+
2095
+ add_action('wp_ajax_saswp_expired_license_transient', 'saswp_expired_license_transient');
2096
+ function saswp_expired_license_transient(){
2097
+ $transient_load = 'saswp_addons_expired_set_transient';
2098
+ $value_load = 'saswp_addons_expired_set_transient_value';
2099
+ $expiration_load = 3600 ;
2100
+ set_transient( $transient_load, $value_load, $expiration_load );
2101
+ }
2102
+
2103
  /**
2104
  * Licensing code ends here
2105
  */
core/array-list/compatibility-list.php CHANGED
@@ -685,11 +685,17 @@ return array(
685
  ),
686
  ),
687
  'themes' => array(
 
 
 
 
 
 
688
  'soledad' => array(
689
- 'name' => 'Soledad Theme',
690
- 'free' => 'soledad',
691
- 'opt_name' => 'saswp-soledad',
692
- 'part_in' => 'free',
693
  ),
694
  'rannarecipe' => array(
695
  'name' => 'Ranna - Food & Recipe',
685
  ),
686
  ),
687
  'themes' => array(
688
+ 'enfold' => array(
689
+ 'name' => 'Enfold Theme',
690
+ 'free' => 'enfold',
691
+ 'opt_name' => 'saswp-enfold',
692
+ 'part_in' => 'pro',
693
+ ),
694
  'soledad' => array(
695
+ 'name' => 'Soledad Theme',
696
+ 'free' => 'soledad',
697
+ 'opt_name' => 'saswp-soledad',
698
+ 'part_in' => 'free',
699
  ),
700
  'rannarecipe' => array(
701
  'name' => 'Ranna - Food & Recipe',
core/array-list/schema-properties.php CHANGED
@@ -308,6 +308,9 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
308
  'id' => 'local_enable_rating_'.$schema_id,
309
  'type' => 'checkbox',
310
  );
 
 
 
311
  $meta_field[] = array(
312
  'label' => 'Rating',
313
  'id' => 'local_rating_'.$schema_id,
@@ -5629,20 +5632,77 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5629
 
5630
  $meta_field = array(
5631
  array(
5632
- 'label' => 'ID',
5633
- 'id' => 'saswp_person_schema_id_'.$schema_id,
5634
- 'type' => 'text'
5635
- ),
 
 
 
 
 
 
 
 
 
 
5636
  array(
5637
  'label' => 'Name',
5638
  'id' => 'saswp_person_schema_name_'.$schema_id,
5639
  'type' => 'text',
5640
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5641
  array(
5642
  'label' => 'Family Name',
5643
  'id' => 'saswp_person_schema_family_name_'.$schema_id,
5644
  'type' => 'text',
5645
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5646
  array(
5647
  'label' => 'Description',
5648
  'id' => 'saswp_person_schema_description_'.$schema_id,
@@ -5653,6 +5713,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5653
  'id' => 'saswp_person_schema_url_'.$schema_id,
5654
  'type' => 'text',
5655
  'default' => get_permalink()
 
 
 
 
 
 
5656
  ),
5657
  array(
5658
  'label' => 'Street Address',
@@ -5745,12 +5811,7 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5745
  'label' => 'Nationality',
5746
  'id' => 'saswp_person_schema_nationality_'.$schema_id,
5747
  'type' => 'text',
5748
- ),
5749
- array(
5750
- 'label' => 'Spouse',
5751
- 'id' => 'saswp_person_schema_spouse_'.$schema_id,
5752
- 'type' => 'text',
5753
- ),
5754
  array(
5755
  'label' => 'Image',
5756
  'id' => 'saswp_person_schema_image_'.$schema_id,
@@ -5801,6 +5862,11 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5801
  'id' => 'saswp_person_schema_snapchat_'.$schema_id,
5802
  'type' => 'text',
5803
  ),
 
 
 
 
 
5804
  array(
5805
  'label' => 'Affiliation',
5806
  'id' => 'saswp_person_schema_affiliation_'.$schema_id,
@@ -5816,6 +5882,21 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5816
  'id' => 'saswp_person_schema_award_'.$schema_id,
5817
  'type' => 'text',
5818
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5819
  array(
5820
  'label' => 'Brand',
5821
  'id' => 'saswp_person_schema_brand_'.$schema_id,
@@ -5887,15 +5968,97 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
5887
  'type' => 'text',
5888
  ),
5889
  array(
5890
- 'label' => 'Honorific Prefix',
5891
- 'id' => 'saswp_person_schema_honorific_prefix_'.$schema_id,
5892
  'type' => 'text',
5893
  ),
5894
  array(
5895
- 'label' => 'Honorific Suffix',
5896
- 'id' => 'saswp_person_schema_honorific_suffix_'.$schema_id,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5897
  'type' => 'text',
5898
- ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5899
  );
5900
  break;
5901
 
308
  'id' => 'local_enable_rating_'.$schema_id,
309
  'type' => 'checkbox',
310
  );
311
+
312
+ $meta_field = apply_filters('saswp_modify_local_business_properties', $meta_field, $schema_id);
313
+
314
  $meta_field[] = array(
315
  'label' => 'Rating',
316
  'id' => 'local_rating_'.$schema_id,
5632
 
5633
  $meta_field = array(
5634
  array(
5635
+ 'label' => 'ID',
5636
+ 'id' => 'saswp_person_schema_id_'.$schema_id,
5637
+ 'type' => 'text'
5638
+ ),
5639
+ array(
5640
+ 'label' => 'Honorific Prefix',
5641
+ 'id' => 'saswp_person_schema_honorific_prefix_'.$schema_id,
5642
+ 'type' => 'text',
5643
+ ),
5644
+ array(
5645
+ 'label' => 'Honorific Suffix',
5646
+ 'id' => 'saswp_person_schema_honorific_suffix_'.$schema_id,
5647
+ 'type' => 'text',
5648
+ ),
5649
  array(
5650
  'label' => 'Name',
5651
  'id' => 'saswp_person_schema_name_'.$schema_id,
5652
  'type' => 'text',
5653
  ),
5654
+ array(
5655
+ 'label' => 'Alternate Name',
5656
+ 'id' => 'saswp_person_schema_alternate_name_'.$schema_id,
5657
+ 'type' => 'text',
5658
+ ),
5659
+ array(
5660
+ 'label' => 'Additional Name',
5661
+ 'id' => 'saswp_person_schema_additional_name_'.$schema_id,
5662
+ 'type' => 'text',
5663
+ ),
5664
+ array(
5665
+ 'label' => 'Given Name',
5666
+ 'id' => 'saswp_person_schema_given_name_'.$schema_id,
5667
+ 'type' => 'text',
5668
+ ),
5669
  array(
5670
  'label' => 'Family Name',
5671
  'id' => 'saswp_person_schema_family_name_'.$schema_id,
5672
  'type' => 'text',
5673
  ),
5674
+ array(
5675
+ 'label' => 'Spouse',
5676
+ 'id' => 'saswp_person_schema_spouse_'.$schema_id,
5677
+ 'type' => 'text',
5678
+ ),
5679
+ array(
5680
+ 'label' => 'Parent',
5681
+ 'id' => 'saswp_person_schema_parent_'.$schema_id,
5682
+ 'type' => 'textarea',
5683
+ 'attributes' => array(
5684
+ 'placeholder' => 'Johannes Xoo, Amanda Xoo'
5685
+ ),
5686
+ 'note' => 'Note: Separate it by comma ( , )' ,
5687
+ ),
5688
+ array(
5689
+ 'label' => 'Sibling',
5690
+ 'id' => 'saswp_person_schema_sibling_'.$schema_id,
5691
+ 'type' => 'textarea',
5692
+ 'attributes' => array(
5693
+ 'placeholder' => 'Dima Xoo, Amanda Xoo'
5694
+ ),
5695
+ 'note' => 'Note: Separate it by comma ( , )' ,
5696
+ ),
5697
+ array(
5698
+ 'label' => 'Colleague',
5699
+ 'id' => 'saswp_person_schema_colleague_'.$schema_id,
5700
+ 'type' => 'textarea',
5701
+ 'attributes' => array(
5702
+ 'placeholder' => 'Bill Gates, Jeff Bezos'
5703
+ ),
5704
+ 'note' => 'Note: Separate it by comma ( , )' ,
5705
+ ),
5706
  array(
5707
  'label' => 'Description',
5708
  'id' => 'saswp_person_schema_description_'.$schema_id,
5713
  'id' => 'saswp_person_schema_url_'.$schema_id,
5714
  'type' => 'text',
5715
  'default' => get_permalink()
5716
+ ),
5717
+ array(
5718
+ 'label' => 'Main Entity Of Page',
5719
+ 'id' => 'saswp_person_schema_main_entity_of_page_'.$schema_id,
5720
+ 'type' => 'text',
5721
+ 'default' => get_permalink()
5722
  ),
5723
  array(
5724
  'label' => 'Street Address',
5811
  'label' => 'Nationality',
5812
  'id' => 'saswp_person_schema_nationality_'.$schema_id,
5813
  'type' => 'text',
5814
+ ),
 
 
 
 
 
5815
  array(
5816
  'label' => 'Image',
5817
  'id' => 'saswp_person_schema_image_'.$schema_id,
5862
  'id' => 'saswp_person_schema_snapchat_'.$schema_id,
5863
  'type' => 'text',
5864
  ),
5865
+ array(
5866
+ 'label' => 'Sponsor',
5867
+ 'id' => 'saswp_person_schema_sponsor_'.$schema_id,
5868
+ 'type' => 'text',
5869
+ ),
5870
  array(
5871
  'label' => 'Affiliation',
5872
  'id' => 'saswp_person_schema_affiliation_'.$schema_id,
5882
  'id' => 'saswp_person_schema_award_'.$schema_id,
5883
  'type' => 'text',
5884
  ),
5885
+ array(
5886
+ 'label' => 'Seeks',
5887
+ 'id' => 'saswp_person_schema_seeks_'.$schema_id,
5888
+ 'type' => 'text',
5889
+ ),
5890
+ array(
5891
+ 'label' => 'Knows',
5892
+ 'id' => 'saswp_person_schema_knows_'.$schema_id,
5893
+ 'type' => 'text',
5894
+ ),
5895
+ array(
5896
+ 'label' => 'Owns',
5897
+ 'id' => 'saswp_person_schema_owns_'.$schema_id,
5898
+ 'type' => 'text',
5899
+ ),
5900
  array(
5901
  'label' => 'Brand',
5902
  'id' => 'saswp_person_schema_brand_'.$schema_id,
5968
  'type' => 'text',
5969
  ),
5970
  array(
5971
+ 'label' => 'performerIn Name',
5972
+ 'id' => 'saswp_person_schema_performerin_name_'.$schema_id,
5973
  'type' => 'text',
5974
  ),
5975
  array(
5976
+ 'label' => 'performerIn Location Name',
5977
+ 'id' => 'saswp_person_schema_performerin_location_name_'.$schema_id,
5978
+ 'type' => 'text',
5979
+ ),
5980
+ array(
5981
+ 'label' => 'performerIn Location Locality',
5982
+ 'id' => 'saswp_person_schema_performerin_location_locality_'.$schema_id,
5983
+ 'type' => 'text',
5984
+ ),
5985
+ array(
5986
+ 'label' => 'performerIn Location Postal Code',
5987
+ 'id' => 'saswp_person_schema_performerin_location_postal_code_'.$schema_id,
5988
+ 'type' => 'text',
5989
+ ),
5990
+ array(
5991
+ 'label' => 'performerIn Location Street Address',
5992
+ 'id' => 'saswp_person_schema_performerin_location_street_address_'.$schema_id,
5993
+ 'type' => 'text',
5994
+ ),
5995
+
5996
+ array(
5997
+ 'label' => 'performerIn Offers Name',
5998
+ 'id' => 'saswp_person_schema_performerin_offers_name_'.$schema_id,
5999
+ 'type' => 'text',
6000
+ ),
6001
+ array(
6002
+ 'label' => 'performerIn Offers Availability',
6003
+ 'id' => 'saswp_person_schema_performerin_offers_availability_'.$schema_id,
6004
+ 'type' => 'select',
6005
+ 'options' => array(
6006
+ 'InStock' => 'In Stock',
6007
+ 'OutOfStock' => 'Out Of Stock',
6008
+ 'Discontinued' => 'Discontinued',
6009
+ 'PreOrder' => 'Pre Order',
6010
+ )
6011
+ ),
6012
+ array(
6013
+ 'label' => 'performerIn Offers Price',
6014
+ 'id' => 'saswp_person_schema_performerin_offers_price_'.$schema_id,
6015
+ 'type' => 'text',
6016
+ ),
6017
+ array(
6018
+ 'label' => 'performerIn Offers Currency',
6019
+ 'id' => 'saswp_person_schema_performerin_offers_currency_'.$schema_id,
6020
+ 'type' => 'text',
6021
+ ),
6022
+ array(
6023
+ 'label' => 'performerIn Offers Valid From',
6024
+ 'id' => 'saswp_person_schema_performerin_offers_valid_from_'.$schema_id,
6025
+ 'type' => 'text',
6026
+ ),
6027
+ array(
6028
+ 'label' => 'performerIn Offers URL',
6029
+ 'id' => 'saswp_person_schema_performerin_offers_url_'.$schema_id,
6030
+ 'type' => 'text',
6031
+ ),
6032
+
6033
+ array(
6034
+ 'label' => 'performerIn Start Date',
6035
+ 'id' => 'saswp_person_schema_performerin_start_date_'.$schema_id,
6036
+ 'type' => 'text',
6037
+ ),
6038
+ array(
6039
+ 'label' => 'performerIn End Date',
6040
+ 'id' => 'saswp_person_schema_performerin_end_date_'.$schema_id,
6041
  'type' => 'text',
6042
+ ),
6043
+ array(
6044
+ 'label' => 'performerIn Description',
6045
+ 'id' => 'saswp_person_schema_performerin_description_'.$schema_id,
6046
+ 'type' => 'textarea',
6047
+ ),
6048
+ array(
6049
+ 'label' => 'performerIn Image',
6050
+ 'id' => 'saswp_person_schema_performerin_image_'.$schema_id,
6051
+ 'type' => 'media',
6052
+ ),
6053
+ array(
6054
+ 'label' => 'performerIn Performer',
6055
+ 'id' => 'saswp_person_schema_performerin_performer_'.$schema_id,
6056
+ 'type' => 'textarea',
6057
+ 'attributes' => array(
6058
+ 'placeholder' => 'Bill Gates, Jeff Bezos'
6059
+ ),
6060
+ 'note' => 'Note: Separate it by comma ( , )' ,
6061
+ )
6062
  );
6063
  break;
6064
 
modules/reviews/comments.php CHANGED
@@ -107,10 +107,7 @@ function saswp_comment_rating_rating_field () {
107
  global $sd_data;
108
 
109
  if(saswp_check_stars_rating()){
110
-
111
- if( function_exists('get_template') && get_template() == 'neptune-by-osetin' ){
112
- wp_enqueue_style( 'saswp-frontend-extra-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-frontend-extra.min.css' : 'saswp-frontend-extra.css'), false , SASWP_VERSION );
113
- }
114
  wp_enqueue_style( 'saswp-frontend-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-frontend.min.css' : 'saswp-frontend.css'), false , SASWP_VERSION );
115
  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 );
116
  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 );
107
  global $sd_data;
108
 
109
  if(saswp_check_stars_rating()){
110
+
 
 
 
111
  wp_enqueue_style( 'saswp-frontend-css', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-frontend.min.css' : 'saswp-frontend.css'), false , SASWP_VERSION );
112
  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 );
113
  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 );
modules/reviews/reviews_setup.php CHANGED
@@ -16,6 +16,7 @@ add_action( 'init', 'saswp_register_saswp_reviews_location',20);
16
 
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
  add_filter( 'manage_edit-saswp_reviews_sortable_columns', 'saswp_reviews_set_sortable_columns',10,2 );
20
  add_action( 'pre_get_posts', 'saswp_sort_reviews_date_column_query' );
21
 
@@ -172,6 +173,33 @@ function saswp_reviews_custom_columns_set( $column, $post_id ) {
172
 
173
  }
174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  break;
176
  case 'saswp_review_date' :
177
 
@@ -228,7 +256,8 @@ function saswp_reviews_custom_columns($columns) {
228
 
229
  $columns['cb'] = '<input type="checkbox" />';
230
  $columns['saswp_reviewer_image'] = saswp_t_string( 'Image' );
231
- $columns['title'] = saswp_t_string( 'Title' );
 
232
  $columns['saswp_review_rating'] = saswp_t_string( 'Rating' );
233
  $columns['saswp_review_platform'] = saswp_t_string( 'Platform' );
234
  $columns['saswp_review_date'] = saswp_t_string( 'Review Date' );
@@ -237,6 +266,13 @@ function saswp_reviews_custom_columns($columns) {
237
 
238
  return $columns;
239
  }
 
 
 
 
 
 
 
240
 
241
  function saswp_get_rating_html_by_value($rating_val){
242
 
16
 
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
+ add_filter( 'default_hidden_columns', 'saswp_hide_review_text_columns', 10, 2 );
20
  add_filter( 'manage_edit-saswp_reviews_sortable_columns', 'saswp_reviews_set_sortable_columns',10,2 );
21
  add_action( 'pre_get_posts', 'saswp_sort_reviews_date_column_query' );
22
 
173
 
174
  }
175
 
176
+ break;
177
+
178
+ case 'saswp_review_text' :
179
+
180
+ $string = get_post_meta( $post_id, $key='saswp_review_text', true);
181
+
182
+ if(!empty($string)){
183
+
184
+ $url = admin_url( 'post.php?post='.$post_id.'&action=edit' );
185
+ $string = wp_strip_all_tags($string);
186
+
187
+ if (strlen($string) > 150) {
188
+
189
+ $stringCut = substr($string, 0, 150);
190
+ $endPoint = strrpos($stringCut, ' ');
191
+ $string = $endPoint? substr($stringCut, 0, $endPoint):substr($stringCut, 0);
192
+
193
+ $string = esc_html($string);
194
+ $string .= '... <a style="cursor: pointer;" href="'.esc_url($url).'" >'.saswp_t_string('Read More').'</a>';
195
+ echo $string;
196
+
197
+ }else{
198
+ echo esc_html($string);
199
+ }
200
+
201
+ }
202
+
203
  break;
204
  case 'saswp_review_date' :
205
 
256
 
257
  $columns['cb'] = '<input type="checkbox" />';
258
  $columns['saswp_reviewer_image'] = saswp_t_string( 'Image' );
259
+ $columns['title'] = saswp_t_string( 'Title' );
260
+ $columns['saswp_review_text'] = saswp_t_string( 'Text' );
261
  $columns['saswp_review_rating'] = saswp_t_string( 'Rating' );
262
  $columns['saswp_review_platform'] = saswp_t_string( 'Platform' );
263
  $columns['saswp_review_date'] = saswp_t_string( 'Review Date' );
266
 
267
  return $columns;
268
  }
269
+ function saswp_hide_review_text_columns( $hidden, $screen ) {
270
+
271
+ if( isset( $screen->id ) && 'edit-saswp_reviews' === $screen->id ){
272
+ $hidden[] = 'saswp_review_text';
273
+ }
274
+ return $hidden;
275
+ }
276
 
277
  function saswp_get_rating_html_by_value($rating_val){
278
 
modules/tinymce/js/tiny-mce.css ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mce-container-body.mce-window-body.mce-abs-layout {
2
+ overflow: hidden !important;
3
+ }
4
+ form.saswp-tiny-form fieldset {
5
+ padding-top: 15px;
6
+ }
7
+ .saswp_removelast_btn{
8
+ margin-bottom: 5px !important;
9
+ }
10
+ form.saswp-tiny-form fieldset input:not([type=checkbox]), form.saswp-tiny-form fieldset select {
11
+ width: 69%;
12
+ display: block;
13
+ box-sizing: border-box;
14
+ margin-bottom: 15px;
15
+ height: 30px;
16
+ border: 1px solid #ddd;
17
+ }
18
+
19
+ form.saswp-tiny-form fieldset label {
20
+ display: block;
21
+ margin-bottom: 5px;
22
+ margin-top: 5px;
23
+ width: 31%;
24
+ float: left;
25
+ }
26
+
27
+ form.saswp-tiny-form fieldset div {
28
+ overflow: hidden;
29
+ clear: both;
30
+ margin-bottom: 5px;
31
+ }
32
+
33
+ form.saswp-tiny-form fieldset div[name=saswp_faq_img_id] {
34
+ width: 31%;
35
+ float: left;
36
+ }
37
+
38
+ form.saswp-tiny-form fieldset div[name=saswp_faq_img_id]:before {
39
+ content: "Image ID: ";
40
+ pointer-events: none;
41
+ }
42
+
43
+ form.saswp-tiny-form fieldset div[name=saswp_howto_img_id] {
44
+ width: 31%;
45
+ float: left;
46
+ }
47
+
48
+ form.saswp-tiny-form fieldset div[name=saswp_howto_img_id]:before {
49
+ content: "Image ID: ";
50
+ pointer-events: none;
51
+ }
52
+
53
+ form.saswp-tiny-form fieldset .mce-btn.long {
54
+ width: 100%;
55
+ }
56
+
57
+ #fields + .mce-btn.long {
58
+ width: 100%;
59
+ margin-top: 15px;
60
+ }
61
+
62
+ form.saswp-tiny-form fieldset .mce-btn.saswp_removelast {
63
+ display: none;
64
+ }
65
+
66
+ form.saswp-tiny-form fieldset:last-of-type .mce-btn.removeLast {
67
+ display: table;
68
+ }
69
+
70
+ form.saswp-tiny-form textarea {
71
+ white-space: normal;
72
+ border: 1px solid #ddd;
73
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
74
+ background-color: #fff;
75
+ color: #32373c;
76
+ margin-bottom: 15px;
77
+ width: 69%;
78
+ display: block;
79
+ box-sizing: border-box;
80
+ padding: 7px;
81
+ }
82
+ form.saswp-tiny-form .saswp-hr {
83
+ border: .5px solid #ddd !important;
84
+ margin: 10px 0 !important;
85
+ }
86
+ form.saswp-tiny-form{
87
+ padding-bottom: 5px;
88
+ }
modules/tinymce/js/tiny-mce.js ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+
3
+ tinymce.PluginManager.add('saswp_tinymce_dropdown', function( editor, url ) {
4
+ editor.addButton( 'saswp_tinymce_dropdown', {
5
+ title: 'SASWP Schema Block',
6
+ icon: 'dashicon dashicons-media-code',
7
+ type: 'menubutton',
8
+ menu: [
9
+
10
+ //Multi FAQ starts here
11
+ {
12
+ text: 'FAQ Schema',
13
+ onclick: function() {
14
+ editor.windowManager.open({
15
+ title: 'SASWP Featured Snippet FAQ',
16
+ minWidth: 500,
17
+ height: 500,
18
+ autoScroll: true,
19
+ body:[
20
+ {
21
+ type: 'checkbox',
22
+ name: 'saswp_multi_faq_render_html',
23
+ label: 'Render HTML',
24
+ checked: true,
25
+ },
26
+ {
27
+ type: 'container',
28
+ name: 'container',
29
+ label: '',
30
+ html: `
31
+ <form id="saswp-faq-start-point" class="saswp-tiny-form">
32
+ <div id="saswp-fields">
33
+ <fieldset id="saswp-fieldset-0" data-key="0">
34
+ <hr class="saswp-hr">
35
+ <div>
36
+ <label>Title Tag</label>
37
+ <select name="saswp_faq_headline" id="saswp_faq_headline-0">
38
+ <option value="h2">h2</option>
39
+ <option value="h3">h3</option>
40
+ <option value="h4">h4</option>
41
+ <option value="h5">h5</option>
42
+ <option value="h6">h6</option>
43
+ <option value="p">p</option>
44
+ </select>
45
+ </div>
46
+ <div>
47
+ <label>Question</label>
48
+ <input type="text" id="saswp_faq_question-0" name="saswp_faq_question" placeholder="Enter Your Question here...">
49
+ </div>
50
+ <div>
51
+ <label>Answer</label>
52
+ <textarea id="saswp_faq_answer-0" rows="5" name="saswp_faq_answer" placeholder="Enter your answer here..."></textarea>
53
+ </div>
54
+ <div>
55
+ <div type="text" id="saswp_faq_img_id-0" name="saswp_faq_img_id" class="saswp_tiny_img_container"></div>
56
+ <div class="mce-btn">
57
+ <button type="button" class="saswp-tiny-select_image" data-target="saswp_faq_img_id-0">Add Image</button>
58
+ </div>
59
+ </div>
60
+ </fieldset>
61
+ </div>
62
+ <div class="mce-btn long">
63
+ <button id="saswp-add-more-tiny-faq" type="button">Add More FAQ</button>
64
+ </div>
65
+ </form>`,
66
+ }
67
+
68
+ ],
69
+ onsubmit: function(e){
70
+
71
+ let shortcode = `[saswp_tiny_multiple_faq `,
72
+ fieldsets = jQuery('#saswp-faq-start-point fieldset');
73
+
74
+ for (let i = 0; i < fieldsets.length; i++) {
75
+ var key = fieldsets[i].dataset.key,
76
+ headlineTag = jQuery("#saswp_faq_headline-"+key).val(),
77
+ question = jQuery(`#saswp_faq_question-`+key).val(),
78
+ answer = jQuery(`#saswp_faq_answer-`+key).val(),
79
+ imageID = jQuery(`#saswp_faq_img_id-`+key).html();
80
+
81
+ shortcode += `headline-`+key+`="`+headlineTag+`" question-`+key+`="`+question+`" answer-`+key+`="`+answer+`" image-`+key+`="`+imageID+`" `;
82
+ }
83
+
84
+ shortcode += ` count="`+fieldsets.length+`" html="`+e.data.saswp_multi_faq_render_html+`"]`;
85
+
86
+ editor.insertContent(shortcode)
87
+
88
+ }
89
+
90
+ })
91
+ }
92
+ },
93
+ //Multi FAQ ends here
94
+ //HowTo starts here
95
+ {
96
+ text: 'HowTo Schema',
97
+ onclick: function() {
98
+ editor.windowManager.open({
99
+ title: 'SASWP Featured Snippet HowTo',
100
+ minWidth: 500,
101
+ height: 500,
102
+ autoScroll: true,
103
+ body:[
104
+ {
105
+ type: 'checkbox',
106
+ name: 'saswp_howto_render_html',
107
+ label: 'Render HTML',
108
+ checked: true,
109
+ },
110
+ {
111
+ type: 'textbox',
112
+ name: 'saswp_howto_time_days',
113
+ label: 'Days',
114
+ value: '',
115
+ placeholder: 'DD',
116
+
117
+ },
118
+ {
119
+ type: 'textbox',
120
+ name: 'saswp_howto_time_hours',
121
+ label: 'Hours',
122
+ value: '',
123
+ placeholder: 'HH',
124
+
125
+ },
126
+ {
127
+ type: 'textbox',
128
+ name: 'saswp_howto_time_minutes',
129
+ label: 'Minutes',
130
+ value: '',
131
+ placeholder: 'MM',
132
+
133
+ },
134
+ {
135
+ type: 'textbox',
136
+ name: 'saswp_howto_estimate_cost_currency',
137
+ label: 'Estimate Cost Currency',
138
+ value: '',
139
+ placeholder: 'USD',
140
+ },
141
+ {
142
+ type: 'textbox',
143
+ name: 'saswp_howto_estimate_cost',
144
+ label: 'Estimate Cost',
145
+ value: '',
146
+ placeholder: '20',
147
+ },
148
+ {
149
+ type: 'textbox',
150
+ name: 'saswp_howto_description',
151
+ label: 'Description',
152
+ value: '',
153
+ placeholder: 'Enter your description here...',
154
+ multiline: true,
155
+ minHeight: 100,
156
+ },
157
+ {
158
+ type: 'container',
159
+ name: 'container',
160
+ label: '',
161
+ html: `
162
+ <form id="saswp-howto-start-point" class="saswp-tiny-form">
163
+ <div id="saswp-fields">
164
+ <fieldset id="saswp-fieldset-0" data-key="0">
165
+ <hr class="saswp-hr">
166
+ <div>
167
+ <label>Title Tag</label>
168
+ <select name="saswp_howto_headline" id="saswp_howto_headline-0">
169
+ <option value="h2">h2</option>
170
+ <option value="h3">h3</option>
171
+ <option value="h4">h4</option>
172
+ <option value="h5">h5</option>
173
+ <option value="h6">h6</option>
174
+ <option value="p">p</option>
175
+ </select>
176
+ </div>
177
+ <div>
178
+ <label>Step Title</label>
179
+ <input type="text" id="saswp_howto_step_title-0" name="saswp_howto_step_title" placeholder="Enter a step title...">
180
+ </div>
181
+ <div>
182
+ <label>Step Description</label>
183
+ <textarea id="saswp_howto_step_description-0" rows="5" name="saswp_howto_step_description" placeholder="Enter a step description..."></textarea>
184
+ </div>
185
+ <div>
186
+ <div type="text" id="saswp_howto_img_id-0" name="saswp_howto_img_id" class="saswp_tiny_img_container"></div>
187
+ <div class="mce-btn">
188
+ <button type="button" class="saswp-tiny-select_image" data-target="saswp_howto_img_id-0">Add Image</button>
189
+ </div>
190
+ </div>
191
+ </fieldset>
192
+ </div>
193
+ <div class="mce-btn long">
194
+ <button id="saswp-add-more-tiny-howto" type="button">Add More Steps</button>
195
+ </div>
196
+ </form>`,
197
+ }
198
+
199
+ ],
200
+ onsubmit: function(e){
201
+
202
+ let shortcode = `[saswp_tiny_howto `,
203
+ fieldsets = jQuery('#saswp-howto-start-point fieldset');
204
+
205
+ for (let i = 0; i < fieldsets.length; i++) {
206
+ var key = fieldsets[i].dataset.key,
207
+ headlineTag = jQuery("#saswp_howto_headline-"+key).val(),
208
+ question = jQuery(`#saswp_howto_step_title-`+key).val(),
209
+ answer = jQuery(`#saswp_howto_step_description-`+key).val(),
210
+ imageID = jQuery(`#saswp_howto_img_id-`+key).html();
211
+
212
+ shortcode += `headline-`+key+`="`+headlineTag+`" step_title-`+key+`="`+question+`" step_description-`+key+`="`+answer+`" image-`+key+`="`+imageID+`" `;
213
+ }
214
+
215
+ shortcode += ` count="`+fieldsets.length+`" html="`+e.data.saswp_howto_render_html+`" days="`+e.data.saswp_howto_time_days+`" hours="`+e.data.saswp_howto_time_hours+`" minutes="`+e.data.saswp_howto_time_minutes+`" cost_currency="`+e.data.saswp_howto_estimate_cost_currency+`" cost="`+e.data.saswp_howto_estimate_cost+`" description="`+e.data.saswp_howto_description+`"]`;
216
+
217
+ editor.insertContent(shortcode)
218
+
219
+ }
220
+
221
+ })
222
+ }
223
+ }
224
+ //HowTo ends here
225
+
226
+ ]
227
+ });
228
+ });
229
+ })();
230
+
231
+ jQuery(document).ready(function($){
232
+
233
+ //HowTo starts here
234
+
235
+ $(document).on('click', '#saswp-add-more-tiny-howto', function(e){
236
+ e.preventDefault();
237
+
238
+ let id = $('#saswp-fields fieldset').length,
239
+ baseHeight = $(`#saswp-fields #fieldset-${id - 1}`).offsetHeight,
240
+ height = id === 1 ? baseHeight + 30 : baseHeight - 30,
241
+ layoutWrapper = $(
242
+ '.mce-container > .mce-container-body.mce-abs-layout'),
243
+ nextField = $(`#saswp-fields #fieldset-${id - 1}`);
244
+
245
+ const template = `
246
+ <fieldset id="saswp-fieldset-`+id+`" data-key="`+id+`">
247
+ <hr class="saswp-hr">
248
+ <div>
249
+ <label>Title Tag</label>
250
+ <select name="saswp_howto_headline" id="saswp_howto_headline-`+id+`">
251
+ <option value="h2">h2</option>
252
+ <option value="h3">h3</option>
253
+ <option value="h4">h4</option>
254
+ <option value="h5">h5</option>
255
+ <option value="h6">h6</option>
256
+ <option value="p">p</option>
257
+ </select>
258
+ </div>
259
+ <div>
260
+ <label>Step Title</label>
261
+ <input type="text" id="saswp_howto_step_title-`+id+`" name="saswp_howto_step_title" placeholder="Enter Step Title...">
262
+ </div>
263
+ <div>
264
+ <label>Step Description</label>
265
+ <textarea id="saswp_howto_step_description-`+id+`" rows="5" name="saswp_howto_step_description" placeholder="Enter Step Description..."></textarea>
266
+ </div>
267
+ <div>
268
+ <div type="text" id="saswp_howto_img_id-`+id+`" name="saswp_howto_img_id" class="saswp_tiny_img_container"></div>
269
+ <div class="mce-btn">
270
+ <button type="button" class="saswp-tiny-select_image" data-target="saswp_howto_img_id-`+id+`">Add Image</button>
271
+ </div>
272
+ </div>
273
+ <div class="mce-btn saswp_removelast_btn">
274
+ <button type="button" class="saswp_removelast" data-target="bild-`+id+`">- Remove</button>
275
+ </div>
276
+ </fieldset>
277
+ `;
278
+
279
+ $("#saswp-fields").append(template);
280
+ });
281
+
282
+ //HowTo ends here
283
+
284
+ //Multi FAQ starts here
285
+
286
+ $(document).on('click', '#saswp-add-more-tiny-faq', function(e){
287
+ e.preventDefault();
288
+
289
+
290
+ let id = $('#saswp-fields fieldset').length,
291
+ baseHeight = $(`#saswp-fields #fieldset-${id - 1}`).offsetHeight,
292
+ height = id === 1 ? baseHeight + 30 : baseHeight - 30,
293
+ layoutWrapper = $(
294
+ '.mce-container > .mce-container-body.mce-abs-layout'),
295
+ nextField = $(`#saswp-fields #fieldset-${id - 1}`);
296
+
297
+ const template = `
298
+ <fieldset id="saswp-fieldset-`+id+`" data-key="`+id+`">
299
+ <hr class="saswp-hr">
300
+ <div>
301
+ <label>Title Tag</label>
302
+ <select name="saswp_faq_headline" id="saswp_faq_headline-`+id+`">
303
+ <option value="h2">h2</option>
304
+ <option value="h3">h3</option>
305
+ <option value="h4">h4</option>
306
+ <option value="h5">h5</option>
307
+ <option value="h6">h6</option>
308
+ <option value="p">p</option>
309
+ </select>
310
+ </div>
311
+ <div>
312
+ <label>Question</label>
313
+ <input type="text" id="saswp_faq_question-`+id+`" name="saswp_faq_question" placeholder="Enter Your Question here...">
314
+ </div>
315
+ <div>
316
+ <label>Answer</label>
317
+ <textarea id="saswp_faq_answer-`+id+`" rows="5" name="saswp_faq_answer" placeholder="Enter your answer here..."></textarea>
318
+ </div>
319
+ <div>
320
+ <div type="text" id="saswp_faq_img_id-`+id+`" name="saswp_faq_img_id" class="saswp_tiny_img_container"></div>
321
+ <div class="mce-btn">
322
+ <button type="button" class="saswp-tiny-select_image" data-target="saswp_faq_img_id-`+id+`">Add Image</button>
323
+ </div>
324
+ </div>
325
+ <div class="mce-btn saswp_removelast_btn">
326
+ <button type="button" class="saswp_removelast" data-target="bild-`+id+`">- Remove</button>
327
+ </div>
328
+ </fieldset>
329
+ `;
330
+
331
+ $("#saswp-fields").append(template);
332
+ });
333
+
334
+ $(document).on('click','.saswp_removelast', function(e){
335
+ $('.saswp-tiny-form fieldset:last-of-type').remove();
336
+ })
337
+
338
+ $(document).on('click', '.saswp-tiny-select_image', function(e){
339
+ e.preventDefault();
340
+ var current = $(this);
341
+ var custom_uploader = wp.media.frames.file_frame = wp.media({
342
+ title: 'Add Image',
343
+ button: {
344
+ text: 'Add Image'
345
+ },
346
+ multiple: false
347
+ });
348
+ custom_uploader.on('select', function() {
349
+ var attachment = custom_uploader.state().get('selection').first().toJSON();
350
+ current.parent().parent().find('.saswp_tiny_img_container').html(attachment.id);
351
+ });
352
+ custom_uploader.open();
353
+
354
+ });
355
+
356
+ //Multi FAQ ends here
357
+
358
+ });
modules/tinymce/register-shortcodes.php ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_shortcode( 'saswp_tiny_howto', 'saswp_tiny_howto_render' );
4
+
5
+ function saswp_tiny_howto_render( $atts, $content = null ){
6
+
7
+ global $saswp_tiny_howto;
8
+
9
+ $output = '';
10
+
11
+ $saswp_tiny_howto = shortcode_atts(
12
+ [
13
+ 'css_class' => '',
14
+ 'count' => '1',
15
+ 'html' => true,
16
+ 'cost' => '',
17
+ 'cost_currency' => '',
18
+ 'days' => '',
19
+ 'hours' => '',
20
+ 'minutes' => '',
21
+ 'description' => '',
22
+ 'elements' => [],
23
+ ], $atts );
24
+
25
+ foreach ( $atts as $key => $merged_att ) {
26
+ if ( strpos( $key, 'headline' ) !== false || strpos( $key, 'step_title' ) !== false || strpos( $key,
27
+ 'step_description' ) !== false || strpos( $key, 'image' ) !== false ) {
28
+ $saswp_tiny_howto['elements'][ explode( '-', $key )[1] ][ substr( $key, 0, strpos( $key, '-' ) ) ] = $merged_att;
29
+ }
30
+ }
31
+
32
+ if($saswp_tiny_howto['html'] == 'true'){
33
+
34
+ if( !empty($saswp_tiny_howto['cost']) ){
35
+
36
+ $time_html = '';
37
+ $time_html .= esc_attr($saswp_tiny_howto['cost']). ' ';
38
+
39
+ if(!empty($saswp_tiny_howto['cost_currency'])){
40
+ $time_html .= esc_attr($saswp_tiny_howto['cost_currency']);
41
+ }
42
+
43
+ if($time_html !=''){
44
+ $output .= '<p class="saswp-how-to-total-time">';
45
+ $output .= '<span class="saswp-how-to-duration-time-text"><strong>'.saswp_label_text('translation-estimate-cost').' :</strong> </span>';
46
+ $output .= $time_html;
47
+ $output .= '</p>';
48
+ }
49
+
50
+ }
51
+
52
+ if( !empty($saswp_tiny_howto['days']) || !empty($saswp_tiny_howto['hours']) || !empty($saswp_tiny_howto['minutes']) ){
53
+
54
+ $time_html = '';
55
+
56
+ if(!empty($saswp_tiny_howto['days'])){
57
+ $time_html .= esc_attr($saswp_tiny_howto['days']).' days ';
58
+ }
59
+ if(!empty($saswp_tiny_howto['hours'])){
60
+ $time_html .= esc_attr($saswp_tiny_howto['hours']).' hours ';
61
+ }
62
+ if(!empty($saswp_tiny_howto['minutes'])){
63
+ $time_html .= esc_attr($saswp_tiny_howto['minutes']).' minutes ';
64
+ }
65
+
66
+ if($time_html !=''){
67
+ $output .= '<p class="saswp-how-to-total-time">';
68
+ $output .= '<span class="saswp-how-to-duration-time-text"><strong>'.saswp_label_text('translation-time-needed').' :</strong> </span>';
69
+ $output .= $time_html;
70
+ $output .= '</p>';
71
+ }
72
+
73
+ }
74
+
75
+ if( !empty($saswp_tiny_howto['description']) ){
76
+ $output .= '<p>'.html_entity_decode(esc_attr($saswp_tiny_howto['description'])).'</p>';
77
+ }
78
+
79
+ if( !empty($saswp_tiny_howto['elements']) ){
80
+
81
+ $output .= '<div class="saswp-how-to-block-steps">';
82
+ $output .= '<ol>';
83
+
84
+ foreach ($saswp_tiny_howto['elements'] as $value) {
85
+
86
+ if($value['step_title'] || $value['step_description']){
87
+
88
+ $output .= '<li>';
89
+ $output .= '<strong class="saswp-how-to-step-name">'. html_entity_decode(esc_attr($value['step_title'])).'</strong>';
90
+ $output .= '<p class="saswp-how-to-step-text">'.html_entity_decode(esc_textarea($value['step_description']));
91
+
92
+ if ( ! empty( $value['image'] ) ) {
93
+
94
+ $image_id = intval( $value['image'] );
95
+ $image_thumburl = wp_get_attachment_image_url( $image_id, [ 150, 150 ] );
96
+
97
+ $output .= '<figure>';
98
+ $output .= '<a href="'.esc_url(esc_url($image_thumburl)).'"><img class="saswp_tiny_howto_image" src="'.esc_url($image_thumburl).'"></a>';
99
+ $output .= '</figure>';
100
+
101
+ }
102
+
103
+ $output .= '</p>';
104
+ $output .= '</li>';
105
+ }
106
+
107
+ }
108
+ $output .= '</ol>';
109
+ $output .= '</div>';
110
+
111
+ }
112
+
113
+ }
114
+
115
+ return $output;
116
+ }
117
+
118
+ add_shortcode( 'saswp_tiny_multiple_faq', 'saswp_tiny_multi_faq_render' );
119
+
120
+ function saswp_tiny_multi_faq_render( $atts, $content = null ){
121
+
122
+ global $saswp_tiny_multi_faq;
123
+
124
+ $output = '';
125
+
126
+ $saswp_tiny_multi_faq = shortcode_atts(
127
+ [
128
+ 'css_class' => '',
129
+ 'count' => '1',
130
+ 'html' => true,
131
+ 'elements' => [],
132
+ ], $atts );
133
+
134
+ foreach ( $atts as $key => $merged_att ) {
135
+ if ( strpos( $key, 'headline' ) !== false || strpos( $key, 'question' ) !== false || strpos( $key,
136
+ 'answer' ) !== false || strpos( $key, 'image' ) !== false ) {
137
+ $saswp_tiny_multi_faq['elements'][ explode( '-', $key )[1] ][ substr( $key, 0, strpos( $key, '-' ) ) ] = $merged_att;
138
+ }
139
+ }
140
+
141
+
142
+ if($saswp_tiny_multi_faq['html'] == 'true'){
143
+
144
+ if( !empty($saswp_tiny_multi_faq['elements']) ){
145
+
146
+ foreach ($saswp_tiny_multi_faq['elements'] as $value) {
147
+
148
+ $output .= '<section>';
149
+ $output .= '<summary>';
150
+ $output .= '<'.esc_attr($value['headline']).'>';
151
+ $output .= esc_html($value['question']);
152
+ $output .= '</'.esc_attr($value['headline']).'>';
153
+ $output .= '</summary>';
154
+
155
+ $output .= '<div>';
156
+
157
+ if ( ! empty( $value['image'] ) ) {
158
+
159
+ $image_id = intval( $value['image'] );
160
+ $image_thumburl = wp_get_attachment_image_url( $image_id, [ 150, 150 ] );
161
+
162
+ $output .= '<figure>';
163
+ $output .= '<a href="'.esc_url(esc_url($image_thumburl)).'"><img class="saswp_tiny_faq_image" src="'.esc_url($image_thumburl).'"></a>';
164
+ $output .= '</figure>';
165
+
166
+ }
167
+
168
+ $output .= '<div class="saswp_faq_tiny_content">'.esc_html($value['answer']).'</div>';
169
+
170
+ $output .= '</div>';
171
+ $output .= '</section>';
172
+
173
+ }
174
+
175
+ }
176
+
177
+ }
178
+
179
+ return $output;
180
+ }
181
+
182
+ add_shortcode( 'saswp_tiny_faq', 'saswp_tiny_faq_render' );
183
+
184
+ function saswp_tiny_faq_render( $atts, $content = null ){
185
+
186
+ global $saswp_tiny_faq;
187
+
188
+ $saswp_tiny_faq = shortcode_atts(
189
+ [
190
+ 'headline' => 'h2',
191
+ 'img' => 0,
192
+ 'img_alt' => '',
193
+ 'question' => '',
194
+ 'answer' => '',
195
+ 'html' => 'true',
196
+ ], $atts );
197
+
198
+ $output = '';
199
+
200
+ if($saswp_tiny_faq['html'] == 'true'){
201
+
202
+ $output .= '<summary>';
203
+ $output .= '<'.esc_attr($saswp_tiny_faq['headline']).'>';
204
+ $output .= esc_html($saswp_tiny_faq['question']);
205
+ $output .= '</'.esc_attr($saswp_tiny_faq['headline']).'>';
206
+ $output .= '</summary>';
207
+
208
+ $output .= '<div>';
209
+
210
+ if ( ! empty( $saswp_tiny_faq['img'] ) ) {
211
+
212
+ $image_id = intval( $saswp_tiny_faq['img'] );
213
+ $image_thumburl = wp_get_attachment_image_url( $image_id, [ 150, 150 ] );
214
+
215
+ $output .= '<figure>';
216
+ $output .= '<a href="'.esc_url(esc_url($image_thumburl)).'"><img class="saswp_tiny_faq_image" src="'.esc_url($image_thumburl).'"></a>';
217
+ $output .= '</figure>';
218
+
219
+ }
220
+
221
+ $output .= '<div class="saswp_faq_tiny_content">'.esc_html($content).'</div>';
222
+
223
+ $output .= '</div>';
224
+
225
+ }
226
+
227
+ return $output;
228
+ }
modules/tinymce/register-tinymce.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_action( 'admin_enqueue_scripts', 'saswp_enqueue_style_tinymce_css' );
4
+
5
+ function saswp_enqueue_style_tinymce_css(){
6
+
7
+ wp_enqueue_style( 'saswp-tinyme-css', SASWP_PLUGIN_URL . 'modules/tinymce/js/tiny-mce.css', false , SASWP_VERSION );
8
+ }
9
+
10
+ add_action( 'init', 'saswp_tinymce_buttons_init' );
11
+
12
+ function saswp_tinymce_buttons_init() {
13
+
14
+ // Check if the logged in WordPress User can edit Posts or Pages
15
+ // If not, don't register our TinyMCE plugin
16
+
17
+ if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
18
+ return;
19
+ }
20
+
21
+ // Check if the logged in WordPress User has the Visual Editor enabled
22
+ // If not, don't register our TinyMCE plugin
23
+ if ( get_user_option( 'rich_editing' ) !== 'true' ) {
24
+ return;
25
+ }
26
+ // add new buttons
27
+ add_filter( 'mce_buttons', 'saswp_tinymce_register_buttons' );
28
+ // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
29
+ add_filter( 'mce_external_plugins', 'saswp_register_tinymce_javascript' );
30
+ }
31
+
32
+ function saswp_tinymce_register_buttons( $buttons ) {
33
+ array_push( $buttons, 'separator', 'saswp_tinymce_dropdown' );
34
+ return $buttons;
35
+ }
36
+
37
+ function saswp_register_tinymce_javascript( $plugin_array ) {
38
+ $plugin_array['saswp_tinymce_dropdown'] = SASWP_PLUGIN_URL.'modules/tinymce/js/tiny-mce.js';
39
+ return $plugin_array;
40
+ }
output/function.php CHANGED
@@ -198,6 +198,8 @@ function saswp_get_all_schema_markup_output() {
198
  $collection_page = array();
199
  $blog_page = array();
200
 
 
 
201
  $gutenberg_how_to = array();
202
  $gutenberg_recipe = array();
203
  $gutenberg_qanda = array();
@@ -221,9 +223,11 @@ function saswp_get_all_schema_markup_output() {
221
  $gutenberg_event = saswp_gutenberg_event_schema();
222
  $gutenberg_qanda = saswp_gutenberg_qanda_schema();
223
  $gutenberg_job = saswp_gutenberg_job_schema();
224
- $gutenberg_book = saswp_gutenberg_book_schema();
225
  $gutenberg_course = saswp_gutenberg_course_schema();
226
  $gutenberg_how_to = saswp_gutenberg_how_to_schema();
 
 
227
  $gutenberg_recipe = saswp_gutenberg_recipe_schema();
228
  $gutenberg_faq = saswp_gutenberg_faq_schema();
229
 
@@ -324,6 +328,18 @@ function saswp_get_all_schema_markup_output() {
324
  $output .= ",";
325
  $output .= "\n\n";
326
  }
 
 
 
 
 
 
 
 
 
 
 
 
327
  if(!empty($gutenberg_recipe)){
328
 
329
  $output .= saswp_json_print_format($gutenberg_recipe);
198
  $collection_page = array();
199
  $blog_page = array();
200
 
201
+ $tinymce_faq = array();
202
+ $tinymce_how_to = array();
203
  $gutenberg_how_to = array();
204
  $gutenberg_recipe = array();
205
  $gutenberg_qanda = array();
223
  $gutenberg_event = saswp_gutenberg_event_schema();
224
  $gutenberg_qanda = saswp_gutenberg_qanda_schema();
225
  $gutenberg_job = saswp_gutenberg_job_schema();
226
+ $gutenberg_book = saswp_gutenberg_book_schema();
227
  $gutenberg_course = saswp_gutenberg_course_schema();
228
  $gutenberg_how_to = saswp_gutenberg_how_to_schema();
229
+ $tinymce_faq = saswp_tinymce_faq_schema();
230
+ $tinymce_how_to = saswp_tinymce_how_to_schema();
231
  $gutenberg_recipe = saswp_gutenberg_recipe_schema();
232
  $gutenberg_faq = saswp_gutenberg_faq_schema();
233
 
328
  $output .= ",";
329
  $output .= "\n\n";
330
  }
331
+ if(!empty($tinymce_how_to)){
332
+
333
+ $output .= saswp_json_print_format($tinymce_how_to);
334
+ $output .= ",";
335
+ $output .= "\n\n";
336
+ }
337
+ if(!empty($tinymce_faq)){
338
+
339
+ $output .= saswp_json_print_format($tinymce_faq);
340
+ $output .= ",";
341
+ $output .= "\n\n";
342
+ }
343
  if(!empty($gutenberg_recipe)){
344
 
345
  $output .= saswp_json_print_format($gutenberg_recipe);
output/markup.php CHANGED
@@ -1445,7 +1445,16 @@ function saswp_local_business_schema_markup($schema_id, $schema_post_id, $all_po
1445
  if(!isset($input1['review'])){
1446
  $input1 = saswp_append_fetched_reviews($input1);
1447
  }
1448
-
 
 
 
 
 
 
 
 
 
1449
  return $input1;
1450
  }
1451
 
@@ -1877,24 +1886,24 @@ function saswp_person_schema_markup($schema_id, $schema_post_id, $all_post_meta)
1877
  }
1878
 
1879
  if(isset($all_post_meta['saswp_person_schema_b_street_address_'.$schema_id])){
1880
- $input1['location']['@type'] = 'Place';
1881
- $input1['location']['address']['streetAddress'] = $all_post_meta['saswp_person_schema_b_street_address_'.$schema_id];
1882
  }
1883
  if(isset($all_post_meta['saswp_person_schema_b_locality_'.$schema_id])){
1884
- $input1['location']['@type'] = 'Place';
1885
- $input1['location']['address']['addressLocality'.$schema_id] = $all_post_meta['saswp_person_schema_b_locality_'.$schema_id];
1886
  }
1887
  if(isset($all_post_meta['saswp_person_schema_b_region_'.$schema_id])){
1888
- $input1['location']['@type'] = 'Place';
1889
- $input1['location']['address']['addressRegion'.$schema_id] = $all_post_meta['saswp_person_schema_b_region_'.$schema_id];
1890
  }
1891
  if(isset($all_post_meta['saswp_person_schema_b_postal_code_'.$schema_id])){
1892
- $input1['location']['@type'] = 'Place';
1893
- $input1['location']['address']['PostalCode'] = $all_post_meta['saswp_person_schema_b_postal_code_'.$schema_id];
1894
  }
1895
  if(isset($all_post_meta['saswp_person_schema_b_country_'.$schema_id])){
1896
- $input1['location']['@type'] = 'Place';
1897
- $input1['location']['address']['addressCountry'] = $all_post_meta['saswp_person_schema_b_country_'.$schema_id];
1898
  }
1899
 
1900
  if(isset($all_post_meta['saswp_person_schema_award_'.$schema_id][0])){
@@ -1973,6 +1982,96 @@ function saswp_person_schema_markup($schema_id, $schema_post_id, $all_post_meta)
1973
  $input1['hasOccupation']['mainEntityOfPage']['lastReviewed'] = saswp_format_date_time($all_post_meta['saswp_person_schema_salary_last_reviewed_'.$schema_id][0]);
1974
  }
1975
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1976
  return $input1;
1977
  }
1978
 
1445
  if(!isset($input1['review'])){
1446
  $input1 = saswp_append_fetched_reviews($input1);
1447
  }
1448
+
1449
+ if(isset($all_post_meta['local_rating_automate_'.$schema_id][0]) && $all_post_meta['local_google_place_id_'.$schema_id][0]){
1450
+
1451
+ if(function_exists('saswp_automated_aggregate_rating')){
1452
+ $input1 = saswp_automated_aggregate_rating($input1, $all_post_meta['local_google_place_id_'.$schema_id][0]);
1453
+ }
1454
+
1455
+ }
1456
+
1457
+
1458
  return $input1;
1459
  }
1460
 
1886
  }
1887
 
1888
  if(isset($all_post_meta['saswp_person_schema_b_street_address_'.$schema_id])){
1889
+ $input1['homeLocation']['@type'] = 'Place';
1890
+ $input1['homeLocation']['address']['streetAddress'] = $all_post_meta['saswp_person_schema_b_street_address_'.$schema_id];
1891
  }
1892
  if(isset($all_post_meta['saswp_person_schema_b_locality_'.$schema_id])){
1893
+ $input1['homeLocation']['@type'] = 'Place';
1894
+ $input1['homeLocation']['address']['addressLocality'] = $all_post_meta['saswp_person_schema_b_locality_'.$schema_id];
1895
  }
1896
  if(isset($all_post_meta['saswp_person_schema_b_region_'.$schema_id])){
1897
+ $input1['homeLocation']['@type'] = 'Place';
1898
+ $input1['homeLocation']['address']['addressRegion'] = $all_post_meta['saswp_person_schema_b_region_'.$schema_id];
1899
  }
1900
  if(isset($all_post_meta['saswp_person_schema_b_postal_code_'.$schema_id])){
1901
+ $input1['homeLocation']['@type'] = 'Place';
1902
+ $input1['homeLocation']['address']['PostalCode'] = $all_post_meta['saswp_person_schema_b_postal_code_'.$schema_id];
1903
  }
1904
  if(isset($all_post_meta['saswp_person_schema_b_country_'.$schema_id])){
1905
+ $input1['homeLocation']['@type'] = 'Place';
1906
+ $input1['homeLocation']['address']['addressCountry'] = $all_post_meta['saswp_person_schema_b_country_'.$schema_id];
1907
  }
1908
 
1909
  if(isset($all_post_meta['saswp_person_schema_award_'.$schema_id][0])){
1982
  $input1['hasOccupation']['mainEntityOfPage']['lastReviewed'] = saswp_format_date_time($all_post_meta['saswp_person_schema_salary_last_reviewed_'.$schema_id][0]);
1983
  }
1984
 
1985
+ if(!empty($all_post_meta['saswp_person_schema_alternate_name_'.$schema_id][0])){
1986
+ $input1['alternateName'] = $all_post_meta['saswp_person_schema_alternate_name_'.$schema_id][0];
1987
+ }
1988
+ if(!empty($all_post_meta['saswp_person_schema_additional_name_'.$schema_id][0])){
1989
+ $input1['additionalName'] = $all_post_meta['saswp_person_schema_additional_name_'.$schema_id][0];
1990
+ }
1991
+ if(!empty($all_post_meta['saswp_person_schema_given_name_'.$schema_id][0])){
1992
+ $input1['givenName'] = $all_post_meta['saswp_person_schema_given_name_'.$schema_id][0];
1993
+ }
1994
+ if(!empty($all_post_meta['saswp_person_schema_parent_'.$schema_id][0])){
1995
+ $input1['parent'] = $all_post_meta['saswp_person_schema_parent_'.$schema_id][0];
1996
+ }
1997
+ if(!empty($all_post_meta['saswp_person_schema_sibling_'.$schema_id][0])){
1998
+ $input1['sibling'] = $all_post_meta['saswp_person_schema_sibling_'.$schema_id][0];
1999
+ }
2000
+ if(!empty($all_post_meta['saswp_person_schema_colleague_'.$schema_id][0])){
2001
+ $input1['colleague'] = $all_post_meta['saswp_person_schema_colleague_'.$schema_id][0];
2002
+ }
2003
+ if(!empty($all_post_meta['saswp_person_schema_main_entity_of_page_'.$schema_id][0])){
2004
+ $input1['mainEntityOfPage'] = $all_post_meta['saswp_person_schema_main_entity_of_page_'.$schema_id][0];
2005
+ }
2006
+ if(!empty($all_post_meta['saswp_person_schema_sponsor_'.$schema_id][0])){
2007
+ $input1['sponsor'] = $all_post_meta['saswp_person_schema_sponsor_'.$schema_id][0];
2008
+ }
2009
+ if(!empty($all_post_meta['saswp_person_schema_seeks_'.$schema_id][0])){
2010
+ $input1['seeks'] = $all_post_meta['saswp_person_schema_seeks_'.$schema_id][0];
2011
+ }
2012
+ if(!empty($all_post_meta['saswp_person_schema_knows_'.$schema_id][0])){
2013
+ $input1['knows'] = $all_post_meta['saswp_person_schema_knows_'.$schema_id][0];
2014
+ }
2015
+ if(!empty($all_post_meta['saswp_person_schema_owns_'.$schema_id][0])){
2016
+ $input1['owns'] = $all_post_meta['saswp_person_schema_owns_'.$schema_id][0];
2017
+ }
2018
+
2019
+ $perform_in = array();
2020
+
2021
+ if(!empty($all_post_meta['saswp_person_schema_performerin_name_'.$schema_id][0])){
2022
+ $perform_in['name'] = $all_post_meta['saswp_person_schema_performerin_name_'.$schema_id][0];
2023
+ }
2024
+ if(!empty($all_post_meta['saswp_person_schema_performerin_location_name_'.$schema_id][0])){
2025
+ $perform_in['location']['name'] = $all_post_meta['saswp_person_schema_performerin_location_name_'.$schema_id][0];
2026
+ }
2027
+ if(!empty($all_post_meta['saswp_person_schema_performerin_location_locality_'.$schema_id][0])){
2028
+ $perform_in['location']['address']['addressLocality'] = $all_post_meta['saswp_person_schema_performerin_location_locality_'.$schema_id][0];
2029
+ }
2030
+ if(!empty($all_post_meta['saswp_person_schema_performerin_location_postal_code_'.$schema_id][0])){
2031
+ $perform_in['location']['address']['postalCode'] = $all_post_meta['saswp_person_schema_performerin_location_postal_code_'.$schema_id][0];
2032
+ }
2033
+ if(!empty($all_post_meta['saswp_person_schema_performerin_location_street_address_'.$schema_id][0])){
2034
+ $perform_in['location']['address']['streetAddress'] = $all_post_meta['saswp_person_schema_performerin_location_street_address_'.$schema_id][0];
2035
+ }
2036
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_name_'.$schema_id][0])){
2037
+ $perform_in['offers']['name'] = $all_post_meta['saswp_person_schema_performerin_offers_name_'.$schema_id][0];
2038
+ }
2039
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_availability_'.$schema_id][0])){
2040
+ $perform_in['offers']['availability'] = $all_post_meta['saswp_person_schema_performerin_offers_availability_'.$schema_id][0];
2041
+ }
2042
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_price_'.$schema_id][0])){
2043
+ $perform_in['offers']['price'] = $all_post_meta['saswp_person_schema_performerin_offers_price_'.$schema_id][0];
2044
+ }
2045
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_currency_'.$schema_id][0])){
2046
+ $perform_in['offers']['priceCurrency'] = $all_post_meta['saswp_person_schema_performerin_offers_currency_'.$schema_id][0];
2047
+ }
2048
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_valid_from_'.$schema_id][0])){
2049
+ $perform_in['offers']['validFrom'] = $all_post_meta['saswp_person_schema_performerin_offers_valid_from_'.$schema_id][0];
2050
+ }
2051
+ if(!empty($all_post_meta['saswp_person_schema_performerin_offers_url_'.$schema_id][0])){
2052
+ $perform_in['offers']['url'] = $all_post_meta['saswp_person_schema_performerin_offers_url_'.$schema_id][0];
2053
+ }
2054
+ if(!empty($all_post_meta['saswp_person_schema_performerin_start_date_'.$schema_id][0])){
2055
+ $perform_in['startDate'] = $all_post_meta['saswp_person_schema_performerin_start_date_'.$schema_id][0];
2056
+ }
2057
+ if(!empty($all_post_meta['saswp_person_schema_performerin_end_date_'.$schema_id][0])){
2058
+ $perform_in['endDate'] = $all_post_meta['saswp_person_schema_performerin_end_date_'.$schema_id][0];
2059
+ }
2060
+ if(!empty($all_post_meta['saswp_person_schema_performerin_description_'.$schema_id][0])){
2061
+ $perform_in['description'] = $all_post_meta['saswp_person_schema_performerin_description_'.$schema_id][0];
2062
+ }
2063
+ if(!empty($all_post_meta['saswp_person_schema_performerin_image_'.$schema_id][0])){
2064
+ $perform_in['image'] = $all_post_meta['saswp_person_schema_performerin_image_'.$schema_id][0];
2065
+ }
2066
+ if(!empty($all_post_meta['saswp_person_schema_performerin_performer_'.$schema_id][0])){
2067
+ $perform_in['performer']['@type'] = 'Person';
2068
+ $perform_in['performer']['name'] = $all_post_meta['saswp_person_schema_performerin_performer_'.$schema_id][0];
2069
+ }
2070
+
2071
+ if(!empty($perform_in)){
2072
+ $input1['performerIn'] = $perform_in;
2073
+ }
2074
+
2075
  return $input1;
2076
  }
2077
 
output/other-schema.php CHANGED
@@ -499,7 +499,7 @@ function saswp_add_mooberrybm_schema( $input1 ){
499
  }
500
 
501
  $editors = wp_get_post_terms( $post->ID , 'mbdb_editor');
502
- $editors_arr = array();
503
 
504
  if(!is_wp_error($editors)){
505
 
@@ -525,19 +525,20 @@ function saswp_add_mooberrybm_schema( $input1 ){
525
  $format = array('Hardcover', 'Paperback', 'ePub', 'Kindle', 'PDF', 'Audiobook');
526
 
527
  if(!empty($editions)){
 
528
  foreach ($editions as $value) {
529
 
530
  $editions_arr[] = array(
531
  '@type' => 'Book',
532
- 'isbn' => $value['_mbdb_isbn'],
533
- 'bookEdition' => $value['_mbdb_edition_title'],
534
- 'bookFormat' => $format[$value['_mbdb_format']],
535
- 'inLanguage' => $value['_mbdb_language'],
536
- 'numberOfPages' => $value['_mbdb_length'],
537
  'offers' => array(
538
  '@type' => 'Offer',
539
- 'price' => $value['_mbdb_retail_price'],
540
- 'priceCurrency' => $value['_mbdb_currency']
541
  ),
542
  );
543
  }
499
  }
500
 
501
  $editors = wp_get_post_terms( $post->ID , 'mbdb_editor');
502
+ $editors_arr = array();
503
 
504
  if(!is_wp_error($editors)){
505
 
525
  $format = array('Hardcover', 'Paperback', 'ePub', 'Kindle', 'PDF', 'Audiobook');
526
 
527
  if(!empty($editions)){
528
+
529
  foreach ($editions as $value) {
530
 
531
  $editions_arr[] = array(
532
  '@type' => 'Book',
533
+ 'isbn' => !empty($value['_mbdb_isbn']) ? $value['_mbdb_isbn'] : '',
534
+ 'bookEdition' => !empty($value['_mbdb_edition_title']) ? $value['_mbdb_edition_title'] : '',
535
+ 'bookFormat' => !empty($format[$value['_mbdb_format']]) ? $format[$value['_mbdb_format']] : '',
536
+ 'inLanguage' => !empty($value['_mbdb_language']) ? $value['_mbdb_language'] : '',
537
+ 'numberOfPages' => !empty($value['_mbdb_length']) ? $value['_mbdb_length'] : '',
538
  'offers' => array(
539
  '@type' => 'Offer',
540
+ 'price' => !empty($value['_mbdb_retail_price'])? $value['_mbdb_retail_price'] : '',
541
+ 'priceCurrency' => !empty($value['_mbdb_currency']) ? $value['_mbdb_currency'] : ''
542
  ),
543
  );
544
  }
output/output.php CHANGED
@@ -1591,16 +1591,23 @@ function saswp_schema_output() {
1591
 
1592
  case 'NewsArticle':
1593
 
1594
- $image_details = wp_get_attachment_image_src($image_id);
1595
 
1596
  $category_detail = get_the_category(get_the_ID());//$post->ID
1597
  $article_section = '';
1598
 
1599
- foreach($category_detail as $cd){
1600
 
1601
- $article_section = $cd->cat_name;
 
 
 
 
 
 
1602
 
1603
  }
 
1604
  $word_count = saswp_reading_time_and_word_count();
1605
 
1606
  $input1 = array(
1591
 
1592
  case 'NewsArticle':
1593
 
1594
+ $image_details = wp_get_attachment_image_src($image_id);
1595
 
1596
  $category_detail = get_the_category(get_the_ID());//$post->ID
1597
  $article_section = '';
1598
 
1599
+ if($category_detail){
1600
 
1601
+ foreach($category_detail as $cd){
1602
+
1603
+ if(is_object($cd)){
1604
+ $article_section = $cd->cat_name;
1605
+ }
1606
+
1607
+ }
1608
 
1609
  }
1610
+
1611
  $word_count = saswp_reading_time_and_word_count();
1612
 
1613
  $input1 = array(
output/service.php CHANGED
@@ -4296,16 +4296,21 @@ Class saswp_output_service{
4296
  $product_details['product_price'] = $woo_price;
4297
  }
4298
 
4299
- $product_details['product_sku'] = $product->get_sku() ? $product->get_sku(): get_the_ID();
4300
 
4301
  if(isset($date_on_sale)){
4302
 
4303
  $product_details['product_priceValidUntil'] = $date_on_sale->date('Y-m-d G:i:s');
4304
 
4305
  }else{
4306
-
4307
- $product_details['product_priceValidUntil'] = get_the_modified_date("c");
4308
-
 
 
 
 
 
4309
  }
4310
 
4311
  $product_details['product_currency'] = get_option( 'woocommerce_currency' );
@@ -4458,7 +4463,8 @@ Class saswp_output_service{
4458
 
4459
  }
4460
 
4461
- }
 
4462
  return $product_details;
4463
  }
4464
 
@@ -4919,16 +4925,38 @@ Class saswp_output_service{
4919
 
4920
 
4921
  }else{
4922
-
4923
  if(isset($product_details['product_varible_price']) && $product_details['product_varible_price']){
4924
 
4925
- $input1['offers']['@type'] = 'AggregateOffer';
4926
- $input1['offers']['lowPrice'] = min($product_details['product_varible_price']);
4927
- $input1['offers']['highPrice'] = max($product_details['product_varible_price']);
4928
- $input1['offers']['priceCurrency'] = saswp_remove_warnings($product_details, 'product_currency', 'saswp_string');
4929
- $input1['offers']['availability'] = saswp_remove_warnings($product_details, 'product_availability', 'saswp_string');
4930
- $input1['offers']['offerCount'] = count($product_details['product_varible_price']);
4931
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4932
  }
4933
 
4934
  }
4296
  $product_details['product_price'] = $woo_price;
4297
  }
4298
 
4299
+ $product_details['product_sku'] = $product->get_sku();
4300
 
4301
  if(isset($date_on_sale)){
4302
 
4303
  $product_details['product_priceValidUntil'] = $date_on_sale->date('Y-m-d G:i:s');
4304
 
4305
  }else{
4306
+
4307
+ $mdate = get_the_modified_date("c");
4308
+
4309
+ if($mdate){
4310
+ $mdate = strtotime($mdate);
4311
+ $product_details['product_priceValidUntil'] = date("c", strtotime("+1 years", $mdate));
4312
+ }
4313
+
4314
  }
4315
 
4316
  $product_details['product_currency'] = get_option( 'woocommerce_currency' );
4463
 
4464
  }
4465
 
4466
+ }
4467
+
4468
  return $product_details;
4469
  }
4470
 
4925
 
4926
 
4927
  }else{
4928
+
4929
  if(isset($product_details['product_varible_price']) && $product_details['product_varible_price']){
4930
 
4931
+ if( isset($sd_data['saswp-single-price-product']) && $sd_data['saswp-single-price-product'] == 1 ){
 
 
 
 
 
4932
 
4933
+ $price = max($product_details['product_varible_price']);
4934
+
4935
+ if(!empty($sd_data['saswp-single-price-type']) && $sd_data['saswp-single-price-type'] == 'low'){
4936
+ $price = min($product_details['product_varible_price']);
4937
+ }
4938
+
4939
+ $input1['offers'] = array(
4940
+ '@type' => 'Offer',
4941
+ 'availability' => saswp_remove_warnings($product_details, 'product_availability', 'saswp_string'),
4942
+ 'price' => $price,
4943
+ 'priceCurrency' => saswp_remove_warnings($product_details, 'product_currency', 'saswp_string'),
4944
+ 'url' => trailingslashit(saswp_get_permalink()),
4945
+ 'priceValidUntil' => saswp_remove_warnings($product_details, 'product_priceValidUntil', 'saswp_string')
4946
+ );
4947
+
4948
+ }else{
4949
+
4950
+ $input1['offers']['@type'] = 'AggregateOffer';
4951
+ $input1['offers']['lowPrice'] = min($product_details['product_varible_price']);
4952
+ $input1['offers']['highPrice'] = max($product_details['product_varible_price']);
4953
+ $input1['offers']['priceCurrency'] = saswp_remove_warnings($product_details, 'product_currency', 'saswp_string');
4954
+ $input1['offers']['availability'] = saswp_remove_warnings($product_details, 'product_availability', 'saswp_string');
4955
+ $input1['offers']['offerCount'] = count($product_details['product_varible_price']);
4956
+
4957
+ }
4958
+
4959
+
4960
  }
4961
 
4962
  }
output/tinymce.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Output Page
4
+ *
5
+ * @author Magazine3
6
+ * @category Frontend
7
+ * @path output_post_specific/output_post_specific
8
+ * @version 1.0
9
+ */
10
+ if (! defined('ABSPATH') ) exit;
11
+
12
+ function saswp_tinymce_how_to_schema(){
13
+
14
+ global $saswp_tiny_howto;
15
+
16
+ $input1 = array();
17
+
18
+ if( !empty($saswp_tiny_howto['elements']) ){
19
+
20
+ $service_object = new saswp_output_service();
21
+ $feature_image = $service_object->saswp_get_fetaure_image();
22
+
23
+ $input1['@context'] = saswp_context_url();
24
+ $input1['@type'] = 'HowTo';
25
+ $input1['@id'] = trailingslashit(saswp_get_permalink()).'#HowTo';
26
+ $input1['name'] = saswp_get_the_title();
27
+ $input1['datePublished'] = get_the_date("c");
28
+ $input1['dateModified'] = get_the_modified_date("c");
29
+
30
+ if(!empty($feature_image)){
31
+
32
+ $input1 = array_merge($input1, $feature_image);
33
+
34
+ }
35
+
36
+ if( !empty($saswp_tiny_howto) ){
37
+ $input1['description'] = $saswp_tiny_howto['description'];
38
+ }
39
+
40
+ $step = array();
41
+ $step_arr = array();
42
+
43
+
44
+ if( !empty($saswp_tiny_howto['elements']) ){
45
+
46
+ foreach($saswp_tiny_howto['elements'] as $key => $val){
47
+
48
+ $supply_data = array();
49
+ $direction = array();
50
+ $tip = array();
51
+
52
+ if($val['step_title'] || $val['step_description']){
53
+
54
+ if($val['step_description']){
55
+ $direction['@type'] = 'HowToDirection';
56
+ $direction['text'] = saswp_remove_all_images($val['step_description']);
57
+ }
58
+
59
+ if($val['step_description']){
60
+
61
+ $tip['@type'] = 'HowToTip';
62
+ $tip['text'] = saswp_remove_all_images($val['step_description']);
63
+
64
+ }
65
+
66
+ $supply_data['@type'] = 'HowToStep';
67
+ $supply_data['url'] = trailingslashit(saswp_get_permalink()).'#step'.++$key;
68
+ $supply_data['name'] = $val['step_title'];
69
+
70
+ if(isset($direction['text']) || isset($tip['text'])){
71
+ $supply_data['itemListElement'] = array($direction, $tip);
72
+ }
73
+
74
+ if(isset($val['image']) && $val['image'] !=''){
75
+
76
+ $image_details = saswp_get_image_by_id($val['image']);
77
+
78
+ if($image_details){
79
+ $supply_data['image'] = $image_details;
80
+ }
81
+
82
+ }
83
+
84
+ $step_arr[] = $supply_data;
85
+
86
+ }
87
+
88
+ }
89
+
90
+ $input1['step'] = $step_arr;
91
+
92
+ }
93
+
94
+ if(isset($saswp_tiny_howto['days']) || isset($saswp_tiny_howto['hours']) || isset($saswp_tiny_howto['minutes'])){
95
+
96
+ $input1['totalTime'] = 'P'.
97
+ ((isset($saswp_tiny_howto['days']) && $saswp_tiny_howto['days'] !='') ? esc_attr($saswp_tiny_howto['days']).'DT':'').
98
+ ((isset($saswp_tiny_howto['hours']) && $saswp_tiny_howto['hours'] !='') ? esc_attr($saswp_tiny_howto['hours']).'H':'').
99
+ ((isset($saswp_tiny_howto['minutes']) && $saswp_tiny_howto['minutes'] !='') ? esc_attr($saswp_tiny_howto['minutes']).'M':'');
100
+
101
+ }
102
+
103
+ if(isset($saswp_tiny_howto['cost']) && isset($saswp_tiny_howto['cost_currency'])){
104
+
105
+ $input1['estimatedCost']['@type'] = 'MonetaryAmount';
106
+ $input1['estimatedCost']['currency']= $saswp_tiny_howto['cost_currency'];
107
+ $input1['estimatedCost']['value'] = $saswp_tiny_howto['cost'];
108
+ }
109
+
110
+ }
111
+
112
+ if($input1){
113
+
114
+ $service_object = new saswp_output_service();
115
+
116
+ $extra_theme_review = $service_object->saswp_extra_theme_review_details(get_the_ID());
117
+ $aggregateRating = $service_object->saswp_rating_box_rating_markup(get_the_ID());
118
+
119
+ if(!empty($aggregateRating)){
120
+ $input1['aggregateRating'] = $aggregateRating;
121
+ }
122
+ if(!empty($extra_theme_review)){
123
+ $input1 = array_merge($input1, $extra_theme_review);
124
+ }
125
+
126
+ $input1 = saswp_append_fetched_reviews($input1, get_the_ID());
127
+
128
+ }
129
+
130
+ return apply_filters('saswp_modify_howto_schema_output', $input1 );
131
+
132
+ }
133
+
134
+ function saswp_tinymce_faq_schema(){
135
+
136
+ global $saswp_tiny_multi_faq, $sd_data;
137
+ $input1 = array();
138
+
139
+ $input1['@context'] = saswp_context_url();
140
+ $input1['@type'] = 'FAQPage';
141
+ $input1['@id'] = trailingslashit(saswp_get_permalink()).'#FAQPage';
142
+
143
+ $faq_question_arr = array();
144
+
145
+ if(!empty($saswp_tiny_multi_faq['elements'])){
146
+
147
+ foreach($saswp_tiny_multi_faq['elements'] as $val){
148
+
149
+ $supply_data = array();
150
+ $supply_data['@type'] = 'Question';
151
+ $supply_data['name'] = (isset($val['question']) && is_string($val['question']) ) ? htmlspecialchars($val['question'], ENT_QUOTES, 'UTF-8') : '';
152
+ $supply_data['acceptedAnswer']['@type'] = 'Answer';
153
+ $supply_data['acceptedAnswer']['text'] = (isset($val['answer']) && is_string($val['answer']) ) ? htmlspecialchars($val['answer'], ENT_QUOTES, 'UTF-8') : '';
154
+
155
+ if(!empty($val['image'])){
156
+
157
+ $image_details = saswp_get_image_by_id($val['image']);
158
+
159
+ if($image_details){
160
+ $supply_data['image'] = $image_details;
161
+ }
162
+
163
+ }
164
+
165
+ $faq_question_arr[] = $supply_data;
166
+ }
167
+ $input1['mainEntity'] = $faq_question_arr;
168
+ }
169
+
170
+ return apply_filters('saswp_modify_faq_block_schema_output', $input1 );
171
+ }
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.8
6
- Stable tag: 1.9.85
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -120,6 +120,23 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  = 1.9.85 (24 Sept 2021) =
124
 
125
  * Fixed: Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given #1533
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
+ Stable tag: 1.9.86
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
120
 
121
  == Changelog ==
122
 
123
+
124
+ = 1.9.86 (18 Oct 2021) =
125
+
126
+ * Fixed: Undefined index _mbdb_isbn in other-schema.php #1545
127
+ * Fixed: css issue of star ratings in comment form with Neptune by Osetin Theme. #1476
128
+ * Fixed: Woocommerce-Product priceValidUntil #1537
129
+ * Fixed: Debug log Errors #1536
130
+ * Fixed: Images are not displaying while fetching the reviews [oneflare]. #1544
131
+ * Added: Dynamic Aggregate Rating #1393
132
+ * Added: More properties to Person Schema #1366
133
+ * Added: An option to Set variable product as simple product #1291
134
+ * Added: Need to show the review text in the review list #1344
135
+ * Added: Enfold Theme compatibility #1530
136
+ * Added: Schema blocks (FAQ & HowTo) for classic editor #1362
137
+ * Added: The condition to fetch GTIN or SKU of the product on woocommerce compatibility for schema. #1531
138
+
139
+
140
  = 1.9.85 (24 Sept 2021) =
141
 
142
  * Fixed: Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given #1533
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.85
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.85');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
@@ -36,6 +36,7 @@ require_once SASWP_DIR_NAME .'/output/output.php';
36
  require_once SASWP_DIR_NAME .'/output/markup.php';
37
  require_once SASWP_DIR_NAME .'/output/other-schema.php';
38
  require_once SASWP_DIR_NAME .'/output/gutenberg.php';
 
39
  require_once SASWP_DIR_NAME .'/output/elementor.php';
40
  require_once SASWP_DIR_NAME .'/output/divi-builder.php';
41
 
@@ -105,6 +106,8 @@ require_once SASWP_DIR_NAME.'/modules/reviews/reviews_service.php';
105
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_widget.php';
106
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_collection.php';
107
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_form.php';
 
 
108
  require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
109
  require_once SASWP_DIR_NAME.'/core/global.php';
110
  //Module files load
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.86
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.86');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
36
  require_once SASWP_DIR_NAME .'/output/markup.php';
37
  require_once SASWP_DIR_NAME .'/output/other-schema.php';
38
  require_once SASWP_DIR_NAME .'/output/gutenberg.php';
39
+ require_once SASWP_DIR_NAME .'/output/tinymce.php';
40
  require_once SASWP_DIR_NAME .'/output/elementor.php';
41
  require_once SASWP_DIR_NAME .'/output/divi-builder.php';
42
 
106
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_widget.php';
107
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_collection.php';
108
  require_once SASWP_DIR_NAME.'/modules/reviews/reviews_form.php';
109
+ require_once SASWP_DIR_NAME.'/modules/tinymce/register-tinymce.php';
110
+ require_once SASWP_DIR_NAME.'/modules/tinymce/register-shortcodes.php';
111
  require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
112
  require_once SASWP_DIR_NAME.'/core/global.php';
113
  //Module files load
view/common.php CHANGED
@@ -472,13 +472,16 @@ class saswp_view_common_class {
472
  $rating_class = 'class="saswp-enable-rating-review-'.strtolower($schema_type).'"';
473
  }
474
 
 
 
 
475
  $input = sprintf(
476
  '<input %s %s id="%s" name="%s" type="checkbox" value="1">',
477
  $rating_class,
478
  $meta_value === '1' ? 'checked' : '',
479
  $meta_field['id'],
480
  $meta_field['id']
481
- );
482
  break;
483
 
484
  case 'multiselect':
@@ -564,6 +567,8 @@ class saswp_view_common_class {
564
  $meta_field['id'] == 'saswp_review_review_count_'.$schema_id ||
565
  $meta_field['id'] == 'saswp_review_rating_'.$schema_id ||
566
  $meta_field['id'] == 'local_review_count_'.$schema_id ||
 
 
567
  $meta_field['id'] == 'saswp_recipe_schema_rating_'.$schema_id ||
568
  $meta_field['id'] == 'saswp_recipe_schema_review_count_'.$schema_id ||
569
  $meta_field['id'] == 'saswp_software_schema_rating_count_'.$schema_id
472
  $rating_class = 'class="saswp-enable-rating-review-'.strtolower($schema_type).'"';
473
  }
474
 
475
+ if(strpos($meta_field['id'], 'rating_automate') !== false){
476
+ $rating_class = 'class="saswp-enable-rating-automate-'.strtolower($schema_type).'"';
477
+ }
478
  $input = sprintf(
479
  '<input %s %s id="%s" name="%s" type="checkbox" value="1">',
480
  $rating_class,
481
  $meta_value === '1' ? 'checked' : '',
482
  $meta_field['id'],
483
  $meta_field['id']
484
+ );
485
  break;
486
 
487
  case 'multiselect':
567
  $meta_field['id'] == 'saswp_review_review_count_'.$schema_id ||
568
  $meta_field['id'] == 'saswp_review_rating_'.$schema_id ||
569
  $meta_field['id'] == 'local_review_count_'.$schema_id ||
570
+ $meta_field['id'] == 'local_rating_automate_'.$schema_id ||
571
+ $meta_field['id'] == 'local_google_place_id_'.$schema_id ||
572
  $meta_field['id'] == 'saswp_recipe_schema_rating_'.$schema_id ||
573
  $meta_field['id'] == 'saswp_recipe_schema_review_count_'.$schema_id ||
574
  $meta_field['id'] == 'saswp_software_schema_rating_count_'.$schema_id