WP Admin UI Customize - Version 1.2.2.1

Version Description

I've added about donation.

Download this release

Release Info

Developer gqevu6bsiz
Plugin Icon wp plugin WP Admin UI Customize
Version 1.2.2.1
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.2.1

inc/setting_default.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
 
3
- if( !empty( $_POST["update"] ) ) {
 
 
4
  $this->update_userrole();
5
  } elseif( !empty( $_POST["reset"] ) ) {
6
  $this->update_reset( 'user_role' );
@@ -56,6 +58,18 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
56
  <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
57
  </p>
58
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </form>
60
 
61
  </div>
@@ -121,3 +135,17 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
121
  </div>
122
 
123
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ if( !empty( $_POST["donate_key"] ) ) {
4
+ $this->DonatingCheck();
5
+ } elseif( !empty( $_POST["update"] ) ) {
6
  $this->update_userrole();
7
  } elseif( !empty( $_POST["reset"] ) ) {
8
  $this->update_reset( 'user_role' );
58
  <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
59
  </p>
60
 
61
+ <p>&nbsp;</p>
62
+
63
+ </form>
64
+
65
+ <form id="donation_form" class="waum_form" method="post" action="">
66
+ <h3><?php _e( 'If you have already donated to.' , $this->ltd ); ?></h3>
67
+ <p><?php _e( 'Please enter the \'Donation delete key\' that have been described in the \'Line Break First and End download page\'.' , $this->ltd ); ?></p>
68
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
69
+ <?php wp_nonce_field(); ?>
70
+ <label for="donate_key"><?php _e( 'Donation delete key' , $this->ltd ); ?></label>
71
+ <input type="text" name="donate_key" id="donate_key" value="" class="regular-text" />
72
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Submit' ); ?>" />
73
  </form>
74
 
75
  </div>
135
  </div>
136
 
137
  </div>
138
+
139
+ <script type="text/javascript">
140
+ jQuery(document).ready(function($) {
141
+
142
+ var $RDonated = '<?php echo get_option( $this->Record["donate"] ); ?>';
143
+ var $TDonated = '<?php echo $this->DonateKey; ?>';
144
+
145
+ if( $RDonated == $TDonated ) {
146
+ $("#donationbox").hide();
147
+ $("#donation_form").html( '<p>&nbsp;</p><p>&nbsp;</p><span class="description"><?php _e( 'Thank you for your donation.' , $this->ltd ); ?></span>' );
148
+ }
149
+
150
+ });
151
+ </script>
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: 1.0.0\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-03-28 16:34+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -16,6 +16,18 @@ msgstr ""
16
  msgid "It is an excellent plugin to customize the management screen."
17
  msgstr ""
18
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  msgid "Please consider a donation if you are satisfied with this plugin."
20
  msgstr ""
21
 
2
  msgstr ""
3
  "Project-Id-Version: 1.0.0\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-03-30 10:43+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
16
  msgid "It is an excellent plugin to customize the management screen."
17
  msgstr ""
18
 
19
+ msgid "Thank you for your donation."
20
+ msgstr ""
21
+
22
+ msgid "If you have already donated to."
23
+ msgstr ""
24
+
25
+ msgid "Please enter the 'Donation delete key' that have been described in the 'Line Break First and End download page'."
26
+ msgstr ""
27
+
28
+ msgid "Donation delete key"
29
+ msgstr ""
30
+
31
  msgid "Please consider a donation if you are satisfied with this plugin."
32
  msgstr ""
33
 
readme.txt CHANGED
@@ -1,23 +1,23 @@
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
- Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_2_2
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
5
  Requires at least: 3.4.2
6
  Tested up to: 3.5.1
7
- Stable tag: 1.2.2
8
  License: GPL2
9
 
10
  Customize the management screen UI.
11
 
12
  == Description ==
13
 
14
- Dashboard
15
- Display options tab
16
- Output-meta site
17
- Admin bar
18
- Admin menu (Side menu)
19
- Management of meta box
20
- Login screen
21
 
22
  These to Customization is possible.
23
 
@@ -49,6 +49,9 @@ These to Customization is possible.
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.2.2 =
53
  Be able to changed more for the WP admin bar.
54
 
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
+ Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_2_2_1
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
5
  Requires at least: 3.4.2
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.2.2.1
8
  License: GPL2
9
 
10
  Customize the management screen UI.
11
 
12
  == Description ==
13
 
14
+ * Dashboard
15
+ * Display options tab
16
+ * Output-meta site
17
+ * Admin bar
18
+ * Admin menu (Side menu)
19
+ * Management of meta box
20
+ * Login screen
21
 
22
  These to Customization is possible.
23
 
49
 
50
  == Changelog ==
51
 
52
+ = 1.2.2.1 =
53
+ I've added about donation.
54
+
55
  = 1.2.2 =
56
  Be able to changed more for the WP admin bar.
57
 
wp-admin-ui-customize.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: WP Admin UI Customize
4
  Description: It is an excellent plugin to customize the management screen.
5
  Plugin URI: http://wordpress.org/extend/plugins/wp-admin-ui-customize/
6
- Version: 1.2.2
7
  Author: gqevu6bsiz
8
- Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_2_2
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -38,6 +38,7 @@ class WP_Admin_UI_Customize
38
  $Record,
39
  $PageSlug,
40
  $UPFN,
 
41
  $Menu,
42
  $SubMenu,
43
  $Admin_bar,
@@ -45,7 +46,7 @@ class WP_Admin_UI_Customize
45
 
46
 
47
  function __construct() {
48
- $this->Ver = '1.2.2';
49
  $this->Name = 'WP Admin UI Customize';
50
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
51
  $this->ltd = 'wauc';
@@ -60,9 +61,11 @@ class WP_Admin_UI_Customize
60
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
61
  "appearance_menus" => $this->ltd . '_appearance_menus_setting',
62
  "loginscreen" => $this->ltd . '_loginscreen_setting',
 
63
  );
64
  $this->PageSlug = 'wp_admin_ui_customize';
65
  $this->UPFN = 'Y';
 
66
 
67
  $this->PluginSetup();
68
  $this->FilterStart();
@@ -220,6 +223,8 @@ class WP_Admin_UI_Customize
220
 
221
 
222
 
 
 
223
  // SetList
224
  function get_user_role() {
225
  $editable_roles = get_editable_roles();
@@ -463,6 +468,22 @@ class WP_Admin_UI_Customize
463
  }
464
  }
465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  // DataUpdate
467
  function update_userrole() {
468
  $Update = $this->update_validate();
@@ -1152,7 +1173,10 @@ class WP_Admin_UI_Customize
1152
 
1153
  // FilterStart
1154
  function DisplayDonation() {
1155
- $this->Msg .= '<div class="error"><p><strong>' . __( 'Please consider a donation if you are satisfied with this plugin.' , $this->ltd ) . '</strong> <a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug ) . '">' . __( 'Please donation.' , $this->ltd ) . '</a></p></div>';
 
 
 
1156
  }
1157
 
1158
  }
3
  Plugin Name: WP Admin UI Customize
4
  Description: It is an excellent plugin to customize the management screen.
5
  Plugin URI: http://wordpress.org/extend/plugins/wp-admin-ui-customize/
6
+ Version: 1.2.2.1
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_2_2_1
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
38
  $Record,
39
  $PageSlug,
40
  $UPFN,
41
+ $DonateKey,
42
  $Menu,
43
  $SubMenu,
44
  $Admin_bar,
46
 
47
 
48
  function __construct() {
49
+ $this->Ver = '1.2.2.1';
50
  $this->Name = 'WP Admin UI Customize';
51
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
52
  $this->ltd = 'wauc';
61
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
62
  "appearance_menus" => $this->ltd . '_appearance_menus_setting',
63
  "loginscreen" => $this->ltd . '_loginscreen_setting',
64
+ "donate" => $this->ltd . '_donated',
65
  );
66
  $this->PageSlug = 'wp_admin_ui_customize';
67
  $this->UPFN = 'Y';
68
+ $this->DonateKey = 'd77aec9bc89d445fd54b4c988d090f03';
69
 
70
  $this->PluginSetup();
71
  $this->FilterStart();
223
 
224
 
225
 
226
+
227
+
228
  // SetList
229
  function get_user_role() {
230
  $editable_roles = get_editable_roles();
468
  }
469
  }
470
 
471
+ // DataUpdate
472
+ function DonatingCheck() {
473
+ $Update = $this->update_validate();
474
+
475
+ if( !empty( $Update ) ) {
476
+ if( !empty( $_POST["donate_key"] ) ) {
477
+ $SubmitKey = md5( strip_tags( $_POST["donate_key"] ) );
478
+ if( $this->DonateKey == $SubmitKey ) {
479
+ update_option( $this->Record["donate"] , $SubmitKey );
480
+ $this->Msg .= '<div class="updated"><p><strong>' . __( 'Thank you for your donation.' , $this->ltd ) . '</strong></p></div>';
481
+ }
482
+ }
483
+ }
484
+
485
+ }
486
+
487
  // DataUpdate
488
  function update_userrole() {
489
  $Update = $this->update_validate();
1173
 
1174
  // FilterStart
1175
  function DisplayDonation() {
1176
+ $donation = get_option( $this->Record["donate"] );
1177
+ if( $this->DonateKey != $donation ) {
1178
+ $this->Msg .= '<div class="error"><p><strong>' . __( 'Please consider a donation if you are satisfied with this plugin.' , $this->ltd ) . '</strong> <a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug ) . '">' . __( 'Please donation.' , $this->ltd ) . '</a></p></div>';
1179
+ }
1180
  }
1181
 
1182
  }