WP Maintenance - Version 2.6.6

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.6
Comparing to
See all releases

Code changes from version 2.6.4 to 2.6.6

languages/wp-maintenance-fr_FR.mo CHANGED
Binary file
languages/wp-maintenance-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Maintenance\n"
4
- "POT-Creation-Date: 2015-09-17 12:56+0200\n"
5
- "PO-Revision-Date: 2015-09-17 12:56+0200\n"
6
  "Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
7
  "Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
8
  "Language: fr\n"
@@ -49,7 +49,7 @@ msgstr "Compte à rebours"
49
  msgid "CSS Style"
50
  msgstr "Style CSS"
51
 
52
- #: wp-maintenance-admin.php:107 wp-maintenance.php:65
53
  msgid "Settings"
54
  msgstr "Réglages"
55
 
@@ -482,39 +482,47 @@ msgstr "Si vous avez trouvé ce plugin utile,"
482
  msgid "give it 5 &#9733; on WordPress.org"
483
  msgstr "donnez-lui 5 &#9733; sur WordPress.org"
484
 
485
- #: wp-maintenance.php:134 wp-maintenance.php:135
 
 
 
 
486
  msgid "This site is down for maintenance"
487
  msgstr "Ce site est en maintenance"
488
 
489
- #: wp-maintenance.php:182 wp-maintenance.php:184
 
 
 
 
490
  msgid "Options for the maintenance page"
491
  msgstr "Options pour la page maintenance"
492
 
493
- #: wp-maintenance.php:204
494
  msgid "Choose This Image"
495
  msgstr "Choisir cette image"
496
 
497
- #: wp-maintenance.php:205
498
  msgid "Choose Image"
499
  msgstr "Choisissez une image"
500
 
501
- #: wp-maintenance.php:462
502
  msgid "Dashboard"
503
  msgstr "Tableau de bord"
504
 
505
- #: wp-maintenance.php:537
506
  msgid "Days"
507
  msgstr "Jours"
508
 
509
- #: wp-maintenance.php:537
510
  msgid "Hours"
511
  msgstr "Heures"
512
 
513
- #: wp-maintenance.php:537
514
  msgid "Minutes"
515
  msgstr "Minutes"
516
 
517
- #: wp-maintenance.php:539
518
  msgid "Seconds"
519
  msgstr "Secondes"
520
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Maintenance\n"
4
+ "POT-Creation-Date: 2015-09-24 18:28+0200\n"
5
+ "PO-Revision-Date: 2015-09-24 18:28+0200\n"
6
  "Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
7
  "Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
8
  "Language: fr\n"
49
  msgid "CSS Style"
50
  msgstr "Style CSS"
51
 
52
+ #: wp-maintenance-admin.php:107 wp-maintenance.php:66
53
  msgid "Settings"
54
  msgstr "Réglages"
55
 
482
  msgid "give it 5 &#9733; on WordPress.org"
483
  msgstr "donnez-lui 5 &#9733; sur WordPress.org"
484
 
485
+ #: wp-maintenance.php:103
486
+ msgid "Maintenance mode activated!"
487
+ msgstr "Maintenance activée !"
488
+
489
+ #: wp-maintenance.php:135
490
  msgid "This site is down for maintenance"
491
  msgstr "Ce site est en maintenance"
492
 
493
+ #: wp-maintenance.php:136
494
+ msgid "Come back quickly !"
495
+ msgstr "Revenez vite nous voir !"
496
+
497
+ #: wp-maintenance.php:193 wp-maintenance.php:195
498
  msgid "Options for the maintenance page"
499
  msgstr "Options pour la page maintenance"
500
 
501
+ #: wp-maintenance.php:215
502
  msgid "Choose This Image"
503
  msgstr "Choisir cette image"
504
 
505
+ #: wp-maintenance.php:216
506
  msgid "Choose Image"
507
  msgstr "Choisissez une image"
508
 
509
+ #: wp-maintenance.php:473
510
  msgid "Dashboard"
511
  msgstr "Tableau de bord"
512
 
513
+ #: wp-maintenance.php:548
514
  msgid "Days"
515
  msgstr "Jours"
516
 
517
+ #: wp-maintenance.php:548
518
  msgid "Hours"
519
  msgstr "Heures"
520
 
521
+ #: wp-maintenance.php:548
522
  msgid "Minutes"
523
  msgstr "Minutes"
524
 
525
+ #: wp-maintenance.php:550
526
  msgid "Seconds"
527
  msgstr "Secondes"
528
 
languages/wp-maintenance.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP Maintenance\n"
5
- "POT-Creation-Date: 2015-09-17 12:56+0200\n"
6
  "PO-Revision-Date: 2015-03-19 11:19+0100\n"
7
  "Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
8
  "Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
@@ -49,7 +49,7 @@ msgstr ""
49
  msgid "CSS Style"
50
  msgstr ""
51
 
52
- #: wp-maintenance-admin.php:107 wp-maintenance.php:65
53
  msgid "Settings"
54
  msgstr ""
55
 
@@ -461,38 +461,46 @@ msgstr ""
461
  msgid "give it 5 &#9733; on WordPress.org"
462
  msgstr ""
463
 
464
- #: wp-maintenance.php:134 wp-maintenance.php:135
 
 
 
 
465
  msgid "This site is down for maintenance"
466
  msgstr ""
467
 
468
- #: wp-maintenance.php:182 wp-maintenance.php:184
 
 
 
 
469
  msgid "Options for the maintenance page"
470
  msgstr ""
471
 
472
- #: wp-maintenance.php:204
473
  msgid "Choose This Image"
474
  msgstr ""
475
 
476
- #: wp-maintenance.php:205
477
  msgid "Choose Image"
478
  msgstr ""
479
 
480
- #: wp-maintenance.php:462
481
  msgid "Dashboard"
482
  msgstr ""
483
 
484
- #: wp-maintenance.php:537
485
  msgid "Days"
486
  msgstr ""
487
 
488
- #: wp-maintenance.php:537
489
  msgid "Hours"
490
  msgstr ""
491
 
492
- #: wp-maintenance.php:537
493
  msgid "Minutes"
494
  msgstr ""
495
 
496
- #: wp-maintenance.php:539
497
  msgid "Seconds"
498
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP Maintenance\n"
5
+ "POT-Creation-Date: 2015-09-24 18:28+0200\n"
6
  "PO-Revision-Date: 2015-03-19 11:19+0100\n"
7
  "Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
8
  "Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
49
  msgid "CSS Style"
50
  msgstr ""
51
 
52
+ #: wp-maintenance-admin.php:107 wp-maintenance.php:66
53
  msgid "Settings"
54
  msgstr ""
55
 
461
  msgid "give it 5 &#9733; on WordPress.org"
462
  msgstr ""
463
 
464
+ #: wp-maintenance.php:103
465
+ msgid "Maintenance mode activated!"
466
+ msgstr ""
467
+
468
+ #: wp-maintenance.php:135
469
  msgid "This site is down for maintenance"
470
  msgstr ""
471
 
472
+ #: wp-maintenance.php:136
473
+ msgid "Come back quickly !"
474
+ msgstr ""
475
+
476
+ #: wp-maintenance.php:193 wp-maintenance.php:195
477
  msgid "Options for the maintenance page"
478
  msgstr ""
479
 
480
+ #: wp-maintenance.php:215
481
  msgid "Choose This Image"
482
  msgstr ""
483
 
484
+ #: wp-maintenance.php:216
485
  msgid "Choose Image"
486
  msgstr ""
487
 
488
+ #: wp-maintenance.php:473
489
  msgid "Dashboard"
490
  msgstr ""
491
 
492
+ #: wp-maintenance.php:548
493
  msgid "Days"
494
  msgstr ""
495
 
496
+ #: wp-maintenance.php:548
497
  msgid "Hours"
498
  msgstr ""
499
 
500
+ #: wp-maintenance.php:548
501
  msgid "Minutes"
502
  msgstr ""
503
 
504
+ #: wp-maintenance.php:550
505
  msgid "Seconds"
506
  msgstr ""
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.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,11 +67,17 @@ Oui mais merci de me soumettre les modifications souhaitées afin de mettre à j
67
 
68
  == Upgrade Notice ==
69
 
70
- = 2.6.4 =
71
  Cette version est stable / This version is stable
72
 
73
  == Changelog ==
74
 
 
 
 
 
 
 
75
  = 2.6.4 =
76
  * Ajout d'un lien vers le tableau de bord en bas de page / Add a link for dashboard access in the bottom
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.6
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.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
+
78
+ = 2.6.5 =
79
+ * Correction de bugs / Fixed bugs
80
+
81
  = 2.6.4 =
82
  * Ajout d'un lien vers le tableau de bord en bas de page / Add a link for dashboard access in the bottom
83
 
wp-maintenance-admin.php CHANGED
@@ -579,15 +579,6 @@ 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
- <!-- 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' ) ) {
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' ) ) {
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.4
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.4');
79
  $option['wp_maintenance_version'] = WPM_VERSION;
80
  if( !get_option('wp_maintenance_version') ) {
81
  add_option('wp_maintenance_version', $option);
@@ -95,24 +95,24 @@ function wpm_admin_head() {
95
  add_action('admin_head', 'wpm_admin_head');
96
 
97
  /* Ajout Notification admin barre */
98
- function wpm_add_menu_admin_bar() {
99
- global $wp_admin_bar;
100
 
101
  $checkActive = get_option('wp_maintenance_active');
102
  if(isset($checkActive) && $checkActive==1) {
103
- $textAdmin = '<img src="'.WP_PLUGIN_URL.'/wp-maintenance/images/lock.png" style="padding: 6px 0;float:left;margin-right: 6px;">Mode maintenance activé';
104
-
105
- $wp_admin_bar->add_menu(array(
106
- 'title' => $textAdmin, // Titre du menu
107
  'href' => WPM_SETTINGS, // Lien du menu
 
108
  'meta' => array(
109
  'class' => 'wpmbackground'
110
  )
111
- /*'parent' => "wp-logo", // Parent du menu*/
112
- ));
113
- }
114
  }
115
- add_action('admin_bar_menu', 'wpm_add_menu_admin_bar', 999);
116
 
117
  /* Liste les différents Rôles */
118
  function wpm_get_roles() {
@@ -133,7 +133,7 @@ function wpm_add_admin() {
133
  'color_bg_bottom' => '#333333',
134
  'color_text_bottom' => '#FFFFFF',
135
  'titre_maintenance' => __('This site is down for maintenance', 'wp-maintenance'),
136
- 'text_maintenance' => __('This site is down for maintenance', 'wp-maintenance'),
137
  'userlimit' => 'administrator',
138
  'image' => WP_PLUGIN_URL.'/wp-maintenance/images/default.png',
139
  'font_title' => 'Acme',
@@ -163,6 +163,16 @@ function wpm_add_admin() {
163
  'code_analytics' => '',
164
  'domain_analytics' => $_SERVER['SERVER_NAME'],
165
  'text_bt_maintenance' => '',
 
 
 
 
 
 
 
 
 
 
166
 
167
  );
168
  $getMaintenanceSettings = get_option('wp_maintenance_settings');
@@ -477,7 +487,7 @@ function wpm_maintenance_mode() {
477
  $wysijaStyle = '/* no WYSIJA Style */';
478
  if($paramMMode['newletter']==1 && $paramMMode['code_newletter']!='') {
479
  $nameNl = strpos($paramMMode['code_newletter'], 'wysija_form');
480
- if($nameNl===true) {
481
  //$wysijaStyle = 'STYLEOK';
482
  $wysijaRemplacements = array (
483
  "#_COLORTXT" => $paramMMode['color_field_text'],
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
  }
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);
95
  add_action('admin_head', 'wpm_admin_head');
96
 
97
  /* Ajout Notification admin barre */
98
+ add_action( 'admin_bar_menu', 'wpm_add_menu_admin_bar', 999 );
99
+ function wpm_add_menu_admin_bar( $wp_admin_bar ) {
100
 
101
  $checkActive = get_option('wp_maintenance_active');
102
  if(isset($checkActive) && $checkActive==1) {
103
+ $textAdmin = '<img src="'.WP_PLUGIN_URL.'/wp-maintenance/images/lock.png" style="padding: 6px 0;float:left;margin-right: 6px;">'.__('Maintenance mode activated!', 'wp-maintenance');
104
+ $args = array(
105
+ 'id' => 'wpm-info', // id of the existing child node (New > Post)
106
+ 'title' => $textAdmin, // alter the title of existing node
107
  'href' => WPM_SETTINGS, // Lien du menu
108
+ 'parent' => false, // set parent to false to make it a top level (parent) node
109
  'meta' => array(
110
  'class' => 'wpmbackground'
111
  )
112
+ );
113
+ $wp_admin_bar->add_node( $args );
114
+ }
115
  }
 
116
 
117
  /* Liste les différents Rôles */
118
  function wpm_get_roles() {
133
  'color_bg_bottom' => '#333333',
134
  'color_text_bottom' => '#FFFFFF',
135
  'titre_maintenance' => __('This site is down for maintenance', 'wp-maintenance'),
136
+ 'text_maintenance' => __('Come back quickly !', 'wp-maintenance'),
137
  'userlimit' => 'administrator',
138
  'image' => WP_PLUGIN_URL.'/wp-maintenance/images/default.png',
139
  'font_title' => 'Acme',
163
  'code_analytics' => '',
164
  'domain_analytics' => $_SERVER['SERVER_NAME'],
165
  'text_bt_maintenance' => '',
166
+ 'add_wplogin' => '',
167
+ 'newletter' => '',
168
+ 'active_cpt' => 0,
169
+ 'newletter_size' => 18,
170
+ 'newletter_font_weigth' => 'normal',
171
+ 'font_title_style' => '',
172
+ 'font_text_style' => '',
173
+ 'font_bottom_style' => '',
174
+ 'b_enable_image' => 0,
175
+ 'disable' => 0,
176
 
177
  );
178
  $getMaintenanceSettings = get_option('wp_maintenance_settings');
487
  $wysijaStyle = '/* no WYSIJA Style */';
488
  if($paramMMode['newletter']==1 && $paramMMode['code_newletter']!='') {
489
  $nameNl = strpos($paramMMode['code_newletter'], 'wysija_form');
490
+ if($nameNl==1) {
491
  //$wysijaStyle = 'STYLEOK';
492
  $wysijaRemplacements = array (
493
  "#_COLORTXT" => $paramMMode['color_field_text'],