Version Description
This version is stable
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 2.8 |
Comparing to | |
See all releases |
Code changes from version 2.7.9 to 2.8
- readme.txt +6 -3
- uninstall.php +2 -0
- wp-maintenance-admin.php +20 -1
- wp-maintenance.php +5 -2
- wpm_fonctions.php +3 -0
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Florent73
|
|
3 |
Donate link: http://wpmaintenance.info/
|
4 |
Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -49,11 +49,14 @@ Yes. Thank you for submitting your changes to update the plugin.
|
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
52 |
-
= 2.
|
53 |
This version is stable
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
57 |
= 2.7.9 =
|
58 |
* Add container for title & text
|
59 |
|
3 |
Donate link: http://wpmaintenance.info/
|
4 |
Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 2.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
52 |
+
= 2.8 =
|
53 |
This version is stable
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 2.8 =
|
58 |
+
* Add ABSPATH security and ajust date/time by default on the countdown
|
59 |
+
|
60 |
= 2.7.9 =
|
61 |
* Add container for title & text
|
62 |
|
uninstall.php
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
/**
|
4 |
* Désinstallation du plugin WP Maintenance
|
5 |
*/
|
1 |
<?php
|
2 |
|
3 |
+
defined( 'ABSPATH' )
|
4 |
+
or die( 'No direct load ! ' );
|
5 |
/**
|
6 |
* Désinstallation du plugin WP Maintenance
|
7 |
*/
|
wp-maintenance-admin.php
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
|
4 |
if(!defined('WPM_PLUGIN_URL')) { define('WPM_PLUGIN_URL', WP_CONTENT_URL.'/plugins/wp-maintenance/'); }
|
5 |
if(!defined('WPM_ICONS_URL')) { define('WPM_ICONS_URL', WP_CONTENT_URL.'/plugins/wp-maintenance/socialicons/'); }
|
@@ -619,7 +621,24 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
619 |
?>
|
620 |
<li><h3><?php _e('Enable a countdown ?', 'wp-maintenance'); ?></h3>
|
621 |
<input type= "checkbox" name="wp_maintenance_settings[active_cpt]" value="1" <?php if( isset($paramMMode['active_cpt']) && $paramMMode['active_cpt']==1 ) { echo ' checked'; } ?>> <?php _e('Yes', 'wp-maintenance'); ?><br /><br />
|
622 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
<div id="wpmdatecontainer"></div>
|
624 |
<br /><br />
|
625 |
<input type= "checkbox" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if( isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>> <?php _e('Enable seconds ?', 'wp-maintenance'); ?><br /><br />
|
1 |
<?php
|
2 |
|
3 |
+
defined( 'ABSPATH' )
|
4 |
+
or die( 'No direct load ! ' );
|
5 |
|
6 |
if(!defined('WPM_PLUGIN_URL')) { define('WPM_PLUGIN_URL', WP_CONTENT_URL.'/plugins/wp-maintenance/'); }
|
7 |
if(!defined('WPM_ICONS_URL')) { define('WPM_ICONS_URL', WP_CONTENT_URL.'/plugins/wp-maintenance/socialicons/'); }
|
621 |
?>
|
622 |
<li><h3><?php _e('Enable a countdown ?', 'wp-maintenance'); ?></h3>
|
623 |
<input type= "checkbox" name="wp_maintenance_settings[active_cpt]" value="1" <?php if( isset($paramMMode['active_cpt']) && $paramMMode['active_cpt']==1 ) { echo ' checked'; } ?>> <?php _e('Yes', 'wp-maintenance'); ?><br /><br />
|
624 |
+
<?php
|
625 |
+
if( isset($paramMMode['cptdate']) && !empty($paramMMode['cptdate']) ) {
|
626 |
+
$startDate = $paramMMode['cptdate'];
|
627 |
+
}
|
628 |
+
if( isset($paramMMode['cpttime']) && !empty($paramMMode['cpttime']) ) {
|
629 |
+
$startHour = $paramMMode['cpttime'];
|
630 |
+
}
|
631 |
+
if( isset($paramMMode['active_cpt']) && $paramMMode['active_cpt']==0 ) {
|
632 |
+
$startDate = date_i18n( date("Y").'/'.date("m").'/'.date("d") );
|
633 |
+
$timeFormats = array_unique( apply_filters( 'time_formats', array( 'H:i' ) ) );
|
634 |
+
foreach ( $timeFormats as $format ) {
|
635 |
+
$startHour = date_i18n( $format );
|
636 |
+
}
|
637 |
+
$newMin = explode(':', $startHour);
|
638 |
+
$startHour = $newMin[0].':'.ceil($newMin[1]/5)*5;
|
639 |
+
}
|
640 |
+
?>
|
641 |
+
<small><?php _e('Select the launch date/time', 'wp-maintenance'); ?></small><br /><img src="<?php echo WP_PLUGIN_URL.'/wp-maintenance/images/schedule_clock.png'; ?>" class="datepicker" width="48" height="48" style="vertical-align: middle;margin-right:5px;"> <input id="cptdate" class="datepicker" name="wp_maintenance_settings[cptdate]" type="text" autofocuss data-value="<?php echo $startDate; ?>"> à <input id="cpttime" class="timepicker" type="time" name="wp_maintenance_settings[cpttime]" value="<?php echo $startHour; ?>" size="4" autofocuss>
|
642 |
<div id="wpmdatecontainer"></div>
|
643 |
<br /><br />
|
644 |
<input type= "checkbox" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if( isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>> <?php _e('Enable seconds ?', 'wp-maintenance'); ?><br /><br />
|
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://wpmaintenance.info
|
9 |
-
* Version: 2.
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
@@ -56,6 +56,9 @@ Change Log
|
|
56 |
24/01/2013 - Création du Plugin
|
57 |
*/
|
58 |
|
|
|
|
|
|
|
59 |
if(!defined('WP_CONTENT_URL')) { define('WP_CONTENT_URL', get_option( 'siteurl') . '/wp-content'); }
|
60 |
if(!defined('WP_CONTENT_DIR')) { define('WP_CONTENT_DIR', ABSPATH . 'wp-content'); }
|
61 |
if(!defined('WP_PLUGIN_URL')) { define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins'); }
|
@@ -93,7 +96,7 @@ function wpm_make_multilang() {
|
|
93 |
}
|
94 |
|
95 |
/* Ajoute la version dans les options */
|
96 |
-
define('WPM_VERSION', '2.
|
97 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
98 |
if( !get_option('wp_maintenance_version') ) {
|
99 |
add_option('wp_maintenance_version', $option);
|
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://wpmaintenance.info
|
9 |
+
* Version: 2.8
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
56 |
24/01/2013 - Création du Plugin
|
57 |
*/
|
58 |
|
59 |
+
defined( 'ABSPATH' )
|
60 |
+
or die( 'No direct load ! ' );
|
61 |
+
|
62 |
if(!defined('WP_CONTENT_URL')) { define('WP_CONTENT_URL', get_option( 'siteurl') . '/wp-content'); }
|
63 |
if(!defined('WP_CONTENT_DIR')) { define('WP_CONTENT_DIR', ABSPATH . 'wp-content'); }
|
64 |
if(!defined('WP_PLUGIN_URL')) { define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins'); }
|
96 |
}
|
97 |
|
98 |
/* Ajoute la version dans les options */
|
99 |
+
define('WPM_VERSION', '2.8');
|
100 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
101 |
if( !get_option('wp_maintenance_version') ) {
|
102 |
add_option('wp_maintenance_version', $option);
|
wpm_fonctions.php
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
3 |
function wpm_getFontsTab() {
|
4 |
return array("Abel", "Abril Fatface", "Aclonica", "Acme", "Actor", "Adamina", "Advent Pro",
|
5 |
"Aguafina Script", "Aladin", "Aldrich", "Alegreya", "Alegreya SC", "Alex Brush", "Alfa Slab One", "Alice",
|
1 |
<?php
|
2 |
|
3 |
+
defined( 'ABSPATH' )
|
4 |
+
or die( 'No direct load ! ' );
|
5 |
+
|
6 |
function wpm_getFontsTab() {
|
7 |
return array("Abel", "Abril Fatface", "Aclonica", "Acme", "Actor", "Adamina", "Advent Pro",
|
8 |
"Aguafina Script", "Aladin", "Aldrich", "Alegreya", "Alegreya SC", "Alex Brush", "Alfa Slab One", "Alice",
|