| 1 |
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?> |
| 2 |
<div class="wpo_shade hidden"> |
| 3 |
<div class="wpo_shade_inner"> |
| 4 |
<span class="dashicons dashicons-update-alt wpo-rotate"></span> |
| 5 |
<h4><?php _e('Loading data...', 'wp-optimize'); ?></h4> |
| 6 |
</div> |
| 7 |
</div> |
| 8 |
|
| 9 |
<?php |
| 10 |
// This next bit belongs somewhere else, I think. |
| 11 |
?> |
| 12 |
<?php if ($optimize_db) { ?> |
| 13 |
<p><?php _e('Optimized all the tables found in the database.', 'wp-optimize'); ?></p> |
| 14 |
<?php } ?> |
| 15 |
<?php |
| 16 |
|
| 17 |
// used for output premium functionality |
| 18 |
do_action('wpo_tables_list_before'); |
| 19 |
|
| 20 |
?> |
| 21 |
|
| 22 |
<?php $wp_optimize->include_template('take-a-backup.php', false, array('label' => __('Take a backup with UpdraftPlus before any actions upon tables (recommended).', 'wp-optimize'), 'default_checkbox_value' => 'true', 'checkbox_name' => 'enable-auto-backup-1')); ?> |
| 23 |
|
| 24 |
<p class="wpo-table-list-filter"><strong><?php echo __('Database name:', 'wp-optimize')." '".htmlspecialchars(DB_NAME)."'"; ?><a id="wp_optimize_table_list_refresh" href="#" class="wpo-refresh-button"><span class="dashicons dashicons-image-rotate"></span><?php _e('Refresh data', 'wp-optimize'); ?></a></strong> <input id="wpoptimize_table_list_filter" class="search" type="search" value="" placeholder="<?php esc_attr_e('Search for table', 'wp-optimize'); ?>" data-column="1" /></p> |
| 25 |
|
| 26 |
<?php |
| 27 |
$optimizer = WP_Optimize()->get_optimizer(); |
| 28 |
$table_prefix = $optimizer->get_table_prefix(); |
| 29 |
if (!$table_prefix) { |
| 30 |
?> |
| 31 |
<p class="wpo-table-list-filter"><span style="color: #0073aa;"><span class="dashicons dashicons-info"></span> <?php echo __('Note:', 'wp-optimize').'</span> '.__('Your WordPress install does not use a database prefix, so WP-Optimize was not able to differentiate which tables belong to WordPress so all tables are listed below.', 'wp-optimize'); ?></p> |
| 32 |
<?php |
| 33 |
} |
| 34 |
?> |
| 35 |
|
| 36 |
<table id="wpoptimize_table_list" class="wp-list-table widefat striped tablesorter wp-list-table-mobile-labels"> |
| 37 |
<thead> |
| 38 |
<tr> |
| 39 |
<th><?php _e('No.', 'wp-optimize'); ?></th> |
| 40 |
<th class="column-primary"><?php _e('Table', 'wp-optimize'); ?></th> |
| 41 |
<th><?php _e('Records', 'wp-optimize'); ?></th> |
| 42 |
<th><?php _e('Data Size', 'wp-optimize'); ?></th> |
| 43 |
<th><?php _e('Index Size', 'wp-optimize'); ?></th> |
| 44 |
<th><?php _e('Type', 'wp-optimize'); ?></th> |
| 45 |
<th><?php _e('Overhead', 'wp-optimize'); ?></th> |
| 46 |
<th><?php _e('Actions', 'wp-optimize'); ?></th> |
| 47 |
</tr> |
| 48 |
</thead> |
| 49 |
<?php |
| 50 |
if ($load_data) { |
| 51 |
WP_Optimize()->include_template('database/tables-body.php', false, array('optimize_db' => $optimize_db)); |
| 52 |
} else { |
| 53 |
?> |
| 54 |
<tbody> |
| 55 |
<tr> |
| 56 |
<td></td> |
| 57 |
<td class="loading" align="center" colspan="6"><img class="wpo-ajax-template-loader" width="16" height="16" src="<?php echo admin_url(); ?>images/spinner-2x.gif" /> <?php _e('Loading tables list...', 'wp-optimize'); ?></td> |
| 58 |
<td></td> |
| 59 |
</tr> |
| 60 |
</tbody> |
| 61 |
<?php } ?> |
| 62 |
</table> |
| 63 |
|
| 64 |
|
| 65 |
<div id="wpoptimize_table_list_tables_not_found"><?php _e('Tables not found.', 'wp-optimize'); ?></div> |
| 66 |
|
| 67 |
<?php |
| 68 |
|
| 69 |
WP_Optimize()->include_template('database/tables-list-after.php', false, array('optimize_db' => $optimize_db, 'load_data' => $load_data)); |
| 70 |
|