PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 3.2.1
Wp Social Login and Register Social Counter v3.2.1
3.2.1 trunk 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.10 1.3.11 1.3.2 1.3.3 1.3.4 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.4 1.4.5 1.4.6 1.4.8 1.4.9 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.8 2.2.9 3.0.0 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0
wp-social / lib / user-consent-banner / consent-check-view.php
wp-social / lib / user-consent-banner Last commit date
consent-check-view.php 2 years ago
consent-check-view.php
46 lines
1
2 <style>
3 .wp-social-user-consent-for-banner{
4 margin: 0 0 15px 0!important;
5 width: 842px;
6 max-width: 1350px;
7 }
8 .wp-social-success-notice {
9 position: fixed;
10 top: 50px;
11 right: 20px;
12 background-color: #14c87c;
13 color: white;
14 padding: 10px;
15 border-radius: 5px;
16 display: none;
17 }
18
19 </style>
20 <script>
21 jQuery(document).ready(function ($) {
22 "use strict";
23 $('#wp-social-admin-switch__wp-social-user-consent-for-banner').on('change', function(){
24 let val = ($(this).prop("checked") ? $(this).val() : 'no');
25 let data = {
26 'wp_social_user_consent_for_promotional_content' : val,
27 'nonce': "<?php echo esc_html(wp_create_nonce( 'ajax-nonce' )); ?>"
28 };
29
30 $.post( ajaxurl + '?action=wp_social_admin_consent_action', data, function( data ) {
31 $('#success-notice').fadeIn().delay(1000).slideUp();
32 });
33 });
34 }); // end ready function
35 </script>
36
37
38 <div id="success-notice" class="wp-social-success-notice">Success! Your action was completed.</div>
39 <div class="wp-social-user-consent-for-banner notice notice-error">
40 <p>
41 <input type="checkbox" <?php echo ( get_option( 'wp_social_user_consent_for_promotional_content', 'yes' ) == 'yes' ? esc_html( 'checked' ) : '' ); ?> value="yes" class="wp-social-admin-control-input" name="wp-social-user-consent-for-banner" id="wp-social-admin-switch__wp-social-user-consent-for-banner">
42 <label for="wp-social-admin-switch__wp-social-user-consent-for-banner"><?php esc_html_e( 'Show update & fix related important messages, essential tutorials and promotional images on WP Dashboard', 'wp-social' ); ?></label>
43 </p>
44 </div>
45
46