WP Admin UI Customize - Version 1.0

Version Description

This is the initial release.

=

Download this release

Release Info

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

Version 1.0

inc/setting_admin_general.php ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_admin_general();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'admin_general' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'admin_general' );
10
+ $User = wp_get_current_user();
11
+
12
+ // include js css
13
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
14
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
15
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
+
17
+ ?>
18
+
19
+ <div class="wrap">
20
+ <div class="icon32" id="icon-tools"></div>
21
+ <?php echo $this->Msg; ?>
22
+ <h2><?php _e( 'Admin screen setting' , $this->ltd ); ?></h2>
23
+ <p>&nbsp;</p>
24
+
25
+ <form id="waum_setting_admin_genelral" class="waum_form" method="post" action="">
26
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
27
+ <?php wp_nonce_field(); ?>
28
+
29
+ <div class="metabox-holder columns-1">
30
+
31
+ <div class="postbox">
32
+ <div class="handlediv" title="Click to toggle"><br></div>
33
+ <h3 class="hndle"><span>Admin bar <?php _e( 'Upper left menu' , $this->ltd ); ?></span></h3>
34
+ <div class="inside">
35
+ <table class="form-table">
36
+ <tbody>
37
+ <?php $field = 'wp-logo'; ?>
38
+ <tr>
39
+ <th>
40
+ <?php _e( 'Wordpress Logo' , $this->ltd ); ?>
41
+ </th>
42
+ <td>
43
+ <?php $Checked = ''; ?>
44
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
45
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?>> <?php _e ( 'Hide' ); ?></label>
46
+ </td>
47
+ </tr>
48
+ <?php $field = 'comment'; ?>
49
+ <tr>
50
+ <th>
51
+ <?php _e( 'Comment' ); ?>
52
+ </th>
53
+ <td>
54
+ <?php $Checked = ''; ?>
55
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
56
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?>> <?php _e ( 'Hide' ); ?></label>
57
+ </td>
58
+ </tr>
59
+ <?php $field = 'new_content'; ?>
60
+ <tr>
61
+ <th>
62
+ <?php _e( 'Add New' , $this->ltd ); ?>
63
+ </th>
64
+ <td>
65
+ <?php $Checked = ''; ?>
66
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
67
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?>> <?php _e ( 'Hide' ); ?></label>
68
+ </td>
69
+ </tr>
70
+ <?php $field = 'update_menu'; ?>
71
+ <tr>
72
+ <th>
73
+ <?php _e( 'Update Menu' , $this->ltd ); ?>
74
+ </th>
75
+ <td>
76
+ <?php $Checked = ''; ?>
77
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
78
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?>> <?php _e ( 'Hide' ); ?></label>
79
+ </td>
80
+ </tr>
81
+ </tbody>
82
+ </table>
83
+
84
+ </div>
85
+ </div>
86
+
87
+ <div class="postbox">
88
+ <div class="handlediv" title="Click to toggle"><br></div>
89
+ <h3 class="hndle"><span>Admin bar <?php _e( 'Upper right menu' , $this->ltd ); ?></span></h3>
90
+ <div class="inside">
91
+ <table class="form-table">
92
+ <tbody>
93
+ <?php $field = 'my-account-title'; ?>
94
+ <tr>
95
+ <th>
96
+ <label for=""><?php _e( 'Account Title' , $this->ltd ); ?></label>
97
+ </th>
98
+ <td>
99
+ <?php $Val = ''; ?>
100
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
101
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
102
+ <code>[AcountName]</code>
103
+ <p class="description">Default: <?php echo sprintf( __('Howdy, %1$s'), $User->data->display_name ); ?></p>
104
+ <p class="description">Ex: Hello! My Name is [AcountName]. => <strong>Hello! My Name is <?php echo $User->data->display_name; ?>.</strong></p>
105
+ </td>
106
+ </tr>
107
+ <?php $field = 'edit-profile'; ?>
108
+ <tr>
109
+ <th>
110
+ <?php _e( 'Profile Edit' , $this->ltd ); ?>
111
+ </th>
112
+ <td>
113
+ <?php $Checked = ''; ?>
114
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
115
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?>> <?php _e ( 'Hide' ); ?></label>
116
+ </td>
117
+ </tr>
118
+ </tbody>
119
+ </table>
120
+
121
+ </div>
122
+ </div>
123
+
124
+ <div class="postbox">
125
+ <div class="handlediv" title="Click to toggle"><br></div>
126
+ <h3 class="hndle"><span><?php echo _e( 'Notice' , $this->ltd ); ?></span></h3>
127
+ <div class="inside">
128
+ <table class="form-table">
129
+ <tbody>
130
+ <tr>
131
+ <th>
132
+ <label><?php _e( 'Wordpress core update notice' , $this->ltd ); ?></label>
133
+ </th>
134
+ <td>
135
+ <?php $field = 'notice_update_core'; ?>
136
+ <?php $Checked = ''; ?>
137
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
138
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
139
+ </td>
140
+ </tr>
141
+ <tr>
142
+ <th>
143
+ <label><?php _e( 'Plugin update notice' , $this->ltd ); ?></label>
144
+ </th>
145
+ <td>
146
+ <?php $field = 'notice_update_plugin'; ?>
147
+ <?php $Checked = ''; ?>
148
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
149
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <th>
154
+ <label><?php _e( 'Theme update notice' , $this->ltd ); ?></label>
155
+ </th>
156
+ <td>
157
+ <?php $field = 'notice_update_theme'; ?>
158
+ <?php $Checked = ''; ?>
159
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
160
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
161
+ </td>
162
+ </tr>
163
+ </tbody>
164
+ </table>
165
+ </div>
166
+ </div>
167
+
168
+ <div class="postbox">
169
+ <div class="handlediv" title="Click to toggle"><br></div>
170
+ <h3 class="hndle"><span><?php echo _e( 'Screen Options and Help tab' , $this->ltd ); ?></span></h3>
171
+ <div class="inside">
172
+ <table class="form-table">
173
+ <tbody>
174
+ <tr>
175
+ <th>
176
+ <label><?php _e( 'Screen Options' ); ?></label>
177
+ </th>
178
+ <td>
179
+ <?php $field = 'screen_option_tab'; ?>
180
+ <?php $Checked = ''; ?>
181
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
182
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
183
+ </td>
184
+ </tr>
185
+ <tr>
186
+ <th>
187
+ <label><?php _e( 'Help' ); ?></label>
188
+ </th>
189
+ <td>
190
+ <?php $field = 'help_tab'; ?>
191
+ <?php $Checked = ''; ?>
192
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
193
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
194
+ </td>
195
+ </tr>
196
+ </tbody>
197
+ </table>
198
+ </div>
199
+ </div>
200
+
201
+ <div class="postbox">
202
+ <div class="handlediv" title="Click to toggle"><br></div>
203
+ <h3 class="hndle"><span><?php echo _e( 'Footer' ); ?></span></h3>
204
+ <div class="inside">
205
+ <table class="form-table">
206
+ <tbody>
207
+ <tr>
208
+ <th>
209
+ <label><?php _e( 'Footer text' , $this->ltd ); ?></label>
210
+ </th>
211
+ <td>
212
+ <?php $field = 'footer_text'; ?>
213
+ <?php $Val = ''; ?>
214
+ <?php if( !empty( $Data[$field] ) ) : $Val = esc_html( stripslashes( $Data[$field] ) ); endif; ?>
215
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="large-text" />
216
+ <p class="description">Default: <?php _e( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ); ?></p>
217
+ </td>
218
+ </tr>
219
+ </tbody>
220
+ </table>
221
+ </div>
222
+ </div>
223
+
224
+ <div class="postbox">
225
+ <div class="handlediv" title="Click to toggle"><br></div>
226
+ <h3 class="hndle"><span><?php _e( 'General' ); ?></span></h3>
227
+ <div class="inside">
228
+ <table class="form-table">
229
+ <tbody>
230
+ <?php $field = 'css'; ?>
231
+ <tr>
232
+ <th>
233
+ <label><?php _e( 'Css file to load' , $this->ltd ); ?></label>
234
+ </th>
235
+ <td>
236
+ <?php $Val = ''; ?>
237
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
238
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
239
+ <code>[blog_url] [template_directory_uri]</code>
240
+ </td>
241
+ </tr>
242
+ </tbody>
243
+ </table>
244
+ </div>
245
+ </div>
246
+
247
+ </div>
248
+
249
+ <p class="submit">
250
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
251
+ </p>
252
+
253
+ <p class="submit reset">
254
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
255
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
256
+ </p>
257
+
258
+ </form>
259
+
260
+ </div>
inc/setting_dashboard.php ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_dashboard();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'dashboard' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'dashboard' );
10
+
11
+ // include js css
12
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
+
16
+ ?>
17
+
18
+ <div class="wrap">
19
+ <div class="icon32" id="icon-tools"></div>
20
+ <?php echo $this->Msg; ?>
21
+ <h2><?php _e( 'Dashboard' ); ?><?php _e( 'Settings' ); ?></h2>
22
+ <p>&nbsp;</p>
23
+
24
+ <form id="waum_setting_dashboard" class="waum_form" method="post" action="">
25
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
+ <?php wp_nonce_field(); ?>
27
+
28
+ <div class="metabox-holder columns-1">
29
+
30
+ <div class="postbox">
31
+ <div class="handlediv" title="Click to toggle"><br></div>
32
+ <h3 class="hndle"><span>Meta boxes</span></h3>
33
+ <div class="inside">
34
+ <table class="form-table">
35
+ <tbody>
36
+ <?php $field = 'show_welcome_panel'; ?>
37
+ <tr>
38
+ <th>
39
+ <label><?php _e( 'Welcome Panel' , $this->ltd ); ?></label>
40
+ </th>
41
+ <td>
42
+ <?php $Checked = ''; ?>
43
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
44
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
45
+ </td>
46
+ </tr>
47
+ <?php $field = 'dashboard_right_now'; ?>
48
+ <tr>
49
+ <th>
50
+ <label><?php _e( 'Right Now' ); ?></label>
51
+ </th>
52
+ <td>
53
+ <?php $Checked = ''; ?>
54
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
55
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
56
+ </td>
57
+ </tr>
58
+ <?php $field = 'dashboard_recent_comments'; ?>
59
+ <tr>
60
+ <th>
61
+ <label><?php _e( 'Recent Comments' ); ?></label>
62
+ </th>
63
+ <td>
64
+ <?php $Checked = ''; ?>
65
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
66
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
67
+ </td>
68
+ </tr>
69
+ <?php $field = 'dashboard_incoming_links'; ?>
70
+ <tr>
71
+ <th>
72
+ <label><?php _e( 'Incoming Links' ); ?></label>
73
+ </th>
74
+ <td>
75
+ <?php $Checked = ''; ?>
76
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
77
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
78
+ </td>
79
+ </tr>
80
+ <?php $field = 'dashboard_plugins'; ?>
81
+ <tr>
82
+ <th>
83
+ <label><?php _e( 'Plugins' ); ?></label>
84
+ </th>
85
+ <td>
86
+ <?php $Checked = ''; ?>
87
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
88
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
89
+ </td>
90
+ </tr>
91
+ <?php $field = 'dashboard_quick_press'; ?>
92
+ <tr>
93
+ <th>
94
+ <label><?php _e( 'QuickPress' ); ?></label>
95
+ </th>
96
+ <td>
97
+ <?php $Checked = ''; ?>
98
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
99
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
100
+ </td>
101
+ </tr>
102
+ <?php $field = 'dashboard_recent_drafts'; ?>
103
+ <tr>
104
+ <th>
105
+ <label><?php _e( 'Recent Drafts' ); ?></label>
106
+ </th>
107
+ <td>
108
+ <?php $Checked = ''; ?>
109
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
110
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
111
+ </td>
112
+ </tr>
113
+ <?php $field = 'dashboard_primary'; ?>
114
+ <tr>
115
+ <th>
116
+ <label><?php _e( 'WordPress Blog' ); ?></label>
117
+ </th>
118
+ <td>
119
+ <?php $Checked = ''; ?>
120
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
121
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
122
+ </td>
123
+ </tr>
124
+ <?php $field = 'dashboard_secondary'; ?>
125
+ <tr>
126
+ <th>
127
+ <label><?php _e( 'Other WordPress News' ); ?></label>
128
+ </th>
129
+ <td>
130
+ <?php $Checked = ''; ?>
131
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
132
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
133
+ </td>
134
+ </tr>
135
+ </tbody>
136
+ </table>
137
+ </div>
138
+ </div>
139
+
140
+ </div>
141
+
142
+ <p class="submit">
143
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
144
+ </p>
145
+
146
+ <p class="submit reset">
147
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
148
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
149
+ </p>
150
+
151
+ </form>
152
+
153
+ </div>
inc/setting_default.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_userrole();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'user_role' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'user_role' );
10
+ $UserRoles = $this->get_user_role();
11
+
12
+ // include js css
13
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
14
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
15
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
+
17
+ ?>
18
+ <div class="wrap">
19
+ <div class="icon32" id="icon-tools"></div>
20
+ <?php echo $this->Msg; ?>
21
+ <h2><?php echo $this->Name; ?></h2>
22
+ <p><?php _e( 'Customize the UI of the management screen for all users.' , $this->ltd ); ?>
23
+ <p><?php _e ('Please select the user role you want to apply the settings.' , $this->ltd ); ?></p>
24
+
25
+ <form id="waum_setting_site" class="waum_form" method="post" action="">
26
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
27
+ <?php wp_nonce_field(); ?>
28
+
29
+ <div class="metabox-holder columns-1">
30
+
31
+ <div class="postbox">
32
+ <div class="handlediv" title="Click to toggle"><br></div>
33
+ <h3 class="hndle"><span><?php _e( 'Role' ); ?></span></h3>
34
+ <div class="inside">
35
+ <?php $field = 'user_role'; ?>
36
+ <?php foreach($UserRoles as $key => $val) : ?>
37
+ <?php $Checked = ''; ?>
38
+ <?php if( !empty( $Data[$key] ) ) : $Checked = 'checked="checked"'; endif; ?>
39
+ <p>
40
+ <label>
41
+ <input type="checkbox" name="data[<?php echo $field; ?>][<?php echo $key; ?>]" value="1" <?php echo $Checked; ?> />
42
+ <?php echo $val; ?>
43
+ </label>
44
+ </p>
45
+ <?php endforeach; ?>
46
+ </div>
47
+ </div>
48
+
49
+ </div>
50
+
51
+ <p class="submit">
52
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
53
+ </p>
54
+
55
+ <p class="submit reset">
56
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
57
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
58
+ </p>
59
+
60
+ </form>
61
+
62
+ </div>
inc/setting_loginscreen.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_loginscreen();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'loginscreen' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'loginscreen' );
10
+
11
+ // include js css
12
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style('thickbox');
15
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
+
17
+ ?>
18
+
19
+ <div class="wrap">
20
+ <div class="icon32" id="icon-tools"></div>
21
+ <?php echo $this->Msg; ?>
22
+ <h2><?php _e( 'Login Screen Settings' , $this->ltd ); ?></h2>
23
+ <p>&nbsp;</p>
24
+
25
+ <form id="waum_setting_loginscreen" class="waum_form" method="post" action="">
26
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
27
+ <?php wp_nonce_field(); ?>
28
+
29
+ <a title="<?php _e( 'Login Screen' , $this->ltd ); ?>" href="<?php echo get_option( 'siteurl' ); ?>/wp-login.php?TB_iframe=1&width=520&height=520" class="thickbox"><?php _e( 'Show Login Screen' , $this->ltd ); ?></a>
30
+
31
+ <div class="metabox-holder columns-1">
32
+
33
+ <div class="postbox">
34
+ <div class="handlediv" title="Click to toggle"><br></div>
35
+ <h3 class="hndle"><span><?php _e( 'Login Form' , $this->ltd ); ?></span></h3>
36
+ <div class="inside">
37
+ <table class="form-table">
38
+ <tbody>
39
+ <?php $field = 'login_headerurl'; ?>
40
+ <tr>
41
+ <th>
42
+ <label><?php _e( 'The link after clicking on the logo' , $this->ltd ); ?></label>
43
+ </th>
44
+ <td>
45
+ <?php $Val = ''; ?>
46
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
47
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
48
+ <code>[blog_url]</code>
49
+ </td>
50
+ </tr>
51
+ <?php $field = 'login_headertitle'; ?>
52
+ <tr>
53
+ <th>
54
+ <label><?php _e( 'Logo title' , $this->ltd ); ?></label>
55
+ </th>
56
+ <td>
57
+ <?php $Val = ''; ?>
58
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
59
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
60
+ <code>[blog_name]</code>
61
+ </td>
62
+ </tr>
63
+ <?php $field = 'login_headerlogo'; ?>
64
+ <tr>
65
+ <th>
66
+ <label><?php _e( 'Logo Image path' , $this->ltd ); ?></label>
67
+ </th>
68
+ <td>
69
+ <?php $Val = ''; ?>
70
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
71
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
72
+ <code>[blog_url] [template_directory_uri]</code>
73
+ </td>
74
+ </tr>
75
+ </tbody>
76
+ </table>
77
+ </div>
78
+ </div>
79
+
80
+ <div class="postbox">
81
+ <div class="handlediv" title="Click to toggle"><br></div>
82
+ <h3 class="hndle"><span><?php _e( 'General' ); ?></span></h3>
83
+ <div class="inside">
84
+ <table class="form-table">
85
+ <tbody>
86
+ <?php $field = 'login_css'; ?>
87
+ <tr>
88
+ <th>
89
+ <label><?php _e( 'Css file to load' , $this->ltd ); ?></label>
90
+ </th>
91
+ <td>
92
+ <?php $Val = ''; ?>
93
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
94
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
95
+ <code>[blog_url] [template_directory_uri]</code>
96
+ </td>
97
+ </tr>
98
+ <?php $field = 'login_footer'; ?>
99
+ <tr>
100
+ <th>
101
+ <label><?php _e( 'Footer text' , $this->ltd ); ?></label>
102
+ </th>
103
+ <td>
104
+ <?php $Val = ''; ?>
105
+ <?php if( !empty( $Data[$field] ) ) : $Val = stripslashes( esc_html( $Data[$field] ) ); endif; ?>
106
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="large-text" id="<?php echo $field; ?>">
107
+ </td>
108
+ </tr>
109
+ </tbody>
110
+ </table>
111
+ </div>
112
+ </div>
113
+
114
+ </div>
115
+
116
+ <p class="submit">
117
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
118
+ </p>
119
+
120
+ <p class="submit reset">
121
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
122
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
123
+ </p>
124
+
125
+ </form>
126
+
127
+ </div>
inc/setting_removemtabox.php ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_removemetabox();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'removemetabox' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'removemetabox' );
10
+
11
+ // include js css
12
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
+
16
+ ?>
17
+
18
+ <div class="wrap">
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" />
26
+ <?php wp_nonce_field(); ?>
27
+
28
+ <div class="metabox-holder columns-1">
29
+
30
+ <div class="postbox">
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
+ <?php $field = 'postexcerpt'; ?>
169
+ <tr>
170
+ <th>
171
+ <label><?php _e( 'Excerpt' ); ?></label>
172
+ </th>
173
+ <td>
174
+ <?php $Checked = ''; ?>
175
+ <?php if( !empty( $Data["post"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
176
+ <label><input type="checkbox" name="data[post][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
177
+ </td>
178
+ </tr>
179
+ </tbody>
180
+ </table>
181
+ </div>
182
+ </div>
183
+
184
+ <div class="postbox">
185
+ <div class="handlediv" title="Click to toggle"><br></div>
186
+ <h3 class="hndle"><span><?php _e( 'Page' ); ?></span></h3>
187
+ <div class="inside">
188
+ <table class="form-table">
189
+ <tbody>
190
+ <?php $field = 'pageparentdiv'; ?>
191
+ <tr>
192
+ <th>
193
+ <label><?php _e( 'Page Attributes' ); ?></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 = 'postimagediv'; ?>
202
+ <tr>
203
+ <th>
204
+ <label><?php _e( 'Featured Images' ); ?></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 = 'postcustom'; ?>
213
+ <tr>
214
+ <th>
215
+ <label><?php _e( 'Custom Fields' ); ?></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 = 'commentstatusdiv'; ?>
224
+ <tr>
225
+ <th>
226
+ <label><?php _e( 'Discussion' ); ?></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 = 'commentsdiv'; ?>
235
+ <tr>
236
+ <th>
237
+ <label><?php _e( 'Comments' ); ?></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 = 'slugdiv'; ?>
246
+ <tr>
247
+ <th>
248
+ <label><?php _e( 'Slug' ); ?></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 = 'authordiv'; ?>
257
+ <tr>
258
+ <th>
259
+ <label><?php _e( 'Author' ); ?></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
+ <?php $field = 'revisionsdiv'; ?>
268
+ <tr>
269
+ <th>
270
+ <label><?php _e( 'Revisions' ); ?></label>
271
+ </th>
272
+ <td>
273
+ <?php $Checked = ''; ?>
274
+ <?php if( !empty( $Data["page"][$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
275
+ <label><input type="checkbox" name="data[page][<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
276
+ </td>
277
+ </tr>
278
+ </tbody>
279
+ </table>
280
+ </div>
281
+ </div>
282
+
283
+ </div>
284
+
285
+ <p class="submit">
286
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
287
+ </p>
288
+
289
+ <p class="submit reset">
290
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
291
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
292
+ </p>
293
+
294
+ </form>
295
+
296
+ </div>
inc/setting_sidemenu.php ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ global $menu, $submenu;
4
+
5
+ if( !empty( $_POST["update"] ) ) {
6
+ $this->update_sidemenu();
7
+ } elseif( !empty( $_POST["reset"] ) ) {
8
+ $this->update_reset( 'sidemenu' );
9
+ }
10
+
11
+ $Data = $this->get_data( 'sidemenu' );
12
+
13
+ // include js css
14
+ $ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' );
15
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
16
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
17
+
18
+ ?>
19
+
20
+ <div class="wrap">
21
+ <div class="icon32" id="icon-tools"></div>
22
+ <?php echo $this->Msg; ?>
23
+ <h2><?php _e( 'Side Menu' , $this->ltd ); ?></h2>
24
+ <p><?php _e( 'Please change the menu by drag and drop.' , $this->ltd ); ?></p>
25
+
26
+ <form id="waum_setting_sidemenu" class="waum_form" method="post" action="">
27
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
28
+ <?php wp_nonce_field(); ?>
29
+
30
+ <div class="metabox-holder columns-2" id="sidemenu-holder">
31
+
32
+ <div id="postbox-container-1" class="postbox-container">
33
+ <div class="postbox">
34
+ <h3 class="hndle"><span><?php _e( 'The current menu' , $this->ltd ); ?></span></h3>
35
+ <div class="inside">
36
+
37
+ <?php if( empty( $Data ) ) : ?>
38
+
39
+ <?php foreach($menu as $mm) : ?>
40
+
41
+ <?php if( !empty( $mm[0] ) ) : ?>
42
+
43
+ <?php $menu_title = $mm[0]; ?>
44
+ <?php if( $mm[5] == 'menu-comments' ) : ?>
45
+ <?php $menu_title = __( 'Comments' ); ?>
46
+ <?php elseif( $mm[5] == 'menu-plugins' ) : ?>
47
+ <?php $menu_title = __( 'Plugins' ); ?>
48
+ <?php endif; ?>
49
+
50
+ <?php $mwsm = array(); ?>
51
+ <?php foreach($submenu as $parent_slug => $sub) : ?>
52
+ <?php foreach($sub as $sm) : ?>
53
+ <?php if( $mm[2] == $parent_slug ) : ?>
54
+ <?php $submenu_title = $sm[0]; ?>
55
+ <?php if( $sm[1] == 'menu-comments' ) : ?>
56
+ <?php $submenu_title = __( 'Comments' ); ?>
57
+ <?php elseif( $sm[1] == 'menu-plugins' ) : ?>
58
+ <?php $submenu_title = __( 'Plugins' ); ?>
59
+ <?php elseif( $sm[1] == 'update_core' ) : ?>
60
+ <?php $submenu_title = __( 'Update' ); ?>
61
+ <?php endif; ?>
62
+ <?php $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug ); ?>
63
+ <?php endif; ?>
64
+ <?php endforeach; ?>
65
+ <?php endforeach; ?>
66
+
67
+ <?php $menu_widget = array( 'title' => $menu_title , 'slug' => $mm[2] , 'parent_slug' => '' , 'new' => false , 'submenu' => $mwsm ); ?>
68
+ <?php $this->menu_widget( $menu_widget ); ?>
69
+
70
+ <?php endif; ?>
71
+
72
+ <?php endforeach; ?>
73
+
74
+ <?php else: ?>
75
+
76
+ <?php foreach($Data["main"] as $mm) : ?>
77
+
78
+ <?php if( !empty( $mm["title"] ) ) : ?>
79
+
80
+ <?php $mwsm = array(); ?>
81
+ <?php foreach($Data["sub"] as $sm) : ?>
82
+
83
+ <?php if( $mm["slug"] == $sm["parent_slug"] ) : ?>
84
+
85
+ <?php $mwsm[] = array( 'title' => $sm["title"] , 'slug' => $sm["slug"] , 'parent_slug' => $sm["parent_slug"] ); ?>
86
+
87
+ <?php endif; ?>
88
+
89
+ <?php endforeach; ?>
90
+
91
+ <?php $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'submenu' => $mwsm ); ?>
92
+ <?php $this->menu_widget( $menu_widget ); ?>
93
+
94
+ <?php endif; ?>
95
+
96
+ <?php endforeach; ?>
97
+
98
+ <?php endif; ?>
99
+
100
+ </div>
101
+ </div>
102
+ </div>
103
+
104
+ <div id="postbox-container-2" class="postbox-container">
105
+ <div class="postbox">
106
+ <h3 class="hndle"><span><?php _e( 'Menu that can be added' , $this->ltd ); ?></span></h3>
107
+ <div class="inside">
108
+
109
+ <p class="description"><?php _e( 'Sepalator' , $this->ltd ); ?></p>
110
+ <?php $menu_widget = array( 'title' => '-' , 'slug' => 'separator' , 'parent_slug' => '' , 'new' => true ); ?>
111
+ <?php $this->menu_widget( $menu_widget ); ?>
112
+ <div class="clear"></div>
113
+
114
+ <?php foreach($this->Menu as $mm) : ?>
115
+
116
+ <?php if( !empty( $mm[0] ) ) : ?>
117
+
118
+ <?php $menu_title = $mm[0]; ?>
119
+ <?php if( $mm[5] == 'menu-comments' ) : ?>
120
+ <?php $menu_title = __( 'Comments' ); ?>
121
+ <?php elseif( $mm[5] == 'menu-plugins' ) : ?>
122
+ <?php $menu_title = __( 'Plugins' ); ?>
123
+ <?php endif; ?>
124
+ <p class="description"><?php echo $menu_title; ?></p>
125
+
126
+ <?php foreach($this->SubMenu as $parent_slug => $sub) : ?>
127
+
128
+ <?php foreach($sub as $sm) : ?>
129
+
130
+ <?php if( $mm[2] == $parent_slug ) : ?>
131
+ <?php $menu_title = $sm[0]; ?>
132
+ <?php if( $sm[1] == 'menu-comments' ) : ?>
133
+ <?php $menu_title = __( 'Comments' ); ?>
134
+ <?php elseif( $sm[1] == 'menu-plugins' ) : ?>
135
+ <?php $menu_title = __( 'Plugins' ); ?>
136
+ <?php elseif( $sm[1] == 'update_core' ) : ?>
137
+ <?php $menu_title = __( 'Update' ); ?>
138
+ <?php endif; ?>
139
+ <?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'submenu' => '' ); ?>
140
+ <?php $this->menu_widget( $menu_widget ); ?>
141
+ <?php endif; ?>
142
+
143
+ <?php endforeach; ?>
144
+
145
+ <?php endforeach; ?>
146
+
147
+ <div class="clear"></div>
148
+
149
+ <?php endif; ?>
150
+
151
+ <?php endforeach; ?>
152
+
153
+ </div>
154
+
155
+ </div>
156
+ </div>
157
+
158
+ </div>
159
+
160
+ <div class="clear"></div>
161
+
162
+ <p class="submit">
163
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
164
+ </p>
165
+
166
+ <p class="submit reset">
167
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
168
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
169
+ </p>
170
+
171
+ </form>
172
+
173
+ </div>
174
+
175
+ <style>
176
+ #sidemenu-holder #postbox-container-1 .item-edit { background-image: url(<?php echo admin_url(); ?>images/arrows.png); }
177
+ #sidemenu-holder #postbox-container-1 .item-edit:hover { background-image: url(<?php echo admin_url(); ?>images/arrows-dark.png); }
178
+ </style>
179
+
180
+ <script type="text/javascript">
181
+ jQuery(document).ready(function($) {
182
+
183
+ var $Form = $("#waum_setting_sidemenu");
184
+ var $AddInside = $('#postbox-container-2 .postbox .inside', $Form);
185
+ var $SettingInside = $('#postbox-container-1 .postbox .inside', $Form);
186
+
187
+ $AddInside.children('.widget').draggable({
188
+ connectToSortable: '#postbox-container-1 .postbox .inside',
189
+ handle: '> .widget-top > .widget-title',
190
+ distance: 2,
191
+ helper: 'clone',
192
+ zIndex: 5,
193
+ containment: 'document',
194
+ stop: function(e,ui) {
195
+ widget_each();
196
+ }
197
+ });
198
+
199
+ $SettingInside.live( "mouseover" , function() {
200
+ $('#postbox-container-1 .postbox .inside, #postbox-container-1 .postbox .inside .widget .widget-inside .submenu', $Form).sortable({
201
+ placeholder: "widget-placeholder",
202
+ items: '> .widget',
203
+ connectWith: "#postbox-container-1 .postbox .inside, #postbox-container-1 .postbox .inside .widget .widget-inside .submenu",
204
+ handle: '> .widget-top > .widget-title',
205
+ cursor: 'move',
206
+ distance: 2,
207
+ containment: 'document',
208
+ change: function(e,ui) {
209
+ var $height = ui.helper.height();
210
+ $('#postbox-container-1 .postbox .inside .widget-placeholder').height($height);
211
+ },
212
+ stop: function(e,ui) {
213
+ if ( ui.item.hasClass('deleting') ) {
214
+ ui.item.remove();
215
+ }
216
+ widget_each();
217
+ }
218
+ });
219
+ });
220
+
221
+ $('#postbox-container-2', $Form).droppable({
222
+ tolerance: 'pointer',
223
+ accept: function(o){
224
+ return $(o).parent().parent().parent().attr('id') != 'postbox-container-2';
225
+ },
226
+ drop: function(e,ui) {
227
+ ui.draggable.addClass('deleting');
228
+ },
229
+ over: function(e,ui) {
230
+ ui.draggable.addClass('deleting');
231
+ $('div.widget-placeholder').hide();
232
+ },
233
+ out: function(e,ui) {
234
+ ui.draggable.removeClass('deleting');
235
+ $('div.widget-placeholder').show();
236
+ }
237
+ });
238
+
239
+
240
+ var $AvailableAction = $('#postbox-container-1 .postbox .inside .widget .widget-top .widget-title-action a[href=#available]', $Form);
241
+ $AvailableAction.live( 'click', function() {
242
+ $(this).parent().parent().parent().children(".widget-inside").slideToggle();
243
+ return false;
244
+ });
245
+
246
+ var $EemoveAction = $('#postbox-container-1 .postbox .inside .widget .widget-inside .widget-control-actions .alignleft a[href=#remove]', $Form);
247
+ $EemoveAction.live( 'click', function() {
248
+ $(this).parent().parent().parent().parent().slideUp("normal", function() { $(this).remove(); } );
249
+ return false;
250
+ });
251
+
252
+
253
+ function widget_each() {
254
+ var $Count = 0;
255
+ $('#postbox-container-1 .postbox .inside .widget', $Form).each(function() {
256
+ var $InputSlug = $(this).children(".widget-inside").children(".settings").children(".description").children(".slugtext");
257
+ var $InputTitle = $(this).children(".widget-inside").children(".settings").children("label").children(".titletext");
258
+ var $InputParentSlug = $(this).children(".widget-inside").children(".settings").children(".parent_slugtext");
259
+
260
+ var $Name = 'data' + '['+$Count+']';
261
+ $InputSlug.attr("name", $Name+'[slug]');
262
+ $InputTitle.attr("name", $Name+'[title]');
263
+ $InputParentSlug.attr("name", $Name+'[parent_slug]');
264
+
265
+ if ( $(this).parent().parent().parent().parent().hasClass("submenu") ) {
266
+ // None three
267
+ $(this).remove();
268
+ } else if ( $(this).parent().hasClass("submenu") ) {
269
+ var $ParentSlug = $(this).parent().parent().children(".settings").children(".description").children(".slugtext").val();
270
+ $InputParentSlug.val($ParentSlug);
271
+ } else {
272
+ $InputParentSlug.val('');
273
+ }
274
+ $Count++;
275
+ });
276
+ }
277
+ widget_each();
278
+
279
+ });
280
+ </script>
inc/setting_site.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_site();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'site' );
7
+ }
8
+
9
+ $Data = $this->get_data( 'site' );
10
+
11
+ // include js css
12
+ $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
+
16
+ ?>
17
+
18
+ <div class="wrap">
19
+ <div class="icon32" id="icon-tools"></div>
20
+ <?php echo $this->Msg; ?>
21
+ <h2><?php _e( 'Site Settings' , $this->ltd ); ?></h2>
22
+ <p>&nbsp;</p>
23
+
24
+ <form id="waum_setting_site" class="waum_form" method="post" action="">
25
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
+ <?php wp_nonce_field(); ?>
27
+
28
+ <div class="metabox-holder columns-1">
29
+
30
+ <div class="postbox">
31
+ <div class="handlediv" title="Click to toggle"><br></div>
32
+ <h3 class="hndle"><span>Meta Fields</span></h3>
33
+ <div class="inside">
34
+ <table class="form-table">
35
+ <tbody>
36
+ <?php $field = 'wp_generator'; ?>
37
+ <tr>
38
+ <th>
39
+ <label><?php echo $field; ?></label>
40
+ </th>
41
+ <td>
42
+ <?php $Checked = ''; ?>
43
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
44
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
45
+ <p class="description"><?php _e( 'Tag to be output' , $this->ltd ); ?> : <code><?php echo esc_html( get_the_generator( 'xhtml' ) ); ?></code></p>
46
+ </td>
47
+ </tr>
48
+ <?php $field = 'wlwmanifest_link'; ?>
49
+ <tr>
50
+ <th>
51
+ <?php echo $field; ?>
52
+ </th>
53
+ <td>
54
+ <?php $Checked = ''; ?>
55
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
56
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
57
+ <p class="description"><?php _e( 'Please display when using the Windows Live Writer.' , $this->ltd ); ?></p>
58
+ <p class="description"><?php _e( 'Tag to be output' , $this->ltd ); ?> : <code><?php echo esc_html( '<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="'
59
+ . get_bloginfo('wpurl') . '/wp-includes/wlwmanifest.xml" />' ); ?></code></p>
60
+ </td>
61
+ </tr>
62
+ <?php $field = 'rsd_link'; ?>
63
+ <tr>
64
+ <th>
65
+ <?php echo $field; ?>
66
+ </th>
67
+ <td>
68
+ <?php $Checked = ''; ?>
69
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
70
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
71
+ <p class="description"><?php _e( 'Information of XML-rpc' , $this->ltd ); ?></p>
72
+ <p class="description"><?php _e( 'Tag to be output' , $this->ltd ); ?> : <code><?php echo esc_html( '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . '"/xmlrpc.php?rsd" />' ); ?></code></p>
73
+ </td>
74
+ </tr>
75
+ <?php $field = 'feed_links'; ?>
76
+ <tr>
77
+ <th>
78
+ <?php echo $field; ?>
79
+ </th>
80
+ <td>
81
+ <?php $Checked = ''; ?>
82
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
83
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
84
+ <p class="description"><?php _e( 'Sitewide feed' , $this->ltd ); ?></p>
85
+ <p class="description"><?php _e( 'Tag to be output' , $this->ltd ); ?> : <code><?php echo esc_html( '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( __('%1$s %2$s Feed') , get_bloginfo('name') , '&amp;raquo&#059;' ) ) . '" href="' . get_feed_link( get_default_feed() ) . ' />' ); ?></code></p>
86
+ </td>
87
+ </tr>
88
+ <?php $field = 'feed_links_extra'; ?>
89
+ <tr>
90
+ <th>
91
+ <?php echo $field; ?>
92
+ </th>
93
+ <td>
94
+ <?php $Checked = ''; ?>
95
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
96
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
97
+ <p class="description"><?php _e( 'Extra feed' , $this->ltd ); ?></p>
98
+ <p class="description"><?php _e( 'Tag to be output' , $this->ltd ); ?> : <code><?php echo esc_html( '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( __('%1$s %2$s Comments Feed') , get_bloginfo('name') , '&amp;raquo&#059;' ) ) . '" href="' . get_feed_link( get_default_feed() . '&#038;p=***' ) . ' />' ); ?></code></p>
99
+ </td>
100
+ </tr>
101
+ </tbody>
102
+ </table>
103
+ </div>
104
+ </div>
105
+
106
+ <div class="postbox">
107
+ <div class="handlediv" title="Click to toggle"><br></div>
108
+ <h3 class="hndle"><span><?php _e( 'General' ); ?></span></h3>
109
+ <div class="inside">
110
+ <table class="form-table">
111
+ <tbody>
112
+ <?php $field = 'admin_bar'; ?>
113
+ <tr>
114
+ <th>
115
+ <?php echo $field; ?>
116
+ </th>
117
+ <td>
118
+ <?php $Checked = ''; ?>
119
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
120
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
121
+ </td>
122
+ </tr>
123
+ </tbody>
124
+ </table>
125
+ </div>
126
+ </div>
127
+
128
+ </div>
129
+
130
+ <p class="submit">
131
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
132
+ </p>
133
+
134
+ <p class="submit reset">
135
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
136
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
137
+ </p>
138
+
139
+ </form>
140
+
141
+ </div>
languages/wauc-ja.mo ADDED
Binary file
languages/wauc-ja.po ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: 1.0.0\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2012-12-25 13:28+0900\n"
6
+ "Language-Team: \n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "X-Poedit-Language: Japanese\n"
12
+ "X-Poedit-Country: JAPAN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "Last-Translator: \n"
15
+
16
+ msgid "It is an excellent plug-in to customize the management screen."
17
+ msgstr "管理画面のカスタマイズに優れたプラグインです。"
18
+
19
+ msgid "Customize the UI of the management screen for all users."
20
+ msgstr "全てのユーザーの管理画面UIをカスタマイズします。"
21
+
22
+ msgid "Please select the user role you want to apply the settings."
23
+ msgstr "設定を適用する権限を選んでください。"
24
+
25
+ msgid "Would initialize?"
26
+ msgstr "初期化しますか?"
27
+
28
+ msgid "Site Settings"
29
+ msgstr "サイトの設定"
30
+
31
+ msgid "Tag to be output"
32
+ msgstr "出力されるタグ"
33
+
34
+ msgid "Please display when using the Windows Live Writer."
35
+ msgstr "Windows Live Writer を使う場合は表示させてください。"
36
+
37
+ msgid "Information of XML-rpc"
38
+ msgstr "XML-RPC投稿プロトコル(外部からの投稿)情報"
39
+
40
+ msgid "Sitewide feed"
41
+ msgstr "サイト全体のフィードリンク"
42
+
43
+ msgid "Extra feed"
44
+ msgstr "その他のフィードリンク"
45
+
46
+ msgid "Admin bar Customize"
47
+ msgstr "管理画面バーのカスタマイズ"
48
+
49
+ msgid "Account Title"
50
+ msgstr "アカウント表記"
51
+
52
+ msgid "Upper left menu"
53
+ msgstr "左上メニュー"
54
+
55
+ msgid "Upper right menu"
56
+ msgstr "右上メニュー"
57
+
58
+ msgid "Wordpress Logo"
59
+ msgstr "Wordpress のロゴ"
60
+
61
+ msgid "Add New"
62
+ msgstr "新規追加"
63
+
64
+ msgid "Update Menu"
65
+ msgstr "アップデート表示"
66
+
67
+ msgid "Profile Edit"
68
+ msgstr "プロフィール編集"
69
+
70
+ msgid "Admin screen setting"
71
+ msgstr "管理画面設定"
72
+
73
+ msgid "Notice"
74
+ msgstr "通知"
75
+
76
+ msgid "Not notified"
77
+ msgstr "通知しない"
78
+
79
+ msgid "Wordpress core update notice"
80
+ msgstr "Wordpress コアアップデート通知"
81
+
82
+ msgid "Plugin update notice"
83
+ msgstr "プラグイン アップデート通知"
84
+
85
+ msgid "Theme update notice"
86
+ msgstr "テーマ アップデート通知"
87
+
88
+ msgid "Footer text"
89
+ msgstr "フッターテキスト"
90
+
91
+ msgid "Screen Options and Help tab"
92
+ msgstr "表示オプションとヘルプタブ"
93
+
94
+ msgid "Welcome Panel"
95
+ msgstr "ウェルカムパネル"
96
+
97
+ msgid "Side Menu"
98
+ msgstr "サイドメニュー"
99
+
100
+ msgid "Please change the menu by drag and drop."
101
+ msgstr "ドラッグ&ドロップでメニューを変更してください。"
102
+
103
+ msgid "The current menu"
104
+ msgstr "現在のメニュー"
105
+
106
+ msgid "Menu that can be added"
107
+ msgstr "追加できるメニュー一覧"
108
+
109
+ msgid "Sepalator"
110
+ msgstr "区切り線"
111
+
112
+ msgid "Menu Title"
113
+ msgstr "メニュータイトル"
114
+
115
+ msgid "Sub Menus"
116
+ msgstr "サブメニュー"
117
+
118
+ msgid "Remove meta box"
119
+ msgstr "メタボックス削除"
120
+
121
+ msgid "Login Screen"
122
+ msgstr "ログイン画面"
123
+
124
+ msgid "Login Screen Settings"
125
+ msgstr "ログイン画面の設定"
126
+
127
+ msgid "Show Login Screen"
128
+ msgstr "ログイン画面を表示"
129
+
130
+ msgid "Login Form"
131
+ msgstr "ログインフォーム"
132
+
133
+ msgid "The link after clicking on the logo"
134
+ msgstr "ロゴをクリック後のリンク"
135
+
136
+ msgid "Logo title"
137
+ msgstr "ロゴタイトル"
138
+
139
+ msgid "Logo Image path"
140
+ msgstr "ロゴ画像のパス"
141
+
142
+ msgid "Css file to load"
143
+ msgstr "CSSファイルを読み込む"
144
+
languages/wauc.pot ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: 1.0.0\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2012-12-25 13:28+0900\n"
6
+ "Language-Team: \n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "X-Poedit-Language: Japanese\n"
12
+ "X-Poedit-Country: JAPAN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "Last-Translator: \n"
15
+
16
+ msgid "It is an excellent plug-in to customize the management screen."
17
+ msgstr ""
18
+
19
+ msgid "Customize the UI of the management screen for all users."
20
+ msgstr ""
21
+
22
+ msgid "Please select the user role you want to apply the settings."
23
+ msgstr ""
24
+
25
+ msgid "Would initialize?"
26
+ msgstr ""
27
+
28
+ msgid "Site Settings"
29
+ msgstr ""
30
+
31
+ msgid "Tag to be output"
32
+ msgstr ""
33
+
34
+ msgid "Please display when using the Windows Live Writer."
35
+ msgstr ""
36
+
37
+ msgid "Information of XML-rpc"
38
+ msgstr ""
39
+
40
+ msgid "Sitewide feed"
41
+ msgstr ""
42
+
43
+ msgid "Extra feed"
44
+ msgstr ""
45
+
46
+ msgid "Admin bar Customize"
47
+ msgstr ""
48
+
49
+ msgid "Account Title"
50
+ msgstr ""
51
+
52
+ msgid "Upper left menu"
53
+ msgstr ""
54
+
55
+ msgid "Upper right menu"
56
+ msgstr ""
57
+
58
+ msgid "Wordpress Logo"
59
+ msgstr ""
60
+
61
+ msgid "Add New"
62
+ msgstr ""
63
+
64
+ msgid "Update Menu"
65
+ msgstr ""
66
+
67
+ msgid "Profile Edit"
68
+ msgstr ""
69
+
70
+ msgid "Admin screen setting"
71
+ msgstr ""
72
+
73
+ msgid "Notice"
74
+ msgstr ""
75
+
76
+ msgid "Not notified"
77
+ msgstr ""
78
+
79
+ msgid "Wordpress core update notice"
80
+ msgstr ""
81
+
82
+ msgid "Plugin update notice"
83
+ msgstr ""
84
+
85
+ msgid "Theme update notice"
86
+ msgstr ""
87
+
88
+ msgid "Footer text"
89
+ msgstr ""
90
+
91
+ msgid "Screen Options and Help tab"
92
+ msgstr ""
93
+
94
+ msgid "Welcome Panel"
95
+ msgstr ""
96
+
97
+ msgid "Side Menu"
98
+ msgstr ""
99
+
100
+ msgid "Please change the menu by drag and drop."
101
+ msgstr ""
102
+
103
+ msgid "The current menu"
104
+ msgstr ""
105
+
106
+ msgid "Menu that can be added"
107
+ msgstr ""
108
+
109
+ msgid "Sepalator"
110
+ msgstr ""
111
+
112
+ msgid "Menu Title"
113
+ msgstr ""
114
+
115
+ msgid "Sub Menus"
116
+ msgstr ""
117
+
118
+ msgid "Remove meta box"
119
+ msgstr ""
120
+
121
+ msgid "Login Screen"
122
+ msgstr ""
123
+
124
+ msgid "Login Screen Settings"
125
+ msgstr ""
126
+
127
+ msgid "Show Login Screen"
128
+ msgstr ""
129
+
130
+ msgid "Login Form"
131
+ msgstr ""
132
+
133
+ msgid "The link after clicking on the logo"
134
+ msgstr ""
135
+
136
+ msgid "Logo title"
137
+ msgstr ""
138
+
139
+ msgid "Logo Image path"
140
+ msgstr ""
141
+
142
+ msgid "Css file to load"
143
+ msgstr ""
144
+
readme.txt ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === WP Admin UI Customize ===
2
+ Contributors: gqevu6bsiz
3
+ Donate link:
4
+ Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
5
+ Requires at least: 3.3.2
6
+ Tested up to: 3.5
7
+ Stable tag: 1.0
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
+
24
+ == Installation ==
25
+
26
+ 1. Upload the entire wp-admin-ui-customize folder to the /wp-content/plugins/ directory.
27
+ 2. Activate the plugin through the 'Plugins' menu in WordPress.
28
+ 3. You will find 'WP Admin UI Customize' menu in your WordPress admin panel.
29
+
30
+ == Frequently Asked Questions ==
31
+
32
+ = A question that someone might have =
33
+
34
+ = What about foo bar? =
35
+
36
+ == Screenshots ==
37
+
38
+ 1. Set the user role apply
39
+ 2. Site Settings
40
+ 3. Admin Screen Settings
41
+ 4. Admin Screen Customized
42
+ 5. Dashboard Settings
43
+ 6. Dashboard Screen Customized
44
+ 7. Admin Menu Settings
45
+ 8. Admin Menu Customized
46
+ 9. Metabox Settings
47
+ 10. Login Screen Settings
48
+ 10. Login Screen Customized
49
+
50
+ == Changelog ==
51
+
52
+ = 1.0 =
53
+ This is the initial release.
54
+
55
+ == Upgrade Notice ==
56
+
57
+ = 1.0 =
58
+
59
+ == 日本語でのご説明 ==
60
+
61
+ このプラグインは、管理画面UIのカスタマイズをするプラグインです。
62
+ 「ダッシュボード」「オプションタブ」「サイトのメタタグ管理」「管理バー」「管理メニュー」「メタボックス」「ログイン画面」
63
+ これらのカスタマイズを、このプラグインひとつで出来ます。
screenshot-1.png ADDED
Binary file
screenshot-10.png ADDED
Binary file
screenshot-11.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
screenshot-6.png ADDED
Binary file
screenshot-7.png ADDED
Binary file
screenshot-8.png ADDED
Binary file
screenshot-9.png ADDED
Binary file
wp-admin-ui-customize.css ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ form.waum_form .columns-2 #postbox-container-1 {
2
+ width: 60%;
3
+ }
4
+ form.waum_form .columns-2 #postbox-container-2 {
5
+ width: 38%;
6
+ margin-left: 2%;
7
+ }
8
+ form.waum_form .postbox .hndle {
9
+ cursor: default;
10
+ }
11
+
12
+
13
+
14
+
15
+ /* sidemenu */
16
+
17
+ #sidemenu-holder {
18
+ margin-left: 500px;
19
+ }
20
+ #sidemenu-holder #postbox-container-1 {
21
+ display: inline;
22
+ width: 470px;
23
+ margin-left: -500px;
24
+ clear: both;
25
+ float: left;
26
+ }
27
+ #sidemenu-holder #postbox-container-2 {
28
+ width: auto;
29
+ float: left;
30
+ min-width: 100%;
31
+ margin: 0 5% 0 0;
32
+ }
33
+ #sidemenu-holder .postbox .inside {
34
+ padding: 10px;
35
+ }
36
+ #sidemenu-holder .postbox .inside .widget-placeholder {
37
+ width: auto;
38
+ }
39
+ #sidemenu-holder .postbox .inside .widget .widget-top .widget-title .in-widget-title {
40
+ opacity: 0.7;
41
+ font-weight: normal;
42
+ }
43
+ #sidemenu-holder .postbox .inside .widget .widget-inside .submenu {
44
+ padding: 5px 5px 20px 5px;
45
+ border: 1px solid #DFDFDF;
46
+ }
47
+ #sidemenu-holder .postbox .inside .widget .widget-inside input.regular-text {
48
+ width: 300px;
49
+ }
50
+
51
+
52
+
53
+ #sidemenu-holder #postbox-container-2 .postbox .inside .widget.new .widget-top .widget-title-action,
54
+ #sidemenu-holder #postbox-container-1 .postbox .inside .widget.separator .widget-top .widget-title-action,
55
+ #sidemenu-holder #postbox-container-2 .postbox .inside .widget .widget-inside .submenu,
56
+ #sidemenu-holder #postbox-container-2 .postbox .inside .widget .widget-inside .widget-control-actions,
57
+ #sidemenu-holder #postbox-container-1 .postbox .inside .widget .widget-inside .submenu .widget .widget-inside .submenu {
58
+ display: none;
59
+ }
60
+
61
+
62
+
63
+ #sidemenu-holder #postbox-container-2 .postbox .inside h3 {
64
+ cursor: default;
65
+ border-bottom: none;
66
+ }
67
+ #sidemenu-holder #postbox-container-2 .postbox .inside .widget {
68
+ width: 170px;
69
+ float: left;
70
+ margin: 0 4px 4px 0;
71
+ }
wp-admin-ui-customize.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ var $Form = $(".waum_form");
4
+
5
+ $('.handlediv' , $Form).live( 'click', function() {
6
+ $(this).parent().toggleClass('closed');
7
+ });
8
+
9
+ });
wp-admin-ui-customize.php ADDED
@@ -0,0 +1,864 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: WP Admin UI Customize
4
+ Description: Customize the management screen UI.
5
+ Plugin URI: http://gqevu6bsiz.chicappa.jp
6
+ Version: 1.0
7
+ Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/author/admin/
9
+ Text Domain: wauc
10
+ Domain Path: /languages
11
+ */
12
+
13
+ /* Copyright 2012 gqevu6bsiz (email : gqevu6bsiz@gmail.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+
30
+
31
+ class WP_Admin_UI_Customize
32
+ {
33
+
34
+ var $Ver,
35
+ $Name,
36
+ $Dir,
37
+ $ltd,
38
+ $Record,
39
+ $PageSlug,
40
+ $UPFN,
41
+ $Menu,
42
+ $SubMenu,
43
+ $Msg;
44
+
45
+
46
+ function __construct() {
47
+ $this->Ver = '1.0';
48
+ $this->Name = 'WP Admin UI Customize';
49
+ $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
50
+ $this->ltd = 'wauc';
51
+ $this->Record = array(
52
+ "user_role" => $this->ltd . '_user_role_setting',
53
+ "site" => $this->ltd . '_site_setting',
54
+ "admin_general" => $this->ltd . '_admin_general_setting',
55
+ "dashboard" => $this->ltd . '_dashboard_setting',
56
+ "sidemenu" => $this->ltd . '_sidemenu_setting',
57
+ "removemetabox" => $this->ltd . '_removemetabox_setting',
58
+ "loginscreen" => $this->ltd . '_loginscreen_setting',
59
+ );
60
+ $this->PageSlug = 'wp_admin_ui_customize';
61
+ $this->UPFN = 'Y';
62
+
63
+ $this->PluginSetup();
64
+ $this->FilterStart();
65
+ }
66
+
67
+
68
+
69
+
70
+
71
+ // PluginSetup
72
+ function PluginSetup() {
73
+ // load text domain
74
+ load_plugin_textdomain( $this->ltd , false , basename( dirname( __FILE__ ) ) . '/languages' );
75
+
76
+ // plugin links
77
+ add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
78
+
79
+ // add menu
80
+ add_action( 'admin_menu' , array( $this , 'admin_menu' ) , 2 );
81
+ }
82
+
83
+ // PluginSetup
84
+ function plugin_action_links( $links , $file ) {
85
+ if( plugin_basename(__FILE__) == $file ) {
86
+ $link = '<a href="' . 'admin.php?page=' . $this->PageSlug . '">' . __('Settings') . '</a>';
87
+ array_unshift( $links, $link );
88
+ }
89
+ return $links;
90
+ }
91
+
92
+ // PluginSetup
93
+ function admin_menu() {
94
+ add_menu_page( $this->Name , $this->Name , 'administrator', $this->PageSlug , array( $this , 'setting_default') );
95
+ add_submenu_page( $this->PageSlug , __( 'Site Settings' , $this->ltd ) , __( 'Site Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_setting_site' , array( $this , 'setting_site' ) );
96
+ add_submenu_page( $this->PageSlug , __( 'Admin screen setting' , $this->ltd ) , __( 'Admin screen setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_general_setting' , array( $this , 'setting_admin_general' ) );
97
+ add_submenu_page( $this->PageSlug , __( 'Dashboard' ) , __( 'Dashboard' ) , 'administrator' , $this->PageSlug . '_dashboard' , array( $this , 'setting_dashboard' ) );
98
+ add_submenu_page( $this->PageSlug , __( 'Side Menu' , $this->ltd ) , __( 'Side Menu' , $this->ltd ) , 'administrator' , $this->PageSlug . '_sidemenu' , array( $this , 'setting_sidemenu' ) );
99
+ add_submenu_page( $this->PageSlug , __( 'Remove meta box' , $this->ltd ) , __( 'Remove meta box' , $this->ltd ) , 'administrator' , $this->PageSlug . '_removemtabox' , array( $this , 'setting_removemtabox' ) );
100
+ add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , 'administrator' , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
101
+ }
102
+
103
+
104
+
105
+
106
+
107
+ // SettingPage
108
+ function setting_default() {
109
+ include_once 'inc/setting_default.php';
110
+ }
111
+
112
+ // SettingPage
113
+ function setting_site() {
114
+ include_once 'inc/setting_site.php';
115
+ }
116
+
117
+ // SettingPage
118
+ function setting_admin_general() {
119
+ include_once 'inc/setting_admin_general.php';
120
+ }
121
+
122
+ // SettingPage
123
+ function setting_dashboard() {
124
+ include_once 'inc/setting_dashboard.php';
125
+ }
126
+
127
+ // SettingPage
128
+ function setting_sidemenu() {
129
+ include_once 'inc/setting_sidemenu.php';
130
+ }
131
+
132
+ // SettingPage
133
+ function setting_removemtabox() {
134
+ include_once 'inc/setting_removemtabox.php';
135
+ }
136
+
137
+ // SettingPage
138
+ function setting_loginscreen() {
139
+ include_once 'inc/setting_loginscreen.php';
140
+ }
141
+
142
+
143
+
144
+
145
+
146
+ // GetData
147
+ function get_data( $record ) {
148
+ $GetData = get_option( $this->Record[$record] );
149
+
150
+ $Data = array();
151
+ if( !empty( $GetData ) && !empty( $GetData["UPFN"] ) && $GetData["UPFN"] == $this->UPFN ) {
152
+ $Data = $GetData;
153
+ }
154
+
155
+ return $Data;
156
+ }
157
+
158
+
159
+
160
+
161
+
162
+ // SetList
163
+ function get_user_role() {
164
+ $editable_roles = get_editable_roles();
165
+ foreach ( $editable_roles as $role => $details ) {
166
+ $UserRole[$role] = translate_user_role( $details['name'] );
167
+ }
168
+
169
+ return $UserRole;
170
+ }
171
+
172
+ // SetList
173
+ function sidemenu_default_load() {
174
+ global $menu , $submenu;
175
+
176
+ $this->Menu = $menu;
177
+ $this->SubMenu = $submenu;
178
+ }
179
+
180
+ // SetList
181
+ function menu_widget( $menu_widget ) {
182
+ $sepalator_widget = '';
183
+ if( $menu_widget["slug"] == 'separator' ) {
184
+ $sepalator_widget = $menu_widget["slug"];
185
+ }
186
+ $new_widget = '';
187
+ if( !empty( $menu_widget["new"] ) ) {
188
+ $new_widget = 'new';
189
+ }
190
+ ?>
191
+ <div class="widget <?php echo $sepalator_widget; ?> <?php echo $new_widget; ?>">
192
+
193
+ <div class="widget-top">
194
+ <div class="widget-title-action">
195
+ <a class="widget-action" href="#available"></a>
196
+ </div>
197
+ <div class="widget-title">
198
+ <h4>
199
+ <?php echo $menu_widget["title"]; ?>
200
+ : <span class="in-widget-title"><?php echo $menu_widget["slug"]; ?></span>
201
+ </h4>
202
+ </div>
203
+ </div>
204
+
205
+ <div class="widget-inside">
206
+ <div class="settings">
207
+ <p class="description">
208
+ <?php _e( 'Slug' ); ?>: <?php echo $menu_widget["slug"]; ?>
209
+ <input type="hidden" class="slugtext" value="<?php echo $menu_widget["slug"]; ?>" name="data[][slug]">
210
+ </p>
211
+ <label>
212
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo $menu_widget["title"]; ?>" name="data[][title]">
213
+ </label>
214
+ <input type="hidden" class="parent_slugtext" value="<?php echo $menu_widget["parent_slug"]; ?>" name="data[][parent_slug]">
215
+ </div>
216
+
217
+ <?php if( $menu_widget["slug"] != 'separator' ) : ?>
218
+ <div class="submenu">
219
+ <p class="description"><?php _e( 'Sub Menus' , $this->ltd ); ?></p>
220
+ <?php if( empty( $menu_widget["new"] ) && !empty( $menu_widget["submenu"] ) ) : ?>
221
+ <?php foreach($menu_widget["submenu"] as $sm) : ?>
222
+ <?php $sepalator_widget = ''; ?>
223
+ <?php if( $sm["slug"] == 'separator' ) : $sepalator_widget = $sm["slug"]; endif; ?>
224
+
225
+ <div class="widget <?php echo $sepalator_widget; ?>">
226
+
227
+ <div class="widget-top">
228
+ <div class="widget-title-action">
229
+ <a class="widget-action" href="#available"></a>
230
+ </div>
231
+ <div class="widget-title">
232
+ <h4>
233
+ <?php echo $sm["title"]; ?>
234
+ : <span class="in-widget-title"><?php echo $sm["slug"]; ?></span>
235
+ </h4>
236
+ </div>
237
+ </div>
238
+
239
+ <div class="widget-inside">
240
+ <div class="settings">
241
+ <p class="description">
242
+ <?php _e( 'Slug' ); ?>: <?php echo $sm["slug"]; ?>
243
+ <input type="hidden" class="slugtext" value="<?php echo $sm["slug"]; ?>" name="data[][slug]">
244
+ </p>
245
+ <label>
246
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo $sm["title"]; ?>" name="data[][title]">
247
+ </label>
248
+ <input type="hidden" class="parent_slugtext" value="<?php echo $sm["parent_slug"]; ?>" name="data[][parent_slug]">
249
+ </div>
250
+ <div class="widget-control-actions">
251
+ <div class="alignleft">
252
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
253
+ </div>
254
+ <div class="clear"></div>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <?php endforeach; ?>
260
+ <?php endif; ?>
261
+ </div>
262
+ <div class="widget-control-actions">
263
+ <div class="alignleft">
264
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
265
+ </div>
266
+ <div class="clear"></div>
267
+ </div>
268
+
269
+ <?php endif; ?>
270
+ </div>
271
+
272
+ </div>
273
+ <?php
274
+ }
275
+
276
+
277
+
278
+
279
+ // DataUpdate
280
+ function update_validate() {
281
+ $Update = array();
282
+
283
+ if( !empty( $_POST[$this->UPFN] ) ) {
284
+ $UPFN = strip_tags( $_POST[$this->UPFN] );
285
+ if( $UPFN == $this->UPFN ) {
286
+ $Update["UPFN"] = strip_tags( $_POST[$this->UPFN] );
287
+ }
288
+ }
289
+
290
+ return $Update;
291
+ }
292
+
293
+ // DataUpdate
294
+ function update_reset( $record ) {
295
+ $Update = $this->update_validate();
296
+ if( !empty( $Update ) ) {
297
+ delete_option( $this->Record[$record] );
298
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
299
+ }
300
+ }
301
+
302
+ // DataUpdate
303
+ function update_userrole() {
304
+ $Update = $this->update_validate();
305
+ if( !empty( $Update ) ) {
306
+
307
+ if( !empty( $_POST["data"]["user_role"] ) ) {
308
+ foreach($_POST["data"]["user_role"] as $key => $val) {
309
+ $tmpK = strip_tags( $key );
310
+ $tmpV = strip_tags ( $val );
311
+ $Update[$tmpK] = $tmpV;
312
+ }
313
+ }
314
+
315
+ update_option( $this->Record["user_role"] , $Update );
316
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
317
+ }
318
+ }
319
+
320
+ // DataUpdate
321
+ function update_site() {
322
+ $Update = $this->update_validate();
323
+ if( !empty( $Update ) ) {
324
+
325
+ if( !empty( $_POST["data"] ) ) {
326
+ foreach($_POST["data"] as $key => $val) {
327
+ $tmpK = strip_tags( $key );
328
+ $tmpV = strip_tags ( $val );
329
+ $Update[$tmpK] = $tmpV;
330
+ }
331
+ }
332
+
333
+ update_option( $this->Record["site"] , $Update );
334
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
335
+ }
336
+ }
337
+
338
+ // DataUpdate
339
+ function update_admin_general() {
340
+ $Update = $this->update_validate();
341
+ if( !empty( $Update ) ) {
342
+
343
+ if( !empty( $_POST["data"] ) ) {
344
+ foreach($_POST["data"] as $key => $val) {
345
+ $tmpK = strip_tags( $key );
346
+ $tmpV = $val;
347
+ $Update[$tmpK] = $tmpV;
348
+ }
349
+ }
350
+
351
+ update_option( $this->Record["admin_general"] , $Update );
352
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
353
+ }
354
+ }
355
+
356
+ // DataUpdate
357
+ function update_dashboard() {
358
+ $Update = $this->update_validate();
359
+ if( !empty( $Update ) ) {
360
+
361
+ if( !empty( $_POST["data"] ) ) {
362
+ foreach($_POST["data"] as $key => $val) {
363
+ $tmpK = strip_tags( $key );
364
+ $tmpV = $val;
365
+ $Update[$tmpK] = $tmpV;
366
+ }
367
+ }
368
+
369
+ update_option( $this->Record["dashboard"] , $Update );
370
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
371
+ }
372
+ }
373
+
374
+ // DataUpdate
375
+ function update_sidemenu() {
376
+ $Update = $this->update_validate();
377
+ if( !empty( $Update ) ) {
378
+
379
+ if( !empty( $_POST["data"] ) ) {
380
+ foreach($_POST["data"] as $menu) {
381
+ if( !empty( $menu["title"] ) && !empty( $menu["slug"] ) ) {
382
+ $slug = strip_tags( $menu["slug"] );
383
+ $title = strip_tags( $menu["title"] );
384
+ $parent_slug = '';
385
+ $depth = 'main';
386
+
387
+ if( !empty( $menu["parent_slug"] ) ) {
388
+ $parent_slug = strip_tags( $menu["parent_slug"] );
389
+ $depth = 'sub';
390
+ }
391
+
392
+ $Update[$depth][] = array( "slug" => $slug , "title" => $title , "parent_slug" => $parent_slug );
393
+ }
394
+ }
395
+ }
396
+
397
+ update_option( $this->Record["sidemenu"] , $Update );
398
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
399
+ }
400
+ }
401
+
402
+ // DataUpdate
403
+ function update_removemetabox() {
404
+ $Update = $this->update_validate();
405
+ if( !empty( $Update ) ) {
406
+
407
+ if( !empty( $_POST["data"] ) ) {
408
+ foreach($_POST["data"] as $post_type => $val) {
409
+ $post_type = strip_tags( $post_type );
410
+ if( is_array( $val ) ) {
411
+ foreach($val as $id => $v) {
412
+ $tmpK = strip_tags( $id );
413
+ $tmpV = strip_tags ( $v );
414
+ $Update[$post_type][$tmpK] = $tmpV;
415
+ }
416
+ }
417
+
418
+ }
419
+ }
420
+
421
+ update_option( $this->Record["removemetabox"] , $Update );
422
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
423
+ }
424
+ }
425
+
426
+ // DataUpdate
427
+ function update_loginscreen() {
428
+ $Update = $this->update_validate();
429
+ if( !empty( $Update ) ) {
430
+
431
+ if( !empty( $_POST["data"] ) ) {
432
+ foreach($_POST["data"] as $key => $val) {
433
+ $tmpK = strip_tags( $key );
434
+ $tmpV = $val;
435
+ $Update[$tmpK] = $tmpV;
436
+ }
437
+ }
438
+
439
+ update_option( $this->Record["loginscreen"] , $Update );
440
+ $this->Msg = '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
441
+
442
+ }
443
+ }
444
+
445
+
446
+
447
+
448
+
449
+
450
+ // FilterStart
451
+ function FilterStart() {
452
+ // site
453
+ if( !is_admin() ) {
454
+ $this->remove_action_front();
455
+ add_filter( 'login_headerurl' , array( $this , 'login_headerurl' ) );
456
+ add_filter( 'login_headertitle' , array( $this , 'login_headertitle' ) );
457
+ add_action( 'login_head' , array( $this , 'login_head' ) );
458
+ add_action( 'login_footer' , array( $this , 'login_footer' ) );
459
+ }
460
+ // admin UI
461
+ if ( is_admin() ) {
462
+ // default side menu load.
463
+ add_action( 'admin_menu' , array( $this , 'sidemenu_default_load' ) );
464
+
465
+ $SettingRole = $this->get_data( 'user_role' );
466
+ if( !empty( $SettingRole ) ) {
467
+ unset($SettingRole["UPFN"]);
468
+ if( !empty( $SettingRole ) ) {
469
+ add_action( 'init' , array( $this , 'admin_init' ) );
470
+ }
471
+ }
472
+ }
473
+ }
474
+
475
+ // FilterStart
476
+ function admin_init() {
477
+ $SettingRole = $this->get_data( 'user_role' );
478
+ unset($SettingRole["UPFN"]);
479
+
480
+ $User = wp_get_current_user();
481
+ $UserRole = $User->roles[0];
482
+
483
+ if( array_key_exists( $UserRole , $SettingRole ) ){
484
+ add_filter( 'admin_bar_menu' , array( $this , 'admin_bar_menu') , 25 );
485
+ add_action( 'init' , array( $this , 'notice_dismiss' ) , 2 );
486
+ add_action( 'admin_head' , array( $this , 'remove_tab' ) );
487
+ add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
488
+ add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
489
+ add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
490
+ add_action( 'admin_menu' , array( $this , 'removemetabox' ) );
491
+ add_filter( 'admin_menu', array( $this , 'sidemenu' ) );
492
+ }
493
+ }
494
+
495
+ // FilterStart
496
+ function remove_action_front() {
497
+ $GetData = $this->get_data( 'site' );
498
+
499
+ if( !empty( $GetData["UPFN"] ) ) {
500
+ unset( $GetData["UPFN"] );
501
+ foreach($GetData as $key => $val) {
502
+ if( $key == 'feed_links' ) {
503
+ remove_action( 'wp_head', $key , 2 );
504
+ } elseif( $key == 'feed_links_extra' ) {
505
+ remove_action( 'wp_head', $key , 3 );
506
+ } elseif( $key == 'admin_bar' ) {
507
+ add_filter( 'show_admin_bar' , '__return_false' );
508
+ } else {
509
+ remove_action( 'wp_head', $key );
510
+ }
511
+ }
512
+ }
513
+
514
+ }
515
+
516
+ // FilterStart
517
+ function login_headerurl() {
518
+ $GetData = get_option( $this->Record["loginscreen"] );
519
+
520
+ $url = __( 'http://wordpress.org/' );
521
+ if( !empty( $GetData["UPFN"] ) ) {
522
+ unset( $GetData["UPFN"] );
523
+
524
+ if( !empty( $GetData["login_headerurl"] ) ) {
525
+ $url = strip_tags( $GetData["login_headerurl"] );
526
+ $url = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $url );
527
+
528
+ }
529
+ }
530
+
531
+ return $url;
532
+ }
533
+
534
+ // FilterStart
535
+ function login_headertitle() {
536
+ $GetData = get_option( $this->Record["loginscreen"] );
537
+
538
+ $title = __( 'Powered by WordPress' );
539
+ if( !empty( $GetData["UPFN"] ) ) {
540
+ unset( $GetData["UPFN"] );
541
+
542
+ if( !empty( $GetData["login_headertitle"] ) ) {
543
+ $title = strip_tags( $GetData["login_headertitle"] );
544
+ $title = str_replace( '[blog_name]' , get_bloginfo( 'name' ) , $title );
545
+
546
+ }
547
+ }
548
+
549
+ return $title;
550
+ }
551
+
552
+ // FilterStart
553
+ function login_head() {
554
+ $GetData = get_option( $this->Record["loginscreen"] );
555
+
556
+ if( !empty( $GetData["UPFN"] ) ) {
557
+ unset( $GetData["UPFN"] );
558
+
559
+ if( !empty( $GetData["login_headerlogo"] ) ) {
560
+ $logo = strip_tags( $GetData["login_headerlogo"] );
561
+ $logo = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $logo );
562
+ $logo = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $logo );
563
+
564
+ echo '<style type="text/css">.login h1 a { background-image: url(' . $logo . '); }</style>';
565
+ }
566
+
567
+ if( !empty( $GetData["login_css"] ) ) {
568
+ $css = strip_tags( $GetData["login_css"] );
569
+ $css = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $css );
570
+ $css = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $css );
571
+
572
+ wp_enqueue_style( $this->PageSlug , $css , array() , $this->Ver );
573
+ }
574
+
575
+ }
576
+
577
+ }
578
+
579
+ // FilterStart
580
+ function login_footer() {
581
+ $GetData = get_option( $this->Record["loginscreen"] );
582
+
583
+ if( !empty( $GetData["UPFN"] ) ) {
584
+ unset( $GetData["UPFN"] );
585
+
586
+ if( !empty( $GetData["login_footer"] ) ) {
587
+ $text = stripslashes( $GetData["login_footer"] );
588
+
589
+ echo $text;
590
+ }
591
+
592
+ }
593
+ }
594
+
595
+ // FilterStart
596
+ function admin_bar_menu( $wp_admin_bar ) {
597
+ $GetData = $this->get_data( 'admin_general' );
598
+
599
+ if( !empty( $GetData["UPFN"] ) ) {
600
+ unset( $GetData["UPFN"] );
601
+
602
+ $remove_menu = array( 'wp-logo');
603
+ foreach($GetData as $id => $val) {
604
+ if( in_array( $id , $remove_menu ) ) {
605
+ $wp_admin_bar->remove_menu( $id );
606
+ } else {
607
+ if( $id == 'comment' ) {
608
+ remove_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
609
+ } elseif( $id == 'new_content' ) {
610
+ remove_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 );
611
+ } elseif( $id == 'update_menu' ) {
612
+ remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 40 );
613
+ } elseif( $id == 'edit-profile' ) {
614
+ $wp_admin_bar->remove_menu( $id );
615
+ $wp_admin_bar->remove_menu( 'user-info' );
616
+ $wp_admin_bar->add_node( array( 'id' => 'my-account' , 'href' => '' , 'meta' => array() ) );
617
+ }
618
+ }
619
+ }
620
+
621
+ $User = wp_get_current_user();
622
+ $title = strip_tags( $GetData["my-account-title"] );
623
+ $title = str_replace( '[AcountName]' , $User->data->display_name , $title );
624
+ $wp_admin_bar->add_node( array( 'id' => 'my-account' , 'title' => $title , 'meta' => array() ) );
625
+ }
626
+ }
627
+
628
+ // FilterStart
629
+ function notice_dismiss() {
630
+ $GetData = $this->get_data( 'admin_general' );
631
+
632
+ if( !empty( $GetData["UPFN"] ) ) {
633
+
634
+ if( !empty( $GetData["notice_update_core"] ) ) {
635
+ add_filter( 'update_footer' , '__return_false' , 20) ;
636
+ add_filter( 'site_transient_update_core' , array( $this , 'notice_update_core' ) );
637
+ //add_filter( 'site_transient_update_core' , '__return_zero' );
638
+ }
639
+
640
+ if( !empty( $GetData["notice_update_plugin"] ) ) {
641
+ add_filter( 'site_transient_update_plugins' , array( $this , 'notice_update_plugin' ) );
642
+ }
643
+ if( !empty( $GetData["notice_update_theme"] ) ) {
644
+ add_filter( 'site_transient_update_themes' , array( $this , 'notice_update_theme' ) );
645
+ }
646
+
647
+ }
648
+
649
+ }
650
+
651
+ // FilterStart
652
+ function notice_update_core( $site_transient_update_core ) {
653
+ $site_transient_update_core->updates = '';
654
+
655
+ return $site_transient_update_core;
656
+ }
657
+
658
+ // FilterStart
659
+ function notice_update_plugin( $site_transient_update_plugins ) {
660
+ $site_transient_update_plugins->response = '';
661
+
662
+ return $site_transient_update_plugins;
663
+ }
664
+
665
+ // FilterStart
666
+ function notice_update_theme( $site_transient_update_themes ) {
667
+ $site_transient_update_themes->response = '';
668
+
669
+ return $site_transient_update_themes;
670
+ }
671
+
672
+ // FilterStart
673
+ function remove_tab() {
674
+ $GetData = get_option( $this->Record["admin_general"] );
675
+
676
+ if( !empty( $GetData["UPFN"] ) ) {
677
+ unset( $GetData["UPFN"] );
678
+
679
+ if( !empty( $GetData["help_tab"] ) ) {
680
+ $screen = get_current_screen();
681
+ $screen->remove_help_tabs();
682
+ }
683
+
684
+ if( !empty( $GetData["screen_option_tab"] ) ) {
685
+ add_filter( 'screen_options_show_screen' , '__return_false' );
686
+ }
687
+ }
688
+
689
+ }
690
+
691
+ // FilterStart
692
+ function admin_footer_text( $text ) {
693
+ $GetData = $this->get_data( 'admin_general' );
694
+
695
+ $footer_text = $text;
696
+ if( !empty( $GetData["UPFN"] ) ) {
697
+ unset( $GetData["UPFN"] );
698
+
699
+ $footer_text = stripslashes( $GetData["footer_text"] );
700
+ }
701
+
702
+ return $footer_text;
703
+ }
704
+
705
+ // FilterStart
706
+ function load_css() {
707
+ $GetData = get_option( $this->Record["admin_general"] );
708
+
709
+ if( !empty( $GetData["UPFN"] ) ) {
710
+ unset( $GetData["UPFN"] );
711
+
712
+ if( !empty( $GetData["css"] ) ) {
713
+
714
+ $css = strip_tags( $GetData["css"] );
715
+ $css = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $css );
716
+ $css = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $css );
717
+
718
+ wp_enqueue_style( $this->PageSlug , strip_tags( $css ) , array() , $this->Ver );
719
+ }
720
+
721
+ }
722
+
723
+ }
724
+
725
+ // FilterStart
726
+ function wp_dashboard_setup() {
727
+ global $wp_meta_boxes;
728
+
729
+ $GetData = get_option( $this->Record["dashboard"] );
730
+ unset($GetData["f"]);
731
+
732
+ if( !empty( $GetData ) && is_array( $GetData ) ) {
733
+ $dashboard_widgets = array();
734
+ foreach($wp_meta_boxes["dashboard"] as $ns => $core) {
735
+ foreach($core["core"] as $id => $val) {
736
+ $dashboard_widgets[$id] = $ns;
737
+ }
738
+ }
739
+
740
+ foreach($GetData as $id => $val) {
741
+ if( $id == 'show_welcome_panel' ) {
742
+ $user_id = get_current_user_id();
743
+ if( get_user_meta( $user_id , 'show_welcome_panel' , true ) == true ) {
744
+ update_user_meta( $user_id , 'show_welcome_panel' , 0 );
745
+ }
746
+ } elseif( array_key_exists( $id , $dashboard_widgets ) ){
747
+ remove_meta_box( $id , 'dashboard' , $dashboard_widgets[$id] );
748
+ }
749
+ }
750
+ }
751
+
752
+ }
753
+
754
+ // FilterStart
755
+ function removemetabox() {
756
+ $GetData = get_option( $this->Record["removemetabox"] );
757
+
758
+ if( !empty( $GetData["UPFN"] ) ) {
759
+ unset( $GetData["UPFN"] );
760
+
761
+ if( !empty( $GetData ) && is_array( $GetData ) ) {
762
+ foreach($GetData as $post_type => $val) {
763
+ foreach($val as $id => $v) {
764
+ if( $id == 'postimagediv' ) {
765
+ if( current_theme_supports( 'post-thumbnails' ) ) {
766
+ remove_post_type_support( $post_type , 'thumbnail' );
767
+ }
768
+ } else {
769
+ remove_meta_box( $id , $post_type , 'normal' );
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+
776
+ }
777
+
778
+ // FilterStart
779
+ function sidemenu() {
780
+ global $menu;
781
+ global $submenu;
782
+
783
+ $GetData = get_option( $this->Record["sidemenu"] );
784
+ $General = get_option( $this->Record["admin_general"] );
785
+
786
+ if( !empty( $GetData["UPFN"] ) ) {
787
+ unset( $GetData["UPFN"] );
788
+
789
+ if( !empty( $GetData ) && is_array( $GetData ) && !empty( $GetData["main"] ) ) {
790
+ $SetMain_menu = array();
791
+ $SetMain_submenu = array();
792
+ $separator_menu = $menu[99];
793
+
794
+ foreach($GetData["main"] as $mm_pos => $mm) {
795
+ if($mm["slug"] == 'separator') {
796
+ $SetMain_menu[] = $separator_menu;
797
+ } else {
798
+ $gm_search = false;
799
+ foreach($menu as $gm_pos => $gm) {
800
+ if($mm["slug"] == $gm[2]) {
801
+ $menu[$gm_pos][0] = $mm["title"];
802
+ $SetMain_menu[] = $menu[$gm_pos];
803
+ $gm_search = true;
804
+ break;
805
+ }
806
+ }
807
+ if( empty( $gm_search ) ) {
808
+ foreach($submenu as $gsm_parent_slug => $v) {
809
+ foreach($v as $gsm_pos => $gsm) {
810
+ if($mm["slug"] == $gsm[2]) {
811
+
812
+ foreach($menu as $tmp_m) {
813
+ if( $tmp_m[2] == $gsm_parent_slug) {
814
+ $submenu[$gsm_parent_slug][$gsm_pos][4] = $tmp_m[4];
815
+ break;
816
+ }
817
+ }
818
+
819
+ $submenu[$gsm_parent_slug][$gsm_pos][0] = $mm["title"];
820
+ $SetMain_menu[] = $submenu[$gsm_parent_slug][$gsm_pos];
821
+ }
822
+ }
823
+ }
824
+ }
825
+ }
826
+ }
827
+
828
+ foreach($GetData["sub"] as $sm_pos => $sm) {
829
+ if($sm["slug"] == 'separator') {
830
+ $SetMain_submenu[$sm["parent_slug"]][] = $separator_menu;
831
+ } else {
832
+ $gm_search = false;
833
+ foreach($menu as $gm_pos => $gm) {
834
+ if($sm["slug"] == $gm[2]) {
835
+ $menu[$gm_pos][0] = $sm["title"];
836
+ $SetMain_submenu[$sm["parent_slug"]][] = $menu[$gm_pos];
837
+ $gm_search = true;
838
+ break;
839
+ }
840
+ }
841
+ if( empty( $gm_search ) ) {
842
+ foreach($submenu as $gsm_parent_slug => $v) {
843
+ foreach($v as $gsm_pos => $gsm) {
844
+ if($sm["slug"] == $gsm[2]) {
845
+ $submenu[$gsm_parent_slug][$gsm_pos][0] = $sm["title"];
846
+ $SetMain_submenu[$sm["parent_slug"]][] = $submenu[$gsm_parent_slug][$gsm_pos];
847
+ }
848
+ }
849
+ }
850
+ }
851
+ }
852
+ }
853
+
854
+ $menu = $SetMain_menu;
855
+ $submenu = $SetMain_submenu;
856
+
857
+ }
858
+ }
859
+ }
860
+
861
+ }
862
+ $wauc = new WP_Admin_UI_Customize();
863
+
864
+