WP Maintenance - Version 0.9

Version Description

Cette version est stable / This version is stable

=

Download this release

Release Info

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

Code changes from version 0.8 to 0.9

Files changed (3) hide show
  1. readme.txt +7 -4
  2. wp-maintenance-admin.php +3 -3
  3. wp-maintenance.php +7 -6
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Florent73
3
  Donate link:
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 2.0
6
- Tested up to: 3.6
7
- Stable tag: 0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,14 +48,17 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
48
 
49
  == Upgrade Notice ==
50
 
51
- = 0.8 =
52
  Cette version est stable / This version is stable
53
 
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 0.8 =
58
- * Bugs sur le compte à rebours
59
 
60
  = 0.7 =
61
  * Bugs sur les couleurs résolus / Colors Bugs fixed
3
  Donate link:
4
  Tags: wordpress maintenance plugin
5
  Requires at least: 2.0
6
+ Tested up to: 3.8
7
+ Stable tag: 0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Upgrade Notice ==
50
 
51
+ = 0.9 =
52
  Cette version est stable / This version is stable
53
 
54
 
55
  == Changelog ==
56
 
57
+ = 0.9 =
58
+ * Bugs ajout lien dans textes / Bug add link in texts
59
+
60
  = 0.8 =
61
+ * Bugs sur le compte à rebours / Countdown bug fixes
62
 
63
  = 0.7 =
64
  * Bugs sur les couleurs résolus / Colors Bugs fixed
wp-maintenance-admin.php CHANGED
@@ -143,8 +143,8 @@ if($_POST['wpm_initcss']==1) {
143
  <!-- TEXTE PERSONNEL POUR LA PAGE -->
144
  <li>
145
  <h3><?php echo __('Title and text for the maintenance page :', 'wp-maintenance'); ?></h3>
146
- <?php echo __('Title :', 'wp-maintenance'); ?><br /><input type="text" name="wp_maintenance_settings[titre_maintenance]" value="<?php echo $paramMMode['titre_maintenance'] ?>" /><br />
147
- <?php echo __('Texte :', 'wp-maintenance'); ?><br /><TEXTAREA NAME="wp_maintenance_settings[text_maintenance]" COLS=70 ROWS=4><?php echo $paramMMode['text_maintenance'] ?></TEXTAREA>
148
  </li>
149
  <li> &nbsp;</li>
150
 
@@ -245,7 +245,7 @@ if($_POST['wpm_initcss']==1) {
245
  <input type="hidden" name=wp_maintenance_settings[date_cpt_ss]" value="<?php if($paramMMode['date_cpt_ss']!='') { echo $paramMMode['date_cpt_ss']; } else { echo date('s'); } ?>" />
246
  <br /><br />
247
  <input type= "checkbox" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if($paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>>&nbsp;<?php echo __('Enable seconds ?', 'wp-maintenance'); ?><br /><br />
248
- <?php echo __('End message :', 'wp-maintenance'); ?><br /><TEXTAREA NAME="wp_maintenance_settings[message_cpt_fin]" COLS=70 ROWS=4><?php echo $paramMMode['message_cpt_fin']; ?></TEXTAREA><br /><?php echo __('Font size :', 'wp-maintenance'); ?> <select name=wp_maintenance_settings[date_cpt_size]">
249
  <?php
250
  $ctpSize = array('18', '24', '36', '48', '52', '56', '60', '64', '68', '72', '76');
251
  foreach($ctpSize as $c) {
143
  <!-- TEXTE PERSONNEL POUR LA PAGE -->
144
  <li>
145
  <h3><?php echo __('Title and text for the maintenance page :', 'wp-maintenance'); ?></h3>
146
+ <?php echo __('Title :', 'wp-maintenance'); ?><br /><input type="text" name="wp_maintenance_settings[titre_maintenance]" value="<?php echo stripslashes($paramMMode['titre_maintenance']); ?>" /><br />
147
+ <?php echo __('Texte :', 'wp-maintenance'); ?><br /><TEXTAREA NAME="wp_maintenance_settings[text_maintenance]" COLS=70 ROWS=4><?php echo stripslashes($paramMMode['text_maintenance']); ?></TEXTAREA>
148
  </li>
149
  <li> &nbsp;</li>
150
 
245
  <input type="hidden" name=wp_maintenance_settings[date_cpt_ss]" value="<?php if($paramMMode['date_cpt_ss']!='') { echo $paramMMode['date_cpt_ss']; } else { echo date('s'); } ?>" />
246
  <br /><br />
247
  <input type= "checkbox" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if($paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>>&nbsp;<?php echo __('Enable seconds ?', 'wp-maintenance'); ?><br /><br />
248
+ <?php echo __('End message :', 'wp-maintenance'); ?><br /><TEXTAREA NAME="wp_maintenance_settings[message_cpt_fin]" COLS=70 ROWS=4><?php echo stripslashes($paramMMode['message_cpt_fin']); ?></TEXTAREA><br /><?php echo __('Font size :', 'wp-maintenance'); ?> <select name=wp_maintenance_settings[date_cpt_size]">
249
  <?php
250
  $ctpSize = array('18', '24', '36', '48', '52', '56', '60', '64', '68', '72', '76');
251
  foreach($ctpSize as $c) {
wp-maintenance.php CHANGED
@@ -2,16 +2,17 @@
2
 
3
  /*
4
  Plugin Name: WP Maintenance
5
- Plugin URI: http://www.restezconnectes.fr/wordpress-votre-nouveau-plugin-de-maintenance/
6
- Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance. Personnalisez cette page de maintenance.
7
  Author: Florent Maillefaud
8
  Author URI: http://www.restezconnectes.fr/
9
- Version: 0.8
10
  */
11
 
12
 
13
  /*
14
  Change Log
 
15
  06/11/2013 - Bugs sur le compte à rebours
16
  03/10/2013 - Bugs sur les couleurs
17
  11/09/2013 - Conflits javascript résolus
@@ -51,7 +52,7 @@ function wpm_make_multilang() {
51
  }
52
 
53
  /* Ajoute la version dnas les options */
54
- define('WPM_VERSION', '0.8');
55
  $option['wp_maintenance_version'] = WPM_VERSION;
56
  add_option('wp_maintenance_version',$option);
57
 
@@ -269,7 +270,7 @@ function wpm_maintenance_mode() {
269
  <div id="content" class="full">
270
  <div id="main">';
271
  $content .= '
272
- <div id="intro" class="block"><h3>'.$paramMMode['titre_maintenance'].'</h3><p>'.$paramMMode['text_maintenance'].'</p></div>';
273
  if( isset($paramMMode['message_cpt_fin']) && $paramMMode['message_cpt_fin']!='' && $paramMMode['date_cpt_aa']!='' && $paramMMode['active_cpt']==1) {
274
  $content .='
275
  <div style="margin-left:auto;margin-right:auto;text-align: center;margin-top:30px;">
@@ -287,7 +288,7 @@ function wpm_maintenance_mode() {
287
  $content .= '<div id="cptR-seconds">%%S%%<span id="cptR-seconds-span">'.__('Seconds', 'wp-maintenance').'</span></div>';
288
  }
289
  $content .= "';
290
- FinishMessage = '".$paramMMode['message_cpt_fin']."';
291
  </script>";
292
  $content .= '
293
  <script language="JavaScript" src="'.WP_PLUGIN_URL.'/wp-maintenance/wpm-cpt-script.js"></script>
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 / 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 and countdown.
7
  Author: Florent Maillefaud
8
  Author URI: http://www.restezconnectes.fr/
9
+ Version: 0.9
10
  */
11
 
12
 
13
  /*
14
  Change Log
15
+ 24/12/2013 - Bugs ajout de lien dans les textes
16
  06/11/2013 - Bugs sur le compte à rebours
17
  03/10/2013 - Bugs sur les couleurs
18
  11/09/2013 - Conflits javascript résolus
52
  }
53
 
54
  /* Ajoute la version dnas les options */
55
+ define('WPM_VERSION', '0.9');
56
  $option['wp_maintenance_version'] = WPM_VERSION;
57
  add_option('wp_maintenance_version',$option);
58
 
270
  <div id="content" class="full">
271
  <div id="main">';
272
  $content .= '
273
+ <div id="intro" class="block"><h3>'.stripslashes($paramMMode['titre_maintenance']).'</h3><p>'.stripslashes($paramMMode['text_maintenance']).'</p></div>';
274
  if( isset($paramMMode['message_cpt_fin']) && $paramMMode['message_cpt_fin']!='' && $paramMMode['date_cpt_aa']!='' && $paramMMode['active_cpt']==1) {
275
  $content .='
276
  <div style="margin-left:auto;margin-right:auto;text-align: center;margin-top:30px;">
288
  $content .= '<div id="cptR-seconds">%%S%%<span id="cptR-seconds-span">'.__('Seconds', 'wp-maintenance').'</span></div>';
289
  }
290
  $content .= "';
291
+ FinishMessage = '".stripslashes($paramMMode['message_cpt_fin'])."';
292
  </script>";
293
  $content .= '
294
  <script language="JavaScript" src="'.WP_PLUGIN_URL.'/wp-maintenance/wpm-cpt-script.js"></script>