Version Description
This version is stable
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 2.7.5 |
Comparing to | |
See all releases |
Code changes from version 2.7.4 to 2.7.5
- languages/wp-maintenance-fr_FR.mo +0 -0
- languages/wp-maintenance-fr_FR.po +9 -9
- readme.txt +23 -39
- template/index.html +0 -125
- wp-maintenance-admin.php +7 -7
- wp-maintenance.php +141 -16
languages/wp-maintenance-fr_FR.mo
CHANGED
Binary file
|
languages/wp-maintenance-fr_FR.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
"POT-Creation-Date: 2016-04-28 10:21+0200\n"
|
5 |
-
"PO-Revision-Date: 2016-
|
6 |
"Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
7 |
"Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
8 |
"Language: fr\n"
|
@@ -535,12 +535,12 @@ msgid ""
|
|
535 |
"> <br />It would be desirable that I can get feedback on your potential "
|
536 |
"changes to improve this plugin for all."
|
537 |
msgstr ""
|
538 |
-
"
|
539 |
-
"restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>.
|
540 |
-
"de droits, vous pouvez
|
541 |
-
"semble.<br /><br />Il serait néanmoins souhaitable que je puisse
|
542 |
-
"retours sur vos éventuelles modifications afin d'améliorer
|
543 |
-
"tous."
|
544 |
|
545 |
#: wp-maintenance-admin.php:797
|
546 |
msgid "Visit"
|
@@ -549,7 +549,7 @@ msgstr "Visitez le site web de"
|
|
549 |
#: wp-maintenance-admin.php:797
|
550 |
msgid ""
|
551 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
552 |
-
msgstr "essayez la démo
|
553 |
|
554 |
#: wp-maintenance-admin.php:802
|
555 |
msgid ""
|
@@ -567,7 +567,7 @@ msgstr "vous est proposé par"
|
|
567 |
|
568 |
#: wp-maintenance-admin.php:822
|
569 |
msgid "If you found this plugin useful"
|
570 |
-
msgstr "Si vous avez trouvé
|
571 |
|
572 |
#: wp-maintenance-admin.php:822
|
573 |
msgid "give it 5 ★ on WordPress.org"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
"POT-Creation-Date: 2016-04-28 10:21+0200\n"
|
5 |
+
"PO-Revision-Date: 2016-05-05 16:10+0200\n"
|
6 |
"Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
7 |
"Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
8 |
"Language: fr\n"
|
535 |
"> <br />It would be desirable that I can get feedback on your potential "
|
536 |
"changes to improve this plugin for all."
|
537 |
msgstr ""
|
538 |
+
"Cette extension a été développée gratuitement pour vous par <a href=\"http://"
|
539 |
+
"www.restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>. Elle est "
|
540 |
+
"libre de droits, vous pouvez la prendre, la modifier, la distribuer comme "
|
541 |
+
"bon vous semble.<br /><br />Il serait néanmoins souhaitable que je puisse "
|
542 |
+
"avoir des retours sur vos éventuelles modifications afin d'améliorer cette "
|
543 |
+
"extension pour tous."
|
544 |
|
545 |
#: wp-maintenance-admin.php:797
|
546 |
msgid "Visit"
|
549 |
#: wp-maintenance-admin.php:797
|
550 |
msgid ""
|
551 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
552 |
+
msgstr "essayez la démo de cette extension et parlez-en à votre entourage !"
|
553 |
|
554 |
#: wp-maintenance-admin.php:802
|
555 |
msgid ""
|
567 |
|
568 |
#: wp-maintenance-admin.php:822
|
569 |
msgid "If you found this plugin useful"
|
570 |
+
msgstr "Si vous avez trouvé cette extension utile,"
|
571 |
|
572 |
#: wp-maintenance-admin.php:822
|
573 |
msgid "give it 5 ★ on WordPress.org"
|
readme.txt
CHANGED
@@ -4,28 +4,13 @@ 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.5.1
|
7 |
-
Stable tag: 2.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
-
Créer et personnaliser votre page de maintenance !
|
13 |
Create and customize your maintenance page
|
14 |
|
15 |
== Description ==
|
16 |
-
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.
|
17 |
-
|
18 |
-
Personnalisez cette page de maintenance avec :
|
19 |
-
|
20 |
-
- Vos choix de polices et couleurs de texte
|
21 |
-
- une image pour votre logo
|
22 |
-
- une image de fond ou un pattern
|
23 |
-
- un slider
|
24 |
-
- un compte à rebours
|
25 |
-
- Prêt pour Google Analytics
|
26 |
-
- Icônes des réseaux sociaux
|
27 |
-
- Encart pour un shorcode (newletter ou contact)
|
28 |
-
|
29 |
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 and countdown with:
|
30 |
|
31 |
- Choice texts colors and fonts
|
@@ -37,45 +22,44 @@ The WP Maintenance plugin allows you to put your website on the waiting time for
|
|
37 |
- Social Networks ready
|
38 |
- Insert for shorcode (Newletter or Contact form)
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
* Français
|
43 |
-
* English
|
44 |
-
|
45 |
-
Fichier wp-maintenance.pot disponible / maintenance.pot file available
|
46 |
|
47 |
== Installation ==
|
48 |
-
1.
|
49 |
-
2.
|
50 |
-
3.
|
51 |
|
52 |
== Screenshots ==
|
53 |
-
1.
|
54 |
-
2.
|
55 |
-
3.
|
56 |
-
4. Upload
|
57 |
-
5.
|
58 |
-
6.
|
59 |
|
60 |
== Frequently Asked Questions ==
|
61 |
|
62 |
-
=
|
63 |
-
|
64 |
-
Oui tout à fait. / Yes
|
65 |
|
66 |
-
|
67 |
|
68 |
-
=
|
69 |
|
70 |
-
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
74 |
-
= 2.7.
|
75 |
-
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 2.7.3 =
|
80 |
* Ajout d'un slider. Compatible version 4.5 / Add slider. Version 4.5 compatible
|
81 |
|
4 |
Tags: WordPress.com, maintenance, atttente, pause, travaux, construction, launch, coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.5.1
|
7 |
+
Stable tag: 2.7.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
|
|
|
|
11 |
Create and customize your maintenance page
|
12 |
|
13 |
== Description ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
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 and countdown with:
|
15 |
|
16 |
- Choice texts colors and fonts
|
22 |
- Social Networks ready
|
23 |
- Insert for shorcode (Newletter or Contact form)
|
24 |
|
25 |
+
maintenance.pot file available
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
== Installation ==
|
28 |
+
1. Upload the full directory into your '/wp-content/plugins' directory
|
29 |
+
2. Activate the plugin at the plugin administration page
|
30 |
+
3. Open the plugin configuration page, which is located under 'Option -> WP Maintenance'
|
31 |
|
32 |
== Screenshots ==
|
33 |
+
1. General view
|
34 |
+
2. View by visitors to your site
|
35 |
+
3. Color selection
|
36 |
+
4. Upload a personnal picture
|
37 |
+
5. Countdown settings
|
38 |
+
6. Various settings
|
39 |
|
40 |
== Frequently Asked Questions ==
|
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 |
|
48 |
+
Yes. Thank you for submitting your changes to update the plugin.
|
49 |
|
50 |
== Upgrade Notice ==
|
51 |
|
52 |
+
= 2.7.5 =
|
53 |
+
This version is stable
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 2.7.5 =
|
58 |
+
* Bug corrigé template HTML / Bug file_get_content fixed for template HTML.
|
59 |
+
|
60 |
+
= 2.7.4 =
|
61 |
+
* Ajout icons social. Compatible version 4.5.1 / Add social icon. Version 4.5.1 compatible
|
62 |
+
|
63 |
= 2.7.3 =
|
64 |
* Ajout d'un slider. Compatible version 4.5 / Add slider. Version 4.5 compatible
|
65 |
|
template/index.html
DELETED
@@ -1,125 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
3 |
-
<head>
|
4 |
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5 |
-
<meta name="viewport" content="width=device-width, user-scalable=yes" />
|
6 |
-
<title>%TITLE%</title>
|
7 |
-
|
8 |
-
<style type='text/css'>
|
9 |
-
/* VERSION %VERSION% */
|
10 |
-
%ADDFONTS%
|
11 |
-
html,
|
12 |
-
body {
|
13 |
-
margin:0;
|
14 |
-
padding:0;
|
15 |
-
height:100%;
|
16 |
-
font-size:100%;
|
17 |
-
}
|
18 |
-
#wrapper {
|
19 |
-
min-height:100%;
|
20 |
-
position:relative;
|
21 |
-
}
|
22 |
-
#header {
|
23 |
-
padding:10px;
|
24 |
-
}
|
25 |
-
#content {
|
26 |
-
padding-bottom:100px; /* Height of the footer element */
|
27 |
-
}
|
28 |
-
#footer {
|
29 |
-
width:100%;
|
30 |
-
height:60px;
|
31 |
-
line-height:60px;
|
32 |
-
position:absolute;
|
33 |
-
bottom:0;
|
34 |
-
left:0;
|
35 |
-
text-align: center;
|
36 |
-
}
|
37 |
-
#logo {
|
38 |
-
max-width: 100%;
|
39 |
-
height: auto;
|
40 |
-
text-align: center;
|
41 |
-
}
|
42 |
-
img, object, embed, canvas, video, audio, picture {
|
43 |
-
max-width: 100%;
|
44 |
-
height: auto;
|
45 |
-
}
|
46 |
-
div.bloc {
|
47 |
-
width:80%; /* largeur du bloc */
|
48 |
-
padding:10px; /* aération interne du bloc */
|
49 |
-
vertical-align:middle;
|
50 |
-
display:inline-block;
|
51 |
-
line-height:1.2; /* on rétablit le line-height */
|
52 |
-
text-align:center; /* ... et l'alignement du texte */
|
53 |
-
}
|
54 |
-
.wpm_social {
|
55 |
-
padding: 0 45px;
|
56 |
-
text-align: center;
|
57 |
-
}
|
58 |
-
@media (max-width: 640px) {
|
59 |
-
body {
|
60 |
-
font-size:1.2rem;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
@media (min-width: 640px) {
|
64 |
-
body {
|
65 |
-
font-size:1rem;
|
66 |
-
}
|
67 |
-
}
|
68 |
-
@media (min-width:960px) {
|
69 |
-
body {
|
70 |
-
font-size:1.2rem;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
@media (min-width:1100px) {
|
74 |
-
body {
|
75 |
-
font-size:1.5rem;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
/* On ajoute les styles */
|
79 |
-
%ADDSTYLE%
|
80 |
-
%ADDSTYLEWYSIJA%
|
81 |
-
</style>
|
82 |
-
|
83 |
-
<!--[if lt IE 7]>
|
84 |
-
<style type="text/css">
|
85 |
-
#wrapper { height:100%; }
|
86 |
-
div.bloc { display:inline; /* correctif inline-block*/ }
|
87 |
-
div.conteneur > span { zoom:1; /* layout */ }
|
88 |
-
</style>
|
89 |
-
<![endif]-->
|
90 |
-
%ANALYTICS%
|
91 |
-
%HEADERCODE%
|
92 |
-
%CSSSLIDER%
|
93 |
-
%SCRIPTSLIDER%
|
94 |
-
%SCRIPTSLIDESHOW%
|
95 |
-
</head>
|
96 |
-
|
97 |
-
<body>
|
98 |
-
|
99 |
-
<div id="wrapper">
|
100 |
-
|
101 |
-
%TOPSOCIALICON%
|
102 |
-
<!-- #header -->
|
103 |
-
|
104 |
-
<div id="content">
|
105 |
-
%SLIDESHOWAL%
|
106 |
-
%LOGOIMAGE%
|
107 |
-
%SLIDESHOWBL%
|
108 |
-
<h3>%TITRE%</h3>
|
109 |
-
<p>%TEXTE%</p>
|
110 |
-
%SLIDESHOWBT%
|
111 |
-
%COUNTER%
|
112 |
-
%NEWSLETTER%
|
113 |
-
%BOTTOMSOCIALICON%
|
114 |
-
</div><!-- #content -->
|
115 |
-
|
116 |
-
<div id="footer">
|
117 |
-
<div class="bloc">%COPYRIGHT%</div>
|
118 |
-
<span></span>
|
119 |
-
</div><!-- #footer -->
|
120 |
-
|
121 |
-
</div><!-- #wrapper -->
|
122 |
-
|
123 |
-
</body>
|
124 |
-
|
125 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wp-maintenance-admin.php
CHANGED
@@ -228,7 +228,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
228 |
|
229 |
<li>
|
230 |
<p>
|
231 |
-
|
232 |
</p>
|
233 |
</li>
|
234 |
</ul>
|
@@ -398,7 +398,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
398 |
|
399 |
<li>
|
400 |
<p>
|
401 |
-
|
402 |
</p>
|
403 |
</li>
|
404 |
|
@@ -558,7 +558,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
558 |
|
559 |
<li>
|
560 |
<p>
|
561 |
-
|
562 |
</p>
|
563 |
</li>
|
564 |
|
@@ -649,7 +649,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
649 |
<li> </li>
|
650 |
<li>
|
651 |
<p>
|
652 |
-
|
653 |
</p>
|
654 |
</li>
|
655 |
</ul>
|
@@ -707,7 +707,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
707 |
|
708 |
<li>
|
709 |
<p>
|
710 |
-
|
711 |
</p>
|
712 |
</li>
|
713 |
</ul>
|
@@ -773,7 +773,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
773 |
|
774 |
<li>
|
775 |
<p>
|
776 |
-
|
777 |
</p>
|
778 |
</li>
|
779 |
|
@@ -790,7 +790,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
790 |
<ul>
|
791 |
|
792 |
<li>
|
793 |
-
<?php _e('This plugin has been developed for you for free by <a href="http://www.restezconnectes.fr" target="_blank">Florent Maillefaud</
|
794 |
</li>
|
795 |
<li> </li>
|
796 |
<li>
|
228 |
|
229 |
<li>
|
230 |
<p>
|
231 |
+
<?php submit_button(); ?>
|
232 |
</p>
|
233 |
</li>
|
234 |
</ul>
|
398 |
|
399 |
<li>
|
400 |
<p>
|
401 |
+
<?php submit_button(); ?>
|
402 |
</p>
|
403 |
</li>
|
404 |
|
558 |
|
559 |
<li>
|
560 |
<p>
|
561 |
+
<?php submit_button(); ?>
|
562 |
</p>
|
563 |
</li>
|
564 |
|
649 |
<li> </li>
|
650 |
<li>
|
651 |
<p>
|
652 |
+
<?php submit_button(); ?>
|
653 |
</p>
|
654 |
</li>
|
655 |
</ul>
|
707 |
|
708 |
<li>
|
709 |
<p>
|
710 |
+
<?php submit_button(); ?>
|
711 |
</p>
|
712 |
</li>
|
713 |
</ul>
|
773 |
|
774 |
<li>
|
775 |
<p>
|
776 |
+
<?php submit_button(); ?>
|
777 |
</p>
|
778 |
</li>
|
779 |
|
790 |
<ul>
|
791 |
|
792 |
<li>
|
793 |
+
<?php _e('This plugin has been developed for you for free by <a href="http://www.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'); ?>
|
794 |
</li>
|
795 |
<li> </li>
|
796 |
<li>
|
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.7.
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
@@ -14,6 +14,7 @@
|
|
14 |
|
15 |
/*
|
16 |
Change Log
|
|
|
17 |
28/04/2016 - Prêt pour WordPress 4.5.1 / Ajout d'un icon de réseaux sociaux.
|
18 |
07/04/2016 - ajout d'un slider
|
19 |
27/01/2016 - Corrige le bug compteur, ajout selection google font
|
@@ -78,10 +79,7 @@ function wpm_plugin_actions ( $links ) {
|
|
78 |
add_action( 'init', 'wpm_date_picker' );
|
79 |
function wpm_date_picker() {
|
80 |
wp_enqueue_script( 'jquery' );
|
81 |
-
//wp_enqueue_script( 'jquery-ui-core' );
|
82 |
wp_enqueue_script('jquery-ui-datepicker');
|
83 |
-
//wp_enqueue_script( 'jquery-datepicker', WP_PLUGIN_URL.'/'.WPSPO_NAME_DIR.'/wpspo-js/jquery.ui.datepicker.min.js', array('jquery', 'jquery-ui-core' ) );
|
84 |
-
//wp_enqueue_script('jquery-ui-fr-datepicker', WP_PLUGIN_URL.'/'.WPSPO_NAME_DIR.'/wpspo-js/jquery.ui.datepicker-fr.js', array('jquery-ui-datepicker'));
|
85 |
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
|
86 |
|
87 |
}
|
@@ -93,7 +91,7 @@ function wpm_make_multilang() {
|
|
93 |
}
|
94 |
|
95 |
/* Ajoute la version dans les options */
|
96 |
-
define('WPM_VERSION', '2.7.
|
97 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
98 |
if( !get_option('wp_maintenance_version') ) {
|
99 |
add_option('wp_maintenance_version', $option);
|
@@ -269,10 +267,6 @@ function wpm_print_footer_scripts() {
|
|
269 |
wp_enqueue_script('wpm-timepicker');
|
270 |
wp_register_script('wpm-legacy', WP_PLUGIN_URL.'/wp-maintenance/js/lib/legacy.js');
|
271 |
wp_enqueue_script('wpm-legacy');
|
272 |
-
//wp_register_script('wpm-footerscripts', WP_PLUGIN_URL.'/wp-maintenance/js/wpm-footer-scripts.js');
|
273 |
-
//wp_enqueue_script('wpm-footerscripts');
|
274 |
-
//$url = WP_PLUGIN_URL.'/wp-maintenance/js/wpm-footer-scripts.js';
|
275 |
-
//echo '"<script type="text/javascript" src="'. $url . '"></script>"';
|
276 |
}
|
277 |
|
278 |
add_action( 'admin_enqueue_scripts', 'wpm_enqueue_color_picker' );
|
@@ -291,7 +285,6 @@ if (isset($_GET['page']) && $_GET['page'] == 'wp-maintenance/wp-maintenance.php'
|
|
291 |
add_action('admin_print_scripts', 'wpm_admin_scripts');
|
292 |
add_action('admin_print_styles', 'wpm_admin_styles');
|
293 |
add_action('admin_print_scripts', 'wpm_admin_scripts');
|
294 |
-
//add_action('admin_footer', 'wpm_print_scripts');
|
295 |
}
|
296 |
|
297 |
function wpm_change_active($value = 0) {
|
@@ -349,7 +342,7 @@ function wpm_social_shortcode( $atts ) {
|
|
349 |
$paramSocial = get_option('wp_maintenance_social');
|
350 |
$paramSocialOption = get_option('wp_maintenance_social_options');
|
351 |
$countSocial = wpm_array_value_count($paramSocial);
|
352 |
-
$
|
353 |
// Si on est en mobile on réduit les icones
|
354 |
if ( wp_is_mobile() ) {
|
355 |
$paramSocialOption['size'] = 24;
|
@@ -370,14 +363,14 @@ function wpm_social_shortcode( $atts ) {
|
|
370 |
$iconSize = '';
|
371 |
}
|
372 |
if( isset($paramSocialOption['enable']) && $paramSocialOption['enable']==1 && $countSocial>=1) {
|
373 |
-
$
|
374 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
375 |
if($socialUrl!='') {
|
376 |
-
$
|
377 |
}
|
378 |
}
|
379 |
-
$
|
380 |
-
return $
|
381 |
} else {
|
382 |
// Code
|
383 |
return '';
|
@@ -385,6 +378,138 @@ function wpm_social_shortcode( $atts ) {
|
|
385 |
}
|
386 |
add_shortcode( 'wpm_social', 'wpm_social_shortcode' );
|
387 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
/* Mode Maintenance */
|
389 |
function wpm_maintenance_mode() {
|
390 |
|
@@ -503,7 +628,7 @@ function wpm_maintenance_mode() {
|
|
503 |
if($paramMMode['message_cpt_fin']=='') { $paramMMode['message_cpt_fin'] = ' '; }
|
504 |
|
505 |
|
506 |
-
$template_page =
|
507 |
|
508 |
$Counter = '';
|
509 |
$addFormLogin = '';
|
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.7.5
|
10 |
* Text Domain: wp-maintenance
|
11 |
* Domain Path: /languages/
|
12 |
*/
|
14 |
|
15 |
/*
|
16 |
Change Log
|
17 |
+
02/05/2016 - Retrait du template html et file_get_content
|
18 |
28/04/2016 - Prêt pour WordPress 4.5.1 / Ajout d'un icon de réseaux sociaux.
|
19 |
07/04/2016 - ajout d'un slider
|
20 |
27/01/2016 - Corrige le bug compteur, ajout selection google font
|
79 |
add_action( 'init', 'wpm_date_picker' );
|
80 |
function wpm_date_picker() {
|
81 |
wp_enqueue_script( 'jquery' );
|
|
|
82 |
wp_enqueue_script('jquery-ui-datepicker');
|
|
|
|
|
83 |
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
|
84 |
|
85 |
}
|
91 |
}
|
92 |
|
93 |
/* Ajoute la version dans les options */
|
94 |
+
define('WPM_VERSION', '2.7.5');
|
95 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
96 |
if( !get_option('wp_maintenance_version') ) {
|
97 |
add_option('wp_maintenance_version', $option);
|
267 |
wp_enqueue_script('wpm-timepicker');
|
268 |
wp_register_script('wpm-legacy', WP_PLUGIN_URL.'/wp-maintenance/js/lib/legacy.js');
|
269 |
wp_enqueue_script('wpm-legacy');
|
|
|
|
|
|
|
|
|
270 |
}
|
271 |
|
272 |
add_action( 'admin_enqueue_scripts', 'wpm_enqueue_color_picker' );
|
285 |
add_action('admin_print_scripts', 'wpm_admin_scripts');
|
286 |
add_action('admin_print_styles', 'wpm_admin_styles');
|
287 |
add_action('admin_print_scripts', 'wpm_admin_scripts');
|
|
|
288 |
}
|
289 |
|
290 |
function wpm_change_active($value = 0) {
|
342 |
$paramSocial = get_option('wp_maintenance_social');
|
343 |
$paramSocialOption = get_option('wp_maintenance_social_options');
|
344 |
$countSocial = wpm_array_value_count($paramSocial);
|
345 |
+
$contentSocial = '';
|
346 |
// Si on est en mobile on réduit les icones
|
347 |
if ( wp_is_mobile() ) {
|
348 |
$paramSocialOption['size'] = 24;
|
363 |
$iconSize = '';
|
364 |
}
|
365 |
if( isset($paramSocialOption['enable']) && $paramSocialOption['enable']==1 && $countSocial>=1) {
|
366 |
+
$contentSocial .= '<div id="wpm-social-footer" class="wpm_social"><ul class="wpm_horizontal">';
|
367 |
foreach($paramSocial as $socialName=>$socialUrl) {
|
368 |
if($socialUrl!='') {
|
369 |
+
$contentSocial .= '<li><a href="'.$socialUrl.'" target="_blank"><img src="'.$srcIcon.$socialName.'.png" alt="'.$paramSocialOption['texte'].' '.ucfirst($socialName).'" '.$iconSize.' title="'.$paramSocialOption['texte'].' '.ucfirst($socialName).'" /></a></li>';
|
370 |
}
|
371 |
}
|
372 |
+
$contentSocial .='</ul></div>';
|
373 |
+
return $contentSocial;
|
374 |
} else {
|
375 |
// Code
|
376 |
return '';
|
378 |
}
|
379 |
add_shortcode( 'wpm_social', 'wpm_social_shortcode' );
|
380 |
|
381 |
+
function wpm_get_template() {
|
382 |
+
|
383 |
+
return '
|
384 |
+
<!DOCTYPE html>
|
385 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
386 |
+
<head>
|
387 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
388 |
+
<meta name="viewport" content="width=device-width, user-scalable=yes" />
|
389 |
+
<title>%TITLE%</title>
|
390 |
+
|
391 |
+
<style type=\'text/css\'>
|
392 |
+
/* VERSION %VERSION% */
|
393 |
+
%ADDFONTS%
|
394 |
+
html,
|
395 |
+
body {
|
396 |
+
margin:0;
|
397 |
+
padding:0;
|
398 |
+
height:100%;
|
399 |
+
font-size:100%;
|
400 |
+
}
|
401 |
+
#wrapper {
|
402 |
+
min-height:100%;
|
403 |
+
position:relative;
|
404 |
+
}
|
405 |
+
#header {
|
406 |
+
padding:10px;
|
407 |
+
}
|
408 |
+
#content {
|
409 |
+
padding-bottom:100px; /* Height of the footer element */
|
410 |
+
}
|
411 |
+
#footer {
|
412 |
+
width:100%;
|
413 |
+
height:60px;
|
414 |
+
line-height:60px;
|
415 |
+
position:absolute;
|
416 |
+
bottom:0;
|
417 |
+
left:0;
|
418 |
+
text-align: center;
|
419 |
+
}
|
420 |
+
#logo {
|
421 |
+
max-width: 100%;
|
422 |
+
height: auto;
|
423 |
+
text-align: center;
|
424 |
+
}
|
425 |
+
img, object, embed, canvas, video, audio, picture {
|
426 |
+
max-width: 100%;
|
427 |
+
height: auto;
|
428 |
+
}
|
429 |
+
div.bloc {
|
430 |
+
width:80%; /* largeur du bloc */
|
431 |
+
padding:10px; /* aération interne du bloc */
|
432 |
+
vertical-align:middle;
|
433 |
+
display:inline-block;
|
434 |
+
line-height:1.2; /* on rétablit le line-height */
|
435 |
+
text-align:center; /* ... et l\'alignement du texte */
|
436 |
+
}
|
437 |
+
.wpm_social {
|
438 |
+
padding: 0 45px;
|
439 |
+
text-align: center;
|
440 |
+
}
|
441 |
+
@media (max-width: 640px) {
|
442 |
+
body {
|
443 |
+
font-size:1.2rem;
|
444 |
+
}
|
445 |
+
}
|
446 |
+
@media (min-width: 640px) {
|
447 |
+
body {
|
448 |
+
font-size:1rem;
|
449 |
+
}
|
450 |
+
}
|
451 |
+
@media (min-width:960px) {
|
452 |
+
body {
|
453 |
+
font-size:1.2rem;
|
454 |
+
}
|
455 |
+
}
|
456 |
+
@media (min-width:1100px) {
|
457 |
+
body {
|
458 |
+
font-size:1.5rem;
|
459 |
+
}
|
460 |
+
}
|
461 |
+
/* On ajoute les styles */
|
462 |
+
%ADDSTYLE%
|
463 |
+
%ADDSTYLEWYSIJA%
|
464 |
+
</style>
|
465 |
+
|
466 |
+
<!--[if lt IE 7]>
|
467 |
+
<style type="text/css">
|
468 |
+
#wrapper { height:100%; }
|
469 |
+
div.bloc { display:inline; /* correctif inline-block*/ }
|
470 |
+
div.conteneur > span { zoom:1; /* layout */ }
|
471 |
+
</style>
|
472 |
+
<![endif]-->
|
473 |
+
%ANALYTICS%
|
474 |
+
%HEADERCODE%
|
475 |
+
%CSSSLIDER%
|
476 |
+
%SCRIPTSLIDER%
|
477 |
+
%SCRIPTSLIDESHOW%
|
478 |
+
</head>
|
479 |
+
|
480 |
+
<body>
|
481 |
+
|
482 |
+
<div id="wrapper">
|
483 |
+
|
484 |
+
%TOPSOCIALICON%
|
485 |
+
<!-- #header -->
|
486 |
+
|
487 |
+
<div id="content">
|
488 |
+
%SLIDESHOWAL%
|
489 |
+
%LOGOIMAGE%
|
490 |
+
%SLIDESHOWBL%
|
491 |
+
<h3>%TITRE%</h3>
|
492 |
+
<p>%TEXTE%</p>
|
493 |
+
%SLIDESHOWBT%
|
494 |
+
%COUNTER%
|
495 |
+
%NEWSLETTER%
|
496 |
+
%BOTTOMSOCIALICON%
|
497 |
+
</div><!-- #content -->
|
498 |
+
|
499 |
+
<div id="footer">
|
500 |
+
<div class="bloc">%COPYRIGHT%</div>
|
501 |
+
<span></span>
|
502 |
+
</div><!-- #footer -->
|
503 |
+
|
504 |
+
</div><!-- #wrapper -->
|
505 |
+
|
506 |
+
</body>
|
507 |
+
|
508 |
+
</html>
|
509 |
+
';
|
510 |
+
|
511 |
+
}
|
512 |
+
|
513 |
/* Mode Maintenance */
|
514 |
function wpm_maintenance_mode() {
|
515 |
|
628 |
if($paramMMode['message_cpt_fin']=='') { $paramMMode['message_cpt_fin'] = ' '; }
|
629 |
|
630 |
|
631 |
+
$template_page = wpm_get_template();
|
632 |
|
633 |
$Counter = '';
|
634 |
$addFormLogin = '';
|