custom-directory-desc.php
1 year ago
custom-directory.php
2 weeks ago
external-database.php
2 weeks ago
login-data.php
2 weeks ago
login-data.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | use WPStaging\Staging\Service\AbstractStagingSetup; |
| 4 | |
| 5 | /** |
| 6 | * This file is currently used in both FREE and PRO. |
| 7 | * @var AbstractStagingSetup $stagingSetup |
| 8 | */ |
| 9 | |
| 10 | ob_start(); |
| 11 | ?> |
| 12 | <div id="wpstg-new-admin-user-section" class="wpstg-advanced-settings-expanded-section" <?php echo $stagingSetup->getIsOpenDisabledSettingsSectionByDefault() ? '' : 'style="display: none;"' ?>> |
| 13 | <div class="wpstg-advanced-settings-expanded-fields wpstg-py-1"> |
| 14 | <?php $stagingSetup->renderNewAdminSettings() ?> |
| 15 | </div> |
| 16 | </div> |
| 17 | <?php |
| 18 | $content = ob_get_clean(); |
| 19 | |
| 20 | $stagingSetup->renderAdvanceSettings( |
| 21 | 'wpstg-new-admin-user', |
| 22 | esc_html__('New Admin Account', 'wp-staging'), |
| 23 | esc_html__('Add a new admin user account for this staging site!', 'wp-staging') . '<br/><br/><span class="wpstg--red wpstg-mt-10px">' . esc_html__('If the account already exists, the password will be updated.', 'wp-staging') . '</span>', |
| 24 | false, |
| 25 | 'wpstg-toggle-advance-settings-section', |
| 26 | 'wpstg-new-admin-user-section', |
| 27 | esc_html__('Add a separate admin user on the staging site.', 'wp-staging'), |
| 28 | $content, |
| 29 | '' |
| 30 | ); |
| 31 |