PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.0.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.0.2
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 index.php 3 years ago
index.php
141 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\Notices;
11 use WPStaging\Framework\Notices\OutdatedWpStagingNotice;
12
13 ?>
14
15 <div id="wpstg-clonepage-wrapper">
16 <?php
17 require_once($this->path . 'views/_main/header.php');
18
19 do_action('wpstg_notifications');
20
21 if (isset($isBackupPage)) {
22 echo "<script>window.addEventListener('DOMContentLoaded', function() {window.dispatchEvent(new Event('backups-tab'));});</script>";
23 $classStagingPageActive = '';
24 $classBackupPageActive = 'wpstg--tab--active';
25 } else {
26 $classStagingPageActive = 'wpstg--tab--active';
27 $classBackupPageActive = '';
28 }
29
30 ?>
31 <div class="wpstg--tab--wrapper">
32 <div class="wpstg--tab--header">
33 <ul>
34 <li>
35 <a class="wpstg--tab--content <?php echo esc_attr($classStagingPageActive); ?> wpstg-button" data-target="#wpstg--tab--staging" id="wpstg--tab--toggle--staging">
36 <?php esc_html_e('Staging', 'wp-staging') ?>
37 </a>
38 </li>
39 <li>
40 <a class="wpstg-button <?php echo esc_attr($classBackupPageActive); ?>" data-target="#wpstg--tab--backup" id="wpstg--tab--toggle--backup">
41 <?php esc_html_e('Backup & Migration', 'wp-staging') ?>
42 </a>
43 </li>
44 <li>
45 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-settings'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--settigs">
46 <?php esc_html_e('Settings', 'wp-staging') ?>
47 </a>
48 </li>
49 <li>
50 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-tools'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--systeminfo">
51 <?php esc_html_e('System Info', 'wp-staging') ?>
52 </a>
53 </li>
54 <?php
55 if (defined('WPSTGPRO_VERSION')) {
56 $licenseMessage = isset($license->license) && $license->license === 'valid' ? '' : __('(Unregistered)', 'wp-staging');
57 ?>
58 <li>
59 <a href="<?php echo esc_url(get_admin_url()) . 'admin.php?page=wpstg-license'; ?>" class="wpstg-button" data-target="" id="wpstg--tab--toggle--license">
60 <?php esc_html_e('License', 'wp-staging'); ?> <span class="wpstg--red-warning"><?php echo esc_html($licenseMessage); ?></span>
61 </a>
62 </li>
63 <?php
64 } else {
65 ?>
66 <li>
67 <a href="https://wp-staging.com" target="_blank" class="wpstg-button" data-target="" id="wpstg--tab--toggle--license">
68 <span class="wpstg--red-warning" style=""><?php echo esc_html(__('Upgrade to Pro', 'wp-staging')); ?> </span>
69 </a>
70 </li>
71 <?php
72 }
73 ?>
74 <li class="wpstg-tab-item--vert-center">
75 <span class="wpstg-loader"></span>
76 </li>
77 </ul>
78 </div>
79 <div class="wpstg-header">
80 <?php if (isset($_GET['page']) && $_GET['page'] === 'wpstg_clone' || $_GET['page'] === 'wpstg_backup') { ?>
81 <?php
82 $latestReleasedVersion = get_option('wpstg_version_latest');
83 $display = 'none;';
84
85 if (defined('WPSTGPRO_VERSION')) {
86 $outdatedVersionCheck = new OutdatedWpStagingNotice();
87 $latestReleasedVersion = $outdatedVersionCheck->getLatestWpstgProVersion();
88 if ($outdatedVersionCheck->isOutdatedWpStagingProVersion()) {
89 $display = 'block;';
90 }
91 }
92
93 if (Notices::SHOW_ALL_NOTICES){
94 $display = 'block;';
95 }
96 ?>
97
98 <div id="wpstg-update-notify" style="display:<?php echo esc_attr($display); ?>">
99 <strong><?php echo sprintf(__("New: WP Staging Pro v. %s is available.", 'wp-staging'), esc_html($latestReleasedVersion)); ?></strong><br/>
100 <?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'); ?>
101 </div>
102
103 <?php } ?>
104 </div>
105 <div class="wpstg--tab--contents">
106 <div id="wpstg--tab--staging" class="wpstg--tab--content <?php echo esc_attr($classStagingPageActive); ?>">
107 <?php
108 if (!$this->siteInfo->isCloneable()) {
109 // Staging site but not cloneable
110 require_once($this->path . "views/clone/staging-site/index.php");
111 } elseif (!defined('WPSTGPRO_VERSION') && is_multisite()) {
112 require_once($this->path . "views/clone/multi-site/index.php");
113 } else {
114 require_once($this->path . "views/clone/single-site/index.php");
115 }
116 ?>
117 </div>
118 <div id="wpstg--tab--backup" class="wpstg--tab--content <?php echo esc_attr($classBackupPageActive); ?>">
119 <?php
120 if (!WPStaging::isPro()) {
121 esc_html_e('Loading...', 'wp-staging');
122 } elseif (is_multisite() && is_main_site()) {
123 esc_html_e('Loading...', 'wp-staging');
124 } else {
125 require_once($this->path . "views/backup/free-version.php");
126 }
127 ?>
128 </div>
129 </div>
130 <?php
131 // Show ad for pro version
132 if (!defined('WPSTGPRO_VERSION')) {
133 echo ' <div class="wpstg--tab-contents">';
134 require $this->path . 'views/ads/advert-pro-version.php';
135 echo '</div>';
136 }
137 ?>
138 </div>
139 <?php require_once($this->path . 'views/_main/footer.php') ?>
140 </div>
141