Version Description
[07/15/2016] = * CHANGE: 'Running indicator' added
Download this release
Release Info
Developer | cageehv |
Plugin | Optimize Database after Deleting Revisions |
Version | 4.1.9 |
Comparing to | |
See all releases |
Code changes from version 4.1.8 to 4.1.9
- classes/odb-displayer.php +32 -31
- css/style.css +10 -0
- css/style.min.css +1 -1
- images/running.gif +0 -0
- readme.txt +5 -2
- rvg-optimize-database.php +12 -6
classes/odb-displayer.php
CHANGED
@@ -15,6 +15,37 @@ class ODB_Displayer
|
|
15 |
{
|
16 |
} // __construct()
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
/********************************************************************************************
|
20 |
* DISPLAY THE CURRENT SETTINGS
|
@@ -90,37 +121,7 @@ class ODB_Displayer
|
|
90 |
</div><!-- /odb-current-settings -->
|
91 |
';
|
92 |
} // display_current_settings()
|
93 |
-
|
94 |
-
|
95 |
-
/********************************************************************************************
|
96 |
-
* DISPLAY THE PAGE HEADER
|
97 |
-
********************************************************************************************/
|
98 |
-
function display_header()
|
99 |
-
{
|
100 |
-
global $odb_class;
|
101 |
-
|
102 |
-
echo '
|
103 |
-
<div id="odb-header" class="odb-padding-left">
|
104 |
-
<div id="odb-options-opening">
|
105 |
-
<div class="odb-title-bar">
|
106 |
-
<h2>'.__('Optimize Database after Deleting Revisions',$odb_class->odb_txt_domain).'</h2>
|
107 |
-
</div>
|
108 |
-
<p class="odb-bold">
|
109 |
-
<em>'.__('A popular \'one-click\' plugin to clean and optimize your WordPress database.', $odb_class->odb_txt_domain).'</em>
|
110 |
-
</p>
|
111 |
-
<span class="odb-bold">
|
112 |
-
'.__('Plugin version', $odb_class->odb_txt_domain).': v'.$odb_class->odb_version.' ['.$odb_class->odb_release_date.'] -
|
113 |
-
<a href="http://cagewebdev.com/index.php/optimize-database-after-deleting-revisions-wordpress-plugin/" target="_blank">'.__('Plugin page', $odb_class->odb_txt_domain).'</a> -
|
114 |
-
<a href="http://wordpress.org/plugins/rvg-optimize-database/" target="_blank">'.__('Download page', $odb_class->odb_txt_domain).'</a> -
|
115 |
-
<a href="http://rvg.cage.nl/" target="_blank">'.__('Author', $odb_class->odb_txt_domain).'</a> -
|
116 |
-
<a href="http://cagewebdev.com/" target="_blank">'.__('Company', $odb_class->odb_txt_domain).'</a> -
|
117 |
-
<a href="http://cagewebdev.com/index.php/donations-odb/" target="_blank">'.__('Donation page', $odb_class->odb_txt_domain).'</a>
|
118 |
-
</span>
|
119 |
-
</div><!-- odb-options-opening -->
|
120 |
-
</div><!-- /odb-header -->
|
121 |
-
';
|
122 |
-
} // display_header
|
123 |
-
|
124 |
|
125 |
/********************************************************************************************
|
126 |
* DISPLAY THE START BUTTONS
|
15 |
{
|
16 |
} // __construct()
|
17 |
|
18 |
+
/********************************************************************************************
|
19 |
+
* DISPLAY THE PAGE HEADER
|
20 |
+
********************************************************************************************/
|
21 |
+
function display_header()
|
22 |
+
{
|
23 |
+
global $odb_class;
|
24 |
+
|
25 |
+
// V4.1.9: RUNNING INDICATOR ADDED
|
26 |
+
echo '
|
27 |
+
<div id="odb-running" style="display:none"></div>
|
28 |
+
<div id="odb-header" class="odb-padding-left">
|
29 |
+
<div id="odb-options-opening">
|
30 |
+
<div class="odb-title-bar">
|
31 |
+
<h2>'.__('Optimize Database after Deleting Revisions',$odb_class->odb_txt_domain).'</h2>
|
32 |
+
</div>
|
33 |
+
<p class="odb-bold">
|
34 |
+
<em>'.__('A popular \'one-click\' plugin to clean and optimize your WordPress database.', $odb_class->odb_txt_domain).'</em>
|
35 |
+
</p>
|
36 |
+
<span class="odb-bold">
|
37 |
+
'.__('Plugin version', $odb_class->odb_txt_domain).': v'.$odb_class->odb_version.' ['.$odb_class->odb_release_date.'] -
|
38 |
+
<a href="http://cagewebdev.com/index.php/optimize-database-after-deleting-revisions-wordpress-plugin/" target="_blank">'.__('Plugin page', $odb_class->odb_txt_domain).'</a> -
|
39 |
+
<a href="http://wordpress.org/plugins/rvg-optimize-database/" target="_blank">'.__('Download page', $odb_class->odb_txt_domain).'</a> -
|
40 |
+
<a href="http://rvg.cage.nl/" target="_blank">'.__('Author', $odb_class->odb_txt_domain).'</a> -
|
41 |
+
<a href="http://cagewebdev.com/" target="_blank">'.__('Company', $odb_class->odb_txt_domain).'</a> -
|
42 |
+
<a href="http://cagewebdev.com/index.php/donations-odb/" target="_blank">'.__('Donation page', $odb_class->odb_txt_domain).'</a>
|
43 |
+
</span>
|
44 |
+
</div><!-- odb-options-opening -->
|
45 |
+
</div><!-- /odb-header -->
|
46 |
+
';
|
47 |
+
} // display_header
|
48 |
+
|
49 |
|
50 |
/********************************************************************************************
|
51 |
* DISPLAY THE CURRENT SETTINGS
|
121 |
</div><!-- /odb-current-settings -->
|
122 |
';
|
123 |
} // display_current_settings()
|
124 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
/********************************************************************************************
|
127 |
* DISPLAY THE START BUTTONS
|
css/style.css
CHANGED
@@ -24,6 +24,16 @@
|
|
24 |
/*color: #00F;*/
|
25 |
color: #0074a2;
|
26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
.odb-action {
|
28 |
font-size: 13px;
|
29 |
font-weight: bold;
|
24 |
/*color: #00F;*/
|
25 |
color: #0074a2;
|
26 |
}
|
27 |
+
/* v4.1.9: RUNNING INDICATOR ADDED */
|
28 |
+
#odb-running {
|
29 |
+
background: rgba(0,0,0,.08) url('../images/running.gif') no-repeat 50% 50%;
|
30 |
+
width: 100%;
|
31 |
+
height: 100%;
|
32 |
+
position: fixed;
|
33 |
+
top: 0;
|
34 |
+
left: 0;
|
35 |
+
z-index: 999;
|
36 |
+
}
|
37 |
.odb-action {
|
38 |
font-size: 13px;
|
39 |
font-weight: bold;
|
css/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "utf-8";.odb-title-bar{width:96%;background-color:#0074a2;color:#FFF!important;display:inline-block;padding-left:16px;margin-top:30px}.odb-title-bar h2{color:#FFF}.odb-bold{font-weight:900}.odb-normal{font-weight:400}.odb-italic{font-style:italic}.odb-blue{color:#0074a2}.odb-action{font-size:13px;font-weight:700;color:#000}.odb-wp-table{font-weight:700;color:#0074a2}.odb-padding-left{padding-left:8px}.odb-border-bottom{border-bottom:solid 1px #999}.odb-border-top{border-top:solid 1px #999}.odb-optimizing-table{margin-top:16px}.odb-optimized{color:#0074a2;font-weight:700}.odb-underline-red{text-decoration:underline;color:red}.odb-updated{position:relative;left:-15px}.odb-found{font-size:13px;font-weight:700;color:#000}.odb-found-number{margin-left:8px;margin-bottom:18px;font-size:13px;font-weight:700;color:#000}.odb-result-table{background-color:#E8E8E8;margin-bottom:20px}.odb-not-found{margin-left:8px;margin-bottom:16px;color:#999}.odb-schedule-select{font-size:inherit;padding:0;margin:0}.odb-schedulehour{display:none}.odb-schedulehour-select{font-size:inherit}.odb-table-excludes{margin-top:10px;border:solid 1px #CCC;padding:10px}.odb-table-excludes td{padding:3px}#odb-options-tables-container{text-align:center}#odb-options-tables-wrapper{width:97%;display:inline-block;margin-top:16px;margin-left:-16px;padding:8px 0}.odb-options-table{background-color:#f0f0f0;display:inline-block;height:17px;margin:3px;border:solid 1px #E0E0E0;overflow:hidden;padding:2px;text-align:left;white-space:nowrap;width:200px}
|
1 |
+
@charset "utf-8";.odb-title-bar{width:96%;background-color:#0074a2;color:#FFF!important;display:inline-block;padding-left:16px;margin-top:30px}.odb-title-bar h2{color:#FFF}.odb-bold{font-weight:900}.odb-normal{font-weight:400}.odb-italic{font-style:italic}.odb-blue{color:#0074a2}#odb-running{background:rgba(0,0,0,.08)url(../images/running.gif) no-repeat 50% 50%;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999}.odb-action{font-size:13px;font-weight:700;color:#000}.odb-wp-table{font-weight:700;color:#0074a2}.odb-padding-left{padding-left:8px}.odb-border-bottom{border-bottom:solid 1px #999}.odb-border-top{border-top:solid 1px #999}.odb-optimizing-table{margin-top:16px}.odb-optimized{color:#0074a2;font-weight:700}.odb-underline-red{text-decoration:underline;color:red}.odb-updated{position:relative;left:-15px}.odb-found{font-size:13px;font-weight:700;color:#000}.odb-found-number{margin-left:8px;margin-bottom:18px;font-size:13px;font-weight:700;color:#000}.odb-result-table{background-color:#E8E8E8;margin-bottom:20px}.odb-not-found{margin-left:8px;margin-bottom:16px;color:#999}.odb-schedule-select{font-size:inherit;padding:0;margin:0}.odb-schedulehour{display:none}.odb-schedulehour-select{font-size:inherit}.odb-table-excludes{margin-top:10px;border:solid 1px #CCC;padding:10px}.odb-table-excludes td{padding:3px}#odb-options-tables-container{text-align:center}#odb-options-tables-wrapper{width:97%;display:inline-block;margin-top:16px;margin-left:-16px;padding:8px 0}.odb-options-table{background-color:#f0f0f0;display:inline-block;height:17px;margin:3px;border:solid 1px #E0E0E0;overflow:hidden;padding:2px;text-align:left;white-space:nowrap;width:200px}
|
images/running.gif
ADDED
Binary file
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author URI: http://cagewebdev.com
|
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
Tested up to: 4.5.3
|
11 |
-
Stable tag: 4.1.
|
12 |
-
Version: 4.1.
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
@@ -101,6 +101,9 @@ http://cagewebdev.com/index.php/wordpress-plugins/
|
|
101 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
102 |
|
103 |
== Changelog ==
|
|
|
|
|
|
|
104 |
= 4.1.8 [06/24/2016] =
|
105 |
* CHANGE: Reverted back to 4.1.6 due to some problems. Sorry!
|
106 |
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
Tested up to: 4.5.3
|
11 |
+
Stable tag: 4.1.9
|
12 |
+
Version: 4.1.9
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
101 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
102 |
|
103 |
== Changelog ==
|
104 |
+
= 4.1.9 [07/15/2016] =
|
105 |
+
* CHANGE: 'Running indicator' added
|
106 |
+
|
107 |
= 4.1.8 [06/24/2016] =
|
108 |
* CHANGE: Reverted back to 4.1.6 due to some problems. Sorry!
|
109 |
|
rvg-optimize-database.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
-
* @version 4.1.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
@@ -10,7 +10,7 @@ Description: Optimizes the Wordpress Database after Cleaning it out
|
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
-
Version: 4.1.
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
@@ -25,8 +25,8 @@ $odb_class = new OptimizeDatabase();
|
|
25 |
class OptimizeDatabase
|
26 |
{
|
27 |
// VERSION
|
28 |
-
var $odb_version = '4.1.
|
29 |
-
var $odb_release_date = '
|
30 |
|
31 |
// PLUGIN OPTIONS
|
32 |
var $odb_rvg_options = array();
|
@@ -555,8 +555,10 @@ class OptimizeDatabase
|
|
555 |
if(!$scheduler)
|
556 |
{ // SHOW PAGE HEADER
|
557 |
$this->odb_displayer_obj->display_header();
|
|
|
|
|
558 |
// SHOW CURRENT SETTINGS
|
559 |
-
$this->odb_displayer_obj->display_current_settings();
|
560 |
} // if(!$scheduler)
|
561 |
|
562 |
if ($action != 'run' && !$scheduler)
|
@@ -581,7 +583,11 @@ class OptimizeDatabase
|
|
581 |
// SHOW RESULTS
|
582 |
$this->odb_cleaner_obj->odb_savings($scheduler);
|
583 |
// SHOW 'DONE' PARAGRAPH
|
584 |
-
if(!$scheduler)
|
|
|
|
|
|
|
|
|
585 |
} // if($action != 'run')
|
586 |
} // odb_start()
|
587 |
} // OptimizeDatabase
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
+
* @version 4.1.9
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
10 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
11 |
Author URI: http://cagewebdev.com
|
12 |
Network: True
|
13 |
+
Version: 4.1.9
|
14 |
*/
|
15 |
|
16 |
/********************************************************************************************
|
25 |
class OptimizeDatabase
|
26 |
{
|
27 |
// VERSION
|
28 |
+
var $odb_version = '4.1.9';
|
29 |
+
var $odb_release_date = '07/15/2016';
|
30 |
|
31 |
// PLUGIN OPTIONS
|
32 |
var $odb_rvg_options = array();
|
555 |
if(!$scheduler)
|
556 |
{ // SHOW PAGE HEADER
|
557 |
$this->odb_displayer_obj->display_header();
|
558 |
+
// v4.1.9: STARTING: SHOW RUNNING INDICATOR
|
559 |
+
echo "<script>jQuery('#odb-running').show();</script>";
|
560 |
// SHOW CURRENT SETTINGS
|
561 |
+
$this->odb_displayer_obj->display_current_settings();
|
562 |
} // if(!$scheduler)
|
563 |
|
564 |
if ($action != 'run' && !$scheduler)
|
583 |
// SHOW RESULTS
|
584 |
$this->odb_cleaner_obj->odb_savings($scheduler);
|
585 |
// SHOW 'DONE' PARAGRAPH
|
586 |
+
if(!$scheduler)
|
587 |
+
{ // v4.1.9: DONE, SO HIDE RUNNING INDICATOR
|
588 |
+
echo "<script>jQuery('#odb-running').hide();</script>";
|
589 |
+
$this->odb_cleaner_obj->odb_done();
|
590 |
+
}
|
591 |
} // if($action != 'run')
|
592 |
} // odb_start()
|
593 |
} // OptimizeDatabase
|