WP Maintenance - Version 2.6.7

Version Description

Cette version est stable / This version is stable

=

Download this release

Release Info

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

Code changes from version 2.6.6 to 2.6.7

Files changed (3) hide show
  1. readme.txt +5 -2
  2. wp-maintenance-admin.php +9 -0
  3. wp-maintenance.php +3 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpmaintenance.shost.ca/a-propos/
4
  Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.3.1
7
- Stable tag: 2.6.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,11 +67,14 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
67
 
68
  == Upgrade Notice ==
69
 
70
- = 2.6.6 =
71
  Cette version est stable / This version is stable
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 2.6.6 =
76
  * Correction de bugs / Fixed bugs
77
 
4
  Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.6.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Upgrade Notice ==
69
 
70
+ = 2.6.7 =
71
  Cette version est stable / This version is stable
72
 
73
  == Changelog ==
74
 
75
+ = 2.6.7 =
76
+ * Réactivation de l'option page perso / Enabling the personal page option
77
+
78
  = 2.6.6 =
79
  * Correction de bugs / Fixed bugs
80
 
wp-maintenance-admin.php CHANGED
@@ -579,6 +579,15 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
579
  <div class="wpm-menu-options wpm-menu-group" style="display: none;">
580
  <div id="wpm-opt-options" >
581
  <ul>
 
 
 
 
 
 
 
 
 
582
  <?php
583
  /* Secure for demo mode */
584
  if ( current_user_can( 'manage_options' ) ) {
579
  <div class="wpm-menu-options wpm-menu-group" style="display: none;">
580
  <div id="wpm-opt-options" >
581
  <ul>
582
+ <!-- UTILISER UNE PAGE MAINTENANCE.PHP -->
583
+ <li><h3><?php _e('Theme maintenance page:', 'wp-maintenance'); ?></h3>
584
+ <?php _e('If you would use your maintenance.php page in your theme folder, click Yes.', 'wp-maintenance'); ?>&nbsp;<br /><br />
585
+ <input type= "radio" name="wp_maintenance_settings[pageperso]" value="1" <?php if($paramMMode['pageperso']==1) { echo ' checked'; } ?>>&nbsp;<?php _e('Yes', 'wp-maintenance'); ?>&nbsp;&nbsp;&nbsp;
586
+ <input type= "radio" name="wp_maintenance_settings[pageperso]" value="0" <?php if(!$paramMMode['pageperso'] or $paramMMode['pageperso']==0) { echo ' checked'; } ?>>&nbsp;<?php _e('No', 'wp-maintenance'); ?><br /><br />
587
+ <?php _e('You can use this shortcode to include Google Analytics code:', 'wp-maintenance'); ?> <input type="text" value="do_shortcode('[wpm_analytics']);" onclick="select()" style="width:250px;" /><br /><?php _e('You can use this shortcode to include Social Networks icons:', 'wp-maintenance'); ?> <input type="text" value="do_shortcode('[wpm_social]');" onclick="select()" style="width:250px;" /><br />
588
+ </li>
589
+ <li>&nbsp;</li>
590
+
591
  <?php
592
  /* Secure for demo mode */
593
  if ( current_user_can( 'manage_options' ) ) {
wp-maintenance.php CHANGED
@@ -6,7 +6,7 @@
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: https://wpmaintenance.shost.ca
9
- * Version: 2.6.6
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
@@ -75,7 +75,7 @@ function wpm_make_multilang() {
75
  }
76
 
77
  /* Ajoute la version dans les options */
78
- define('WPM_VERSION', '2.6.6');
79
  $option['wp_maintenance_version'] = WPM_VERSION;
80
  if( !get_option('wp_maintenance_version') ) {
81
  add_option('wp_maintenance_version', $option);
@@ -173,6 +173,7 @@ function wpm_add_admin() {
173
  'font_bottom_style' => '',
174
  'b_enable_image' => 0,
175
  'disable' => 0,
 
176
 
177
  );
178
  $getMaintenanceSettings = get_option('wp_maintenance_settings');
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: https://wpmaintenance.shost.ca
9
+ * Version: 2.6.7
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
75
  }
76
 
77
  /* Ajoute la version dans les options */
78
+ define('WPM_VERSION', '2.6.7');
79
  $option['wp_maintenance_version'] = WPM_VERSION;
80
  if( !get_option('wp_maintenance_version') ) {
81
  add_option('wp_maintenance_version', $option);
173
  'font_bottom_style' => '',
174
  'b_enable_image' => 0,
175
  'disable' => 0,
176
+ 'pageperso' => 0,
177
 
178
  );
179
  $getMaintenanceSettings = get_option('wp_maintenance_settings');