WP Maintenance - Version 1.9

Version Description

Cette version est stable / This version is stable

=

Download this release

Release Info

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

Code changes from version 1.8 to 1.9

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
- Stable tag: 1.8
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
- = 1.8 =
69
  Cette version est stable / This version is stable
70
 
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.8 =
75
  * Correction bug upload du logo et du fond / Fixed bug logo and background upload
76
 
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
65
 
66
  == Upgrade Notice ==
67
 
68
+ = 1.9 =
69
  Cette version est stable / This version is stable
70
 
71
 
72
  == Changelog ==
73
 
74
+ = 1.9 =
75
+ * Correction bug auto-reset de la CSS / Fixed Bug CSS auto-reset
76
+
77
  = 1.8 =
78
  * Correction bug upload du logo et du fond / Fixed bug logo and background upload
79
 
wp-maintenance-admin.php CHANGED
@@ -125,10 +125,10 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
125
  display: inline-block;
126
  list-style: none;
127
  margin:5px;
128
- opacity:0.6;
129
  }
130
  .wpm_horizontal li:hover {
131
- opacity:1;
132
  }
133
  #wpm_footer {
134
  width: 100%;
@@ -139,7 +139,7 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
139
  color:#_COLOR_TXT_BT;
140
  padding-top:10px;
141
  font-size: 12px;
142
- position:absolute;
143
  bottom:0;
144
  }
145
  .wpm_copyright {
@@ -180,7 +180,13 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
180
  }
181
  #main .block {
182
  margin-bottom: 0;
183
- }
 
 
 
 
 
 
184
  }
185
 
186
  @media screen and (min-width: 480px) and (max-width: 767px) {
125
  display: inline-block;
126
  list-style: none;
127
  margin:5px;
128
+ opacity:1;
129
  }
130
  .wpm_horizontal li:hover {
131
+ opacity:0.5;
132
  }
133
  #wpm_footer {
134
  width: 100%;
139
  color:#_COLOR_TXT_BT;
140
  padding-top:10px;
141
  font-size: 12px;
142
+ position:fixed;
143
  bottom:0;
144
  }
145
  .wpm_copyright {
180
  }
181
  #main .block {
182
  margin-bottom: 0;
183
+ }
184
+ #cptR-days-span, #cptR-hours-span, #cptR-minutes-span, #cptR-seconds-span {
185
+ font-size: 8px;
186
+ }
187
+ #main #intro h3 {
188
+ font-size: 6vw;
189
+ }
190
  }
191
 
192
  @media screen and (min-width: 480px) and (max-width: 767px) {
wp-maintenance.php CHANGED
@@ -6,12 +6,13 @@ 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: 1.8
10
  */
11
 
12
 
13
  /*
14
  Change Log
 
15
  20/05/2014 - Correction bug upload d'image
16
  04/05/2014 - Correction bug date fin compte à rebours
17
  03/05/2014 - Correction bug drag&drop Réseaux Sociaux
@@ -58,7 +59,7 @@ function wpm_make_multilang() {
58
  }
59
 
60
  /* Ajoute la version dans les options */
61
- define('WPM_VERSION', '1.8');
62
  $option['wp_maintenance_version'] = WPM_VERSION;
63
  if( !get_option('wp_maintenance_version') ) {
64
  add_option('wp_maintenance_version', $option);
@@ -207,7 +208,7 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
207
  background-color: #_COLOR_BG_BT;
208
  color:#_COLOR_TXT_BT;
209
  padding-top:10px;
210
- position:absolute;
211
  bottom:0;
212
  }
213
  .wpm_copyright {
@@ -248,7 +249,13 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
248
  }
249
  #main .block {
250
  margin-bottom: 0;
251
- }
 
 
 
 
 
 
252
  }
253
  @media screen and (min-width: 480px) and (max-width: 767px) {
254
  .full {
@@ -256,7 +263,9 @@ a:hover, a:focus, a:active {color: #_COLORTXT;text-decoration: underline;}
256
  }
257
  }
258
  ';
259
- update_option('wp_maintenance_style', $wp_maintenanceStyles);
 
 
260
  }
261
 
262
  function wpm_admin_scripts() {
@@ -450,7 +459,7 @@ function wpm_maintenance_mode() {
450
  if($paramMMode['color_txt']=="") { $paramMMode['color_txt'] = "#888888"; }
451
 
452
  /* Paramètres par défaut */
453
- if($paramMMode['text_maintenance']=="") { $paramMMode['text_maintenance'] = 'Ce site est en maintenance'; }
454
  if($paramMMode['image']=="") { $paramMMode['image'] = WP_PLUGIN_URL.'/wp-maintenance/default.png'; }
455
 
456
  /* On récupère les tailles de l'image */
@@ -517,7 +526,21 @@ function wpm_maintenance_mode() {
517
  text-align: '.$paramSocialOption['align'].';
518
  }
519
  #cptR-day, #cptR-hours, #cptR-minutes, #cptR-seconds {
520
- width:'.($paramMMode['date_cpt_size']*1.8).'px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
  }
522
  </style>
523
  '.do_shortcode('[wpm_analytics enable="'.$paramMMode['analytics'].'"]').'
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: 1.9
10
  */
11
 
12
 
13
  /*
14
  Change Log
15
+ 17/07/2014 - Correction bug feuille de style
16
  20/05/2014 - Correction bug upload d'image
17
  04/05/2014 - Correction bug date fin compte à rebours
18
  03/05/2014 - Correction bug drag&drop Réseaux Sociaux
59
  }
60
 
61
  /* Ajoute la version dans les options */
62
+ define('WPM_VERSION', '1.9');
63
  $option['wp_maintenance_version'] = WPM_VERSION;
64
  if( !get_option('wp_maintenance_version') ) {
65
  add_option('wp_maintenance_version', $option);
208
  background-color: #_COLOR_BG_BT;
209
  color:#_COLOR_TXT_BT;
210
  padding-top:10px;
211
+ position:fixed;
212
  bottom:0;
213
  }
214
  .wpm_copyright {
249
  }
250
  #main .block {
251
  margin-bottom: 0;
252
+ }
253
+ #cptR-days-span, #cptR-hours-span, #cptR-minutes-span, #cptR-seconds-span {
254
+ font-size: 8px;
255
+ }
256
+ #main #intro h3 {
257
+ font-size: 6vw;
258
+ }
259
  }
260
  @media screen and (min-width: 480px) and (max-width: 767px) {
261
  .full {
263
  }
264
  }
265
  ';
266
+ if(!get_option('wp_maintenance_style') or get_option('wp_maintenance_style')=='') {
267
+ update_option('wp_maintenance_style', $wp_maintenanceStyles);
268
+ }
269
  }
270
 
271
  function wpm_admin_scripts() {
459
  if($paramMMode['color_txt']=="") { $paramMMode['color_txt'] = "#888888"; }
460
 
461
  /* Paramètres par défaut */
462
+ //if($paramMMode['text_maintenance']=="") { $paramMMode['text_maintenance'] = 'Ce site est en maintenance'; }
463
  if($paramMMode['image']=="") { $paramMMode['image'] = WP_PLUGIN_URL.'/wp-maintenance/default.png'; }
464
 
465
  /* On récupère les tailles de l'image */
526
  text-align: '.$paramSocialOption['align'].';
527
  }
528
  #cptR-day, #cptR-hours, #cptR-minutes, #cptR-seconds {
529
+ width:'.($paramMMode['date_cpt_size']*1.4).'px;
530
+ }
531
+ .cptR-rec_countdown {
532
+ font-size:'.$paramMMode['date_cpt_size'].'px;
533
+ }
534
+ @media screen and (min-width: 200px) and (max-width: 480px) {
535
+ #cptR-day, #cptR-hours, #cptR-minutes, #cptR-seconds {
536
+ width:'.($paramMMode['date_cpt_size']*0.9).'px;
537
+ }
538
+ .cptR-rec_countdown {
539
+ font-size:'.($paramMMode['date_cpt_size']*0.6).'px;
540
+ }
541
+ #cptR-days-span, #cptR-hours-span, #cptR-minutes-span, #cptR-seconds-span {
542
+ font-size: 8px;
543
+ }
544
  }
545
  </style>
546
  '.do_shortcode('[wpm_analytics enable="'.$paramMMode['analytics'].'"]').'
wpm-cpt-script.js CHANGED
@@ -47,7 +47,7 @@ function CountBack(secs) {
47
  }
48
 
49
  function putspan(BackColor, ForeColor) {
50
- document.write("<div class='cptR-rec_countdown'><span id='cntdwn' style='background-color:" + BackColor + "; color:" + ForeColor + ";font-size:" + FontSize + "px;'></span></div>");
51
  }
52
 
53
  if (typeof(BackColor)=="undefined")
47
  }
48
 
49
  function putspan(BackColor, ForeColor) {
50
+ document.write("<div class='cptR-rec_countdown'><span id='cntdwn' style='background-color:" + BackColor + "; color:" + ForeColor + ";'></span></div>");
51
  }
52
 
53
  if (typeof(BackColor)=="undefined")