Version Description
- Adding SEO settings
- Adding preview page
- Adding opacity for background image
- Fixed bug : auto slide & navigation button for slider
- Fixed bug : disable the maintenance mode at the end of the countdown
=
Download this release
Release Info
Developer | Florent73 |
Plugin | WP Maintenance |
Version | 5.0.0 |
Comparing to | |
See all releases |
Code changes from version 4.0.4 to 5.0.0
- classes/countdown.php +35 -29
- classes/wp-maintenance.php +90 -345
- includes/functions.php +8 -83
- js/wpm-script.js +1 -1
- languages/wp-maintenance-fr_FR.mo +0 -0
- languages/wp-maintenance-fr_FR.po +192 -148
- languages/wp-maintenance.pot +179 -144
- readme.txt +10 -3
- themes/default/functions.php +431 -0
- themes/default/index.php +74 -0
- views/wp-maintenance-colors.php +4 -1
- views/wp-maintenance-countdown.php +8 -7
- views/wp-maintenance-dashboard.php +39 -11
- views/wp-maintenance-picture.php +205 -176
- wp-maintenance.php +3 -5
classes/countdown.php
CHANGED
@@ -10,6 +10,8 @@ class WPM_Countdown extends WP_maintenance {
|
|
10 |
|
11 |
// Récupère les paramètres sauvegardés
|
12 |
$paramMMode = wp_maintenance::wpm_get_options();
|
|
|
|
|
13 |
$Counter = '';
|
14 |
|
15 |
/*********** AJOUT COMPTEUR SUIVANT LES PARAMETRES *********/
|
@@ -17,35 +19,39 @@ class WPM_Countdown extends WP_maintenance {
|
|
17 |
|
18 |
if( isset($paramMMode['cptdate']) && !empty($paramMMode['cptdate']) ) {
|
19 |
|
20 |
-
if( !isset($paramMMode['disable']) ) { $paramMMode['disable'] = 0; }
|
21 |
-
|
22 |
-
|
23 |
-
<
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
$
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
}
|
51 |
|
10 |
|
11 |
// Récupère les paramètres sauvegardés
|
12 |
$paramMMode = wp_maintenance::wpm_get_options();
|
13 |
+
// Récupère si le status est actif ou non
|
14 |
+
$statusActive = get_option('wp_maintenance_active');
|
15 |
$Counter = '';
|
16 |
|
17 |
/*********** AJOUT COMPTEUR SUIVANT LES PARAMETRES *********/
|
19 |
|
20 |
if( isset($paramMMode['cptdate']) && !empty($paramMMode['cptdate']) ) {
|
21 |
|
22 |
+
if( !isset($paramMMode['disable']) || $statusActive==0 ) { $paramMMode['disable'] = 0; }
|
23 |
+
|
24 |
+
$Counter = '
|
25 |
+
<div id="countdown">
|
26 |
+
<script language="JavaScript">
|
27 |
+
TargetDate = "'.$date.'";
|
28 |
+
BackColor = "'.$paramMMode['color_cpt_bg'].'";
|
29 |
+
FontSize = "'.$paramMMode['date_cpt_size'].'";
|
30 |
+
ForeColor = "'.$paramMMode['color_cpt'].'";
|
31 |
+
Disable = "'.$paramMMode['disable'].'";
|
32 |
+
UrlDisable = "'.get_option( 'siteurl').'";
|
33 |
+
FontFamily = "'.wpm_format_font($paramMMode['font_cpt']).'";
|
34 |
+
CountActive = true;
|
35 |
+
CountStepper = -1;
|
36 |
+
LeadingZero = true;
|
37 |
+
';
|
38 |
+
$Counter .= " DisplayFormat = '<div id=\"wpm-cpt-day\">%%D%%<br /><span id=\"wpm-cpt-days-span\">".__('Days', 'wp-maintenance')."</span></div><div id=\"wpm-cpt-hours\">%%H%%<br /><span id=\"wpm-cpt-hours-span\">".__('Hours', 'wp-maintenance')."</span></div><div id=\"wpm-cpt-minutes\">%%M%%<br /><span id=\"wpm-cpt-minutes-span\">".__('Minutes', 'wp-maintenance')."</span></div>";
|
39 |
+
if( isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==1 ) {
|
40 |
+
$Counter .= '<div id="wpm-cpt-seconds">%%S%%<br /><span id="wpm-cpt-seconds-span">'.__('Seconds', 'wp-maintenance').'</span></div>';
|
41 |
+
}
|
42 |
+
$Counter .= "';";
|
43 |
+
if( isset($paramMMode['message_cpt_fin']) && $paramMMode['message_cpt_fin']!='' ) {
|
44 |
+
$Counter .= '
|
45 |
+
FinishMessage = "'.trim( stripslashes( preg_replace("/(\r\n|\n|\r)/", "", $paramMMode['message_cpt_fin']) ) ).'";';
|
46 |
+
} else {
|
47 |
+
$Counter .= '
|
48 |
+
FinishMessage = " ";';
|
49 |
+
}
|
50 |
+
$Counter .= '
|
51 |
+
</script>';
|
52 |
+
$Counter .= '
|
53 |
+
<script language="JavaScript" src="'.WP_PLUGIN_URL.'/wp-maintenance/js/wpm-cpt-script.js"></script>
|
54 |
+
</div>';
|
55 |
}
|
56 |
}
|
57 |
|
classes/wp-maintenance.php
CHANGED
@@ -4,15 +4,20 @@ class WP_maintenance {
|
|
4 |
|
5 |
protected static $instance;
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
public function __construct() {
|
8 |
|
9 |
/* Récupère le status */
|
10 |
$statusActive = $this->wpm_check_active();
|
11 |
-
|
12 |
if ( isset($statusActive) && $statusActive == 1) {
|
13 |
add_action( 'template_redirect', array( &$this, 'wpm_maintenance_mode'), 2 );
|
14 |
}
|
15 |
-
|
|
|
16 |
/* Version du plugin */
|
17 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
18 |
if( !get_option('wp_maintenance_version') ) {
|
@@ -20,9 +25,8 @@ class WP_maintenance {
|
|
20 |
} else if ( get_option('wp_maintenance_version') != WPM_VERSION ) {
|
21 |
update_option('wp_maintenance_version', WPM_VERSION);
|
22 |
}
|
23 |
-
|
24 |
-
|
25 |
-
if( is_admin() ) {
|
26 |
add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
|
27 |
add_filter( 'plugin_action_links', array( &$this, 'wpm_plugin_actions'), 10, 2 );
|
28 |
add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
|
@@ -33,11 +37,22 @@ class WP_maintenance {
|
|
33 |
add_action( 'admin_init', array( &$this, 'wpm_process_settings_export') );
|
34 |
add_action( 'after_setup_theme', array( &$this, 'wpm_theme_add_editor_styles') );
|
35 |
}
|
|
|
|
|
36 |
}
|
37 |
|
38 |
function wpm_theme_add_editor_styles() {
|
39 |
add_editor_style( plugins_url('../css/custom-editor-style.css', __FILE__ ) );
|
40 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
public static function wpm_dashboard_install() {
|
42 |
|
43 |
$nameServer = '';
|
@@ -92,13 +107,14 @@ class WP_maintenance {
|
|
92 |
'text_bt_maintenance' => '',
|
93 |
'add_wplogin' => '',
|
94 |
'b_enable_image' => 0,
|
|
|
95 |
'disable' => 0,
|
96 |
'pageperso' => 0,
|
97 |
'date_cpt_size' => 40,
|
98 |
'color_bg_header' => '#f1f1f1',
|
99 |
'add_wplogin_title' => '',
|
100 |
'headercode' => '',
|
101 |
-
'message_cpt_fin' => '',
|
102 |
'b_repeat_image' => '',
|
103 |
'color_cpt_bg' => '',
|
104 |
'enable_slider' => 0,
|
@@ -197,19 +213,10 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
197 |
padding:8px;
|
198 |
/*margin-bottom:20px;*/
|
199 |
}
|
200 |
-
.wpm-form-field:focus {
|
201 |
-
|
202 |
-
color: '.$colors[0].'!important;
|
203 |
-
}
|
204 |
-
.switch-field input:checked + label:last-of-type {
|
205 |
-
background-color: '.$colors[0].'!important;
|
206 |
-
color:#e4e4e4!important;
|
207 |
-
}
|
208 |
.switch-field-mini input:checked + label { background-color: '.$colors[2].'; }
|
209 |
-
.switch-field-mini input:checked + label:last-of-type {
|
210 |
-
background-color: '.$colors[0].'!important;
|
211 |
-
color:#e4e4e4!important;
|
212 |
-
}
|
213 |
</style>';
|
214 |
} else {
|
215 |
echo '<style>
|
@@ -399,8 +406,6 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
399 |
|
400 |
wp_register_script('wpm-admin-fontselect', WPM_PLUGIN_URL.'js/fontselect/jquery.fontselect.min.js' );
|
401 |
wp_enqueue_script('wpm-admin-fontselect');
|
402 |
-
|
403 |
-
|
404 |
|
405 |
}
|
406 |
|
@@ -585,13 +590,13 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
585 |
}
|
586 |
}
|
587 |
}
|
588 |
-
|
589 |
/* Désactive le mode maintenance pour les PAGE ID définies */
|
590 |
-
if( isset($paramMMode['id_pages'])
|
591 |
$listPageId = explode(',', $paramMMode['id_pages']);
|
592 |
foreach($listPageId as $keyPageId => $valPageId) {
|
593 |
if( $valPageId == get_the_ID() ) {
|
594 |
-
$statusActive =
|
595 |
}
|
596 |
}
|
597 |
}
|
@@ -600,7 +605,11 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
600 |
if( current_user_can('administrator') == true ) {
|
601 |
$statusActive = 0;
|
602 |
}
|
603 |
-
|
|
|
|
|
|
|
|
|
604 |
return $statusActive;
|
605 |
}
|
606 |
|
@@ -630,339 +639,75 @@ a.wpmadashicons:hover { text-decoration:none;color: '.$colors[2].'!important; }
|
|
630 |
}
|
631 |
|
632 |
/* Si on désactive le mode maintenance en fin de compte à rebours */
|
633 |
-
if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $
|
634 |
|
635 |
if( $dateNow > $dateFinCpt ) {
|
636 |
$ChangeStatus = wpm_change_active();
|
|
|
637 |
}
|
638 |
}
|
639 |
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
if( isset($paramMMode['container_active']) && $paramMMode['container_active'] == 1 ) {
|
662 |
-
|
663 |
-
if( empty($paramMMode['container_opacity']) ) { $paramMMode['container_opacity'] = 0.5; }
|
664 |
-
if( empty($paramMMode['container_width']) ) { $paramMMode['container_width'] = 80; }
|
665 |
-
if( empty($paramMMode['container_color']) ) { $paramMMode['container_color'] = '#ffffff'; }
|
666 |
-
if( isset($paramMMode['container_color']) ) {
|
667 |
-
$paramRGBColor = wpm_hex2rgb($paramMMode['container_color']);
|
668 |
-
}
|
669 |
-
|
670 |
-
$wpmStyle .= '
|
671 |
-
#sscontent {
|
672 |
-
background-color: rgba('.$paramRGBColor['rouge'].','.$paramRGBColor['vert'].','.$paramRGBColor['bleu'].', '.$paramMMode['container_opacity'].');
|
673 |
-
padding:0.8em;
|
674 |
-
margin-left:auto;
|
675 |
-
margin-right:auto;
|
676 |
-
width:'.$paramMMode['container_width'].'%;
|
677 |
-
}
|
678 |
-
';
|
679 |
-
}
|
680 |
-
|
681 |
-
/* Défninition des couleurs par défault */
|
682 |
-
if( !isset($paramMMode['color_bg']) || $paramMMode['color_bg']=="") { $paramMMode['color_bg'] = "#f1f1f1"; }
|
683 |
-
if( !isset($paramMMode['color_txt']) || $paramMMode['color_txt']=="") { $paramMMode['color_txt'] = "#888888"; }
|
684 |
-
|
685 |
-
/* Traitement de la feuille de style */
|
686 |
-
$styleRemplacements = array (
|
687 |
-
"#_COLORTXT" => $paramMMode['color_txt'],
|
688 |
-
"#_COLORBG" => $paramMMode['color_bg'],
|
689 |
-
"#_COLORCPTBG" => $paramMMode['color_cpt_bg'],
|
690 |
-
"#_DATESIZE" => $paramMMode['date_cpt_size'],
|
691 |
-
"#_COLORCPT" => $paramMMode['color_cpt'],
|
692 |
-
"#_COLOR_BG_BT" => $paramMMode['color_bg_bottom'],
|
693 |
-
"#_COLOR_TXT_BT" => $paramMMode['color_text_bottom'],
|
694 |
-
"#_COLORHEAD" => $paramMMode['color_bg_header'],
|
695 |
-
);
|
696 |
-
$wpmStyle .= str_replace(array_keys($styleRemplacements), array_values($styleRemplacements), get_option('wp_maintenance_style'));
|
697 |
-
if( isset($paramMMode['message_cpt_fin']) && $paramMMode['message_cpt_fin']=='') { $paramMMode['message_cpt_fin'] = ' '; }
|
698 |
-
|
699 |
-
|
700 |
-
$template_page = wpm_get_template();
|
701 |
-
|
702 |
-
$Counter = '';
|
703 |
-
$addFormLogin = '';
|
704 |
-
$newLetter = '';
|
705 |
-
|
706 |
-
if( isset($paramMMode['analytics']) && $paramMMode['analytics']!='') {
|
707 |
-
$CodeAnalytics = do_shortcode('[wpm_analytics enable="'.$paramMMode['analytics'].'"]');
|
708 |
-
} else {
|
709 |
-
$CodeAnalytics = '';
|
710 |
-
}
|
711 |
-
if( isset($paramMMode['headercode']) && $paramMMode['headercode']!='') {
|
712 |
-
$HeaderCode = stripslashes($paramMMode['headercode']);
|
713 |
-
} else {
|
714 |
-
$HeaderCode = '';
|
715 |
-
}
|
716 |
-
if( isset($paramSocialOption['position']) && $paramSocialOption['position']=='top') {
|
717 |
-
$TopSocialIcons = '<div id="header">'.do_shortcode('[wpm_social]').'</div>';
|
718 |
-
} else {
|
719 |
-
$TopSocialIcons = '';
|
720 |
-
}
|
721 |
-
if( isset($paramSocialOption['position']) && $paramSocialOption['position']=='bottom') {
|
722 |
-
$BottomSocialIcons = do_shortcode('[wpm_social]');
|
723 |
-
} else {
|
724 |
-
$BottomSocialIcons = '';
|
725 |
-
}
|
726 |
-
if( isset($paramMMode['image']) && $paramMMode['image'] ) {
|
727 |
-
if( empty($paramMMode['image_width']) ) { $paramMMode['image_width'] = 310; }
|
728 |
-
if( empty($paramMMode['image_height']) ) { $paramMMode['image_height'] = 185; }
|
729 |
-
$LogoImage = '<div id="logo"><img src="'.$paramMMode['image'].'" width="'.$paramMMode['image_width'].'" height="'.$paramMMode['image_height'].'" alt="'.get_bloginfo( 'name', 'display' ).' '.get_bloginfo( 'description', 'display' ).'" title="'.get_bloginfo( 'name', 'display' ).' '.get_bloginfo( 'description', 'display' ).'" /></div>';
|
730 |
-
|
731 |
-
} else {
|
732 |
-
$LogoImage = '';
|
733 |
-
}
|
734 |
-
|
735 |
-
if( isset($paramMMode['text_bt_maintenance']) && $paramMMode['text_bt_maintenance']!='' ) {
|
736 |
-
$TextCopyright = stripslashes($paramMMode['text_bt_maintenance']);
|
737 |
-
} else {
|
738 |
-
$TextCopyright = '';
|
739 |
-
}
|
740 |
-
if( (isset($paramMMode['add_wplogin']) && $paramMMode['add_wplogin']==1) && (isset($paramMMode['add_wplogin_title']) && $paramMMode['add_wplogin_title']!='') ) {
|
741 |
-
$TextCopyright .= '<br /><br />'.str_replace('%DASHBOARD%', '<a href="'.get_admin_url().'">'.__('Dashboard', 'wp-maintenance').'</a>', $paramMMode['add_wplogin_title']).'';
|
742 |
-
|
743 |
-
}
|
744 |
-
if( isset($paramMMode['titre_maintenance']) && $paramMMode['titre_maintenance']!='' ) {
|
745 |
-
$Titre = stripslashes($paramMMode['titre_maintenance']);
|
746 |
-
} else {
|
747 |
-
$Titre = '';
|
748 |
-
}
|
749 |
-
if( isset($paramMMode['text_maintenance']) && $paramMMode['text_maintenance']!='' ) {
|
750 |
-
$Texte = stripslashes(wpautop($paramMMode['text_maintenance']));
|
751 |
-
} else {
|
752 |
-
$Texte = '';
|
753 |
-
}
|
754 |
-
$wysijaStyle = '/* no NEWLETTER Style */';
|
755 |
-
if( isset($paramMMode['newletter']) && $paramMMode['newletter']==1 ) {
|
756 |
-
|
757 |
-
if( empty($paramMMode['color_field_text']) ) { $paramMMode['color_field_text'] = '#333333'; }
|
758 |
-
if( empty($paramMMode['color_text_button']) ) { $paramMMode['color_text_button']= '#ffffff'; }
|
759 |
-
if( empty($paramMMode['color_field_background']) ) { $paramMMode['color_field_background']= '#F1F1F1'; }
|
760 |
-
if( empty($paramMMode['color_field_border']) ) { $paramMMode['color_field_border']= '#333333'; }
|
761 |
-
if( empty($paramMMode['color_button_onclick']) ) { $paramMMode['color_button_onclick']= '#333333'; }
|
762 |
-
if( empty($paramMMode['color_button_hover']) ) { $paramMMode['color_button_hover']= '#cccccc'; }
|
763 |
-
if( empty($paramMMode['color_button']) ) { $paramMMode['color_button']= '#1e73be'; }
|
764 |
-
|
765 |
-
$wysijaRemplacements = array (
|
766 |
-
"#_COLORTXT" => $paramMMode['color_field_text'],
|
767 |
-
"#_COLORBG" => $paramMMode['color_field_background'],
|
768 |
-
"#_COLORBORDER" => $paramMMode['color_field_border'],
|
769 |
-
"#_COLORBUTTON" => $paramMMode['color_button'],
|
770 |
-
"#_COLORTEXTBUTTON" => $paramMMode['color_text_button'],
|
771 |
-
"#_COLOR_BTN_HOVER" => $paramMMode['color_button_hover'],
|
772 |
-
"#_COLOR_BTN_CLICK" => $paramMMode['color_button_onclick']
|
773 |
-
);
|
774 |
-
|
775 |
-
if( isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' && strpos($paramMMode['code_newletter'], 'wysija_form') == 1 ) {
|
776 |
-
|
777 |
-
$wysijaStyle = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_wysija_style() );
|
778 |
-
|
779 |
-
} else if( strpos($paramMMode['code_newletter'], 'mc4wp_form') == 1 ) {
|
780 |
-
|
781 |
-
$wysijaStyle = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_mc4wp_style() );
|
782 |
-
|
783 |
-
}
|
784 |
-
$newLetter = '<div class="wpm_newletter">';
|
785 |
-
if( isset($paramMMode['title_newletter']) && $paramMMode['title_newletter']!='') {
|
786 |
-
$newLetter .= '<div>'.stripslashes($paramMMode['title_newletter']).'</div>';
|
787 |
-
}
|
788 |
-
if( isset($paramMMode['type_newletter']) && isset($paramMMode['iframe_newletter']) && $paramMMode['iframe_newletter']!='' && $paramMMode['type_newletter']=='iframe' ) {
|
789 |
-
$newLetter .= stripslashes($paramMMode['iframe_newletter']);
|
790 |
-
}
|
791 |
-
if( isset($paramMMode['type_newletter']) && isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' && $paramMMode['type_newletter']=='shortcode' ) {
|
792 |
-
$newLetter .= do_shortcode(stripslashes($paramMMode['code_newletter']));
|
793 |
-
}
|
794 |
-
$newLetter .= '</div>';
|
795 |
-
}
|
796 |
-
|
797 |
-
$optionBackground = '';
|
798 |
-
$addBImage = '';
|
799 |
-
if( (isset($paramMMode['b_image']) && $paramMMode['b_image']) && (isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==1) ) {
|
800 |
-
if( isset($paramMMode['b_repeat_image']) || $paramMMode['b_repeat_image']=='') { $paramMMode['b_repeat_image'] = 'repeat'; }
|
801 |
-
if( isset($paramMMode['b_fixed_image']) && $paramMMode['b_fixed_image']==1 ) {
|
802 |
-
$optionBackground = 'background-attachment:fixed;';
|
803 |
-
}
|
804 |
-
$addBImage = '
|
805 |
-
body {
|
806 |
-
background-image:url('.$paramMMode['b_image'].');
|
807 |
-
background-size: cover;
|
808 |
-
-webkit-background-size: cover;
|
809 |
-
-moz-background-size: cover;
|
810 |
-
-o-background-size: cover;
|
811 |
-
background-repeat: '.$paramMMode['b_repeat_image'].';
|
812 |
-
'.$optionBackground.'
|
813 |
-
}';
|
814 |
-
}
|
815 |
-
if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']>0 && $paramMMode['b_enable_image']==1) {
|
816 |
-
$addBImage = '
|
817 |
-
body {
|
818 |
-
background-image: url('.WP_PLUGIN_URL.'/wp-maintenance/images/pattern'.$paramMMode['b_pattern'].'.png);
|
819 |
-
background-repeat: '.$paramMMode['b_repeat_image'].';
|
820 |
-
'.$optionBackground.'
|
821 |
-
}'; }
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
/*********** AJOUT DU STYLE SUIVANT LES PARAMETRES *********/
|
826 |
-
$wpmFonts = '
|
827 |
-
@import url(https://fonts.googleapis.com/css?family='.str_replace(' ', '+', $paramMMode['font_title']).'|'.str_replace(' ', '+',$paramMMode['font_text']).'|'.str_replace(' ', '+',$paramMMode['font_text_bottom']).'|'.str_replace(' ', '+',$paramMMode['font_cpt']);
|
828 |
-
if( isset($paramMMode['newletter_font_text']) && $paramMMode['newletter_font_text'] != '') {
|
829 |
-
$wpmFonts .= '|'.str_replace(' ', '+',$paramMMode['newletter_font_text']);
|
830 |
-
}
|
831 |
-
$wpmFonts .= ');';
|
832 |
-
|
833 |
-
/* Si on a une couleur de fond */
|
834 |
-
if( isset($paramMMode['color_bg']) && $paramMMode['color_bg']!='' ) {
|
835 |
-
$wpmStyle .= 'body { background-color: '.$paramMMode['color_bg'].'; }';
|
836 |
-
}
|
837 |
-
|
838 |
-
$wpmStyle .= ''.$addBImage.'
|
839 |
-
.wpm_social_icon {
|
840 |
-
float:left;
|
841 |
-
width:'.$paramSocialOption['size'].'px;
|
842 |
-
margin:0px 5px auto;
|
843 |
-
}
|
844 |
-
.wpm_social ul {
|
845 |
-
margin: 10px 0;
|
846 |
-
max-width: 100%;
|
847 |
-
padding: 0;
|
848 |
-
text-align: '.$paramSocialOption['align'].';
|
849 |
-
}
|
850 |
-
';
|
851 |
-
$wpmStyle .= '
|
852 |
-
.wpm_newletter {';
|
853 |
-
if( isset($paramMMode['newletter_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['newletter_size'].'px;'; }
|
854 |
-
if( isset($paramMMode['newletter_font_style']) ) { $wpmStyle .= 'font-style: '.$paramMMode['newletter_font_style'].';'; }
|
855 |
-
if( isset($paramMMode['newletter_font_weigth']) ) { $wpmStyle .= 'font-weight: '.$paramMMode['newletter_font_weigth'].';'; }
|
856 |
-
if( isset($paramMMode['newletter_font_text']) ) { $wpmStyle .= 'font-family: '.wpm_format_font($paramMMode['newletter_font_text']).', serif;'; }
|
857 |
-
$wpmStyle .= '}';
|
858 |
-
|
859 |
-
$wpmStyle .= '
|
860 |
-
h3 {';
|
861 |
-
if( isset($paramMMode['font_title']) ) { $wpmStyle .= 'font-family: '.wpm_format_font($paramMMode['font_title']).', serif;'; }
|
862 |
-
if( isset($paramMMode['font_title_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_title_size'].'px;'; }
|
863 |
-
if( isset($paramMMode['font_title_style']) ) { $wpmStyle .= 'font-style: '.$paramMMode['font_title_style'].';'; }
|
864 |
-
if( isset($paramMMode['font_title_weigth']) ) { $wpmStyle .= 'font-weight: '.$paramMMode['font_title_weigth'].';'; }
|
865 |
-
if( isset($paramMMode['color_txt']) ) { $wpmStyle .= 'color:'.$paramMMode['color_txt'].';'; }
|
866 |
-
$wpmStyle .= '
|
867 |
-
line-height: 100%;
|
868 |
-
text-align:center;
|
869 |
-
margin:0.5em auto;
|
870 |
-
}
|
871 |
-
p {';
|
872 |
-
if( isset($paramMMode['font_text']) ) { $wpmStyle .= 'font-family: '.wpm_format_font($paramMMode['font_text']).', serif;'; }
|
873 |
-
if( isset($paramMMode['font_text_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_text_size'].'px;'; }
|
874 |
-
if( isset($paramMMode['font_text_style']) ) { $wpmStyle .= 'font-style: '.$paramMMode['font_text_style'].';'; }
|
875 |
-
if( isset($paramMMode['font_text_weigth']) ) { $wpmStyle .= 'font-weight: '.$paramMMode['font_text_weigth'].';'; }
|
876 |
-
if( isset($paramMMode['color_txt']) ) { $wpmStyle .= 'color:'.$paramMMode['color_txt'].';'; }
|
877 |
-
$wpmStyle .= '
|
878 |
-
line-height: 100%;
|
879 |
-
text-align:center;
|
880 |
-
margin:0.5em auto;
|
881 |
-
padding-left:2%;
|
882 |
-
padding-right:2%;
|
883 |
-
|
884 |
-
}';
|
885 |
-
if( (isset($paramMMode['text_bt_maintenance']) && $paramMMode['text_bt_maintenance']!='') or ( (isset($paramMMode['add_wplogin']) && $paramMMode['add_wplogin']==1) && (isset($paramMMode['add_wplogin_title']) && $paramMMode['add_wplogin_title']!='') ) ) {
|
886 |
-
$wpmStyle .= '#footer {';
|
887 |
-
if( isset($paramMMode['color_bg_bottom']) ) { $wpmStyle .= 'background:'.$paramMMode['color_bg_bottom'].';'; }
|
888 |
-
$wpmStyle .= '}';
|
889 |
-
}
|
890 |
-
$wpmStyle .= '
|
891 |
-
div.bloc {';
|
892 |
-
if( isset($paramMMode['font_text_bottom']) ) { $wpmStyle .= 'font-family: '.wpm_format_font($paramMMode['font_text_bottom']).', serif;'; }
|
893 |
-
if( isset($paramMMode['font_bottom_style']) ) { $wpmStyle .= 'font-style: '.$paramMMode['font_bottom_style'].';'; }
|
894 |
-
if( isset($paramMMode['font_bottom_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_bottom_size'].'px;'; }
|
895 |
-
if( isset($paramMMode['font_bottom_weigth']) ) { $wpmStyle .= 'font-weight: '.$paramMMode['font_bottom_weigth'].';'; }
|
896 |
-
if( isset($paramMMode['color_text_bottom']) ) { $wpmStyle .= 'color: '.$paramMMode['color_text_bottom'].';'; }
|
897 |
-
$wpmStyle .= '
|
898 |
-
text-decoration:none;
|
899 |
-
}
|
900 |
-
div.bloc a:link {';
|
901 |
-
if( isset($paramMMode['color_text_bottom']) ) { $wpmStyle .= 'color:'.$paramMMode['color_text_bottom'].';'; }
|
902 |
-
if( isset($paramMMode['font_bottom_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_bottom_size'].'px;'; }
|
903 |
-
$wpmStyle .= '
|
904 |
-
text-decoration:none;
|
905 |
-
}
|
906 |
-
div.bloc a:visited {';
|
907 |
-
if( isset($paramMMode['color_text_bottom']) ) { $wpmStyle .= 'color:'.$paramMMode['color_text_bottom'].';'; }
|
908 |
-
if( isset($paramMMode['font_bottom_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_bottom_size'].'px;'; }
|
909 |
-
$wpmStyle .= '
|
910 |
-
text-decoration:none;
|
911 |
-
}
|
912 |
-
div.bloc a:hover {
|
913 |
-
text-decoration:underline;';
|
914 |
-
if( isset($paramMMode['font_bottom_size']) ) { $wpmStyle .= 'font-size: '.$paramMMode['font_bottom_size'].'px;'; }
|
915 |
-
$wpmStyle .= '
|
916 |
-
}
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
';
|
921 |
-
|
922 |
-
$addCssSlider = WPM_Slider::slider_css();
|
923 |
-
$addScriptSlider = WPM_Slider::slider_scripts();
|
924 |
-
$addScriptSlideshow = WPM_Slider::slider_functions();
|
925 |
-
$Counter = WPM_Countdown::display($dateCpt);
|
926 |
-
|
927 |
-
$wpmStyle = $wpmStyle.WPM_Countdown::css();
|
928 |
-
|
929 |
-
$tplRemplacements = array (
|
930 |
-
"%TITLE%" => get_bloginfo( 'name', 'display' ).' '.get_bloginfo( 'description', 'display' ),
|
931 |
-
"%ANALYTICS%" => $CodeAnalytics,
|
932 |
-
"%HEADERCODE%" => $HeaderCode,
|
933 |
-
"%ADDSTYLE%" => $wpmStyle,
|
934 |
-
"%ADDSTYLEWYSIJA%" => $wysijaStyle,
|
935 |
-
"%ADDFONTS%" => $wpmFonts,
|
936 |
-
"%TOPSOCIALICON%" => $TopSocialIcons,
|
937 |
-
"%BOTTOMSOCIALICON%" => $BottomSocialIcons,
|
938 |
-
"%LOGOIMAGE%" => $LogoImage,
|
939 |
-
"%COPYRIGHT%" => $TextCopyright,
|
940 |
-
"%COUNTER%" =>$Counter,
|
941 |
-
"%VERSION%" => WPM_VERSION,
|
942 |
-
"%TITRE%" => $Titre,
|
943 |
-
"%TEXTE%" => $Texte,
|
944 |
-
"%LOGINFORM%" => $addFormLogin,
|
945 |
-
"%NEWSLETTER%" => $newLetter,
|
946 |
-
"%CSSSLIDER%" => $addCssSlider,
|
947 |
-
"%SCRIPTSLIDER%" => $addScriptSlider,
|
948 |
-
"%SCRIPTSLIDESHOW%" => $addScriptSlideshow,
|
949 |
-
"%SLIDESHOWAL%" => WPM_Slider::slidershow('abovelogo'),
|
950 |
-
"%SLIDESHOWBL%" => WPM_Slider::slidershow('belowlogo'),
|
951 |
-
"%SLIDESHOWBT%" => WPM_Slider::slidershow('belowtext')
|
952 |
-
);
|
953 |
-
$template_page = str_replace(array_keys($tplRemplacements), array_values($tplRemplacements), $template_page );
|
954 |
|
955 |
-
$content = $template_page;
|
956 |
-
|
957 |
if( isset($paramMMode['error_503']) && $paramMMode['error_503']=='Yes' ) {
|
958 |
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
959 |
header('Status: 503 Service Temporarily Unavailable');
|
960 |
-
|
961 |
}
|
962 |
-
|
963 |
-
|
964 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
965 |
|
|
|
|
|
|
|
|
|
|
|
966 |
}
|
967 |
|
968 |
}
|
4 |
|
5 |
protected static $instance;
|
6 |
|
7 |
+
public static function init() {
|
8 |
+
is_null( self::$instance ) AND self::$instance = new self;
|
9 |
+
return self::$instance;
|
10 |
+
}
|
11 |
+
|
12 |
public function __construct() {
|
13 |
|
14 |
/* Récupère le status */
|
15 |
$statusActive = $this->wpm_check_active();
|
|
|
16 |
if ( isset($statusActive) && $statusActive == 1) {
|
17 |
add_action( 'template_redirect', array( &$this, 'wpm_maintenance_mode'), 2 );
|
18 |
}
|
19 |
+
add_action( 'init', array( &$this, 'wpm_dashboard_install') );
|
20 |
+
|
21 |
/* Version du plugin */
|
22 |
$option['wp_maintenance_version'] = WPM_VERSION;
|
23 |
if( !get_option('wp_maintenance_version') ) {
|
25 |
} else if ( get_option('wp_maintenance_version') != WPM_VERSION ) {
|
26 |
update_option('wp_maintenance_version', WPM_VERSION);
|
27 |
}
|
28 |
+
|
29 |
+
if( is_admin() ) {
|
|
|
30 |
add_action( 'admin_menu', array( &$this, 'wpm_add_admin') );
|
31 |
add_filter( 'plugin_action_links', array( &$this, 'wpm_plugin_actions'), 10, 2 );
|
32 |
add_action( 'admin_head', array( &$this, 'wpm_admin_head') );
|
37 |
add_action( 'admin_init', array( &$this, 'wpm_process_settings_export') );
|
38 |
add_action( 'after_setup_theme', array( &$this, 'wpm_theme_add_editor_styles') );
|
39 |
}
|
40 |
+
|
41 |
+
|
42 |
}
|
43 |
|
44 |
function wpm_theme_add_editor_styles() {
|
45 |
add_editor_style( plugins_url('../css/custom-editor-style.css', __FILE__ ) );
|
46 |
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Display the default template
|
50 |
+
*/
|
51 |
+
function wpm_get_default_template() {
|
52 |
+
$file = file_get_contents(WPM_DIR.'/themes/default/index.php');
|
53 |
+
return $file;
|
54 |
+
}
|
55 |
+
|
56 |
public static function wpm_dashboard_install() {
|
57 |
|
58 |
$nameServer = '';
|
107 |
'text_bt_maintenance' => '',
|
108 |
'add_wplogin' => '',
|
109 |
'b_enable_image' => 0,
|
110 |
+
'b_opacity_image' => '0.2',
|
111 |
'disable' => 0,
|
112 |
'pageperso' => 0,
|
113 |
'date_cpt_size' => 40,
|
114 |
'color_bg_header' => '#f1f1f1',
|
115 |
'add_wplogin_title' => '',
|
116 |
'headercode' => '',
|
117 |
+
'message_cpt_fin' => ' ',
|
118 |
'b_repeat_image' => '',
|
119 |
'color_cpt_bg' => '',
|
120 |
'enable_slider' => 0,
|
213 |
padding:8px;
|
214 |
/*margin-bottom:20px;*/
|
215 |
}
|
216 |
+
.wpm-form-field:focus {background: #fff!important;color: '.$colors[0].'!important;}
|
217 |
+
.switch-field input:checked + label:last-of-type {background-color: '.$colors[0].'!important;color:#e4e4e4!important;}
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
.switch-field-mini input:checked + label { background-color: '.$colors[2].'; }
|
219 |
+
.switch-field-mini input:checked + label:last-of-type {background-color: '.$colors[0].'!important;color:#e4e4e4!important;}
|
|
|
|
|
|
|
220 |
</style>';
|
221 |
} else {
|
222 |
echo '<style>
|
406 |
|
407 |
wp_register_script('wpm-admin-fontselect', WPM_PLUGIN_URL.'js/fontselect/jquery.fontselect.min.js' );
|
408 |
wp_enqueue_script('wpm-admin-fontselect');
|
|
|
|
|
409 |
|
410 |
}
|
411 |
|
590 |
}
|
591 |
}
|
592 |
}
|
593 |
+
|
594 |
/* Désactive le mode maintenance pour les PAGE ID définies */
|
595 |
+
if( isset($paramMMode['id_pages']) ) {
|
596 |
$listPageId = explode(',', $paramMMode['id_pages']);
|
597 |
foreach($listPageId as $keyPageId => $valPageId) {
|
598 |
if( $valPageId == get_the_ID() ) {
|
599 |
+
$statusActive = 0;
|
600 |
}
|
601 |
}
|
602 |
}
|
605 |
if( current_user_can('administrator') == true ) {
|
606 |
$statusActive = 0;
|
607 |
}
|
608 |
+
/* Mode Preview */
|
609 |
+
if( isset($_GET['preview']) && $_GET['preview']=='true' ) {
|
610 |
+
$statusActive = 1;
|
611 |
+
}
|
612 |
+
|
613 |
return $statusActive;
|
614 |
}
|
615 |
|
639 |
}
|
640 |
|
641 |
/* Si on désactive le mode maintenance en fin de compte à rebours */
|
642 |
+
if( ( isset($paramMMode['disable']) && $paramMMode['disable']==1 ) && $this->wpm_check_active() == 1 ) {
|
643 |
|
644 |
if( $dateNow > $dateFinCpt ) {
|
645 |
$ChangeStatus = wpm_change_active();
|
646 |
+
$disableCounter = wpm_update_settings( array('disable'=> 0) );
|
647 |
}
|
648 |
}
|
649 |
|
650 |
+
// Prevetn Plugins from caching
|
651 |
+
// Disable caching plugins. This should take care of:
|
652 |
+
// - W3 Total Cache
|
653 |
+
// - WP Super Cache
|
654 |
+
// - ZenCache (Previously QuickCache)
|
655 |
+
if(!defined('DONOTCACHEPAGE')) {
|
656 |
+
define('DONOTCACHEPAGE', true);
|
657 |
+
}
|
658 |
+
if(!defined('DONOTCDN')) {
|
659 |
+
define('DONOTCDN', true);
|
660 |
+
}
|
661 |
+
if(!defined('DONOTCACHEDB')) {
|
662 |
+
define('DONOTCACHEDB', true);
|
663 |
+
}
|
664 |
+
if(!defined('DONOTMINIFY')) {
|
665 |
+
define('DONOTMINIFY', true);
|
666 |
+
}
|
667 |
+
if(!defined('DONOTCACHEOBJECT')) {
|
668 |
+
define('DONOTCACHEOBJECT', true);
|
669 |
+
}
|
670 |
+
nocache_headers();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
671 |
|
|
|
|
|
672 |
if( isset($paramMMode['error_503']) && $paramMMode['error_503']=='Yes' ) {
|
673 |
header('HTTP/1.1 503 Service Temporarily Unavailable');
|
674 |
header('Status: 503 Service Temporarily Unavailable');
|
675 |
+
header('Retry-After: 86400'); // retry in a day
|
676 |
}
|
677 |
+
|
678 |
+
$template = $this->wpm_get_default_template();
|
679 |
+
require_once( WPM_DIR.'/themes/default/functions.php' );
|
680 |
+
|
681 |
+
$template_tags = array (
|
682 |
+
"{TitleSEO}" => wpm_title_seo(),
|
683 |
+
"{MetaDescription}" => wpm_metadescription(),
|
684 |
+
"{HeaderCode}" => wpm_headercode(),
|
685 |
+
"{Head}" => wpm_head(),
|
686 |
+
"{Logo}" => wpm_logo(),
|
687 |
+
"{Version}" => WPM_VERSION,
|
688 |
+
"{Title}" => wpm_title(),
|
689 |
+
"{Text}" => wpm_text(),
|
690 |
+
"{Favicon}" => wpm_favicon(),
|
691 |
+
"{CustomCSS}" => wpm_customcss(),
|
692 |
+
"{Analytics}" => wpm_analytics(),
|
693 |
+
"{TopSocialIcon}" => wpm_social_position("top"),
|
694 |
+
"{BottomSocialIcon}" => wpm_social_position("bottom"),
|
695 |
+
"{Copyrights}" => wpm_copyrights(),
|
696 |
+
"{AddStyleWysija}" => wpm_stylenewsletter(),
|
697 |
+
"{Newsletter}" => wpm_newsletter(),
|
698 |
+
"{SliderCSS}" => WPM_Slider::slider_css(),
|
699 |
+
"{ScriptSlider}" => WPM_Slider::slider_scripts(),
|
700 |
+
"{ScriptSlideshow}" => WPM_Slider::slider_functions(),
|
701 |
+
"{Counter}" => WPM_Countdown::display($dateCpt),
|
702 |
+
"{SlideshowAL}" => WPM_Slider::slidershow('abovelogo'),
|
703 |
+
"{SlideshowBL}" => WPM_Slider::slidershow('belowlogo'),
|
704 |
+
"{SlideshowBT}" => WPM_Slider::slidershow('belowtext'),
|
705 |
|
706 |
+
|
707 |
+
);
|
708 |
+
|
709 |
+
echo strtr($template, $template_tags);
|
710 |
+
exit();
|
711 |
}
|
712 |
|
713 |
}
|
includes/functions.php
CHANGED
@@ -3,10 +3,14 @@
|
|
3 |
defined( 'ABSPATH' )
|
4 |
or die( 'No direct load ! ' );
|
5 |
|
|
|
6 |
function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settings', $update = 0 ) {
|
7 |
|
8 |
global $current_user;
|
9 |
global $_wp_admin_css_colors;
|
|
|
|
|
|
|
10 |
|
11 |
$getHeader = '
|
12 |
<div id="wpm-container">
|
@@ -17,7 +21,7 @@ function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settin
|
|
17 |
</h2>
|
18 |
</div>';
|
19 |
$getHeader .= '<div id="wpm-navdashicons">
|
20 |
-
<div style="text-align:center;border-bottom: 1px solid #ddd;margin-bottom: 5px;">MENU</div><div style="text-align:center;">'.wpm_list_dashicons().'
|
21 |
</div>';
|
22 |
$getHeader .= '<div id="wpm-navmessage">';
|
23 |
if( $update == 1 ) {
|
@@ -31,7 +35,7 @@ function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settin
|
|
31 |
}
|
32 |
$getHeader .= '</div>
|
33 |
<div id="wpm-navsave">
|
34 |
-
|
35 |
</div><div class="clear"></div>
|
36 |
</div>
|
37 |
</div><div class="clear"></div>';
|
@@ -104,6 +108,8 @@ function wpm_update_settings($tabPost) {
|
|
104 |
// Je recupère le tableau temporaire des données
|
105 |
if( isset($paramTemp) && !empty($paramTemp) ) {
|
106 |
foreach($paramTemp as $variable=>$value) {
|
|
|
|
|
107 |
// pour chaque clé du tableau de regarde si elle existe déjà
|
108 |
if ( array_key_exists($variable, $paramTemp) ) {
|
109 |
// Si la clé est la même que venant du post je la change
|
@@ -225,87 +231,6 @@ function wpm_array_value_count ($array) {
|
|
225 |
return $count;
|
226 |
}
|
227 |
|
228 |
-
function wpm_get_template() {
|
229 |
-
|
230 |
-
return '<!DOCTYPE html>
|
231 |
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
232 |
-
<head>
|
233 |
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
234 |
-
<meta name="viewport" content="width=device-width, user-scalable=yes" />
|
235 |
-
<title>%TITLE%</title>
|
236 |
-
|
237 |
-
<style type=\'text/css\'>
|
238 |
-
/* VERSION %VERSION% */
|
239 |
-
%ADDFONTS%
|
240 |
-
html,
|
241 |
-
body {margin:0;padding:0;height:100%;font-size:100%;}
|
242 |
-
#wrapper {min-height:100%;position:relative;}
|
243 |
-
#header {padding:10px;}
|
244 |
-
#content {padding-bottom:100px; /* Height of the footer element */}
|
245 |
-
#footer {width:100%;line-height:60px;position:absolute;bottom:0;left:0;text-align: center;}
|
246 |
-
#logo {max-width: 100%;height: auto;text-align: center;}
|
247 |
-
img, object, embed, canvas, video, audio, picture {max-width: 100%;height: auto;}
|
248 |
-
div.bloc {width:80%;padding:10px;vertical-align:middle;display:inline-block;line-height:1.2;text-align:center;}
|
249 |
-
.wpm_social {padding: 0 45px;text-align: center;}
|
250 |
-
@media (max-width: 640px) {body {font-size:1.2rem;}}
|
251 |
-
@media (min-width: 640px) {body {font-size:1rem;}}
|
252 |
-
@media (min-width:960px) {body {font-size:1.2rem;}}
|
253 |
-
@media (min-width:1100px) {body {font-size:1.5rem;}}
|
254 |
-
/* On ajoute les styles */
|
255 |
-
%ADDSTYLEWYSIJA%
|
256 |
-
%ADDSTYLE%
|
257 |
-
|
258 |
-
</style>
|
259 |
-
|
260 |
-
<!--[if lt IE 7]>
|
261 |
-
<style type="text/css">
|
262 |
-
#wrapper { height:100%; }
|
263 |
-
div.bloc { display:inline; /* correctif inline-block*/ }
|
264 |
-
div.conteneur > span { zoom:1; /* layout */ }
|
265 |
-
</style>
|
266 |
-
<![endif]-->
|
267 |
-
%ANALYTICS%
|
268 |
-
%HEADERCODE%
|
269 |
-
%CSSSLIDER%
|
270 |
-
%SCRIPTSLIDER%
|
271 |
-
%SCRIPTSLIDESHOW%
|
272 |
-
</head>
|
273 |
-
|
274 |
-
<body>
|
275 |
-
|
276 |
-
<div id="wrapper">
|
277 |
-
|
278 |
-
%TOPSOCIALICON%
|
279 |
-
<!-- #header -->
|
280 |
-
|
281 |
-
<div id="content">
|
282 |
-
%SLIDESHOWAL%
|
283 |
-
%LOGOIMAGE%
|
284 |
-
%SLIDESHOWBL%
|
285 |
-
<div id="sscontent">
|
286 |
-
<h3>%TITRE%</h3>
|
287 |
-
<p>%TEXTE%</p>
|
288 |
-
%SLIDESHOWBT%
|
289 |
-
%COUNTER%
|
290 |
-
%NEWSLETTER%
|
291 |
-
</div>
|
292 |
-
%BOTTOMSOCIALICON%
|
293 |
-
</div><!-- #content -->
|
294 |
-
|
295 |
-
<div id="footer">
|
296 |
-
<div class="bloc">%COPYRIGHT%</div>
|
297 |
-
<span></span>
|
298 |
-
</div><!-- #footer -->
|
299 |
-
|
300 |
-
</div><!-- #wrapper -->
|
301 |
-
|
302 |
-
</body>
|
303 |
-
|
304 |
-
</html>
|
305 |
-
';
|
306 |
-
|
307 |
-
}
|
308 |
-
|
309 |
function wpm_getFontsTab() {
|
310 |
return array("Abel", "Abril Fatface", "Aclonica", "Acme", "Actor", "Adamina", "Advent Pro",
|
311 |
"Aguafina Script", "Aladin", "Aldrich", "Alegreya", "Alegreya SC", "Alex Brush", "Alfa Slab One", "Alice",
|
3 |
defined( 'ABSPATH' )
|
4 |
or die( 'No direct load ! ' );
|
5 |
|
6 |
+
|
7 |
function wpm_get_header( $text = 'Settings', $dashicon = 'dashicons-admin-settings', $update = 0 ) {
|
8 |
|
9 |
global $current_user;
|
10 |
global $_wp_admin_css_colors;
|
11 |
+
|
12 |
+
$admin_color = get_user_option( 'admin_color', get_current_user_id() );
|
13 |
+
$colors = $_wp_admin_css_colors[$admin_color]->colors;
|
14 |
|
15 |
$getHeader = '
|
16 |
<div id="wpm-container">
|
21 |
</h2>
|
22 |
</div>';
|
23 |
$getHeader .= '<div id="wpm-navdashicons">
|
24 |
+
<div style="text-align:center;border-bottom: 1px solid #ddd;margin-bottom: 5px;">MENU</div><div style="text-align:center;">'.wpm_list_dashicons().' <a href="'.site_url().'/?preview=true" target="_blank" alt="'.__('Preview page', 'wp-maintenance').'" title="'.__('Preview page', 'wp-maintenance').'" class="wpmadashicons" onFocus="this.blur()"><span class="dashicons dashicons-external" style="font-size:25px;margin-right:15px;color:'.$colors[2].'" ></span></a></div>
|
25 |
</div>';
|
26 |
$getHeader .= '<div id="wpm-navmessage">';
|
27 |
if( $update == 1 ) {
|
35 |
}
|
36 |
$getHeader .= '</div>
|
37 |
<div id="wpm-navsave">
|
38 |
+
'.get_submit_button( '', 'primary', 'valide_settings', false ).'
|
39 |
</div><div class="clear"></div>
|
40 |
</div>
|
41 |
</div><div class="clear"></div>';
|
108 |
// Je recupère le tableau temporaire des données
|
109 |
if( isset($paramTemp) && !empty($paramTemp) ) {
|
110 |
foreach($paramTemp as $variable=>$value) {
|
111 |
+
//var_dump($variable.' =====> '.$value.'<br />');
|
112 |
+
|
113 |
// pour chaque clé du tableau de regarde si elle existe déjà
|
114 |
if ( array_key_exists($variable, $paramTemp) ) {
|
115 |
// Si la clé est la même que venant du post je la change
|
231 |
return $count;
|
232 |
}
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
function wpm_getFontsTab() {
|
235 |
return array("Abel", "Abril Fatface", "Aclonica", "Acme", "Actor", "Adamina", "Advent Pro",
|
236 |
"Aguafina Script", "Aladin", "Aldrich", "Alegreya", "Alegreya SC", "Alex Brush", "Alfa Slab One", "Alice",
|
js/wpm-script.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function AfficherTexte(t){document.getElementById(t).style.display="block"}function CacherTexte(t){document.getElementById(t).style.display="none"}function AfficherCacher(t){var e=document.getElementById(t).style.display;"block"==e?document.getElementById(t).style.display="none":document.getElementById(t).style.display="block"}jQuery(document).ready(function(){var t;jQuery("#upload_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_image").val(attachment.url)}),void t.open())}),jQuery("#upload_b_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_b_image").val(attachment.url)}),void t.open())}),jQuery("#upload_slider_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_slider_image").val(attachment.url)}),void t.open())})}),jQuery(window).load(function(){jQuery("#wpmcontainer").sticky({topSpacing:32,zIndex:9980,left:0,getWidthFrom:"#divwpmcontainer"})});
|
1 |
+
function AfficherTexte(t){document.getElementById(t).style.display="block"}function CacherTexte(t){document.getElementById(t).style.display="none"}function AfficherCacher(t){var e=document.getElementById(t).style.display;"block"==e?document.getElementById(t).style.display="none":document.getElementById(t).style.display="block"}jQuery(document).ready(function(){var t;jQuery("#upload_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_image").val(attachment.url)}),void t.open())}),jQuery("#upload_favicon_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_favicon").val(attachment.url)}),void t.open())}),jQuery("#upload_b_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_b_image").val(attachment.url)}),void t.open())}),jQuery("#upload_slider_image_button").click(function(e){return e.preventDefault(),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:Data.title,button:{text:Data.textebutton},multiple:!1}),t.on("select",function(){attachment=t.state().get("selection").first().toJSON(),jQuery("#upload_slider_image").val(attachment.url)}),void t.open())})}),jQuery(window).load(function(){jQuery("#wpmcontainer").sticky({topSpacing:32,zIndex:9980,left:0,getWidthFrom:"#divwpmcontainer"})});
|
languages/wp-maintenance-fr_FR.mo
CHANGED
Binary file
|
languages/wp-maintenance-fr_FR.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 2.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
15 |
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
@@ -45,121 +45,121 @@ msgstr "Précédent"
|
|
45 |
msgid "Next"
|
46 |
msgstr "Suivant"
|
47 |
|
48 |
-
#: classes/wp-maintenance.php:
|
49 |
msgid "This site is down for maintenance"
|
50 |
msgstr "Ce site est fermé pour maintenance"
|
51 |
|
52 |
-
#: classes/wp-maintenance.php:
|
53 |
msgid "Come back quickly!"
|
54 |
msgstr "Nous revenons rapidement !"
|
55 |
|
56 |
-
#: classes/wp-maintenance.php:
|
57 |
-
#: classes/wp-maintenance.php:
|
58 |
msgid "Settings"
|
59 |
msgstr "Réglages"
|
60 |
|
61 |
#. Plugin Name of the plugin/theme
|
62 |
-
#: classes/wp-maintenance.php:
|
63 |
-
#: includes/functions.php:
|
64 |
msgid "WP Maintenance"
|
65 |
msgstr "WP Maintenance"
|
66 |
|
67 |
-
#: classes/wp-maintenance.php:
|
68 |
msgid "Colors"
|
69 |
msgstr "Couleurs"
|
70 |
|
71 |
-
#: classes/wp-maintenance.php:
|
72 |
msgid "Pictures"
|
73 |
msgstr "Images"
|
74 |
|
75 |
-
#: classes/wp-maintenance.php:
|
76 |
msgid "Countdown"
|
77 |
msgstr "Compte à rebours"
|
78 |
|
79 |
-
#: classes/wp-maintenance.php:
|
80 |
msgid "CSS"
|
81 |
msgstr "CSS"
|
82 |
|
83 |
-
#: classes/wp-maintenance.php:
|
84 |
msgid "General"
|
85 |
msgstr "Général"
|
86 |
|
87 |
-
#: classes/wp-maintenance.php:
|
88 |
msgid "Colors & Fonts"
|
89 |
msgstr "Coleurs & Polices"
|
90 |
|
91 |
-
#: classes/wp-maintenance.php:
|
92 |
msgid "CountDown"
|
93 |
msgstr "Compte à rebours"
|
94 |
|
95 |
-
#: classes/wp-maintenance.php:
|
96 |
msgid "CSS Style"
|
97 |
msgstr "Style CSS"
|
98 |
|
99 |
-
#: classes/wp-maintenance.php:
|
100 |
msgid "Choose This Image"
|
101 |
msgstr "Choisir cette image"
|
102 |
|
103 |
-
#: classes/wp-maintenance.php:
|
104 |
msgid "Choose Image"
|
105 |
msgstr "Choisir une image"
|
106 |
|
107 |
-
#: classes/wp-maintenance.php:
|
108 |
-
#: classes/wp-maintenance.php:
|
109 |
-
#: classes/wp-maintenance.php:
|
110 |
msgid "You do not have sufficient privileges to access this page."
|
111 |
msgstr ""
|
112 |
"Vous n'avez pas les autorisations suffisantes pour accéder à cette page."
|
113 |
|
114 |
-
#: classes/wp-maintenance.php:
|
115 |
msgid "Please upload a valid .json file"
|
116 |
msgstr "Veuillez téléverser un fichier .json valide"
|
117 |
|
118 |
-
#: classes/wp-maintenance.php:
|
119 |
msgid "Please upload a file to import"
|
120 |
msgstr "Veuillez téléverser un fichier à importer"
|
121 |
|
122 |
-
#: classes/wp-maintenance.php:
|
123 |
msgid "New settings imported successfully!"
|
124 |
msgstr "Nouveaux paramètres importés avec succès !"
|
125 |
|
126 |
-
#: classes/wp-maintenance.php:827
|
127 |
-
msgid "Dashboard"
|
128 |
-
msgstr "Tableau de bord"
|
129 |
-
|
130 |
#: includes/functions.php:24
|
|
|
|
|
|
|
|
|
131 |
msgid "Options saved."
|
132 |
msgstr "Options sauvegardées."
|
133 |
|
134 |
-
#: includes/functions.php:
|
135 |
msgid "Go to Generals options"
|
136 |
msgstr "Aller aux options générales"
|
137 |
|
138 |
-
#: includes/functions.php:
|
139 |
msgid "Go to Colors and Fonts options"
|
140 |
msgstr "Aller aux options de couleurs et polices"
|
141 |
|
142 |
-
#: includes/functions.php:
|
143 |
msgid "Go to Pictures options"
|
144 |
msgstr "Aller aux options des images"
|
145 |
|
146 |
-
#: includes/functions.php:
|
147 |
msgid "Go to Countdown options"
|
148 |
msgstr "Aller aux options du compte à rebours"
|
149 |
|
150 |
-
#: includes/functions.php:
|
151 |
msgid "Go to CSS options"
|
152 |
msgstr "Aller aux options de la feuille de style CSS"
|
153 |
|
154 |
-
#: includes/functions.php:
|
155 |
msgid "Go to Settings options"
|
156 |
msgstr "Aller aux paramètrages"
|
157 |
|
158 |
-
#: includes/functions.php:
|
159 |
msgid "ABOUT"
|
160 |
msgstr "A PROPOS"
|
161 |
|
162 |
-
#: includes/functions.php:
|
163 |
msgid ""
|
164 |
"This plugin has been developed for you for free by <a href=\"https://"
|
165 |
"restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>. It is royalty "
|
@@ -170,35 +170,39 @@ msgstr ""
|
|
170 |
"Elle est libre de droits, vous pouvez la prendre, la modifier, la distribuer "
|
171 |
"comme bon vous semble."
|
172 |
|
173 |
-
#: includes/functions.php:
|
174 |
msgid "Visit"
|
175 |
msgstr "Visitez"
|
176 |
|
177 |
-
#: includes/functions.php:
|
178 |
msgid ""
|
179 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
180 |
msgstr "essayez la démo de cette extension et parlez-en à votre entourage !"
|
181 |
|
182 |
-
#: includes/functions.php:
|
183 |
msgid "Support this extension and my other developments (French Paypal):"
|
184 |
msgstr "Soutenez cette extension et mes autres développements (PayPal) :"
|
185 |
|
186 |
-
#: includes/functions.php:
|
187 |
msgid "DISCOVER"
|
188 |
msgstr "DÉCOUVRIR"
|
189 |
|
190 |
-
#: includes/functions.php:
|
191 |
msgid "is brought to you by"
|
192 |
msgstr "vous est proposé par"
|
193 |
|
194 |
-
#: includes/functions.php:
|
195 |
msgid "If you found this plugin useful"
|
196 |
msgstr "Si vous avez trouvé cette extension utile"
|
197 |
|
198 |
-
#: includes/functions.php:
|
199 |
msgid "give it 5 ★ on WordPress.org"
|
200 |
msgstr "donnez-lui 5 ★ sur WordPress.org"
|
201 |
|
|
|
|
|
|
|
|
|
202 |
#: views/wp-maintenance-colors.php:49
|
203 |
msgid "Choice general colors:"
|
204 |
msgstr "Choix des couleurs générales :"
|
@@ -216,145 +220,149 @@ msgid "Choice texts fonts and colors:"
|
|
216 |
msgstr "Choix des polices et couleurs des textes :"
|
217 |
|
218 |
#: views/wp-maintenance-colors.php:55
|
219 |
-
msgid "
|
220 |
-
msgstr "Couleur du
|
221 |
|
222 |
-
#: views/wp-maintenance-colors.php:
|
223 |
msgid "Title font settings"
|
224 |
msgstr "Paramètres de la police du titre"
|
225 |
|
226 |
-
#: views/wp-maintenance-colors.php:
|
227 |
-
#: views/wp-maintenance-colors.php:
|
228 |
-
#: views/wp-maintenance-colors.php:
|
229 |
msgid "Size:"
|
230 |
msgstr "Taille :"
|
231 |
|
232 |
-
#: views/wp-maintenance-colors.php:
|
233 |
-
#: views/wp-maintenance-colors.php:
|
234 |
-
#: views/wp-maintenance-colors.php:
|
235 |
-
#: views/wp-maintenance-colors.php:
|
236 |
-
#: views/wp-maintenance-colors.php:
|
237 |
#: views/wp-maintenance-countdown.php:96 views/wp-maintenance-countdown.php:108
|
238 |
#: views/wp-maintenance-css.php:56 views/wp-maintenance-dashboard.php:64
|
239 |
#: views/wp-maintenance-dashboard.php:124
|
240 |
#: views/wp-maintenance-dashboard.php:148
|
241 |
-
#: views/wp-maintenance-dashboard.php:
|
242 |
-
#: views/wp-maintenance-dashboard.php:
|
243 |
-
#: views/wp-maintenance-dashboard.php:
|
244 |
-
#: views/wp-maintenance-picture.php:
|
245 |
-
#: views/wp-maintenance-picture.php:
|
246 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
247 |
msgid "Yes"
|
248 |
msgstr "Oui"
|
249 |
|
250 |
-
#: views/wp-maintenance-colors.php:
|
251 |
-
#: views/wp-maintenance-colors.php:
|
252 |
-
#: views/wp-maintenance-colors.php:
|
253 |
-
#: views/wp-maintenance-colors.php:
|
254 |
-
#: views/wp-maintenance-colors.php:
|
255 |
#: views/wp-maintenance-countdown.php:98 views/wp-maintenance-countdown.php:110
|
256 |
#: views/wp-maintenance-css.php:58 views/wp-maintenance-dashboard.php:66
|
257 |
#: views/wp-maintenance-dashboard.php:126
|
258 |
#: views/wp-maintenance-dashboard.php:150
|
259 |
-
#: views/wp-maintenance-dashboard.php:
|
260 |
-
#: views/wp-maintenance-dashboard.php:
|
261 |
-
#: views/wp-maintenance-dashboard.php:
|
262 |
-
#: views/wp-maintenance-picture.php:
|
263 |
-
#: views/wp-maintenance-picture.php:
|
264 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
265 |
msgid "No"
|
266 |
msgstr "Non"
|
267 |
|
268 |
-
#: views/wp-maintenance-colors.php:
|
|
|
|
|
|
|
|
|
269 |
msgid "Text font settings"
|
270 |
msgstr "Paramètres de la police du texte"
|
271 |
|
272 |
-
#: views/wp-maintenance-colors.php:
|
273 |
msgid "Activate Frame"
|
274 |
msgstr "Activer le cadre"
|
275 |
|
276 |
-
#: views/wp-maintenance-colors.php:
|
277 |
msgid "Color:"
|
278 |
msgstr "Couleur :"
|
279 |
|
280 |
-
#: views/wp-maintenance-colors.php:
|
281 |
msgid "Opacity:"
|
282 |
msgstr "Opacité :"
|
283 |
|
284 |
-
#: views/wp-maintenance-colors.php:
|
285 |
msgid "Width:"
|
286 |
msgstr "Largeur :"
|
287 |
|
288 |
-
#: views/wp-maintenance-colors.php:
|
289 |
msgid "Choice countdown fonts and colors:"
|
290 |
msgstr "Choix des polices et couleurs du compte à rebours :"
|
291 |
|
292 |
-
#: views/wp-maintenance-colors.php:
|
293 |
msgid "Countdown text color:"
|
294 |
msgstr "Couleur du texte du compteur :"
|
295 |
|
296 |
-
#: views/wp-maintenance-colors.php:
|
297 |
msgid "Countdown background color:"
|
298 |
msgstr "Couleur du fond du compteur :"
|
299 |
|
300 |
-
#: views/wp-maintenance-colors.php:
|
301 |
msgid "Countdown font settings"
|
302 |
msgstr "Paramètres de la police du compte à rebours"
|
303 |
|
304 |
-
#: views/wp-maintenance-colors.php:
|
305 |
msgid "Choice fonts and colors bottom page:"
|
306 |
msgstr "Choix des polices et couleurs du bas de page :"
|
307 |
|
308 |
-
#: views/wp-maintenance-colors.php:
|
309 |
msgid "Bottom color:"
|
310 |
msgstr "Couleur du fond :"
|
311 |
|
312 |
-
#: views/wp-maintenance-colors.php:
|
313 |
msgid "Text bottom color:"
|
314 |
msgstr "Couleur du texte :"
|
315 |
|
316 |
-
#: views/wp-maintenance-colors.php:
|
317 |
msgid "Choice form color:"
|
318 |
msgstr "Choisir les couleurs du formulaire :"
|
319 |
|
320 |
-
#: views/wp-maintenance-colors.php:
|
321 |
msgid "Field text color:"
|
322 |
msgstr "Couleur du texte dans les champs :"
|
323 |
|
324 |
-
#: views/wp-maintenance-colors.php:
|
325 |
msgid "Field border color:"
|
326 |
msgstr "Couleur de bordure des champs :"
|
327 |
|
328 |
-
#: views/wp-maintenance-colors.php:
|
329 |
msgid "Field background color:"
|
330 |
msgstr "Couleur de fond des champs :"
|
331 |
|
332 |
-
#: views/wp-maintenance-colors.php:
|
333 |
msgid "Button text color:"
|
334 |
msgstr "Couleur du texte dans le bouton :"
|
335 |
|
336 |
-
#: views/wp-maintenance-colors.php:
|
337 |
msgid "Button color:"
|
338 |
msgstr "Couleur du bouton :"
|
339 |
|
340 |
-
#: views/wp-maintenance-colors.php:
|
341 |
msgid "Button color hover:"
|
342 |
msgstr "Couleur du bouton au survol :"
|
343 |
|
344 |
-
#: views/wp-maintenance-colors.php:
|
345 |
msgid "Button color onclick:"
|
346 |
msgstr "Couleur du bouton au click :"
|
347 |
|
348 |
-
#: views/wp-maintenance-colors.php:
|
349 |
#, php-format
|
350 |
msgid "Enable %s to customize the forms"
|
351 |
msgstr "Activer %s pour personnaliser les formulaires"
|
352 |
|
353 |
-
#: views/wp-maintenance-colors.php:
|
354 |
msgid "newsletter option"
|
355 |
msgstr "options de newsletter"
|
356 |
|
357 |
-
#: views/wp-maintenance-colors.php:
|
358 |
msgid "Enable Mailpoet or MailChimp extensions to customize the forms"
|
359 |
msgstr ""
|
360 |
"Activer les extensions Mailpoet ou MailChimp personnaliser les formulaires"
|
@@ -552,7 +560,7 @@ msgstr "Titre et Texte de la page maintenance :"
|
|
552 |
msgid "Title:"
|
553 |
msgstr "Titre :"
|
554 |
|
555 |
-
#: views/wp-maintenance-dashboard.php:76 views/wp-maintenance-picture.php:
|
556 |
msgid "Text:"
|
557 |
msgstr "Texte :"
|
558 |
|
@@ -581,113 +589,143 @@ msgstr ""
|
|
581 |
"celui-ci)"
|
582 |
|
583 |
#: views/wp-maintenance-dashboard.php:144
|
584 |
-
msgid "Enable
|
585 |
-
msgstr "Activer
|
586 |
|
587 |
#: views/wp-maintenance-dashboard.php:158
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
msgid "Enter your Google analytics tracking ID here:"
|
589 |
msgstr "Enter votre ID de suivi de Google Analytics ici :"
|
590 |
|
591 |
-
#: views/wp-maintenance-dashboard.php:
|
592 |
msgid "Enter your domain URL:"
|
593 |
msgstr "Entrer l'URL de votre domaine :"
|
594 |
|
595 |
-
#: views/wp-maintenance-dashboard.php:
|
596 |
msgid "Enable Social Networks:"
|
597 |
msgstr "Activer les réseaux sociaux :"
|
598 |
|
599 |
-
#: views/wp-maintenance-dashboard.php:
|
600 |
msgid "Enter text for the title icons:"
|
601 |
msgstr "Entrez un texte pour la balise title des icônes :"
|
602 |
|
603 |
-
#: views/wp-maintenance-dashboard.php:
|
604 |
msgid "Follow me on"
|
605 |
msgstr "Suivez-moi sur"
|
606 |
|
607 |
-
#: views/wp-maintenance-dashboard.php:
|
608 |
msgid "Drad and drop the lines to put in the order you want:"
|
609 |
msgstr ""
|
610 |
"Cliquez et glisser les lignes pour mettre dans l'ordre que vous souhaitez :"
|
611 |
|
612 |
-
#: views/wp-maintenance-dashboard.php:
|
613 |
msgid "Choose icons size:"
|
614 |
msgstr "Choisissez la taille des icônes :"
|
615 |
|
616 |
-
#: views/wp-maintenance-dashboard.php:
|
617 |
msgid "Choose icons style:"
|
618 |
msgstr "Choisissez le style des icônes :"
|
619 |
|
620 |
-
#: views/wp-maintenance-dashboard.php:
|
621 |
msgid "Position:"
|
622 |
msgstr "Position :"
|
623 |
|
624 |
-
#: views/wp-maintenance-dashboard.php:
|
625 |
msgid "Top"
|
626 |
msgstr "Haut"
|
627 |
|
628 |
-
#: views/wp-maintenance-dashboard.php:
|
629 |
msgid "Bottom"
|
630 |
msgstr "Bas"
|
631 |
|
632 |
-
#: views/wp-maintenance-dashboard.php:
|
633 |
msgid "Align:"
|
634 |
msgstr "Alignement :"
|
635 |
|
636 |
-
#: views/wp-maintenance-dashboard.php:
|
637 |
msgid "Left"
|
638 |
msgstr "Gauche"
|
639 |
|
640 |
-
#: views/wp-maintenance-dashboard.php:
|
641 |
msgid "Center"
|
642 |
msgstr "Centre"
|
643 |
|
644 |
-
#: views/wp-maintenance-dashboard.php:
|
645 |
msgid "Right"
|
646 |
msgstr "Droite"
|
647 |
|
648 |
-
#: views/wp-maintenance-dashboard.php:
|
649 |
msgid "You have your own icons? Enter the folder name of your theme here:"
|
650 |
msgstr ""
|
651 |
"Vous avez vos propres icônes ? Entrez le nom du dossier de votre thème ici :"
|
652 |
|
653 |
-
#: views/wp-maintenance-dashboard.php:
|
654 |
msgid "Reset Social Icon?"
|
655 |
msgstr "Réinitialiser les icônes des réseaux sociaux ?"
|
656 |
|
657 |
-
#: views/wp-maintenance-dashboard.php:
|
658 |
msgid "Enable Newletter:"
|
659 |
msgstr "Activer l'encart de newletter :"
|
660 |
|
661 |
-
#: views/wp-maintenance-dashboard.php:
|
662 |
msgid "Enter title for the newletter block:"
|
663 |
msgstr "Entrez un titre pour l'encart de la newsletter :"
|
664 |
|
665 |
-
#: views/wp-maintenance-dashboard.php:
|
666 |
msgid "Enter your newletter shortcode here:"
|
667 |
msgstr "Entrez le Shortcode de la newletter ici :"
|
668 |
|
669 |
-
#: views/wp-maintenance-dashboard.php:
|
670 |
msgid "Or enter your newletter iframe code here:"
|
671 |
msgstr "Ou entrez le code iframe de la newsletter ici :"
|
672 |
|
673 |
-
#: views/wp-maintenance-picture.php:
|
674 |
msgid "Picture"
|
675 |
msgstr "Image"
|
676 |
|
677 |
-
#: views/wp-maintenance-picture.php:
|
678 |
msgid "Header picture"
|
679 |
msgstr "Image d'entête"
|
680 |
|
681 |
-
#: views/wp-maintenance-picture.php:
|
682 |
-
msgid "Enter a URL or upload an image."
|
683 |
-
msgstr "Entrez une url ou mettez en ligne une image."
|
684 |
-
|
685 |
-
#: views/wp-maintenance-picture.php:70 views/wp-maintenance-picture.php:102
|
686 |
-
#: views/wp-maintenance-picture.php:207
|
687 |
-
msgid "Select or Upload your picture"
|
688 |
-
msgstr "Sélectionnez / Mettre en ligne votre image"
|
689 |
-
|
690 |
-
#: views/wp-maintenance-picture.php:71
|
691 |
msgid ""
|
692 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
693 |
"image with the WordPress media uploader)"
|
@@ -695,83 +733,83 @@ msgstr ""
|
|
695 |
"Url de l'image pour remplacer le logo WordPress par défaut. (Vous pouvez "
|
696 |
"envoyer votre image avec l'outil d'envoi de médias interne à WordPress)"
|
697 |
|
698 |
-
#: views/wp-maintenance-picture.php:
|
699 |
msgid "Your Logo width (Enter in pixels). Default: 310px"
|
700 |
msgstr "Largeur de votre logo (entrez-la en pixels). Par défaut : 310px"
|
701 |
|
702 |
-
#: views/wp-maintenance-picture.php:
|
703 |
msgid "Your Logo Height (Enter in pixels). Default: 185px"
|
704 |
msgstr "Hauteur de votre logo (entrez-la en pixels). Par défaut : 185px"
|
705 |
|
706 |
-
#: views/wp-maintenance-picture.php:
|
707 |
msgid "You use this picture:"
|
708 |
msgstr "Image actuelle :"
|
709 |
|
710 |
-
#: views/wp-maintenance-picture.php:
|
711 |
msgid "Background picture or pattern"
|
712 |
msgstr "Image de fond ou un modèle"
|
713 |
|
714 |
-
#: views/wp-maintenance-picture.php:
|
715 |
msgid "Background picture options"
|
716 |
msgstr "Options de l'image de fond"
|
717 |
|
718 |
-
#: views/wp-maintenance-picture.php:
|
719 |
msgid "Fixed"
|
720 |
msgstr "Fixe"
|
721 |
|
722 |
-
#: views/wp-maintenance-picture.php:
|
723 |
msgid "You use this background picture:"
|
724 |
msgstr "Image de fond actuelle :"
|
725 |
|
726 |
-
#: views/wp-maintenance-picture.php:
|
727 |
msgid "Or choose a pattern:"
|
728 |
msgstr "Ou choisissez un pattern de fond :"
|
729 |
|
730 |
-
#: views/wp-maintenance-picture.php:
|
731 |
msgid "NO PATTERN"
|
732 |
msgstr "AUCUN PATTERN"
|
733 |
|
734 |
-
#: views/wp-maintenance-picture.php:
|
735 |
msgid "You use this pattern:"
|
736 |
msgstr "Vous utilisez ce modèle :"
|
737 |
|
738 |
-
#: views/wp-maintenance-picture.php:
|
739 |
msgid "Enable Slider"
|
740 |
msgstr "Activer le Slider"
|
741 |
|
742 |
-
#: views/wp-maintenance-picture.php:
|
743 |
msgid "Slider image options"
|
744 |
msgstr "Options du Slider"
|
745 |
|
746 |
-
#: views/wp-maintenance-picture.php:
|
747 |
msgid "Speed:"
|
748 |
msgstr "Vitesse :"
|
749 |
|
750 |
-
#: views/wp-maintenance-picture.php:
|
751 |
msgid "Display Auto Slider:"
|
752 |
msgstr "Afficher le Slider en auto :"
|
753 |
|
754 |
-
#: views/wp-maintenance-picture.php:
|
755 |
msgid "Display button navigation:"
|
756 |
msgstr "Afficher les boutons navigation :"
|
757 |
|
758 |
-
#: views/wp-maintenance-picture.php:
|
759 |
msgid "Above logo"
|
760 |
msgstr "Au-dessus du logo"
|
761 |
|
762 |
-
#: views/wp-maintenance-picture.php:
|
763 |
msgid "Below logo"
|
764 |
msgstr "Au-dessous du logo"
|
765 |
|
766 |
-
#: views/wp-maintenance-picture.php:
|
767 |
msgid "Below title & text"
|
768 |
msgstr "Au-dessous du titre & texte"
|
769 |
|
770 |
-
#: views/wp-maintenance-picture.php:
|
771 |
msgid "Link:"
|
772 |
msgstr "Lien :"
|
773 |
|
774 |
-
#: views/wp-maintenance-picture.php:
|
775 |
msgid "Delete this slide"
|
776 |
msgstr "Supprimer ce slide"
|
777 |
|
@@ -919,6 +957,12 @@ msgstr "Florent Maillefaud"
|
|
919 |
msgid "https://wpmaintenance.info"
|
920 |
msgstr "https://wpmaintenance.info"
|
921 |
|
|
|
|
|
|
|
|
|
|
|
|
|
922 |
#~ msgid "Maintenance mode activated!"
|
923 |
#~ msgstr "Maintenance activée !"
|
924 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Maintenance\n"
|
4 |
+
"POT-Creation-Date: 2018-08-18 20:19+0200\n"
|
5 |
+
"PO-Revision-Date: 2018-08-18 20:22+0200\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.1.1\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
15 |
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
45 |
msgid "Next"
|
46 |
msgstr "Suivant"
|
47 |
|
48 |
+
#: classes/wp-maintenance.php:68
|
49 |
msgid "This site is down for maintenance"
|
50 |
msgstr "Ce site est fermé pour maintenance"
|
51 |
|
52 |
+
#: classes/wp-maintenance.php:69
|
53 |
msgid "Come back quickly!"
|
54 |
msgstr "Nous revenons rapidement !"
|
55 |
|
56 |
+
#: classes/wp-maintenance.php:177 classes/wp-maintenance.php:293
|
57 |
+
#: classes/wp-maintenance.php:344 views/wp-maintenance-settings.php:57
|
58 |
msgid "Settings"
|
59 |
msgstr "Réglages"
|
60 |
|
61 |
#. Plugin Name of the plugin/theme
|
62 |
+
#: classes/wp-maintenance.php:231 classes/wp-maintenance.php:236
|
63 |
+
#: includes/functions.php:176
|
64 |
msgid "WP Maintenance"
|
65 |
msgstr "WP Maintenance"
|
66 |
|
67 |
+
#: classes/wp-maintenance.php:253
|
68 |
msgid "Colors"
|
69 |
msgstr "Couleurs"
|
70 |
|
71 |
+
#: classes/wp-maintenance.php:263 classes/wp-maintenance.php:338
|
72 |
msgid "Pictures"
|
73 |
msgstr "Images"
|
74 |
|
75 |
+
#: classes/wp-maintenance.php:273 views/wp-maintenance-countdown.php:24
|
76 |
msgid "Countdown"
|
77 |
msgstr "Compte à rebours"
|
78 |
|
79 |
+
#: classes/wp-maintenance.php:283
|
80 |
msgid "CSS"
|
81 |
msgstr "CSS"
|
82 |
|
83 |
+
#: classes/wp-maintenance.php:334 views/wp-maintenance-dashboard.php:53
|
84 |
msgid "General"
|
85 |
msgstr "Général"
|
86 |
|
87 |
+
#: classes/wp-maintenance.php:336 views/wp-maintenance-colors.php:41
|
88 |
msgid "Colors & Fonts"
|
89 |
msgstr "Coleurs & Polices"
|
90 |
|
91 |
+
#: classes/wp-maintenance.php:340
|
92 |
msgid "CountDown"
|
93 |
msgstr "Compte à rebours"
|
94 |
|
95 |
+
#: classes/wp-maintenance.php:342 views/wp-maintenance-css.php:36
|
96 |
msgid "CSS Style"
|
97 |
msgstr "Style CSS"
|
98 |
|
99 |
+
#: classes/wp-maintenance.php:403
|
100 |
msgid "Choose This Image"
|
101 |
msgstr "Choisir cette image"
|
102 |
|
103 |
+
#: classes/wp-maintenance.php:404
|
104 |
msgid "Choose Image"
|
105 |
msgstr "Choisir une image"
|
106 |
|
107 |
+
#: classes/wp-maintenance.php:418 classes/wp-maintenance.php:426
|
108 |
+
#: classes/wp-maintenance.php:434 classes/wp-maintenance.php:443
|
109 |
+
#: classes/wp-maintenance.php:452 classes/wp-maintenance.php:461
|
110 |
msgid "You do not have sufficient privileges to access this page."
|
111 |
msgstr ""
|
112 |
"Vous n'avez pas les autorisations suffisantes pour accéder à cette page."
|
113 |
|
114 |
+
#: classes/wp-maintenance.php:535
|
115 |
msgid "Please upload a valid .json file"
|
116 |
msgstr "Veuillez téléverser un fichier .json valide"
|
117 |
|
118 |
+
#: classes/wp-maintenance.php:541
|
119 |
msgid "Please upload a file to import"
|
120 |
msgstr "Veuillez téléverser un fichier à importer"
|
121 |
|
122 |
+
#: classes/wp-maintenance.php:551
|
123 |
msgid "New settings imported successfully!"
|
124 |
msgstr "Nouveaux paramètres importés avec succès !"
|
125 |
|
|
|
|
|
|
|
|
|
126 |
#: includes/functions.php:24
|
127 |
+
msgid "Preview page"
|
128 |
+
msgstr "Aperçu"
|
129 |
+
|
130 |
+
#: includes/functions.php:28
|
131 |
msgid "Options saved."
|
132 |
msgstr "Options sauvegardées."
|
133 |
|
134 |
+
#: includes/functions.php:59
|
135 |
msgid "Go to Generals options"
|
136 |
msgstr "Aller aux options générales"
|
137 |
|
138 |
+
#: includes/functions.php:64
|
139 |
msgid "Go to Colors and Fonts options"
|
140 |
msgstr "Aller aux options de couleurs et polices"
|
141 |
|
142 |
+
#: includes/functions.php:69
|
143 |
msgid "Go to Pictures options"
|
144 |
msgstr "Aller aux options des images"
|
145 |
|
146 |
+
#: includes/functions.php:74
|
147 |
msgid "Go to Countdown options"
|
148 |
msgstr "Aller aux options du compte à rebours"
|
149 |
|
150 |
+
#: includes/functions.php:79
|
151 |
msgid "Go to CSS options"
|
152 |
msgstr "Aller aux options de la feuille de style CSS"
|
153 |
|
154 |
+
#: includes/functions.php:84
|
155 |
msgid "Go to Settings options"
|
156 |
msgstr "Aller aux paramètrages"
|
157 |
|
158 |
+
#: includes/functions.php:138
|
159 |
msgid "ABOUT"
|
160 |
msgstr "A PROPOS"
|
161 |
|
162 |
+
#: includes/functions.php:140
|
163 |
msgid ""
|
164 |
"This plugin has been developed for you for free by <a href=\"https://"
|
165 |
"restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>. It is royalty "
|
170 |
"Elle est libre de droits, vous pouvez la prendre, la modifier, la distribuer "
|
171 |
"comme bon vous semble."
|
172 |
|
173 |
+
#: includes/functions.php:141
|
174 |
msgid "Visit"
|
175 |
msgstr "Visitez"
|
176 |
|
177 |
+
#: includes/functions.php:141
|
178 |
msgid ""
|
179 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
180 |
msgstr "essayez la démo de cette extension et parlez-en à votre entourage !"
|
181 |
|
182 |
+
#: includes/functions.php:143
|
183 |
msgid "Support this extension and my other developments (French Paypal):"
|
184 |
msgstr "Soutenez cette extension et mes autres développements (PayPal) :"
|
185 |
|
186 |
+
#: includes/functions.php:155
|
187 |
msgid "DISCOVER"
|
188 |
msgstr "DÉCOUVRIR"
|
189 |
|
190 |
+
#: includes/functions.php:176
|
191 |
msgid "is brought to you by"
|
192 |
msgstr "vous est proposé par"
|
193 |
|
194 |
+
#: includes/functions.php:176
|
195 |
msgid "If you found this plugin useful"
|
196 |
msgstr "Si vous avez trouvé cette extension utile"
|
197 |
|
198 |
+
#: includes/functions.php:176
|
199 |
msgid "give it 5 ★ on WordPress.org"
|
200 |
msgstr "donnez-lui 5 ★ sur WordPress.org"
|
201 |
|
202 |
+
#: themes/default/functions.php:51
|
203 |
+
msgid "Dashboard"
|
204 |
+
msgstr "Tableau de bord"
|
205 |
+
|
206 |
#: views/wp-maintenance-colors.php:49
|
207 |
msgid "Choice general colors:"
|
208 |
msgstr "Choix des couleurs générales :"
|
220 |
msgstr "Choix des polices et couleurs des textes :"
|
221 |
|
222 |
#: views/wp-maintenance-colors.php:55
|
223 |
+
msgid "Title color:"
|
224 |
+
msgstr "Couleur du titre :"
|
225 |
|
226 |
+
#: views/wp-maintenance-colors.php:58
|
227 |
msgid "Title font settings"
|
228 |
msgstr "Paramètres de la police du titre"
|
229 |
|
230 |
+
#: views/wp-maintenance-colors.php:65 views/wp-maintenance-colors.php:105
|
231 |
+
#: views/wp-maintenance-colors.php:174 views/wp-maintenance-colors.php:195
|
232 |
+
#: views/wp-maintenance-colors.php:246
|
233 |
msgid "Size:"
|
234 |
msgstr "Taille :"
|
235 |
|
236 |
+
#: views/wp-maintenance-colors.php:77 views/wp-maintenance-colors.php:86
|
237 |
+
#: views/wp-maintenance-colors.php:117 views/wp-maintenance-colors.php:126
|
238 |
+
#: views/wp-maintenance-colors.php:142 views/wp-maintenance-colors.php:207
|
239 |
+
#: views/wp-maintenance-colors.php:216 views/wp-maintenance-colors.php:258
|
240 |
+
#: views/wp-maintenance-colors.php:267 views/wp-maintenance-countdown.php:58
|
241 |
#: views/wp-maintenance-countdown.php:96 views/wp-maintenance-countdown.php:108
|
242 |
#: views/wp-maintenance-css.php:56 views/wp-maintenance-dashboard.php:64
|
243 |
#: views/wp-maintenance-dashboard.php:124
|
244 |
#: views/wp-maintenance-dashboard.php:148
|
245 |
+
#: views/wp-maintenance-dashboard.php:199
|
246 |
+
#: views/wp-maintenance-dashboard.php:284
|
247 |
+
#: views/wp-maintenance-dashboard.php:301 views/wp-maintenance-picture.php:94
|
248 |
+
#: views/wp-maintenance-picture.php:159 views/wp-maintenance-picture.php:191
|
249 |
+
#: views/wp-maintenance-picture.php:198 views/wp-maintenance-settings.php:69
|
250 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
251 |
msgid "Yes"
|
252 |
msgstr "Oui"
|
253 |
|
254 |
+
#: views/wp-maintenance-colors.php:79 views/wp-maintenance-colors.php:88
|
255 |
+
#: views/wp-maintenance-colors.php:119 views/wp-maintenance-colors.php:128
|
256 |
+
#: views/wp-maintenance-colors.php:144 views/wp-maintenance-colors.php:209
|
257 |
+
#: views/wp-maintenance-colors.php:218 views/wp-maintenance-colors.php:260
|
258 |
+
#: views/wp-maintenance-colors.php:269 views/wp-maintenance-countdown.php:60
|
259 |
#: views/wp-maintenance-countdown.php:98 views/wp-maintenance-countdown.php:110
|
260 |
#: views/wp-maintenance-css.php:58 views/wp-maintenance-dashboard.php:66
|
261 |
#: views/wp-maintenance-dashboard.php:126
|
262 |
#: views/wp-maintenance-dashboard.php:150
|
263 |
+
#: views/wp-maintenance-dashboard.php:201
|
264 |
+
#: views/wp-maintenance-dashboard.php:286
|
265 |
+
#: views/wp-maintenance-dashboard.php:303 views/wp-maintenance-picture.php:96
|
266 |
+
#: views/wp-maintenance-picture.php:161 views/wp-maintenance-picture.php:193
|
267 |
+
#: views/wp-maintenance-picture.php:200 views/wp-maintenance-settings.php:71
|
268 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
269 |
msgid "No"
|
270 |
msgstr "Non"
|
271 |
|
272 |
+
#: views/wp-maintenance-colors.php:97
|
273 |
+
msgid "Text color:"
|
274 |
+
msgstr "Couleur du texte :"
|
275 |
+
|
276 |
+
#: views/wp-maintenance-colors.php:98 views/wp-maintenance-colors.php:188
|
277 |
msgid "Text font settings"
|
278 |
msgstr "Paramètres de la police du texte"
|
279 |
|
280 |
+
#: views/wp-maintenance-colors.php:138
|
281 |
msgid "Activate Frame"
|
282 |
msgstr "Activer le cadre"
|
283 |
|
284 |
+
#: views/wp-maintenance-colors.php:151
|
285 |
msgid "Color:"
|
286 |
msgstr "Couleur :"
|
287 |
|
288 |
+
#: views/wp-maintenance-colors.php:152
|
289 |
msgid "Opacity:"
|
290 |
msgstr "Opacité :"
|
291 |
|
292 |
+
#: views/wp-maintenance-colors.php:154 views/wp-maintenance-picture.php:183
|
293 |
msgid "Width:"
|
294 |
msgstr "Largeur :"
|
295 |
|
296 |
+
#: views/wp-maintenance-colors.php:162
|
297 |
msgid "Choice countdown fonts and colors:"
|
298 |
msgstr "Choix des polices et couleurs du compte à rebours :"
|
299 |
|
300 |
+
#: views/wp-maintenance-colors.php:163
|
301 |
msgid "Countdown text color:"
|
302 |
msgstr "Couleur du texte du compteur :"
|
303 |
|
304 |
+
#: views/wp-maintenance-colors.php:164
|
305 |
msgid "Countdown background color:"
|
306 |
msgstr "Couleur du fond du compteur :"
|
307 |
|
308 |
+
#: views/wp-maintenance-colors.php:167
|
309 |
msgid "Countdown font settings"
|
310 |
msgstr "Paramètres de la police du compte à rebours"
|
311 |
|
312 |
+
#: views/wp-maintenance-colors.php:183
|
313 |
msgid "Choice fonts and colors bottom page:"
|
314 |
msgstr "Choix des polices et couleurs du bas de page :"
|
315 |
|
316 |
+
#: views/wp-maintenance-colors.php:184
|
317 |
msgid "Bottom color:"
|
318 |
msgstr "Couleur du fond :"
|
319 |
|
320 |
+
#: views/wp-maintenance-colors.php:185
|
321 |
msgid "Text bottom color:"
|
322 |
msgstr "Couleur du texte :"
|
323 |
|
324 |
+
#: views/wp-maintenance-colors.php:227
|
325 |
msgid "Choice form color:"
|
326 |
msgstr "Choisir les couleurs du formulaire :"
|
327 |
|
328 |
+
#: views/wp-maintenance-colors.php:278
|
329 |
msgid "Field text color:"
|
330 |
msgstr "Couleur du texte dans les champs :"
|
331 |
|
332 |
+
#: views/wp-maintenance-colors.php:280
|
333 |
msgid "Field border color:"
|
334 |
msgstr "Couleur de bordure des champs :"
|
335 |
|
336 |
+
#: views/wp-maintenance-colors.php:282
|
337 |
msgid "Field background color:"
|
338 |
msgstr "Couleur de fond des champs :"
|
339 |
|
340 |
+
#: views/wp-maintenance-colors.php:283
|
341 |
msgid "Button text color:"
|
342 |
msgstr "Couleur du texte dans le bouton :"
|
343 |
|
344 |
+
#: views/wp-maintenance-colors.php:287
|
345 |
msgid "Button color:"
|
346 |
msgstr "Couleur du bouton :"
|
347 |
|
348 |
+
#: views/wp-maintenance-colors.php:290
|
349 |
msgid "Button color hover:"
|
350 |
msgstr "Couleur du bouton au survol :"
|
351 |
|
352 |
+
#: views/wp-maintenance-colors.php:292
|
353 |
msgid "Button color onclick:"
|
354 |
msgstr "Couleur du bouton au click :"
|
355 |
|
356 |
+
#: views/wp-maintenance-colors.php:299
|
357 |
#, php-format
|
358 |
msgid "Enable %s to customize the forms"
|
359 |
msgstr "Activer %s pour personnaliser les formulaires"
|
360 |
|
361 |
+
#: views/wp-maintenance-colors.php:299
|
362 |
msgid "newsletter option"
|
363 |
msgstr "options de newsletter"
|
364 |
|
365 |
+
#: views/wp-maintenance-colors.php:303
|
366 |
msgid "Enable Mailpoet or MailChimp extensions to customize the forms"
|
367 |
msgstr ""
|
368 |
"Activer les extensions Mailpoet ou MailChimp personnaliser les formulaires"
|
560 |
msgid "Title:"
|
561 |
msgstr "Titre :"
|
562 |
|
563 |
+
#: views/wp-maintenance-dashboard.php:76 views/wp-maintenance-picture.php:245
|
564 |
msgid "Text:"
|
565 |
msgstr "Texte :"
|
566 |
|
589 |
"celui-ci)"
|
590 |
|
591 |
#: views/wp-maintenance-dashboard.php:144
|
592 |
+
msgid "Enable SEO:"
|
593 |
+
msgstr "Activer SEO :"
|
594 |
|
595 |
#: views/wp-maintenance-dashboard.php:158
|
596 |
+
msgid "SEO Title"
|
597 |
+
msgstr "Titre SEO"
|
598 |
+
|
599 |
+
#: views/wp-maintenance-dashboard.php:160
|
600 |
+
msgid "SEO Meta Description"
|
601 |
+
msgstr "Méta description SEO"
|
602 |
+
|
603 |
+
#: views/wp-maintenance-dashboard.php:165
|
604 |
+
msgid "Add a favicon"
|
605 |
+
msgstr "Ajouter un favicon"
|
606 |
+
|
607 |
+
#: views/wp-maintenance-dashboard.php:168 views/wp-maintenance-picture.php:71
|
608 |
+
#: views/wp-maintenance-picture.php:106
|
609 |
+
msgid "Enter a URL or upload an image."
|
610 |
+
msgstr "Entrez une url ou mettez en ligne une image."
|
611 |
+
|
612 |
+
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:72
|
613 |
+
#: views/wp-maintenance-picture.php:107 views/wp-maintenance-picture.php:216
|
614 |
+
msgid "Media Image Library"
|
615 |
+
msgstr "Bibliothèque d'Images"
|
616 |
+
|
617 |
+
#: views/wp-maintenance-dashboard.php:170
|
618 |
+
msgid ""
|
619 |
+
"Favicons are displayed in a browser tab. Need Help <a href=\"https://"
|
620 |
+
"realfavicongenerator.net/\" target=\"_blank\">creating a favicon</a>?"
|
621 |
+
msgstr ""
|
622 |
+
"Les favicones sont affichées dans les onglets du navigateur. Besoin d’aide "
|
623 |
+
"sur la <a href=\"http://tools.dynamicdrive.com/favicon/\" target=\"_blank"
|
624 |
+
"\">création d’un favicon</a> ?"
|
625 |
+
|
626 |
+
#: views/wp-maintenance-dashboard.php:174
|
627 |
+
msgid "You use this favicon:"
|
628 |
+
msgstr "Vous utilisez ce favicon :"
|
629 |
+
|
630 |
+
#: views/wp-maintenance-dashboard.php:182
|
631 |
+
msgid "Analytics Code"
|
632 |
+
msgstr "Code Google Analytics"
|
633 |
+
|
634 |
+
#: views/wp-maintenance-dashboard.php:184
|
635 |
msgid "Enter your Google analytics tracking ID here:"
|
636 |
msgstr "Enter votre ID de suivi de Google Analytics ici :"
|
637 |
|
638 |
+
#: views/wp-maintenance-dashboard.php:186
|
639 |
msgid "Enter your domain URL:"
|
640 |
msgstr "Entrer l'URL de votre domaine :"
|
641 |
|
642 |
+
#: views/wp-maintenance-dashboard.php:195
|
643 |
msgid "Enable Social Networks:"
|
644 |
msgstr "Activer les réseaux sociaux :"
|
645 |
|
646 |
+
#: views/wp-maintenance-dashboard.php:209
|
647 |
msgid "Enter text for the title icons:"
|
648 |
msgstr "Entrez un texte pour la balise title des icônes :"
|
649 |
|
650 |
+
#: views/wp-maintenance-dashboard.php:210
|
651 |
msgid "Follow me on"
|
652 |
msgstr "Suivez-moi sur"
|
653 |
|
654 |
+
#: views/wp-maintenance-dashboard.php:212
|
655 |
msgid "Drad and drop the lines to put in the order you want:"
|
656 |
msgstr ""
|
657 |
"Cliquez et glisser les lignes pour mettre dans l'ordre que vous souhaitez :"
|
658 |
|
659 |
+
#: views/wp-maintenance-dashboard.php:241
|
660 |
msgid "Choose icons size:"
|
661 |
msgstr "Choisissez la taille des icônes :"
|
662 |
|
663 |
+
#: views/wp-maintenance-dashboard.php:252
|
664 |
msgid "Choose icons style:"
|
665 |
msgstr "Choisissez le style des icônes :"
|
666 |
|
667 |
+
#: views/wp-maintenance-dashboard.php:264 views/wp-maintenance-picture.php:206
|
668 |
msgid "Position:"
|
669 |
msgstr "Position :"
|
670 |
|
671 |
+
#: views/wp-maintenance-dashboard.php:266
|
672 |
msgid "Top"
|
673 |
msgstr "Haut"
|
674 |
|
675 |
+
#: views/wp-maintenance-dashboard.php:267
|
676 |
msgid "Bottom"
|
677 |
msgstr "Bas"
|
678 |
|
679 |
+
#: views/wp-maintenance-dashboard.php:270
|
680 |
msgid "Align:"
|
681 |
msgstr "Alignement :"
|
682 |
|
683 |
+
#: views/wp-maintenance-dashboard.php:272
|
684 |
msgid "Left"
|
685 |
msgstr "Gauche"
|
686 |
|
687 |
+
#: views/wp-maintenance-dashboard.php:273
|
688 |
msgid "Center"
|
689 |
msgstr "Centre"
|
690 |
|
691 |
+
#: views/wp-maintenance-dashboard.php:274
|
692 |
msgid "Right"
|
693 |
msgstr "Droite"
|
694 |
|
695 |
+
#: views/wp-maintenance-dashboard.php:277
|
696 |
msgid "You have your own icons? Enter the folder name of your theme here:"
|
697 |
msgstr ""
|
698 |
"Vous avez vos propres icônes ? Entrez le nom du dossier de votre thème ici :"
|
699 |
|
700 |
+
#: views/wp-maintenance-dashboard.php:280
|
701 |
msgid "Reset Social Icon?"
|
702 |
msgstr "Réinitialiser les icônes des réseaux sociaux ?"
|
703 |
|
704 |
+
#: views/wp-maintenance-dashboard.php:297
|
705 |
msgid "Enable Newletter:"
|
706 |
msgstr "Activer l'encart de newletter :"
|
707 |
|
708 |
+
#: views/wp-maintenance-dashboard.php:311
|
709 |
msgid "Enter title for the newletter block:"
|
710 |
msgstr "Entrez un titre pour l'encart de la newsletter :"
|
711 |
|
712 |
+
#: views/wp-maintenance-dashboard.php:313
|
713 |
msgid "Enter your newletter shortcode here:"
|
714 |
msgstr "Entrez le Shortcode de la newletter ici :"
|
715 |
|
716 |
+
#: views/wp-maintenance-dashboard.php:315
|
717 |
msgid "Or enter your newletter iframe code here:"
|
718 |
msgstr "Ou entrez le code iframe de la newsletter ici :"
|
719 |
|
720 |
+
#: views/wp-maintenance-picture.php:61
|
721 |
msgid "Picture"
|
722 |
msgstr "Image"
|
723 |
|
724 |
+
#: views/wp-maintenance-picture.php:70
|
725 |
msgid "Header picture"
|
726 |
msgstr "Image d'entête"
|
727 |
|
728 |
+
#: views/wp-maintenance-picture.php:73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
729 |
msgid ""
|
730 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
731 |
"image with the WordPress media uploader)"
|
733 |
"Url de l'image pour remplacer le logo WordPress par défaut. (Vous pouvez "
|
734 |
"envoyer votre image avec l'outil d'envoi de médias interne à WordPress)"
|
735 |
|
736 |
+
#: views/wp-maintenance-picture.php:74
|
737 |
msgid "Your Logo width (Enter in pixels). Default: 310px"
|
738 |
msgstr "Largeur de votre logo (entrez-la en pixels). Par défaut : 310px"
|
739 |
|
740 |
+
#: views/wp-maintenance-picture.php:75
|
741 |
msgid "Your Logo Height (Enter in pixels). Default: 185px"
|
742 |
msgstr "Hauteur de votre logo (entrez-la en pixels). Par défaut : 185px"
|
743 |
|
744 |
+
#: views/wp-maintenance-picture.php:80
|
745 |
msgid "You use this picture:"
|
746 |
msgstr "Image actuelle :"
|
747 |
|
748 |
+
#: views/wp-maintenance-picture.php:90
|
749 |
msgid "Background picture or pattern"
|
750 |
msgstr "Image de fond ou un modèle"
|
751 |
|
752 |
+
#: views/wp-maintenance-picture.php:108
|
753 |
msgid "Background picture options"
|
754 |
msgstr "Options de l'image de fond"
|
755 |
|
756 |
+
#: views/wp-maintenance-picture.php:114
|
757 |
msgid "Fixed"
|
758 |
msgstr "Fixe"
|
759 |
|
760 |
+
#: views/wp-maintenance-picture.php:120
|
761 |
msgid "You use this background picture:"
|
762 |
msgstr "Image de fond actuelle :"
|
763 |
|
764 |
+
#: views/wp-maintenance-picture.php:128
|
765 |
msgid "Or choose a pattern:"
|
766 |
msgstr "Ou choisissez un pattern de fond :"
|
767 |
|
768 |
+
#: views/wp-maintenance-picture.php:131
|
769 |
msgid "NO PATTERN"
|
770 |
msgstr "AUCUN PATTERN"
|
771 |
|
772 |
+
#: views/wp-maintenance-picture.php:144
|
773 |
msgid "You use this pattern:"
|
774 |
msgstr "Vous utilisez ce modèle :"
|
775 |
|
776 |
+
#: views/wp-maintenance-picture.php:155
|
777 |
msgid "Enable Slider"
|
778 |
msgstr "Activer le Slider"
|
779 |
|
780 |
+
#: views/wp-maintenance-picture.php:168
|
781 |
msgid "Slider image options"
|
782 |
msgstr "Options du Slider"
|
783 |
|
784 |
+
#: views/wp-maintenance-picture.php:182
|
785 |
msgid "Speed:"
|
786 |
msgstr "Vitesse :"
|
787 |
|
788 |
+
#: views/wp-maintenance-picture.php:188
|
789 |
msgid "Display Auto Slider:"
|
790 |
msgstr "Afficher le Slider en auto :"
|
791 |
|
792 |
+
#: views/wp-maintenance-picture.php:195
|
793 |
msgid "Display button navigation:"
|
794 |
msgstr "Afficher les boutons navigation :"
|
795 |
|
796 |
+
#: views/wp-maintenance-picture.php:208
|
797 |
msgid "Above logo"
|
798 |
msgstr "Au-dessus du logo"
|
799 |
|
800 |
+
#: views/wp-maintenance-picture.php:209
|
801 |
msgid "Below logo"
|
802 |
msgstr "Au-dessous du logo"
|
803 |
|
804 |
+
#: views/wp-maintenance-picture.php:210
|
805 |
msgid "Below title & text"
|
806 |
msgstr "Au-dessous du titre & texte"
|
807 |
|
808 |
+
#: views/wp-maintenance-picture.php:246
|
809 |
msgid "Link:"
|
810 |
msgstr "Lien :"
|
811 |
|
812 |
+
#: views/wp-maintenance-picture.php:249
|
813 |
msgid "Delete this slide"
|
814 |
msgstr "Supprimer ce slide"
|
815 |
|
957 |
msgid "https://wpmaintenance.info"
|
958 |
msgstr "https://wpmaintenance.info"
|
959 |
|
960 |
+
#~ msgid "Enable Google Analytics:"
|
961 |
+
#~ msgstr "Activer Google Analytics :"
|
962 |
+
|
963 |
+
#~ msgid "Select or Upload your picture"
|
964 |
+
#~ msgstr "Sélectionnez / Mettre en ligne votre image"
|
965 |
+
|
966 |
#~ msgid "Maintenance mode activated!"
|
967 |
#~ msgstr "Maintenance activée !"
|
968 |
|
languages/wp-maintenance.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP Maintenance\n"
|
5 |
-
"POT-Creation-Date:
|
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"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 2.
|
14 |
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
"X-Poedit-Basepath: ..\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n>1;\n"
|
@@ -41,154 +41,158 @@ msgstr ""
|
|
41 |
msgid "Next"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: classes/wp-maintenance.php:
|
45 |
msgid "This site is down for maintenance"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: classes/wp-maintenance.php:
|
49 |
msgid "Come back quickly!"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: classes/wp-maintenance.php:
|
53 |
-
#: classes/wp-maintenance.php:
|
54 |
msgid "Settings"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: classes/wp-maintenance.php:
|
58 |
-
#: includes/functions.php:
|
59 |
msgid "WP Maintenance"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: classes/wp-maintenance.php:
|
63 |
msgid "Colors"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: classes/wp-maintenance.php:
|
67 |
msgid "Pictures"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: classes/wp-maintenance.php:
|
71 |
msgid "Countdown"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: classes/wp-maintenance.php:
|
75 |
msgid "CSS"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: classes/wp-maintenance.php:
|
79 |
msgid "General"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: classes/wp-maintenance.php:
|
83 |
msgid "Colors & Fonts"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: classes/wp-maintenance.php:
|
87 |
msgid "CountDown"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: classes/wp-maintenance.php:
|
91 |
msgid "CSS Style"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: classes/wp-maintenance.php:
|
95 |
msgid "Choose This Image"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: classes/wp-maintenance.php:
|
99 |
msgid "Choose Image"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: classes/wp-maintenance.php:
|
103 |
-
#: classes/wp-maintenance.php:
|
104 |
-
#: classes/wp-maintenance.php:
|
105 |
msgid "You do not have sufficient privileges to access this page."
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: classes/wp-maintenance.php:
|
109 |
msgid "Please upload a valid .json file"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: classes/wp-maintenance.php:
|
113 |
msgid "Please upload a file to import"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: classes/wp-maintenance.php:
|
117 |
msgid "New settings imported successfully!"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#:
|
121 |
-
msgid "
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: includes/functions.php:
|
125 |
msgid "Options saved."
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/functions.php:
|
129 |
msgid "Go to Generals options"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: includes/functions.php:
|
133 |
msgid "Go to Colors and Fonts options"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: includes/functions.php:
|
137 |
msgid "Go to Pictures options"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: includes/functions.php:
|
141 |
msgid "Go to Countdown options"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: includes/functions.php:
|
145 |
msgid "Go to CSS options"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: includes/functions.php:
|
149 |
msgid "Go to Settings options"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: includes/functions.php:
|
153 |
msgid "ABOUT"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: includes/functions.php:
|
157 |
msgid ""
|
158 |
"This plugin has been developed for you for free by <a href=\"https://"
|
159 |
"restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>. It is royalty "
|
160 |
"free, you can take it, modify it, distribute it as you see fit."
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/functions.php:
|
164 |
msgid "Visit"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: includes/functions.php:
|
168 |
msgid ""
|
169 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: includes/functions.php:
|
173 |
msgid "Support this extension and my other developments (French Paypal):"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: includes/functions.php:
|
177 |
msgid "DISCOVER"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: includes/functions.php:
|
181 |
msgid "is brought to you by"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: includes/functions.php:
|
185 |
msgid "If you found this plugin useful"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: includes/functions.php:
|
189 |
msgid "give it 5 ★ on WordPress.org"
|
190 |
msgstr ""
|
191 |
|
|
|
|
|
|
|
|
|
192 |
#: views/wp-maintenance-colors.php:49
|
193 |
msgid "Choice general colors:"
|
194 |
msgstr ""
|
@@ -206,145 +210,149 @@ msgid "Choice texts fonts and colors:"
|
|
206 |
msgstr ""
|
207 |
|
208 |
#: views/wp-maintenance-colors.php:55
|
209 |
-
msgid "
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: views/wp-maintenance-colors.php:
|
213 |
msgid "Title font settings"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: views/wp-maintenance-colors.php:
|
217 |
-
#: views/wp-maintenance-colors.php:
|
218 |
-
#: views/wp-maintenance-colors.php:
|
219 |
msgid "Size:"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: views/wp-maintenance-colors.php:
|
223 |
-
#: views/wp-maintenance-colors.php:
|
224 |
-
#: views/wp-maintenance-colors.php:
|
225 |
-
#: views/wp-maintenance-colors.php:
|
226 |
-
#: views/wp-maintenance-colors.php:
|
227 |
#: views/wp-maintenance-countdown.php:96 views/wp-maintenance-countdown.php:108
|
228 |
#: views/wp-maintenance-css.php:56 views/wp-maintenance-dashboard.php:64
|
229 |
#: views/wp-maintenance-dashboard.php:124
|
230 |
#: views/wp-maintenance-dashboard.php:148
|
231 |
-
#: views/wp-maintenance-dashboard.php:
|
232 |
-
#: views/wp-maintenance-dashboard.php:
|
233 |
-
#: views/wp-maintenance-dashboard.php:
|
234 |
-
#: views/wp-maintenance-picture.php:
|
235 |
-
#: views/wp-maintenance-picture.php:
|
236 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
237 |
msgid "Yes"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: views/wp-maintenance-colors.php:
|
241 |
-
#: views/wp-maintenance-colors.php:
|
242 |
-
#: views/wp-maintenance-colors.php:
|
243 |
-
#: views/wp-maintenance-colors.php:
|
244 |
-
#: views/wp-maintenance-colors.php:
|
245 |
#: views/wp-maintenance-countdown.php:98 views/wp-maintenance-countdown.php:110
|
246 |
#: views/wp-maintenance-css.php:58 views/wp-maintenance-dashboard.php:66
|
247 |
#: views/wp-maintenance-dashboard.php:126
|
248 |
#: views/wp-maintenance-dashboard.php:150
|
249 |
-
#: views/wp-maintenance-dashboard.php:
|
250 |
-
#: views/wp-maintenance-dashboard.php:
|
251 |
-
#: views/wp-maintenance-dashboard.php:
|
252 |
-
#: views/wp-maintenance-picture.php:
|
253 |
-
#: views/wp-maintenance-picture.php:
|
254 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
255 |
msgid "No"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: views/wp-maintenance-colors.php:
|
|
|
|
|
|
|
|
|
259 |
msgid "Text font settings"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: views/wp-maintenance-colors.php:
|
263 |
msgid "Activate Frame"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: views/wp-maintenance-colors.php:
|
267 |
msgid "Color:"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: views/wp-maintenance-colors.php:
|
271 |
msgid "Opacity:"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: views/wp-maintenance-colors.php:
|
275 |
msgid "Width:"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: views/wp-maintenance-colors.php:
|
279 |
msgid "Choice countdown fonts and colors:"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: views/wp-maintenance-colors.php:
|
283 |
msgid "Countdown text color:"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: views/wp-maintenance-colors.php:
|
287 |
msgid "Countdown background color:"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: views/wp-maintenance-colors.php:
|
291 |
msgid "Countdown font settings"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: views/wp-maintenance-colors.php:
|
295 |
msgid "Choice fonts and colors bottom page:"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: views/wp-maintenance-colors.php:
|
299 |
msgid "Bottom color:"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: views/wp-maintenance-colors.php:
|
303 |
msgid "Text bottom color:"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: views/wp-maintenance-colors.php:
|
307 |
msgid "Choice form color:"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: views/wp-maintenance-colors.php:
|
311 |
msgid "Field text color:"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: views/wp-maintenance-colors.php:
|
315 |
msgid "Field border color:"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: views/wp-maintenance-colors.php:
|
319 |
msgid "Field background color:"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: views/wp-maintenance-colors.php:
|
323 |
msgid "Button text color:"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: views/wp-maintenance-colors.php:
|
327 |
msgid "Button color:"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: views/wp-maintenance-colors.php:
|
331 |
msgid "Button color hover:"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: views/wp-maintenance-colors.php:
|
335 |
msgid "Button color onclick:"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: views/wp-maintenance-colors.php:
|
339 |
#, php-format
|
340 |
msgid "Enable %s to customize the forms"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: views/wp-maintenance-colors.php:
|
344 |
msgid "newsletter option"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: views/wp-maintenance-colors.php:
|
348 |
msgid "Enable Mailpoet or MailChimp extensions to customize the forms"
|
349 |
msgstr ""
|
350 |
|
@@ -539,7 +547,7 @@ msgstr ""
|
|
539 |
msgid "Title:"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: views/wp-maintenance-dashboard.php:76 views/wp-maintenance-picture.php:
|
543 |
msgid "Text:"
|
544 |
msgstr ""
|
545 |
|
@@ -566,193 +574,220 @@ msgid ""
|
|
566 |
msgstr ""
|
567 |
|
568 |
#: views/wp-maintenance-dashboard.php:144
|
569 |
-
msgid "Enable
|
570 |
msgstr ""
|
571 |
|
572 |
#: views/wp-maintenance-dashboard.php:158
|
573 |
-
msgid "
|
574 |
msgstr ""
|
575 |
|
576 |
#: views/wp-maintenance-dashboard.php:160
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
msgid "Enter your domain URL:"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: views/wp-maintenance-dashboard.php:
|
581 |
msgid "Enable Social Networks:"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: views/wp-maintenance-dashboard.php:
|
585 |
msgid "Enter text for the title icons:"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: views/wp-maintenance-dashboard.php:
|
589 |
msgid "Follow me on"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: views/wp-maintenance-dashboard.php:
|
593 |
msgid "Drad and drop the lines to put in the order you want:"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: views/wp-maintenance-dashboard.php:
|
597 |
msgid "Choose icons size:"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: views/wp-maintenance-dashboard.php:
|
601 |
msgid "Choose icons style:"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: views/wp-maintenance-dashboard.php:
|
605 |
msgid "Position:"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: views/wp-maintenance-dashboard.php:
|
609 |
msgid "Top"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: views/wp-maintenance-dashboard.php:
|
613 |
msgid "Bottom"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: views/wp-maintenance-dashboard.php:
|
617 |
msgid "Align:"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: views/wp-maintenance-dashboard.php:
|
621 |
msgid "Left"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: views/wp-maintenance-dashboard.php:
|
625 |
msgid "Center"
|
626 |
msgstr ""
|
627 |
|
628 |
-
#: views/wp-maintenance-dashboard.php:
|
629 |
msgid "Right"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: views/wp-maintenance-dashboard.php:
|
633 |
msgid "You have your own icons? Enter the folder name of your theme here:"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: views/wp-maintenance-dashboard.php:
|
637 |
msgid "Reset Social Icon?"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: views/wp-maintenance-dashboard.php:
|
641 |
msgid "Enable Newletter:"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: views/wp-maintenance-dashboard.php:
|
645 |
msgid "Enter title for the newletter block:"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: views/wp-maintenance-dashboard.php:
|
649 |
msgid "Enter your newletter shortcode here:"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: views/wp-maintenance-dashboard.php:
|
653 |
msgid "Or enter your newletter iframe code here:"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: views/wp-maintenance-picture.php:
|
657 |
msgid "Picture"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: views/wp-maintenance-picture.php:
|
661 |
msgid "Header picture"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: views/wp-maintenance-picture.php:
|
665 |
-
msgid "Enter a URL or upload an image."
|
666 |
-
msgstr ""
|
667 |
-
|
668 |
-
#: views/wp-maintenance-picture.php:70 views/wp-maintenance-picture.php:102
|
669 |
-
#: views/wp-maintenance-picture.php:207
|
670 |
-
msgid "Select or Upload your picture"
|
671 |
-
msgstr ""
|
672 |
-
|
673 |
-
#: views/wp-maintenance-picture.php:71
|
674 |
msgid ""
|
675 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
676 |
"image with the WordPress media uploader)"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: views/wp-maintenance-picture.php:
|
680 |
msgid "Your Logo width (Enter in pixels). Default: 310px"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: views/wp-maintenance-picture.php:
|
684 |
msgid "Your Logo Height (Enter in pixels). Default: 185px"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: views/wp-maintenance-picture.php:
|
688 |
msgid "You use this picture:"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: views/wp-maintenance-picture.php:
|
692 |
msgid "Background picture or pattern"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: views/wp-maintenance-picture.php:
|
696 |
msgid "Background picture options"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: views/wp-maintenance-picture.php:
|
700 |
msgid "Fixed"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: views/wp-maintenance-picture.php:
|
704 |
msgid "You use this background picture:"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: views/wp-maintenance-picture.php:
|
708 |
msgid "Or choose a pattern:"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: views/wp-maintenance-picture.php:
|
712 |
msgid "NO PATTERN"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: views/wp-maintenance-picture.php:
|
716 |
msgid "You use this pattern:"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: views/wp-maintenance-picture.php:
|
720 |
msgid "Enable Slider"
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: views/wp-maintenance-picture.php:
|
724 |
msgid "Slider image options"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: views/wp-maintenance-picture.php:
|
728 |
msgid "Speed:"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: views/wp-maintenance-picture.php:
|
732 |
msgid "Display Auto Slider:"
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: views/wp-maintenance-picture.php:
|
736 |
msgid "Display button navigation:"
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: views/wp-maintenance-picture.php:
|
740 |
msgid "Above logo"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: views/wp-maintenance-picture.php:
|
744 |
msgid "Below logo"
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: views/wp-maintenance-picture.php:
|
748 |
msgid "Below title & text"
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: views/wp-maintenance-picture.php:
|
752 |
msgid "Link:"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: views/wp-maintenance-picture.php:
|
756 |
msgid "Delete this slide"
|
757 |
msgstr ""
|
758 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP Maintenance\n"
|
5 |
+
"POT-Creation-Date: 2018-08-18 20:19+0200\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"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.1.1\n"
|
14 |
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
"X-Poedit-Basepath: ..\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n>1;\n"
|
41 |
msgid "Next"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: classes/wp-maintenance.php:68
|
45 |
msgid "This site is down for maintenance"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: classes/wp-maintenance.php:69
|
49 |
msgid "Come back quickly!"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: classes/wp-maintenance.php:177 classes/wp-maintenance.php:293
|
53 |
+
#: classes/wp-maintenance.php:344 views/wp-maintenance-settings.php:57
|
54 |
msgid "Settings"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: classes/wp-maintenance.php:231 classes/wp-maintenance.php:236
|
58 |
+
#: includes/functions.php:176
|
59 |
msgid "WP Maintenance"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: classes/wp-maintenance.php:253
|
63 |
msgid "Colors"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: classes/wp-maintenance.php:263 classes/wp-maintenance.php:338
|
67 |
msgid "Pictures"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: classes/wp-maintenance.php:273 views/wp-maintenance-countdown.php:24
|
71 |
msgid "Countdown"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: classes/wp-maintenance.php:283
|
75 |
msgid "CSS"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: classes/wp-maintenance.php:334 views/wp-maintenance-dashboard.php:53
|
79 |
msgid "General"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: classes/wp-maintenance.php:336 views/wp-maintenance-colors.php:41
|
83 |
msgid "Colors & Fonts"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: classes/wp-maintenance.php:340
|
87 |
msgid "CountDown"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: classes/wp-maintenance.php:342 views/wp-maintenance-css.php:36
|
91 |
msgid "CSS Style"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: classes/wp-maintenance.php:403
|
95 |
msgid "Choose This Image"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: classes/wp-maintenance.php:404
|
99 |
msgid "Choose Image"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: classes/wp-maintenance.php:418 classes/wp-maintenance.php:426
|
103 |
+
#: classes/wp-maintenance.php:434 classes/wp-maintenance.php:443
|
104 |
+
#: classes/wp-maintenance.php:452 classes/wp-maintenance.php:461
|
105 |
msgid "You do not have sufficient privileges to access this page."
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: classes/wp-maintenance.php:535
|
109 |
msgid "Please upload a valid .json file"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: classes/wp-maintenance.php:541
|
113 |
msgid "Please upload a file to import"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: classes/wp-maintenance.php:551
|
117 |
msgid "New settings imported successfully!"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: includes/functions.php:24
|
121 |
+
msgid "Preview page"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: includes/functions.php:28
|
125 |
msgid "Options saved."
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: includes/functions.php:59
|
129 |
msgid "Go to Generals options"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: includes/functions.php:64
|
133 |
msgid "Go to Colors and Fonts options"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: includes/functions.php:69
|
137 |
msgid "Go to Pictures options"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: includes/functions.php:74
|
141 |
msgid "Go to Countdown options"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: includes/functions.php:79
|
145 |
msgid "Go to CSS options"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: includes/functions.php:84
|
149 |
msgid "Go to Settings options"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: includes/functions.php:138
|
153 |
msgid "ABOUT"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: includes/functions.php:140
|
157 |
msgid ""
|
158 |
"This plugin has been developed for you for free by <a href=\"https://"
|
159 |
"restezconnectes.fr\" target=\"_blank\">Florent Maillefaud</a>. It is royalty "
|
160 |
"free, you can take it, modify it, distribute it as you see fit."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: includes/functions.php:141
|
164 |
msgid "Visit"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: includes/functions.php:141
|
168 |
msgid ""
|
169 |
"try the demo of the plugin, talk about this plugin to your surroundings!"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: includes/functions.php:143
|
173 |
msgid "Support this extension and my other developments (French Paypal):"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: includes/functions.php:155
|
177 |
msgid "DISCOVER"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: includes/functions.php:176
|
181 |
msgid "is brought to you by"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: includes/functions.php:176
|
185 |
msgid "If you found this plugin useful"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: includes/functions.php:176
|
189 |
msgid "give it 5 ★ on WordPress.org"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: themes/default/functions.php:51
|
193 |
+
msgid "Dashboard"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
#: views/wp-maintenance-colors.php:49
|
197 |
msgid "Choice general colors:"
|
198 |
msgstr ""
|
210 |
msgstr ""
|
211 |
|
212 |
#: views/wp-maintenance-colors.php:55
|
213 |
+
msgid "Title color:"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: views/wp-maintenance-colors.php:58
|
217 |
msgid "Title font settings"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: views/wp-maintenance-colors.php:65 views/wp-maintenance-colors.php:105
|
221 |
+
#: views/wp-maintenance-colors.php:174 views/wp-maintenance-colors.php:195
|
222 |
+
#: views/wp-maintenance-colors.php:246
|
223 |
msgid "Size:"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: views/wp-maintenance-colors.php:77 views/wp-maintenance-colors.php:86
|
227 |
+
#: views/wp-maintenance-colors.php:117 views/wp-maintenance-colors.php:126
|
228 |
+
#: views/wp-maintenance-colors.php:142 views/wp-maintenance-colors.php:207
|
229 |
+
#: views/wp-maintenance-colors.php:216 views/wp-maintenance-colors.php:258
|
230 |
+
#: views/wp-maintenance-colors.php:267 views/wp-maintenance-countdown.php:58
|
231 |
#: views/wp-maintenance-countdown.php:96 views/wp-maintenance-countdown.php:108
|
232 |
#: views/wp-maintenance-css.php:56 views/wp-maintenance-dashboard.php:64
|
233 |
#: views/wp-maintenance-dashboard.php:124
|
234 |
#: views/wp-maintenance-dashboard.php:148
|
235 |
+
#: views/wp-maintenance-dashboard.php:199
|
236 |
+
#: views/wp-maintenance-dashboard.php:284
|
237 |
+
#: views/wp-maintenance-dashboard.php:301 views/wp-maintenance-picture.php:94
|
238 |
+
#: views/wp-maintenance-picture.php:159 views/wp-maintenance-picture.php:191
|
239 |
+
#: views/wp-maintenance-picture.php:198 views/wp-maintenance-settings.php:69
|
240 |
#: views/wp-maintenance-settings.php:89 views/wp-maintenance-settings.php:104
|
241 |
msgid "Yes"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: views/wp-maintenance-colors.php:79 views/wp-maintenance-colors.php:88
|
245 |
+
#: views/wp-maintenance-colors.php:119 views/wp-maintenance-colors.php:128
|
246 |
+
#: views/wp-maintenance-colors.php:144 views/wp-maintenance-colors.php:209
|
247 |
+
#: views/wp-maintenance-colors.php:218 views/wp-maintenance-colors.php:260
|
248 |
+
#: views/wp-maintenance-colors.php:269 views/wp-maintenance-countdown.php:60
|
249 |
#: views/wp-maintenance-countdown.php:98 views/wp-maintenance-countdown.php:110
|
250 |
#: views/wp-maintenance-css.php:58 views/wp-maintenance-dashboard.php:66
|
251 |
#: views/wp-maintenance-dashboard.php:126
|
252 |
#: views/wp-maintenance-dashboard.php:150
|
253 |
+
#: views/wp-maintenance-dashboard.php:201
|
254 |
+
#: views/wp-maintenance-dashboard.php:286
|
255 |
+
#: views/wp-maintenance-dashboard.php:303 views/wp-maintenance-picture.php:96
|
256 |
+
#: views/wp-maintenance-picture.php:161 views/wp-maintenance-picture.php:193
|
257 |
+
#: views/wp-maintenance-picture.php:200 views/wp-maintenance-settings.php:71
|
258 |
#: views/wp-maintenance-settings.php:91 views/wp-maintenance-settings.php:106
|
259 |
msgid "No"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: views/wp-maintenance-colors.php:97
|
263 |
+
msgid "Text color:"
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
+
#: views/wp-maintenance-colors.php:98 views/wp-maintenance-colors.php:188
|
267 |
msgid "Text font settings"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: views/wp-maintenance-colors.php:138
|
271 |
msgid "Activate Frame"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: views/wp-maintenance-colors.php:151
|
275 |
msgid "Color:"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: views/wp-maintenance-colors.php:152
|
279 |
msgid "Opacity:"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: views/wp-maintenance-colors.php:154 views/wp-maintenance-picture.php:183
|
283 |
msgid "Width:"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: views/wp-maintenance-colors.php:162
|
287 |
msgid "Choice countdown fonts and colors:"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: views/wp-maintenance-colors.php:163
|
291 |
msgid "Countdown text color:"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: views/wp-maintenance-colors.php:164
|
295 |
msgid "Countdown background color:"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: views/wp-maintenance-colors.php:167
|
299 |
msgid "Countdown font settings"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: views/wp-maintenance-colors.php:183
|
303 |
msgid "Choice fonts and colors bottom page:"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: views/wp-maintenance-colors.php:184
|
307 |
msgid "Bottom color:"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: views/wp-maintenance-colors.php:185
|
311 |
msgid "Text bottom color:"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: views/wp-maintenance-colors.php:227
|
315 |
msgid "Choice form color:"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: views/wp-maintenance-colors.php:278
|
319 |
msgid "Field text color:"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: views/wp-maintenance-colors.php:280
|
323 |
msgid "Field border color:"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: views/wp-maintenance-colors.php:282
|
327 |
msgid "Field background color:"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: views/wp-maintenance-colors.php:283
|
331 |
msgid "Button text color:"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: views/wp-maintenance-colors.php:287
|
335 |
msgid "Button color:"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: views/wp-maintenance-colors.php:290
|
339 |
msgid "Button color hover:"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: views/wp-maintenance-colors.php:292
|
343 |
msgid "Button color onclick:"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: views/wp-maintenance-colors.php:299
|
347 |
#, php-format
|
348 |
msgid "Enable %s to customize the forms"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: views/wp-maintenance-colors.php:299
|
352 |
msgid "newsletter option"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: views/wp-maintenance-colors.php:303
|
356 |
msgid "Enable Mailpoet or MailChimp extensions to customize the forms"
|
357 |
msgstr ""
|
358 |
|
547 |
msgid "Title:"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: views/wp-maintenance-dashboard.php:76 views/wp-maintenance-picture.php:245
|
551 |
msgid "Text:"
|
552 |
msgstr ""
|
553 |
|
574 |
msgstr ""
|
575 |
|
576 |
#: views/wp-maintenance-dashboard.php:144
|
577 |
+
msgid "Enable SEO:"
|
578 |
msgstr ""
|
579 |
|
580 |
#: views/wp-maintenance-dashboard.php:158
|
581 |
+
msgid "SEO Title"
|
582 |
msgstr ""
|
583 |
|
584 |
#: views/wp-maintenance-dashboard.php:160
|
585 |
+
msgid "SEO Meta Description"
|
586 |
+
msgstr ""
|
587 |
+
|
588 |
+
#: views/wp-maintenance-dashboard.php:165
|
589 |
+
msgid "Add a favicon"
|
590 |
+
msgstr ""
|
591 |
+
|
592 |
+
#: views/wp-maintenance-dashboard.php:168 views/wp-maintenance-picture.php:71
|
593 |
+
#: views/wp-maintenance-picture.php:106
|
594 |
+
msgid "Enter a URL or upload an image."
|
595 |
+
msgstr ""
|
596 |
+
|
597 |
+
#: views/wp-maintenance-dashboard.php:169 views/wp-maintenance-picture.php:72
|
598 |
+
#: views/wp-maintenance-picture.php:107 views/wp-maintenance-picture.php:216
|
599 |
+
msgid "Media Image Library"
|
600 |
+
msgstr ""
|
601 |
+
|
602 |
+
#: views/wp-maintenance-dashboard.php:170
|
603 |
+
msgid ""
|
604 |
+
"Favicons are displayed in a browser tab. Need Help <a href=\"https://"
|
605 |
+
"realfavicongenerator.net/\" target=\"_blank\">creating a favicon</a>?"
|
606 |
+
msgstr ""
|
607 |
+
|
608 |
+
#: views/wp-maintenance-dashboard.php:174
|
609 |
+
msgid "You use this favicon:"
|
610 |
+
msgstr ""
|
611 |
+
|
612 |
+
#: views/wp-maintenance-dashboard.php:182
|
613 |
+
msgid "Analytics Code"
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
#: views/wp-maintenance-dashboard.php:184
|
617 |
+
msgid "Enter your Google analytics tracking ID here:"
|
618 |
+
msgstr ""
|
619 |
+
|
620 |
+
#: views/wp-maintenance-dashboard.php:186
|
621 |
msgid "Enter your domain URL:"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: views/wp-maintenance-dashboard.php:195
|
625 |
msgid "Enable Social Networks:"
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: views/wp-maintenance-dashboard.php:209
|
629 |
msgid "Enter text for the title icons:"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: views/wp-maintenance-dashboard.php:210
|
633 |
msgid "Follow me on"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: views/wp-maintenance-dashboard.php:212
|
637 |
msgid "Drad and drop the lines to put in the order you want:"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: views/wp-maintenance-dashboard.php:241
|
641 |
msgid "Choose icons size:"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: views/wp-maintenance-dashboard.php:252
|
645 |
msgid "Choose icons style:"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: views/wp-maintenance-dashboard.php:264 views/wp-maintenance-picture.php:206
|
649 |
msgid "Position:"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: views/wp-maintenance-dashboard.php:266
|
653 |
msgid "Top"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: views/wp-maintenance-dashboard.php:267
|
657 |
msgid "Bottom"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: views/wp-maintenance-dashboard.php:270
|
661 |
msgid "Align:"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: views/wp-maintenance-dashboard.php:272
|
665 |
msgid "Left"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: views/wp-maintenance-dashboard.php:273
|
669 |
msgid "Center"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: views/wp-maintenance-dashboard.php:274
|
673 |
msgid "Right"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: views/wp-maintenance-dashboard.php:277
|
677 |
msgid "You have your own icons? Enter the folder name of your theme here:"
|
678 |
msgstr ""
|
679 |
|
680 |
+
#: views/wp-maintenance-dashboard.php:280
|
681 |
msgid "Reset Social Icon?"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: views/wp-maintenance-dashboard.php:297
|
685 |
msgid "Enable Newletter:"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: views/wp-maintenance-dashboard.php:311
|
689 |
msgid "Enter title for the newletter block:"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: views/wp-maintenance-dashboard.php:313
|
693 |
msgid "Enter your newletter shortcode here:"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: views/wp-maintenance-dashboard.php:315
|
697 |
msgid "Or enter your newletter iframe code here:"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: views/wp-maintenance-picture.php:61
|
701 |
msgid "Picture"
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: views/wp-maintenance-picture.php:70
|
705 |
msgid "Header picture"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: views/wp-maintenance-picture.php:73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
msgid ""
|
710 |
"URL path to image to replace default WordPress Logo. (You can upload your "
|
711 |
"image with the WordPress media uploader)"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: views/wp-maintenance-picture.php:74
|
715 |
msgid "Your Logo width (Enter in pixels). Default: 310px"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: views/wp-maintenance-picture.php:75
|
719 |
msgid "Your Logo Height (Enter in pixels). Default: 185px"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: views/wp-maintenance-picture.php:80
|
723 |
msgid "You use this picture:"
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: views/wp-maintenance-picture.php:90
|
727 |
msgid "Background picture or pattern"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: views/wp-maintenance-picture.php:108
|
731 |
msgid "Background picture options"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: views/wp-maintenance-picture.php:114
|
735 |
msgid "Fixed"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: views/wp-maintenance-picture.php:120
|
739 |
msgid "You use this background picture:"
|
740 |
msgstr ""
|
741 |
|
742 |
+
#: views/wp-maintenance-picture.php:128
|
743 |
msgid "Or choose a pattern:"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: views/wp-maintenance-picture.php:131
|
747 |
msgid "NO PATTERN"
|
748 |
msgstr ""
|
749 |
|
750 |
+
#: views/wp-maintenance-picture.php:144
|
751 |
msgid "You use this pattern:"
|
752 |
msgstr ""
|
753 |
|
754 |
+
#: views/wp-maintenance-picture.php:155
|
755 |
msgid "Enable Slider"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: views/wp-maintenance-picture.php:168
|
759 |
msgid "Slider image options"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: views/wp-maintenance-picture.php:182
|
763 |
msgid "Speed:"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: views/wp-maintenance-picture.php:188
|
767 |
msgid "Display Auto Slider:"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: views/wp-maintenance-picture.php:195
|
771 |
msgid "Display button navigation:"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: views/wp-maintenance-picture.php:208
|
775 |
msgid "Above logo"
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: views/wp-maintenance-picture.php:209
|
779 |
msgid "Below logo"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: views/wp-maintenance-picture.php:210
|
783 |
msgid "Below title & text"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: views/wp-maintenance-picture.php:246
|
787 |
msgid "Link:"
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: views/wp-maintenance-picture.php:249
|
791 |
msgid "Delete this slide"
|
792 |
msgstr ""
|
793 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpmaintenance.info/a-propos/
|
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -67,11 +67,18 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
|
|
67 |
|
68 |
== Upgrade Notice ==
|
69 |
|
70 |
-
=
|
71 |
-
*
|
|
|
|
|
|
|
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
75 |
= 4.0.3 =
|
76 |
* Bug for roles and capacities fixed
|
77 |
|
4 |
Tags: Maintenance, Construction, Launch, Coming soon
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
67 |
|
68 |
== Upgrade Notice ==
|
69 |
|
70 |
+
= 5.0.0 =
|
71 |
+
* Adding SEO settings
|
72 |
+
* Adding preview page
|
73 |
+
* Adding opacity for background image
|
74 |
+
* Fixed bug : auto slide & navigation button for slider
|
75 |
+
* Fixed bug : disable the maintenance mode at the end of the countdown
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 4.0.4 =
|
80 |
+
* Bug for roles and capacities fixed
|
81 |
+
|
82 |
= 4.0.3 =
|
83 |
* Bug for roles and capacities fixed
|
84 |
|
themes/default/functions.php
ADDED
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Template Tags
|
4 |
+
function wpm_title_seo() {
|
5 |
+
|
6 |
+
// Récupère les paramètres sauvegardés
|
7 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
8 |
+
$o = get_option('wp_maintenance_settings');
|
9 |
+
|
10 |
+
$output = get_bloginfo( 'name', 'display' );
|
11 |
+
|
12 |
+
if ( !empty( $o['seo_title'] ) ) {
|
13 |
+
$output = esc_attr( $o['seo_title'] );
|
14 |
+
}
|
15 |
+
|
16 |
+
return $output;
|
17 |
+
}
|
18 |
+
|
19 |
+
function wpm_title() {
|
20 |
+
|
21 |
+
// Récupère les paramètres sauvegardés
|
22 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
23 |
+
$o = get_option('wp_maintenance_settings');
|
24 |
+
|
25 |
+
$output = '';
|
26 |
+
|
27 |
+
if( !empty($o['titre_maintenance']) ) {
|
28 |
+
$output = esc_html( stripslashes($o['titre_maintenance']) );
|
29 |
+
}
|
30 |
+
return $output;
|
31 |
+
}
|
32 |
+
|
33 |
+
function wpm_metadescription() {
|
34 |
+
// Récupère les paramètres sauvegardés
|
35 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
36 |
+
$o = get_option('wp_maintenance_settings');
|
37 |
+
|
38 |
+
$output = '<meta name="description" content="'.get_bloginfo( 'description', 'display' ).'">';
|
39 |
+
|
40 |
+
if ( !empty( $o['seo_description'] ) ) {
|
41 |
+
$output = '<meta name="description" content="'.esc_attr( $o['seo_description'] ).'">';
|
42 |
+
}
|
43 |
+
|
44 |
+
return $output;
|
45 |
+
}
|
46 |
+
|
47 |
+
function wpm_copyrights() {
|
48 |
+
// Récupère les paramètres sauvegardés
|
49 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
50 |
+
$o = get_option('wp_maintenance_settings');
|
51 |
+
|
52 |
+
$output = '';
|
53 |
+
|
54 |
+
if( isset($o['text_bt_maintenance']) && $o['text_bt_maintenance']!='' ) {
|
55 |
+
$output = stripslashes($o['text_bt_maintenance']);
|
56 |
+
}
|
57 |
+
if( (isset($o['add_wplogin']) && $o['add_wplogin']==1) && (isset($o['add_wplogin_title']) && $o['add_wplogin_title']!='') ) {
|
58 |
+
$output .= '<br /><br />'.str_replace('%DASHBOARD%', '<a href="'.get_admin_url().'">'.__('Dashboard', 'wp-maintenance').'</a>', $o['add_wplogin_title']).'';
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
return $output;
|
63 |
+
}
|
64 |
+
|
65 |
+
function wpm_favicon() {
|
66 |
+
// Récupère les paramètres sauvegardés
|
67 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
68 |
+
$o = get_option('wp_maintenance_settings');
|
69 |
+
|
70 |
+
$output = '';
|
71 |
+
|
72 |
+
if ( !empty( $o['favicon'] ) ) {
|
73 |
+
$output .= "<!-- Favicon -->\n";
|
74 |
+
$output .= '<link href="'.esc_attr( $o['favicon'] ).'" rel="shortcut icon" type="image/x-icon" />';
|
75 |
+
|
76 |
+
|
77 |
+
}
|
78 |
+
|
79 |
+
return $output;
|
80 |
+
}
|
81 |
+
|
82 |
+
function wpm_head() {
|
83 |
+
|
84 |
+
// Récupère les paramètres sauvegardés
|
85 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
86 |
+
$o = get_option('wp_maintenance_settings');
|
87 |
+
|
88 |
+
$output = "<!-- Add Google Fonts -->\n";
|
89 |
+
$output .= '<link rel="stylesheet" href="https://fonts.googleapis.com/css?family='.str_replace(' ', '+', $o['font_title']).'|'.str_replace(' ', '+',$o['font_text']).'|'.str_replace(' ', '+',$o['font_text_bottom']).'|'.str_replace(' ', '+',$o['font_cpt']);
|
90 |
+
if( isset($o['newletter_font_text']) && $o['newletter_font_text'] != '') {
|
91 |
+
$output .= '|'.str_replace(' ', '+',$o['newletter_font_text']);
|
92 |
+
}
|
93 |
+
$output .= '">';
|
94 |
+
return $output;
|
95 |
+
}
|
96 |
+
|
97 |
+
function wpm_text() {
|
98 |
+
|
99 |
+
// Récupère les paramètres sauvegardés
|
100 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
101 |
+
$o = get_option('wp_maintenance_settings');
|
102 |
+
|
103 |
+
$output = '';
|
104 |
+
|
105 |
+
if( !empty($o['text_maintenance']) ) {
|
106 |
+
$output = stripslashes(wpautop($o['text_maintenance']));
|
107 |
+
}
|
108 |
+
return $output;
|
109 |
+
}
|
110 |
+
|
111 |
+
function wpm_logo() {
|
112 |
+
|
113 |
+
// Récupère les paramètres sauvegardés
|
114 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
115 |
+
$o = get_option('wp_maintenance_settings');
|
116 |
+
|
117 |
+
$output = '';
|
118 |
+
|
119 |
+
if ( !empty( $o['image'] ) ) {
|
120 |
+
if( empty($o['image_width']) ) { $o['image_width'] = 310; }
|
121 |
+
if( empty($o['image_height']) ) { $o['image_height'] = 185; }
|
122 |
+
$output .= "<div id='logo'><img id='wpm-image' src='".$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;
|
126 |
+
}
|
127 |
+
|
128 |
+
function wpm_customcss() {
|
129 |
+
|
130 |
+
// Récupère les paramètres sauvegardés
|
131 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
132 |
+
$o = get_option('wp_maintenance_settings');
|
133 |
+
|
134 |
+
if(get_option('wp_maintenance_slider')) { extract(get_option('wp_maintenance_slider')); }
|
135 |
+
$paramSlider = get_option('wp_maintenance_slider');
|
136 |
+
|
137 |
+
if(get_option('wp_maintenance_slider_options')) { extract(get_option('wp_maintenance_slider_options')); }
|
138 |
+
$paramSliderOptions = get_option('wp_maintenance_slider_options');
|
139 |
+
|
140 |
+
$oo = get_option('wp_maintenance_social_options');
|
141 |
+
|
142 |
+
// CSS
|
143 |
+
$output = '<style type="text/css">';
|
144 |
+
ob_start();
|
145 |
+
|
146 |
+
/* Si container activé */
|
147 |
+
if( isset($o['container_active']) && $o['container_active'] == 1 ) {
|
148 |
+
|
149 |
+
if( empty($o['container_opacity']) ) { $o['container_opacity'] = 0.5; }
|
150 |
+
if( empty($o['container_width']) ) { $o['container_width'] = 80; }
|
151 |
+
if( empty($o['container_color']) ) { $o['container_color'] = '#ffffff'; }
|
152 |
+
if( isset($o['container_color']) ) { $paramRGBColor = wpm_hex2rgb($o['container_color']); }
|
153 |
+
?>
|
154 |
+
|
155 |
+
#sscontent {background-color: rgba(<?php echo $paramRGBColor['rouge']; ?>,<?php echo $paramRGBColor['vert']; ?>,<?php echo $paramRGBColor['bleu']; ?>, <?php echo $o['container_opacity']; ?>);padding:0.8em;margin-left:auto;margin-right:auto;width:<?php echo $o['container_width']; ?>%;}
|
156 |
+
';
|
157 |
+
|
158 |
+
<?php
|
159 |
+
}
|
160 |
+
|
161 |
+
/* Définition des couleurs par défault */
|
162 |
+
if( !isset($o['color_bg']) || $o['color_bg']=="") { $o['color_bg'] = "#f1f1f1"; }
|
163 |
+
if( !isset($o['color_txt']) || $o['color_txt']=="") { $o['color_txt'] = "#888888"; }
|
164 |
+
|
165 |
+
/* Traitement de la feuille de style */
|
166 |
+
$styleRemplacements = array (
|
167 |
+
"#_COLORTXT" => $o['color_txt'],
|
168 |
+
"#_COLORBG" => $o['color_bg'],
|
169 |
+
"#_COLORCPTBG" => $o['color_cpt_bg'],
|
170 |
+
"#_DATESIZE" => $o['date_cpt_size'],
|
171 |
+
"#_COLORCPT" => $o['color_cpt'],
|
172 |
+
"#_COLOR_BG_BT" => $o['color_bg_bottom'],
|
173 |
+
"#_COLOR_TXT_BT" => $o['color_text_bottom'],
|
174 |
+
"#_COLORHEAD" => $o['color_bg_header'],
|
175 |
+
);
|
176 |
+
$output .= str_replace(array_keys($styleRemplacements), array_values($styleRemplacements), get_option('wp_maintenance_style'));
|
177 |
+
|
178 |
+
/* Si on a activé une image ou pattern */
|
179 |
+
if( isset($o['b_enable_image']) && $o['b_enable_image']==1 ) {
|
180 |
+
|
181 |
+
/* Si on a une image de fond */
|
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']; ?>.png);
|
186 |
+
background-repeat: repeat;
|
187 |
+
<?php echo $optionBackground; ?>
|
188 |
+
}
|
189 |
+
<?php
|
190 |
+
|
191 |
+
/* Si on a motif */
|
192 |
+
} elseif( isset($o['b_image']) && $o['b_image'] ) {
|
193 |
+
|
194 |
+
if( empty($o['b_repeat_image']) ) { $o['b_repeat_image'] = 'repeat'; }
|
195 |
+
if( isset($o['b_fixed_image']) && $o['b_fixed_image']==1 ) {
|
196 |
+
$o['b_fixed_image'] = 'fixed;';
|
197 |
+
} else {
|
198 |
+
$o['b_fixed_image'] = '';
|
199 |
+
}
|
200 |
+
?>
|
201 |
+
body {
|
202 |
+
background:url(<?php echo $o['b_image']; ?>) <?php echo $o['b_repeat_image']; ?> <?php echo $o['b_fixed_image']; ?>top center;
|
203 |
+
background-size: cover;
|
204 |
+
-webkit-background-size: cover;
|
205 |
+
-moz-background-size: cover;
|
206 |
+
-o-background-size: cover;
|
207 |
+
}
|
208 |
+
<?php
|
209 |
+
if( isset($o['b_opacity_image']) ) {
|
210 |
+
?>
|
211 |
+
#wrapper { background-color: rgba(0,0,0,<?php echo $o['b_opacity_image']; ?>); }
|
212 |
+
<?php
|
213 |
+
}
|
214 |
+
/* Sinon on garde une couleur de fond */
|
215 |
+
} else {
|
216 |
+
?>
|
217 |
+
body { background-color: <?php echo $o['color_bg']; ?> }
|
218 |
+
<?php }
|
219 |
+
|
220 |
+
}
|
221 |
+
?>
|
222 |
+
|
223 |
+
.wpm_social_icon {
|
224 |
+
float:left;
|
225 |
+
width:<?php echo $oo['size']; ?>px;
|
226 |
+
margin:0px 5px auto;
|
227 |
+
}
|
228 |
+
.wpm_social ul {
|
229 |
+
margin: 10px 0;
|
230 |
+
max-width: 100%;
|
231 |
+
padding: 0;
|
232 |
+
text-align: <?php echo $oo['align']; ?>;
|
233 |
+
}
|
234 |
+
|
235 |
+
<?php /* Si container activé */
|
236 |
+
if( isset($o['container_active']) && $o['container_active'] == 1 ) {
|
237 |
+
|
238 |
+
if( empty($o['container_opacity']) ) { $o['container_opacity'] = 0.5; }
|
239 |
+
if( empty($o['container_width']) ) { $o['container_width'] = 80; }
|
240 |
+
if( empty($o['container_color']) ) { $o['container_color'] = '#ffffff'; }
|
241 |
+
if( isset($o['container_color']) ) { $paramRGBColor = wpm_hex2rgb($o['container_color']); }
|
242 |
+
?>
|
243 |
+
#sscontent {
|
244 |
+
background-color: rgba(<?php echo $paramRGBColor['rouge']; ?>,<?php echo $paramRGBColor['vert']; ?>,<?php echo $paramRGBColor['bleu']; ?>, <?php echo $o['container_opacity']; ?>);
|
245 |
+
padding:0.8em;
|
246 |
+
margin-left:auto;
|
247 |
+
margin-right:auto;
|
248 |
+
width:<?php echo $o['container_width']; ?>%;
|
249 |
+
}
|
250 |
+
|
251 |
+
<?php } ?>
|
252 |
+
|
253 |
+
.wpm_newletter {
|
254 |
+
<?php if( isset($o['newletter_size']) ) { ?>font-size: <?php echo $o['newletter_size']; ?>px; <?php } ?>
|
255 |
+
<?php if( isset($o['newletter_font_style']) ) { ?>font-style: <?php echo $o['newletter_font_style']; ?>; <?php } ?>
|
256 |
+
<?php if( isset($o['newletter_font_weigth']) ) { ?>font-weight: <?php echo $o['newletter_font_weigth']; ?>; <?php } ?>
|
257 |
+
<?php if( isset($o['newletter_font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['newletter_font_text']); ?>, serif; <?php } ?>
|
258 |
+
}
|
259 |
+
|
260 |
+
h3 {
|
261 |
+
<?php if( isset($o['font_title']) ) { ?>font-family: <?php echo wpm_format_font($o['font_title']); ?>, serif; <?php } ?>
|
262 |
+
<?php if( isset($o['font_title_size']) ) { ?>font-size: <?php echo $o['font_title_size']; ?>px; <?php } ?>
|
263 |
+
<?php if( isset($o['font_title_style']) ) { ?>font-style: <?php echo $o['font_title_style']; ?>; <?php } ?>
|
264 |
+
<?php if( isset($o['font_title_weigth']) ) { ?>font-weight: <?php echo $o['font_title_weigth']; ?>; <?php } ?>
|
265 |
+
<?php if( isset($o['color_title']) ) { ?>color:<?php echo $o['color_title']; ?>; <?php } ?>
|
266 |
+
line-height: 100%;
|
267 |
+
text-align:center;
|
268 |
+
margin:0.5em auto;
|
269 |
+
}
|
270 |
+
p {
|
271 |
+
<?php if( isset($o['font_text']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text']); ?>, serif;<?php } ?>
|
272 |
+
<?php if( isset($o['font_text_size']) ) { ?>font-size: <?php echo $o['font_text_size']; ?>px;<?php } ?>
|
273 |
+
<?php if( isset($o['font_text_style']) ) { ?>font-style: <?php echo $o['font_text_style']; ?>;<?php } ?>
|
274 |
+
<?php if( isset($o['font_text_weigth']) ) { ?>font-weight: <?php echo $o['font_text_weigth']; ?>;<?php } ?>
|
275 |
+
<?php if( isset($o['color_txt']) ) { ?>color:<?php echo $o['color_txt']; ?>;<?php } ?>
|
276 |
+
line-height: 100%;
|
277 |
+
text-align:center;
|
278 |
+
margin:0.5em auto;
|
279 |
+
padding-left:2%;
|
280 |
+
padding-right:2%;
|
281 |
+
|
282 |
+
}
|
283 |
+
<?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']!='') ) ) { ?>
|
284 |
+
#footer {
|
285 |
+
<?php if( isset($o['color_bg_bottom']) ) { ?>background:<?php echo $o['color_bg_bottom']; ?>;<?php } ?>
|
286 |
+
}
|
287 |
+
<?php } ?>
|
288 |
+
div.bloc {
|
289 |
+
<?php if( isset($o['font_text_bottom']) ) { ?>font-family: <?php echo wpm_format_font($o['font_text_bottom']); ?>, serif;<?php } ?>
|
290 |
+
<?php if( isset($o['font_bottom_style']) ) { ?>font-style: <?php echo $o['font_bottom_style']; ?>;<?php } ?>
|
291 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
292 |
+
<?php if( isset($o['font_bottom_weigth']) ) { ?>font-weight: <?php echo $o['font_bottom_weigth']; ?>;<?php } ?>
|
293 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color: <?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
294 |
+
text-decoration:none;
|
295 |
+
}
|
296 |
+
div.bloc a:link {
|
297 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
298 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
299 |
+
text-decoration:none;
|
300 |
+
}
|
301 |
+
div.bloc a:visited {
|
302 |
+
<?php if( isset($o['color_text_bottom']) ) { ?>color:<?php echo $o['color_text_bottom']; ?>;<?php } ?>
|
303 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
304 |
+
text-decoration:none;
|
305 |
+
}
|
306 |
+
div.bloc a:hover {
|
307 |
+
text-decoration:underline;
|
308 |
+
<?php if( isset($o['font_bottom_size']) ) { ?>font-size: <?php echo $o['font_bottom_size']; ?>px;<?php } ?>
|
309 |
+
|
310 |
+
}
|
311 |
+
<?php
|
312 |
+
$output .= ob_get_clean();
|
313 |
+
|
314 |
+
$output .= '</style>'."\n";
|
315 |
+
|
316 |
+
return $output;
|
317 |
+
}
|
318 |
+
|
319 |
+
function wpm_analytics() {
|
320 |
+
|
321 |
+
// Récupère les paramètres sauvegardés
|
322 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
323 |
+
$o = get_option('wp_maintenance_settings');
|
324 |
+
|
325 |
+
$output = '';
|
326 |
+
|
327 |
+
if( isset($o['analytics']) && $o['analytics']!='') {
|
328 |
+
$output = do_shortcode('[wpm_analytics enable="'.$o['analytics'].'"]');
|
329 |
+
}
|
330 |
+
|
331 |
+
return $output;
|
332 |
+
}
|
333 |
+
|
334 |
+
function wpm_headercode() {
|
335 |
+
|
336 |
+
// Récupère les paramètres sauvegardés
|
337 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
338 |
+
$o = get_option('wp_maintenance_settings');
|
339 |
+
|
340 |
+
$output = '';
|
341 |
+
|
342 |
+
if( isset($o['headercode']) && $o['headercode']!='') {
|
343 |
+
$output = stripslashes($o['headercode']);
|
344 |
+
}
|
345 |
+
|
346 |
+
return $output;
|
347 |
+
}
|
348 |
+
|
349 |
+
function wpm_social_position($position = '') {
|
350 |
+
|
351 |
+
// Récupère les paramètres sauvegardés
|
352 |
+
$o = get_option('wp_maintenance_social_options');
|
353 |
+
|
354 |
+
$output = '';
|
355 |
+
if( isset($o['position']) && $o['position']=='top' && isset($position) && $position=='top' ) {
|
356 |
+
$output = '<div id="header">'.do_shortcode('[wpm_social]').'</div>';
|
357 |
+
}
|
358 |
+
if( isset($o['position']) && $o['position']=='bottom' && isset($position) && $position=='bottom') {
|
359 |
+
$output = do_shortcode('[wpm_social]');
|
360 |
+
}
|
361 |
+
|
362 |
+
return $output;
|
363 |
+
}
|
364 |
+
|
365 |
+
|
366 |
+
function wpm_stylenewsletter() {
|
367 |
+
|
368 |
+
// Récupère les paramètres sauvegardés
|
369 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
370 |
+
$o = get_option('wp_maintenance_settings');
|
371 |
+
|
372 |
+
$output = '';
|
373 |
+
|
374 |
+
$output = " /* no NEWLETTER Style */ ";
|
375 |
+
|
376 |
+
if( empty($o['color_field_text']) ) { $o['color_field_text'] = '#333333'; }
|
377 |
+
if( empty($o['color_text_button']) ) { $o['color_text_button']= '#ffffff'; }
|
378 |
+
if( empty($o['color_field_background']) ) { $o['color_field_background']= '#F1F1F1'; }
|
379 |
+
if( empty($o['color_field_border']) ) { $o['color_field_border']= '#333333'; }
|
380 |
+
if( empty($o['color_button_onclick']) ) { $o['color_button_onclick']= '#333333'; }
|
381 |
+
if( empty($o['color_button_hover']) ) { $o['color_button_hover']= '#cccccc'; }
|
382 |
+
if( empty($o['color_button']) ) { $o['color_button']= '#1e73be'; }
|
383 |
+
|
384 |
+
$wysijaRemplacements = array (
|
385 |
+
"#_COLORTXT" => $o['color_field_text'],
|
386 |
+
"#_COLORBG" => $o['color_field_background'],
|
387 |
+
"#_COLORBORDER" => $o['color_field_border'],
|
388 |
+
"#_COLORBUTTON" => $o['color_button'],
|
389 |
+
"#_COLORTEXTBUTTON" => $o['color_text_button'],
|
390 |
+
"#_COLOR_BTN_HOVER" => $o['color_button_hover'],
|
391 |
+
"#_COLOR_BTN_CLICK" => $o['color_button_onclick']
|
392 |
+
);
|
393 |
+
|
394 |
+
if( isset($o['code_newletter']) && $o['code_newletter']!='' && strpos($o['code_newletter'], 'wysija_form') == 1 ) {
|
395 |
+
|
396 |
+
$output = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_wysija_style() );
|
397 |
+
|
398 |
+
} else if( strpos($o['code_newletter'], 'mc4wp_form') == 1 ) {
|
399 |
+
|
400 |
+
$output = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_mc4wp_style() );
|
401 |
+
|
402 |
+
}
|
403 |
+
|
404 |
+
return '<style type="text/css">'.$output.'</style>';
|
405 |
+
}
|
406 |
+
|
407 |
+
function wpm_newsletter() {
|
408 |
+
|
409 |
+
// Récupère les paramètres sauvegardés
|
410 |
+
if(get_option('wp_maintenance_settings')) { extract(get_option('wp_maintenance_settings')); }
|
411 |
+
$o = get_option('wp_maintenance_settings');
|
412 |
+
|
413 |
+
$output = '';
|
414 |
+
|
415 |
+
if( isset($o['newletter']) && $o['newletter']==1 ) {
|
416 |
+
|
417 |
+
$output = '<div class="wpm_newletter">';
|
418 |
+
if( isset($o['title_newletter']) && $o['title_newletter']!='') {
|
419 |
+
$output .= '<div>'.stripslashes($o['title_newletter']).'</div>';
|
420 |
+
}
|
421 |
+
if( isset($o['type_newletter']) && isset($o['iframe_newletter']) && $o['iframe_newletter']!='' && $o['type_newletter']=='iframe' ) {
|
422 |
+
$output .= stripslashes($o['iframe_newletter']);
|
423 |
+
}
|
424 |
+
if( isset($o['type_newletter']) && isset($o['code_newletter']) && $o['code_newletter']!='' && $o['type_newletter']=='shortcode' ) {
|
425 |
+
$output .= do_shortcode(stripslashes($o['code_newletter']));
|
426 |
+
}
|
427 |
+
$output .= '</div>';
|
428 |
+
}
|
429 |
+
|
430 |
+
return $output;
|
431 |
+
}
|
themes/default/index.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>{TitleSEO}</title>
|
7 |
+
{MetaDescription}
|
8 |
+
{Favicon}
|
9 |
+
{Head}
|
10 |
+
<style type='text/css'>
|
11 |
+
/* VERSION {Version} */
|
12 |
+
html,
|
13 |
+
body {margin:0;padding:0;height:100%;font-size:100%;}
|
14 |
+
#wrapper {min-height:100%;position:relative;}
|
15 |
+
#header {padding:10px;}
|
16 |
+
#content {padding-bottom:100px; /* Height of the footer element */}
|
17 |
+
#footer {width:100%;line-height:60px;position:absolute;bottom:0;left:0;text-align: center;}
|
18 |
+
#logo {max-width: 100%;height: auto;text-align: center;}
|
19 |
+
img, object, embed, canvas, video, audio, picture {max-width: 100%;height: auto;}
|
20 |
+
div.bloc {width:80%;padding:10px;vertical-align:middle;display:inline-block;line-height:1.2;text-align:center;}
|
21 |
+
.wpm_social {padding: 0 45px;text-align: center;}
|
22 |
+
@media (max-width: 640px) {body {font-size:1.2rem;}}
|
23 |
+
@media (min-width: 640px) {body {font-size:1rem;}}
|
24 |
+
@media (min-width:960px) {body {font-size:1.2rem;}}
|
25 |
+
@media (min-width:1100px) {body {font-size:1.5rem;}}
|
26 |
+
</style>
|
27 |
+
{CustomCSS}
|
28 |
+
{AddStyleWysija}
|
29 |
+
<!--[if lt IE 7]>
|
30 |
+
<style type="text/css">
|
31 |
+
#wrapper { height:100%; }
|
32 |
+
div.bloc { display:inline; /* correctif inline-block*/ }
|
33 |
+
div.conteneur > span { zoom:1; /* layout */ }
|
34 |
+
</style>
|
35 |
+
<![endif]-->
|
36 |
+
{Analytics}
|
37 |
+
{HeaderCode}
|
38 |
+
{SliderCSS}
|
39 |
+
{ScriptSlider}
|
40 |
+
{ScriptSlideshow}
|
41 |
+
</head>
|
42 |
+
|
43 |
+
<body>
|
44 |
+
|
45 |
+
<div id="wrapper">
|
46 |
+
|
47 |
+
{TopSocialIcon}
|
48 |
+
<!-- #header -->
|
49 |
+
|
50 |
+
<div id="content">
|
51 |
+
{SlideshowAL}
|
52 |
+
{Logo}
|
53 |
+
{SlideshowBL}
|
54 |
+
<div id="sscontent">
|
55 |
+
<h3>{Title}</h3>
|
56 |
+
{Text}
|
57 |
+
{SlideshowBT}
|
58 |
+
{Counter}
|
59 |
+
{Newsletter}
|
60 |
+
</div>
|
61 |
+
{BottomSocialIcon}
|
62 |
+
</div><!-- #content -->
|
63 |
+
|
64 |
+
<div id="footer">
|
65 |
+
<div class="bloc">{Copyrights}</div>
|
66 |
+
<span></span>
|
67 |
+
</div><!-- #footer -->
|
68 |
+
|
69 |
+
</div><!-- #wrapper -->
|
70 |
+
|
71 |
+
</body>
|
72 |
+
|
73 |
+
</html>
|
74 |
+
<!-- WP Maintenance Mode by RestezConnectés. Learn more: https://restezconnectes.fr -->
|
views/wp-maintenance-colors.php
CHANGED
@@ -52,7 +52,8 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
52 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
53 |
|
54 |
<h3><?php _e('Choice texts fonts and colors:', 'wp-maintenance'); ?></h3>
|
55 |
-
<em><?php _e('
|
|
|
56 |
<!-- POLICE DU TITRE -->
|
57 |
<em><stong><?php _e('Title font settings', 'wp-maintenance'); ?></stong></em>
|
58 |
<table cellspacing="10">
|
@@ -92,6 +93,8 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
92 |
<!-- FIN POLICE DU TITRE-->
|
93 |
|
94 |
<!-- POLICE DU TEXTE -->
|
|
|
|
|
95 |
<br /><em><?php _e('Text font settings', 'wp-maintenance'); ?></em>
|
96 |
<table cellspacing="10">
|
97 |
<tr>
|
52 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
53 |
|
54 |
<h3><?php _e('Choice texts fonts and colors:', 'wp-maintenance'); ?></h3>
|
55 |
+
<em><?php _e('Title color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php if( isset($paramMMode['color_title']) && $paramMMode['color_title']!='' ) { echo $paramMMode['color_title']; } else { echo '#333333'; } ?>" name="wp_maintenance_settings[color_title]" class="wpm-color-field" data-default-color="#333333" /><br />
|
56 |
+
|
57 |
<!-- POLICE DU TITRE -->
|
58 |
<em><stong><?php _e('Title font settings', 'wp-maintenance'); ?></stong></em>
|
59 |
<table cellspacing="10">
|
93 |
<!-- FIN POLICE DU TITRE-->
|
94 |
|
95 |
<!-- POLICE DU TEXTE -->
|
96 |
+
<br /><br />
|
97 |
+
<em><?php _e('Text color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php if( isset($paramMMode['color_txt']) && $paramMMode['color_txt']!='' ) { echo $paramMMode['color_txt']; } else { echo '#333333'; } ?>" name="wp_maintenance_settings[color_txt]" class="wpm-color-field" data-default-color="#333333" />
|
98 |
<br /><em><?php _e('Text font settings', 'wp-maintenance'); ?></em>
|
99 |
<table cellspacing="10">
|
100 |
<tr>
|
views/wp-maintenance-countdown.php
CHANGED
@@ -86,31 +86,32 @@ $paramMMode = get_option('wp_maintenance_settings');
|
|
86 |
//$startHour = $newMin[0].':'.ceil($newMin[1]/5)*5;
|
87 |
}
|
88 |
?>
|
89 |
-
<small><?php _e('Select the launch date/time', 'wp-maintenance'); ?></small><br /><img src="<?php echo WPM_PLUGIN_URL.'images/schedule_clock.png'; ?>" class="datepicker" width="48" height="48" style="vertical-align: middle;margin-right:5px;"> <input id="cptdate" class="datepicker" name="wp_maintenance_settings[cptdate]" type="text" autofocuss data-value="<?php echo $startDate; ?>"> <?php _e('at', 'wp-maintenance'); ?> <input id="cpttime" class="timepicker" type="time" name="wp_maintenance_settings[cpttime]" value="<?php echo $startHour; ?>" size="
|
90 |
<div id="wpmdatecontainer"></div>
|
91 |
<br /><br />
|
92 |
<div>
|
93 |
-
<div style="float:left;
|
94 |
-
<div class="switch-field" style="margin-left:0px!important;">
|
95 |
<input class="switch_left" type="radio" id="switch_left" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if( isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>/>
|
96 |
<label for="switch_left"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
97 |
<input class="switch_right" type="radio" id="switch_right" name="wp_maintenance_settings[active_cpt_s]" value="0" <?php if( empty($paramMMode['active_cpt_s']) || isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==0) { echo ' checked'; } ?> />
|
98 |
<label for="switch_right"><?php _e('No', 'wp-maintenance'); ?></label>
|
99 |
</div>
|
100 |
</div>
|
101 |
-
<div style="float:left;margin-
|
102 |
<div class="clear"></div>
|
103 |
</div>
|
|
|
104 |
<div>
|
105 |
-
<div style="float:left;
|
106 |
-
<div class="switch-field" style="margin-left:0px!important;">
|
107 |
<input class="switch_left" type="radio" id="switch_disable" name="wp_maintenance_settings[disable]" value="1" <?php if( isset($paramMMode['disable']) && $paramMMode['disable']==1) { echo ' checked'; } ?>/>
|
108 |
<label for="switch_disable"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
109 |
<input class="switch_right" type="radio" id="switch_disable_no" name="wp_maintenance_settings[disable]" value="0" <?php if( empty($paramMMode['disable']) || isset($paramMMode['disable']) && $paramMMode['disable']==0) { echo ' checked'; } ?> />
|
110 |
<label for="switch_disable_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
111 |
</div>
|
112 |
</div>
|
113 |
-
<div style="float:left;margin-
|
114 |
<div class="clear"></div>
|
115 |
</div>
|
116 |
<br />
|
86 |
//$startHour = $newMin[0].':'.ceil($newMin[1]/5)*5;
|
87 |
}
|
88 |
?>
|
89 |
+
<small><?php _e('Select the launch date/time', 'wp-maintenance'); ?></small><br /><img src="<?php echo WPM_PLUGIN_URL.'images/schedule_clock.png'; ?>" class="datepicker" width="48" height="48" style="vertical-align: middle;margin-right:5px;"> <input id="cptdate" class="datepicker" name="wp_maintenance_settings[cptdate]" type="text" autofocuss data-value="<?php echo $startDate; ?>"> <?php _e('at', 'wp-maintenance'); ?> <input id="cpttime" class="timepicker" type="time" name="wp_maintenance_settings[cpttime]" value="<?php echo $startHour; ?>" size="6" autofocuss>
|
90 |
<div id="wpmdatecontainer"></div>
|
91 |
<br /><br />
|
92 |
<div>
|
93 |
+
<div style="float:left;">
|
94 |
+
<div class="switch-field-mini" style="margin-left:0px!important;">
|
95 |
<input class="switch_left" type="radio" id="switch_left" name="wp_maintenance_settings[active_cpt_s]" value="1" <?php if( isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==1) { echo ' checked'; } ?>/>
|
96 |
<label for="switch_left"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
97 |
<input class="switch_right" type="radio" id="switch_right" name="wp_maintenance_settings[active_cpt_s]" value="0" <?php if( empty($paramMMode['active_cpt_s']) || isset($paramMMode['active_cpt_s']) && $paramMMode['active_cpt_s']==0) { echo ' checked'; } ?> />
|
98 |
<label for="switch_right"><?php _e('No', 'wp-maintenance'); ?></label>
|
99 |
</div>
|
100 |
</div>
|
101 |
+
<div style="float:left;margin-left:12px;"><?php _e('Enable seconds ?', 'wp-maintenance'); ?></div>
|
102 |
<div class="clear"></div>
|
103 |
</div>
|
104 |
+
<div class="clear"> </div>
|
105 |
<div>
|
106 |
+
<div style="float:left;">
|
107 |
+
<div class="switch-field-mini" style="margin-left:0px!important;">
|
108 |
<input class="switch_left" type="radio" id="switch_disable" name="wp_maintenance_settings[disable]" value="1" <?php if( isset($paramMMode['disable']) && $paramMMode['disable']==1) { echo ' checked'; } ?>/>
|
109 |
<label for="switch_disable"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
110 |
<input class="switch_right" type="radio" id="switch_disable_no" name="wp_maintenance_settings[disable]" value="0" <?php if( empty($paramMMode['disable']) || isset($paramMMode['disable']) && $paramMMode['disable']==0) { echo ' checked'; } ?> />
|
111 |
<label for="switch_disable_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
112 |
</div>
|
113 |
</div>
|
114 |
+
<div style="float:left;margin-left:12px;"><?php _e('Disable maintenance mode at the end of the countdown?', 'wp-maintenance'); ?></div>
|
115 |
<div class="clear"></div>
|
116 |
</div>
|
117 |
<br />
|
views/wp-maintenance-dashboard.php
CHANGED
@@ -139,29 +139,57 @@ $paramSocialOption = get_option('wp_maintenance_social_options');
|
|
139 |
|
140 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
141 |
|
142 |
-
<!--
|
143 |
<div>
|
144 |
-
<div style="float:left; width:70%;"><h3><?php _e('Enable
|
145 |
<div style="float:left; width:30%;text-align:right;">
|
146 |
<div class="switch-field">
|
147 |
-
<input class="switch_left" type="radio" onclick="AfficherTexte('option-
|
148 |
-
<label for="
|
149 |
-
<input class="switch_right" type="radio" onclick="CacherTexte('option-
|
150 |
-
<label for="
|
151 |
</div>
|
152 |
</div>
|
153 |
<div class="clear"></div>
|
154 |
</div>
|
155 |
|
156 |
-
<div id="option-
|
157 |
|
158 |
-
<?php _e('
|
159 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[
|
160 |
-
<?php _e('
|
161 |
-
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
</div>
|
163 |
|
164 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
|
|
165 |
<!-- ICONS RESEAUX SOCIAUX -->
|
166 |
<div>
|
167 |
<div style="float:left; width:70%;"><h3><?php _e('Enable Social Networks:', 'wp-maintenance'); ?></h3></div>
|
139 |
|
140 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
141 |
|
142 |
+
<!-- SEO -->
|
143 |
<div>
|
144 |
+
<div style="float:left; width:70%;"><h3><?php _e('Enable SEO:', 'wp-maintenance'); ?></h3></div>
|
145 |
<div style="float:left; width:30%;text-align:right;">
|
146 |
<div class="switch-field">
|
147 |
+
<input class="switch_left" type="radio" onclick="AfficherTexte('option-seo');" id="switch_seo" name="wp_maintenance_settings[enable_seo]" value="1" <?php if( isset($paramMMode['enable_seo']) && $paramMMode['enable_seo']==1) { echo ' checked'; } ?>/>
|
148 |
+
<label for="switch_seo"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
149 |
+
<input class="switch_right" type="radio" onclick="CacherTexte('option-seo');" id="switch_seo_no" name="wp_maintenance_settings[enable_seo]" value="0" <?php if( empty($paramMMode['enable_seo']) || isset($paramMMode['seo']) && $paramMMode['enable_seo']==0) { echo ' checked'; } ?> />
|
150 |
+
<label for="switch_seo_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
151 |
</div>
|
152 |
</div>
|
153 |
<div class="clear"></div>
|
154 |
</div>
|
155 |
|
156 |
+
<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'; } ?>">
|
157 |
|
158 |
+
<?php _e('SEO Title', 'wp-maintenance'); ?><br />
|
159 |
+
<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 />
|
160 |
+
<?php _e('SEO Meta Description', 'wp-maintenance'); ?><br />
|
161 |
+
<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 />
|
162 |
+
<br />
|
163 |
+
|
164 |
+
<!-- UPLOADER UN FAVICON -->
|
165 |
+
<strong><?php _e('Add a favicon', 'wp-maintenance'); ?></strong>
|
166 |
+
<div id="option-favicon">
|
167 |
+
<div style="float:left;width:68%;margin-right:10px;">
|
168 |
+
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
169 |
+
<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.2em;padding-bottom: 2.2em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br />
|
170 |
+
<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>
|
171 |
+
</div>
|
172 |
+
<div style="float:left;width:30%;text-align:center;">
|
173 |
+
<?php if( isset($paramMMode['favicon']) && $paramMMode['favicon']!='' ) { ?>
|
174 |
+
<?php _e('You use this favicon:', 'wp-maintenance'); ?><br />
|
175 |
+
<img src="<?php echo $paramMMode['favicon']; ?>" width="100" /><br />
|
176 |
+
<?php } ?>
|
177 |
+
</div>
|
178 |
+
<div class="clear"></div>
|
179 |
+
</div>
|
180 |
+
<div class="clear"> </div>
|
181 |
+
<!-- GOOGLE ANALYTICS -->
|
182 |
+
<strong><?php _e('Analytics Code', 'wp-maintenance'); ?></strong>
|
183 |
+
<div id="option-analytics">
|
184 |
+
<?php _e('Enter your Google analytics tracking ID here:', 'wp-maintenance'); ?><br />
|
185 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[code_analytics]" value="<?php if( isset($paramMMode['code_analytics']) && $paramMMode['code_analytics']!='' ) { echo stripslashes(trim($paramMMode['code_analytics'])); } ?>"><br />
|
186 |
+
<?php _e('Enter your domain URL:', 'wp-maintenance'); ?><br />
|
187 |
+
<input type="text" class="wpm-form-field" name="wp_maintenance_settings[domain_analytics]" value="<?php if( isset($paramMMode['domain_analytics']) && $paramMMode['domain_analytics']!='' ) { echo stripslashes(trim($paramMMode['domain_analytics'])); } else { echo $_SERVER['SERVER_NAME']; } ?>">
|
188 |
+
</div>
|
189 |
</div>
|
190 |
|
191 |
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
192 |
+
|
193 |
<!-- ICONS RESEAUX SOCIAUX -->
|
194 |
<div>
|
195 |
<div style="float:left; width:70%;"><h3><?php _e('Enable Social Networks:', 'wp-maintenance'); ?></h3></div>
|
views/wp-maintenance-picture.php
CHANGED
@@ -3,6 +3,12 @@
|
|
3 |
defined( 'ABSPATH' ) or die( 'Not allowed' );
|
4 |
|
5 |
$messageUpdate = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
/* Update des paramètres */
|
7 |
if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' ) {
|
8 |
|
@@ -17,7 +23,7 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' ) {
|
|
17 |
}
|
18 |
|
19 |
$options_saved = wpm_update_settings($_POST["wp_maintenance_settings"]);
|
20 |
-
update_option('wp_maintenance_slider', $_POST["wp_maintenance_slider"]);
|
21 |
update_option('wp_maintenance_slider_options', $_POST["wp_maintenance_slider_options"]);
|
22 |
|
23 |
$messageUpdate = 1;
|
@@ -38,6 +44,7 @@ $paramSliderOptions = get_option('wp_maintenance_slider_options');
|
|
38 |
#pattern { text-align: left; margin: 5px 0; word-spacing: -1em;list-style-type: none; }
|
39 |
#pattern li { display: inline-block; list-style: none;margin-right:15px;text-align:center; }
|
40 |
#pattern li.current { background: #66CC00; color: #fff; }
|
|
|
41 |
</style>
|
42 |
<script type="text/javascript">
|
43 |
function toggleTable(texte) {
|
@@ -54,210 +61,232 @@ function toggleTable(texte) {
|
|
54 |
<div class="wrap">
|
55 |
|
56 |
<form method="post" action="" name="valide_settings">
|
57 |
-
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
|
76 |
-
</div>
|
77 |
-
<div style="float:left;width:30%;text-align:center;">
|
78 |
-
<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
|
79 |
-
<?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" />
|
80 |
-
<?php } ?>
|
81 |
-
</div>
|
82 |
-
<div class="clear"></div>
|
83 |
-
</div>
|
84 |
-
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
85 |
-
<div id="encart-option-background">
|
86 |
-
<div style="float:left; width:70%;"><h3><?php _e('Background picture or pattern', 'wp-maintenance'); ?></h3></div>
|
87 |
-
<div style="float:left; width:30%;text-align:right;">
|
88 |
-
<div class="switch-field">
|
89 |
-
<input class="switch_left" onclick="AfficherTexte('option-background');" type="radio" id="switch_background" name="wp_maintenance_settings[b_enable_image]" value="1" <?php if( isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==1) { echo ' checked'; } ?>/>
|
90 |
-
<label for="switch_background" ><?php _e('Yes', 'wp-maintenance'); ?></label>
|
91 |
-
<input class="switch_right" onclick="CacherTexte('option-background');" type="radio" id="switch_background_no" name="wp_maintenance_settings[b_enable_image]" value="0" <?php if( empty($paramMMode['b_enable_image']) || (isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==0) ) { echo ' checked'; } ?> />
|
92 |
-
<label for="switch_background_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
93 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
</div>
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
</select> <input type= "checkbox" name="wp_maintenance_settings[b_fixed_image]" value="1" <?php if( isset($paramMMode['b_fixed_image']) && $paramMMode['b_fixed_image']==1) { echo ' checked'; } ?>> <?php _e('Fixed', 'wp-maintenance'); ?>
|
111 |
-
</div>
|
112 |
-
<div style="float:left;width:30%;text-align:center;">
|
113 |
-
<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' && (!$paramMMode['b_pattern'] or $paramMMode['b_pattern']==0) ) { ?>
|
114 |
-
<?php _e('You use this background picture:', 'wp-maintenance'); ?><br />
|
115 |
-
<img src="<?php echo $paramMMode['b_image']; ?>" width="200" /><br />
|
116 |
-
<?php } ?>
|
117 |
</div>
|
118 |
-
<div class="clear"></div>
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
<
|
124 |
-
<
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<li>
|
130 |
-
<div style="width:50px;height:50px;border:1px solid #333;background:
|
131 |
-
<input type="radio" value="
|
132 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
<?php } ?>
|
134 |
-
</ul>
|
135 |
-
</div>
|
136 |
-
<div style="float:left;width:30%;text-align:center;">
|
137 |
-
<?php if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']>0) { ?>
|
138 |
-
<?php _e('You use this pattern:', 'wp-maintenance'); ?><br />
|
139 |
-
<div style="background: url('<?php echo WP_PLUGIN_URL ?>/wp-maintenance/images/pattern<?php echo $paramMMode['b_pattern']; ?>.png');width:200px;height:200px;border:1px solid #ddd;margin-left:auto;margin-right:auto;"></div>
|
140 |
-
<?php } ?>
|
141 |
-
</div>
|
142 |
-
<div class="clear"></div>
|
143 |
-
</div>
|
144 |
-
<div style="margin-top:15px;margin-bottom:15px;"><hr></div>
|
145 |
-
|
146 |
-
<div>
|
147 |
-
<div style="float:left; width:70%;"><h3><?php _e('Enable Slider', 'wp-maintenance'); ?></h3></div>
|
148 |
-
<div style="float:left; width:30%;text-align:right;">
|
149 |
-
<div class="switch-field">
|
150 |
-
<input type="radio" onclick="AfficherTexte('option-diaporama');" id="switch_diaporama" name="wp_maintenance_settings[enable_slider]" value="1" <?php if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) { echo ' checked'; } ?>/>
|
151 |
-
<label for="switch_diaporama"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
152 |
-
<input type="radio" onclick="CacherTexte('option-diaporama');" id="switch_diaporama_no" name="wp_maintenance_settings[enable_slider]" value="0" <?php if( empty($paramMMode['enable_slider']) || (isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==0) ) { echo ' checked'; } ?> />
|
153 |
-
<label for="switch_diaporama_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
154 |
</div>
|
|
|
155 |
</div>
|
156 |
-
<div class="clear"></div>
|
157 |
-
</div>
|
158 |
-
|
159 |
-
<div id="option-diaporama" style="<?php if( empty($paramMMode['enable_slider']) || (isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==0) ) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
160 |
-
<h4><?php _e('Slider image options', 'wp-maintenance'); ?></h4>
|
161 |
-
<?php
|
162 |
-
|
163 |
-
if( $paramSlider!==null ) {
|
164 |
-
|
165 |
-
if( $paramSlider['slider_image'] ) {
|
166 |
-
$lastKeySlide = key($paramSlider['slider_image']);
|
167 |
-
$countSlide = ( $lastKeySlide + 1 );
|
168 |
-
} else {
|
169 |
-
$countSlide = 1;
|
170 |
-
}
|
171 |
-
?>
|
172 |
-
<div style="margin-bottom:15px;width:100%;">
|
173 |
-
<div style="width:30%;float:left;">
|
174 |
-
<?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 />
|
175 |
-
<?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; } ?>" />%
|
176 |
-
</div>
|
177 |
-
<div style="width:30%;float:left;padding-left:5px;">
|
178 |
-
|
179 |
-
<div id="encart-option-sliderauto">
|
180 |
-
<?php _e('Display Auto Slider:', 'wp-maintenance'); ?><br />
|
181 |
-
<div class="switch-field" style="margin-left: 0px;">
|
182 |
-
<input class="switch_left" type="radio" id="switch_sliderauto" name="wp_maintenance_slider_options[slider_auto]" value="1" <?php if( isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='true') { echo ' checked'; } ?>/>
|
183 |
-
<label for="switch_sliderauto" ><?php _e('Yes', 'wp-maintenance'); ?></label>
|
184 |
-
<input class="switch_right" type="radio" id="switch_sliderauto_no" name="wp_maintenance_slider_options[slider_auto]" value="0" <?php if( empty($paramSliderOptions['slider_auto']) || (isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='false') ) { echo ' checked'; } ?> />
|
185 |
-
<label for="switch_sliderauto_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
186 |
-
</div>
|
187 |
-
<?php _e('Display button navigation:', 'wp-maintenance'); ?><br />
|
188 |
-
<div class="switch-field" style="margin-left: 0px;">
|
189 |
-
<input class="switch_left" type="radio" id="switch_slidernav" name="wp_maintenance_slider_options[slider_nav]" value="1" <?php if( isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='true') { echo ' checked'; } ?>/>
|
190 |
-
<label for="switch_slidernav" ><?php _e('Yes', 'wp-maintenance'); ?></label>
|
191 |
-
<input class="switch_right" type="radio" id="switch_slidernav_no" name="wp_maintenance_slider_options[slider_nav]" value="0" <?php if( empty($paramSliderOptions['slider_nav']) || (isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='false') ) { echo ' checked'; } ?> />
|
192 |
-
<label for="switch_slidernav_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
193 |
-
</div>
|
194 |
-
</div>
|
195 |
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
|
|
|
|
|
|
204 |
</div>
|
205 |
<div class="clear"></div>
|
206 |
</div>
|
|
|
|
|
|
|
|
|
207 |
|
208 |
-
|
209 |
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
-
|
218 |
-
if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
|
219 |
-
$slideImg = $paramSlider['slider_image'][$numSlide]['image'];
|
220 |
-
}
|
221 |
-
$slideText = '';
|
222 |
-
if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
|
223 |
-
$slideText = stripslashes($paramSlider['slider_image'][$numSlide]['text']);
|
224 |
-
}
|
225 |
-
$slideLink = '';
|
226 |
-
if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
|
227 |
-
$slideLink = $paramSlider['slider_image'][$numSlide]['link'];
|
228 |
-
}
|
229 |
-
echo '<div style="float:left;width:45%;border: 1px solid #ececec;padding:0.8em;margin-right:1%;margin-bottom:1%">';
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
234 |
|
235 |
-
|
236 |
-
echo '<input class="wpm-form-field" type="hidden" name="wp_maintenance_slider[slider_image]['.$numSlide.'][image]" value="'.$slideImg.'" />';
|
237 |
-
echo __('Text:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][text]" class="wpm-form-field" size="50%" value="'.$slideText.'" /><br />';
|
238 |
-
echo __('Link:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][link]" class="wpm-form-field" size="50%" value="'.$slideLink.'" />';
|
239 |
-
echo '</div>';
|
240 |
-
echo '<div class="clear"></div>';
|
241 |
-
echo '<div style="text-align:right;"><input type="checkbox" name="wpm_maintenance_detete['.$numSlide.']" value="true" /><small>'.__('Delete this slide', 'wp-maintenance').'</small></div>';
|
242 |
-
echo '</div>';
|
243 |
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
}
|
248 |
-
|
249 |
-
|
250 |
</div>
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
<?php submit_button(); ?>
|
255 |
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
</div>
|
260 |
</form>
|
261 |
<?php echo wpm_footer(); ?>
|
262 |
-
|
263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
defined( 'ABSPATH' ) or die( 'Not allowed' );
|
4 |
|
5 |
$messageUpdate = 0;
|
6 |
+
|
7 |
+
global $_wp_admin_css_colors;
|
8 |
+
|
9 |
+
$admin_color = get_user_option( 'admin_color', get_current_user_id() );
|
10 |
+
$colors = $_wp_admin_css_colors[$admin_color]->colors;
|
11 |
+
|
12 |
/* Update des paramètres */
|
13 |
if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' ) {
|
14 |
|
23 |
}
|
24 |
|
25 |
$options_saved = wpm_update_settings($_POST["wp_maintenance_settings"]);
|
26 |
+
update_option('wp_maintenance_slider', $_POST["wp_maintenance_slider"]);
|
27 |
update_option('wp_maintenance_slider_options', $_POST["wp_maintenance_slider_options"]);
|
28 |
|
29 |
$messageUpdate = 1;
|
44 |
#pattern { text-align: left; margin: 5px 0; word-spacing: -1em;list-style-type: none; }
|
45 |
#pattern li { display: inline-block; list-style: none;margin-right:15px;text-align:center; }
|
46 |
#pattern li.current { background: #66CC00; color: #fff; }
|
47 |
+
.ui-state-default { border:1px solid <?php echo $colors[2]; ?>!important;}
|
48 |
</style>
|
49 |
<script type="text/javascript">
|
50 |
function toggleTable(texte) {
|
61 |
<div class="wrap">
|
62 |
|
63 |
<form method="post" action="" name="valide_settings">
|
64 |
+
<input type="hidden" name="action" value="update_pictures" />
|
65 |
|
66 |
+
<!-- HEADER -->
|
67 |
+
<?php echo wpm_get_header( __('Picture', 'wp-maintenance'), 'dashicons-format-gallery', $messageUpdate ) ?>
|
68 |
+
<!-- END HEADER -->
|
69 |
|
70 |
+
<div style="margin-top: 40px;">
|
71 |
+
<div id="wpm-column1">
|
72 |
|
73 |
+
<div id="encart-option-logo">
|
74 |
+
<div style="float:left;width:68%;margin-right:10px;">
|
75 |
|
76 |
+
<h3><?php _e('Header picture', 'wp-maintenance'); ?></h3>
|
77 |
+
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
78 |
+
<input id="upload_image" size="65%" name="wp_maintenance_settings[image]" value="<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { echo $paramMMode['image']; } ?>" type="text" class="wpm-form-field" /> <a href="#" id="upload_image_button" class="button button-primary" style="padding-top: 0.2em;padding-bottom: 2.2em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br />
|
79 |
+
<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 />
|
80 |
+
<span class="description"><?php _e( 'Your Logo width (Enter in pixels). Default: 310px', '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 />
|
81 |
+
<span class="description"><?php _e( 'Your Logo Height (Enter in pixels). Default: 185px', '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 />
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
</div>
|
84 |
+
<div style="float:left;width:30%;text-align:center;">
|
85 |
+
<?php if( isset($paramMMode['image']) && $paramMMode['image']!='' ) { ?>
|
86 |
+
<?php _e('You use this picture:', 'wp-maintenance'); ?><br /> <img src="<?php echo $paramMMode['image']; ?>" width="250" id="image_visuel" style="padding:3px;" />
|
87 |
+
<?php } ?>
|
88 |
+
</div>
|
89 |
+
<div class="clear"></div>
|
90 |
</div>
|
91 |
+
|
92 |
+
<div style="margin-top:15px;margin-bottom:15px;"><hr /></div>
|
93 |
+
|
94 |
+
<!-- BUTTON FOR ENABLE BACKGROUND -->
|
95 |
+
<div id="encart-option-background">
|
96 |
+
<div style="float:left; width:70%;"><h3><?php _e('Background picture or pattern', 'wp-maintenance'); ?></h3></div>
|
97 |
+
<div style="float:left; width:30%;text-align:right;">
|
98 |
+
<div class="switch-field">
|
99 |
+
<input class="switch_left" onclick="AfficherTexte('option-background');" type="radio" id="switch_background" name="wp_maintenance_settings[b_enable_image]" value="1" <?php if( isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==1) { echo ' checked'; } ?>/>
|
100 |
+
<label for="switch_background" ><?php _e('Yes', 'wp-maintenance'); ?></label>
|
101 |
+
<input class="switch_right" onclick="CacherTexte('option-background');" type="radio" id="switch_background_no" name="wp_maintenance_settings[b_enable_image]" value="0" <?php if( empty($paramMMode['b_enable_image']) || (isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==0) ) { echo ' checked'; } ?> />
|
102 |
+
<label for="switch_background_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<div class="clear"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
</div>
|
|
|
107 |
|
108 |
+
<div id="option-background" style="<?php if( empty($paramMMode['b_enable_image']) || (isset($paramMMode['b_enable_image']) && $paramMMode['b_enable_image']==0) ) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
109 |
+
|
110 |
+
<!-- UPLOADER UNE IMAGE DE FOND -->
|
111 |
+
<div style="float:left;width:68%;margin-right:10px;">
|
112 |
+
<small><?php _e('Enter a URL or upload an image.', 'wp-maintenance'); ?></small><br />
|
113 |
+
<input id="upload_b_image" class="wpm-form-field" size="65%" name="wp_maintenance_settings[b_image]" value="<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' ) { echo $paramMMode['b_image']; } ?>" type="text" /> <a href="#" id="upload_b_image_button" class="button button-primary" style="padding-top: 0.2em;padding-bottom: 2.2em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a>
|
114 |
+
<h4><?php _e('Background picture options', 'wp-maintenance'); ?></h4>
|
115 |
+
<select name="wp_maintenance_settings[b_repeat_image]" class="wpm-form-field" >
|
116 |
+
<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>
|
117 |
+
<option value="no-repeat"<?php if( isset($paramMMode['b_repeat_image']) && $paramMMode['b_repeat_image']=='no-repeat') { echo ' selected'; } ?>>no-repeat</option>
|
118 |
+
<option value="repeat-x"<?php if( isset($paramMMode['b_repeat_image']) && $paramMMode['b_repeat_image']=='repeat-x') { echo ' selected'; } ?>>repeat-x</option>
|
119 |
+
<option value="repeat-y"<?php if( isset($paramMMode['b_repeat_image']) && $paramMMode['b_repeat_image']=='repeat-y') { echo ' selected'; } ?>>repeat-y</option>
|
120 |
+
</select> <input type= "checkbox" name="wp_maintenance_settings[b_fixed_image]" value="1" <?php if( isset($paramMMode['b_fixed_image']) && $paramMMode['b_fixed_image']==1) { echo ' checked'; } ?>> <?php _e('Fixed', 'wp-maintenance'); ?>
|
121 |
+
<br /><br /><strong><?php _e('Background Opacity', 'wp-maintenance'); ?></strong><input id="fontSize" name="wp_maintenance_settings[b_opacity_image]" value="<?php if( isset($paramMMode['b_opacity_image']) ) { echo $paramMMode['b_opacity_image']; } else { echo '0.2'; } ?>" readonly="readonly" style="background-color: #fff;border: none;"><br /><div id="slider" style="border:1px solid <?php echo $colors[2]; ?>!important;margin-top:5px;"></div>
|
122 |
+
</div>
|
123 |
+
|
124 |
+
<div style="float:left;width:30%;text-align:center;">
|
125 |
+
<?php if( isset($paramMMode['b_image']) && $paramMMode['b_image']!='' && (!$paramMMode['b_pattern'] or $paramMMode['b_pattern']==0) ) { ?>
|
126 |
+
<?php _e('You use this background picture:', 'wp-maintenance'); ?><br />
|
127 |
+
<img src="<?php echo $paramMMode['b_image']; ?>" width="200" /><br />
|
128 |
+
<?php } ?>
|
129 |
+
</div>
|
130 |
+
<div class="clear"></div>
|
131 |
+
|
132 |
+
<!-- CHOIX PATTERN -->
|
133 |
+
<div style="float:left;width:68%;margin-right:10px;">
|
134 |
+
<h4><?php _e('Or choose a pattern:', 'wp-maintenance'); ?></h4>
|
135 |
+
<ul id="pattern">
|
136 |
<li>
|
137 |
+
<div style="width:50px;height:50px;border:1px solid #333;background-color:#ffffff;font-size:0.8em;"><?php _e('NO PATTERN', 'wp-maintenance'); ?></div>
|
138 |
+
<input type="radio" value="0" <?php if( empty($paramMMode['b_pattern']) or $paramMMode['b_pattern']==0) { echo 'checked'; } ?> name="wp_maintenance_settings[b_pattern]" />
|
139 |
</li>
|
140 |
+
<?php for ($p = 1; $p <= 12; $p++) { ?>
|
141 |
+
<li>
|
142 |
+
<div style="width:50px;height:50px;border:1px solid #333;background:url('<?php echo WP_PLUGIN_URL ?>/wp-maintenance/images/pattern<?php echo $p ?>.png');"></div>
|
143 |
+
<input type="radio" value="<?php echo $p; ?>" <?php if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']==$p) { echo 'checked'; } ?> name="wp_maintenance_settings[b_pattern]" />
|
144 |
+
</li>
|
145 |
+
<?php } ?>
|
146 |
+
</ul>
|
147 |
+
</div>
|
148 |
+
<div style="float:left;width:30%;text-align:center;">
|
149 |
+
<?php if( isset($paramMMode['b_pattern']) && $paramMMode['b_pattern']>0) { ?>
|
150 |
+
<?php _e('You use this pattern:', 'wp-maintenance'); ?><br />
|
151 |
+
<div style="background: url('<?php echo WP_PLUGIN_URL ?>/wp-maintenance/images/pattern<?php echo $paramMMode['b_pattern']; ?>.png');width:200px;height:200px;border:1px solid #ddd;margin-left:auto;margin-right:auto;"></div>
|
152 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
</div>
|
154 |
+
<div class="clear"></div>
|
155 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
<div style="margin-top:15px;margin-bottom:15px;"><hr></div>
|
158 |
+
|
159 |
+
<!-- BUTTON FOR ENABLE SLIDER -->
|
160 |
+
<div id="option-slider" >
|
161 |
+
<div style="float:left; width:70%;"><h3><?php _e('Enable Slider', 'wp-maintenance'); ?></h3></div>
|
162 |
+
<div style="float:left; width:30%;text-align:right;">
|
163 |
+
<div class="switch-field">
|
164 |
+
<input type="radio" onclick="AfficherTexte('option-diaporama');" id="switch_diaporama" name="wp_maintenance_settings[enable_slider]" value="1" <?php if( isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==1 ) { echo ' checked'; } ?>/>
|
165 |
+
<label for="switch_diaporama"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
166 |
+
<input type="radio" onclick="CacherTexte('option-diaporama');" id="switch_diaporama_no" name="wp_maintenance_settings[enable_slider]" value="0" <?php if( empty($paramMMode['enable_slider']) || (isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==0) ) { echo ' checked'; } ?> />
|
167 |
+
<label for="switch_diaporama_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
168 |
+
</div>
|
169 |
</div>
|
170 |
<div class="clear"></div>
|
171 |
</div>
|
172 |
+
|
173 |
+
<div id="option-diaporama" style="<?php if( empty($paramMMode['enable_slider']) || (isset($paramMMode['enable_slider']) && $paramMMode['enable_slider']==0) ) { echo ' display:none;'; } else { echo 'display:block'; } ?>">
|
174 |
+
<h4><?php _e('Slider image options', 'wp-maintenance'); ?></h4>
|
175 |
+
<?php
|
176 |
|
177 |
+
if( $paramSlider!==null ) {
|
178 |
|
179 |
+
if( $paramSlider['slider_image'] ) {
|
180 |
+
$lastKeySlide = key($paramSlider['slider_image']);
|
181 |
+
$countSlide = ( $lastKeySlide + 1 );
|
182 |
+
} else {
|
183 |
+
$countSlide = 1;
|
184 |
+
}
|
185 |
+
?>
|
186 |
+
<div style="margin-bottom:15px;width:100%;">
|
187 |
+
<div style="width:30%;float:left;">
|
188 |
+
<?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 />
|
189 |
+
<?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; } ?>" />%
|
190 |
+
</div>
|
191 |
+
<div style="width:30%;float:left;padding-left:5px;">
|
192 |
+
|
193 |
+
<div id="encart-option-sliderauto">
|
194 |
+
<?php _e('Display Auto Slider:', 'wp-maintenance'); ?><br />
|
195 |
+
<div class="switch-field-mini">
|
196 |
+
<input class="switch_left" type="radio" id="switch_slider_auto" name="wp_maintenance_slider_options[slider_auto]" value="true" <?php if( isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='true') { echo ' checked'; } ?>/>
|
197 |
+
<label for="switch_slider_auto"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
198 |
+
<input class="switch_right" type="radio" id="switch_slider_auto_no" name="wp_maintenance_slider_options[slider_auto]" value="false" <?php if( empty($paramSliderOptions['slider_auto']) || isset($paramSliderOptions['slider_auto']) && $paramSliderOptions['slider_auto']=='false') { echo ' checked'; } ?> />
|
199 |
+
<label for="switch_slider_auto_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
200 |
+
</div>
|
201 |
+
<?php _e('Display button navigation:', 'wp-maintenance'); ?><br />
|
202 |
+
<div class="switch-field-mini">
|
203 |
+
<input class="switch_left" type="radio" id="switch_slidernav" name="wp_maintenance_slider_options[slider_nav]" value="true" <?php if( isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='true') { echo ' checked'; } ?>/>
|
204 |
+
<label for="switch_slidernav"><?php _e('Yes', 'wp-maintenance'); ?></label>
|
205 |
+
<input class="switch_right" type="radio" id="switch_slidernav_no" name="wp_maintenance_slider_options[slider_nav]" value="false" <?php if( empty($paramSliderOptions['slider_nav']) || isset($paramSliderOptions['slider_nav']) && $paramSliderOptions['slider_nav']=='false') { echo ' checked'; } ?> />
|
206 |
+
<label for="switch_slidernav_no"><?php _e('No', 'wp-maintenance'); ?></label>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
|
210 |
+
</div>
|
211 |
+
<div style="width:30%;float:left;padding-left:5px;">
|
212 |
+
<?php _e('Position:', 'wp-maintenance'); ?>
|
213 |
+
<select name="wp_maintenance_slider_options[slider_position]" class="wpm-form-field" >
|
214 |
+
<option value="abovelogo" <?php if( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='abovelogo' ) { echo 'selected'; } ?>><?php _e('Above logo', 'wp-maintenance'); ?></option>
|
215 |
+
<option value="belowlogo" <?php if( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='belowlogo' ) { echo 'selected'; } ?>><?php _e('Below logo', 'wp-maintenance'); ?></option>
|
216 |
+
<option value="belowtext" <?php if( ( isset($paramSliderOptions['slider_position']) && $paramSliderOptions['slider_position']=='belowtext' ) || empty($paramSliderOptions['slider_position']) ) { echo 'selected'; } ?>><?php _e('Below title & text', 'wp-maintenance'); ?></option>
|
217 |
+
</select>
|
218 |
+
</div>
|
219 |
+
<div class="clear"></div>
|
220 |
+
</div>
|
221 |
|
222 |
+
<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.2em;padding-bottom: 2.2em;margin-top: 1px;" OnClick="this.blur();"><span> <?php _e('Media Image Library', 'wp-maintenance'); ?> </span></a><br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
|
224 |
+
<div style="width:100%">
|
225 |
+
<?php
|
226 |
+
if( !empty($paramSlider['slider_image']) ) {
|
227 |
+
foreach($paramSlider['slider_image'] as $numSlide=>$slide) {
|
228 |
|
229 |
+
if( $paramSlider['slider_image'][$numSlide]['image'] != '' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
+
$slideImg = '';
|
232 |
+
if( isset($paramSlider['slider_image'][$numSlide]['image']) ) {
|
233 |
+
$slideImg = $paramSlider['slider_image'][$numSlide]['image'];
|
234 |
+
}
|
235 |
+
$slideText = '';
|
236 |
+
if( isset($paramSlider['slider_image'][$numSlide]['text']) ) {
|
237 |
+
$slideText = stripslashes($paramSlider['slider_image'][$numSlide]['text']);
|
238 |
+
}
|
239 |
+
$slideLink = '';
|
240 |
+
if( isset($paramSlider['slider_image'][$numSlide]['link']) ) {
|
241 |
+
$slideLink = $paramSlider['slider_image'][$numSlide]['link'];
|
242 |
+
}
|
243 |
+
echo '<div style="float:left;width:45%;border: 1px solid #ececec;padding:0.8em;margin-right:1%;margin-bottom:1%">';
|
244 |
+
|
245 |
+
echo '<div style="float:left;margin-right:0.8em;">';
|
246 |
+
echo '<img src="'.$slideImg.'" width="360" />';
|
247 |
+
echo '</div>';
|
248 |
|
249 |
+
echo '<div style="float:left;">';
|
250 |
+
echo '<input class="wpm-form-field" type="hidden" name="wp_maintenance_slider[slider_image]['.$numSlide.'][image]" value="'.$slideImg.'" />';
|
251 |
+
echo __('Text:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][text]" class="wpm-form-field" size="50%" value="'.$slideText.'" /><br />';
|
252 |
+
echo __('Link:', 'wp-maintenance').'<br /> <input type="text" name="wp_maintenance_slider[slider_image]['.$numSlide.'][link]" class="wpm-form-field" size="50%" value="'.$slideLink.'" />';
|
253 |
+
echo '</div>';
|
254 |
+
echo '<div class="clear"></div>';
|
255 |
+
echo '<div style="text-align:right;"><input type="checkbox" name="wpm_maintenance_detete['.$numSlide.']" value="true" /><small>'.__('Delete this slide', 'wp-maintenance').'</small></div>';
|
256 |
+
echo '</div>';
|
257 |
+
|
258 |
+
}
|
259 |
+
|
260 |
+
}
|
261 |
}
|
262 |
}
|
263 |
+
?>
|
264 |
+
</div>
|
265 |
</div>
|
266 |
+
<div class="clear"></div>
|
267 |
+
|
268 |
+
<?php submit_button(); ?>
|
|
|
269 |
|
270 |
+
</div>
|
271 |
+
<?php echo wpm_sidebar(); ?>
|
272 |
+
</div><!-- END -->
|
|
|
273 |
</form>
|
274 |
<?php echo wpm_footer(); ?>
|
275 |
+
</div><!-- END WRAP -->
|
276 |
+
<script>
|
277 |
+
jQuery(document).ready(function() {
|
278 |
+
jQuery( "#slider" ).slider( {
|
279 |
+
disabled: false,
|
280 |
+
min: 0,
|
281 |
+
max: 1,
|
282 |
+
orientation: "horizontal",
|
283 |
+
range: false,
|
284 |
+
step: 0.1,
|
285 |
+
value: <?php if( isset($paramMMode['b_opacity_image']) ) { echo $paramMMode['b_opacity_image']; } else { echo '0.2'; } ?>,
|
286 |
+
animate:"slow",
|
287 |
+
slide: function( event, ui ) {
|
288 |
+
$( "#fontSize" ).val( ui.value );
|
289 |
+
}
|
290 |
+
} );
|
291 |
+
});
|
292 |
+
</script>
|
wp-maintenance.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
|
6 |
* Author: Florent Maillefaud
|
7 |
* Author URI: https://wpmaintenance.info
|
8 |
-
* Version:
|
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', '
|
40 |
|
41 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
42 |
require WPM_DIR . 'classes/slider.php';
|
@@ -58,6 +58,4 @@ function _wpm_load_translation() {
|
|
58 |
|
59 |
register_activation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_install' ) );
|
60 |
register_deactivation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );
|
61 |
-
register_uninstall_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );
|
62 |
-
|
63 |
-
//add_action( 'plugins_loaded', array( 'WP_maintenance', 'init' ) );
|
5 |
* Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
|
6 |
* Author: Florent Maillefaud
|
7 |
* Author URI: https://wpmaintenance.info
|
8 |
+
* Version: 5.0.0
|
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.0' ); }
|
40 |
|
41 |
require WPM_DIR . 'classes/wp-maintenance.php';
|
42 |
require WPM_DIR . 'classes/slider.php';
|
58 |
|
59 |
register_activation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_install' ) );
|
60 |
register_deactivation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );
|
61 |
+
register_uninstall_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );
|
|
|
|