WP Maintenance - Version 0.2

Version Description

Cette version est stable. Plus de conflit de nom de fonction. ColorPicker Ajout.

=

Download this release

Release Info

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

Code changes from version 0.1 to 0.2

readme.txt CHANGED
@@ -46,7 +46,7 @@ Cette version est stable. Plus de conflit de nom de fonction. ColorPicker Ajout
46
  == Changelog ==
47
 
48
  = 0.2 =
49
- * Ajout du ColorPiker.
50
 
51
  = 0.1 =
52
  * Première version du plugin.
46
  == Changelog ==
47
 
48
  = 0.2 =
49
+ * Ajout du ColorPicker.
50
 
51
  = 0.1 =
52
  * Première version du plugin.
screenshot-5.png ADDED
Binary file
wp-maintenance-admin.php CHANGED
@@ -63,5 +63,15 @@ if($_POST['action'] == 'update') {
63
  </ul>
64
  </div>
65
  </form>
 
 
 
 
 
 
 
 
 
 
66
  </div>
67
 
63
  </ul>
64
  </div>
65
  </form>
66
+ <!-- FAIRE UN DON SUR PAYPAL -->
67
+ <div style="border:1px solid #F1F1F1;text-align: center;background-color:#F1F1F1;padding: 15px;">Si vous souhaitez me soutenir pour les développements actuels et futurs :
68
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
69
+ <input type="hidden" name="cmd" value="_s-xclick">
70
+ <input type="hidden" name="hosted_button_id" value="ABGJLUXM5VP58">
71
+ <input type="image" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - la solution de paiement en ligne la plus simple et la plus sécurisée !">
72
+ <img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
73
+ </form>
74
+ </div>
75
+ <!-- FIN FAIRE UN DON -->
76
  </div>
77
 
wp-maintenance.php CHANGED
@@ -2,16 +2,17 @@
2
 
3
  /*
4
  Plugin Name: WP Maintenance
5
- Plugin URI: http://www.restezconnectes.fr/plugins/wp-maintenance.zip
6
  Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance. Personnalisez cette page de maintenance.
7
  Author: Florent Maillefaud
8
  Author URI: http://www.restezconnectes.fr/
9
- Version: 0.1
10
  */
11
 
12
 
13
  /*
14
  Change Log
 
15
  12/02/2013 - Ajout fonctionnalité et débugage
16
  11/02/2013 - Modification nom de fonctions
17
  24/01/2013 - Création du Plugin
@@ -36,7 +37,7 @@ function WpMaintenancePlugin_actions ( $links ) {
36
  }
37
 
38
  /* Ajoute la version dnas les options */
39
- define('WPM_VERSION', '0.1');
40
  $option['wp_maintenance_version'] = WPM_VERSION;
41
  add_option('wp_maintenance_version',$option);
42
 
@@ -71,11 +72,11 @@ function WpMaintenanceAdminScripts() {
71
  wp_enqueue_script('wpm-my-upload');
72
  }
73
 
74
- function WpMaintenanceEnqueueColorPicker( $hook_suffix ) {
 
75
  // first check that $hook_suffix is appropriate for your admin page
76
- wp_enqueue_style( 'color-picker' );
77
- wp_enqueue_script( 'wpm_color-picker', WP_PLUGIN_URL.'/wp-maintenance/wpm-color-options.js', array('jquery','color-picker'));
78
- wp_enqueue_script('wpm_color-picker');
79
  }
80
 
81
  function WpMaintenanceAdminStyles() {
@@ -85,7 +86,6 @@ function WpMaintenanceAdminStyles() {
85
  if (isset($_GET['page']) && $_GET['page'] == 'wp-maintenance/wp-maintenance.php') {
86
  add_action('admin_print_scripts', 'WpMaintenanceAdminScripts');
87
  add_action('admin_print_styles', 'WpMaintenanceAdminStyles');
88
- add_action( 'admin_enqueue_scripts', 'WpMaintenanceEnqueueColorPicker' );
89
  }
90
 
91
  /* Mode Mainteance */
2
 
3
  /*
4
  Plugin Name: WP Maintenance
5
+ Plugin URI: http://wordpress.org/extend/plugins/wp-maintenance/
6
  Description: Le plugin WP Maintenance vous permet de mettre votre site en attente le temps pour vous de faire une maintenance. Personnalisez cette page de maintenance.
7
  Author: Florent Maillefaud
8
  Author URI: http://www.restezconnectes.fr/
9
+ Version: 0.2
10
  */
11
 
12
 
13
  /*
14
  Change Log
15
+ 16/02/2013 - Ajout ColorPicker
16
  12/02/2013 - Ajout fonctionnalité et débugage
17
  11/02/2013 - Modification nom de fonctions
18
  24/01/2013 - Création du Plugin
37
  }
38
 
39
  /* Ajoute la version dnas les options */
40
+ define('WPM_VERSION', '0.2');
41
  $option['wp_maintenance_version'] = WPM_VERSION;
42
  add_option('wp_maintenance_version',$option);
43
 
72
  wp_enqueue_script('wpm-my-upload');
73
  }
74
 
75
+ add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' );
76
+ function mw_enqueue_color_picker( $hook_suffix ) {
77
  // first check that $hook_suffix is appropriate for your admin page
78
+ wp_enqueue_style( 'wp-color-picker' );
79
+ wp_enqueue_script( 'my-script-handle', plugins_url('wpm-color-options.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
 
80
  }
81
 
82
  function WpMaintenanceAdminStyles() {
86
  if (isset($_GET['page']) && $_GET['page'] == 'wp-maintenance/wp-maintenance.php') {
87
  add_action('admin_print_scripts', 'WpMaintenanceAdminScripts');
88
  add_action('admin_print_styles', 'WpMaintenanceAdminStyles');
 
89
  }
90
 
91
  /* Mode Mainteance */