WP Admin UI Customize - Version 1.3.2

Version Description

  • Added meta box other than the default.
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

inc/setting_removemtabox.php CHANGED
@@ -7,6 +7,7 @@ if( !empty( $_POST["update"] ) ) {
7
  }
8
 
9
  $Data = $this->get_data( 'removemetabox' );
 
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
@@ -19,7 +20,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
19
  <div class="icon32" id="icon-tools"></div>
20
  <?php echo $this->Msg; ?>
21
  <h2><?php _e( 'Remove meta box' , $this->ltd ); ?></h2>
22
- <p>&nbsp;</p>
23
 
24
  <form id="waum_setting_removemtabox" class="waum_form" method="post" action="">
25
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
@@ -31,142 +32,49 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
31
  <div class="handlediv" title="Click to toggle"><br></div>
32
  <h3 class="hndle"><span><?php _e( 'Post' ); ?></span></h3>
33
  <div class="inside">
34
- <table class="form-table">
35
- <tbody>
36
- <?php $field = 'categorydiv'; ?>
37
- <tr>
38
- <th>
39
- <label><?php _e( 'Category' ); ?></label>
40
- </th>
41
- <td>
42
- <?php $Checked = ''; ?>
43
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
44
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
45
- </td>
46
- </tr>
47
- <?php $field = 'tagsdiv-post_tag'; ?>
48
- <tr>
49
- <th>
50
- <label><?php _e( 'Tag' ); ?></label>
51
- </th>
52
- <td>
53
- <?php $Checked = ''; ?>
54
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
55
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
56
- </td>
57
- </tr>
58
- <?php $field = 'postimagediv'; ?>
59
- <tr>
60
- <th>
61
- <label><?php _e( 'Featured Images' ); ?></label>
62
- </th>
63
- <td>
64
- <?php $Checked = ''; ?>
65
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
66
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
67
- </td>
68
- </tr>
69
- <?php $field = 'postexcerpt'; ?>
70
- <tr>
71
- <th>
72
- <label><?php _e( 'Excerpt' ); ?></label>
73
- </th>
74
- <td>
75
- <?php $Checked = ''; ?>
76
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
77
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
78
- </td>
79
- </tr>
80
- <?php $field = 'trackbacksdiv'; ?>
81
- <tr>
82
- <th>
83
- <label><?php _e( 'Send Trackbacks' ); ?></label>
84
- </th>
85
- <td>
86
- <?php $Checked = ''; ?>
87
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
88
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
89
- </td>
90
- </tr>
91
- <?php $field = 'postcustom'; ?>
92
- <tr>
93
- <th>
94
- <label><?php _e( 'Custom Fields' ); ?></label>
95
- </th>
96
- <td>
97
- <?php $Checked = ''; ?>
98
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
99
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
100
- </td>
101
- </tr>
102
- <?php $field = 'commentstatusdiv'; ?>
103
- <tr>
104
- <th>
105
- <label><?php _e( 'Discussion' ); ?></label>
106
- </th>
107
- <td>
108
- <?php $Checked = ''; ?>
109
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
110
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
111
- </td>
112
- </tr>
113
- <?php $field = 'commentsdiv'; ?>
114
- <tr>
115
- <th>
116
- <label><?php _e( 'Comments' ); ?></label>
117
- </th>
118
- <td>
119
- <?php $Checked = ''; ?>
120
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
121
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
122
- </td>
123
- </tr>
124
- <?php $field = 'slugdiv'; ?>
125
- <tr>
126
- <th>
127
- <label><?php _e( 'Slug' ); ?></label>
128
- </th>
129
- <td>
130
- <?php $Checked = ''; ?>
131
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
132
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
133
- </td>
134
- </tr>
135
- <?php $field = 'authordiv'; ?>
136
- <tr>
137
- <th>
138
- <label><?php _e( 'Author' ); ?></label>
139
- </th>
140
- <td>
141
- <?php $Checked = ''; ?>
142
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
143
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
144
- </td>
145
- </tr>
146
- <?php $field = 'revisionsdiv'; ?>
147
- <tr>
148
- <th>
149
- <label><?php _e( 'Revisions' ); ?></label>
150
- </th>
151
- <td>
152
- <?php $Checked = ''; ?>
153
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
154
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
155
- </td>
156
- </tr>
157
- <?php $field = 'formatdiv'; ?>
158
- <tr>
159
- <th>
160
- <label><?php _e( 'Format' ); ?></label>
161
- </th>
162
- <td>
163
- <?php $Checked = ''; ?>
164
- <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
165
- <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
166
- </td>
167
- </tr>
168
- </tbody>
169
- </table>
170
  </div>
171
  </div>
172
 
@@ -174,98 +82,37 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
174
  <div class="handlediv" title="Click to toggle"><br></div>
175
  <h3 class="hndle"><span><?php _e( 'Page' ); ?></span></h3>
176
  <div class="inside">
177
- <table class="form-table">
178
- <tbody>
179
- <?php $field = 'pageparentdiv'; ?>
180
- <tr>
181
- <th>
182
- <label><?php _e( 'Page Attributes' ); ?></label>
183
- </th>
184
- <td>
185
- <?php $Checked = ''; ?>
186
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
187
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
188
- </td>
189
- </tr>
190
- <?php $field = 'postimagediv'; ?>
191
- <tr>
192
- <th>
193
- <label><?php _e( 'Featured Images' ); ?></label>
194
- </th>
195
- <td>
196
- <?php $Checked = ''; ?>
197
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
198
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
199
- </td>
200
- </tr>
201
- <?php $field = 'postcustom'; ?>
202
- <tr>
203
- <th>
204
- <label><?php _e( 'Custom Fields' ); ?></label>
205
- </th>
206
- <td>
207
- <?php $Checked = ''; ?>
208
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
209
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
210
- </td>
211
- </tr>
212
- <?php $field = 'commentstatusdiv'; ?>
213
- <tr>
214
- <th>
215
- <label><?php _e( 'Discussion' ); ?></label>
216
- </th>
217
- <td>
218
- <?php $Checked = ''; ?>
219
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
220
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
221
- </td>
222
- </tr>
223
- <?php $field = 'commentsdiv'; ?>
224
- <tr>
225
- <th>
226
- <label><?php _e( 'Comments' ); ?></label>
227
- </th>
228
- <td>
229
- <?php $Checked = ''; ?>
230
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
231
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
232
- </td>
233
- </tr>
234
- <?php $field = 'slugdiv'; ?>
235
- <tr>
236
- <th>
237
- <label><?php _e( 'Slug' ); ?></label>
238
- </th>
239
- <td>
240
- <?php $Checked = ''; ?>
241
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
242
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
243
- </td>
244
- </tr>
245
- <?php $field = 'authordiv'; ?>
246
- <tr>
247
- <th>
248
- <label><?php _e( 'Author' ); ?></label>
249
- </th>
250
- <td>
251
- <?php $Checked = ''; ?>
252
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
253
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
254
- </td>
255
- </tr>
256
- <?php $field = 'revisionsdiv'; ?>
257
- <tr>
258
- <th>
259
- <label><?php _e( 'Revisions' ); ?></label>
260
- </th>
261
- <td>
262
- <?php $Checked = ''; ?>
263
- <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
264
- <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
265
- </td>
266
- </tr>
267
- </tbody>
268
- </table>
269
  </div>
270
  </div>
271
 
7
  }
8
 
9
  $Data = $this->get_data( 'removemetabox' );
10
+ $Metaboxes = $this->get_data( "regist_metabox" );
11
 
12
  // include js css
13
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
20
  <div class="icon32" id="icon-tools"></div>
21
  <?php echo $this->Msg; ?>
22
  <h2><?php _e( 'Remove meta box' , $this->ltd ); ?></h2>
23
+ <p><?php _e( 'Please once access the "post" or "page" edit screen to load the meta box for the new plugin.' , $this->ltd ); ?></p>
24
 
25
  <form id="waum_setting_removemtabox" class="waum_form" method="post" action="">
26
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
32
  <div class="handlediv" title="Click to toggle"><br></div>
33
  <h3 class="hndle"><span><?php _e( 'Post' ); ?></span></h3>
34
  <div class="inside">
35
+
36
+ <?php if( empty( $Metaboxes["metaboxes"]["post"] ) ) : ?>
37
+
38
+ <p><?php _e( 'Could not read the meta box.' , $this->ltd ); ?></p>
39
+ <p><?php _e( 'Meta boxes will be loaded automatically when you view once the post editing screen.' , $this->ltd ); ?></p>
40
+
41
+ <?php else: ?>
42
+
43
+ <table class="form-table">
44
+ <tbody>
45
+ <?php foreach( $Metaboxes["metaboxes"]["post"] as $context => $meta_box ) : ?>
46
+ <?php foreach( $meta_box as $priority => $box ) : ?>
47
+ <?php foreach( $box as $metabox_id => $metabox_title ) : ?>
48
+ <?php if( $metabox_id != 'submitdiv' ) : ?>
49
+ <tr>
50
+ <th><?php echo $metabox_title; ?></th>
51
+ <td>
52
+ <?php $Checked = ''; ?>
53
+ <?php if( !empty( $Data["post"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
54
+ <label><input type="checkbox" name="data[post][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
55
+ </td>
56
+ </tr>
57
+ <?php endif; ?>
58
+ <?php endforeach; ?>
59
+ <?php endforeach; ?>
60
+ <?php endforeach; ?>
61
+
62
+ <?php global $wp_version; ?>
63
+ <?php if ( version_compare( $wp_version , '3.5.1' , '>' ) ) : ?>
64
+ <tr>
65
+ <th><?php _e( 'Post Formats' ); ?></th>
66
+ <td>
67
+ <?php $Checked = ''; ?>
68
+ <?php if( !empty( $Data["post"]["postformat"] ) ) : $Checked = 'checked="checked"'; endif; ?>
69
+ <label><input type="checkbox" name="data[post][postformat]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
70
+ </td>
71
+ </tr>
72
+ <?php endif; ?>
73
+ </tbody>
74
+ </table>
75
+
76
+
77
+ <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  </div>
79
  </div>
80
 
82
  <div class="handlediv" title="Click to toggle"><br></div>
83
  <h3 class="hndle"><span><?php _e( 'Page' ); ?></span></h3>
84
  <div class="inside">
85
+
86
+ <?php if( empty( $Metaboxes["metaboxes"]["page"] ) ) : ?>
87
+
88
+ <p><?php _e( 'Could not read the meta box.' , $this->ltd ); ?></p>
89
+ <p><?php _e( 'Meta boxes will be loaded automatically when you view once the page editing screen.' , $this->ltd ); ?></p>
90
+
91
+ <?php else: ?>
92
+
93
+ <table class="form-table">
94
+ <tbody>
95
+ <?php foreach( $Metaboxes["metaboxes"]["page"] as $context => $meta_box ) : ?>
96
+ <?php foreach( $meta_box as $priority => $box ) : ?>
97
+ <?php foreach( $box as $metabox_id => $metabox_title ) : ?>
98
+ <?php if( $metabox_id != 'submitdiv' ) : ?>
99
+ <tr>
100
+ <th><?php echo $metabox_title; ?></th>
101
+ <td>
102
+ <?php $Checked = ''; ?>
103
+ <?php if( !empty( $Data["page"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
104
+ <label><input type="checkbox" name="data[page][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
105
+ </td>
106
+ </tr>
107
+ <?php endif; ?>
108
+ <?php endforeach; ?>
109
+ <?php endforeach; ?>
110
+ <?php endforeach; ?>
111
+ </tbody>
112
+ </table>
113
+
114
+ <?php endif; ?>
115
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  </div>
117
  </div>
118
 
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc-ja.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-05-04 01:16+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -145,6 +145,18 @@ msgstr "サブメニュー"
145
  msgid "Remove meta box"
146
  msgstr "メタボックス削除"
147
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  msgid "Add New Post and Edit Post screen setting"
149
  msgstr "新規投稿と投稿編集の設定"
150
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-05-21 01:42+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
145
  msgid "Remove meta box"
146
  msgstr "メタボックス削除"
147
 
148
+ msgid "Could not read the meta box."
149
+ msgstr "メタボックスの読み込みができませんでした。"
150
+
151
+ msgid "Meta boxes will be loaded automatically when you view once the post editing screen."
152
+ msgstr "投稿編集画面を一度表示すると自動でメタボックスが読み込まれます。"
153
+
154
+ msgid "Meta boxes will be loaded automatically when you view once the page editing screen."
155
+ msgstr "固定ページ編集画面を一度表示すると自動でメタボックスが読み込まれます。"
156
+
157
+ msgid "Please once access the \"post\" or \"page\" edit screen to load the meta box for the new plugin."
158
+ msgstr "新しいプラグインのメタボックスを読み込むには編集画面に一度アクセスしてください。"
159
+
160
  msgid "Add New Post and Edit Post screen setting"
161
  msgstr "新規投稿と投稿編集の設定"
162
 
languages/wauc.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-04-06 19:53+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -145,6 +145,18 @@ msgstr ""
145
  msgid "Remove meta box"
146
  msgstr ""
147
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  msgid "Add New Post and Edit Post screen setting"
149
  msgstr ""
150
 
@@ -163,10 +175,10 @@ msgstr ""
163
  msgid "Login Screen"
164
  msgstr ""
165
 
166
- msgid "Login Screen Settings"
167
  msgstr ""
168
 
169
- msgid "Is not possible to check the login form if you do not log out in the case of MultiSite."
170
  msgstr ""
171
 
172
  msgid "Show Login Screen"
@@ -198,3 +210,4 @@ msgstr ""
198
 
199
  msgid "In your case."
200
  msgstr ""
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-05-21 01:00+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
145
  msgid "Remove meta box"
146
  msgstr ""
147
 
148
+ msgid "Could not read the meta box."
149
+ msgstr ""
150
+
151
+ msgid "Meta boxes will be loaded automatically when you view once the post editing screen."
152
+ msgstr ""
153
+
154
+ msgid "Meta boxes will be loaded automatically when you view once the page editing screen."
155
+ msgstr ""
156
+
157
+ msgid "Please once access the \"post\" or \"page\" edit screen to load the meta box for the new plugin."
158
+ msgstr ""
159
+
160
  msgid "Add New Post and Edit Post screen setting"
161
  msgstr ""
162
 
175
  msgid "Login Screen"
176
  msgstr ""
177
 
178
+ msgid "Is not possible to check the login form if you do not log out in the case of MultiSite."
179
  msgstr ""
180
 
181
+ msgid "Login Screen Settings"
182
  msgstr ""
183
 
184
  msgid "Show Login Screen"
210
 
211
  msgid "In your case."
212
  msgstr ""
213
+
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_3_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.6
7
- Stable tag: 1.3
8
  License: GPL2
9
 
10
  Customize the management screen UI.
@@ -49,6 +49,9 @@ These to Customization is possible.
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.3.1 =
53
  * Added some variables.
54
  * Fixed bug : Error to does not exist sub menu in the side menu settings.
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_3_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.6
7
+ Stable tag: 1.3.2
8
  License: GPL2
9
 
10
  Customize the management screen UI.
49
 
50
  == Changelog ==
51
 
52
+ = 1.3.2 =
53
+ * Added meta box other than the default.
54
+
55
  = 1.3.1 =
56
  * Added some variables.
57
  * Fixed bug : Error to does not exist sub menu in the side menu settings.
wp-admin-ui-customize.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: It is an excellent plugin to customize the management screen.
5
- Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_1
6
- Version: 1.3.1
7
  Author: gqevu6bsiz
8
- Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_1
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -47,7 +47,7 @@ class WP_Admin_UI_Customize
47
 
48
 
49
  function __construct() {
50
- $this->Ver = '1.3.1';
51
  $this->Name = 'WP Admin UI Customize';
52
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
53
  $this->Site = 'http://wpadminuicustomize.com/';
@@ -61,6 +61,7 @@ class WP_Admin_UI_Customize
61
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
62
  "sidemenu" => $this->ltd . '_sidemenu_setting',
63
  "removemetabox" => $this->ltd . '_removemetabox_setting',
 
64
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
65
  "appearance_menus" => $this->ltd . '_appearance_menus_setting',
66
  "loginscreen" => $this->ltd . '_loginscreen_setting',
@@ -245,6 +246,7 @@ class WP_Admin_UI_Customize
245
 
246
  $this->Menu = $menu;
247
  $this->SubMenu = $submenu;
 
248
  }
249
 
250
  // SetList
@@ -255,6 +257,60 @@ class WP_Admin_UI_Customize
255
 
256
  }
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  // SetList
259
  function menu_widget( $menu_widget ) {
260
  $new_widget = '';
@@ -791,15 +847,22 @@ class WP_Admin_UI_Customize
791
  }
792
  // admin UI
793
  if ( is_admin() ) {
 
794
  // default side menu load.
795
  add_action( 'admin_menu' , array( $this , 'sidemenu_default_load' ) , 10000 );
 
796
  // default admin bar menu load.
797
  add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_default_load' ) , 1 );
 
 
 
 
798
  // admin init
799
  add_action( 'init' , array( $this , 'admin_init' ) );
 
800
  }
801
  }
802
-
803
  // FilterStart
804
  function admin_init() {
805
 
@@ -821,7 +884,8 @@ class WP_Admin_UI_Customize
821
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
822
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
823
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
824
- add_action( 'admin_menu' , array( $this , 'removemetabox' ) );
 
825
  add_filter( 'admin_menu', array( $this , 'sidemenu' ) , 10001 );
826
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
827
  add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
@@ -1128,23 +1192,45 @@ class WP_Admin_UI_Customize
1128
 
1129
  // FilterStart
1130
  function removemetabox() {
1131
- $GetData = get_option( $this->Record["removemetabox"] );
 
1132
 
 
 
1133
  if( !empty( $GetData["UPFN"] ) ) {
1134
  unset( $GetData["UPFN"] );
1135
 
1136
  if( !empty( $GetData ) && is_array( $GetData ) ) {
1137
- foreach($GetData as $post_type => $val) {
1138
- foreach($val as $id => $v) {
1139
- if( $id == 'postimagediv' ) {
1140
- if( current_theme_supports( 'post-thumbnails' ) ) {
1141
- remove_post_type_support( $post_type , 'thumbnail' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1142
  }
1143
- } elseif( $id == 'formatdiv' && version_compare( $GLOBALS['wp_version'], '3.5.1', '>' ) ) {
1144
- remove_post_type_support( "post" , "post-formats" );
1145
- } else {
1146
- remove_meta_box( $id , $post_type , 'normal' );
1147
  }
 
 
 
 
 
 
 
1148
  }
1149
  }
1150
  }
@@ -1152,6 +1238,26 @@ class WP_Admin_UI_Customize
1152
 
1153
  }
1154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1155
  // FilterStart
1156
  function sidemenu() {
1157
  global $menu;
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: It is an excellent plugin to customize the management screen.
5
+ Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_2
6
+ Version: 1.3.2
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_2
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
47
 
48
 
49
  function __construct() {
50
+ $this->Ver = '1.3.2';
51
  $this->Name = 'WP Admin UI Customize';
52
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
53
  $this->Site = 'http://wpadminuicustomize.com/';
61
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
62
  "sidemenu" => $this->ltd . '_sidemenu_setting',
63
  "removemetabox" => $this->ltd . '_removemetabox_setting',
64
+ "regist_metabox" => $this->ltd . '_regist_metabox',
65
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
66
  "appearance_menus" => $this->ltd . '_appearance_menus_setting',
67
  "loginscreen" => $this->ltd . '_loginscreen_setting',
246
 
247
  $this->Menu = $menu;
248
  $this->SubMenu = $submenu;
249
+
250
  }
251
 
252
  // SetList
257
 
258
  }
259
 
260
+ // SetList
261
+ function post_meta_boxes_load() {
262
+ global $current_screen;
263
+
264
+ if( $current_screen->base == 'post' && $current_screen->action != 'add' ) {
265
+ if( $current_screen->post_type == 'post' or $current_screen->post_type == 'page' ) {
266
+
267
+ global $wp_meta_boxes;
268
+ global $post_type;
269
+
270
+ $GetData = $this->get_data( "regist_metabox" );
271
+ $Metaboxes = $wp_meta_boxes[$post_type];
272
+
273
+ $Update = array();
274
+ if( empty( $GetData ) ) {
275
+
276
+ $Update["UPFN"] = $this->UPFN;
277
+ foreach( $Metaboxes as $context => $meta_box ) {
278
+ foreach( $meta_box as $priority => $box ) {
279
+ foreach( $box as $metabox_id => $b ) {
280
+ $Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
281
+ }
282
+ }
283
+ }
284
+
285
+ } else {
286
+
287
+ unset( $GetData["metaboxes"][$post_type] );
288
+ $Update = $GetData;
289
+ foreach( $Metaboxes as $context => $meta_box ) {
290
+ foreach( $meta_box as $priority => $box ) {
291
+ foreach( $box as $metabox_id => $b ) {
292
+ if( !empty( $GetData["metaboxes"][$post_type][$context][$priority][$b["id"]] ) ) {
293
+ $Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
294
+ unset( $Metaboxes[$context][$priority][$b["id"]] );
295
+ } else {
296
+ $Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ }
303
+
304
+ if( !empty( $Update ) ) {
305
+ update_option( $this->Record["regist_metabox"] , $Update );
306
+ }
307
+
308
+ }
309
+ }
310
+
311
+ }
312
+
313
+
314
  // SetList
315
  function menu_widget( $menu_widget ) {
316
  $new_widget = '';
847
  }
848
  // admin UI
849
  if ( is_admin() ) {
850
+
851
  // default side menu load.
852
  add_action( 'admin_menu' , array( $this , 'sidemenu_default_load' ) , 10000 );
853
+
854
  // default admin bar menu load.
855
  add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_default_load' ) , 1 );
856
+
857
+ // default post metabox load.
858
+ add_action( 'admin_head' , array( $this , 'post_meta_boxes_load' ) , 10 );
859
+
860
  // admin init
861
  add_action( 'init' , array( $this , 'admin_init' ) );
862
+
863
  }
864
  }
865
+
866
  // FilterStart
867
  function admin_init() {
868
 
884
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
885
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
886
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
887
+ add_action( 'admin_head' , array( $this , 'removemetabox' ) , 11 );
888
+ add_action( 'admin_init' , array( $this , 'remove_postformats' ) );
889
  add_filter( 'admin_menu', array( $this , 'sidemenu' ) , 10001 );
890
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
891
  add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
1192
 
1193
  // FilterStart
1194
  function removemetabox() {
1195
+ global $wp_meta_boxes;
1196
+ global $current_screen;
1197
 
1198
+ $GetData = get_option( $this->Record["removemetabox"] );
1199
+
1200
  if( !empty( $GetData["UPFN"] ) ) {
1201
  unset( $GetData["UPFN"] );
1202
 
1203
  if( !empty( $GetData ) && is_array( $GetData ) ) {
1204
+
1205
+ if( $current_screen->base == 'post' ) {
1206
+ if( $current_screen->post_type == 'post' or $current_screen->post_type == 'page' ) {
1207
+
1208
+ global $post_type;
1209
+
1210
+ if( !empty( $GetData[$post_type] ) ) {
1211
+
1212
+ $Metaboxes = $wp_meta_boxes[$post_type];
1213
+ $Data = $GetData[$post_type];
1214
+
1215
+ $Remove_metaboxes = array();
1216
+ foreach( $Metaboxes as $context => $meta_box ) {
1217
+ foreach( $meta_box as $priority => $box ) {
1218
+ foreach( $box as $metabox_id => $b ) {
1219
+ if( array_key_exists( $metabox_id , $Data ) ) {
1220
+ $Remove_metaboxes[$metabox_id] = array( "context" => $context , "priority" => $priority );
1221
+ }
1222
+ }
1223
+ }
1224
  }
1225
+
 
 
 
1226
  }
1227
+
1228
+ if( !empty( $Remove_metaboxes ) ) {
1229
+ foreach( $Remove_metaboxes as $metabox_id => $box ) {
1230
+ remove_meta_box( $metabox_id , $post_type , $box["context"] );
1231
+ }
1232
+ }
1233
+
1234
  }
1235
  }
1236
  }
1238
 
1239
  }
1240
 
1241
+ // FilterStart
1242
+ function remove_postformats() {
1243
+ if( version_compare( $GLOBALS['wp_version'], '3.5.1', '>' ) ) {
1244
+ $GetData = get_option( $this->Record["removemetabox"] );
1245
+
1246
+ if( !empty( $GetData["UPFN"] ) ) {
1247
+ unset( $GetData["UPFN"] );
1248
+
1249
+ if( !empty( $GetData ) && is_array( $GetData ) ) {
1250
+
1251
+ if( !empty( $GetData["post"]["postformat"] ) ) {
1252
+ remove_post_type_support( "post" , "post-formats" );
1253
+ }
1254
+
1255
+ }
1256
+
1257
+ }
1258
+ }
1259
+ }
1260
+
1261
  // FilterStart
1262
  function sidemenu() {
1263
  global $menu;