PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.8.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.8.2
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 2 years ago wordpress-com 2 years ago index.php 2 years ago
index.php
169 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
122 <div id="wpstg-error-wrapper">
123 <div id="wpstg-error-details"></div>
124 </div>
125
126 <div class="wpstg--tab--contents">
127 <?php
128 $numberOfLoadingBars = 9;
129 include(WPSTG_PLUGIN_DIR . 'Backend/views/_main/loading-placeholder.php');
130 ?>
131 <div id="wpstg--tab--staging" class="wpstg--tab--content <?php echo esc_attr($classStagingPageActive); ?>">
132 <?php
133 if (!$this->siteInfo->isCloneable()) {
134 // Staging site but not cloneable
135 require_once($this->path . "views/clone/staging-site/index.php");
136 } elseif (!defined('WPSTGPRO_VERSION') && is_multisite()) {
137 require_once($this->path . "views/clone/multi-site/index.php");
138 } else {
139 require_once($this->path . "views/clone/single-site/index.php");
140 }
141 ?>
142 </div>
143 <div id="wpstg--tab--backup" class="wpstg--tab--content <?php echo esc_attr($classBackupPageActive); ?>">
144 <?php
145 if (WPStaging::isPro()) {
146 require_once($this->path . "views/backup/free-version.php");
147 }
148 ?>
149 </div>
150 <div class="wpstg-did-you-know-footer">
151 <?php echo sprintf(
152 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')),
153 'https://wp-staging.com/docs/how-to-migrate-your-wordpress-site-to-a-new-host/'
154 ); ?>
155 </div>
156 </div>
157 <?php
158 // Show ad for pro version
159 if (!defined('WPSTGPRO_VERSION')) {
160 echo ' <div class="wpstg--tab-contents">';
161 require $this->path . 'views/ads/advert-pro-version.php';
162 echo '</div>';
163 }
164 ?>
165 </div>
166 <?php require_once($this->path . 'views/_main/faq.php') ?>
167 <?php require_once($this->path . 'views/_main/footer.php') ?>
168 </div>
169