WP Maintenance - Version 2.7.8

Version Description

This version is stable

=

Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 2.7.8
Comparing to
See all releases

Code changes from version 2.7.7 to 2.7.8

Files changed (4) hide show
  1. readme.txt +0 -0
  2. wp-maintenance-admin.php +67 -14
  3. wp-maintenance.php +28 -8
  4. wpm_fonctions.php +68 -9
readme.txt CHANGED
Binary file
wp-maintenance-admin.php CHANGED
@@ -24,7 +24,7 @@ if( isset($_POST['action']) && $_POST['action'] == 'update' && $_POST["wp_mainte
24
  update_option('wp_maintenance_slider', $_POST["wp_maintenance_slider"]);
25
  update_option('wp_maintenance_settings', $_POST["wp_maintenance_settings"]);
26
  update_option('wp_maintenance_slider_options', $_POST["wp_maintenance_slider_options"]);
27
- update_option('wp_maintenance_style', $_POST["wp_maintenance_style"]);
28
  update_option('wp_maintenance_limit', $_POST["wp_maintenance_limit"]);
29
  update_option('wp_maintenance_ipaddresses', $_POST["wp_maintenance_ipaddresses"]);
30
  update_option('wp_maintenance_active', $_POST["wp_maintenance_active"]);
@@ -85,15 +85,28 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
85
  </style>
86
  <style type="text/css">.postbox h3 { cursor:pointer; }</style>
87
  <!--<script src="<?php echo WP_PLUGIN_URL; ?>/wp-maintenance/js/jquery-ui-timepicker-addon.js"></script>-->
88
- <script>
89
  jQuery(document).ready(function() {
90
  jQuery('#font_title').fontselect();
91
  jQuery('#font_text').fontselect();
92
  jQuery('#font_text_bottom').fontselect();
93
  jQuery('#font_text_cpt').fontselect();
94
- jQuery('newletter_font_text').fontselect();
95
  });
96
-
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  </script>
98
  <div class="wrap">
99
 
@@ -218,7 +231,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
218
  <!-- Encart Newletter -->
219
  <li>
220
  <h3><?php _e('Enable Newletter:', 'wp-maintenance'); ?></h3>
221
- <input type= "checkbox" name="wp_maintenance_settings[newletter]" value="1" <?php if($paramMMode['newletter']==1) { echo ' checked'; } ?>><?php _e('Yes', 'wp-maintenance'); ?><br /><br />
222
  <?php _e('Enter title for the newletter block:', 'wp-maintenance'); ?><br />
223
  <input type="text" name="wp_maintenance_settings[title_newletter]" size="60" value="<?php echo stripslashes(trim($paramMMode['title_newletter'])); ?>" /><br />
224
  <?php _e('Enter your newletter shortcode here:', 'wp-maintenance'); ?><br />
@@ -356,7 +369,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
356
  <!-- FIN POLICE DU COMPTEUR -->
357
  </li>
358
  <?php
359
- if(strpos($paramMMode['code_newletter'], 'wysija_form')!=false && is_plugin_active( 'wysija-newsletters/index.php' ) ) {
360
  ?>
361
  <li>
362
  <h3><?php _e('Choice form color:', 'wp-maintenance'); ?></h3>
@@ -364,7 +377,7 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
364
  <!-- COULEUR WYJIYA -->
365
  <table cellspacing="10">
366
  <tr>
367
- <td valign="top" align="left"><input name="wp_maintenance_settings[newletter_font_text]" id="font_text_bottom" type="text" value="<?php echo $paramMMode['newletter_font_text']; ?>" /></td>
368
  <td>
369
  <?php _e('Size:', 'wp-maintenance'); ?>
370
  <input type="text" size="3" name="wp_maintenance_settings[newletter_size]" value="<?php if( isset($paramMMode['newletter_size']) && $paramMMode['newletter_size']) { echo stripslashes($paramMMode['newletter_size']); } else { echo 14; } ?>" />px
@@ -380,16 +393,23 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
380
  </tr>
381
  </table>
382
  <br />
383
- <em><?php _e('Field text color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_field_text']; ?>" name="wp_maintenance_settings[color_field_text]" class="wpm-color-field" data-default-color="#ffffff" /><br />
384
- <em><?php _e('Field border color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_field_border']; ?>" name="wp_maintenance_settings[color_field_border]" class="wpm-color-field" data-default-color="#ffffff" /><br />
385
- <em><?php _e('Field background color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_field_background']; ?>" name="wp_maintenance_settings[color_field_background]" class="wpm-color-field" data-default-color="#ffffff" />
 
 
 
386
  <br />
387
- <em><?php _e('Button text color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_text_button']; ?>" name="wp_maintenance_settings[color_text_button]" class="wpm-color-field" data-default-color="#ffffff" />
 
388
  <br />
389
- <em><?php _e('Button color:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_button']; ?>" name="wp_maintenance_settings[color_button]" class="wpm-color-field" data-default-color="#ffffff" />
 
390
  <br />
391
- <em><?php _e('Button color hover:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_button_hover']; ?>" name="wp_maintenance_settings[color_button_hover]" class="wpm-color-field" data-default-color="#ffffff" /><br />
392
- <em><?php _e('Button color onclick:', 'wp-maintenance'); ?></em> <br /><input type="text" value="<?php echo $paramMMode['color_button_onclick']; ?>" name="wp_maintenance_settings[color_button_onclick]" class="wpm-color-field" data-default-color="#ffffff" />
 
 
393
 
394
  </li>
395
  <?php } ?>
@@ -696,7 +716,40 @@ if( isset($_POST['wpm_initcss']) && $_POST['wpm_initcss']==1) {
696
  </tr>
697
  </tbody>
698
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
699
  </div>
 
700
  <div class="clear"></div>
701
  <br />
702
  </li>
24
  update_option('wp_maintenance_slider', $_POST["wp_maintenance_slider"]);
25
  update_option('wp_maintenance_settings', $_POST["wp_maintenance_settings"]);
26
  update_option('wp_maintenance_slider_options', $_POST["wp_maintenance_slider_options"]);
27
+ update_option('wp_maintenance_style', stripslashes($_POST["wp_maintenance_style"]));
28
  update_option('wp_maintenance_limit', $_POST["wp_maintenance_limit"]);
29
  update_option('wp_maintenance_ipaddresses', $_POST["wp_maintenance_ipaddresses"]);
30
  update_option('wp_maintenance_active', $_POST["wp_maintenance_active"]);
85
  </style>
86
  <style type="text/css">.postbox h3 { cursor:pointer; }</style>
87
  <!--<script src="<?php echo WP_PLUGIN_URL; ?>/wp-maintenance/js/jquery-ui-timepicker-addon.js"></script>-->
88
+ <script type="text/javascript">
89
  jQuery(document).ready(function() {
90
  jQuery('#font_title').fontselect();
91
  jQuery('#font_text').fontselect();
92
  jQuery('#font_text_bottom').fontselect();
93
  jQuery('#font_text_cpt').fontselect();
94
+ jQuery('#font_text_newletter').fontselect();
95
  });
96
+
97
+ function AfficherCacher(texte) {
98
+ var test = document.getElementById(texte).style.display;
99
+ if (test == "block")
100
+ {
101
+ document.getElementById(texte).style.display = "none";
102
+ }
103
+ else
104
+ {
105
+ document.getElementById(texte).style.display = "block";
106
+ }
107
+ }
108
+
109
+
110
  </script>
111
  <div class="wrap">
112
 
231
  <!-- Encart Newletter -->
232
  <li>
233
  <h3><?php _e('Enable Newletter:', 'wp-maintenance'); ?></h3>
234
+ <input type= "checkbox" name="wp_maintenance_settings[newletter]" value="1" <?php if( isset($paramMMode['newletter']) && $paramMMode['newletter']==1) { echo ' checked'; } ?>><?php _e('Yes', 'wp-maintenance'); ?><br /><br />
235
  <?php _e('Enter title for the newletter block:', 'wp-maintenance'); ?><br />
236
  <input type="text" name="wp_maintenance_settings[title_newletter]" size="60" value="<?php echo stripslashes(trim($paramMMode['title_newletter'])); ?>" /><br />
237
  <?php _e('Enter your newletter shortcode here:', 'wp-maintenance'); ?><br />
369
  <!-- FIN POLICE DU COMPTEUR -->
370
  </li>
371
  <?php
372
+ if( (strpos($paramMMode['code_newletter'], 'wysija_form')!=false || strpos($paramMMode['code_newletter'], 'mc4wp_form')!=false ) && (is_plugin_active( 'wysija-newsletters/index.php' ) || is_plugin_active( 'mailchimp-for-wp/mailchimp-for-wp.php' ) ) ) {
373
  ?>
374
  <li>
375
  <h3><?php _e('Choice form color:', 'wp-maintenance'); ?></h3>
377
  <!-- COULEUR WYJIYA -->
378
  <table cellspacing="10">
379
  <tr>
380
+ <td valign="top" align="left"><input name="wp_maintenance_settings[newletter_font_text]" id="font_text_newletter" type="text" value="<?php if( isset($paramMMode['newletter_font_text']) ) { echo $paramMMode['newletter_font_text']; } ?>" /></td>
381
  <td>
382
  <?php _e('Size:', 'wp-maintenance'); ?>
383
  <input type="text" size="3" name="wp_maintenance_settings[newletter_size]" value="<?php if( isset($paramMMode['newletter_size']) && $paramMMode['newletter_size']) { echo stripslashes($paramMMode['newletter_size']); } else { echo 14; } ?>" />px
393
  </tr>
394
  </table>
395
  <br />
396
+ <em><?php _e('Field text color:', 'wp-maintenance'); ?></em> <br />
397
+ <input type="text" value="<?php if( isset($paramMMode['color_field_text']) ) { echo $paramMMode['color_field_text']; } else { echo '#333333'; } ?>" name="wp_maintenance_settings[color_field_text]" class="wpm-color-field" data-default-color="#333333" /><br />
398
+ <em><?php _e('Field border color:', 'wp-maintenance'); ?></em> <br />
399
+ <input type="text" value="<?php if( isset($paramMMode['color_field_border']) ) { echo $paramMMode['color_field_border']; } else { echo '#333333'; } ?>" name="wp_maintenance_settings[color_field_border]" class="wpm-color-field" data-default-color="#333333" /><br />
400
+ <em><?php _e('Field background color:', 'wp-maintenance'); ?></em> <br />
401
+ <input type="text" value="<?php if( isset($paramMMode['color_field_background']) ) { echo $paramMMode['color_field_background']; } else { echo '#cccccc'; } ?>" name="wp_maintenance_settings[color_field_background]" class="wpm-color-field" data-default-color="#cccccc" />
402
  <br />
403
+ <em><?php _e('Button text color:', 'wp-maintenance'); ?></em> <br />
404
+ <input type="text" value="<?php if( isset($paramMMode['color_text_button']) ) { echo $paramMMode['color_text_button'];} else { echo '#ffffff'; } ?>" name="wp_maintenance_settings[color_text_button]" class="wpm-color-field" data-default-color="#ffffff" />
405
  <br />
406
+ <em><?php _e('Button color:', 'wp-maintenance'); ?></em> <br />
407
+ <input type="text" value="<?php if( isset($paramMMode['color_button']) ) { echo $paramMMode['color_button']; } else { echo '#1e73be'; } ?>" name="wp_maintenance_settings[color_button]" class="wpm-color-field" data-default-color="#1e73be" />
408
  <br />
409
+ <em><?php _e('Button color hover:', 'wp-maintenance'); ?></em> <br />
410
+ <input type="text" value="<?php if( isset($paramMMode['color_button_hover']) ) { echo $paramMMode['color_button_hover']; } else { echo '#ffffff'; } ?>" name="wp_maintenance_settings[color_button_hover]" class="wpm-color-field" data-default-color="#ffffff" /><br />
411
+ <em><?php _e('Button color onclick:', 'wp-maintenance'); ?></em> <br />
412
+ <input type="text" value="<?php if( isset($paramMMode['color_button_onclick']) ) { echo $paramMMode['color_button_onclick']; } else { echo '#ffffff'; } ?>" name="wp_maintenance_settings[color_button_onclick]" class="wpm-color-field" data-default-color="#ffffff" />
413
 
414
  </li>
415
  <?php } ?>
716
  </tr>
717
  </tbody>
718
  </table>
719
+ <br />
720
+ <a href="" onclick="AfficherCacher('divcss'); return false" ><?php _e('Need CSS code for MailPoet plugin?', 'wp-maintenance'); ?></a>
721
+ <div id="divcss" style="display:none;"><i><?php _e('Click for select all', 'wp-maintenance'); ?></i>
722
+ <textarea onclick="select()" rows="15" cols="50%">
723
+ .abs-req { display: none; }
724
+ .widget_wysija_cont .wysija-submit { }
725
+ .widget_wysija input { }
726
+ .wysija-submit-field { }
727
+ .wysija-submit-field:hover { }
728
+ .widget_wysija input:focus { }
729
+ .wysija-submit-field:active { }
730
+ .widget_wysija .wysija-submit, .widget_wysija .wysija-paragraph { }
731
+ .wysija-submit-field { }
732
+ </textarea>
733
+ </div>
734
+ <br />
735
+ <a href="" onclick="AfficherCacher('divcss2'); return false" ><?php _e('Need CSS code for MailChimp plugin?', 'wp-maintenance'); ?></a>
736
+ <div id="divcss2" style="display:none;"><i><?php _e('Click for select all', 'wp-maintenance'); ?></i>
737
+ <textarea onclick="select()" rows="15" cols="50%">
738
+ .mc4wp-form { } /* the form element */
739
+ .mc4wp-form p { } /* form paragraphs */
740
+ .mc4wp-form label { } /* labels */
741
+ .mc4wp-form input { } /* input fields */
742
+ .mc4wp-form input[type="checkbox"] { } /* checkboxes */
743
+ .mc4wp-form input[type="submit"] { } /* submit button */
744
+ .mc4wp-form input[type="submit"]:hover { }
745
+ .mc4wp-form input[type="submit"]:active { }
746
+ .mc4wp-alert { } /* success & error messages */
747
+ .mc4wp-success { } /* success message */
748
+ .mc4wp-error { } /* error messages */
749
+ </textarea>
750
+ </div>
751
  </div>
752
+
753
  <div class="clear"></div>
754
  <br />
755
  </li>
wp-maintenance.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
  * Author: Florent Maillefaud
8
  * Author URI: http://wpmaintenance.info
9
- * Version: 2.7.7
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
@@ -93,7 +93,7 @@ function wpm_make_multilang() {
93
  }
94
 
95
  /* Ajoute la version dans les options */
96
- define('WPM_VERSION', '2.7.7');
97
  $option['wp_maintenance_version'] = WPM_VERSION;
98
  if( !get_option('wp_maintenance_version') ) {
99
  add_option('wp_maintenance_version', $option);
@@ -174,7 +174,12 @@ function wpm_add_admin() {
174
  'font_cpt' => 'Pacifico',
175
  'color_cpt' => '#333333',
176
  'enable_demo' => 0,
177
- 'color_text_button' => '#FFFFFF',
 
 
 
 
 
178
  'color_button' => '#1e73be',
179
  'image_width' => 250,
180
  'image_height' => 100,
@@ -461,8 +466,9 @@ function wpm_get_template() {
461
  }
462
  }
463
  /* On ajoute les styles */
464
- %ADDSTYLE%
465
  %ADDSTYLEWYSIJA%
 
 
466
  </style>
467
 
468
  <!--[if lt IE 7]>
@@ -689,11 +695,17 @@ function wpm_maintenance_mode() {
689
  } else {
690
  $Texte = '';
691
  }
692
- $wysijaStyle = '/* no WYSIJA Style */';
693
  if( isset($paramMMode['newletter']) && $paramMMode['newletter']==1 && isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' ) {
694
- $nameNl = strpos($paramMMode['code_newletter'], 'wysija_form');
695
- if($nameNl==1) {
696
- //$wysijaStyle = 'STYLEOK';
 
 
 
 
 
 
697
  $wysijaRemplacements = array (
698
  "#_COLORTXT" => $paramMMode['color_field_text'],
699
  "#_COLORBG" => $paramMMode['color_field_background'],
@@ -703,7 +715,15 @@ function wpm_maintenance_mode() {
703
  "#_COLOR_BTN_HOVER" => $paramMMode['color_button_hover'],
704
  "#_COLOR_BTN_CLICK" => $paramMMode['color_button_onclick']
705
  );
 
 
 
706
  $wysijaStyle = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_wysija_style() );
 
 
 
 
 
707
  }
708
  $newLetter = '<div class="wpm_newletter">'.stripslashes($paramMMode['title_newletter']).''.do_shortcode(stripslashes($paramMMode['code_newletter'])).'</div>';
709
  }
6
  * Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance ou du lancement de votre site. Personnalisez cette page de maintenance avec une image, un compte à rebours, etc... / The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
7
  * Author: Florent Maillefaud
8
  * Author URI: http://wpmaintenance.info
9
+ * Version: 2.7.8
10
  * Text Domain: wp-maintenance
11
  * Domain Path: /languages/
12
  */
93
  }
94
 
95
  /* Ajoute la version dans les options */
96
+ define('WPM_VERSION', '2.7.8');
97
  $option['wp_maintenance_version'] = WPM_VERSION;
98
  if( !get_option('wp_maintenance_version') ) {
99
  add_option('wp_maintenance_version', $option);
174
  'font_cpt' => 'Pacifico',
175
  'color_cpt' => '#333333',
176
  'enable_demo' => 0,
177
+ 'color_field_text' => '#333333',
178
+ 'color_text_button' => '#ffffff',
179
+ 'color_field_background' => '#F1F1F1',
180
+ 'color_field_border' => '#333333',
181
+ 'color_button_onclick' => '#333333',
182
+ 'color_button_hover' => '#cccccc',
183
  'color_button' => '#1e73be',
184
  'image_width' => 250,
185
  'image_height' => 100,
466
  }
467
  }
468
  /* On ajoute les styles */
 
469
  %ADDSTYLEWYSIJA%
470
+ %ADDSTYLE%
471
+
472
  </style>
473
 
474
  <!--[if lt IE 7]>
695
  } else {
696
  $Texte = '';
697
  }
698
+ $wysijaStyle = '/* no NEWLETTER Style */';
699
  if( isset($paramMMode['newletter']) && $paramMMode['newletter']==1 && isset($paramMMode['code_newletter']) && $paramMMode['code_newletter']!='' ) {
700
+
701
+ if( empty($paramMMode['color_field_text']) ) { $paramMMode['color_field_text'] = '#333333'; }
702
+ if( empty($paramMMode['color_text_button']) ) { $paramMMode['color_text_button']= '#ffffff'; }
703
+ if( empty($paramMMode['color_field_background']) ) { $paramMMode['color_field_background']= '#F1F1F1'; }
704
+ if( empty($paramMMode['color_field_border']) ) { $paramMMode['color_field_border']= '#333333'; }
705
+ if( empty($paramMMode['color_button_onclick']) ) { $paramMMode['color_button_onclick']= '#333333'; }
706
+ if( empty($paramMMode['color_button_hover']) ) { $paramMMode['color_button_hover']= '#cccccc'; }
707
+ if( empty($paramMMode['color_button']) ) { $paramMMode['color_button']= '#1e73be'; }
708
+
709
  $wysijaRemplacements = array (
710
  "#_COLORTXT" => $paramMMode['color_field_text'],
711
  "#_COLORBG" => $paramMMode['color_field_background'],
715
  "#_COLOR_BTN_HOVER" => $paramMMode['color_button_hover'],
716
  "#_COLOR_BTN_CLICK" => $paramMMode['color_button_onclick']
717
  );
718
+
719
+ if( strpos($paramMMode['code_newletter'], 'wysija_form') == 1 ) {
720
+
721
  $wysijaStyle = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_wysija_style() );
722
+
723
+ } else if( strpos($paramMMode['code_newletter'], 'mc4wp_form') == 1 ) {
724
+
725
+ $wysijaStyle = str_replace(array_keys($wysijaRemplacements), array_values($wysijaRemplacements), wpm_mc4wp_style() );
726
+
727
  }
728
  $newLetter = '<div class="wpm_newletter">'.stripslashes($paramMMode['title_newletter']).''.do_shortcode(stripslashes($paramMMode['code_newletter'])).'</div>';
729
  }
wpm_fonctions.php CHANGED
@@ -199,7 +199,7 @@ function wpm_wysija_style() {
199
  margin-right: auto;
200
  background-color: #_COLORBUTTON;
201
  border: 1px solid #_COLORBUTTON;
202
- cursor:hand;
203
  color:#_COLORTEXTBUTTON;
204
  }
205
  .widget_wysija input {
@@ -226,14 +226,14 @@ function wpm_wysija_style() {
226
  -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
227
  -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
228
  box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
229
- text-shadow: #333333 0 1px 0;
230
  color: #_COLORTXT;
231
  font-family: helvetica, serif;
232
  padding: 8.5px 18px;
233
  font-size: 14px;
234
  text-decoration: none;
235
  vertical-align: baseline;
236
- cursor:hand;
237
  margin-top:0 !important;
238
  }
239
  .wysija-submit-field:hover {
@@ -241,21 +241,21 @@ function wpm_wysija_style() {
241
  border: 1px solid #_COLORBORDER;
242
  background: #_COLOR_BTN_HOVER;
243
  /*color: #_COLORTXT;*/
244
- cursor:hand;
245
  }
246
  .widget_wysija input:focus {
247
- text-shadow: #_COLORBORDER 0 1px 0;
248
- border: 1px solid #_COLOR_BTN_CLICK;
249
- background: #_COLOR_BTN_CLICK;
250
  color: #_COLORTXT;
251
- cursor:hand;
252
  }
253
  .wysija-submit-field:active {
254
  text-shadow: #_COLORBORDER 0 1px 0;
255
  border: 1px solid #_COLORBORDER;
256
  background: #_COLOR_BTN_CLICK;
257
  color: #_COLORTXT;
258
- cursor:hand;
259
  }
260
  .widget_wysija .wysija-submit, .widget_wysija .wysija-paragraph { display: inline; }
261
  .wysija-submit-field { margin-top:0 !important; }
@@ -263,4 +263,63 @@ function wpm_wysija_style() {
263
  ';
264
  }
265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
 
199
  margin-right: auto;
200
  background-color: #_COLORBUTTON;
201
  border: 1px solid #_COLORBUTTON;
202
+ cursor:pointer;
203
  color:#_COLORTEXTBUTTON;
204
  }
205
  .widget_wysija input {
226
  -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
227
  -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
228
  box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
229
+ text-shadow: none;
230
  color: #_COLORTXT;
231
  font-family: helvetica, serif;
232
  padding: 8.5px 18px;
233
  font-size: 14px;
234
  text-decoration: none;
235
  vertical-align: baseline;
236
+ cursor:pointer;
237
  margin-top:0 !important;
238
  }
239
  .wysija-submit-field:hover {
241
  border: 1px solid #_COLORBORDER;
242
  background: #_COLOR_BTN_HOVER;
243
  /*color: #_COLORTXT;*/
244
+ cursor:pointer;
245
  }
246
  .widget_wysija input:focus {
247
+ text-shadow: none;
248
+ border: 1px solid #_COLORBORDER;
249
+ background: #_COLORBG;
250
  color: #_COLORTXT;
251
+ cursor:pointer;
252
  }
253
  .wysija-submit-field:active {
254
  text-shadow: #_COLORBORDER 0 1px 0;
255
  border: 1px solid #_COLORBORDER;
256
  background: #_COLOR_BTN_CLICK;
257
  color: #_COLORTXT;
258
+ cursor:pointer;
259
  }
260
  .widget_wysija .wysija-submit, .widget_wysija .wysija-paragraph { display: inline; }
261
  .wysija-submit-field { margin-top:0 !important; }
263
  ';
264
  }
265
 
266
+ /* Feuille de style pour MailChimp for WP */
267
+ function wpm_mc4wp_style() {
268
+ return '
269
+ /* FORM */
270
+ .mc4wp-form { } /* the form element */
271
+ .mc4wp-form p { display: inline;padding-left:0;padding-right:0; } /* form paragraphs */
272
+ .mc4wp-form label { } /* labels */
273
+
274
+ /* input fields */
275
+ .mc4wp-form input {
276
+ border: 1px solid #_COLORBORDER;
277
+ background: #_COLORBG;
278
+ -webkit-border-radius: 4px;
279
+ -moz-border-radius: 4px;
280
+ border-radius: 4px;
281
+ -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
282
+ -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
283
+ box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
284
+ text-shadow: none;
285
+ color: #_COLORTXT;
286
+ font-family: helvetica, serif;
287
+ padding: 8.5px 18px;
288
+ font-size: 14px;
289
+ text-decoration: none;
290
+ vertical-align: baseline;
291
+ cursor:pointer;
292
+ margin-top:0 !important;
293
+ }
294
+ /* checkboxes */
295
+ .mc4wp-form input[type="checkbox"] {
296
+
297
+ }
298
+ /* submit button */
299
+ .mc4wp-form input[type="submit"] {
300
+ background-color: #_COLORBUTTON;
301
+ border: 1px solid #_COLORBUTTON;
302
+ cursor:pointer;
303
+ color:#_COLORTEXTBUTTON;
304
+ }
305
+ .mc4wp-form input[type="submit"]:hover {
306
+ text-shadow: #_COLORBORDER 0 1px 0;
307
+ border: 1px solid #_COLORBORDER;
308
+ background: #_COLOR_BTN_HOVER;
309
+ /*color: #_COLORTXT;*/
310
+ cursor:pointer;
311
+ }
312
+ .mc4wp-form input[type="submit"]:active {
313
+ text-shadow: #_COLORBORDER 0 1px 0;
314
+ border: 1px solid #_COLORBORDER;
315
+ background: #_COLOR_BTN_CLICK;
316
+ color: #_COLORTXT;
317
+ cursor:pointer;
318
+ }
319
+ .mc4wp-alert { } /* success & error messages */
320
+ .mc4wp-success { } /* success message */
321
+ .mc4wp-error { background: #cc0000; } /* error messages */
322
+ ';
323
+
324
+ }
325