_partial
2 weeks 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
1 month ago
backup-plugins-notice.php
7 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
2 months ago
directory-listing-could-not-be-prevented.php
7 months ago
disabled-items-notice.php
1 year ago
disabled-optimizer-notice.php
1 year ago
elementor-cloud-notice.php
4 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 week ago
no-db-prefix-notice.php
1 year ago
object-cache-skipped.php
11 months 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
3 weeks ago
review-prompt-modal.php
3 weeks ago
settings_option_corrupt.php
1 year ago
staging-directory-permission-problem.php
1 year ago
staging-symlink-enabled-notice.php
10 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
6 months ago
wp-options-missing-pk.php
6 months ago
wp-version-compat-notice.php
4 months ago
wpe-permalink-issue-notice.php
1 year ago
wrong-scheme.php
1 year ago
review-prompt-modal.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Shared, success-based review block for the backup/staging completion modals. |
| 5 | * |
| 6 | * Renders nothing unless this is the Free version and the shared review state |
| 7 | * still allows asking (not permanently dismissed, not snoozed). The caller wraps |
| 8 | * it in a hidden container whose JS injects it into the success modal and reveals |
| 9 | * it via the `.show` class, so the ask is always tied to a completed operation |
| 10 | * and never appears as loose text on the dashboard. |
| 11 | * |
| 12 | * Actions reuse the shared selectors wired by review-prompt-handlers.php and the |
| 13 | * same wpstg_rating state, so a "Maybe Later" / "Don't Ask Again" here silences |
| 14 | * the review across both the staging and backup flows. |
| 15 | * |
| 16 | * @see \WPStaging\Basic\Notices\RatingNotice::isReviewPromptEligible |
| 17 | */ |
| 18 | |
| 19 | use WPStaging\Basic\Notices\RatingNotice; |
| 20 | use WPStaging\Core\WPStaging; |
| 21 | |
| 22 | if (WPStaging::isPro() || !WPStaging::make(RatingNotice::class)->isReviewPromptEligible()) { |
| 23 | return; |
| 24 | } |
| 25 | ?> |
| 26 | <div class="wpstg-rate-us wpstg_fivestar"> |
| 27 | <div class="wpstg-rate-us-inner"> |
| 28 | <p class="wpstg-rate-us-title"> |
| 29 | <strong><?php esc_html_e('WP STAGING helped you create a safer workflow?', 'wp-staging'); ?></strong> |
| 30 | </p> |
| 31 | <p class="wpstg-rate-us-body"> |
| 32 | <?php esc_html_e('If WP STAGING saved you time, an honest review on WordPress.org would help us a lot.', 'wp-staging'); ?> |
| 33 | </p> |
| 34 | <div class="wpstg-rate-us-action"> |
| 35 | <a href="https://wordpress.org/support/plugin/wp-staging/reviews/#new-post" |
| 36 | target="_blank" |
| 37 | rel="noopener noreferrer" |
| 38 | class="wpstg-button wpstg-blue-primary wpstg-leave-review"><?php esc_html_e('Leave a Review', 'wp-staging'); ?></a> |
| 39 | <a href="javascript:void(0);" class="wpstg_rate_later wpstg-rate-us-secondary"><?php esc_html_e('Maybe Later', 'wp-staging'); ?></a> |
| 40 | <a href="javascript:void(0);" class="wpstg_hide_rating wpstg-rate-us-secondary"><?php esc_html_e('Don\'t Ask Again', 'wp-staging'); ?></a> |
| 41 | </div> |
| 42 | </div> |
| 43 | </div> |
| 44 |