PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.11.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.11.0
4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / views / onboarding / backup-next.php
wp-staging / views / onboarding Last commit date
backup-next.php 1 week ago capability-icon.php 1 day ago first-run.php 1 day ago next-step.php 1 day ago open-staging-site.php 1 week ago pre-consent.php 1 day ago progress.php 1 day ago update-protection.php 1 day ago
backup-next.php
58 lines
1 <?php
2
3 /**
4 * The deferred backup offer, rendered hidden and injected into the process modal
5 * by js/src/modules/onboarding.js once a staging site starts being created.
6 * Carries no id: it is cloned while the template stays in the page.
7 *
8 * @see \WPStaging\Framework\Onboarding\QueuedBackup
9 *
10 * @var string $queuedBackupStatus Current state of the request, empty when none.
11 * @var bool $isFirstRunOffer Whether the first run is making this offer.
12 */
13
14 use WPStaging\Framework\Onboarding\OnboardingJourney;
15 use WPStaging\Framework\Onboarding\QueuedBackup;
16
17 $isQueued = in_array($queuedBackupStatus, [QueuedBackup::STATUS_QUEUED, QueuedBackup::STATUS_RUNNING], true);
18
19 $offerText = empty($isFirstRunOffer)
20 ? __('Optional. WP STAGING can make a complete backup of your live site, to run after this.', 'wp-staging')
21 : __('Optional. WP STAGING can also make a complete backup of your live site, to run after this.', 'wp-staging');
22 ?>
23 <div class="wpstg-backup-next" data-state="<?php echo $isQueued ? 'queued' : 'idle'; ?>">
24 <div class="wpstg-icon-box wpstg-icon-box-green wpstg-backup-next__icon">
25 <?php
26 $capability = OnboardingJourney::CAPABILITY_BACKUP;
27 $iconSize = 20;
28 include WPSTG_VIEWS_DIR . 'onboarding/capability-icon.php';
29 ?>
30 </div>
31
32 <div class="wpstg-backup-next__body">
33 <div class="wpstg-backup-next__offer">
34 <p class="wpstg-backup-next__title"><?php esc_html_e('Protect your live site while you\'re here', 'wp-staging'); ?></p>
35 <p class="wpstg-backup-next__text"><?php echo esc_html($offerText); ?></p>
36 <button
37 type="button"
38 class="wpstg-btn wpstg-btn-md wpstg-btn-tint wpstg-backup-next__cta"
39 data-wpstg-onboarding-queue-backup
40 data-busy-label="<?php esc_attr_e('Queueing…', 'wp-staging'); ?>"
41 >
42 <?php esc_html_e('Create Backup After This', 'wp-staging'); ?>
43 </button>
44 <p class="wpstg-backup-next__hint"><?php esc_html_e('Nothing starts until you click. Your backup then runs on its own once the staging site is finished.', 'wp-staging'); ?></p>
45 </div>
46
47 <div class="wpstg-backup-next__confirmed">
48 <p class="wpstg-backup-next__title">
49 <svg class="wpstg-backup-next__check" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
50 <path d="M20 6 9 17l-5-5"></path>
51 </svg>
52 <?php esc_html_e('Backup will be created after this', 'wp-staging'); ?>
53 </p>
54 <p class="wpstg-backup-next__hint"><?php esc_html_e('It will start automatically when your staging site is ready.', 'wp-staging'); ?></p>
55 </div>
56 </div>
57 </div>
58