Companion Auto Update - Version 3.0.3

Version Description

(February 28, 2018) = * Added update time to changelog * Minor tweaks to mobile design

Download this release

Release Info

Developer Papin
Plugin Icon 128x128 Companion Auto Update
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

admin/pluginlist.php CHANGED
@@ -95,11 +95,11 @@ if( isset( $_POST['reset'] ) ) {
95
  <p><strong>'. $name .'</strong></p>
96
  </td>
97
 
98
- <td class="column-status">
99
  <p>'. $status .'</p>
100
  </td>
101
 
102
- <td class="column-description">
103
  <p>'.$description.'</p>
104
  </td>
105
 
95
  <p><strong>'. $name .'</strong></p>
96
  </td>
97
 
98
+ <td class="cau_hide_on_mobile column-status">
99
  <p>'. $status .'</p>
100
  </td>
101
 
102
+ <td class="cau_hide_on_mobile column-description">
103
  <p>'.$description.'</p>
104
  </td>
105
 
admin/schedule.php CHANGED
@@ -86,9 +86,19 @@ if( isset( $_POST['submit'] ) ) {
86
  </select>
87
  </p>
88
  <p>
89
- <input type='text' name='pluginScheduleTimeH' value='<?php echo date("H"); ?>' style='max-width: 46px; text-align: center;'>:<input type='text' name='pluginScheduleTimeM' value='<?php echo date("i"); ?>' style='max-width: 46px; text-align: center;'>
90
- <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
 
 
 
 
 
 
 
 
 
91
  <p class='description'><?php _e('At what time should the updater run? Only works when set to <u>daily</u>.', 'companion-auto-update'); ?> </p>
 
92
  </p>
93
  </td>
94
  </tr>
@@ -103,8 +113,16 @@ if( isset( $_POST['submit'] ) ) {
103
  </select>
104
  </p>
105
  <p>
106
- <input type='text' name='ThemeScheduleTimeH' value='<?php echo date("H"); ?>' style='max-width: 46px; text-align: center;'>:<input type='text' name='ThemeScheduleTimeM' value='<?php echo date("i"); ?>' style='max-width: 46px; text-align: center;'>
107
- <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
 
 
 
 
 
 
 
 
108
  <p class='description'><?php _e('At what time should the updater run? Only works when set to <u>daily</u>.', 'companion-auto-update'); ?> </p>
109
  </p>
110
  </td>
86
  </select>
87
  </p>
88
  <p>
89
+
90
+ <div class='cau_schedule_input'>
91
+ <input type='text' name='pluginScheduleTimeH' value='<?php echo date("H"); ?>'>
92
+ </div><div class='cau_schedule_input_div'>
93
+ :
94
+ </div><div class='cau_schedule_input'>
95
+ <input type='text' name='pluginScheduleTimeM' value='<?php echo date("i"); ?>'>
96
+ </div><div class='cau_shedule_notation'>
97
+ <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
98
+ </div>
99
+
100
  <p class='description'><?php _e('At what time should the updater run? Only works when set to <u>daily</u>.', 'companion-auto-update'); ?> </p>
101
+
102
  </p>
103
  </td>
104
  </tr>
113
  </select>
114
  </p>
115
  <p>
116
+ <div class='cau_schedule_input'>
117
+ <input type='text' name='ThemeScheduleTimeH' value='<?php echo date("H"); ?>'>
118
+ </div><div class='cau_schedule_input_div'>
119
+ :
120
+ </div><div class='cau_schedule_input'>
121
+ <input type='text' name='ThemeScheduleTimeM' value='<?php echo date("i"); ?>'>
122
+ </div><div class='cau_shedule_notation'>
123
+ <b><?php _e('Time notation: 24H', 'companion-auto-update'); ?></b>
124
+ </div>
125
+
126
  <p class='description'><?php _e('At what time should the updater run? Only works when set to <u>daily</u>.', 'companion-auto-update'); ?> </p>
127
  </p>
128
  </td>
backend/style.css CHANGED
@@ -5,6 +5,9 @@
5
  p.warning strong {
6
  color: orange;
7
  }
 
 
 
8
 
9
  /* Table Styling */
10
  table.autoupdate th.head-plugin {
@@ -91,9 +94,33 @@ table.autoupdatelog .dashicons {
91
  border-color: #FFF;
92
  left: 18px;
93
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  @media screen and (max-width: 1000px) {
96
- table.autoupdate thead {
97
- display: none;
 
 
 
98
  }
99
  }
5
  p.warning strong {
6
  color: orange;
7
  }
8
+ .cau_support_buttons {
9
+ display: inline-block;
10
+ }
11
 
12
  /* Table Styling */
13
  table.autoupdate th.head-plugin {
94
  border-color: #FFF;
95
  left: 18px;
96
  }
97
+ .cau_schedule_input {
98
+ display: inline-block;
99
+ vertical-align: middle;
100
+ width: 40px;
101
+ }
102
+ .cau_schedule_input input {
103
+ max-width: 100%;
104
+ text-align: center;
105
+ }
106
+ .cau_schedule_input_div {
107
+ display: inline-block;
108
+ vertical-align: middle;
109
+ padding: 0 6px;
110
+ font-weight: bold;
111
+ }
112
+ .cau_shedule_notation {
113
+ display: inline-block;
114
+ vertical-align: middle;
115
+ width: 125px;
116
+ padding-left: 5px;
117
+ }
118
 
119
  @media screen and (max-width: 1000px) {
120
+ .cau_support_buttons, .cau_hide_on_mobile, table.autoupdate thead {
121
+ display: none!important;
122
+ }
123
+ .cau_schedule_input {
124
+ width: 50px;
125
  }
126
  }
cau_functions.php CHANGED
@@ -65,8 +65,13 @@ function cau_fetch_log( $limit, $format = 'simple' ) {
65
 
66
  // Get last update date
67
  $dateFormat = get_option( 'date_format' );
68
- $fileDate = date ( 'Ymd', filemtime( $fullPath ) );
69
- $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
 
 
 
 
 
70
  array_push( $pluginDates, $fileDate );
71
  array_push( $pluginDatesF, $fileDateF );
72
  array_push( $type, 'Plugin' );
@@ -89,8 +94,15 @@ function cau_fetch_log( $limit, $format = 'simple' ) {
89
 
90
  // Get last update date
91
  $dateFormat = get_option( 'date_format' );
92
- $fileDate = date ( 'Ymd', filemtime( $fullPath ) );
93
- $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
 
 
 
 
 
 
 
94
  array_push( $pluginDates, $fileDate );
95
  array_push( $pluginDatesF, $fileDateF );
96
  array_push( $type, 'Theme' );
@@ -137,7 +149,7 @@ function cau_fetch_log( $limit, $format = 'simple' ) {
137
 
138
  echo '<tr>';
139
 
140
- echo '<td class="column-primary"><p><strong>'. $pluginNames[$key] .'</strong></p></td>';
141
 
142
  if( $format == 'table' ) {
143
 
@@ -147,7 +159,7 @@ function cau_fetch_log( $limit, $format = 'simple' ) {
147
  $thisType = __( 'Theme', 'companion-auto-update' );
148
  }
149
 
150
- echo '<td class="column-description"><p>'. $thisType .'</p></td>';
151
 
152
  }
153
 
65
 
66
  // Get last update date
67
  $dateFormat = get_option( 'date_format' );
68
+ $fileDate = date ( 'YmdHi', filemtime( $fullPath ) );
69
+ if( $format == 'table' ) {
70
+ $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
71
+ $fileDateF .= ' &dash; '.date ( 'H:i', filemtime( $fullPath ) );
72
+ } else {
73
+ $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
74
+ }
75
  array_push( $pluginDates, $fileDate );
76
  array_push( $pluginDatesF, $fileDateF );
77
  array_push( $type, 'Plugin' );
94
 
95
  // Get last update date
96
  $dateFormat = get_option( 'date_format' );
97
+ $fileDate = date ( 'YmdHi', filemtime( $fullPath ) );
98
+
99
+ if( $format == 'table' ) {
100
+ $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
101
+ $fileDateF .= ' &dash; '.date ( 'H:i', filemtime( $fullPath ) );
102
+ } else {
103
+ $fileDateF = date_i18n ( $dateFormat, filemtime( $fullPath ) );
104
+ }
105
+
106
  array_push( $pluginDates, $fileDate );
107
  array_push( $pluginDatesF, $fileDateF );
108
  array_push( $type, 'Theme' );
149
 
150
  echo '<tr>';
151
 
152
+ echo '<td class="column-updatetitle"><p><strong>'. $pluginNames[$key] .'</strong></p></td>';
153
 
154
  if( $format == 'table' ) {
155
 
159
  $thisType = __( 'Theme', 'companion-auto-update' );
160
  }
161
 
162
+ echo '<td class="cau_hide_on_mobile column-description"><p>'. $thisType .'</p></td>';
163
 
164
  }
165
 
companion-auto-update.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: http://codeermeneer.nl/portfolio/companion-auto-update/
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
- * Version: 3.0.2
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
@@ -138,9 +138,13 @@ function cau_frontend() { ?>
138
 
139
  <h1 class="wp-heading-inline"><?php _e('Auto Updater', 'companion-auto-update'); ?></h1>
140
 
141
- <a href="http://codeermeneer.nl/cau_poll/" target="_blank" class="page-title-action"><?php _e('Give feedback', 'companion-auto-update'); ?></a>
142
- <a href="https://translate.wordpress.org/projects/wp-plugins/companion-auto-update/" target="_blank" class="page-title-action"><?php _e('Help us translate', 'companion-auto-update'); ?></a>
143
- <a href="https://www.paypal.me/dakel/1/" target="_blank" class="page-title-action"><?php _e('Donate to help development', 'companion-auto-update'); ?></a>
 
 
 
 
144
 
145
  <hr class="wp-header-end">
146
 
3
  * Plugin Name: Companion Auto Update
4
  * Plugin URI: http://codeermeneer.nl/portfolio/companion-auto-update/
5
  * Description: This plugin auto updates all plugins, all themes and the wordpress core.
6
+ * Version: 3.0.3
7
  * Author: Papin Schipper
8
  * Author URI: http://codeermeneer.nl/
9
  * Contributors: papin
138
 
139
  <h1 class="wp-heading-inline"><?php _e('Auto Updater', 'companion-auto-update'); ?></h1>
140
 
141
+ <div class='cau_support_buttons'>
142
+
143
+ <a href="http://codeermeneer.nl/cau_poll/" target="_blank" class="page-title-action"><?php _e('Give feedback', 'companion-auto-update'); ?></a>
144
+ <a href="https://translate.wordpress.org/projects/wp-plugins/companion-auto-update/" target="_blank" class="page-title-action"><?php _e('Help us translate', 'companion-auto-update'); ?></a>
145
+ <a href="https://www.paypal.me/dakel/1/" target="_blank" class="page-title-action"><?php _e('Donate to help development', 'companion-auto-update'); ?></a>
146
+
147
+ </div>
148
 
149
  <hr class="wp-header-end">
150
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/dakel/2
4
  Tags: auto, automatic, background, update, updates, updating, automatic updates, automatic background updates, easy update, wordpress update, theme update, plugin update, up-to-date, security, update latest version, update core, update wp, update wp core, major updates, minor updates, update to new version, update core, update plugin, update plugins, update plugins automatically, update theme, plugin, theme, advance, control, mail, notifations, enable
5
  Requires at least: 3.5.0
6
  Tested up to: 4.9
7
- Stable tag: 3.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,10 @@ If you launched your website a few years ago using cPanel it could be the case t
77
 
78
  == Changelog ==
79
 
 
 
 
 
80
  = 3.0.2 (February 10, 2018) =
81
  * Security improvements
82
 
4
  Tags: auto, automatic, background, update, updates, updating, automatic updates, automatic background updates, easy update, wordpress update, theme update, plugin update, up-to-date, security, update latest version, update core, update wp, update wp core, major updates, minor updates, update to new version, update core, update plugin, update plugins, update plugins automatically, update theme, plugin, theme, advance, control, mail, notifations, enable
5
  Requires at least: 3.5.0
6
  Tested up to: 4.9
7
+ Stable tag: 3.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 3.0.3 (February 28, 2018) =
81
+ * Added update time to changelog
82
+ * Minor tweaks to mobile design
83
+
84
  = 3.0.2 (February 10, 2018) =
85
  * Security improvements
86