WP Maintenance - Version 2.3

Version Description

Cette version est stable / This version is stable

=

Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

Files changed (4) hide show
  1. admin.css +0 -34
  2. readme.txt +6 -3
  3. wp-maintenance-admin.php +7 -7
  4. wp-maintenance.php +20 -13
admin.css DELETED
@@ -1,34 +0,0 @@
1
- #wpadminbar .wpmbackground {
2
- background-color: #333;
3
- -webkit-animation-name: blinker;
4
- -webkit-animation-duration: 5s;
5
- -webkit-animation-timing-function: linear;
6
- -webkit-animation-iteration-count: infinite;
7
-
8
- -moz-animation-name: blinker;
9
- -moz-animation-duration: 5s;
10
- -moz-animation-timing-function: linear;
11
- -moz-animation-iteration-count: infinite;
12
-
13
- animation-name: blinker;
14
- animation-duration: 5s;
15
- animation-timing-function: linear;
16
- animation-iteration-count: infinite;
17
- }
18
- @-moz-keyframes blinker {
19
- 0% { opacity: 1.0; }
20
- 50% { opacity: 0.0; }
21
- 100% { opacity: 1.0; }
22
- }
23
-
24
- @-webkit-keyframes blinker {
25
- 0% { opacity: 1.0; }
26
- 50% { opacity: 0.0; }
27
- 100% { opacity: 1.0; }
28
- }
29
-
30
- @keyframes blinker {
31
- 0% { opacity: 1.0; }
32
- 50% { opacity: 0.0; }
33
- 100% { opacity: 1.0; }
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Florent73
3
  Donate link:
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 3.0
6
- Tested up to: 4.1
7
- Stable tag: 2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -65,12 +65,15 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
65
 
66
  == Upgrade Notice ==
67
 
68
- = 2.2 =
69
  Cette version est stable / This version is stable
70
 
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 2.2 =
75
  * Ajout d'une notification dans la barre d'admin et résolution de divers bugs CSS / Added a notification in the admin bar & fixed various CSS bugs
76
 
3
  Donate link:
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 3.0
6
+ Tested up to: 4.1.1
7
+ Stable tag: 2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
65
 
66
  == Upgrade Notice ==
67
 
68
+ = 2.3 =
69
  Cette version est stable / This version is stable
70
 
71
 
72
  == Changelog ==
73
 
74
+ = 2.3 =
75
+ * Résolution d'un bug sur tailles des icônes sociaux et sur l'acivation de page maintenance.php du thème / Fixed a bug on sizes of social icons on the theme of maintenance.php page acivation
76
+
77
  = 2.2 =
78
  * Ajout d'une notification dans la barre d'admin et résolution de divers bugs CSS / Added a notification in the admin bar & fixed various CSS bugs
79
 
wp-maintenance-admin.php CHANGED
@@ -142,12 +142,13 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
142
  <br />
143
  <?php _e('Choose icons size:', 'wp-maintenance'); ?>
144
  <select name="wp_maintenance_social_options[size]">
145
- <option value="16"<?php if($paramSocialOption['size']==16) { echo ' selected'; } ?>>16</option>
146
- <option value="24"<?php if($paramSocialOption['size']==24) { echo ' selected'; } ?>>24</option>
147
- <option value="32"<?php if($paramSocialOption['size']==32) { echo ' selected'; } ?>>32</option>
148
- <option value="32"<?php if($paramSocialOption['size']==48 or $paramSocialOption=='') { echo ' selected'; } ?>>48</option>
149
- <option value="64"<?php if($paramSocialOption['size']==64) { echo ' selected'; } ?>>64</option>
150
- <option value="128"<?php if($paramSocialOption['size']==128) { echo ' selected'; } ?>>128</option>
 
151
  </select>
152
  </li>
153
  <li>
@@ -294,7 +295,6 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
294
  </div>
295
  <br />
296
  <!-- FIN POLICE DU TEXTE BAS DE PAGE -->
297
- <br /><br />
298
  </li>
299
  <li>&nbsp;</li>
300
 
142
  <br />
143
  <?php _e('Choose icons size:', 'wp-maintenance'); ?>
144
  <select name="wp_maintenance_social_options[size]">
145
+ <?php
146
+ $wpm_tabIcon = array(16, 24, 32, 48, 64, 128);
147
+ foreach($wpm_tabIcon as $wpm_icon) {
148
+ if($paramSocialOption['size']==$wpm_icon) { $selected = ' selected'; } else { $selected = ''; }
149
+ echo '<option value="'.$wpm_icon.'" '.$selected.'>'.$wpm_icon.'</option>';
150
+ }
151
+ ?>
152
  </select>
153
  </li>
154
  <li>
295
  </div>
296
  <br />
297
  <!-- FIN POLICE DU TEXTE BAS DE PAGE -->
 
298
  </li>
299
  <li>&nbsp;</li>
300
 
wp-maintenance.php CHANGED
@@ -1,13 +1,15 @@
1
  <?php
2
 
3
  /*
4
- Plugin Name: WP Maintenance
5
- Plugin URI: http://wordpress.org/extend/plugins/wp-maintenance/
6
- Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
- Author: Florent Maillefaud
8
- Author URI: http://www.restezconnectes.fr/
9
- Version: 2.2
10
- */
 
 
11
 
12
 
13
  /*
@@ -63,7 +65,7 @@ function wpm_make_multilang() {
63
  }
64
 
65
  /* Ajoute la version dans les options */
66
- define('WPM_VERSION', '2.2');
67
  $option['wp_maintenance_version'] = WPM_VERSION;
68
  if( !get_option('wp_maintenance_version') ) {
69
  add_option('wp_maintenance_version', $option);
@@ -318,12 +320,17 @@ function wpm_maintenance_mode() {
318
  }
319
 
320
  if ($statusActive == 1) {
 
 
 
 
 
 
 
 
321
 
322
- $urlTpl = get_stylesheet_directory_uri();
323
-
324
- if($paramMMode['pageperso']==1) {
325
-
326
- $content = file_get_contents( $urlTpl. '/maintenance.php' );
327
 
328
  } else {
329
 
1
  <?php
2
 
3
  /*
4
+ * Plugin Name: WP Maintenance
5
+ * Plugin URI: http://wordpress.org/extend/plugins/wp-maintenance/
6
+ * Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
+ * Author: Florent Maillefaud
8
+ * Author URI: http://www.restezconnectes.fr/
9
+ * Version: 2.3
10
+ * Text Domain: wp-maintenance
11
+ * Domain Path: /languages/
12
+ */
13
 
14
 
15
  /*
65
  }
66
 
67
  /* Ajoute la version dans les options */
68
+ define('WPM_VERSION', '2.3');
69
  $option['wp_maintenance_version'] = WPM_VERSION;
70
  if( !get_option('wp_maintenance_version') ) {
71
  add_option('wp_maintenance_version', $option);
320
  }
321
 
322
  if ($statusActive == 1) {
323
+
324
+ if ( file_exists( get_stylesheet_directory() ) ) {
325
+ $urlTpl = get_stylesheet_directory();
326
+ } else {
327
+ $urlTpl = get_template_directory();
328
+ }
329
+
330
+ if( $paramMMode['pageperso']==1 && file_exists($urlTpl.'/maintenance.php') ) {
331
 
332
+ include_once( $urlTpl.'/maintenance.php' );
333
+ die();
 
 
 
334
 
335
  } else {
336