_partial
1 month ago
aios-salt-postfix-enabled.php
1 year ago
analytics-consent-failed.php
1 year ago
analytics-consent-refused.php
1 year ago
analytics-modal.php
4 days ago
backup-plugins-notice.php
8 months ago
beta.php
1 year ago
cache-directory-permission-problem.php
1 year ago
cli-integration-notice.php
1 week ago
cron-warning-notice.php
4 days ago
directory-listing-could-not-be-prevented.php
8 months ago
disabled-items-notice.php
1 year ago
disabled-optimizer-notice.php
1 year ago
elementor-cloud-notice.php
5 months ago
logs-directory-permission-problem.php
1 year ago
low-memory-limit.php
1 year ago
mu-plugin-directory-permission-problem.php
1 year ago
next-gen-engine-notice.php
1 month ago
no-db-prefix-notice.php
1 year ago
object-cache-skipped.php
1 year ago
outdated-wp-staging-hooks.php
1 year ago
outdated-wp-staging-version.php
1 year ago
pro-crons-notice.php
1 year ago
review-prompt-handlers.php
1 month ago
review-prompt-modal.php
1 month ago
settings_option_corrupt.php
1 year ago
staging-directory-permission-problem.php
1 week ago
staging-symlink-enabled-notice.php
11 months ago
table-tmp-prefix-conflict-notice.php
1 year ago
transient.php
1 year ago
uploads-outside-wp-root.php
1 year ago
vars-directory-permission-problem.php
1 year ago
wordfence-userini-renamed.php
7 months ago
wp-options-missing-pk.php
7 months ago
wp-version-compat-notice.php
5 months ago
wpe-permalink-issue-notice.php
1 year ago
wrong-scheme.php
1 year ago
analytics-modal.php
77 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * The analytics consent question. |
| 5 | * |
| 6 | * Every category below is the plain-language name of something the payload in |
| 7 | * {@see \WPStaging\Framework\Analytics\WithAnalyticsSiteInfo::getAnalyticsSiteInfo()}, |
| 8 | * {@see \WPStaging\Framework\Analytics\AnalyticsEventDto} and |
| 9 | * {@see \WPStaging\Framework\Analytics\AnalyticsConsent::giveConsent()} actually |
| 10 | * sends. Change one of those and this view has to change with it. |
| 11 | */ |
| 12 | |
| 13 | use WPStaging\Framework\Language\Language; |
| 14 | |
| 15 | $privacyPolicyUrl = Language::localizeUrl('https://wp-staging.com/privacy-policy/'); |
| 16 | |
| 17 | $sharedData = [ |
| 18 | [ |
| 19 | 'name' => __('Site environment', 'wp-staging'), |
| 20 | 'text' => __('Site address, WordPress and PHP versions, server and database details, your active plugins and theme.', 'wp-staging'), |
| 21 | ], |
| 22 | [ |
| 23 | 'name' => __('WP STAGING usage', 'wp-staging'), |
| 24 | 'text' => __('Plugin activation, deactivation and uninstall, staging and backup events with their duration and size, and your WP STAGING settings.', 'wp-staging'), |
| 25 | ], |
| 26 | [ |
| 27 | 'name' => __('Error diagnostics', 'wp-staging'), |
| 28 | 'text' => __('When a job fails: the error message and the last lines of your WP STAGING and PHP logs.', 'wp-staging'), |
| 29 | ], |
| 30 | [ |
| 31 | 'name' => __('Product notifications', 'wp-staging'), |
| 32 | 'text' => __('Important security, compatibility and feature updates.', 'wp-staging'), |
| 33 | ], |
| 34 | ]; |
| 35 | ?> |
| 36 | <div class="wpstg-consent-modal-main-wrapper"> |
| 37 | <div class="wpstg-consent-modal-content" role="dialog" aria-modal="true" aria-labelledby="wpstg-consent-modal-title" tabindex="-1"> |
| 38 | <div class="wpstg-consent-modal-install-image-block"> |
| 39 | <?php require WPSTG_VIEWS_DIR . 'notices/_partial/wp-staging-logo-svg.php'; ?> |
| 40 | </div> |
| 41 | |
| 42 | <h2 class="wpstg-consent-modal-header" id="wpstg-consent-modal-title"><?php esc_html_e('Enable security alerts', 'wp-staging'); ?></h2> |
| 43 | <p class="wpstg-consent-modal-install-description-text"><?php esc_html_e('Get important security and compatibility alerts. Technical usage data helps us spot problems earlier, improve reliability, and troubleshoot issues faster when you need support.', 'wp-staging'); ?></p> |
| 44 | |
| 45 | <button type="button" id="wpstg-consent-modal-btn-success"><?php esc_html_e('Enable & Continue', 'wp-staging'); ?></button> |
| 46 | |
| 47 | <div id="wpstg-consent-modal-permission-list" hidden> |
| 48 | <h3 class="wpstg-consent-modal-section-title"><?php esc_html_e('Why this helps', 'wp-staging'); ?></h3> |
| 49 | <p class="wpstg-consent-modal-section-text"><?php esc_html_e('Technical diagnostics help us identify compatibility problems across real WordPress environments and give our support team better context when troubleshooting an issue you report.', 'wp-staging'); ?></p> |
| 50 | |
| 51 | <h3 class="wpstg-consent-modal-section-title"><?php esc_html_e('What is shared', 'wp-staging'); ?></h3> |
| 52 | <dl class="wpstg-consent-modal-shared-list"> |
| 53 | <?php foreach ($sharedData as $shared) : ?> |
| 54 | <dt><?php echo esc_html($shared['name']); ?></dt> |
| 55 | <dd><?php echo esc_html($shared['text']); ?></dd> |
| 56 | <?php endforeach; ?> |
| 57 | </dl> |
| 58 | |
| 59 | <p class="wpstg-consent-modal-assurance"><?php esc_html_e('WP STAGING never reads your posts, pages, media or passwords, and never sends us your backup files.', 'wp-staging'); ?></p> |
| 60 | </div> |
| 61 | |
| 62 | <div class="wpstg-consent-modal-install-footer"> |
| 63 | <button |
| 64 | type="button" |
| 65 | id="wpstg-admin-notice-learn-more" |
| 66 | class="wpstg-consent-modal-button" |
| 67 | aria-expanded="false" |
| 68 | aria-controls="wpstg-consent-modal-permission-list" |
| 69 | data-label-expanded="<?php esc_attr_e('Read Less', 'wp-staging'); ?>" |
| 70 | data-label-collapsed="<?php esc_attr_e('Read More', 'wp-staging'); ?>" |
| 71 | ><?php esc_html_e('Read More', 'wp-staging'); ?></button> |
| 72 | <a class="wpstg-consent-modal-button" href="<?php echo esc_url($privacyPolicyUrl); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Privacy Policy', 'wp-staging'); ?></a> |
| 73 | <button type="button" id="wpstg-skip-activate-notice" class="wpstg-consent-modal-button"><?php esc_html_e('Skip', 'wp-staging'); ?></button> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 |