cron-setting.php
4 months ago
custom-directory.php
1 month ago
directory-navigation.php
1 week ago
exclude-settings.php
4 months ago
external-database.php
2 months ago
login-data.php
3 months ago
mail-setting.php
4 months ago
plugins-update.php
1 year ago
process-lock.php
1 year ago
scan.php
1 week ago
start.php
1 year ago
symlink-uploads.php
1 year 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) { // Show this only on FREE version ?> |
| 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="https://wp-staging.com/?utm_source=wp-admin&utm_medium=wp-admin&utm_campaign=new-admin-user&utm_term=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 |