PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / trunk
WP STAGING – WordPress Backups, Restore, Migration & Clone vtrunk
4.11.1 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 / clone / ajax / login-data.php
wp-staging / views / clone / ajax Last commit date
cron-setting.php 4 days ago custom-directory.php 4 days ago directory-navigation.php 2 months ago exclude-settings.php 6 months ago external-database.php 4 days ago login-data.php 4 days ago mail-setting.php 4 days ago plugins-update.php 4 days ago process-lock.php 1 year ago scan.php 2 months ago start.php 3 weeks ago symlink-uploads.php 4 days ago update.php 1 year ago
login-data.php
53 lines
1 <?php
2
3 /**
4 * This file is currently being called for both FREE and PRO version:
5 *
6 * @var \WPStaging\Backend\Modules\Jobs\Scan $scan
7 * @var bool $isPro
8 *
9 * @see \WPStaging\Backend\Modules\Jobs\Scan::start For details on $options.
10 */
11
12 use WPStaging\Framework\Facades\UI\Checkbox;
13
14 $isDisabled = false;
15 if (!$isPro) {
16 $isDisabled = true;
17 }
18
19 ?>
20
21 <?php if (!$isPro) { ?>
22 <p class="wpstg-pro-features-notice wpstg-inline-flex wpstg-items-center wpstg-gap-3 wpstg-rounded-md wpstg-px-4 wpstg-py-2 wpstg-my-2 wpstg-text-sm wpstg-text-white wpstg-bg-blue-600 dark:wpstg-bg-blue-800 dark:wpstg-border dark:wpstg-border-solid dark:wpstg-border-blue-600"><?php esc_html_e('Options below are pro features!', 'wp-staging'); ?>
23 <a href="<?php echo esc_url(\WPStaging\Framework\Language\Language::getUpgradeUrl('new_admin_user')); ?>" target="_blank" class="wpstg-inline-block wpstg-m-2 wpstg-px-3 wpstg-py-1 wpstg-text-sm wpstg-text-white wpstg-bg-red-500 wpstg-rounded wpstg-border wpstg-border-solid wpstg-border-red-400 wpstg-no-underline hover:wpstg-bg-red-700 hover:wpstg-text-white"><?php esc_html_e("Try out WP Staging Pro", "wp-staging"); ?></a>
24 </p>
25 <?php } ?>
26
27 <div class="wpstg--advanced-settings--checkbox">
28 <label for="wpstg-new-admin-user"><?php esc_html_e('New Admin Account', 'wp-staging'); ?></label>
29 <?php Checkbox::render('wpstg-new-admin-user', 'wpstg-new-admin-user', '', $checked = false, ['classes' => 'wpstg-toggle-advance-settings-section', 'isDisabled' => !$isPro], ['id' => 'wpstg-new-admin-user-section']); ?>
30 <span class="wpstg--tooltip">
31 <img class="wpstg--dashicons" src="<?php echo esc_attr($scan->getInfoIcon()); ?>" alt="info" />
32 <span class="wpstg--tooltiptext">
33 <?php echo esc_html__('Create a new admin user account for this staging site!', 'wp-staging'); ?>
34 <div class="wpstg--red wpstg-mt-10px">
35 <?php echo esc_html__('If the account already exists, the password will be updated.', 'wp-staging'); ?>
36 </div>
37 </span>
38 </span>
39 </div>
40 <div id="wpstg-new-admin-user-section" <?php echo $isPro ? 'style="display: none;"' : '' ?>>
41 <div class="wpstg-form-group wpstg-text-field">
42 <label for="wpstg-new-admin-email"><?php esc_html_e('Email: ', 'wp-staging'); ?> </label>
43 <input type="email" class="wpstg-textbox" name="wpstg-new-admin-email" id="wpstg-new-admin-email" autocapitalize="off" <?php echo $isDisabled ? 'disabled' : '' ?> />
44 </div>
45 <form>
46 <div class="wpstg-form-group wpstg-text-field">
47 <label for="wpstg-new-admin-password"><?php esc_html_e('Password: ', 'wp-staging'); ?></label>
48 <input type="password" class="wpstg-textbox" name="wpstg-new-admin-password" id="wpstg-new-admin-password" autocapitalize="off" <?php echo $isDisabled ? 'disabled' : '' ?> autocomplete="off" />
49 </div>
50 </form>
51 <hr />
52 </div>
53