Version Description
- SECURITY UPDATE
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 5.0.7 |
Comparing to | |
See all releases |
Code changes from version 5.0.6 to 5.0.7
- classes/wp-maintenance.php +6 -6
- languages/wp-maintenance-fr_FR.mo +0 -0
- languages/wp-maintenance-fr_FR.po +43 -39
- languages/wp-maintenance.pot +42 -38
- readme.txt +4 -1
- themes/default/functions.php +37 -37
- themes/default/index.php +1 -1
- views/wp-maintenance-countdown.php +1 -1
- views/wp-maintenance-css.php +1 -1
- views/wp-maintenance-dashboard.php +13 -13
- views/wp-maintenance-picture.php +27 -15
- views/wp-maintenance-settings.php +3 -3
- wp-maintenance.php +2 -2
classes/wp-maintenance.php
CHANGED
@@ -672,7 +672,7 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
672 |
if( isset($paramMMode['id_pages']) && !empty($paramMMode['id_pages']) ) {
|
673 |
$listPageId = explode(',', $paramMMode['id_pages']);
|
674 |
foreach($listPageId as $keyPageId => $valPageId) {
|
675 |
-
if( trim($valPageId) == $post->ID ) {
|
676 |
$statusPageActive = 0;
|
677 |
}
|
678 |
}
|
@@ -710,21 +710,21 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
710 |
require_once( WPM_DIR.'/themes/default/functions.php' );
|
711 |
|
712 |
$template_tags = array (
|
713 |
-
"{TitleSEO}" => wpm_title_seo(),
|
714 |
-
"{MetaDescription}" => wpm_metadescription(),
|
715 |
"{HeaderCode}" => wpm_headercode(),
|
716 |
"{Head}" => wpm_head(),
|
717 |
"{Logo}" => wpm_logo(),
|
718 |
"{Version}" => WPM_VERSION,
|
719 |
-
"{Title}" => wpm_title(),
|
720 |
-
"{Text}" => wpm_text(),
|
721 |
"{Favicon}" => wpm_favicon(),
|
722 |
"{CustomCSS}" => wpm_customcss(),
|
723 |
"{Analytics}" => wpm_analytics(),
|
724 |
"{TopSocialIcon}" => wpm_social_position("top"),
|
725 |
"{BottomSocialIcon}" => wpm_social_position("bottom"),
|
726 |
"{Copyrights}" => wpm_copyrights(),
|
727 |
-
"{AddStyleWysija}" => wpm_stylenewsletter(),
|
728 |
"{Newsletter}" => wpm_newsletter(),
|
729 |
"{SliderCSS}" => WPM_Slider::slider_css(),
|
730 |
"{ScriptSlider}" => WPM_Slider::slider_scripts(),
|
672 |
if( isset($paramMMode['id_pages']) && !empty($paramMMode['id_pages']) ) {
|
673 |
$listPageId = explode(',', $paramMMode['id_pages']);
|
674 |
foreach($listPageId as $keyPageId => $valPageId) {
|
675 |
+
if( isset($post->ID) && trim($valPageId) == $post->ID ) {
|
676 |
$statusPageActive = 0;
|
677 |
}
|
678 |
}
|
710 |
require_once( WPM_DIR.'/themes/default/functions.php' );
|
711 |
|
712 |
$template_tags = array (
|
713 |
+
"{TitleSEO}" => sanitize_text_field(wpm_title_seo()),
|
714 |
+
"{MetaDescription}" => sanitize_text_field(wpm_metadescription()),
|
715 |
"{HeaderCode}" => wpm_headercode(),
|
716 |
"{Head}" => wpm_head(),
|
717 |
"{Logo}" => wpm_logo(),
|
718 |
"{Version}" => WPM_VERSION,
|
719 |
+
"{Title}" => sanitize_text_field(wpm_title()),
|
720 |
+
"{Text}" => sanitize_text_field(wpm_text()),
|
721 |
"{Favicon}" => wpm_favicon(),
|
722 |
"{CustomCSS}" => wpm_customcss(),
|
723 |
"{Analytics}" => wpm_analytics(),
|
724 |
"{TopSocialIcon}" => wpm_social_position("top"),
|
725 |
"{BottomSocialIcon}" => wpm_social_position("bottom"),
|
726 |
"{Copyrights}" => wpm_copyrights(),
|
727 |
+
"{AddStyleWysija}" => sanitize_text_field(wpm_stylenewsletter()),
|
728 |
"{Newsletter}" => wpm_newsletter(),
|
729 |
"{SliderCSS}" => WPM_Slider::slider_css(),
|
730 |
"{ScriptSlider}" => WPM_Slider::slider_scripts(),
|
languages/wp-maintenance-fr_FR.mo
CHANGED
Binary file
|
languages/wp-maintenance-fr_FR.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
-
"POT-Creation-Date: 2019-11-
|
5 |
-
"PO-Revision-Date: 2019-11-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
@@ -243,9 +243,9 @@ msgstr "Taille :"
|
|
243 |
#: views/wp-maintenance-dashboard.php:149
|
244 |
#: views/wp-maintenance-dashboard.php:200
|
245 |
#: views/wp-maintenance-dashboard.php:285
|
246 |
-
#: views/wp-maintenance-dashboard.php:302 views/wp-maintenance-picture.php:
|
247 |
-
#: views/wp-maintenance-picture.php:
|
248 |
-
#: views/wp-maintenance-picture.php:
|
249 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
250 |
msgid "Yes"
|
251 |
msgstr "Oui"
|
@@ -261,9 +261,9 @@ msgstr "Oui"
|
|
261 |
#: views/wp-maintenance-dashboard.php:151
|
262 |
#: views/wp-maintenance-dashboard.php:202
|
263 |
#: views/wp-maintenance-dashboard.php:287
|
264 |
-
#: views/wp-maintenance-dashboard.php:304 views/wp-maintenance-picture.php:
|
265 |
-
#: views/wp-maintenance-picture.php:
|
266 |
-
#: views/wp-maintenance-picture.php:
|
267 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
268 |
msgid "No"
|
269 |
msgstr "Non"
|
@@ -288,7 +288,7 @@ msgstr "Couleur :"
|
|
288 |
msgid "Opacity:"
|
289 |
msgstr "Opacité :"
|
290 |
|
291 |
-
#: views/wp-maintenance-colors.php:155 views/wp-maintenance-picture.php:
|
292 |
msgid "Width:"
|
293 |
msgstr "Largeur :"
|
294 |
|
@@ -559,7 +559,7 @@ msgstr "Titre et Texte de la page maintenance :"
|
|
559 |
msgid "Title:"
|
560 |
msgstr "Titre :"
|
561 |
|
562 |
-
#: views/wp-maintenance-dashboard.php:77 views/wp-maintenance-picture.php:
|
563 |
msgid "Text:"
|
564 |
msgstr "Texte :"
|
565 |
|
@@ -603,13 +603,13 @@ msgstr "Méta description SEO"
|
|
603 |
msgid "Add a favicon"
|
604 |
msgstr "Ajouter un favicon"
|
605 |
|
606 |
-
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:
|
607 |
-
#: views/wp-maintenance-picture.php:
|
608 |
msgid "Enter a URL or upload an image."
|
609 |
msgstr "Entrez une url ou mettez en ligne une image."
|
610 |
|
611 |
-
#: views/wp-maintenance-dashboard.php:170 views/wp-maintenance-picture.php:
|
612 |
-
#: views/wp-maintenance-picture.php:
|
613 |
msgid "Media Image Library"
|
614 |
msgstr "Bibliothèque d'Images"
|
615 |
|
@@ -663,7 +663,7 @@ msgstr "Choisissez la taille des icônes :"
|
|
663 |
msgid "Choose icons style:"
|
664 |
msgstr "Choisissez le style des icônes :"
|
665 |
|
666 |
-
#: views/wp-maintenance-dashboard.php:265 views/wp-maintenance-picture.php:
|
667 |
msgid "Position:"
|
668 |
msgstr "Position :"
|
669 |
|
@@ -716,15 +716,15 @@ msgstr "Entrez le Shortcode de la newletter ici :"
|
|
716 |
msgid "Or enter your newletter iframe code here:"
|
717 |
msgstr "Ou entrez le code iframe de la newsletter ici :"
|
718 |
|
719 |
-
#: views/wp-maintenance-picture.php:
|
720 |
msgid "Picture"
|
721 |
msgstr "Image"
|
722 |
|
723 |
-
#: views/wp-maintenance-picture.php:
|
724 |
msgid "Header picture"
|
725 |
msgstr "Image d'entête"
|
726 |
|
727 |
-
#: views/wp-maintenance-picture.php:
|
728 |
msgid ""
|
729 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
730 |
"image with the WordPress media uploader)"
|
@@ -732,87 +732,91 @@ msgstr ""
|
|
732 |
"Url de l'image pour remplacer le logo WordPress par défaut. (Vous pouvez "
|
733 |
"envoyer votre image avec l'outil d'envoi de médias interne à WordPress)"
|
734 |
|
735 |
-
#: views/wp-maintenance-picture.php:
|
736 |
msgid "Your Logo width (Enter in pixels). Default: 450px"
|
737 |
msgstr "Largeur de votre logo (entrez-la en pixels). Par défaut : 450px"
|
738 |
|
739 |
-
#: views/wp-maintenance-picture.php:
|
740 |
msgid "Your Logo Height (Enter in pixels). Default: 450px"
|
741 |
msgstr "Hauteur de votre logo (entrez-la en pixels). Par défaut : 450px"
|
742 |
|
743 |
-
#: views/wp-maintenance-picture.php:
|
744 |
msgid "You use this picture:"
|
745 |
msgstr "Image actuelle :"
|
746 |
|
747 |
-
#: views/wp-maintenance-picture.php:
|
|
|
|
|
|
|
|
|
748 |
msgid "Background picture or pattern"
|
749 |
msgstr "Image de fond ou un modèle"
|
750 |
|
751 |
-
#: views/wp-maintenance-picture.php:
|
752 |
msgid "Background picture options"
|
753 |
msgstr "Options de l'image de fond"
|
754 |
|
755 |
-
#: views/wp-maintenance-picture.php:
|
756 |
msgid "Fixed"
|
757 |
msgstr "Fixe"
|
758 |
|
759 |
-
#: views/wp-maintenance-picture.php:
|
760 |
msgid "Background Opacity"
|
761 |
msgstr "Opacité de l’arrière-plan"
|
762 |
|
763 |
-
#: views/wp-maintenance-picture.php:
|
764 |
msgid "You use this background picture:"
|
765 |
msgstr "Image de fond actuelle :"
|
766 |
|
767 |
-
#: views/wp-maintenance-picture.php:
|
768 |
msgid "Or choose a pattern:"
|
769 |
msgstr "Ou choisissez un pattern de fond :"
|
770 |
|
771 |
-
#: views/wp-maintenance-picture.php:
|
772 |
msgid "NO PATTERN"
|
773 |
msgstr "AUCUN PATTERN"
|
774 |
|
775 |
-
#: views/wp-maintenance-picture.php:
|
776 |
msgid "You use this pattern:"
|
777 |
msgstr "Vous utilisez ce modèle :"
|
778 |
|
779 |
-
#: views/wp-maintenance-picture.php:
|
780 |
msgid "Enable Slider"
|
781 |
msgstr "Activer le Slider"
|
782 |
|
783 |
-
#: views/wp-maintenance-picture.php:
|
784 |
msgid "Slider image options"
|
785 |
msgstr "Options du Slider"
|
786 |
|
787 |
-
#: views/wp-maintenance-picture.php:
|
788 |
msgid "Speed:"
|
789 |
msgstr "Vitesse :"
|
790 |
|
791 |
-
#: views/wp-maintenance-picture.php:
|
792 |
msgid "Display Auto Slider:"
|
793 |
msgstr "Afficher le Slider en auto :"
|
794 |
|
795 |
-
#: views/wp-maintenance-picture.php:
|
796 |
msgid "Display button navigation:"
|
797 |
msgstr "Afficher les boutons navigation :"
|
798 |
|
799 |
-
#: views/wp-maintenance-picture.php:
|
800 |
msgid "Above logo"
|
801 |
msgstr "Au-dessus du logo"
|
802 |
|
803 |
-
#: views/wp-maintenance-picture.php:
|
804 |
msgid "Below logo"
|
805 |
msgstr "Au-dessous du logo"
|
806 |
|
807 |
-
#: views/wp-maintenance-picture.php:
|
808 |
msgid "Below title & text"
|
809 |
msgstr "Au-dessous du titre & texte"
|
810 |
|
811 |
-
#: views/wp-maintenance-picture.php:
|
812 |
msgid "Link:"
|
813 |
msgstr "Lien :"
|
814 |
|
815 |
-
#: views/wp-maintenance-picture.php:
|
816 |
msgid "Delete this slide"
|
817 |
msgstr "Supprimer ce slide"
|
818 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
+
"POT-Creation-Date: 2019-11-19 10:36+0100\n"
|
5 |
+
"PO-Revision-Date: 2019-11-19 10:36+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
243 |
#: views/wp-maintenance-dashboard.php:149
|
244 |
#: views/wp-maintenance-dashboard.php:200
|
245 |
#: views/wp-maintenance-dashboard.php:285
|
246 |
+
#: views/wp-maintenance-dashboard.php:302 views/wp-maintenance-picture.php:116
|
247 |
+
#: views/wp-maintenance-picture.php:182 views/wp-maintenance-picture.php:214
|
248 |
+
#: views/wp-maintenance-picture.php:221 views/wp-maintenance-settings.php:69
|
249 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
250 |
msgid "Yes"
|
251 |
msgstr "Oui"
|
261 |
#: views/wp-maintenance-dashboard.php:151
|
262 |
#: views/wp-maintenance-dashboard.php:202
|
263 |
#: views/wp-maintenance-dashboard.php:287
|
264 |
+
#: views/wp-maintenance-dashboard.php:304 views/wp-maintenance-picture.php:118
|
265 |
+
#: views/wp-maintenance-picture.php:184 views/wp-maintenance-picture.php:216
|
266 |
+
#: views/wp-maintenance-picture.php:223 views/wp-maintenance-settings.php:71
|
267 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
268 |
msgid "No"
|
269 |
msgstr "Non"
|
288 |
msgid "Opacity:"
|
289 |
msgstr "Opacité :"
|
290 |
|
291 |
+
#: views/wp-maintenance-colors.php:155 views/wp-maintenance-picture.php:206
|
292 |
msgid "Width:"
|
293 |
msgstr "Largeur :"
|
294 |
|
559 |
msgid "Title:"
|
560 |
msgstr "Titre :"
|
561 |
|
562 |
+
#: views/wp-maintenance-dashboard.php:77 views/wp-maintenance-picture.php:268
|
563 |
msgid "Text:"
|
564 |
msgstr "Texte :"
|
565 |
|
603 |
msgid "Add a favicon"
|
604 |
msgstr "Ajouter un favicon"
|
605 |
|
606 |
+
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:92
|
607 |
+
#: views/wp-maintenance-picture.php:128
|
608 |
msgid "Enter a URL or upload an image."
|
609 |
msgstr "Entrez une url ou mettez en ligne une image."
|
610 |
|
611 |
+
#: views/wp-maintenance-dashboard.php:170 views/wp-maintenance-picture.php:94
|
612 |
+
#: views/wp-maintenance-picture.php:130 views/wp-maintenance-picture.php:239
|
613 |
msgid "Media Image Library"
|
614 |
msgstr "Bibliothèque d'Images"
|
615 |
|
663 |
msgid "Choose icons style:"
|
664 |
msgstr "Choisissez le style des icônes :"
|
665 |
|
666 |
+
#: views/wp-maintenance-dashboard.php:265 views/wp-maintenance-picture.php:229
|
667 |
msgid "Position:"
|
668 |
msgstr "Position :"
|
669 |
|
716 |
msgid "Or enter your newletter iframe code here:"
|
717 |
msgstr "Ou entrez le code iframe de la newsletter ici :"
|
718 |
|
719 |
+
#: views/wp-maintenance-picture.php:82
|
720 |
msgid "Picture"
|
721 |
msgstr "Image"
|
722 |
|
723 |
+
#: views/wp-maintenance-picture.php:91
|
724 |
msgid "Header picture"
|
725 |
msgstr "Image d'entête"
|
726 |
|
727 |
+
#: views/wp-maintenance-picture.php:95
|
728 |
msgid ""
|
729 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
730 |
"image with the WordPress media uploader)"
|
732 |
"Url de l'image pour remplacer le logo WordPress par défaut. (Vous pouvez "
|
733 |
"envoyer votre image avec l'outil d'envoi de médias interne à WordPress)"
|
734 |
|
735 |
+
#: views/wp-maintenance-picture.php:96
|
736 |
msgid "Your Logo width (Enter in pixels). Default: 450px"
|
737 |
msgstr "Largeur de votre logo (entrez-la en pixels). Par défaut : 450px"
|
738 |
|
739 |
+
#: views/wp-maintenance-picture.php:97
|
740 |
msgid "Your Logo Height (Enter in pixels). Default: 450px"
|
741 |
msgstr "Hauteur de votre logo (entrez-la en pixels). Par défaut : 450px"
|
742 |
|
743 |
+
#: views/wp-maintenance-picture.php:102
|
744 |
msgid "You use this picture:"
|
745 |
msgstr "Image actuelle :"
|
746 |
|
747 |
+
#: views/wp-maintenance-picture.php:102 views/wp-maintenance-picture.php:144
|
748 |
+
msgid "Remove"
|
749 |
+
msgstr "Supprimer"
|
750 |
+
|
751 |
+
#: views/wp-maintenance-picture.php:112
|
752 |
msgid "Background picture or pattern"
|
753 |
msgstr "Image de fond ou un modèle"
|
754 |
|
755 |
+
#: views/wp-maintenance-picture.php:131
|
756 |
msgid "Background picture options"
|
757 |
msgstr "Options de l'image de fond"
|
758 |
|
759 |
+
#: views/wp-maintenance-picture.php:137
|
760 |
msgid "Fixed"
|
761 |
msgstr "Fixe"
|
762 |
|
763 |
+
#: views/wp-maintenance-picture.php:138
|
764 |
msgid "Background Opacity"
|
765 |
msgstr "Opacité de l’arrière-plan"
|
766 |
|
767 |
+
#: views/wp-maintenance-picture.php:143
|
768 |
msgid "You use this background picture:"
|
769 |
msgstr "Image de fond actuelle :"
|
770 |
|
771 |
+
#: views/wp-maintenance-picture.php:151
|
772 |
msgid "Or choose a pattern:"
|
773 |
msgstr "Ou choisissez un pattern de fond :"
|
774 |
|
775 |
+
#: views/wp-maintenance-picture.php:154
|
776 |
msgid "NO PATTERN"
|
777 |
msgstr "AUCUN PATTERN"
|
778 |
|
779 |
+
#: views/wp-maintenance-picture.php:167
|
780 |
msgid "You use this pattern:"
|
781 |
msgstr "Vous utilisez ce modèle :"
|
782 |
|
783 |
+
#: views/wp-maintenance-picture.php:178
|
784 |
msgid "Enable Slider"
|
785 |
msgstr "Activer le Slider"
|
786 |
|
787 |
+
#: views/wp-maintenance-picture.php:191
|
788 |
msgid "Slider image options"
|
789 |
msgstr "Options du Slider"
|
790 |
|
791 |
+
#: views/wp-maintenance-picture.php:205
|
792 |
msgid "Speed:"
|
793 |
msgstr "Vitesse :"
|
794 |
|
795 |
+
#: views/wp-maintenance-picture.php:211
|
796 |
msgid "Display Auto Slider:"
|
797 |
msgstr "Afficher le Slider en auto :"
|
798 |
|
799 |
+
#: views/wp-maintenance-picture.php:218
|
800 |
msgid "Display button navigation:"
|
801 |
msgstr "Afficher les boutons navigation :"
|
802 |
|
803 |
+
#: views/wp-maintenance-picture.php:231
|
804 |
msgid "Above logo"
|
805 |
msgstr "Au-dessus du logo"
|
806 |
|
807 |
+
#: views/wp-maintenance-picture.php:232
|
808 |
msgid "Below logo"
|
809 |
msgstr "Au-dessous du logo"
|
810 |
|
811 |
+
#: views/wp-maintenance-picture.php:233
|
812 |
msgid "Below title & text"
|
813 |
msgstr "Au-dessous du titre & texte"
|
814 |
|
815 |
+
#: views/wp-maintenance-picture.php:269
|
816 |
msgid "Link:"
|
817 |
msgstr "Lien :"
|
818 |
|
819 |
+
#: views/wp-maintenance-picture.php:272
|
820 |
msgid "Delete this slide"
|
821 |
msgstr "Supprimer ce slide"
|
822 |
|
languages/wp-maintenance.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP Maintenance\n"
|
5 |
-
"POT-Creation-Date: 2019-11-
|
6 |
"PO-Revision-Date: 2015-03-19 11:19+0100\n"
|
7 |
"Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
8 |
"Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
@@ -233,9 +233,9 @@ msgstr ""
|
|
233 |
#: views/wp-maintenance-dashboard.php:149
|
234 |
#: views/wp-maintenance-dashboard.php:200
|
235 |
#: views/wp-maintenance-dashboard.php:285
|
236 |
-
#: views/wp-maintenance-dashboard.php:302 views/wp-maintenance-picture.php:
|
237 |
-
#: views/wp-maintenance-picture.php:
|
238 |
-
#: views/wp-maintenance-picture.php:
|
239 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
240 |
msgid "Yes"
|
241 |
msgstr ""
|
@@ -251,9 +251,9 @@ msgstr ""
|
|
251 |
#: views/wp-maintenance-dashboard.php:151
|
252 |
#: views/wp-maintenance-dashboard.php:202
|
253 |
#: views/wp-maintenance-dashboard.php:287
|
254 |
-
#: views/wp-maintenance-dashboard.php:304 views/wp-maintenance-picture.php:
|
255 |
-
#: views/wp-maintenance-picture.php:
|
256 |
-
#: views/wp-maintenance-picture.php:
|
257 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
258 |
msgid "No"
|
259 |
msgstr ""
|
@@ -278,7 +278,7 @@ msgstr ""
|
|
278 |
msgid "Opacity:"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: views/wp-maintenance-colors.php:155 views/wp-maintenance-picture.php:
|
282 |
msgid "Width:"
|
283 |
msgstr ""
|
284 |
|
@@ -546,7 +546,7 @@ msgstr ""
|
|
546 |
msgid "Title:"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: views/wp-maintenance-dashboard.php:77 views/wp-maintenance-picture.php:
|
550 |
msgid "Text:"
|
551 |
msgstr ""
|
552 |
|
@@ -588,13 +588,13 @@ msgstr ""
|
|
588 |
msgid "Add a favicon"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:
|
592 |
-
#: views/wp-maintenance-picture.php:
|
593 |
msgid "Enter a URL or upload an image."
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: views/wp-maintenance-dashboard.php:170 views/wp-maintenance-picture.php:
|
597 |
-
#: views/wp-maintenance-picture.php:
|
598 |
msgid "Media Image Library"
|
599 |
msgstr ""
|
600 |
|
@@ -644,7 +644,7 @@ msgstr ""
|
|
644 |
msgid "Choose icons style:"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: views/wp-maintenance-dashboard.php:265 views/wp-maintenance-picture.php:
|
648 |
msgid "Position:"
|
649 |
msgstr ""
|
650 |
|
@@ -696,101 +696,105 @@ msgstr ""
|
|
696 |
msgid "Or enter your newletter iframe code here:"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: views/wp-maintenance-picture.php:
|
700 |
msgid "Picture"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: views/wp-maintenance-picture.php:
|
704 |
msgid "Header picture"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: views/wp-maintenance-picture.php:
|
708 |
msgid ""
|
709 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
710 |
"image with the WordPress media uploader)"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: views/wp-maintenance-picture.php:
|
714 |
msgid "Your Logo width (Enter in pixels). Default: 450px"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: views/wp-maintenance-picture.php:
|
718 |
msgid "Your Logo Height (Enter in pixels). Default: 450px"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: views/wp-maintenance-picture.php:
|
722 |
msgid "You use this picture:"
|
723 |
msgstr ""
|
724 |
|
725 |
-
#: views/wp-maintenance-picture.php:
|
|
|
|
|
|
|
|
|
726 |
msgid "Background picture or pattern"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: views/wp-maintenance-picture.php:
|
730 |
msgid "Background picture options"
|
731 |
msgstr ""
|
732 |
|
733 |
-
#: views/wp-maintenance-picture.php:
|
734 |
msgid "Fixed"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: views/wp-maintenance-picture.php:
|
738 |
msgid "Background Opacity"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#: views/wp-maintenance-picture.php:
|
742 |
msgid "You use this background picture:"
|
743 |
msgstr ""
|
744 |
|
745 |
-
#: views/wp-maintenance-picture.php:
|
746 |
msgid "Or choose a pattern:"
|
747 |
msgstr ""
|
748 |
|
749 |
-
#: views/wp-maintenance-picture.php:
|
750 |
msgid "NO PATTERN"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: views/wp-maintenance-picture.php:
|
754 |
msgid "You use this pattern:"
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: views/wp-maintenance-picture.php:
|
758 |
msgid "Enable Slider"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: views/wp-maintenance-picture.php:
|
762 |
msgid "Slider image options"
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: views/wp-maintenance-picture.php:
|
766 |
msgid "Speed:"
|
767 |
msgstr ""
|
768 |
|
769 |
-
#: views/wp-maintenance-picture.php:
|
770 |
msgid "Display Auto Slider:"
|
771 |
msgstr ""
|
772 |
|
773 |
-
#: views/wp-maintenance-picture.php:
|
774 |
msgid "Display button navigation:"
|
775 |
msgstr ""
|
776 |
|
777 |
-
#: views/wp-maintenance-picture.php:
|
778 |
msgid "Above logo"
|
779 |
msgstr ""
|
780 |
|
781 |
-
#: views/wp-maintenance-picture.php:
|
782 |
msgid "Below logo"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: views/wp-maintenance-picture.php:
|
786 |
msgid "Below title & text"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: views/wp-maintenance-picture.php:
|
790 |
msgid "Link:"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: views/wp-maintenance-picture.php:
|
794 |
msgid "Delete this slide"
|
795 |
msgstr ""
|
796 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP Maintenance\n"
|
5 |
+
"POT-Creation-Date: 2019-11-19 10:36+0100\n"
|
6 |
"PO-Revision-Date: 2015-03-19 11:19+0100\n"
|
7 |
"Last-Translator: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
8 |
"Language-Team: Florent Maillefaud <contact@restezconnectes.fr>\n"
|
233 |
#: views/wp-maintenance-dashboard.php:149
|
234 |
#: views/wp-maintenance-dashboard.php:200
|
235 |
#: views/wp-maintenance-dashboard.php:285
|
236 |
+
#: views/wp-maintenance-dashboard.php:302 views/wp-maintenance-picture.php:116
|
237 |
+
#: views/wp-maintenance-picture.php:182 views/wp-maintenance-picture.php:214
|
238 |
+
#: views/wp-maintenance-picture.php:221 views/wp-maintenance-settings.php:69
|
239 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
240 |
msgid "Yes"
|
241 |
msgstr ""
|
251 |
#: views/wp-maintenance-dashboard.php:151
|
252 |
#: views/wp-maintenance-dashboard.php:202
|
253 |
#: views/wp-maintenance-dashboard.php:287
|
254 |
+
#: views/wp-maintenance-dashboard.php:304 views/wp-maintenance-picture.php:118
|
255 |
+
#: views/wp-maintenance-picture.php:184 views/wp-maintenance-picture.php:216
|
256 |
+
#: views/wp-maintenance-picture.php:223 views/wp-maintenance-settings.php:71
|
257 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
258 |
msgid "No"
|
259 |
msgstr ""
|
278 |
msgid "Opacity:"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: views/wp-maintenance-colors.php:155 views/wp-maintenance-picture.php:206
|
282 |
msgid "Width:"
|
283 |
msgstr ""
|
284 |
|
546 |
msgid "Title:"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: views/wp-maintenance-dashboard.php:77 views/wp-maintenance-picture.php:268
|
550 |
msgid "Text:"
|
551 |
msgstr ""
|
552 |
|
588 |
msgid "Add a favicon"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:92
|
592 |
+
#: views/wp-maintenance-picture.php:128
|
593 |
msgid "Enter a URL or upload an image."
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: views/wp-maintenance-dashboard.php:170 views/wp-maintenance-picture.php:94
|
597 |
+
#: views/wp-maintenance-picture.php:130 views/wp-maintenance-picture.php:239
|
598 |
msgid "Media Image Library"
|
599 |
msgstr ""
|
600 |
|
644 |
msgid "Choose icons style:"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: views/wp-maintenance-dashboard.php:265 views/wp-maintenance-picture.php:229
|
648 |
msgid "Position:"
|
649 |
msgstr ""
|
650 |
|
696 |
msgid "Or enter your newletter iframe code here:"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: views/wp-maintenance-picture.php:82
|
700 |
msgid "Picture"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: views/wp-maintenance-picture.php:91
|
704 |
msgid "Header picture"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: views/wp-maintenance-picture.php:95
|
708 |
msgid ""
|
709 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
710 |
"image with the WordPress media uploader)"
|
711 |
msgstr ""
|
712 |
|
713 |
+
#: views/wp-maintenance-picture.php:96
|
714 |
msgid "Your Logo width (Enter in pixels). Default: 450px"
|
715 |
msgstr ""
|
716 |
|
717 |
+
#: views/wp-maintenance-picture.php:97
|
718 |
msgid "Your Logo Height (Enter in pixels). Default: 450px"
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: views/wp-maintenance-picture.php:102
|
722 |
msgid "You use this picture:"
|
723 |
msgstr ""
|
724 |
|
725 |
+
#: views/wp-maintenance-picture.php:102 views/wp-maintenance-picture.php:144
|
726 |
+
msgid "Remove"
|
727 |
+
msgstr ""
|
728 |
+
|
729 |
+
#: views/wp-maintenance-picture.php:112
|
730 |
msgid "Background picture or pattern"
|
731 |
msgstr ""
|
732 |
|
733 |
+
#: views/wp-maintenance-picture.php:131
|
734 |
msgid "Background picture options"
|
735 |
msgstr ""
|
736 |
|
737 |
+
#: views/wp-maintenance-picture.php:137
|
738 |
msgid "Fixed"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: views/wp-maintenance-picture.php:138
|
742 |
msgid "Background Opacity"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: views/wp-maintenance-picture.php:143
|
746 |
msgid "You use this background picture:"
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: views/wp-maintenance-picture.php:151
|
750 |
msgid "Or choose a pattern:"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: views/wp-maintenance-picture.php:154
|
754 |
msgid "NO PATTERN"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: views/wp-maintenance-picture.php:167
|
758 |
msgid "You use this pattern:"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: views/wp-maintenance-picture.php:178
|
762 |
msgid "Enable Slider"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: views/wp-maintenance-picture.php:191
|
766 |
msgid "Slider image options"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: views/wp-maintenance-picture.php:205
|
770 |
msgid "Speed:"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: views/wp-maintenance-picture.php:211
|
774 |
msgid "Display Auto Slider:"
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: views/wp-maintenance-picture.php:218
|
778 |
msgid "Display button navigation:"
|
779 |
msgstr ""
|
780 |
|
781 |
+
#: views/wp-maintenance-picture.php:231
|
782 |
msgid "Above logo"
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: views/wp-maintenance-picture.php:232
|
786 |
msgid "Below logo"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: views/wp-maintenance-picture.php:233
|
790 |
msgid "Below title & text"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: views/wp-maintenance-picture.php:269
|
794 |
msgid "Link:"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: views/wp-maintenance-picture.php:272
|
798 |
msgid "Delete this slide"
|
799 |
msgstr ""
|
800 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://paypal.me/restezconnectes/20/
|
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -70,6 +70,9 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
73 |
= 5.0.6 =
|
74 |
* SECURITY UPDATE : Adding NONCE to forms
|
75 |
* Change image defaut
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 5.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 5.0.7 =
|
74 |
+
* SECURITY UPDATE
|
75 |
+
|
76 |
= 5.0.6 =
|
77 |
* SECURITY UPDATE : Adding NONCE to forms
|
78 |
* Change image defaut
|
themes/default/functions.php
CHANGED
@@ -119,7 +119,7 @@ function wpm_logo() {
|
|
119 |
if ( !empty( $o['image'] ) ) {
|
120 |
if( empty($o['image_width']) ) { $o['image_width'] = 450; }
|
121 |
if( empty($o['image_height']) ) { $o['image_height'] = 450; }
|
122 |
-
$output .= "<div id='logo'><img id='wpm-image' src='"
|
123 |
}
|
124 |
|
125 |
return $output;
|
@@ -182,7 +182,7 @@ function wpm_customcss() {
|
|
182 |
$optionBackground = '';
|
183 |
if( isset($o['b_pattern']) && $o['b_pattern']>0 ) { ?>
|
184 |
body {
|
185 |
-
background-image: url(<?php echo WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$o['b_pattern'];
|
186 |
background-repeat: repeat;
|
187 |
background-color: <?php echo $o['color_bg']; ?>
|
188 |
<?php echo $optionBackground; ?>
|
@@ -201,7 +201,7 @@ background-color: <?php echo $o['color_bg']; ?>
|
|
201 |
?>
|
202 |
body {
|
203 |
display: grid!important;
|
204 |
-
background:url(<?php echo $o['b_image']; ?>) <?php echo $o['b_repeat_image']; ?> <?php echo $o['b_fixed_image']; ?>top center;
|
205 |
background-size: cover;
|
206 |
-webkit-background-size: cover;
|
207 |
-moz-background-size: cover;
|
@@ -212,7 +212,7 @@ background-position: center;
|
|
212 |
<?php
|
213 |
if( isset($o['b_opacity_image']) ) {
|
214 |
?>
|
215 |
-
#wrapper { background-color: rgba(0,0,0,<?php echo $o['b_opacity_image']; ?>); }
|
216 |
<?php
|
217 |
}
|
218 |
}
|
@@ -221,14 +221,14 @@ background-position: center;
|
|
221 |
|
222 |
.wpm_social_icon {
|
223 |
float:left;
|
224 |
-
width:<?php echo $oo['size']; ?>px;
|
225 |
margin:0px 5px auto;
|
226 |
}
|
227 |
.wpm_social ul {
|
228 |
margin: 10px 0;
|
229 |
max-width: 100%;
|
230 |
padding: 0;
|
231 |
-
text-align: <?php echo $oo['align']; ?>;
|
232 |
}
|
233 |
|
234 |
<?php /* Si container activé */
|
@@ -240,7 +240,7 @@ background-position: center;
|
|
240 |
if( isset($o['container_color']) ) { $paramRGBColor = wpm_hex2rgb($o['container_color']); }
|
241 |
?>
|
242 |
#sscontent {
|
243 |
-
background-color: rgba(<?php echo $paramRGBColor['rouge']; ?>,<?php echo $paramRGBColor['vert']; ?>,<?php echo $paramRGBColor['bleu']; ?>, <?php echo $o['container_opacity']; ?>);
|
244 |
padding:0.8em;
|
245 |
margin-left:auto;
|
246 |
margin-right:auto;
|
@@ -250,28 +250,28 @@ width:<?php echo $o['container_width']; ?>%;
|
|
250 |
<?php } ?>
|
251 |
|
252 |
.wpm_newletter {
|
253 |
-
<?php if( isset($o['newletter_size']) ) { ?>font-size: <?php echo $o['newletter_size']; ?>px; <?php } ?>
|
254 |
-
<?php if( isset($o['newletter_font_style']) ) { ?>font-style: <?php echo $o['newletter_font_style']; ?>; <?php } ?>
|
255 |
-
<?php if( isset($o['newletter_font_weigth']) ) { ?>font-weight: <?php echo $o['newletter_font_weigth']; ?>; <?php } ?>
|
256 |
<?php if( isset($o['newletter_font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['newletter_font_text']); ?>, serif; <?php } ?>
|
257 |
}
|
258 |
|
259 |
h3 {
|
260 |
<?php if( isset($o['font_title']) ) { ?>font-family: <?php echo wpm_format_font($o['font_title']); ?>, serif; <?php } ?>
|
261 |
-
<?php if( isset($o['font_title_size']) ) { ?>font-size: <?php echo $o['font_title_size']; ?>px; <?php } ?>
|
262 |
-
<?php if( isset($o['font_title_style']) ) { ?>font-style: <?php echo $o['font_title_style']; ?>; <?php } ?>
|
263 |
-
<?php if( isset($o['font_title_weigth']) ) { ?>font-weight: <?php echo $o['font_title_weigth']; ?>; <?php } ?>
|
264 |
-
<?php if( isset($o['color_title']) ) { ?>color:<?php echo $o['color_title']; ?>; <?php } ?>
|
265 |
line-height: 100%;
|
266 |
text-align:center;
|
267 |
margin:0.5em auto;
|
268 |
}
|
269 |
p {
|
270 |
<?php if( isset($o['font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text']); ?>, serif;<?php } ?>
|
271 |
-
<?php if( isset($o['font_text_size']) ) { ?>font-size: <?php echo $o['font_text_size']; ?>px;<?php } ?>
|
272 |
-
<?php if( isset($o['font_text_style']) ) { ?>font-style: <?php echo $o['font_text_style']; ?>;<?php } ?>
|
273 |
-
<?php if( isset($o['font_text_weigth']) ) { ?>font-weight: <?php echo $o['font_text_weigth']; ?>;<?php } ?>
|
274 |
-
<?php if( isset($o['color_txt']) ) { ?>color:<?php echo $o['color_txt']; ?>;<?php } ?>
|
275 |
line-height: 100%;
|
276 |
text-align:center;
|
277 |
margin:0.5em auto;
|
@@ -281,30 +281,30 @@ p {
|
|
281 |
}
|
282 |
<?php if( (isset($o['text_bt_maintenance']) && $o['text_bt_maintenance']!='') or ( (isset($o['add_wplogin']) && $o['add_wplogin']==1) && (isset($o['add_wplogin_title']) && $o['add_wplogin_title']!='') ) ) { ?>
|
283 |
#footer {
|
284 |
-
<?php if( isset($o['color_bg_bottom']) ) { ?>background:<?php echo $o['color_bg_bottom']; ?>;<?php } ?>
|
285 |
}
|
286 |
<?php } ?>
|
287 |
div.bloc {
|
288 |
<?php if( isset($o['font_text_bottom']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text_bottom']); ?>, serif;<?php } ?>
|
289 |
-
<?php if( isset($o['font_bottom_style']) ) { ?>font-style: <?php echo $o['font_bottom_style']; ?>;<?php } ?>
|
290 |
-
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
291 |
-
<?php if( isset($o['font_bottom_weigth']) ) { ?>font-weight: <?php echo $o['font_bottom_weigth']; ?>;<?php } ?>
|
292 |
-
<?php if( isset($o['color_text_bottom']) ) { ?>color: <?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
293 |
text-decoration:none;
|
294 |
}
|
295 |
div.bloc a:link {
|
296 |
-
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
297 |
-
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
298 |
text-decoration:none;
|
299 |
}
|
300 |
div.bloc a:visited {
|
301 |
-
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
302 |
-
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
303 |
text-decoration:none;
|
304 |
}
|
305 |
div.bloc a:hover {
|
306 |
text-decoration:underline;
|
307 |
-
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
308 |
|
309 |
}
|
310 |
<?php
|
@@ -379,13 +379,13 @@ function wpm_stylenewsletter() {
|
|
379 |
if( empty($o['color_button']) ) { $o['color_button']= '#1e73be'; }
|
380 |
|
381 |
$wysijaRemplacements = array (
|
382 |
-
"#_COLORTXT" => $o['color_field_text'],
|
383 |
-
"#_COLORBG" => $o['color_field_background'],
|
384 |
-
"#_COLORBORDER" => $o['color_field_border'],
|
385 |
-
"#_COLORBUTTON" => $o['color_button'],
|
386 |
-
"#_COLORTEXTBUTTON" => $o['color_text_button'],
|
387 |
-
"#_COLOR_BTN_HOVER" => $o['color_button_hover'],
|
388 |
-
"#_COLOR_BTN_CLICK" => $o['color_button_onclick']
|
389 |
);
|
390 |
|
391 |
if( isset($o['code_newletter']) && $o['code_newletter']!='' && strpos($o['code_newletter'], 'wysija_form') == 1 ) {
|
@@ -399,7 +399,7 @@ function wpm_stylenewsletter() {
|
|
399 |
}
|
400 |
|
401 |
if( isset($output) && $output!='' ) {
|
402 |
-
return '<style type="text/css">'
|
403 |
} else {
|
404 |
return;
|
405 |
}
|
@@ -417,7 +417,7 @@ function wpm_newsletter() {
|
|
417 |
|
418 |
$output = '<div class="wpm_newletter">';
|
419 |
if( isset($o['title_newletter']) && $o['title_newletter']!='') {
|
420 |
-
$output .= '<div>'.stripslashes($o['title_newletter']).'</div>';
|
421 |
}
|
422 |
if( isset($o['type_newletter']) && isset($o['iframe_newletter']) && $o['iframe_newletter']!='' && $o['type_newletter']=='iframe' ) {
|
423 |
$output .= stripslashes($o['iframe_newletter']);
|
119 |
if ( !empty( $o['image'] ) ) {
|
120 |
if( empty($o['image_width']) ) { $o['image_width'] = 450; }
|
121 |
if( empty($o['image_height']) ) { $o['image_height'] = 450; }
|
122 |
+
$output .= "<div id='logo'><img id='wpm-image' src='".esc_url($o['image'])."' width='".$o['image_width']."' height='".$o['image_height']."' alt='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."' title='".get_bloginfo( 'name', 'display' )." ".get_bloginfo( 'description', 'display' )."'></div>";
|
123 |
}
|
124 |
|
125 |
return $output;
|
182 |
$optionBackground = '';
|
183 |
if( isset($o['b_pattern']) && $o['b_pattern']>0 ) { ?>
|
184 |
body {
|
185 |
+
background-image: url(<?php echo esc_url(WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$o['b_pattern'].'.png'); ?>);
|
186 |
background-repeat: repeat;
|
187 |
background-color: <?php echo $o['color_bg']; ?>
|
188 |
<?php echo $optionBackground; ?>
|
201 |
?>
|
202 |
body {
|
203 |
display: grid!important;
|
204 |
+
background:url(<?php echo esc_url($o['b_image']); ?>) <?php echo $o['b_repeat_image']; ?> <?php echo $o['b_fixed_image']; ?>top center;
|
205 |
background-size: cover;
|
206 |
-webkit-background-size: cover;
|
207 |
-moz-background-size: cover;
|
212 |
<?php
|
213 |
if( isset($o['b_opacity_image']) ) {
|
214 |
?>
|
215 |
+
#wrapper { background-color: rgba(0,0,0,<?php echo esc_html($o['b_opacity_image']); ?>); }
|
216 |
<?php
|
217 |
}
|
218 |
}
|
221 |
|
222 |
.wpm_social_icon {
|
223 |
float:left;
|
224 |
+
width:<?php echo esc_html($oo['size']); ?>px;
|
225 |
margin:0px 5px auto;
|
226 |
}
|
227 |
.wpm_social ul {
|
228 |
margin: 10px 0;
|
229 |
max-width: 100%;
|
230 |
padding: 0;
|
231 |
+
text-align: <?php echo esc_html($oo['align']); ?>;
|
232 |
}
|
233 |
|
234 |
<?php /* Si container activé */
|
240 |
if( isset($o['container_color']) ) { $paramRGBColor = wpm_hex2rgb($o['container_color']); }
|
241 |
?>
|
242 |
#sscontent {
|
243 |
+
background-color: rgba(<?php echo esc_html($paramRGBColor['rouge']); ?>,<?php echo esc_html($paramRGBColor['vert']); ?>,<?php echo esc_html($paramRGBColor['bleu']); ?>, <?php echo esc_html($o['container_opacity']); ?>);
|
244 |
padding:0.8em;
|
245 |
margin-left:auto;
|
246 |
margin-right:auto;
|
250 |
<?php } ?>
|
251 |
|
252 |
.wpm_newletter {
|
253 |
+
<?php if( isset($o['newletter_size']) ) { ?>font-size: <?php echo esc_html($o['newletter_size']); ?>px; <?php } ?>
|
254 |
+
<?php if( isset($o['newletter_font_style']) ) { ?>font-style: <?php echo esc_html($o['newletter_font_style']); ?>; <?php } ?>
|
255 |
+
<?php if( isset($o['newletter_font_weigth']) ) { ?>font-weight: <?php echo esc_html($o['newletter_font_weigth']); ?>; <?php } ?>
|
256 |
<?php if( isset($o['newletter_font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['newletter_font_text']); ?>, serif; <?php } ?>
|
257 |
}
|
258 |
|
259 |
h3 {
|
260 |
<?php if( isset($o['font_title']) ) { ?>font-family: <?php echo wpm_format_font($o['font_title']); ?>, serif; <?php } ?>
|
261 |
+
<?php if( isset($o['font_title_size']) ) { ?>font-size: <?php echo esc_html($o['font_title_size']); ?>px; <?php } ?>
|
262 |
+
<?php if( isset($o['font_title_style']) ) { ?>font-style: <?php echo esc_html($o['font_title_style']); ?>; <?php } ?>
|
263 |
+
<?php if( isset($o['font_title_weigth']) ) { ?>font-weight: <?php echo esc_html($o['font_title_weigth']); ?>; <?php } ?>
|
264 |
+
<?php if( isset($o['color_title']) ) { ?>color:<?php echo esc_html($o['color_title']); ?>; <?php } ?>
|
265 |
line-height: 100%;
|
266 |
text-align:center;
|
267 |
margin:0.5em auto;
|
268 |
}
|
269 |
p {
|
270 |
<?php if( isset($o['font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text']); ?>, serif;<?php } ?>
|
271 |
+
<?php if( isset($o['font_text_size']) ) { ?>font-size: <?php echo esc_html($o['font_text_size']); ?>px;<?php } ?>
|
272 |
+
<?php if( isset($o['font_text_style']) ) { ?>font-style: <?php echo esc_html($o['font_text_style']); ?>;<?php } ?>
|
273 |
+
<?php if( isset($o['font_text_weigth']) ) { ?>font-weight: <?php echo esc_html($o['font_text_weigth']); ?>;<?php } ?>
|
274 |
+
<?php if( isset($o['color_txt']) ) { ?>color:<?php echo esc_html($o['color_txt']); ?>;<?php } ?>
|
275 |
line-height: 100%;
|
276 |
text-align:center;
|
277 |
margin:0.5em auto;
|
281 |
}
|
282 |
<?php if( (isset($o['text_bt_maintenance']) && $o['text_bt_maintenance']!='') or ( (isset($o['add_wplogin']) && $o['add_wplogin']==1) && (isset($o['add_wplogin_title']) && $o['add_wplogin_title']!='') ) ) { ?>
|
283 |
#footer {
|
284 |
+
<?php if( isset($o['color_bg_bottom']) ) { ?>background:<?php echo esc_html($o['color_bg_bottom']); ?>;<?php } ?>
|
285 |
}
|
286 |
<?php } ?>
|
287 |
div.bloc {
|
288 |
<?php if( isset($o['font_text_bottom']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text_bottom']); ?>, serif;<?php } ?>
|
289 |
+
<?php if( isset($o['font_bottom_style']) ) { ?>font-style: <?php echo esc_html($o['font_bottom_style']); ?>;<?php } ?>
|
290 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo esc_html($o['font_bottom_size']); ?>px;<?php } ?>
|
291 |
+
<?php if( isset($o['font_bottom_weigth']) ) { ?>font-weight: <?php echo esc_html($o['font_bottom_weigth']); ?>;<?php } ?>
|
292 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color: <?php echo esc_html($o['color_text_bottom']); ?>;<?php } ?>
|
293 |
text-decoration:none;
|
294 |
}
|
295 |
div.bloc a:link {
|
296 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo esc_html($o['color_text_bottom']); ?>;<?php } ?>
|
297 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo esc_html($o['font_bottom_size']); ?>px;<?php } ?>
|
298 |
text-decoration:none;
|
299 |
}
|
300 |
div.bloc a:visited {
|
301 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo esc_html($o['color_text_bottom']); ?>;<?php } ?>
|
302 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo esc_html($o['font_bottom_size']); ?>px;<?php } ?>
|
303 |
text-decoration:none;
|
304 |
}
|
305 |
div.bloc a:hover {
|
306 |
text-decoration:underline;
|
307 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo esc_html($o['font_bottom_size']); ?>px;<?php } ?>
|
308 |
|
309 |
}
|
310 |
<?php
|
379 |
if( empty($o['color_button']) ) { $o['color_button']= '#1e73be'; }
|
380 |
|
381 |
$wysijaRemplacements = array (
|
382 |
+
"#_COLORTXT" => esc_html($o['color_field_text']),
|
383 |
+
"#_COLORBG" => esc_html($o['color_field_background']),
|
384 |
+
"#_COLORBORDER" => esc_html($o['color_field_border']),
|
385 |
+
"#_COLORBUTTON" => esc_html($o['color_button']),
|
386 |
+
"#_COLORTEXTBUTTON" => esc_html($o['color_text_button']),
|
387 |
+
"#_COLOR_BTN_HOVER" => esc_html($o['color_button_hover']),
|
388 |
+
"#_COLOR_BTN_CLICK" => esc_html($o['color_button_onclick'])
|
389 |
);
|
390 |
|
391 |
if( isset($o['code_newletter']) && $o['code_newletter']!='' && strpos($o['code_newletter'], 'wysija_form') == 1 ) {
|
399 |
}
|
400 |
|
401 |
if( isset($output) && $output!='' ) {
|
402 |
+
return '<style type="text/css">'.sanitize_text_field($output).'</style>';
|
403 |
} else {
|
404 |
return;
|
405 |
}
|
417 |
|
418 |
$output = '<div class="wpm_newletter">';
|
419 |
if( isset($o['title_newletter']) && $o['title_newletter']!='') {
|
420 |
+
$output .= '<div>'.sanitize_text_field(stripslashes($o['title_newletter'])).'</div>';
|
421 |
}
|
422 |
if( isset($o['type_newletter']) && isset($o['iframe_newletter']) && $o['iframe_newletter']!='' && $o['type_newletter']=='iframe' ) {
|
423 |
$output .= stripslashes($o['iframe_newletter']);
|
themes/default/index.php
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
{SlideshowBL}
|
54 |
<div id="sscontent">
|
55 |
<h3>{Title}</h3>
|
56 |
-
{Text}
|
57 |
{SlideshowBT}
|
58 |
{Counter}
|
59 |
{Newsletter}
|
53 |
{SlideshowBL}
|
54 |
<div id="sscontent">
|
55 |
<h3>{Title}</h3>
|
56 |
+
<p>{Text}</p>
|
57 |
{SlideshowBT}
|
58 |
{Counter}
|
59 |
{Newsletter}
|
views/wp-maintenance-countdown.php
CHANGED
@@ -132,7 +132,7 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
132 |
'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
|
133 |
);
|
134 |
$textCpt_fin = '';
|
135 |
-
if( isset($paramMMode['message_cpt_fin']) ) { $textCpt_fin = stripslashes($paramMMode['message_cpt_fin']); }
|
136 |
?>
|
137 |
<?php wp_editor( nl2br($textCpt_fin), 'message_cpt_fin', $settingsCountdown ); ?><br />
|
138 |
|
132 |
'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
|
133 |
);
|
134 |
$textCpt_fin = '';
|
135 |
+
if( isset($paramMMode['message_cpt_fin']) ) { $textCpt_fin = esc_textarea(stripslashes($paramMMode['message_cpt_fin'])); }
|
136 |
?>
|
137 |
<?php wp_editor( nl2br($textCpt_fin), 'message_cpt_fin', $settingsCountdown ); ?><br />
|
138 |
|
views/wp-maintenance-css.php
CHANGED
@@ -44,7 +44,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
|
|
44 |
<!-- UTILISER UNE FEUILLE DE STYLE PERSO -->
|
45 |
<?php _e('Edit the CSS sheet of your maintenance page here. Click "Reset" and "Save" to retrieve the default style sheet.', 'wp-maintenance'); ?><br /><br />
|
46 |
<div style="float:left;width:100%;margin-right:15px;">
|
47 |
-
<TEXTAREA NAME="wp_maintenance_style" id="wpmaintenancestyle" COLS=70 ROWS=24 style="height:250px;"><?php echo stripslashes(trim(get_option('wp_maintenance_style'))); ?></TEXTAREA>
|
48 |
</div>
|
49 |
|
50 |
<div class="clear"></div>
|
44 |
<!-- UTILISER UNE FEUILLE DE STYLE PERSO -->
|
45 |
<?php _e('Edit the CSS sheet of your maintenance page here. Click "Reset" and "Save" to retrieve the default style sheet.', 'wp-maintenance'); ?><br /><br />
|
46 |
<div style="float:left;width:100%;margin-right:15px;">
|
47 |
+
<TEXTAREA NAME="wp_maintenance_style" id="wpmaintenancestyle" COLS=70 ROWS=24 style="height:250px;"><?php echo esc_textarea(stripslashes(trim(get_option('wp_maintenance_style')))); ?></TEXTAREA>
|
48 |
</div>
|
49 |
|
50 |
<div class="clear"></div>
|
views/wp-maintenance-dashboard.php
CHANGED
@@ -73,7 +73,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
73 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
74 |
|
75 |
<h3><?php _e('Title and text for the maintenance page:', 'wp-maintenance'); ?></h3>
|
76 |
-
<?php _e('Title:', 'wp-maintenance'); ?><br /><input class="wpm-form-field" type="text" size="100%" name="wp_maintenance_settings[titre_maintenance]" value="<?php if( isset($paramMMode['titre_maintenance']) && $paramMMode['titre_maintenance']!='' ) { echo stripslashes($paramMMode['titre_maintenance']); } ?>" /><br /><br />
|
77 |
<?php _e('Text:', 'wp-maintenance'); ?><br />
|
78 |
<?php
|
79 |
$settingsTextmaintenance = array(
|
@@ -133,7 +133,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
133 |
<div id="option-wplogin" style="<?php if( empty($paramMMode['add_wplogin']) || isset($paramMMode['add_wplogin']) && $paramMMode['add_wplogin']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
134 |
|
135 |
<?php _e('Enter a text to go to the dashboard:', 'wp-maintenance'); ?><br />
|
136 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[add_wplogin_title]" size="60%" value="<?php if( isset($paramMMode['add_wplogin_title']) && $paramMMode['add_wplogin_title']!='' ) { echo stripslashes(trim($paramMMode['add_wplogin_title'])); } ?>" /><br />
|
137 |
<small><?php _e('Eg: connect to %DASHBOARD% here!', 'wp-maintenance'); ?> <?php _e('(%DASHBOARD% will be replaced with the link to the dashboard and the word "Dashboard")', 'wp-maintenance'); ?></small>
|
138 |
|
139 |
</div>
|
@@ -157,9 +157,9 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
157 |
<div id="option-seo" style="<?php if( empty($paramMMode['enable_seo']) || isset($paramMMode['enable_seo']) && $paramMMode['enable_seo']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
158 |
|
159 |
<?php _e('SEO Title', 'wp-maintenance'); ?><br />
|
160 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[seo_title]" value="<?php if( isset($paramMMode['seo_title']) && $paramMMode['seo_title']!='' ) { echo stripslashes(trim($paramMMode['seo_title'])); } ?>"><br />
|
161 |
<?php _e('SEO Meta Description', 'wp-maintenance'); ?><br />
|
162 |
-
<input type="text" class="wpm-form-field" size="80%" name="wp_maintenance_settings[seo_description]" value="<?php if( isset($paramMMode['seo_description']) && $paramMMode['seo_description']!='' ) { echo stripslashes(trim($paramMMode['seo_description'])); } ?>"><br />
|
163 |
<br />
|
164 |
|
165 |
<!-- UPLOADER UN FAVICON -->
|
@@ -167,7 +167,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
167 |
<div id="option-favicon">
|
168 |
<div style="float:left;width:68%;margin-right:10px;">
|
169 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
170 |
-
<input id="upload_favicon" class="wpm-form-field" size="65%" name="wp_maintenance_settings[favicon]" value="<?php if( isset($paramMMode['favicon']) && $paramMMode['favicon']!='' ) { echo $paramMMode['favicon']; } ?>" type="text" /> <a href="#" id="upload_favicon_button" class="button button-primary" style="padding-top: 0.
|
171 |
<small><?php _e('Favicons are displayed in a browser tab. Need Help <a href="https://realfavicongenerator.net/" target="_blank">creating a favicon</a>?', 'wp-maintenance'); ?></small>
|
172 |
</div>
|
173 |
<div style="float:left;width:30%;text-align:center;">
|
@@ -183,9 +183,9 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
183 |
<strong><?php _e('Analytics Code', 'wp-maintenance'); ?></strong>
|
184 |
<div id="option-analytics">
|
185 |
<?php _e('Enter your Google analytics tracking ID here:', 'wp-maintenance'); ?><br />
|
186 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[code_analytics]" value="<?php if( isset($paramMMode['code_analytics']) && $paramMMode['code_analytics']!='' ) { echo
|
187 |
<?php _e('Enter your domain URL:', 'wp-maintenance'); ?><br />
|
188 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[domain_analytics]" value="<?php if( isset($paramMMode['domain_analytics']) && $paramMMode['domain_analytics']!='' ) { echo
|
189 |
</div>
|
190 |
</div>
|
191 |
|
@@ -208,7 +208,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
208 |
<div id="option-socials" style="<?php if( empty($paramSocialOption['enable']) || isset($paramSocialOption['enable']) && $paramSocialOption['enable']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
209 |
|
210 |
<?php _e('Enter text for the title icons:', 'wp-maintenance'); ?>
|
211 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_social_options[texte]" value="<?php if($paramSocialOption['texte']=='' && $paramSocialOption['texte']!='') { _e('Follow me on', 'wp-maintenance'); } else { echo stripslashes(
|
212 |
<!-- Liste des réseaux sociaux -->
|
213 |
<?php _e('Drad and drop the lines to put in the order you want:', 'wp-maintenance'); ?><br /><br />
|
214 |
<ul class="sortable">
|
@@ -229,7 +229,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
229 |
|
230 |
$entryValue = '';
|
231 |
if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
|
232 |
-
echo '<li><span>::</span><img src="'.$linkIcon.'" valign="middle" hspace="3"/>'.ucfirst($iconSocial).' <input type="text" class="wpm-form-field" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'
|
233 |
}
|
234 |
|
235 |
?>
|
@@ -275,7 +275,7 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
275 |
<option value="right"<?php if( isset($paramSocialOption['align']) && $paramSocialOption['align']=='right') { echo ' selected'; } ?>><?php _e('Right', 'wp-maintenance'); ?></option>
|
276 |
</select>
|
277 |
<br /><br />
|
278 |
-
<?php _e('You have your own icons? Enter the folder name of your theme here:', 'wp-maintenance'); ?><br /><strong><?php echo get_stylesheet_directory_uri(); ?>/</strong><input class="wpm-form-field" type="text" value="<?php if( isset($paramSocialOption['theme']) && $paramSocialOption['theme']!='' ) { echo
|
279 |
|
280 |
<div>
|
281 |
<div style="float:left; width:70%;"><h3><?php _e('Reset Social Icon?', 'wp-maintenance'); ?></h3></div>
|
@@ -310,11 +310,11 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
310 |
<div id="option-newletter" style="<?php if( empty($paramMMode['newletter']) || isset($paramMMode['newletter']) && $paramMMode['newletter']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
311 |
|
312 |
<?php _e('Enter title for the newletter block:', 'wp-maintenance'); ?><br />
|
313 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[title_newletter]" size="60" value="<?php if( isset($paramMMode['title_newletter']) && $paramMMode['title_newletter']!='' ) { echo stripslashes(trim($paramMMode['title_newletter'])); } ?>" /><br /><br />
|
314 |
<input type="radio" class="wpm-form-field" name="wp_maintenance_settings[type_newletter]" value="shortcode" <?php if( isset($paramMMode['type_newletter']) && $paramMMode['type_newletter']=='shortcode' ) { echo 'checked'; } if( empty($paramMMode['type_newletter']) ) { echo 'checked'; } ?> /><?php _e('Enter your newletter shortcode here:', 'wp-maintenance'); ?><br />
|
315 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[code_newletter]" value='<?php if( isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' ) { echo stripslashes(trim($paramMMode['code_newletter'])); } ?>' onclick="select()" /><br /><br />
|
316 |
<input type="radio" class="wpm-form-field" name="wp_maintenance_settings[type_newletter]" value="iframe" <?php if( isset($paramMMode['type_newletter']) && $paramMMode['type_newletter']=='iframe' ) { echo 'checked'; } ?>/> <?php _e('Or enter your newletter iframe code here:', 'wp-maintenance'); ?><br />
|
317 |
-
<textarea class="wpm-form-field" id="iframe_newletter" cols="60" rows="10" name="wp_maintenance_settings[iframe_newletter]"><?php if( isset($paramMMode['iframe_newletter']) && $paramMMode['iframe_newletter']!='' ) { echo stripslashes(trim($paramMMode['iframe_newletter'])); } ?></textarea>
|
318 |
|
319 |
</div>
|
320 |
|
73 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
74 |
|
75 |
<h3><?php _e('Title and text for the maintenance page:', 'wp-maintenance'); ?></h3>
|
76 |
+
<?php _e('Title:', 'wp-maintenance'); ?><br /><input class="wpm-form-field" type="text" size="100%" name="wp_maintenance_settings[titre_maintenance]" value="<?php if( isset($paramMMode['titre_maintenance']) && $paramMMode['titre_maintenance']!='' ) { echo esc_html(stripslashes($paramMMode['titre_maintenance'])); } ?>" /><br /><br />
|
77 |
<?php _e('Text:', 'wp-maintenance'); ?><br />
|
78 |
<?php
|
79 |
$settingsTextmaintenance = array(
|
133 |
<div id="option-wplogin" style="<?php if( empty($paramMMode['add_wplogin']) || isset($paramMMode['add_wplogin']) && $paramMMode['add_wplogin']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
134 |
|
135 |
<?php _e('Enter a text to go to the dashboard:', 'wp-maintenance'); ?><br />
|
136 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[add_wplogin_title]" size="60%" value="<?php if( isset($paramMMode['add_wplogin_title']) && $paramMMode['add_wplogin_title']!='' ) { echo esc_html(stripslashes(trim($paramMMode['add_wplogin_title']))); } ?>" /><br />
|
137 |
<small><?php _e('Eg: connect to %DASHBOARD% here!', 'wp-maintenance'); ?> <?php _e('(%DASHBOARD% will be replaced with the link to the dashboard and the word "Dashboard")', 'wp-maintenance'); ?></small>
|
138 |
|
139 |
</div>
|
157 |
<div id="option-seo" style="<?php if( empty($paramMMode['enable_seo']) || isset($paramMMode['enable_seo']) && $paramMMode['enable_seo']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
158 |
|
159 |
<?php _e('SEO Title', 'wp-maintenance'); ?><br />
|
160 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[seo_title]" value="<?php if( isset($paramMMode['seo_title']) && $paramMMode['seo_title']!='' ) { echo esc_html(stripslashes(trim($paramMMode['seo_title']))); } ?>"><br />
|
161 |
<?php _e('SEO Meta Description', 'wp-maintenance'); ?><br />
|
162 |
+
<input type="text" class="wpm-form-field" size="80%" name="wp_maintenance_settings[seo_description]" value="<?php if( isset($paramMMode['seo_description']) && $paramMMode['seo_description']!='' ) { echo esc_html(stripslashes(trim($paramMMode['seo_description']))); } ?>"><br />
|
163 |
<br />
|
164 |
|
165 |
<!-- UPLOADER UN FAVICON -->
|
167 |
<div id="option-favicon">
|
168 |
<div style="float:left;width:68%;margin-right:10px;">
|
169 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
170 |
+
<input id="upload_favicon" class="wpm-form-field" size="65%" name="wp_maintenance_settings[favicon]" value="<?php if( isset($paramMMode['favicon']) && $paramMMode['favicon']!='' ) { echo esc_url($paramMMode['favicon']); } ?>" type="text" /> <a href="#" id="upload_favicon_button" class="button button-primary" style="padding-top: 0.1em;padding-bottom: 0.1em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br />
|
171 |
<small><?php _e('Favicons are displayed in a browser tab. Need Help <a href="https://realfavicongenerator.net/" target="_blank">creating a favicon</a>?', 'wp-maintenance'); ?></small>
|
172 |
</div>
|
173 |
<div style="float:left;width:30%;text-align:center;">
|
183 |
<strong><?php _e('Analytics Code', 'wp-maintenance'); ?></strong>
|
184 |
<div id="option-analytics">
|
185 |
<?php _e('Enter your Google analytics tracking ID here:', 'wp-maintenance'); ?><br />
|
186 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[code_analytics]" value="<?php if( isset($paramMMode['code_analytics']) && $paramMMode['code_analytics']!='' ) { echo esc_html($paramMMode['code_analytics']); } ?>"><br />
|
187 |
<?php _e('Enter your domain URL:', 'wp-maintenance'); ?><br />
|
188 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[domain_analytics]" value="<?php if( isset($paramMMode['domain_analytics']) && $paramMMode['domain_analytics']!='' ) { echo esc_url($paramMMode['domain_analytics']); } else { echo esc_url($_SERVER['SERVER_NAME']); } ?>">
|
189 |
</div>
|
190 |
</div>
|
191 |
|
208 |
<div id="option-socials" style="<?php if( empty($paramSocialOption['enable']) || isset($paramSocialOption['enable']) && $paramSocialOption['enable']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
209 |
|
210 |
<?php _e('Enter text for the title icons:', 'wp-maintenance'); ?>
|
211 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_social_options[texte]" value="<?php if($paramSocialOption['texte']=='' && $paramSocialOption['texte']!='') { _e('Follow me on', 'wp-maintenance'); } else { echo esc_html(stripslashes($paramSocialOption['texte'])); } ?>" /><br /><br />
|
212 |
<!-- Liste des réseaux sociaux -->
|
213 |
<?php _e('Drad and drop the lines to put in the order you want:', 'wp-maintenance'); ?><br /><br />
|
214 |
<ul class="sortable">
|
229 |
|
230 |
$entryValue = '';
|
231 |
if( isset($paramSocial[$iconSocial]) ) { $entryValue = $paramSocial[$iconSocial]; }
|
232 |
+
echo '<li><span>::</span><img src="'.$linkIcon.'" valign="middle" hspace="3"/>'.ucfirst($iconSocial).' <input type="text" class="wpm-form-field" size="50" name="wp_maintenance_social['.$iconSocial.']" value="'.esc_url($entryValue).'" onclick="select()" ><br />';
|
233 |
}
|
234 |
|
235 |
?>
|
275 |
<option value="right"<?php if( isset($paramSocialOption['align']) && $paramSocialOption['align']=='right') { echo ' selected'; } ?>><?php _e('Right', 'wp-maintenance'); ?></option>
|
276 |
</select>
|
277 |
<br /><br />
|
278 |
+
<?php _e('You have your own icons? Enter the folder name of your theme here:', 'wp-maintenance'); ?><br /><strong><?php echo get_stylesheet_directory_uri(); ?>/</strong><input class="wpm-form-field" type="text" value="<?php if( isset($paramSocialOption['theme']) && $paramSocialOption['theme']!='' ) { echo esc_url($paramSocialOption['theme']); } ?>" name="wp_maintenance_social_options[theme]" /><br /><br />
|
279 |
|
280 |
<div>
|
281 |
<div style="float:left; width:70%;"><h3><?php _e('Reset Social Icon?', 'wp-maintenance'); ?></h3></div>
|
310 |
<div id="option-newletter" style="<?php if( empty($paramMMode['newletter']) || isset($paramMMode['newletter']) && $paramMMode['newletter']==0) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
311 |
|
312 |
<?php _e('Enter title for the newletter block:', 'wp-maintenance'); ?><br />
|
313 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[title_newletter]" size="60" value="<?php if( isset($paramMMode['title_newletter']) && $paramMMode['title_newletter']!='' ) { echo esc_html(stripslashes(trim($paramMMode['title_newletter']))); } ?>" /><br /><br />
|
314 |
<input type="radio" class="wpm-form-field" name="wp_maintenance_settings[type_newletter]" value="shortcode" <?php if( isset($paramMMode['type_newletter']) && $paramMMode['type_newletter']=='shortcode' ) { echo 'checked'; } if( empty($paramMMode['type_newletter']) ) { echo 'checked'; } ?> /><?php _e('Enter your newletter shortcode here:', 'wp-maintenance'); ?><br />
|
315 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[code_newletter]" value='<?php if( isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' ) { echo esc_attr(stripslashes(trim($paramMMode['code_newletter']))); } ?>' onclick="select()" /><br /><br />
|
316 |
<input type="radio" class="wpm-form-field" name="wp_maintenance_settings[type_newletter]" value="iframe" <?php if( isset($paramMMode['type_newletter']) && $paramMMode['type_newletter']=='iframe' ) { echo 'checked'; } ?>/> <?php _e('Or enter your newletter iframe code here:', 'wp-maintenance'); ?><br />
|
317 |
+
<textarea class="wpm-form-field" id="iframe_newletter" cols="60" rows="10" name="wp_maintenance_settings[iframe_newletter]"><?php if( isset($paramMMode['iframe_newletter']) && $paramMMode['iframe_newletter']!='' ) { echo esc_attr(stripslashes(trim($paramMMode['iframe_newletter']))); } ?></textarea>
|
318 |
|
319 |
</div>
|
320 |
|
views/wp-maintenance-picture.php
CHANGED
@@ -13,11 +13,22 @@ $colors = $_wp_admin_css_colors[$admin_color]->colors;
|
|
13 |
if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' && wp_verify_nonce($_POST['security-pictures'], 'valid-pictures') ) {
|
14 |
|
15 |
if( isset($_POST['upload_picture']) && $_POST['upload_picture']!='' ) {
|
16 |
-
$_POST["wp_maintenance_settings"]["image"] = $_POST['upload_picture'];
|
17 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
if( isset($_POST["wpm_maintenance_detete"]) && is_array($_POST["wpm_maintenance_detete"]) ) {
|
19 |
foreach($_POST["wpm_maintenance_detete"] as $delSlideId=>$delSlideTrue) {
|
20 |
-
if (array_key_exists($delSlideId, $_POST["wp_maintenance_slider"]["slider_image"])) {
|
21 |
unset($_POST["wp_maintenance_slider"]["slider_image"][$delSlideId]);
|
22 |
unset($_POST["wp_maintenance_slider"]["slider_text"][$delSlideId]);
|
23 |
unset($_POST["wp_maintenance_slider"]["slider_link"][$delSlideId]);
|
@@ -79,16 +90,16 @@ function toggleTable(texte) {
|
|
79 |
|
80 |
<h3><?php _e('Header picture', 'wp-maintenance'); ?></h3>
|
81 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
82 |
-
<input id="settings_image"name="wp_maintenance_settings[image]" value="<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { echo $paramMMode['image']; } ?>" type="hidden" />
|
83 |
<input id="upload_image" size="65%" name="upload_picture" value="" type="text" class="wpm-form-field" /> <a href="#" id="upload_image_button" class="button button-primary" style="padding-top: 0.1em;padding-bottom: 0.1em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br />
|
84 |
<span class="description"><?php _e( 'URL path to image to replace default WordPress Logo. (You can upload your image with the WordPress media uploader)', 'wp-maintenance' ); ?></span><br /><br />
|
85 |
-
<span class="description"><?php _e( 'Your Logo width (Enter in pixels). Default: 450px', 'wp-maintenance' ); ?></span> <input type="text" value="<?php if( isset($paramMMode['image_width']) && $paramMMode['image_width']!='' ) { echo $paramMMode['image_width']; } ?>" name="wp_maintenance_settings[image_width]" /> <br />
|
86 |
-
<span class="description"><?php _e( 'Your Logo Height (Enter in pixels). Default: 450px', 'wp-maintenance' ); ?></span> <input type="text" value="<?php if( isset($paramMMode['image_height']) && $paramMMode['image_height']!='' ) { echo $paramMMode['image_height']; } ?>" name="wp_maintenance_settings[image_height]" /><br />
|
87 |
|
88 |
</div>
|
89 |
<div style="float:left;width:30%;text-align:center;">
|
90 |
<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
|
91 |
-
<?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" />
|
92 |
<?php } ?>
|
93 |
</div>
|
94 |
<div class="clear"></div>
|
@@ -115,7 +126,8 @@ function toggleTable(texte) {
|
|
115 |
<!-- UPLOADER UNE IMAGE DE FOND -->
|
116 |
<div style="float:left;width:68%;margin-right:10px;">
|
117 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
118 |
-
<input id="
|
|
|
119 |
<h4><?php _e('Background picture options', 'wp-maintenance'); ?></h4>
|
120 |
<select name="wp_maintenance_settings[b_repeat_image]" class="wpm-form-field" >
|
121 |
<option value="repeat"<?php if( (isset($paramMMode['b_repeat_image']) && $paramMMode['b_repeat_image']=='repeat') or empty($paramMMode['b_repeat_image']) ) { echo ' selected'; } ?>>repeat</option>
|
@@ -129,7 +141,7 @@ function toggleTable(texte) {
|
|
129 |
<div style="float:left;width:30%;text-align:center;">
|
130 |
<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' && (!$paramMMode['b_pattern'] or $paramMMode['b_pattern']==0) ) { ?>
|
131 |
<?php _e('You use this background picture:', 'wp-maintenance'); ?><br />
|
132 |
-
<img src="<?php echo $paramMMode['b_image']; ?>" width="200" /><br />
|
133 |
<?php } ?>
|
134 |
</div>
|
135 |
<div class="clear"></div>
|
@@ -153,7 +165,7 @@ function toggleTable(texte) {
|
|
153 |
<div style="float:left;width:30%;text-align:center;">
|
154 |
<?php if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']>0) { ?>
|
155 |
<?php _e('You use this pattern:', 'wp-maintenance'); ?><br />
|
156 |
-
<div style="background: url('<?php echo WP_PLUGIN_URL
|
157 |
<?php } ?>
|
158 |
</div>
|
159 |
<div class="clear"></div>
|
@@ -190,8 +202,8 @@ function toggleTable(texte) {
|
|
190 |
?>
|
191 |
<div style="margin-bottom:15px;width:100%;">
|
192 |
<div style="width:30%;float:left;">
|
193 |
-
<?php _e('Speed:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_speed]" class="wpm-form-field" size="4" value="<?php if( isset($paramSliderOptions['slider_speed']) && $paramSliderOptions['slider_speed'] !='') { echo $paramSliderOptions['slider_speed']; } else { echo 500; } ?>" />ms<br />
|
194 |
-
<?php _e('Width:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_width]" class="wpm-form-field" size="3" value="<?php if( isset($paramSliderOptions['slider_width']) && $paramSliderOptions['slider_width'] !='') { echo $paramSliderOptions['slider_width']; } else { echo 50; } ?>" />%
|
195 |
</div>
|
196 |
<div style="width:30%;float:left;padding-left:5px;">
|
197 |
|
@@ -224,7 +236,7 @@ function toggleTable(texte) {
|
|
224 |
<div class="clear"></div>
|
225 |
</div>
|
226 |
|
227 |
-
<input id="upload_slider_image" size="65%" class="wpm-form-field" name="wp_maintenance_slider[slider_image][<?php echo $countSlide; ?>][image]" value="" type="text" /> <a href="#" id="upload_slider_image_button" class="button button-primary" style="padding-top: 0.
|
228 |
|
229 |
<div style="width:100%">
|
230 |
<?php
|
@@ -235,15 +247,15 @@ function toggleTable(texte) {
|
|
235 |
|
236 |
$slideImg = '';
|
237 |
if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
|
238 |
-
$slideImg = $paramSlider['slider_image'][$numSlide]['image'];
|
239 |
}
|
240 |
$slideText = '';
|
241 |
if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
|
242 |
-
$slideText = stripslashes($paramSlider['slider_image'][$numSlide]['text']);
|
243 |
}
|
244 |
$slideLink = '';
|
245 |
if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
|
246 |
-
$slideLink = $paramSlider['slider_image'][$numSlide]['link'];
|
247 |
}
|
248 |
echo '<div style="float:left;width:45%;border: 1px solid #ececec;padding:0.8em;margin-right:1%;margin-bottom:1%">';
|
249 |
|
13 |
if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' && wp_verify_nonce($_POST['security-pictures'], 'valid-pictures') ) {
|
14 |
|
15 |
if( isset($_POST['upload_picture']) && $_POST['upload_picture']!='' ) {
|
16 |
+
$_POST["wp_maintenance_settings"]["image"] = sanitize_text_field($_POST['upload_picture']);
|
17 |
}
|
18 |
+
if( isset($_POST['remove_image']) && $_POST['remove_image']==1 ) {
|
19 |
+
$_POST["wp_maintenance_settings"]["image"] = '';
|
20 |
+
}
|
21 |
+
if( isset($_POST['upload_b_image']) && $_POST['upload_b_image']!='' ) {
|
22 |
+
$_POST["wp_maintenance_settings"]["b_image"] = sanitize_text_field($_POST['upload_b_image']);
|
23 |
+
}
|
24 |
+
if( isset($_POST['remove_b_image']) && $_POST['remove_b_image']==1 ) {
|
25 |
+
$_POST["wp_maintenance_settings"]["b_image"] = '';
|
26 |
+
$_POST["wp_maintenance_settings"]["b_enable_image"] = 0;
|
27 |
+
}
|
28 |
+
|
29 |
if( isset($_POST["wpm_maintenance_detete"]) && is_array($_POST["wpm_maintenance_detete"]) ) {
|
30 |
foreach($_POST["wpm_maintenance_detete"] as $delSlideId=>$delSlideTrue) {
|
31 |
+
if ( array_key_exists($delSlideId, sanitize_text_field($_POST["wp_maintenance_slider"]["slider_image"]) ) ) {
|
32 |
unset($_POST["wp_maintenance_slider"]["slider_image"][$delSlideId]);
|
33 |
unset($_POST["wp_maintenance_slider"]["slider_text"][$delSlideId]);
|
34 |
unset($_POST["wp_maintenance_slider"]["slider_link"][$delSlideId]);
|
90 |
|
91 |
<h3><?php _e('Header picture', 'wp-maintenance'); ?></h3>
|
92 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
93 |
+
<input id="settings_image"name="wp_maintenance_settings[image]" value="<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { echo esc_url($paramMMode['image']); } ?>" type="hidden" />
|
94 |
<input id="upload_image" size="65%" name="upload_picture" value="" type="text" class="wpm-form-field" /> <a href="#" id="upload_image_button" class="button button-primary" style="padding-top: 0.1em;padding-bottom: 0.1em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br />
|
95 |
<span class="description"><?php _e( 'URL path to image to replace default WordPress Logo. (You can upload your image with the WordPress media uploader)', 'wp-maintenance' ); ?></span><br /><br />
|
96 |
+
<span class="description"><?php _e( 'Your Logo width (Enter in pixels). Default: 450px', 'wp-maintenance' ); ?></span> <input type="text" value="<?php if( isset($paramMMode['image_width']) && $paramMMode['image_width']!='' ) { echo esc_html($paramMMode['image_width']); } ?>" name="wp_maintenance_settings[image_width]" /> <br />
|
97 |
+
<span class="description"><?php _e( 'Your Logo Height (Enter in pixels). Default: 450px', 'wp-maintenance' ); ?></span> <input type="text" value="<?php if( isset($paramMMode['image_height']) && $paramMMode['image_height']!='' ) { echo esc_html($paramMMode['image_height']); } ?>" name="wp_maintenance_settings[image_height]" /><br />
|
98 |
|
99 |
</div>
|
100 |
<div style="float:left;width:30%;text-align:center;">
|
101 |
<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
|
102 |
+
<?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" /><br /><input type="checkbox" name="remove_image" value="1" /> <?php _e('Remove', 'wp-maintenance'); ?>
|
103 |
<?php } ?>
|
104 |
</div>
|
105 |
<div class="clear"></div>
|
126 |
<!-- UPLOADER UNE IMAGE DE FOND -->
|
127 |
<div style="float:left;width:68%;margin-right:10px;">
|
128 |
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
129 |
+
<input id="settings_image"name="wp_maintenance_settings[b_image]" value="<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' ) { echo esc_url($paramMMode['b_image']); } ?>" type="hidden" />
|
130 |
+
<input id="upload_b_image" class="wpm-form-field" size="65%" name="upload_b_image" value="" type="text" /> <a href="#" id="upload_b_image_button" class="button button-primary" style="padding-top: 0.1em;padding-bottom: 0.1em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a>
|
131 |
<h4><?php _e('Background picture options', 'wp-maintenance'); ?></h4>
|
132 |
<select name="wp_maintenance_settings[b_repeat_image]" class="wpm-form-field" >
|
133 |
<option value="repeat"<?php if( (isset($paramMMode['b_repeat_image']) && $paramMMode['b_repeat_image']=='repeat') or empty($paramMMode['b_repeat_image']) ) { echo ' selected'; } ?>>repeat</option>
|
141 |
<div style="float:left;width:30%;text-align:center;">
|
142 |
<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' && (!$paramMMode['b_pattern'] or $paramMMode['b_pattern']==0) ) { ?>
|
143 |
<?php _e('You use this background picture:', 'wp-maintenance'); ?><br />
|
144 |
+
<img src="<?php echo esc_url($paramMMode['b_image']); ?>" width="200" /><br /><input type="checkbox" name="remove_b_image" value="1" /> <?php _e('Remove', 'wp-maintenance'); ?>
|
145 |
<?php } ?>
|
146 |
</div>
|
147 |
<div class="clear"></div>
|
165 |
<div style="float:left;width:30%;text-align:center;">
|
166 |
<?php if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']>0) { ?>
|
167 |
<?php _e('You use this pattern:', 'wp-maintenance'); ?><br />
|
168 |
+
<div style="background: url('<?php echo esc_url(WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$paramMMode['b_pattern'].'.png'); ?>);width:200px;height:200px;border:1px solid #ddd;margin-left:auto;margin-right:auto;"></div>
|
169 |
<?php } ?>
|
170 |
</div>
|
171 |
<div class="clear"></div>
|
202 |
?>
|
203 |
<div style="margin-bottom:15px;width:100%;">
|
204 |
<div style="width:30%;float:left;">
|
205 |
+
<?php _e('Speed:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_speed]" class="wpm-form-field" size="4" value="<?php if( isset($paramSliderOptions['slider_speed']) && $paramSliderOptions['slider_speed'] !='') { echo esc_html($paramSliderOptions['slider_speed']); } else { echo 500; } ?>" />ms<br />
|
206 |
+
<?php _e('Width:', 'wp-maintenance'); ?> <input type="text" name="wp_maintenance_slider_options[slider_width]" class="wpm-form-field" size="3" value="<?php if( isset($paramSliderOptions['slider_width']) && $paramSliderOptions['slider_width'] !='') { echo esc_html($paramSliderOptions['slider_width']); } else { echo 50; } ?>" />%
|
207 |
</div>
|
208 |
<div style="width:30%;float:left;padding-left:5px;">
|
209 |
|
236 |
<div class="clear"></div>
|
237 |
</div>
|
238 |
|
239 |
+
<input id="upload_slider_image" size="65%" class="wpm-form-field" name="wp_maintenance_slider[slider_image][<?php echo $countSlide; ?>][image]" value="" type="text" /> <a href="#" id="upload_slider_image_button" class="button button-primary" style="padding-top: 0.1em;padding-bottom: 0.1em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br /><br />
|
240 |
|
241 |
<div style="width:100%">
|
242 |
<?php
|
247 |
|
248 |
$slideImg = '';
|
249 |
if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
|
250 |
+
$slideImg = esc_url($paramSlider['slider_image'][$numSlide]['image']);
|
251 |
}
|
252 |
$slideText = '';
|
253 |
if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
|
254 |
+
$slideText = esc_html(stripslashes($paramSlider['slider_image'][$numSlide]['text']));
|
255 |
}
|
256 |
$slideLink = '';
|
257 |
if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
|
258 |
+
$slideLink = esc_url($paramSlider['slider_image'][$numSlide]['link']);
|
259 |
}
|
260 |
echo '<div style="float:left;width:45%;border: 1px solid #ececec;padding:0.8em;margin-right:1%;margin-bottom:1%">';
|
261 |
|
views/wp-maintenance-settings.php
CHANGED
@@ -133,21 +133,21 @@ jQuery(document).ready(function() {
|
|
133 |
<!-- IP addresses autorized -->
|
134 |
<h3><?php _e('IP autorized:', 'wp-maintenance'); ?></h3>
|
135 |
<?php _e('Allow the site to display these IP addresses. Please, enter one IP address by line:', 'wp-maintenance'); ?> <br /><br />
|
136 |
-
<textarea name="wp_maintenance_ipaddresses" class="wpm-form-field" ROWS="5" style="width:80%;"><?php if( isset($paramIpAddress) && $paramIpAddress!='' ) { echo $paramIpAddress; } ?></textarea>
|
137 |
|
138 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
139 |
|
140 |
<!-- ID pages autorized -->
|
141 |
<h3><?php _e('ID pages autorized:', 'wp-maintenance'); ?></h3>
|
142 |
<?php _e('Allow the site to display these ID pages. Please, enter the ID pages separate with comma :', 'wp-maintenance'); ?> <br /><br />
|
143 |
-
<input name="wp_maintenance_settings[id_pages]" class="wpm-form-field" size="70" value="<?php if( isset($paramMMode['id_pages']) && $paramMMode['id_pages']!='' ) { echo $paramMMode['id_pages']; } ?>" />
|
144 |
|
145 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
146 |
|
147 |
<!-- Header Code -->
|
148 |
<h3><?php _e('Header Code:', 'wp-maintenance'); ?></h3>
|
149 |
<?php _e('The following code will add to the <head> tag. Useful if you need to add additional scripts such as CSS or JS.', 'wp-maintenance'); ?> <br /><br />
|
150 |
-
<textarea id="headercode" name="wp_maintenance_settings[headercode]" COLS=50 ROWS=2><?php if( isset($paramMMode['headercode']) && $paramMMode['headercode']!='' ) { echo stripslashes($paramMMode['headercode']); } ?></textarea><br />
|
151 |
|
152 |
|
153 |
|
133 |
<!-- IP addresses autorized -->
|
134 |
<h3><?php _e('IP autorized:', 'wp-maintenance'); ?></h3>
|
135 |
<?php _e('Allow the site to display these IP addresses. Please, enter one IP address by line:', 'wp-maintenance'); ?> <br /><br />
|
136 |
+
<textarea name="wp_maintenance_ipaddresses" class="wpm-form-field" ROWS="5" style="width:80%;"><?php if( isset($paramIpAddress) && $paramIpAddress!='' ) { echo esc_textarea($paramIpAddress); } ?></textarea>
|
137 |
|
138 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
139 |
|
140 |
<!-- ID pages autorized -->
|
141 |
<h3><?php _e('ID pages autorized:', 'wp-maintenance'); ?></h3>
|
142 |
<?php _e('Allow the site to display these ID pages. Please, enter the ID pages separate with comma :', 'wp-maintenance'); ?> <br /><br />
|
143 |
+
<input name="wp_maintenance_settings[id_pages]" class="wpm-form-field" size="70" value="<?php if( isset($paramMMode['id_pages']) && $paramMMode['id_pages']!='' ) { echo esc_textarea($paramMMode['id_pages']); } ?>" />
|
144 |
|
145 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
146 |
|
147 |
<!-- Header Code -->
|
148 |
<h3><?php _e('Header Code:', 'wp-maintenance'); ?></h3>
|
149 |
<?php _e('The following code will add to the <head> tag. Useful if you need to add additional scripts such as CSS or JS.', 'wp-maintenance'); ?> <br /><br />
|
150 |
+
<textarea id="headercode" name="wp_maintenance_settings[headercode]" COLS=50 ROWS=2><?php if( isset($paramMMode['headercode']) && $paramMMode['headercode']!='' ) { echo esc_textarea(stripslashes($paramMMode['headercode'])); } ?></textarea><br />
|
151 |
|
152 |
|
153 |
|
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://madeby.restezconnectes.fr
|
8 |
-
* Version: 5.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', '5.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://madeby.restezconnectes.fr
|
8 |
+
* Version: 5.0.7
|
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', '5.0.7' ); }
|
40 |
|
41 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
42 |
require WPM_DIR . 'classes/slider.php';
|