WP Admin UI Customize - Version 1.4.4

Version Description

  • Fixed: Settings of Dashboard.
  • Added: Write link to the document.
  • Added: Delete settings feature of All.
  • Added: setting to resize the feature.
Download this release

Release Info

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

Code changes from version 1.4.3.3 to 1.4.4

inc/reset_userrole.php CHANGED
@@ -28,7 +28,7 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
28
  <input type="hidden" name="record_field" value="user_role" />
29
 
30
  <h3><?php _e( 'Applied user roles' , $this->ltd ); ?></h3>
31
- <ul>
32
  <?php foreach( $Data as $key => $val ) : ?>
33
  <?php if( !empty( $UserRoles[$key] ) ): ?>
34
  <li><?php echo $UserRoles[$key]["label"]; ?></li>
@@ -39,9 +39,39 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
39
 
40
  <p><?php _e( 'You want to reset the user roles?' , $this->ltd ); ?></p>
41
  <p class="submit">
42
- <input type="submit" class="button-secondary" name="reset" value="<?php _e( 'Reset settings' , $this->ltd ); ?>" />
43
  </p>
44
 
45
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  </div>
28
  <input type="hidden" name="record_field" value="user_role" />
29
 
30
  <h3><?php _e( 'Applied user roles' , $this->ltd ); ?></h3>
31
+ <ul class="description">
32
  <?php foreach( $Data as $key => $val ) : ?>
33
  <?php if( !empty( $UserRoles[$key] ) ): ?>
34
  <li><?php echo $UserRoles[$key]["label"]; ?></li>
39
 
40
  <p><?php _e( 'You want to reset the user roles?' , $this->ltd ); ?></p>
41
  <p class="submit">
42
+ <input type="submit" class="button-primary" name="reset" value="<?php _e( 'Reset settings' , $this->ltd ); ?>" />
43
  </p>
44
 
45
  </form>
46
+
47
+ <p>&nbsp;</p>
48
+
49
+ <h2><?php _e( 'Reset settings of all' , $this->ltd ); ?></h2>
50
+ <form id="wauc_reset_all_settings" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
51
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
52
+ <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
53
+ <input type="hidden" name="record_field" value="all_settings" />
54
+ <p><?php _e( 'Setting all of the below will be deleted.' , $this->ltd ); ?></p>
55
+ <ul class="description">
56
+ <li><?php _e( 'Site Settings' , $this->ltd ); ?></li>
57
+ <li><?php _e( 'General Screen Settings' , $this->ltd ); ?></li>
58
+ <li><?php _e( 'Dashboard' ); ?></li>
59
+ <li><?php _e( 'Admin Bar Menu' , $this->ltd ); ?></li>
60
+ <li><?php _e( 'Side Menu' , $this->ltd ); ?></li>
61
+ <li><?php _e( 'Manage meta box' , $this->ltd ); ?></li>
62
+ <li><?php _e( 'Add New Post and Edit Post Screen Setting' , $this->ltd ); ?></li>
63
+ <li><?php _e( 'Appearance Menus Screen Setting' , $this->ltd ); ?></li>
64
+ <li><?php _e( 'Login Screen' , $this->ltd ); ?></li>
65
+ <li><?php echo sprintf( __( '%1$s of %2$s %3$s' , $this->ltd ) , __( 'Change' ) , __( 'Plugin' ) , __( 'Capabilities' ) ); ?></li>
66
+ </ul>
67
+ <br />
68
+
69
+ <p><?php _e( 'Are you sure you want to delete all settings?' , $this->ltd ); ?></p>
70
+ <p class="submit">
71
+ <input type="submit" class="button-primary" name="reset" value="<?php _e( 'Reset settings of all' , $this->ltd ); ?>" />
72
+ </p>
73
+
74
+ </form>
75
+
76
 
77
  </div>
inc/setting_admin_bar_menu.php CHANGED
@@ -38,6 +38,7 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
38
 
39
  <p></p>
40
  <p><?php _e( 'Sub-menu can to settings to four levels.' , $this->ltd ); ?></p>
 
41
 
42
  <div id="poststuff">
43
 
38
 
39
  <p></p>
40
  <p><?php _e( 'Sub-menu can to settings to four levels.' , $this->ltd ); ?></p>
41
+ <p><a href="<?php $this->get_document_link( 'admin_bar' ); ?>" target="_blank" class="button-secondary"><?php _e( 'Documents is here' , $this->ltd ); ?></a></p>
42
 
43
  <div id="poststuff">
44
 
inc/setting_admin_general.php CHANGED
@@ -155,7 +155,6 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
155
  <a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
156
  </td>
157
  </tr>
158
-
159
  <?php $field = 'title_tag'; ?>
160
  <tr>
161
  <th>
@@ -167,6 +166,19 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
167
  <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Remove "Wordpress" from the title tag of the Admin screen' , $this->ltd ); ?></label>
168
  </td>
169
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  </tbody>
171
  </table>
172
  </div>
155
  <a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
156
  </td>
157
  </tr>
 
158
  <?php $field = 'title_tag'; ?>
159
  <tr>
160
  <th>
166
  <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Remove "Wordpress" from the title tag of the Admin screen' , $this->ltd ); ?></label>
167
  </td>
168
  </tr>
169
+ <?php if( version_compare( $wp_version , '3.8' , '>=' ) ) : ?>
170
+ <?php $field = 'resize_admin_bar'; ?>
171
+ <tr>
172
+ <th>
173
+ <label><?php _e( 'Resizing Admin bar' , $this->ltd ); ?></label>
174
+ </th>
175
+ <td>
176
+ <?php $Checked = ''; ?>
177
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
178
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not resize' , $this->ltd ); ?></label>
179
+ </td>
180
+ </tr>
181
+ <?php endif; ?>
182
  </tbody>
183
  </table>
184
  </div>
inc/setting_default.php CHANGED
@@ -60,7 +60,7 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
60
  <div class="stuffbox" id="aboutbox">
61
  <h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
62
  <div class="inside">
63
- <p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.6.1 - 3.8</p>
64
  <ul>
65
  <li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
66
  <li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
60
  <div class="stuffbox" id="aboutbox">
61
  <h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
62
  <div class="inside">
63
+ <p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.6.1 - 3.8.1</p>
64
  <ul>
65
  <li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
66
  <li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
inc/setting_plugin_cap.php CHANGED
@@ -59,13 +59,15 @@ if ( version_compare( $wp_version , '3.8' , '<' ) ) {
59
  <?php else: ?>
60
  <option value="" selected="selected"><?php echo _x( 'Administrator' , 'User role' ); ?></option>
61
  <?php endif; ?>
62
- <?php foreach( $UserRoles["administrator"]["capabilities"] as $cap => $v ) : ?>
63
- <?php $Selected = false; ?>
64
- <?php if( !empty( $SelectedCap ) ) : ?>
65
- <?php if( $Data[$field] == $cap ) $Selected = 'selected="selected"'; ?>
66
- <?php endif; ?>
67
- <option value="<?php echo $cap; ?>" <?php echo $Selected; ?>><?php echo $cap; ?></option>
68
- <?php endforeach; ?>
 
 
69
  </select>
70
  <p class="description"><?php _e( 'Default' ); ?>: <?php echo _x( 'Administrator' , 'User role' ); ?></p>
71
  </td>
59
  <?php else: ?>
60
  <option value="" selected="selected"><?php echo _x( 'Administrator' , 'User role' ); ?></option>
61
  <?php endif; ?>
62
+ <?php if( !empty( $UserRoles["administrator"]["capabilities"] ) ) : ?>
63
+ <?php foreach( $UserRoles["administrator"]["capabilities"] as $cap => $v ) : ?>
64
+ <?php $Selected = false; ?>
65
+ <?php if( !empty( $SelectedCap ) ) : ?>
66
+ <?php if( $Data[$field] == $cap ) $Selected = 'selected="selected"'; ?>
67
+ <?php endif; ?>
68
+ <option value="<?php echo $cap; ?>" <?php echo $Selected; ?>><?php echo $cap; ?></option>
69
+ <?php endforeach; ?>
70
+ <?php endif; ?>
71
  </select>
72
  <p class="description"><?php _e( 'Default' ); ?>: <?php echo _x( 'Administrator' , 'User role' ); ?></p>
73
  </td>
js/adminbar/resize-front.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($){
2
+
3
+ var ResizeTimer = false;
4
+ var DefaultBodyPaddingTop = parseInt( $(document.body).css('padding-top'), 10);
5
+
6
+ $(window).resize(function() {
7
+ if (ResizeTimer !== false) {
8
+ clearTimeout(ResizeTimer);
9
+ }
10
+ ResizeTimer = setTimeout(function() {
11
+ sidebar_resize();
12
+ }, 200);
13
+ });
14
+
15
+ function sidebar_resize() {
16
+
17
+ if( 0 < $("#wpadminbar").size() ) {
18
+ var AdminBarHeight = $("#wpadminbar").height();
19
+ var WindowWidth = $(window).width();
20
+
21
+ if( AdminBarHeight < 47 ) {
22
+ $(document.body).css("padding-top", DefaultBodyPaddingTop);
23
+ } else {
24
+ $(document.body).css("padding-top", ( AdminBarHeight / 2 ) );
25
+ }
26
+
27
+ }
28
+
29
+ }
30
+
31
+ sidebar_resize();
32
+
33
+ });
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc-ja.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-12-29 01:38+0900\n"
6
- "PO-Revision-Date: 2013-12-29 02:02+0900\n"
7
  "Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
8
  "Language-Team: gqevu6bsiz@gmail.com <gqevu6bsiz@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -169,6 +169,19 @@ msgstr "ユーザー権限をリセットしてもよろしいですか?"
169
  msgid "Reset settings"
170
  msgstr "設定をリセット"
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  #: inc/setting_admin_bar_menu.php:26
173
  #: inc/setting_sidemenu.php:26
174
  msgid "Please change the menu by drag and drop."
@@ -199,6 +212,10 @@ msgstr "利用可能なショートコード一覧"
199
  msgid "Sub-menu can to settings to four levels."
200
  msgstr "サブメニューは4階層まで設定できます。"
201
 
 
 
 
 
202
  #: inc/setting_admin_bar_menu.php:93
203
  #: inc/setting_admin_general.php:188
204
  #: inc/setting_appearance_menus.php:98
@@ -263,6 +280,14 @@ msgstr "管理画面のタイトルタグ"
263
  msgid "Remove \"Wordpress\" from the title tag of the Admin screen"
264
  msgstr "管理画面のタイトルタグから\"WordPress\"を削除"
265
 
 
 
 
 
 
 
 
 
266
  #: inc/setting_appearance_menus.php:47
267
  msgid "Create a new menu"
268
  msgstr "新規メニュー作成"
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-12-29 01:38+0900\n"
6
+ "PO-Revision-Date: 2014-01-27 23:15+0900\n"
7
  "Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
8
  "Language-Team: gqevu6bsiz@gmail.com <gqevu6bsiz@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
169
  msgid "Reset settings"
170
  msgstr "設定をリセット"
171
 
172
+ #: inc/reset_userrole.php:49
173
+ #: inc/reset_userrole.php:71
174
+ msgid "Reset settings of all"
175
+ msgstr "全ての設定をリセット"
176
+
177
+ #: inc/reset_userrole.php:54
178
+ msgid "Setting all of the below will be deleted."
179
+ msgstr "以下のすべての設定が削除されます。"
180
+
181
+ #: inc/reset_userrole.php:69
182
+ msgid "Are you sure you want to delete all settings?"
183
+ msgstr "本当に全ての設定を削除してもよろしいですか?"
184
+
185
  #: inc/setting_admin_bar_menu.php:26
186
  #: inc/setting_sidemenu.php:26
187
  msgid "Please change the menu by drag and drop."
212
  msgid "Sub-menu can to settings to four levels."
213
  msgstr "サブメニューは4階層まで設定できます。"
214
 
215
+ #: inc/setting_admin_bar_menu.php:41
216
+ msgid "Documents is here"
217
+ msgstr "ドキュメントはこちら"
218
+
219
  #: inc/setting_admin_bar_menu.php:93
220
  #: inc/setting_admin_general.php:188
221
  #: inc/setting_appearance_menus.php:98
280
  msgid "Remove \"Wordpress\" from the title tag of the Admin screen"
281
  msgstr "管理画面のタイトルタグから\"WordPress\"を削除"
282
 
283
+ #: inc/setting_admin_general.php:172
284
+ msgid "Resizing Admin bar"
285
+ msgstr "管理バーリサイズ"
286
+
287
+ #: inc/setting_admin_general.php:177
288
+ msgid "Not resize"
289
+ msgstr "リサイズしない"
290
+
291
  #: inc/setting_appearance_menus.php:47
292
  msgid "Create a new menu"
293
  msgstr "新規メニュー作成"
languages/wauc.pot CHANGED
@@ -166,6 +166,19 @@ msgstr ""
166
  msgid "Reset settings"
167
  msgstr ""
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  #: inc/setting_admin_bar_menu.php:26
170
  #: inc/setting_sidemenu.php:26
171
  msgid "Please change the menu by drag and drop."
@@ -196,6 +209,10 @@ msgstr ""
196
  msgid "Sub-menu can to settings to four levels."
197
  msgstr ""
198
 
 
 
 
 
199
  #: inc/setting_admin_bar_menu.php:93
200
  #: inc/setting_admin_general.php:188
201
  #: inc/setting_appearance_menus.php:98
@@ -260,6 +277,14 @@ msgstr ""
260
  msgid "Remove \"Wordpress\" from the title tag of the Admin screen"
261
  msgstr ""
262
 
 
 
 
 
 
 
 
 
263
  #: inc/setting_appearance_menus.php:47
264
  msgid "Create a new menu"
265
  msgstr ""
166
  msgid "Reset settings"
167
  msgstr ""
168
 
169
+ #: inc/reset_userrole.php:49
170
+ #: inc/reset_userrole.php:71
171
+ msgid "Reset settings of all"
172
+ msgstr ""
173
+
174
+ #: inc/reset_userrole.php:54
175
+ msgid "Setting all of the below will be deleted."
176
+ msgstr ""
177
+
178
+ #: inc/reset_userrole.php:69
179
+ msgid "Are you sure you want to delete all settings?"
180
+ msgstr ""
181
+
182
  #: inc/setting_admin_bar_menu.php:26
183
  #: inc/setting_sidemenu.php:26
184
  msgid "Please change the menu by drag and drop."
209
  msgid "Sub-menu can to settings to four levels."
210
  msgstr ""
211
 
212
+ #: inc/setting_admin_bar_menu.php:41
213
+ msgid "Documents is here"
214
+ msgstr ""
215
+
216
  #: inc/setting_admin_bar_menu.php:93
217
  #: inc/setting_admin_general.php:188
218
  #: inc/setting_appearance_menus.php:98
277
  msgid "Remove \"Wordpress\" from the title tag of the Admin screen"
278
  msgstr ""
279
 
280
+ #: inc/setting_admin_general.php:172
281
+ msgid "Resizing Admin bar"
282
+ msgstr ""
283
+
284
+ #: inc/setting_admin_general.php:177
285
+ msgid "Not resize"
286
+ msgstr ""
287
+
288
  #: inc/setting_appearance_menus.php:47
289
  msgid "Create a new menu"
290
  msgstr ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
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_4_3_3
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.6.1
6
- Tested up to: 3.8
7
- Stable tag: 1.4.3.3
8
  License: GPL2
9
 
10
  Customize the management screen UI.
@@ -50,6 +50,12 @@ These to Customization is possible.
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
53
  = 1.4.3.3 =
54
  * Fixed: Data save way.
55
 
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_4_4
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.6.1
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.4.4
8
  License: GPL2
9
 
10
  Customize the management screen UI.
50
 
51
  == Changelog ==
52
 
53
+ = 1.4.4 =
54
+ * Fixed: Settings of Dashboard.
55
+ * Added: Write link to the document.
56
+ * Added: Delete settings feature of All.
57
+ * Added: setting to resize the feature.
58
+
59
  = 1.4.3.3 =
60
  * Fixed: Data save way.
61
 
wp-admin-ui-customize.css CHANGED
@@ -82,7 +82,7 @@ input.regular-text {
82
  }
83
  #wauc_setting_sidemenu .postbox .inside .widget .widget-inside .submenu {
84
  padding: 5px 5px 20px 5px;
85
- border: 1px solid #DFDFDF;
86
  margin-bottom: 12px;
87
  }
88
  #wauc_setting_sidemenu .postbox .inside .widget .widget-inside input.regular-text {
82
  }
83
  #wauc_setting_sidemenu .postbox .inside .widget .widget-inside .submenu {
84
  padding: 5px 5px 20px 5px;
85
+ border: 3px solid #DFDFDF;
86
  margin-bottom: 12px;
87
  }
88
  #wauc_setting_sidemenu .postbox .inside .widget .widget-inside input.regular-text {
wp-admin-ui-customize.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
- Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_3_3
6
- Version: 1.4.3.3
7
  Author: gqevu6bsiz
8
- Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_3_3
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -55,7 +55,7 @@ class WP_Admin_UI_Customize
55
 
56
 
57
  function __construct() {
58
- $this->Ver = '1.4.3.3';
59
  $this->Name = 'WP Admin UI Customize';
60
  $this->Dir = plugin_dir_path( __FILE__ );
61
  $this->Url = plugin_dir_url( __FILE__ );
@@ -180,7 +180,7 @@ class WP_Admin_UI_Customize
180
  add_submenu_page( $this->PageSlug , __( 'Appearance Menus Screen Setting' , $this->ltd ) , __( 'Appearance Menus Screen Setting' , $this->ltd ) , $capability , $this->PageSlug . '_appearance_menus' , array( $this , 'setting_appearance_menus' ) );
181
  add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , $capability , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
182
  add_submenu_page( $this->PageSlug , sprintf( __( '%1$s of %2$s %3$s' , $this->ltd ) , __( 'Change' ) , __( 'Plugin' ) , __( 'Capabilities' ) ) , sprintf( __( '%1$s of %2$s %3$s' , $this->ltd ) , __( 'Change' ) , __( 'Plugin' ) , __( 'Capabilities' ) ) , $capability , $this->PageSlug . '_plugin_cap' , array( $this , 'setting_plugin_cap' ) );
183
- add_submenu_page( $this->PageSlug , __( 'Reset User Roles' , $this->ltd ) , '<div style="display: none";>' . __( 'Reset User Roles' , $this->ltd ) . '</div>' , $capability , $this->PageSlug . '_reset_userrole' , array( $this , 'reset_userrole' ) );
184
  }
185
 
186
  // PluginSetup
@@ -1102,6 +1102,30 @@ class WP_Admin_UI_Customize
1102
 
1103
  return $capability;
1104
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1105
 
1106
 
1107
 
@@ -1116,8 +1140,9 @@ class WP_Admin_UI_Customize
1116
  if( !empty( $_POST["record_field"] ) ) {
1117
  $RecordField = strip_tags( $_POST["record_field"] );
1118
  }
1119
-
1120
  if( !empty( $RecordField ) && !empty( $_POST["update"] ) ) {
 
1121
  if( $RecordField == 'user_role' ) {
1122
  $this->update_userrole();
1123
  } elseif( $RecordField == 'site' ) {
@@ -1143,14 +1168,21 @@ class WP_Admin_UI_Customize
1143
  }
1144
 
1145
  }
 
1146
 
1147
  if( !empty( $RecordField ) && !empty( $_POST["reset"] ) ) {
 
1148
  if( $RecordField == 'manage_metabox' ) {
1149
  delete_option( $this->Record["regist_metabox"] );
1150
  } elseif( $RecordField == 'dashboard' ) {
1151
  delete_option( $this->Record["regist_dashboard_metabox"] );
1152
  }
1153
- $this->update_reset( $RecordField );
 
 
 
 
 
1154
  }
1155
 
1156
  if( !empty( $_POST["donate_key"] ) && !empty( $_POST["update"] ) ) {
@@ -1185,6 +1217,21 @@ class WP_Admin_UI_Customize
1185
  }
1186
  }
1187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1188
  // DataUpdate
1189
  function DonatingCheck() {
1190
  $Update = $this->update_validate();
@@ -1494,9 +1541,6 @@ class WP_Admin_UI_Customize
1494
  add_action( 'wp_loaded' , array( $this , 'admin_init' ) );
1495
  }
1496
 
1497
- add_action( 'admin_footer' , array( $this , 'admin_bar_resizing' ) );
1498
- add_action( 'wp_footer' , array( $this , 'admin_bar_resizing' ) );
1499
-
1500
  }
1501
 
1502
  // FilterStart
@@ -1517,13 +1561,14 @@ class WP_Admin_UI_Customize
1517
  add_action( 'admin_head' , array( $this , 'remove_tab' ) );
1518
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
1519
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
1520
- add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
1521
  add_action( 'admin_head' , array( $this , 'manage_metabox' ) , 11 );
1522
  add_filter( 'admin_head', array( $this , 'sidemenu' ) );
1523
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
1524
  add_filter( 'edit_form_after_title' , array( $this , 'allow_comments' ) );
1525
  add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
1526
  add_filter( 'admin_title', array( $this, 'admin_title' ) );
 
1527
  }
1528
  }
1529
  }
@@ -1543,6 +1588,8 @@ class WP_Admin_UI_Customize
1543
  if( !is_network_admin() && !empty( $UserRole ) ) {
1544
  if( array_key_exists( $UserRole , $SettingRole ) ) {
1545
 
 
 
1546
  $GetData = $this->get_flit_data( 'site' );
1547
 
1548
  if( !empty( $GetData["admin_bar"] ) ) {
@@ -2234,12 +2281,17 @@ class WP_Admin_UI_Customize
2234
  // FilterStart
2235
  function admin_bar_resizing() {
2236
  global $wp_version;
2237
- if ( version_compare( $wp_version , '3.8' , '>=' ) ) {
 
 
2238
  wp_enqueue_style( $this->PageSlug . '-adminbar-resize' , $this->Url . 'css/adminbar/resize.css', array() , $this->Ver );
2239
  if( is_admin() ) {
2240
  wp_enqueue_script( $this->PageSlug . '-adminbar-resize' , $this->Url . 'js/adminbar/resize.js', array( 'jquery' ) , $this->Ver );
 
 
2241
  }
2242
  }
 
2243
  }
2244
 
2245
  // FilterStart
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
+ Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_4
6
+ Version: 1.4.4
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_4
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
55
 
56
 
57
  function __construct() {
58
+ $this->Ver = '1.4.4';
59
  $this->Name = 'WP Admin UI Customize';
60
  $this->Dir = plugin_dir_path( __FILE__ );
61
  $this->Url = plugin_dir_url( __FILE__ );
180
  add_submenu_page( $this->PageSlug , __( 'Appearance Menus Screen Setting' , $this->ltd ) , __( 'Appearance Menus Screen Setting' , $this->ltd ) , $capability , $this->PageSlug . '_appearance_menus' , array( $this , 'setting_appearance_menus' ) );
181
  add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , $capability , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
182
  add_submenu_page( $this->PageSlug , sprintf( __( '%1$s of %2$s %3$s' , $this->ltd ) , __( 'Change' ) , __( 'Plugin' ) , __( 'Capabilities' ) ) , sprintf( __( '%1$s of %2$s %3$s' , $this->ltd ) , __( 'Change' ) , __( 'Plugin' ) , __( 'Capabilities' ) ) , $capability , $this->PageSlug . '_plugin_cap' , array( $this , 'setting_plugin_cap' ) );
183
+ add_submenu_page( $this->PageSlug , __( 'Reset User Roles' , $this->ltd ) , __( 'Reset User Roles' , $this->ltd ) , $capability , $this->PageSlug . '_reset_userrole' , array( $this , 'reset_userrole' ) );
184
  }
185
 
186
  // PluginSetup
1102
 
1103
  return $capability;
1104
  }
1105
+
1106
+ // SetList
1107
+ function get_document_link( $document_type ) {
1108
+
1109
+ $link = $this->Site;
1110
+ $locale = get_locale();
1111
+
1112
+ if( !empty( $document_type ) ) {
1113
+
1114
+ if( $locale == 'ja' ) {
1115
+ $link .= 'ja/';
1116
+ } else {
1117
+ $link .= 'blog/';
1118
+ }
1119
+
1120
+ if( $document_type == 'admin_bar' ) {
1121
+ $link .= 'admin-bar-toolbar-settings/';
1122
+ }
1123
+
1124
+ }
1125
+
1126
+ echo $link;
1127
+
1128
+ }
1129
 
1130
 
1131
 
1140
  if( !empty( $_POST["record_field"] ) ) {
1141
  $RecordField = strip_tags( $_POST["record_field"] );
1142
  }
1143
+
1144
  if( !empty( $RecordField ) && !empty( $_POST["update"] ) ) {
1145
+
1146
  if( $RecordField == 'user_role' ) {
1147
  $this->update_userrole();
1148
  } elseif( $RecordField == 'site' ) {
1168
  }
1169
 
1170
  }
1171
+
1172
 
1173
  if( !empty( $RecordField ) && !empty( $_POST["reset"] ) ) {
1174
+
1175
  if( $RecordField == 'manage_metabox' ) {
1176
  delete_option( $this->Record["regist_metabox"] );
1177
  } elseif( $RecordField == 'dashboard' ) {
1178
  delete_option( $this->Record["regist_dashboard_metabox"] );
1179
  }
1180
+
1181
+ if( $RecordField == 'all_settings' ) {
1182
+ $this->update_reset_all();
1183
+ } else {
1184
+ $this->update_reset( $RecordField );
1185
+ }
1186
  }
1187
 
1188
  if( !empty( $_POST["donate_key"] ) && !empty( $_POST["update"] ) ) {
1217
  }
1218
  }
1219
 
1220
+ // DataUpdate
1221
+ function update_reset_all() {
1222
+ $Update = $this->update_validate();
1223
+ if( !empty( $Update ) && check_admin_referer( $this->Nonces["value"] , $this->Nonces["field"] ) ) {
1224
+
1225
+ foreach( $this->Record as $key => $record ) {
1226
+ if( $key != 'donate' ) {
1227
+ delete_option( $record );
1228
+ }
1229
+ }
1230
+ wp_redirect( add_query_arg( $this->MsgQ , 'delete' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1231
+ exit;
1232
+ }
1233
+ }
1234
+
1235
  // DataUpdate
1236
  function DonatingCheck() {
1237
  $Update = $this->update_validate();
1541
  add_action( 'wp_loaded' , array( $this , 'admin_init' ) );
1542
  }
1543
 
 
 
 
1544
  }
1545
 
1546
  // FilterStart
1561
  add_action( 'admin_head' , array( $this , 'remove_tab' ) );
1562
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
1563
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
1564
+ add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) , 11 );
1565
  add_action( 'admin_head' , array( $this , 'manage_metabox' ) , 11 );
1566
  add_filter( 'admin_head', array( $this , 'sidemenu' ) );
1567
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
1568
  add_filter( 'edit_form_after_title' , array( $this , 'allow_comments' ) );
1569
  add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
1570
  add_filter( 'admin_title', array( $this, 'admin_title' ) );
1571
+ add_action( 'admin_footer' , array( $this , 'admin_bar_resizing' ) );
1572
  }
1573
  }
1574
  }
1588
  if( !is_network_admin() && !empty( $UserRole ) ) {
1589
  if( array_key_exists( $UserRole , $SettingRole ) ) {
1590
 
1591
+ add_action( 'wp_footer' , array( $this , 'admin_bar_resizing' ) );
1592
+
1593
  $GetData = $this->get_flit_data( 'site' );
1594
 
1595
  if( !empty( $GetData["admin_bar"] ) ) {
2281
  // FilterStart
2282
  function admin_bar_resizing() {
2283
  global $wp_version;
2284
+ $GetData = $this->get_flit_data( 'admin_general' );
2285
+
2286
+ if ( version_compare( $wp_version , '3.8' , '>=' ) && empty( $GetData["resize_admin_bar"] ) ) {
2287
  wp_enqueue_style( $this->PageSlug . '-adminbar-resize' , $this->Url . 'css/adminbar/resize.css', array() , $this->Ver );
2288
  if( is_admin() ) {
2289
  wp_enqueue_script( $this->PageSlug . '-adminbar-resize' , $this->Url . 'js/adminbar/resize.js', array( 'jquery' ) , $this->Ver );
2290
+ } else {
2291
+ wp_enqueue_script( $this->PageSlug . '-adminbar-resize' , $this->Url . 'js/adminbar/resize-front.js', array( 'jquery' ) , $this->Ver );
2292
  }
2293
  }
2294
+
2295
  }
2296
 
2297
  // FilterStart