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
start.php
91 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @see \WPStaging\Backend\Administrator::ajaxStartClone A place where this view is being called. |
| 5 | * @var \WPStaging\Backend\Modules\Jobs\Cloning $cloning |
| 6 | */ |
| 7 | |
| 8 | use WPStaging\Core\WPStaging; |
| 9 | use WPStaging\Framework\Utils\Urls; |
| 10 | use WPStaging\Framework\Facades\Escape; |
| 11 | |
| 12 | include(WPSTG_VIEWS_DIR . 'job/modal/process.php'); |
| 13 | include(WPSTG_VIEWS_DIR . 'job/modal/success.php'); |
| 14 | ?> |
| 15 | |
| 16 | <button type="button" id="wpstg-resume-cloning" class="wpstg-link-btn wpstg-button--primary wpstg-button--blue"> |
| 17 | <?php echo esc_html__("Resume", "wp-staging")?> |
| 18 | </button> |
| 19 | |
| 20 | <button type="button" id="wpstg-show-log-button" class="button" data-clone="<?php echo esc_attr($cloning->getOptions()->clone) ?>" style="margin-top: 5px;display:none;"> |
| 21 | <?php esc_html_e('Display working log', 'wp-staging')?> |
| 22 | </button> |
| 23 | |
| 24 | <div> |
| 25 | <span id="wpstg-cloning-result"></span> |
| 26 | </div> |
| 27 | |
| 28 | <div id="wpstg-finished-result" class="wpstg--grey"> |
| 29 | <h3><?php esc_html_e('Congratulations', 'wp-staing') ?></h3> |
| 30 | <?php |
| 31 | $subDirectory = str_replace(get_home_path(), '', ABSPATH); |
| 32 | $urlsHelper = WPStaging::make(Urls::class); |
| 33 | $url = $urlsHelper->getHomeUrl() . str_replace('/', '', $subDirectory); |
| 34 | echo sprintf( |
| 35 | Escape::escapeHtml(__('Successfully created a staging site in a subdirectory of your main site! You can access it from there:<br><strong><a href="%1$s" target="_blank" id="wpstg-clone-url-1">%1$s</a></strong>', 'wp-staging')), |
| 36 | esc_url($url) |
| 37 | ); |
| 38 | ?> |
| 39 | <br> |
| 40 | <br> |
| 41 | <a href="" class="wpstg-button--primary wpstg-button-back-arrow" id="wpstg-home-link"> |
| 42 | <i class="wpstg-back-arrow"></i> |
| 43 | <?php echo esc_html__("BACK", "wp-staging")?> |
| 44 | </a> |
| 45 | <a href="<?php echo esc_url($url); ?>" id="wpstg-clone-url" target="_blank" class="wpstg-blue-primary wpstg-button"> |
| 46 | <?php esc_html_e('Open Staging Site', 'wp-staging') ?> |
| 47 | </a> |
| 48 | <div id="wpstg-success-notice"> |
| 49 | <h3> |
| 50 | <?php esc_html_e("Please Read This First:", "wp-staging")?> |
| 51 | </h3> |
| 52 | <ul> |
| 53 | <li> |
| 54 | <strong><?php echo sprintf(esc_html__('1. Post name permalinks on the %s have been disabled for technical reasons. ', 'wp-staging'), '<span class="wpstg-font-italic">' . esc_html__('staging site', 'wp-staging') . '</span>') ?></strong> |
| 55 | <br> |
| 56 | <?php esc_html_e('Usually this will not affect the staging website and you do not need to activate permalinks.', 'wp-staging') ?> |
| 57 | <br> |
| 58 | <p> |
| 59 | <?php esc_html_e('If you still want to activate them and the webserver is Apache there is a good chance that permalinks can be activated without further modifications. Try to activate them on', 'wp-staging') ?> <br/> |
| 60 | <br> |
| 61 | <strong>Staging Site > wp-admin > Settings > Permalinks</strong></a> |
| 62 | <br/><br/> |
| 63 | <?php esc_html_e('If this does not work or another web server like Nginx is used, a few simple changes in the .htaccess (Apache) or *.conf (Nginx) configuration files may be required.', 'wp-staging') ?> |
| 64 | <strong><?php echo sprintf( |
| 65 | Escape::escapeHtml(__('<a href="%s" target="_blank">Open this tutorial</a> to read more about this.', 'wp-staging')), |
| 66 | 'https://wp-staging.com/docs/activate-permalinks-staging-site/?utm_source=wpstg_admin&utm_medium=finish_screen&utm_campaign=tutorial' |
| 67 | ) ?></strong> |
| 68 | </p> |
| 69 | </li> |
| 70 | <li> |
| 71 | <strong><?php esc_html_e('2. Always make sure that you are REALLY working on your staging site and NOT on your production site!', 'wp-staging') ?> </strong> |
| 72 | <br> |
| 73 | <p> |
| 74 | <?php esc_html_e('For better distinction WP STAGING has changed the background color of the admin bar on the staging site:', 'wp-staging') ?> |
| 75 | <br><br> |
| 76 | <img src="<?php echo esc_url($this->assets->getAssetsUrl("img/admin_dashboard.png")) ?>"> |
| 77 | <br> |
| 78 | <?php esc_html_e('On the front page the site name also changed to', 'wp-staging') ?> <br> |
| 79 | <strong class="wpstg-font-italic"> |
| 80 | "STAGING - <span class="wpstg-clone-name"><?php echo esc_html(get_bloginfo("name")) ?></span>" |
| 81 | </strong>. |
| 82 | </p> |
| 83 | </li> |
| 84 | </ul> |
| 85 | </div> |
| 86 | </div> |
| 87 | |
| 88 | <div id="wpstg-error-wrapper"> |
| 89 | <div id="wpstg-error-details"></div> |
| 90 | </div> |
| 91 |