Version Description
= 3.0.5 = This version is stable
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- css/wpm-admin.css +1 -1
- includes/functions.php +1 -3
- includes/shortcodes.php +12 -3
- readme.txt +2 -2
- views/wp-maintenance-colors.php +1 -1
- views/wp-maintenance-countdown.php +1 -1
- views/wp-maintenance-css.php +1 -1
- views/wp-maintenance-dashboard.php +1 -1
- views/wp-maintenance-picture.php +1 -1
- views/wp-maintenance-settings.php +1 -1
- wp-maintenance.php +2 -2
css/wpm-admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.switch-field label,.wpmclassname{display:inline-block;text-align:center}body#tinymce.wp-editor{font-size:.9rem;margin:10px;max-width:100%}.switch-field{font-family:"Lucida Grande",Tahoma,Verdana,sans-serif;padding-top:5px;padding-bottom:10px;overflow:hidden;width:180px;margin-left:auto}.switch-title{margin-bottom:6px}.switch-field input{position:absolute!important;clip:rect(0,0,0,0);height:1px;width:1px;border:0;overflow:hidden}.switch-field label{float:left;width:60px;background-color:#e4e4e4;color:#333;font-size:14px;font-weight:400;text-shadow:none;padding:6px 14px;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.switch-field label:hover{cursor:pointer}.switch-field input:checked+label{-webkit-box-shadow:none;box-shadow:none;color:#e4e4e4}.switch-field label:first-of-type{border-radius:4px 0 0 4px}.switch-field label:last-of-type{border-radius:0 4px 4px 0}#wpadminbar .wpmbackground{background-color:#333;-webkit-animation-name:blinker;-webkit-animation-duration:5s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-moz-animation-name:blinker;-moz-animation-duration:5s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;animation-name:blinker;animation-duration:5s;animation-timing-function:linear;animation-iteration-count:infinite}@-moz-keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}@-webkit-keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}@keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}.wpmclassname{background-color:#848838;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;-moz-border-radius-bottomright:10px;-moz-border-radius-bottomleft:10px;text-indent:0;border:3px solid #656830;color:#fff;font-size:15px;font-weight:700;font-style:normal;height:50px;line-height:45px;width:215px;text-decoration:none;-webkit-border-radius:10px;border-radius:10px}.wpmclassname:hover{background-color:#656830;color:#fff}.wpmclassname:active{position:relative;top:1px;color:#fff}#wpmcontainer-sticky-wrapper{height:0!important}#wpmcontainer{left:0;
|
1 |
+
.switch-field label,.wpmclassname{display:inline-block;text-align:center}body#tinymce.wp-editor{font-size:.9rem;margin:10px;max-width:100%}.switch-field{font-family:"Lucida Grande",Tahoma,Verdana,sans-serif;padding-top:5px;padding-bottom:10px;overflow:hidden;width:180px;margin-left:auto}.switch-title{margin-bottom:6px}.switch-field input{position:absolute!important;clip:rect(0,0,0,0);height:1px;width:1px;border:0;overflow:hidden}.switch-field label{float:left;width:60px;background-color:#e4e4e4;color:#333;font-size:14px;font-weight:400;text-shadow:none;padding:6px 14px;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.switch-field label:hover{cursor:pointer}.switch-field input:checked+label{-webkit-box-shadow:none;box-shadow:none;color:#e4e4e4}.switch-field label:first-of-type{border-radius:4px 0 0 4px}.switch-field label:last-of-type{border-radius:0 4px 4px 0}#wpadminbar .wpmbackground{background-color:#333;-webkit-animation-name:blinker;-webkit-animation-duration:5s;-webkit-animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-moz-animation-name:blinker;-moz-animation-duration:5s;-moz-animation-timing-function:linear;-moz-animation-iteration-count:infinite;animation-name:blinker;animation-duration:5s;animation-timing-function:linear;animation-iteration-count:infinite}@-moz-keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}@-webkit-keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}@keyframes blinker{0%,100%{opacity:1}50%{opacity:0}}.wpmclassname{background-color:#848838;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;-moz-border-radius-bottomright:10px;-moz-border-radius-bottomleft:10px;text-indent:0;border:3px solid #656830;color:#fff;font-size:15px;font-weight:700;font-style:normal;height:50px;line-height:45px;width:215px;text-decoration:none;-webkit-border-radius:10px;border-radius:10px}.wpmclassname:hover{background-color:#656830;color:#fff}.wpmclassname:active{position:relative;top:1px;color:#fff}#wpmcontainer-sticky-wrapper{height:0!important}#wpmcontainer{left:0;top:32px;width:100%;z-index:9980;background-color:#f1f1f1}#wpmNotifications{color:#fff;background-color:#a3b745;margin-left:auto;margin-right:auto;width:60%;padding:14px 25px;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;-moz-border-radius-bottomright:10px;-moz-border-radius-bottomleft:10px;-webkit-border-radius:10px;border-radius:10px}.bottom-notices,.postbox{width:75%;box-shadow:none;-webkit-box-shadow:none}.postbox .hndle{padding:5px 5px 15px}.postbox .hndle span{font-size:25px}.postbox .hndle .postbox-title-action{font-size:12px;font-style:italic;padding-left:5px}.inside{display:none}.inside.openinside{display:block}.switch-field-mini label {display:inline-block;text-align:center}.switch-field-mini{font-family:"Lucida Grande",Tahoma,Verdana,sans-serif;overflow:hidden;margin-left:auto}.switch-mini-title{margin-bottom:6px}.switch-field-mini input{position:absolute!important;clip:rect(0,0,0,0);height:1px;width:1px;border:0;overflow:hidden}.switch-field-mini label{float:left;width:40px;background-color:#e4e4e4;color:#333;font-size:12px;text-shadow:none;padding:0;border:1px solid rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.3),0 1px rgba(255,255,255,.1);-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.switch-field-mini label:hover{cursor:pointer}.switch-field-mini input:checked+label{-webkit-box-shadow:none;box-shadow:none;color:#e4e4e4}.switch-field-mini label:first-of-type{border-radius:4px 0 0 4px}.switch-field-mini label:last-of-type{border-radius:0 4px 4px 0}#wpm-column1{float:left;width:73%;margin-right:1%;border:1px solid #ddd;background-color:#fff;padding:10px}#wpm-column2{float:left;width:24%}#wpm-navsave{float:left;width:18%;text-align:right;margin-top:25px}#wpm-navdashicons{float:left;width:20%;padding-top:8px}#wpm-navtitle{float:left;width:100%;}#wpm-navmessage{float:left;width:40%;text-align:center;padding-top:10px}#wpm-navtext{float:left;width:20%}@media (max-width:640px){#wpm-column1{width:92%;border:1px solid #ddd;background-color:#fff}#wpm-column2{width:98%}.switch-field{width:100px}.switch-field label{width:20px}h3{font-size:1em}#wpmcontainer{padding-left:0}#wpm-navsave{display:none}#divwpmcontainer{width:100%}#wpm-navtitle{width:99%;}#wpm-navdashicons{width:55%;padding-top:12px;height:55px}.wpm-form-field{width:95%}}@media (max-width:782px){#wpmcontainer{padding-left:0}#divwpmcontainer{width:100%}.wpm-form-field{width:95%}#wpm-navdashicons{width:55%;padding-top:12px;height:55px}#wpm-navtitle{}#wpm-column1{width:97%;border:1px solid #ddd;background-color:#fff}#wpm-column2{width:100%}}@media screen and (max-width:1280px){#wpmcontainer{width:85%}#wpm-column1{width:95%;border:1px solid #ddd;background-color:#fff}#wpm-column2{width:98%}#wpm-navtitle{width:100%;}#wpm-navtext{font-size: 15px;width:30%}#wpm-navdashicons{display: none;}#wpm-navmessage{width: 37%;}}
|
includes/functions.php
CHANGED
@@ -9,8 +9,7 @@ function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settin
|
|
9 |
global $_wp_admin_css_colors;
|
10 |
|
11 |
$getHeader = '
|
12 |
-
<div id="
|
13 |
-
<div id="divwpmcontainer">
|
14 |
<div id="wpm-navtitle">
|
15 |
<div id="wpm-navtext">
|
16 |
<h2 style="font-size: 23px;font-weight: 400;line-height: 29px;margin-bottom:15px;">
|
@@ -30,7 +29,6 @@ function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settin
|
|
30 |
|
31 |
</script>';
|
32 |
}
|
33 |
-
$getHeader .= '</div>';
|
34 |
$getHeader .= '</div>
|
35 |
<div id="wpm-navsave">
|
36 |
'.get_submit_button( '', 'primary', 'valide_settings', false ).'
|
9 |
global $_wp_admin_css_colors;
|
10 |
|
11 |
$getHeader = '
|
12 |
+
<div id="wpm-container">
|
|
|
13 |
<div id="wpm-navtitle">
|
14 |
<div id="wpm-navtext">
|
15 |
<h2 style="font-size: 23px;font-weight: 400;line-height: 29px;margin-bottom:15px;">
|
29 |
|
30 |
</script>';
|
31 |
}
|
|
|
32 |
$getHeader .= '</div>
|
33 |
<div id="wpm-navsave">
|
34 |
'.get_submit_button( '', 'primary', 'valide_settings', false ).'
|
includes/shortcodes.php
CHANGED
@@ -18,7 +18,7 @@ function wpm_analytics_shortcode( $atts ) {
|
|
18 |
);
|
19 |
|
20 |
if( isset($enable) && $enable==1 && $code!='') {
|
21 |
-
return "<script>
|
22 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
23 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
24 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
@@ -27,7 +27,16 @@ function wpm_analytics_shortcode( $atts ) {
|
|
27 |
ga('create', '".$code."', '".$domain."');
|
28 |
ga('send', 'pageview');
|
29 |
|
30 |
-
</script>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
} else {
|
32 |
// Code
|
33 |
return '';
|
@@ -44,7 +53,7 @@ function wpm_social_shortcode( $atts ) {
|
|
44 |
$contentSocial = '';
|
45 |
// Si on est en mobile on réduit les icones
|
46 |
if ( wp_is_mobile() ) {
|
47 |
-
$paramSocialOption['size'] =
|
48 |
}
|
49 |
|
50 |
// Attributes
|
18 |
);
|
19 |
|
20 |
if( isset($enable) && $enable==1 && $code!='') {
|
21 |
+
/*return "<script>
|
22 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
23 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
24 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
27 |
ga('create', '".$code."', '".$domain."');
|
28 |
ga('send', 'pageview');
|
29 |
|
30 |
+
</script>";*/
|
31 |
+
return "
|
32 |
+
<script async src=\"https://www.googletagmanager.com/gtag/js?id=".$code."\"></script>
|
33 |
+
<script>
|
34 |
+
window.dataLayer = window.dataLayer || [];
|
35 |
+
function gtag(){dataLayer.push(arguments)};
|
36 |
+
gtag('js', new Date());
|
37 |
+
|
38 |
+
gtag('config', ".$code.");
|
39 |
+
</script>";
|
40 |
} else {
|
41 |
// Code
|
42 |
return '';
|
53 |
$contentSocial = '';
|
54 |
// Si on est en mobile on réduit les icones
|
55 |
if ( wp_is_mobile() ) {
|
56 |
+
$paramSocialOption['size'] = 32;
|
57 |
}
|
58 |
|
59 |
// Attributes
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Florent73
|
|
3 |
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.8.
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
3 |
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.8.2
|
7 |
+
Stable tag: 3.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
views/wp-maintenance-colors.php
CHANGED
@@ -41,7 +41,7 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
41 |
<?php echo wpm_get_header( __('Colors & Fonts', 'wp-maintenance'), 'dashicons-art', $messageUpdate ) ?>
|
42 |
<!-- END HEADER -->
|
43 |
|
44 |
-
<div style="margin-top:
|
45 |
|
46 |
<div id="wpm-column1">
|
47 |
|
41 |
<?php echo wpm_get_header( __('Colors & Fonts', 'wp-maintenance'), 'dashicons-art', $messageUpdate ) ?>
|
42 |
<!-- END HEADER -->
|
43 |
|
44 |
+
<div style="margin-top: 40px;">
|
45 |
|
46 |
<div id="wpm-column1">
|
47 |
|
views/wp-maintenance-countdown.php
CHANGED
@@ -24,7 +24,7 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
24 |
<?php echo wpm_get_header( __('Countdown', 'wp-maintenance'), 'dashicons-clock', $messageUpdate ) ?>
|
25 |
<!-- END HEADER -->
|
26 |
|
27 |
-
<div style="margin-top:
|
28 |
|
29 |
<div id="wpm-column1">
|
30 |
|
24 |
<?php echo wpm_get_header( __('Countdown', 'wp-maintenance'), 'dashicons-clock', $messageUpdate ) ?>
|
25 |
<!-- END HEADER -->
|
26 |
|
27 |
+
<div style="margin-top: 40px;">
|
28 |
|
29 |
<div id="wpm-column1">
|
30 |
|
views/wp-maintenance-css.php
CHANGED
@@ -36,7 +36,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
36 |
<?php echo wpm_get_header( __('CSS Style', 'wp-maintenance'), 'dashicons-media-code', $messageUpdate ) ?>
|
37 |
<!-- END HEADER -->
|
38 |
|
39 |
-
<div style="margin-top:
|
40 |
|
41 |
<div id="wpm-column1">
|
42 |
|
36 |
<?php echo wpm_get_header( __('CSS Style', 'wp-maintenance'), 'dashicons-media-code', $messageUpdate ) ?>
|
37 |
<!-- END HEADER -->
|
38 |
|
39 |
+
<div style="margin-top: 40px;">
|
40 |
|
41 |
<div id="wpm-column1">
|
42 |
|
views/wp-maintenance-dashboard.php
CHANGED
@@ -52,7 +52,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
52 |
<!-- HEADER -->
|
53 |
<?php echo wpm_get_header( __('General', 'wp-maintenance'), 'dashicons-admin-settings', $messageUpdate ) ?>
|
54 |
<!-- END HEADER -->
|
55 |
-
<div style="margin-top:
|
56 |
|
57 |
<div id="wpm-column1">
|
58 |
|
52 |
<!-- HEADER -->
|
53 |
<?php echo wpm_get_header( __('General', 'wp-maintenance'), 'dashicons-admin-settings', $messageUpdate ) ?>
|
54 |
<!-- END HEADER -->
|
55 |
+
<div style="margin-top: 40px;">
|
56 |
|
57 |
<div id="wpm-column1">
|
58 |
|
views/wp-maintenance-picture.php
CHANGED
@@ -60,7 +60,7 @@ function toggleTable(texte) {
|
|
60 |
<?php echo wpm_get_header( __('Picture', 'wp-maintenance'), 'dashicons-format-gallery', $messageUpdate ) ?>
|
61 |
<!-- END HEADER -->
|
62 |
|
63 |
-
<div style="margin-top:
|
64 |
<div id="wpm-column1">
|
65 |
|
66 |
<div style="float:left;width:68%;margin-right:10px;">
|
60 |
<?php echo wpm_get_header( __('Picture', 'wp-maintenance'), 'dashicons-format-gallery', $messageUpdate ) ?>
|
61 |
<!-- END HEADER -->
|
62 |
|
63 |
+
<div style="margin-top: 40px;">
|
64 |
<div id="wpm-column1">
|
65 |
|
66 |
<div style="float:left;width:68%;margin-right:10px;">
|
views/wp-maintenance-settings.php
CHANGED
@@ -57,7 +57,7 @@ jQuery(document).ready(function() {
|
|
57 |
<?php echo wpm_get_header( __('Settings', 'wp-maintenance'), 'dashicons-admin-generic', $messageUpdate ) ?>
|
58 |
<!-- END HEADER -->
|
59 |
|
60 |
-
<div style="margin-top:
|
61 |
|
62 |
<div id="wpm-column1">
|
63 |
|
57 |
<?php echo wpm_get_header( __('Settings', 'wp-maintenance'), 'dashicons-admin-generic', $messageUpdate ) ?>
|
58 |
<!-- END HEADER -->
|
59 |
|
60 |
+
<div style="margin-top:40px;">
|
61 |
|
62 |
<div id="wpm-column1">
|
63 |
|
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: 3.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', '3.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: 3.0.6
|
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', '3.0.6' ); }
|
40 |
|
41 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
42 |
require WPM_DIR . 'classes/slider.php';
|