Version Description
Cette version est stable / This version is stable
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 2.4 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.4
- readme.txt +6 -3
- wp-maintenance.php +38 -16
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
Contributors: Florent73
|
3 |
Donate link:
|
4 |
Tags: wordpress maintenance plugin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 2.
|
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 |
-
= 2.
|
69 |
Cette version est stable / This version is stable
|
70 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
74 |
= 2.3 =
|
75 |
* Résolution d'un bug sur tailles des icônes sociaux et sur l'acivation de page maintenance.php du thème / Fixed a bug on sizes of social icons on the theme of maintenance.php page acivation
|
76 |
|
1 |
+
=== Plugin Name ===
|
2 |
Contributors: Florent73
|
3 |
Donate link:
|
4 |
Tags: wordpress maintenance plugin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
+
= 2.4 =
|
69 |
Cette version est stable / This version is stable
|
70 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 2.4 =
|
75 |
+
* Résolution de divers bugs CSS / Fixed various CSS bugs
|
76 |
+
|
77 |
= 2.3 =
|
78 |
* Résolution d'un bug sur tailles des icônes sociaux et sur l'acivation de page maintenance.php du thème / Fixed a bug on sizes of social icons on the theme of maintenance.php page acivation
|
79 |
|
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: http://www.restezconnectes.fr/
|
9 |
-
* Version: 2.
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
@@ -14,6 +14,7 @@
|
|
14 |
|
15 |
/*
|
16 |
Change Log
|
|
|
17 |
04/12/2014 - Ajout d'une notification dans la barre d'admin / Résolution de divers bug CSS
|
18 |
03/12/2014 - Correction d'une notice sur un argument déprécié
|
19 |
09/08/2014 - Ajout de Fonts et Styles
|
@@ -65,7 +66,7 @@ function wpm_make_multilang() {
|
|
65 |
}
|
66 |
|
67 |
/* Ajoute la version dans les options */
|
68 |
-
define('WPM_VERSION', '2.
|
69 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
70 |
if( !get_option('wp_maintenance_version') ) {
|
71 |
add_option('wp_maintenance_version', $option);
|
@@ -238,6 +239,10 @@ function wpm_social_shortcode( $atts ) {
|
|
238 |
$paramSocial = get_option('wp_maintenance_social');
|
239 |
$paramSocialOption = get_option('wp_maintenance_social_options');
|
240 |
$countSocial = wpm_array_value_count($paramSocial);
|
|
|
|
|
|
|
|
|
241 |
|
242 |
// Attributes
|
243 |
extract( shortcode_atts(
|
@@ -372,14 +377,14 @@ function wpm_maintenance_mode() {
|
|
372 |
$optionBackground = 'background-attachment:fixed;';
|
373 |
}
|
374 |
$addBImage = '
|
375 |
-
|
376 |
background:url('.$paramMMode['b_image'].') '.$paramMMode['b_repeat_image'].';'.$optionBackground.'padding:0;margin:0;
|
377 |
background-size: cover;
|
378 |
}';
|
379 |
}
|
380 |
if($paramMMode['b_pattern']>0 && $paramMMode['b_enable_image']==1) {
|
381 |
$addBImage = '
|
382 |
-
|
383 |
background:url('.WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$paramMMode['b_pattern'].'.png) '.$paramMMode['b_repeat_image'].' '.$paramMMode['color_bg'].';padding:0;margin:0;
|
384 |
}';
|
385 |
}
|
@@ -459,6 +464,7 @@ body {
|
|
459 |
font-style: '.$paramMMode['font_title_style'].';
|
460 |
font-weight: '.$paramMMode['font_title_weigth'].';
|
461 |
font-family: '.$paramMMode['font_title'].', serif;
|
|
|
462 |
}
|
463 |
#main #intro p {
|
464 |
font-family: '.$paramMMode['font_text'].', serif;
|
@@ -489,28 +495,41 @@ body {
|
|
489 |
#cptR-days-span, #cptR-hours-span, #cptR-minutes-span, #cptR-seconds-span {
|
490 |
font-size: 8px;
|
491 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
}
|
493 |
</style>
|
494 |
'.do_shortcode('[wpm_analytics enable="'.$paramMMode['analytics'].'"]').'
|
495 |
</head>
|
496 |
<body>';
|
|
|
|
|
497 |
if($paramSocialOption['position']=='top') {
|
498 |
$content .= do_shortcode('[wpm_social]');
|
499 |
}
|
500 |
-
$
|
501 |
-
if($paramMMode['image']) {
|
502 |
$content .= '
|
503 |
<div id="header" class="full">
|
504 |
<div id="logo"><img src="'.$paramMMode['image'].'" '.$attr.' /></div>
|
505 |
</div>
|
506 |
';
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
$content .='
|
515 |
<div style="margin-left:auto;margin-right:auto;text-align: center;margin-top:30px;">
|
516 |
<script language="JavaScript">
|
@@ -536,7 +555,7 @@ body {
|
|
536 |
</div>';
|
537 |
}
|
538 |
if($paramMMode['newletter']==1 && $paramMMode['code_newletter']!='') {
|
539 |
-
$content .= '<div class="wpm_newletter">'.do_shortcode(stripslashes($paramMMode['code_newletter'])).'</div>';
|
540 |
}
|
541 |
|
542 |
|
@@ -547,10 +566,13 @@ body {
|
|
547 |
if($paramSocialOption['position']=='bottom') {
|
548 |
$content .= do_shortcode('[wpm_social]');
|
549 |
}
|
550 |
-
|
|
|
|
|
|
|
551 |
$content .= '<div id="wpm_footer"><div class="clear"><p class="wpm_copyright">'.stripslashes($paramMMode['text_bt_maintenance']).'</p></div></div>';
|
552 |
}
|
553 |
-
$content .='
|
554 |
</body>
|
555 |
</html>';
|
556 |
}
|
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: 2.4
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
14 |
|
15 |
/*
|
16 |
Change Log
|
17 |
+
07/03/2015 - Résolution de divers bug CSS
|
18 |
04/12/2014 - Ajout d'une notification dans la barre d'admin / Résolution de divers bug CSS
|
19 |
03/12/2014 - Correction d'une notice sur un argument déprécié
|
20 |
09/08/2014 - Ajout de Fonts et Styles
|
66 |
}
|
67 |
|
68 |
/* Ajoute la version dans les options */
|
69 |
+
define('WPM_VERSION', '2.4');
|
70 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
71 |
if( !get_option('wp_maintenance_version') ) {
|
72 |
add_option('wp_maintenance_version', $option);
|
239 |
$paramSocial = get_option('wp_maintenance_social');
|
240 |
$paramSocialOption = get_option('wp_maintenance_social_options');
|
241 |
$countSocial = wpm_array_value_count($paramSocial);
|
242 |
+
// Si on est en mobile on réduite les icones
|
243 |
+
if ( wp_is_mobile() ) {
|
244 |
+
$paramSocialOption['size'] = 32;
|
245 |
+
}
|
246 |
|
247 |
// Attributes
|
248 |
extract( shortcode_atts(
|
377 |
$optionBackground = 'background-attachment:fixed;';
|
378 |
}
|
379 |
$addBImage = '
|
380 |
+
body {
|
381 |
background:url('.$paramMMode['b_image'].') '.$paramMMode['b_repeat_image'].';'.$optionBackground.'padding:0;margin:0;
|
382 |
background-size: cover;
|
383 |
}';
|
384 |
}
|
385 |
if($paramMMode['b_pattern']>0 && $paramMMode['b_enable_image']==1) {
|
386 |
$addBImage = '
|
387 |
+
body {
|
388 |
background:url('.WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$paramMMode['b_pattern'].'.png) '.$paramMMode['b_repeat_image'].' '.$paramMMode['color_bg'].';padding:0;margin:0;
|
389 |
}';
|
390 |
}
|
464 |
font-style: '.$paramMMode['font_title_style'].';
|
465 |
font-weight: '.$paramMMode['font_title_weigth'].';
|
466 |
font-family: '.$paramMMode['font_title'].', serif;
|
467 |
+
line-height: '.($paramMMode['font_text_size']*0.9).'px;
|
468 |
}
|
469 |
#main #intro p {
|
470 |
font-family: '.$paramMMode['font_text'].', serif;
|
495 |
#cptR-days-span, #cptR-hours-span, #cptR-minutes-span, #cptR-seconds-span {
|
496 |
font-size: 8px;
|
497 |
}
|
498 |
+
#main #intro h3 {
|
499 |
+
font-size: '.($paramMMode['font_title_size']*0.5).'px;
|
500 |
+
line-height: '.($paramMMode['font_text_size']*0.1).'px;
|
501 |
+
}
|
502 |
+
#main #intro p {
|
503 |
+
font-size: '.($paramMMode['font_text_size']*0.5).'px;
|
504 |
+
line-height: '.($paramMMode['font_text_size']*0.1).'px;
|
505 |
+
}
|
506 |
+
.wpm_copyright {
|
507 |
+
font-size: '.($paramMMode['font_bottom_size']*0.8).'px;
|
508 |
+
}
|
509 |
+
|
510 |
}
|
511 |
</style>
|
512 |
'.do_shortcode('[wpm_analytics enable="'.$paramMMode['analytics'].'"]').'
|
513 |
</head>
|
514 |
<body>';
|
515 |
+
|
516 |
+
$content .= '<div id="wrapper">';
|
517 |
if($paramSocialOption['position']=='top') {
|
518 |
$content .= do_shortcode('[wpm_social]');
|
519 |
}
|
520 |
+
if($paramMMode['image']) {
|
|
|
521 |
$content .= '
|
522 |
<div id="header" class="full">
|
523 |
<div id="logo"><img src="'.$paramMMode['image'].'" '.$attr.' /></div>
|
524 |
</div>
|
525 |
';
|
526 |
+
}
|
527 |
+
$content .= '
|
528 |
+
<div id="content" class="full">
|
529 |
+
<div id="main">';
|
530 |
+
$content .= '
|
531 |
+
<div id="intro" class="block"><h3>'.stripslashes($paramMMode['titre_maintenance']).'</h3><p>'.stripslashes($paramMMode['text_maintenance']).'</p></div>';
|
532 |
+
if( isset($paramMMode['message_cpt_fin']) && $paramMMode['message_cpt_fin']!='' && $paramMMode['date_cpt_aa']!='' && $paramMMode['active_cpt']==1) {
|
533 |
$content .='
|
534 |
<div style="margin-left:auto;margin-right:auto;text-align: center;margin-top:30px;">
|
535 |
<script language="JavaScript">
|
555 |
</div>';
|
556 |
}
|
557 |
if($paramMMode['newletter']==1 && $paramMMode['code_newletter']!='') {
|
558 |
+
$content .= '<div class="wpm_newletter">'.do_shortcode(stripslashes($paramMMode['code_newletter'])).'</div><div class="clear"> </div>';
|
559 |
}
|
560 |
|
561 |
|
566 |
if($paramSocialOption['position']=='bottom') {
|
567 |
$content .= do_shortcode('[wpm_social]');
|
568 |
}
|
569 |
+
|
570 |
+
$content .='</div><!-- div wrapper -->';
|
571 |
+
|
572 |
+
if($paramMMode['text_bt_maintenance']!='') {
|
573 |
$content .= '<div id="wpm_footer"><div class="clear"><p class="wpm_copyright">'.stripslashes($paramMMode['text_bt_maintenance']).'</p></div></div>';
|
574 |
}
|
575 |
+
$content .= '
|
576 |
</body>
|
577 |
</html>';
|
578 |
}
|