WP Maintenance - Version 5.0.1

Version Description

  • Fixed bug : mode preview page

=

Download this release

Release Info

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

Code changes from version 5.0.0 to 5.0.1

classes/wp-maintenance.php CHANGED
@@ -573,7 +573,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
573
  }
574
 
575
  }
576
-
577
  /* Désactive le mode maintenance pour les Roles définis */
578
  if(get_option('wp_maintenance_limit')) { extract(get_option('wp_maintenance_limit')); }
579
  $paramLimit = get_option('wp_maintenance_limit');
@@ -592,7 +592,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
592
  }
593
 
594
  /* Désactive le mode maintenance pour les PAGE ID définies */
595
- if( isset($paramMMode['id_pages']) ) {
596
  $listPageId = explode(',', $paramMMode['id_pages']);
597
  foreach($listPageId as $keyPageId => $valPageId) {
598
  if( $valPageId == get_the_ID() ) {
@@ -600,7 +600,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
600
  }
601
  }
602
  }
603
-
604
  /* On désactive le mode maintenance pour les admins */
605
  if( current_user_can('administrator') == true ) {
606
  $statusActive = 0;
573
  }
574
 
575
  }
576
+
577
  /* Désactive le mode maintenance pour les Roles définis */
578
  if(get_option('wp_maintenance_limit')) { extract(get_option('wp_maintenance_limit')); }
579
  $paramLimit = get_option('wp_maintenance_limit');
592
  }
593
 
594
  /* Désactive le mode maintenance pour les PAGE ID définies */
595
+ if( isset($paramMMode['id_pages']) && !empty($paramMMode['id_pages']) ) {
596
  $listPageId = explode(',', $paramMMode['id_pages']);
597
  foreach($listPageId as $keyPageId => $valPageId) {
598
  if( $valPageId == get_the_ID() ) {
600
  }
601
  }
602
  }
603
+
604
  /* On désactive le mode maintenance pour les admins */
605
  if( current_user_can('administrator') == true ) {
606
  $statusActive = 0;
images/default.png CHANGED
Binary file
languages/wp-maintenance-fr_FR.mo CHANGED
Binary file
languages/wp-maintenance-fr_FR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Maintenance\n"
4
  "POT-Creation-Date: 2018-08-18 20:19+0200\n"
5
- "PO-Revision-Date: 2018-08-18 20:22+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
@@ -86,7 +86,7 @@ msgstr "Général"
86
 
87
  #: classes/wp-maintenance.php:336 views/wp-maintenance-colors.php:41
88
  msgid "Colors & Fonts"
89
- msgstr "Coleurs & Polices"
90
 
91
  #: classes/wp-maintenance.php:340
92
  msgid "CountDown"
2
  msgstr ""
3
  "Project-Id-Version: WP Maintenance\n"
4
  "POT-Creation-Date: 2018-08-18 20:19+0200\n"
5
+ "PO-Revision-Date: 2018-08-20 22:31+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
86
 
87
  #: classes/wp-maintenance.php:336 views/wp-maintenance-colors.php:41
88
  msgid "Colors & Fonts"
89
+ msgstr "Couleurs & Polices"
90
 
91
  #: classes/wp-maintenance.php:340
92
  msgid "CountDown"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpmaintenance.info/a-propos/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 5.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,6 +67,11 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
67
 
68
  == Upgrade Notice ==
69
 
 
 
 
 
 
70
  = 5.0.0 =
71
  * Adding SEO settings
72
  * Adding preview page
@@ -74,8 +79,6 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
74
  * Fixed bug : auto slide & navigation button for slider
75
  * Fixed bug : disable the maintenance mode at the end of the countdown
76
 
77
- == Changelog ==
78
-
79
  = 4.0.4 =
80
  * Bug for roles and capacities fixed
81
 
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 5.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Upgrade Notice ==
69
 
70
+ = 5.0.1 =
71
+ * Fixed bug : mode preview page
72
+
73
+ == Changelog ==
74
+
75
  = 5.0.0 =
76
  * Adding SEO settings
77
  * Adding preview page
79
  * Fixed bug : auto slide & navigation button for slider
80
  * Fixed bug : disable the maintenance mode at the end of the countdown
81
 
 
 
82
  = 4.0.4 =
83
  * Bug for roles and capacities fixed
84
 
views/wp-maintenance-picture.php CHANGED
@@ -85,6 +85,7 @@ function toggleTable(texte) {
85
  <?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
86
  <?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" />
87
  <?php } ?>
 
88
  </div>
89
  <div class="clear"></div>
90
  </div>
85
  <?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
86
  <?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" />
87
  <?php } ?>
88
+ <?php if( isset($paramMMode['image']) && $paramMMode['image'] == WP_PLUGIN_URL.'/wp-maintenance/images/default.png' ) { ?><a href="https://fr.pngtree.com/freepng/cartoon-three---dimensional-square-cone-roadblock-vector-png_3258591.html" target="_blank" style="color:#ccc;text-decoration:none;"><small>Graphiques de pngtree.com</small></a><?php } ?>
89
  </div>
90
  <div class="clear"></div>
91
  </div>
views/wp-maintenance-settings.php CHANGED
@@ -182,7 +182,7 @@ jQuery(document).ready(function() {
182
  </p>
183
  <p>
184
  <?php wp_nonce_field( 'wpm_export_nonce', 'wpm_export_nonce' ); ?>
185
- <?php submit_button( __( 'Export', 'wp-maintenance' ), 'secondary', 'submit', false ); ?>
186
  </p>
187
  </form>
188
  </div>
@@ -199,7 +199,7 @@ jQuery(document).ready(function() {
199
  <p>
200
  <input type="hidden" name="wpm_action" value="import_settings" />
201
  <?php wp_nonce_field( 'wpm_import_nonce', 'wpm_import_nonce' ); ?>
202
- <?php submit_button( __( 'Import', 'wp-maintenance' ), 'secondary', 'submit', false ); ?>
203
  </p>
204
  </form>
205
  </div>
182
  </p>
183
  <p>
184
  <?php wp_nonce_field( 'wpm_export_nonce', 'wpm_export_nonce' ); ?>
185
+ <?php submit_button( __( 'Export', 'wp-maintenance' ), 'button button-primary', 'submit', false ); ?>
186
  </p>
187
  </form>
188
  </div>
199
  <p>
200
  <input type="hidden" name="wpm_action" value="import_settings" />
201
  <?php wp_nonce_field( 'wpm_import_nonce', 'wpm_import_nonce' ); ?>
202
+ <?php submit_button( __( 'Import', 'wp-maintenance' ), 'button button-primary', 'submit', false ); ?>
203
  </p>
204
  </form>
205
  </div>
wp-maintenance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: 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...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://wpmaintenance.info
8
- * Version: 5.0.0
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
@@ -36,7 +36,7 @@ define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
- if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '5.0.0' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';
5
  * Description: 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...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://wpmaintenance.info
8
+ * Version: 5.0.1
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
+ if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '5.0.1' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';