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
external-database.php
33 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-external-db-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->renderExternalDatabaseSettings() ?> |
| 15 | <div class="wpstg-form-group wpstg-text-field wpstg-advanced-settings-link-row wpstg-mt-1"> |
| 16 | <a href="#" id="wpstg-db-connect"><?php esc_html_e("Test Database Connection", "wp-staging"); ?></a> |
| 17 | </div> |
| 18 | </div> |
| 19 | </div> |
| 20 | <?php |
| 21 | $content = ob_get_clean(); |
| 22 | |
| 23 | $stagingSetup->renderAdvanceSettings( |
| 24 | 'wpstg-ext-db', |
| 25 | esc_html__('Change Database', 'wp-staging'), |
| 26 | wp_kses_post(__('You can clone the staging site into a separate database. The Database must be created manually in advance before starting the cloning proccess.<br/><br/><strong>Note:</strong> If there are already tables with the same database prefix and name in this database, the cloning process will be aborted without any further asking!', 'wp-staging')), |
| 27 | false, |
| 28 | 'wpstg-toggle-advance-settings-section', |
| 29 | 'wpstg-external-db-section', |
| 30 | esc_html__('Store the staging site in a different database.', 'wp-staging'), |
| 31 | $content |
| 32 | ); |
| 33 |