tracker-connect.php
1 week ago
tracker-deactivate.php
1 week ago
tracker-notice.php
1 week ago
tracker-opt-out-notice.php
1 week ago
tracker-notice.php
46 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FSVendor; |
| 4 | |
| 5 | if (!\defined('ABSPATH')) { |
| 6 | exit; |
| 7 | } |
| 8 | ?> |
| 9 | |
| 10 | <div id="wpdesk_tracker_notice" class="updated notice wpdesk_tracker_notice is-dismissible"> |
| 11 | <p> |
| 12 | <?php |
| 13 | $notice_content = \apply_filters_ref_array('wpdesk_tracker_notice_content', [\false, $username, $terms_url]); |
| 14 | ?> |
| 15 | <?php |
| 16 | if (empty($notice_content)) { |
| 17 | ?> |
| 18 | <?php |
| 19 | \printf(\esc_html__('Hey %s,', 'flexible-shipping'), \esc_html($username)); |
| 20 | ?><br/> |
| 21 | <?php |
| 22 | echo \wp_kses_post(\__('We need your help to improve <strong>WP Desk plugins</strong>, so they are more useful for you and the rest of <strong>30,000+ users</strong>. By collecting data on how you use our plugins, you will help us a lot. We will not collect any sensitive data, so you can feel safe.', 'flexible-shipping')); |
| 23 | ?> |
| 24 | <a href="<?php |
| 25 | echo \esc_url($terms_url); |
| 26 | ?>" target="_blank"><?php |
| 27 | \esc_html_e('Find out more »', 'flexible-shipping'); |
| 28 | ?></a> |
| 29 | <?php |
| 30 | } else { |
| 31 | ?> |
| 32 | <?php |
| 33 | echo \wp_kses_post($notice_content); |
| 34 | ?> |
| 35 | <?php |
| 36 | } |
| 37 | ?> |
| 38 | </p> |
| 39 | <p> |
| 40 | <button id="wpdesk_tracker_allow_button_notice" class="button button-primary"><?php |
| 41 | \esc_html_e('Enable usage tracking', 'flexible-shipping'); |
| 42 | ?></button> |
| 43 | </p> |
| 44 | </div> |
| 45 | <?php |
| 46 |