PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.3.1
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.3.1
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 / selections / database-tables.php
wp-staging / Backend / views / selections Last commit date
database-tables.php 2 years ago files.php 2 years ago
database-tables.php
52 lines
1 <?php
2
3 /**
4 * @var stdClass $options
5 *
6 * @see \WPStaging\Backend\Modules\Jobs\Scan::start For details on $options.
7 */
8
9 use WPStaging\Backend\Modules\Jobs\Job;
10
11 ?>
12 <?php
13 do_action("wpstg_scanning_db");
14 $dbPrefix = WPStaging\Core\WPStaging::getTablePrefix();
15 ?>
16 <p>
17 <strong><?php esc_html_e("Select Tables to Copy", "wp-staging"); ?></strong>
18 <br>
19 <?php echo sprintf(esc_html__("Tables with the live site prefix %s have been selected.", "wp-staging"), "<code>" . esc_html($dbPrefix) . "</code>"); ?>
20 </p>
21 <p style="display: none;">
22 <?php esc_html_e("Selected tables will be copied/replaced with the tables from the production site.", "wp-staging"); ?>
23 </p>
24 <div class="wpstg-my-10px">
25 <a href="#" class="wpstg-button-unselect button"><?php esc_html_e('Unselect All', 'wp-staging'); ?></a>
26 <a href="#" class="wpstg-button-select button"> <?php echo esc_html($dbPrefix) ?> </a>
27 <a href="#" class="wpstg-button-unselect-wpstg button"> <?php esc_html_e('Unselect wpstg', 'wp-staging'); ?> </a>
28 </div>
29 <select multiple="multiple" id="wpstg_select_tables_cloning">
30 <?php
31 foreach ($options->tables as $table) :
32 $attributes = !in_array($table->name, $options->excludedTables) && (strpos($table->name, $dbPrefix) === 0) ? "selected='selected'" : "";
33 if (($options->mainJob === Job::UPDATE || $options->mainJob === Job::RESET) && isset($options->currentClone['includedTables'])) {
34 $attributes = !in_array($table->name, $options->excludedTables) && in_array($table->name, $options->currentClone['includedTables']) ? "selected='selected'" : "";
35 }
36
37 $attributes .= in_array($table->name, $options->clonedTables) ? "disabled" : '';
38 ?>
39 <option class="wpstg-db-table" value="<?php echo esc_attr($table->name) ?>" name="<?php echo esc_attr($table->name) ?>" <?php echo esc_html($attributes) ?>>
40 <?php echo esc_html($table->name) ?> - <?php echo esc_html(size_format($table->size, 2)) ?>
41 </option>
42 <?php endforeach ?>
43 </select>
44 <div class="wpstg-mt-10px">
45 <a href="#" class="wpstg-button-unselect button"> <?php esc_html_e('Unselect All', 'wp-staging'); ?> </a>
46 <a href="#" class="wpstg-button-select button"> <?php echo esc_html($dbPrefix); ?> </a>
47 <a href="#" class="wpstg-button-unselect-wpstg button"> <?php esc_html_e('Unselect wpstg', 'wp-staging'); ?> </a>
48 </div>
49 <p>
50 <?php esc_html_e("You can select multiple tables. Press left mouse button & move or press STRG+Left mouse button. (Apple: ⌘+Left Mouse Button)", "wp-staging"); ?>
51 </p>
52