Version Description
This version is stable
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 2.8.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.1 to 2.8.2
- css/wpm-admin.css +36 -1
- images/donate.png +0 -0
- js/fontselect/jquery.fontselect.js +1 -1
- js/fontselect/jquery.fontselect.min.js +1 -1
- js/wpm-cpt-script.js +1 -1
- readme.txt +8 -5
- wp-maintenance-admin.php +12 -11
- wp-maintenance.php +10 -13
css/wpm-admin.css
CHANGED
@@ -31,4 +31,39 @@
|
|
31 |
0% { opacity: 1.0; }
|
32 |
50% { opacity: 0.0; }
|
33 |
100% { opacity: 1.0; }
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
0% { opacity: 1.0; }
|
32 |
50% { opacity: 0.0; }
|
33 |
100% { opacity: 1.0; }
|
34 |
+
}
|
35 |
+
.wpmclassname {
|
36 |
+
background-color:#848838;
|
37 |
+
-webkit-border-top-left-radius:10px;
|
38 |
+
-moz-border-radius-topleft:10px;
|
39 |
+
border-top-left-radius:10px;
|
40 |
+
-webkit-border-top-right-radius:10px;
|
41 |
+
-moz-border-radius-topright:10px;
|
42 |
+
border-top-right-radius:10px;
|
43 |
+
-webkit-border-bottom-right-radius:10px;
|
44 |
+
-moz-border-radius-bottomright:10px;
|
45 |
+
border-bottom-right-radius:10px;
|
46 |
+
-webkit-border-bottom-left-radius:10px;
|
47 |
+
-moz-border-radius-bottomleft:10px;
|
48 |
+
border-bottom-left-radius:10px;
|
49 |
+
text-indent:0;
|
50 |
+
border:3px solid #656830;
|
51 |
+
display:inline-block;
|
52 |
+
color:#ffffff;
|
53 |
+
/*font-family:Arial;*/
|
54 |
+
font-size:15px;
|
55 |
+
font-weight:bold;
|
56 |
+
font-style:normal;
|
57 |
+
height:50px;
|
58 |
+
line-height:45px;
|
59 |
+
width:250px;
|
60 |
+
text-decoration:none;
|
61 |
+
text-align:center;
|
62 |
+
}.wpmclassname:hover {
|
63 |
+
background-color:#656830;
|
64 |
+
color:#ffffff;
|
65 |
+
}.wpmclassname:active {
|
66 |
+
position:relative;
|
67 |
+
top:1px;
|
68 |
+
color:#ffffff;
|
69 |
+
}
|
images/donate.png
ADDED
Binary file
|
js/fontselect/jquery.fontselect.js
CHANGED
@@ -235,7 +235,7 @@
|
|
235 |
style: 'font-select',
|
236 |
placeholder: 'Select a font',
|
237 |
lookahead: 2,
|
238 |
-
api: '
|
239 |
};
|
240 |
|
241 |
var Fontselect = (function(){
|
235 |
style: 'font-select',
|
236 |
placeholder: 'Select a font',
|
237 |
lookahead: 2,
|
238 |
+
api: 'https://fonts.googleapis.com/css?family='
|
239 |
};
|
240 |
|
241 |
var Fontselect = (function(){
|
js/fontselect/jquery.fontselect.min.js
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* Copyright (c) 2011 Tom Moor
|
5 |
* MIT Licensed
|
6 |
* @version 0.1
|
7 |
-
*/(function(a){a.fn.fontselect=function(b){var c=function(a,b){return function(){return a.apply(b,arguments)}},d=["Aclonica","Allan","Annie+Use+Your+Telescope","Anonymous+Pro","Allerta+Stencil","Allerta","Amaranth","Anton","Architects+Daughter","Arimo","Artifika","Arvo","Asset","Astloch","Bangers","Bentham","Bevan","Bigshot+One","Bowlby+One","Bowlby+One+SC","Brawler","Buda:300","Cabin","Calligraffitti","Candal","Cantarell","Cardo","Carter One","Caudex","Cedarville+Cursive","Cherry+Cream+Soda","Chewy","Coda","Coming+Soon","Copse","Corben:700","Cousine","Covered+By+Your+Grace","Crafty+Girls","Crimson+Text","Crushed","Cuprum","Damion","Dancing+Script","Dawning+of+a+New+Day","Didact+Gothic","Droid+Sans","Droid+Sans+Mono","Droid+Serif","EB+Garamond","Expletus+Sans","Fontdiner+Swanky","Forum","Francois+One","Geo","Give+You+Glory","Goblin+One","Goudy+Bookletter+1911","Gravitas+One","Gruppo","Hammersmith+One","Holtwood+One+SC","Homemade+Apple","Inconsolata","Indie+Flower","IM+Fell+DW+Pica","IM+Fell+DW+Pica+SC","IM+Fell+Double+Pica","IM+Fell+Double+Pica+SC","IM+Fell+English","IM+Fell+English+SC","IM+Fell+French+Canon","IM+Fell+French+Canon+SC","IM+Fell+Great+Primer","IM+Fell+Great+Primer+SC","Irish+Grover","Irish+Growler","Istok+Web","Josefin+Sans","Josefin+Slab","Judson","Jura","Jura:500","Jura:600","Just+Another+Hand","Just+Me+Again+Down+Here","Kameron","Kenia","Kranky","Kreon","Kristi","La+Belle+Aurore","Lato:100","Lato:100italic","Lato:300","Lato","Lato:bold","Lato:900","League+Script","Lekton","Limelight","Lobster","Lobster Two","Lora","Love+Ya+Like+A+Sister","Loved+by+the+King","Luckiest+Guy","Maiden+Orange","Mako","Maven+Pro","Maven+Pro:500","Maven+Pro:700","Maven+Pro:900","Meddon","MedievalSharp","Megrim","Merriweather","Metrophobic","Michroma","Miltonian Tattoo","Miltonian","Modern Antiqua","Monofett","Molengo","Mountains of Christmas","Muli:300","Muli","Neucha","Neuton","News+Cycle","Nixie+One","Nobile","Nova+Cut","Nova+Flat","Nova+Mono","Nova+Oval","Nova+Round","Nova+Script","Nova+Slim","Nova+Square","Nunito:light","Nunito","OFL+Sorts+Mill+Goudy+TT","Old+Standard+TT","Open+Sans:300","Open+Sans","Open+Sans:600","Open+Sans:800","Open+Sans+Condensed:300","Orbitron","Orbitron:500","Orbitron:700","Orbitron:900","Oswald","Over+the+Rainbow","Reenie+Beanie","Pacifico","Patrick+Hand","Paytone+One","Permanent+Marker","Philosopher","Play","Playfair+Display","Podkova","PT+Sans","PT+Sans+Narrow","PT+Sans+Narrow:regular,bold","PT+Serif","PT+Serif Caption","Puritan","Quattrocento","Quattrocento+Sans","Radley","Raleway:100","Redressed","Rock+Salt","Rokkitt","Ruslan+Display","Schoolbell","Shadows+Into+Light","Shanti","Sigmar+One","Six+Caps","Slackey","Smythe","Sniglet:800","Special+Elite","Stardos+Stencil","Sue+Ellen+Francisco","Sunshiney","Swanky+and+Moo+Moo","Syncopate","Tangerine","Tenor+Sans","Terminal+Dosis+Light","The+Girl+Next+Door","Tinos","Ubuntu","Ultra","Unkempt","UnifrakturCook:bold","UnifrakturMaguntia","Varela","Varela Round","Vibur","Vollkorn","VT323","Waiting+for+the+Sunrise","Wallpoet","Walter+Turncoat","Wire+One","Yanone+Kaffeesatz","Yanone+Kaffeesatz:300","Yanone+Kaffeesatz:400","Yanone+Kaffeesatz:700","Yeseva+One","Zeyada"],e={style:"font-select",placeholder:"Select a font",lookahead:2,api:"
|
4 |
* Copyright (c) 2011 Tom Moor
|
5 |
* MIT Licensed
|
6 |
* @version 0.1
|
7 |
+
*/(function(a){a.fn.fontselect=function(b){var c=function(a,b){return function(){return a.apply(b,arguments)}},d=["Aclonica","Allan","Annie+Use+Your+Telescope","Anonymous+Pro","Allerta+Stencil","Allerta","Amaranth","Anton","Architects+Daughter","Arimo","Artifika","Arvo","Asset","Astloch","Bangers","Bentham","Bevan","Bigshot+One","Bowlby+One","Bowlby+One+SC","Brawler","Buda:300","Cabin","Calligraffitti","Candal","Cantarell","Cardo","Carter One","Caudex","Cedarville+Cursive","Cherry+Cream+Soda","Chewy","Coda","Coming+Soon","Copse","Corben:700","Cousine","Covered+By+Your+Grace","Crafty+Girls","Crimson+Text","Crushed","Cuprum","Damion","Dancing+Script","Dawning+of+a+New+Day","Didact+Gothic","Droid+Sans","Droid+Sans+Mono","Droid+Serif","EB+Garamond","Expletus+Sans","Fontdiner+Swanky","Forum","Francois+One","Geo","Give+You+Glory","Goblin+One","Goudy+Bookletter+1911","Gravitas+One","Gruppo","Hammersmith+One","Holtwood+One+SC","Homemade+Apple","Inconsolata","Indie+Flower","IM+Fell+DW+Pica","IM+Fell+DW+Pica+SC","IM+Fell+Double+Pica","IM+Fell+Double+Pica+SC","IM+Fell+English","IM+Fell+English+SC","IM+Fell+French+Canon","IM+Fell+French+Canon+SC","IM+Fell+Great+Primer","IM+Fell+Great+Primer+SC","Irish+Grover","Irish+Growler","Istok+Web","Josefin+Sans","Josefin+Slab","Judson","Jura","Jura:500","Jura:600","Just+Another+Hand","Just+Me+Again+Down+Here","Kameron","Kenia","Kranky","Kreon","Kristi","La+Belle+Aurore","Lato:100","Lato:100italic","Lato:300","Lato","Lato:bold","Lato:900","League+Script","Lekton","Limelight","Lobster","Lobster Two","Lora","Love+Ya+Like+A+Sister","Loved+by+the+King","Luckiest+Guy","Maiden+Orange","Mako","Maven+Pro","Maven+Pro:500","Maven+Pro:700","Maven+Pro:900","Meddon","MedievalSharp","Megrim","Merriweather","Metrophobic","Michroma","Miltonian Tattoo","Miltonian","Modern Antiqua","Monofett","Molengo","Mountains of Christmas","Muli:300","Muli","Neucha","Neuton","News+Cycle","Nixie+One","Nobile","Nova+Cut","Nova+Flat","Nova+Mono","Nova+Oval","Nova+Round","Nova+Script","Nova+Slim","Nova+Square","Nunito:light","Nunito","OFL+Sorts+Mill+Goudy+TT","Old+Standard+TT","Open+Sans:300","Open+Sans","Open+Sans:600","Open+Sans:800","Open+Sans+Condensed:300","Orbitron","Orbitron:500","Orbitron:700","Orbitron:900","Oswald","Over+the+Rainbow","Reenie+Beanie","Pacifico","Patrick+Hand","Paytone+One","Permanent+Marker","Philosopher","Play","Playfair+Display","Podkova","PT+Sans","PT+Sans+Narrow","PT+Sans+Narrow:regular,bold","PT+Serif","PT+Serif Caption","Puritan","Quattrocento","Quattrocento+Sans","Radley","Raleway:100","Redressed","Rock+Salt","Rokkitt","Ruslan+Display","Schoolbell","Shadows+Into+Light","Shanti","Sigmar+One","Six+Caps","Slackey","Smythe","Sniglet:800","Special+Elite","Stardos+Stencil","Sue+Ellen+Francisco","Sunshiney","Swanky+and+Moo+Moo","Syncopate","Tangerine","Tenor+Sans","Terminal+Dosis+Light","The+Girl+Next+Door","Tinos","Ubuntu","Ultra","Unkempt","UnifrakturCook:bold","UnifrakturMaguntia","Varela","Varela Round","Vibur","Vollkorn","VT323","Waiting+for+the+Sunrise","Wallpoet","Walter+Turncoat","Wire+One","Yanone+Kaffeesatz","Yanone+Kaffeesatz:300","Yanone+Kaffeesatz:400","Yanone+Kaffeesatz:700","Yeseva+One","Zeyada"],e={style:"font-select",placeholder:"Select a font",lookahead:2,api:"https://fonts.googleapis.com/css?family="},f=function(){function b(b,c){this.$original=a(b);this.options=c;this.active=!1;this.setupHtml();this.getVisibleFonts();this.bindEvents();var d=this.$original.val();if(d){this.updateSelected();this.addFontLink(d)}}b.prototype.bindEvents=function(){a("li",this.$results).click(c(this.selectFont,this)).mouseenter(c(this.activateFont,this)).mouseleave(c(this.deactivateFont,this));a("span",this.$select).click(c(this.toggleDrop,this));this.$arrow.click(c(this.toggleDrop,this))};b.prototype.toggleDrop=function(a){if(this.active){this.$element.removeClass("font-select-active");this.$drop.hide();clearInterval(this.visibleInterval)}else{this.$element.addClass("font-select-active");this.$drop.show();this.moveToSelected();this.visibleInterval=setInterval(c(this.getVisibleFonts,this),500)}this.active=!this.active};b.prototype.selectFont=function(){var b=a("li.active",this.$results).data("value");this.$original.val(b).change();this.updateSelected();this.toggleDrop()};b.prototype.moveToSelected=function(){var b,c=this.$original.val();c?b=a("li[data-value='"+c+"']",this.$results):b=a("li",this.$results).first();this.$results.scrollTop(b.addClass("active").position().top)};b.prototype.activateFont=function(b){a("li.active",this.$results).removeClass("active");a(b.currentTarget).addClass("active")};b.prototype.deactivateFont=function(b){a(b.currentTarget).removeClass("active")};b.prototype.updateSelected=function(){var b=this.$original.val();a("span",this.$element).text(this.toReadable(b)).css(this.toStyle(b))};b.prototype.setupHtml=function(){this.$original.empty().hide();this.$element=a("<div>",{"class":this.options.style});this.$arrow=a("<div><b></b></div>");this.$select=a("<a><span>"+this.options.placeholder+"</span></a>");this.$drop=a("<div>",{"class":"fs-drop"});this.$results=a("<ul>",{"class":"fs-results"});this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));this.$drop.append(this.$results.append(this.fontsAsHtml())).hide()};b.prototype.fontsAsHtml=function(){var a=d.length,b,c,e="";for(var f=0;f<a;f++){b=this.toReadable(d[f]);c=this.toStyle(d[f]);e+='<li data-value="'+d[f]+'" style="font-family: '+c["font-family"]+"; font-weight: "+c["font-weight"]+'">'+b+"</li>"}return e};b.prototype.toReadable=function(a){return a.replace(/[\+|:]/g," ")};b.prototype.toStyle=function(a){var b=a.split(":");return{"font-family":this.toReadable(b[0]),"font-weight":b[1]||400}};b.prototype.getVisibleFonts=function(){if(this.$results.is(":hidden"))return;var b=this,c=this.$results.scrollTop(),d=c+this.$results.height();if(this.options.lookahead){var e=a("li",this.$results).first().height();d+=e*this.options.lookahead}a("li",this.$results).each(function(){var e=a(this).position().top+c,f=e+a(this).height();if(f>=c&&e<=d){var g=a(this).data("value");b.addFontLink(g)}})};b.prototype.addFontLink=function(b){var c=this.options.api+b;a("link[href*='"+b+"']").length===0&&a("link:last").after('<link href="'+c+'" rel="stylesheet" type="text/css">')};return b}();return this.each(function(b){b&&a.extend(e,b);return new f(this,e)})}})(jQuery);
|
js/wpm-cpt-script.js
CHANGED
@@ -71,7 +71,7 @@ if (typeof(LeadingZero)=="undefined")
|
|
71 |
if (typeof(Disable)=="undefined")
|
72 |
Disable = "";
|
73 |
if (typeof(FontFamily)=="undefined")
|
74 |
-
FontFamily = "
|
75 |
|
76 |
|
77 |
CountStepper = Math.ceil(CountStepper);
|
71 |
if (typeof(Disable)=="undefined")
|
72 |
Disable = "";
|
73 |
if (typeof(FontFamily)=="undefined")
|
74 |
+
FontFamily = "Pacifico";
|
75 |
|
76 |
|
77 |
CountStepper = Math.ceil(CountStepper);
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Florent73
|
3 |
-
Donate link:
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,7 +41,7 @@ maintenance.pot file available
|
|
41 |
|
42 |
= This plugin is free ? =
|
43 |
|
44 |
-
Yes. If you want, you can support this project here :
|
45 |
|
46 |
= Can I change the plugin code? =
|
47 |
|
@@ -49,11 +49,14 @@ Yes. Thank you for submitting your changes to update the plugin.
|
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
52 |
-
= 2.8.
|
53 |
This version is stable
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
57 |
= 2.8.1 =
|
58 |
* Add choose for iframe or shortcode newsletter
|
59 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Florent73
|
3 |
+
Donate link: https://wpmaintenance.info/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.7
|
7 |
+
Stable tag: 2.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
|
42 |
= This plugin is free ? =
|
43 |
|
44 |
+
Yes. If you want, you can support this project here : https://wpmaintenance.info/a-propos/
|
45 |
|
46 |
= Can I change the plugin code? =
|
47 |
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
52 |
+
= 2.8.2 =
|
53 |
This version is stable
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 2.8.2 =
|
58 |
+
* Fix bug countdown
|
59 |
+
|
60 |
= 2.8.1 =
|
61 |
* Add choose for iframe or shortcode newsletter
|
62 |
|
wp-maintenance-admin.php
CHANGED
@@ -85,7 +85,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
85 |
#pattern li.current { background: #66CC00; color: #fff; }
|
86 |
</style>
|
87 |
<style type="text/css">.postbox h3 { cursor:pointer; }</style>
|
88 |
-
<!--<script src="<?php echo WP_PLUGIN_URL; ?>/wp-maintenance/js/jquery-ui-timepicker-addon.js"></script>-->
|
89 |
<script type="text/javascript">
|
90 |
jQuery(document).ready(function() {
|
91 |
jQuery('#font_title').fontselect();
|
@@ -446,8 +446,10 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
446 |
<ul>
|
447 |
<!-- UPLOADER UNE IMAGE -->
|
448 |
<?php
|
449 |
-
if($paramMMode['image']!='') {
|
450 |
list($logoWidth, $logoHeight, $logoType, $logoAttr) = getimagesize($paramMMode['image']);
|
|
|
|
|
451 |
}
|
452 |
?>
|
453 |
<li>
|
@@ -873,7 +875,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
873 |
<ul>
|
874 |
|
875 |
<li>
|
876 |
-
<?php _e('This plugin has been developed for you for free by <a href="
|
877 |
</li>
|
878 |
<li> </li>
|
879 |
<li>
|
@@ -882,13 +884,12 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
882 |
<li> </li>
|
883 |
<li>
|
884 |
<!-- FAIRE UN DON SUR PAYPAL -->
|
885 |
-
<div><?php _e('If you want Donate (French Paypal) for my current and future developments:', 'wp-maintenance'); ?><br />
|
886 |
-
<
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
</form>
|
892 |
</div>
|
893 |
<!-- FIN FAIRE UN DON -->
|
894 |
</li>
|
@@ -902,7 +903,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
902 |
|
903 |
<div style="margin-top:40px;">
|
904 |
|
905 |
-
<a href="
|
906 |
|
907 |
</div>
|
908 |
|
85 |
#pattern li.current { background: #66CC00; color: #fff; }
|
86 |
</style>
|
87 |
<style type="text/css">.postbox h3 { cursor:pointer; }</style>
|
88 |
+
<!--<script src="<?php //echo WP_PLUGIN_URL; ?>/wp-maintenance/js/jquery-ui-timepicker-addon.js"></script>-->
|
89 |
<script type="text/javascript">
|
90 |
jQuery(document).ready(function() {
|
91 |
jQuery('#font_title').fontselect();
|
446 |
<ul>
|
447 |
<!-- UPLOADER UNE IMAGE -->
|
448 |
<?php
|
449 |
+
if( isset($paramMMode['image']) && $paramMMode['image']!='' && ini_get('allow_url_fopen')==1 ) {
|
450 |
list($logoWidth, $logoHeight, $logoType, $logoAttr) = getimagesize($paramMMode['image']);
|
451 |
+
} else {
|
452 |
+
$logoWidth = 250;
|
453 |
}
|
454 |
?>
|
455 |
<li>
|
875 |
<ul>
|
876 |
|
877 |
<li>
|
878 |
+
<?php _e('This plugin has been developed for you for free by <a href="https://restezconnectes.fr" target="_blank">Florent Maillefaud</a>. It is royalty free, you can take it, modify it, distribute it as you see fit.<br /><br />It would be desirable that I can get feedback on your potential changes to improve this plugin for all.', 'wp-maintenance'); ?>
|
879 |
</li>
|
880 |
<li> </li>
|
881 |
<li>
|
884 |
<li> </li>
|
885 |
<li>
|
886 |
<!-- FAIRE UN DON SUR PAYPAL -->
|
887 |
+
<div><?php _e('If you want Donate (French Paypal) for my current and future developments:', 'wp-maintenance'); ?><br /><br />
|
888 |
+
<div style="width:350px;margin-left:auto;margin-right:auto;padding:5px;">
|
889 |
+
<a href="https://paypal.me/RestezConnectes/10" target="_blank" class="wpmclassname">
|
890 |
+
<img src="<?php echo WP_PLUGIN_URL.'/wp-maintenance/images/donate.png'; ?>" valign="bottom" width="64" /> Donate now!
|
891 |
+
</a>
|
892 |
+
</div>
|
|
|
893 |
</div>
|
894 |
<!-- FIN FAIRE UN DON -->
|
895 |
</li>
|
903 |
|
904 |
<div style="margin-top:40px;">
|
905 |
|
906 |
+
<a href="https://wpmaintenance.info/" target="_blank"><?php _e('WP Maintenance','wp-maintenance'); ?></a> <?php _e('is brought to you by','wp-maintenance'); ?> <a href="https://restezconnectes.fr/" target="_blank">Restez Connectés</a> - <?php _e('If you found this plugin useful','wp-maintenance'); ?> <a href="https://wordpress.org/support/view/plugin-reviews/wp-maintenance" target="_blank"><?php _e('give it 5 ★ on WordPress.org','wp-maintenance'); ?></a>
|
907 |
|
908 |
</div>
|
909 |
|
wp-maintenance.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
|
3 |
/*
|
4 |
* Plugin Name: WP Maintenance
|
5 |
-
* Plugin URI:
|
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:
|
9 |
-
* Version: 2.8.
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
@@ -14,6 +14,7 @@
|
|
14 |
|
15 |
/*
|
16 |
Change Log
|
|
|
17 |
24/06/2016 - Bug HTTPS résolu
|
18 |
01/06/2016 - Bug sur les Google Fonts résolu
|
19 |
02/05/2016 - Retrait du template html et file_get_content
|
@@ -96,7 +97,7 @@ function wpm_make_multilang() {
|
|
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);
|
@@ -304,8 +305,11 @@ if (isset($_GET['page']) && $_GET['page'] == 'wp-maintenance/wp-maintenance.php'
|
|
304 |
}
|
305 |
|
306 |
function wpm_change_active($value = 0) {
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
309 |
}
|
310 |
}
|
311 |
|
@@ -599,13 +603,6 @@ function wpm_maintenance_mode() {
|
|
599 |
if( $dateNow > $dateFinCpt ) {
|
600 |
$ChangeStatus = wpm_change_active();
|
601 |
$statusActive = 0;
|
602 |
-
$paramMMode['disable'] = 0;
|
603 |
-
|
604 |
-
$wpm_options = array(
|
605 |
-
'active_cpt' => 0,
|
606 |
-
'disable' => 0,
|
607 |
-
);
|
608 |
-
update_option('wp_maintenance_settings', $wpm_options);
|
609 |
}
|
610 |
|
611 |
}
|
2 |
|
3 |
/*
|
4 |
* Plugin Name: WP Maintenance
|
5 |
+
* Plugin URI: https://fr.wordpress.org/plugins/wp-maintenance/
|
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.info
|
9 |
+
* Version: 2.8.2
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
14 |
|
15 |
/*
|
16 |
Change Log
|
17 |
+
27/09/2016 - Corrige le bug compteur
|
18 |
24/06/2016 - Bug HTTPS résolu
|
19 |
01/06/2016 - Bug sur les Google Fonts résolu
|
20 |
02/05/2016 - Retrait du template html et file_get_content
|
97 |
}
|
98 |
|
99 |
/* Ajoute la version dans les options */
|
100 |
+
define('WPM_VERSION', '2.8.2');
|
101 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
102 |
if( !get_option('wp_maintenance_version') ) {
|
103 |
add_option('wp_maintenance_version', $option);
|
305 |
}
|
306 |
|
307 |
function wpm_change_active($value = 0) {
|
308 |
+
|
309 |
+
update_option('wp_maintenance_active', $value);
|
310 |
+
$statusActive = get_option('wp_maintenance_active');
|
311 |
+
if( isset($statusActive) ) {
|
312 |
+
return $statusActive;
|
313 |
}
|
314 |
}
|
315 |
|
603 |
if( $dateNow > $dateFinCpt ) {
|
604 |
$ChangeStatus = wpm_change_active();
|
605 |
$statusActive = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
606 |
}
|
607 |
|
608 |
}
|