PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.4
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.4
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / templates / database / status-box-contents.php

status-box-contents.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.4, at templates/database/status-box-contents.php

117 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) die('No direct access allowed');
4
5 ?>
6
7 <h3 class="wpo-first-child"><?php esc_html_e('Status', 'wp-optimize'); ?></h3>
8
9 <div class="wpo-fieldgroup" id="wp_optimize_status_box">
10 <p>
11 <?php
12 if ('Never' !== $last_optimized) {
13 // translators: %s is the last scheduled optimization date.
14 printf(esc_html__('Last scheduled optimization was at %s', 'wp-optimize'), '<span style="color: #004600; font-weight:bold;">' . esc_html($last_optimized) . '</span>');
15 } else {
16 echo esc_html__('There was no scheduled optimization', 'wp-optimize');
17 }
18 ?>
19 <br>
20
21 <?php
22
23 if ($scheduled_optimizations_enabled) {
24 printf(
25 // translators: 1: Opening strong tag, 2: Opening color span tag, 3: Closing color span tag, 4: Closing strong tag
26 esc_html__('%1$sScheduled cleaning %2$senabled%3$s%4$s', 'wp-optimize'),
27 '<strong>',
28 '<span style="color: #009B24;">',
29 '</span>',
30 '</strong>'
31 );
32 echo '&nbsp;';
33
34 if ($next_optimization_timestamp) {
35
36 $date = new DateTime("@".$next_optimization_timestamp);
37 esc_html_e('Next schedule:', 'wp-optimize');
38 echo ' ';
39 echo '<span style="font-color: #004600">';
40 echo esc_html(gmdate(get_option('date_format') . ' ' . get_option('time_format'), $next_optimization_timestamp));
41 echo '</span>';
42 echo ' - <a id="wp_optimize_status_box_refresh" href="#">'.esc_html__('Refresh', 'wp-optimize').'</a>';
43 }
44 } else {
45 printf(
46 // translators: 1: Opening strong tag, 2: Closing strong tag
47 esc_html__('%1$sScheduled cleaning disabled%2$s', 'wp-optimize'),
48 '<strong>',
49 '</strong>'
50 );
51 }
52 echo '<br>';
53
54 if ('true' === $retention_enabled) {
55 echo '<strong><span style="font-color: #0000FF;">';
56 // translators: %s is number of weeks
57 printf(esc_html__('Keeping last %s weeks data', 'wp-optimize'), esc_html($retention_period));
58 echo '</span></strong>';
59 } else {
60 echo '<strong>'.esc_html__('Not keeping recent data', 'wp-optimize').'</strong>';
61 }
62
63 echo '<br>';
64
65 if ('true' === $revisions_retention_enabled) {
66 echo '<strong><span style="font-color: #0000FF;">';
67 // translators: %s is number of revisions
68 printf(esc_html__('Keeping last %s revisions', 'wp-optimize'), esc_html($revisions_retention_count));
69 echo '</span></strong>';
70 } else {
71 echo '<strong>'.esc_html__('Not keeping any revisions', 'wp-optimize').'</strong>';
72 }
73 ?>
74 </p>
75
76 <p>
77 <?php
78 $total_cleaned_num = floatval($total_cleaned);
79
80 if ($total_cleaned_num > 0) {
81 printf(
82 // translators: 1: Opening h5 tag, 2: Formatted size in colored span, 3: Closing h5 tag
83 esc_html__('%1$sTotal clean up overall: %2$s%3$s', 'wp-optimize'),
84 '<h5>',
85 '<span style="color: #004600;">' . esc_html($total_cleanup_size) . '</span>',
86 '</h5>'
87 );
88 }
89 ?>
90 </p>
91
92 <?php
93
94 if ($corrupted_tables_count > 0) {
95 ?>
96 <p>
97 <span style="color: #E07575;">
98 <?php
99 echo esc_html(
100 sprintf(
101 // translators: %s: Number of corrupted tables
102 _n(
103 'Your database has %s corrupted table.',
104 'Your database has %s corrupted tables.',
105 $corrupted_tables_count,
106 'wp-optimize'
107 ),
108 $corrupted_tables_count
109 )
110 );
111 ?>
112 </span><br>
113 <a href="<?php echo esc_url($admin_page_url); ?>&tab=wp_optimize_tables" onclick="jQuery('.wpo-pages-menu > a').first().trigger('click'); jQuery('#wp-optimize-nav-tab-wpo_database-tables').trigger('click'); return false;"><?php esc_html_e('Repair corrupted tables here.', 'wp-optimize'); ?></a>
114 </p>
115 <?php } ?>
116 </div>
117