| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
/** |
| 4 |
* Variables passed from Notices::render_optin_notice(): |
| 5 |
* |
| 6 |
* @var string $wp_version |
| 7 |
* @var string $php_version |
| 8 |
* @var string $plugin_version |
| 9 |
* @var string $opt_level |
| 10 |
* @var string $next_gen |
| 11 |
* @var string $license_type |
| 12 |
*/ |
| 13 |
|
| 14 |
$accept_url = wp_nonce_url( admin_url( 'admin-post.php?action=imagify_analytics_optin&value=yes' ), 'imagify_analytics_optin' ); |
| 15 |
$decline_url = wp_nonce_url( admin_url( 'admin-post.php?action=imagify_analytics_optin&value=no' ), 'imagify_analytics_optin' ); |
| 16 |
?> |
| 17 |
<div class="notice notice-info imagify-analytics-optin-notice"> |
| 18 |
<p> |
| 19 |
<strong><?php esc_html_e( 'Would you allow Imagify to collect non-sensitive diagnostic data from this website?', 'imagify' ); ?></strong> |
| 20 |
<br> |
| 21 |
<?php esc_html_e( 'This would help us to improve Imagify for you in the future.', 'imagify' ); ?> |
| 22 |
</p> |
| 23 |
<p> |
| 24 |
<button type="button" class="imagify-btn-link imagify-analytics-preview-toggle"><?php esc_html_e( 'What info will we collect?', 'imagify' ); ?></button> |
| 25 |
</p> |
| 26 |
<div class="imagify-analytics-data-container hidden"> |
| 27 |
<p class="description"> |
| 28 |
<?php esc_html_e( 'Below is a detailed view of all data Imagify will collect if granted permission. We never collect your images, their content, or any personal data — only anonymous performance metrics.', 'imagify' ); ?> |
| 29 |
</p> |
| 30 |
<?php require IMAGIFY_PATH . 'views/part-analytics-data-table.php'; ?> |
| 31 |
</div> |
| 32 |
<p> |
| 33 |
<a href="<?php echo esc_url( $accept_url ); ?>" class="button button-primary"><?php esc_html_e( 'Yes, allow', 'imagify' ); ?></a> |
| 34 |
<a href="<?php echo esc_url( $decline_url ); ?>" class="button button-secondary"><?php esc_html_e( 'No, thanks', 'imagify' ); ?></a> |
| 35 |
</p> |
| 36 |
</div> |
| 37 |
|