onboard-steps
2 weeks ago
settings-sections
2 weeks ago
init.php
2 weeks ago
layout-onboard.php
1 year ago
layout-settings.php
2 weeks ago
layout-user-consent-for-banner.php
2 years ago
layout-user-consent-for-banner.php
43 lines
| 1 | <style> |
| 2 | .ekit-user-consent-for-banner{ |
| 3 | margin: 0 0 15px 0!important; |
| 4 | max-width: 655px; |
| 5 | } |
| 6 | .ekit-success-notice { |
| 7 | position: fixed; |
| 8 | top: 50px; |
| 9 | right: 20px; |
| 10 | background-color: #f2295b; |
| 11 | color: white; |
| 12 | padding: 10px; |
| 13 | border-radius: 5px; |
| 14 | display: none; |
| 15 | } |
| 16 | </style> |
| 17 | <script> |
| 18 | jQuery(document).ready(function ($) { |
| 19 | "use strict"; |
| 20 | $('#ekit-admin-switch__ekit-user-consent-for-banner').on('change', function(){ |
| 21 | let val = ($(this).prop("checked") ? $(this).val() : 'no'); |
| 22 | let data = { |
| 23 | 'settings' : { |
| 24 | 'ekit_user_consent_for_banner' : val, |
| 25 | }, |
| 26 | 'nonce': "<?php echo esc_html(wp_create_nonce( 'ajax-nonce' )); ?>" |
| 27 | }; |
| 28 | |
| 29 | $.post( ajaxurl + '?action=ekit_admin_action', data, function( data ) { |
| 30 | $('#success-notice').fadeIn().delay(1000).fadeOut(); |
| 31 | }); |
| 32 | }); |
| 33 | }); // end ready function |
| 34 | </script> |
| 35 | |
| 36 | <div id="success-notice" class="ekit-success-notice"><?php esc_html_e( 'Success! Your action was completed', 'elementskit-lite' ); ?></div> |
| 37 | <div class="ekit-user-consent-for-banner notice notice-error"> |
| 38 | <p> |
| 39 | <label for="ekit-admin-switch__ekit-user-consent-for-banner"><?php esc_html_e( 'Show update & fix related important messages, essential tutorials and promotional images on WP Dashboard', 'elementskit-lite' ); ?></label> |
| 40 | <input type="checkbox" <?php echo ( $this->utils->get_settings( 'ekit_user_consent_for_banner', 'yes' ) == 'yes' ? 'checked' : '' ); ?> value="yes" class="ekit-admin-control-input" name="ekit-user-consent-for-banner" id="ekit-admin-switch__ekit-user-consent-for-banner"> |
| 41 | </p> |
| 42 | </div> |
| 43 |