PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 3.6.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v3.6.0
4.11.2 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 / Backend / views / clone / index.php
wp-staging / Backend / views / clone Last commit date
ajax 2 years ago multi-site 3 years ago single-site 3 years ago staging-site 3 years ago wordpress-com 2 years ago index.php 2 years ago
index.php
171 lines
1 <?php
2
3 /**
4 * @see \WPStaging\Backend\Administrator::getClonePage()
5 * @see \WPStaging\Backend\Administrator::getBackupPage()
6 * @var bool $isBackupPage
7 */
8
9 use WPStaging\Core\WPStaging;
10 use WPStaging\Framework\Notices\BackupPluginsNotice;
11 use WPStaging\Framework\Notices\Notices;
12 use WPStaging\Framework\Notices\OutdatedWpStagingNotice;
13 use WPStaging\Framework\Facades\Escape;
14
15 $backupNotice = WPStaging::make(BackupPluginsNotice::class);
16
17 ?>
18
19 <div id="wpstg-clonepage-wrapper">
20 <?php
21 require_once($this->path . 'views/_main/header.php');
22
23 do_action('wpstg_notifications');
24
25 if (isset($isBackupPage)) {
26 echo "<script>window.addEventListener('DOMContentLoaded', function() {window.dispatchEvent(new Event('backups-tab'));});</script>";
27 $classStagingPageActive = '';
28 $classBackupPageActive = 'wpstg--tab--active';
29 } else {
30 $classStagingPageActive = 'wpstg--tab--active';
31 $classBackupPageActive = '';
32 }
33
34 ?>
35 <div class="wpstg--tab--wrapper">
36 <div class="wpstg--tab--header">
37 <ul>
38 <li>
39 <a class="wpstg--tab--content <?php echo esc_attr($classStagingPageActive); ?> wpstg-button" data-target="#wpstg--tab--staging" id="wpstg--tab--toggle--staging">
40 <?php esc_html_e('Staging', 'wp-staging') ?>
41 </a>
42 </li>
43 <li>
44 <a class="wpstg-button <?php echo esc_attr($classBackupPageActive); ?>" data-target="#wpstg--tab--backup" id="wpstg--tab--toggle--backup">
45 <?php esc_html_e('Backup & Migration', 'wp-staging') ?>
46 </a>
47 <?php $backupNotice->maybeShowBackupNotice(); ?>
48 </li>
49 <li>
50 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-settings'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--settigs">
51 <?php esc_html_e('Settings', 'wp-staging') ?>
52 </a>
53 </li>
54 <li>
55 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-tools'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--systeminfo">
56 <?php esc_html_e('System Info', 'wp-staging') ?>
57 </a>
58 </li>
59 <?php
60 if (defined('WPSTGPRO_VERSION')) {
61 $licenseMessage = isset($license->license) && $license->license === 'valid' ? '' : __('(Unregistered)', 'wp-staging');
62 ?>
63 <li>
64 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-license'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--license">
65 <?php esc_html_e('License', 'wp-staging'); ?> <span class="wpstg--red-warning"><?php echo esc_html($licenseMessage); ?></span>
66 </a>
67 </li>
68 <?php
69 } else {
70 ?>
71 <li>
72 <a href="https://wp-staging.com" target="_blank" class="wpstg-button" data-target="" id="wpstg--tab--toggle--license">
73 <span class="wpstg--red-warning"><?php echo esc_html(__('Upgrade to Pro', 'wp-staging')); ?> </span>
74 </a>
75 </li>
76 <?php
77 }
78 ?>
79 <li class="wpstg-contact-us-wrapper">
80 <?php
81 require_once(WPSTG_PLUGIN_DIR . 'Backend/views/_main/contact-us.php');
82 ?>
83 </li>
84 <li class="wpstg-tab-item--vert-center">
85 <span class="wpstg-loader"></span>
86 </li>
87 <li class="wpstg-tab-item--vert-center">
88 <?php require_once(WPSTG_PLUGIN_DIR . 'Backend/views/_main/darkmode-toggle-button.php'); ?>
89 </li>
90 </ul>
91 </div>
92 <div class="wpstg-header">
93 <?php if (isset($_GET['page']) && $_GET['page'] === 'wpstg_clone' || $_GET['page'] === 'wpstg_backup') { ?>
94 <?php
95 $latestReleasedVersion = get_option('wpstg_version_latest');
96 $display = 'none;';
97
98 if (defined('WPSTGPRO_VERSION')) {
99 $outdatedVersionCheck = new OutdatedWpStagingNotice();
100 $latestReleasedVersion = $outdatedVersionCheck->getLatestWpstgProVersion();
101 if ($outdatedVersionCheck->isOutdatedWpStagingProVersion()) {
102 $display = 'block;';
103 }
104 }
105
106 if (Notices::SHOW_ALL_NOTICES){
107 $display = 'block;';
108 }
109 ?>
110
111 <div id="wpstg-update-notify" style="display:<?php echo esc_attr($display); ?>">
112 <strong><?php echo sprintf(__("New: WP Staging Pro v. %s is available.", 'wp-staging'), esc_html($latestReleasedVersion)); ?></strong><br/>
113 <?php echo sprintf(__('Important: It\'s recommended to update the plugin before pushing a staging site to the live site. <a href="%s" target="_blank">What\'s New?</a>', 'wp-staging'), 'https://wp-staging.com/wp-staging-pro-changelog'); ?>
114 </div>
115
116 <?php } ?>
117 </div>
118 <div class="wpstg-loading-bar-container">
119 <div class="wpstg-loading-bar"></div>
120 </div>
121 <div class="wpstg--tab--contents">
122 <?php
123 $numberOfLoadingBars = 8;
124 include(WPSTG_PLUGIN_DIR . 'Backend/views/_main/loading-placeholder.php');
125 ?>
126 <div id="wpstg--tab--staging" class="wpstg--tab--content <?php echo esc_attr($classStagingPageActive); ?>">
127 <?php
128 if (!$this->siteInfo->isCloneable()) {
129 // Staging site but not cloneable
130 require_once($this->path . "views/clone/staging-site/index.php");
131 } elseif (!defined('WPSTGPRO_VERSION') && is_multisite()) {
132 require_once($this->path . "views/clone/multi-site/index.php");
133 } else {
134 require_once($this->path . "views/clone/single-site/index.php");
135 }
136 ?>
137 </div>
138 <div id="wpstg--tab--backup" class="wpstg--tab--content <?php echo esc_attr($classBackupPageActive); ?>">
139 <?php
140 if (!WPStaging::isPro()) {
141 esc_html_e('Loading...', 'wp-staging');
142 } elseif (is_multisite() && is_main_site()) {
143 esc_html_e('Loading...', 'wp-staging');
144 } else {
145 require_once($this->path . "views/backup/free-version.php");
146 }
147 ?>
148 </div>
149 <div class="wpstg-did-you-know-footer">
150 <?php echo sprintf(
151 Escape::escapeHtml(__('Note: You can upload backup files to another site to transfer a website. <a href="%s" target="_blank">Read more</a>', 'wp-staging')),
152 'https://wp-staging.com/docs/how-to-migrate-your-wordpress-site-to-a-new-host/'
153 ); ?>
154 </div>
155 </div>
156 <?php
157 // Show ad for pro version
158 if (!defined('WPSTGPRO_VERSION')) {
159 echo ' <div class="wpstg--tab-contents">';
160 require $this->path . 'views/ads/advert-pro-version.php';
161 echo '</div>';
162 }
163 ?>
164 </div>
165 <div id="wpstg-error-wrapper">
166 <div id="wpstg-error-details"></div>
167 </div>
168 <?php require_once($this->path . 'views/_main/faq.php') ?>
169 <?php require_once($this->path . 'views/_main/footer.php') ?>
170 </div>
171