Version Description
- Added the User roles reset.
- Show the User role to Sidemenu.
- Settings of empty when Sidemenu and Admin Bar to change worked.
- Fixed bug : Thumbnail of appearance menu.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.3.6 |
Comparing to | |
See all releases |
Code changes from version 1.3.5.2 to 1.3.6
- inc/reset_userrole.php +40 -0
- inc/setting_appearance_menus.php +2 -2
- inc/setting_default.php +2 -1
- inc/setting_sidemenu.php +52 -21
- languages/wauc-ja.mo +0 -0
- languages/wauc-ja.po +10 -2
- languages/wauc.pot +11 -3
- readme.txt +8 -2
- wp-admin-ui-customize.css +13 -0
- wp-admin-ui-customize.php +60 -12
inc/reset_userrole.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
$Data = $this->get_data( 'user_role' );
|
5 |
+
$UserRoles = $this->get_user_role();
|
6 |
+
|
7 |
+
// include js css
|
8 |
+
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
9 |
+
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
10 |
+
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
11 |
+
|
12 |
+
?>
|
13 |
+
<div class="wrap">
|
14 |
+
<div class="icon32" id="icon-tools"></div>
|
15 |
+
<?php echo $this->Msg; ?>
|
16 |
+
<h2><?php _e( 'Reset User Roles' , $this->ltd ); ?></h2>
|
17 |
+
<p> </p>
|
18 |
+
|
19 |
+
<form id="waum_reset_userrole" class="waum_form" method="post" action="">
|
20 |
+
<input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
|
21 |
+
<?php wp_nonce_field(); ?>
|
22 |
+
|
23 |
+
<h3><?php _e( 'User Roles' ); ?></h3>
|
24 |
+
<ul>
|
25 |
+
<?php foreach( $Data as $key => $val ) : ?>
|
26 |
+
<?php if( !empty( $UserRoles[$key] ) ): ?>
|
27 |
+
<li><?php echo $UserRoles[$key]; ?></li>
|
28 |
+
<?php endif; ?>
|
29 |
+
<?php endforeach; ?>
|
30 |
+
</ul>
|
31 |
+
<br />
|
32 |
+
|
33 |
+
<p><?php _e( 'You want to reset the user roles?' , $this->ltd ); ?></p>
|
34 |
+
<p class="submit">
|
35 |
+
<input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
|
36 |
+
</p>
|
37 |
+
|
38 |
+
</form>
|
39 |
+
|
40 |
+
</div>
|
inc/setting_appearance_menus.php
CHANGED
@@ -43,7 +43,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
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( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
|
46 |
-
<?php if( version_compare( $GLOBALS['wp_version'], '3.
|
47 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_add_new_menu.png" /></p>
|
48 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_add_new_menu_of_location.png" /></p>
|
49 |
<?php else: ?>
|
@@ -61,7 +61,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
61 |
<?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
62 |
<label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
63 |
<p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
|
64 |
-
<?php if( version_compare( $GLOBALS['wp_version'], '3.
|
65 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_delete_menu.png" /></p>
|
66 |
<?php else: ?>
|
67 |
<p><img src="<?php echo $this->Dir; ?>images/3.5.1/appearance_menus_delete_menu.png" /></p>
|
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( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
|
46 |
+
<?php if( version_compare( $GLOBALS['wp_version'], '3.6', '>=' ) ) : ?>
|
47 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_add_new_menu.png" /></p>
|
48 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_add_new_menu_of_location.png" /></p>
|
49 |
<?php else: ?>
|
61 |
<?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
62 |
<label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
63 |
<p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
|
64 |
+
<?php if( version_compare( $GLOBALS['wp_version'], '3.6', '>=' ) ) : ?>
|
65 |
<p><img src="<?php echo $this->Dir; ?>images/appearance_menus_delete_menu.png" /></p>
|
66 |
<?php else: ?>
|
67 |
<p><img src="<?php echo $this->Dir; ?>images/3.5.1/appearance_menus_delete_menu.png" /></p>
|
inc/setting_default.php
CHANGED
@@ -21,8 +21,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
21 |
<div class="icon32" id="icon-tools"></div>
|
22 |
<?php echo $this->Msg; ?>
|
23 |
<h2><?php echo $this->Name; ?></h2>
|
24 |
-
<p><?php _e( 'Customize the UI of the management screen for all users.' , $this->ltd );
|
25 |
<p><?php _e ( 'Please select the user roles that all settings will apply to.' , $this->ltd ); ?></p>
|
|
|
26 |
<p><strong><span style="color: orange;">new</span> <a href="<?php echo $this->Site; ?>import_export_about/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">WP Admin UI Customize Import & Export Add-on</a></strong></p>
|
27 |
|
28 |
<div class="metabox-holder columns-2">
|
21 |
<div class="icon32" id="icon-tools"></div>
|
22 |
<?php echo $this->Msg; ?>
|
23 |
<h2><?php echo $this->Name; ?></h2>
|
24 |
+
<p><?php _e( 'Customize the UI of the management screen for all users.' , $this->ltd ); ?></p>
|
25 |
<p><?php _e ( 'Please select the user roles that all settings will apply to.' , $this->ltd ); ?></p>
|
26 |
+
<p class="description"><?php _e( 'Multiple settings not supported.' , $this->ltd ); ?></p>
|
27 |
<p><strong><span style="color: orange;">new</span> <a href="<?php echo $this->Site; ?>import_export_about/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">WP Admin UI Customize Import & Export Add-on</a></strong></p>
|
28 |
|
29 |
<div class="metabox-holder columns-2">
|
inc/setting_sidemenu.php
CHANGED
@@ -8,6 +8,7 @@ if( !empty( $_POST["update"] ) ) {
|
|
8 |
$this->update_reset( 'sidemenu' );
|
9 |
}
|
10 |
|
|
|
11 |
$Data = $this->get_data( 'sidemenu' );
|
12 |
|
13 |
// include js css
|
@@ -36,7 +37,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
36 |
<div id="postbox-container-1" class="postbox-container">
|
37 |
|
38 |
<div class="postbox">
|
39 |
-
<h3 class="hndle"
|
|
|
|
|
40 |
<div class="inside">
|
41 |
|
42 |
<?php if( empty( $Data ) ) : ?>
|
@@ -71,48 +74,71 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
71 |
<?php if( $sm[1] == 'update_core' ) : ?>
|
72 |
<?php $submenu_title = __( 'Update' ) . ' [update_total]'; ?>
|
73 |
<?php endif; ?>
|
74 |
-
<?php $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug ); ?>
|
75 |
<?php endif; ?>
|
76 |
<?php endforeach; ?>
|
77 |
<?php endforeach; ?>
|
78 |
|
79 |
<?php endif; ?>
|
80 |
|
81 |
-
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $mm[2] , 'parent_slug' => '' , 'new' => false , 'submenu' => $mwsm ); ?>
|
82 |
<?php $this->menu_widget( $menu_widget ); ?>
|
83 |
|
84 |
<?php endforeach; ?>
|
85 |
|
86 |
<?php else: ?>
|
87 |
|
88 |
-
<?php
|
89 |
|
90 |
-
<?php
|
91 |
|
92 |
-
<?php $
|
93 |
-
|
94 |
-
<?php
|
95 |
-
|
96 |
-
<?php
|
97 |
-
|
98 |
-
<?php
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
<?php endif; ?>
|
101 |
-
|
102 |
<?php endforeach; ?>
|
103 |
-
<?php endif; ?>
|
104 |
|
105 |
-
|
106 |
-
|
107 |
|
108 |
-
|
109 |
|
110 |
-
|
|
|
|
|
111 |
|
112 |
<?php endif; ?>
|
113 |
|
114 |
</div>
|
115 |
</div>
|
|
|
|
|
|
|
116 |
</div>
|
117 |
|
118 |
<div id="postbox-container-2" class="postbox-container">
|
@@ -122,7 +148,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
122 |
<div class="inside">
|
123 |
|
124 |
<p class="description"><?php _e( 'Sepalator' , $this->ltd ); ?></p>
|
125 |
-
<?php $menu_widget = array( 'title' => '-' , 'slug' => 'separator' , 'parent_slug' => '' , 'new' => true ); ?>
|
126 |
<?php $this->menu_widget( $menu_widget ); ?>
|
127 |
<div class="clear"></div>
|
128 |
|
@@ -155,7 +181,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
155 |
<?php elseif( $sm[2] == 'plugins.php' ) : ?>
|
156 |
<?php $menu_title .= ' [update_plugins]'; ?>
|
157 |
<?php endif; ?>
|
158 |
-
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'submenu' => '' ); ?>
|
159 |
<?php $this->menu_widget( $menu_widget ); ?>
|
160 |
<?php endif; ?>
|
161 |
|
@@ -296,6 +322,11 @@ jQuery(document).ready(function($) {
|
|
296 |
});
|
297 |
}
|
298 |
widget_each();
|
|
|
|
|
|
|
|
|
|
|
299 |
|
300 |
});
|
301 |
</script>
|
8 |
$this->update_reset( 'sidemenu' );
|
9 |
}
|
10 |
|
11 |
+
$this->get_roles();
|
12 |
$Data = $this->get_data( 'sidemenu' );
|
13 |
|
14 |
// include js css
|
37 |
<div id="postbox-container-1" class="postbox-container">
|
38 |
|
39 |
<div class="postbox">
|
40 |
+
<h3 class="hndle">
|
41 |
+
<span><?php _e( 'Current menu' , $this->ltd ); ?></span>
|
42 |
+
</h3>
|
43 |
<div class="inside">
|
44 |
|
45 |
<?php if( empty( $Data ) ) : ?>
|
74 |
<?php if( $sm[1] == 'update_core' ) : ?>
|
75 |
<?php $submenu_title = __( 'Update' ) . ' [update_total]'; ?>
|
76 |
<?php endif; ?>
|
77 |
+
<?php $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug , 'cap' => $sm[1] ); ?>
|
78 |
<?php endif; ?>
|
79 |
<?php endforeach; ?>
|
80 |
<?php endforeach; ?>
|
81 |
|
82 |
<?php endif; ?>
|
83 |
|
84 |
+
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $mm[2] , 'parent_slug' => '' , 'new' => false , 'cap' => $mm[1] , 'submenu' => $mwsm ); ?>
|
85 |
<?php $this->menu_widget( $menu_widget ); ?>
|
86 |
|
87 |
<?php endforeach; ?>
|
88 |
|
89 |
<?php else: ?>
|
90 |
|
91 |
+
<?php if( !empty( $Data["main"] ) ) : ?>
|
92 |
|
93 |
+
<?php foreach($Data["main"] as $mm) : ?>
|
94 |
|
95 |
+
<?php if( !empty( $mm["title"] ) ) : ?>
|
96 |
+
|
97 |
+
<?php $mwsm = array(); ?>
|
98 |
+
<?php if( !empty( $Data["sub"] ) ) : ?>
|
99 |
+
<?php foreach($Data["sub"] as $sm) : ?>
|
100 |
+
|
101 |
+
<?php if( $mm["slug"] == $sm["parent_slug"] ) : ?>
|
102 |
+
|
103 |
+
<?php $cap = ""; ?>
|
104 |
+
<?php foreach( $submenu[$mm["slug"]] as $k => $tmp_sm ) : ?>
|
105 |
+
<?php if( $tmp_sm[2] == $sm["slug"] ) : ?>
|
106 |
+
<?php $cap = $tmp_sm[1]; ?>
|
107 |
+
<?php break; ?>
|
108 |
+
<?php endif; ?>
|
109 |
+
<?php endforeach; ?>
|
110 |
+
|
111 |
+
<?php $mwsm[] = array( 'title' => $sm["title"] , 'slug' => $sm["slug"] , 'parent_slug' => $sm["parent_slug"] , 'cap' => $cap ); ?>
|
112 |
+
|
113 |
+
<?php endif; ?>
|
114 |
+
|
115 |
+
<?php endforeach; ?>
|
116 |
+
<?php endif; ?>
|
117 |
+
|
118 |
+
<?php $cap = ""; ?>
|
119 |
+
<?php foreach( $menu as $tmp_m ) : ?>
|
120 |
+
<?php if( $tmp_m[2] == $mm["slug"] ) : ?>
|
121 |
+
<?php $cap = $tmp_m[1]; ?>
|
122 |
+
<?php break; ?>
|
123 |
<?php endif; ?>
|
|
|
124 |
<?php endforeach; ?>
|
|
|
125 |
|
126 |
+
<?php $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'cap' =>$cap , 'submenu' => $mwsm ); ?>
|
127 |
+
<?php $this->menu_widget( $menu_widget ); ?>
|
128 |
|
129 |
+
<?php endif; ?>
|
130 |
|
131 |
+
<?php endforeach; ?>
|
132 |
+
|
133 |
+
<?php endif; ?>
|
134 |
|
135 |
<?php endif; ?>
|
136 |
|
137 |
</div>
|
138 |
</div>
|
139 |
+
|
140 |
+
<p class="sidebar_setting_delete"><a href="#"><?php _e( 'Delete all' ); ?></a></p>
|
141 |
+
|
142 |
</div>
|
143 |
|
144 |
<div id="postbox-container-2" class="postbox-container">
|
148 |
<div class="inside">
|
149 |
|
150 |
<p class="description"><?php _e( 'Sepalator' , $this->ltd ); ?></p>
|
151 |
+
<?php $menu_widget = array( 'title' => '-' , 'slug' => 'separator' , 'parent_slug' => '' , 'new' => true , 'cap' => 'read' ); ?>
|
152 |
<?php $this->menu_widget( $menu_widget ); ?>
|
153 |
<div class="clear"></div>
|
154 |
|
181 |
<?php elseif( $sm[2] == 'plugins.php' ) : ?>
|
182 |
<?php $menu_title .= ' [update_plugins]'; ?>
|
183 |
<?php endif; ?>
|
184 |
+
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'cap' => $sm[1] , 'submenu' => '' ); ?>
|
185 |
<?php $this->menu_widget( $menu_widget ); ?>
|
186 |
<?php endif; ?>
|
187 |
|
322 |
});
|
323 |
}
|
324 |
widget_each();
|
325 |
+
|
326 |
+
$('.sidebar_setting_delete', $Form).click(function() {
|
327 |
+
$("#postbox-container-1 .postbox .inside").html('');
|
328 |
+
return false;
|
329 |
+
});
|
330 |
|
331 |
});
|
332 |
</script>
|
languages/wauc-ja.mo
CHANGED
Binary file
|
languages/wauc-ja.po
CHANGED
@@ -2,12 +2,11 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date: 2013-
|
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 |
"Language: ja_JP\n"
|
@@ -17,6 +16,9 @@ msgstr ""
|
|
17 |
msgid "An excellent plugin to customize the management screens."
|
18 |
msgstr "管理画面のカスタマイズに優れたプラグインです。"
|
19 |
|
|
|
|
|
|
|
20 |
msgid "Customize the UI of the management screen for all users."
|
21 |
msgstr "全てのユーザーの管理画面UIをカスタマイズします。"
|
22 |
|
@@ -26,6 +28,9 @@ msgstr "設定を適用する権限が選択されていません。<a href=\"%s
|
|
26 |
msgid "Please select the user roles that all settings will apply to."
|
27 |
msgstr "設定を適用する権限を選んでください。"
|
28 |
|
|
|
|
|
|
|
29 |
msgid "Reset all settings?"
|
30 |
msgstr "リセットしますか?"
|
31 |
|
@@ -218,3 +223,6 @@ msgstr "ショートコード"
|
|
218 |
msgid "In your case."
|
219 |
msgstr "これはあなたの場合です。"
|
220 |
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2013-07-01 15:45+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 |
"X-Poedit-Language: Japanese\n"
|
11 |
"X-Poedit-Country: JAPAN\n"
|
12 |
"Language: ja_JP\n"
|
16 |
msgid "An excellent plugin to customize the management screens."
|
17 |
msgstr "管理画面のカスタマイズに優れたプラグインです。"
|
18 |
|
19 |
+
msgid "Reset User Roles"
|
20 |
+
msgstr "ユーザー権限リセット"
|
21 |
+
|
22 |
msgid "Customize the UI of the management screen for all users."
|
23 |
msgstr "全てのユーザーの管理画面UIをカスタマイズします。"
|
24 |
|
28 |
msgid "Please select the user roles that all settings will apply to."
|
29 |
msgstr "設定を適用する権限を選んでください。"
|
30 |
|
31 |
+
msgid "Multiple settings not supported."
|
32 |
+
msgstr "複数設定はサポートしておりません。"
|
33 |
+
|
34 |
msgid "Reset all settings?"
|
35 |
msgstr "リセットしますか?"
|
36 |
|
223 |
msgid "In your case."
|
224 |
msgstr "これはあなたの場合です。"
|
225 |
|
226 |
+
msgid "You want to reset the user roles?"
|
227 |
+
msgstr "ユーザー権限をリセットしてもよろしいですか?"
|
228 |
+
|
languages/wauc.pot
CHANGED
@@ -2,21 +2,23 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date: 2013-
|
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 |
"Language: ja_JP\n"
|
14 |
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
-
"Last-Translator:
|
16 |
|
17 |
msgid "An excellent plugin to customize the management screens."
|
18 |
msgstr ""
|
19 |
|
|
|
|
|
|
|
20 |
msgid "Customize the UI of the management screen for all users."
|
21 |
msgstr ""
|
22 |
|
@@ -26,6 +28,9 @@ msgstr ""
|
|
26 |
msgid "Please select the user roles that all settings will apply to."
|
27 |
msgstr ""
|
28 |
|
|
|
|
|
|
|
29 |
msgid "Reset all settings?"
|
30 |
msgstr ""
|
31 |
|
@@ -218,3 +223,6 @@ msgstr ""
|
|
218 |
msgid "In your case."
|
219 |
msgstr ""
|
220 |
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2013-07-01 15:45+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 |
"X-Poedit-Language: Japanese\n"
|
11 |
"X-Poedit-Country: JAPAN\n"
|
12 |
"Language: ja_JP\n"
|
13 |
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
+
"Last-Translator: Gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
15 |
|
16 |
msgid "An excellent plugin to customize the management screens."
|
17 |
msgstr ""
|
18 |
|
19 |
+
msgid "Reset User Roles"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
msgid "Customize the UI of the management screen for all users."
|
23 |
msgstr ""
|
24 |
|
28 |
msgid "Please select the user roles that all settings will apply to."
|
29 |
msgstr ""
|
30 |
|
31 |
+
msgid "Multiple settings not supported."
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
msgid "Reset all settings?"
|
35 |
msgstr ""
|
36 |
|
223 |
msgid "In your case."
|
224 |
msgstr ""
|
225 |
|
226 |
+
msgid "You want to reset the user roles?"
|
227 |
+
msgstr ""
|
228 |
+
|
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=
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
|
5 |
Requires at least: 3.4.2
|
6 |
Tested up to: 3.5.2
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -49,6 +49,12 @@ These to Customization is possible.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
= 1.3.5.2 =
|
53 |
* Added the use of variables in the footer text.
|
54 |
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
+
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_3_6
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
|
5 |
Requires at least: 3.4.2
|
6 |
Tested up to: 3.5.2
|
7 |
+
Stable tag: 1.3.6
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.3.6 =
|
53 |
+
* Added the User roles reset.
|
54 |
+
* Show the User role to Sidemenu.
|
55 |
+
* Settings of empty when Sidemenu and Admin Bar to change worked.
|
56 |
+
* Fixed bug : Thumbnail of appearance menu.
|
57 |
+
|
58 |
= 1.3.5.2 =
|
59 |
* Added the use of variables in the footer text.
|
60 |
|
wp-admin-ui-customize.css
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
}
|
11 |
|
12 |
|
|
|
13 |
.postbox-container #donationbox {
|
14 |
background: #87BCE4;
|
15 |
border: 3px solid #227499;
|
@@ -93,6 +94,18 @@
|
|
93 |
}
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
|
98 |
|
10 |
}
|
11 |
|
12 |
|
13 |
+
|
14 |
.postbox-container #donationbox {
|
15 |
background: #87BCE4;
|
16 |
border: 3px solid #227499;
|
94 |
}
|
95 |
|
96 |
|
97 |
+
#sidemenu-holder #postbox-container-1 .postbox .inside .settings ul.display_roles {
|
98 |
+
display: block;
|
99 |
+
}
|
100 |
+
#sidemenu-holder #postbox-container-1 .postbox .inside .settings ul.display_roles li {
|
101 |
+
display: inline-block;
|
102 |
+
color: #BBB;
|
103 |
+
}
|
104 |
+
#sidemenu-holder #postbox-container-1 .postbox .inside .settings ul.display_roles li.has_cap {
|
105 |
+
font-weight: bold;
|
106 |
+
background: #eaeaea;
|
107 |
+
color: #000;
|
108 |
+
}
|
109 |
|
110 |
|
111 |
|
wp-admin-ui-customize.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
-
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
6 |
-
Version: 1.3.
|
7 |
Author: gqevu6bsiz
|
8 |
-
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -44,11 +44,12 @@ class WP_Admin_UI_Customize
|
|
44 |
$Menu,
|
45 |
$SubMenu,
|
46 |
$Admin_bar,
|
|
|
47 |
$Msg;
|
48 |
|
49 |
|
50 |
function __construct() {
|
51 |
-
$this->Ver = '1.3.
|
52 |
$this->Name = 'WP Admin UI Customize';
|
53 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
54 |
$this->Site = 'http://wpadminuicustomize.com/';
|
@@ -100,9 +101,10 @@ class WP_Admin_UI_Customize
|
|
100 |
// PluginSetup
|
101 |
function plugin_action_links( $links , $file ) {
|
102 |
if( plugin_basename(__FILE__) == $file ) {
|
103 |
-
$link = '<a href="' .self_admin_url(
|
104 |
$support_link = '<a href="http://wordpress.org/support/plugin/wp-admin-ui-customize" target="_blank">' . __( 'Support Forums' ) . '</a>';
|
105 |
-
|
|
|
106 |
}
|
107 |
return $links;
|
108 |
}
|
@@ -129,6 +131,7 @@ class WP_Admin_UI_Customize
|
|
129 |
add_submenu_page( $this->PageSlug , __( 'Add New Post and Edit Post Screen Setting' , $this->ltd ) , __( 'Add New Post and Edit Post Screen Setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_post_add_edit_screen' , array( $this , 'setting_post_add_edit' ) );
|
130 |
add_submenu_page( $this->PageSlug , __( 'Appearance Menus Screen Setting' , $this->ltd ) , __( 'Appearance Menus Screen Setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_appearance_menus' , array( $this , 'setting_appearance_menus' ) );
|
131 |
add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , 'administrator' , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
|
|
|
132 |
}
|
133 |
|
134 |
|
@@ -213,6 +216,15 @@ class WP_Admin_UI_Customize
|
|
213 |
include_once 'inc/setting_loginscreen.php';
|
214 |
}
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
|
218 |
|
@@ -256,6 +268,18 @@ class WP_Admin_UI_Customize
|
|
256 |
return $UserRole;
|
257 |
}
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
// SetList
|
260 |
function sidemenu_default_load() {
|
261 |
global $menu , $submenu;
|
@@ -415,10 +439,10 @@ class WP_Admin_UI_Customize
|
|
415 |
|
416 |
// SetList
|
417 |
function menu_widget( $menu_widget ) {
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
?>
|
423 |
<div class="widget <?php echo $menu_widget["slug"]; ?> <?php echo $new_widget; ?>">
|
424 |
|
@@ -445,6 +469,17 @@ class WP_Admin_UI_Customize
|
|
445 |
<input type="hidden" class="slugtext" value="<?php echo $menu_widget["slug"]; ?>" name="data[][slug]">
|
446 |
<?php endif; ?>
|
447 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
<label>
|
449 |
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $menu_widget["title"] ); ?>" name="data[][title]">
|
450 |
</label>
|
@@ -479,6 +514,17 @@ class WP_Admin_UI_Customize
|
|
479 |
<?php _e( 'Slug' ); ?>: <?php echo $sm["slug"]; ?>
|
480 |
<input type="hidden" class="slugtext" value="<?php echo $sm["slug"]; ?>" name="data[][slug]">
|
481 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
<label>
|
483 |
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $sm["title"] ); ?>" name="data[][title]">
|
484 |
</label>
|
@@ -1136,7 +1182,7 @@ class WP_Admin_UI_Customize
|
|
1136 |
|
1137 |
if( !empty( $GetData["UPFN"] ) ) {
|
1138 |
unset( $GetData["UPFN"] );
|
1139 |
-
if(
|
1140 |
|
1141 |
$update_data = wp_get_update_data();
|
1142 |
|
@@ -1196,7 +1242,6 @@ class WP_Admin_UI_Customize
|
|
1196 |
}
|
1197 |
}
|
1198 |
}
|
1199 |
-
|
1200 |
}
|
1201 |
}
|
1202 |
}
|
@@ -1532,6 +1577,9 @@ class WP_Admin_UI_Customize
|
|
1532 |
$menu = $SetMain_menu;
|
1533 |
$submenu = $SetMain_submenu;
|
1534 |
|
|
|
|
|
|
|
1535 |
}
|
1536 |
}
|
1537 |
}
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_6
|
6 |
+
Version: 1.3.6
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_6
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
44 |
$Menu,
|
45 |
$SubMenu,
|
46 |
$Admin_bar,
|
47 |
+
$Roles,
|
48 |
$Msg;
|
49 |
|
50 |
|
51 |
function __construct() {
|
52 |
+
$this->Ver = '1.3.6';
|
53 |
$this->Name = 'WP Admin UI Customize';
|
54 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
55 |
$this->Site = 'http://wpadminuicustomize.com/';
|
101 |
// PluginSetup
|
102 |
function plugin_action_links( $links , $file ) {
|
103 |
if( plugin_basename(__FILE__) == $file ) {
|
104 |
+
$link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug ) . '">' . __( 'Settings' ) . '</a>';
|
105 |
$support_link = '<a href="http://wordpress.org/support/plugin/wp-admin-ui-customize" target="_blank">' . __( 'Support Forums' ) . '</a>';
|
106 |
+
$delete_userrole_link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug . '_reset_userrole' ) . '">' . __( 'Reset User Roles' , $this->ltd ) . '</a>';
|
107 |
+
array_unshift( $links, $link , $delete_userrole_link , $support_link );
|
108 |
}
|
109 |
return $links;
|
110 |
}
|
131 |
add_submenu_page( $this->PageSlug , __( 'Add New Post and Edit Post Screen Setting' , $this->ltd ) , __( 'Add New Post and Edit Post Screen Setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_post_add_edit_screen' , array( $this , 'setting_post_add_edit' ) );
|
132 |
add_submenu_page( $this->PageSlug , __( 'Appearance Menus Screen Setting' , $this->ltd ) , __( 'Appearance Menus Screen Setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_appearance_menus' , array( $this , 'setting_appearance_menus' ) );
|
133 |
add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , 'administrator' , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
|
134 |
+
add_submenu_page( $this->PageSlug , __( 'Reset User Roles' , $this->ltd ) , '<div style="display: none";>' . __( 'Reset User Roles' , $this->ltd ) . '</div>' , 'administrator' , $this->PageSlug . '_reset_userrole' , array( $this , 'reset_userrole' ) );
|
135 |
}
|
136 |
|
137 |
|
216 |
include_once 'inc/setting_loginscreen.php';
|
217 |
}
|
218 |
|
219 |
+
// SettingPage
|
220 |
+
function reset_userrole() {
|
221 |
+
if( !empty( $_POST["reset"] ) ) {
|
222 |
+
$this->update_reset( 'user_role' );
|
223 |
+
}
|
224 |
+
add_filter( 'admin_footer_text' , array( $this , 'layout_footer' ) );
|
225 |
+
include_once 'inc/reset_userrole.php';
|
226 |
+
}
|
227 |
+
|
228 |
|
229 |
|
230 |
|
268 |
return $UserRole;
|
269 |
}
|
270 |
|
271 |
+
// SetList
|
272 |
+
function get_roles() {
|
273 |
+
$UserRoles = $this->get_user_role();
|
274 |
+
$Roles = array();
|
275 |
+
foreach( $UserRoles as $u_role => $u_name ) {
|
276 |
+
$Roles[$u_role] = get_role( $u_role );
|
277 |
+
$Roles[$u_role]->label = $u_name;
|
278 |
+
}
|
279 |
+
|
280 |
+
$this->Roles = $Roles;
|
281 |
+
}
|
282 |
+
|
283 |
// SetList
|
284 |
function sidemenu_default_load() {
|
285 |
global $menu , $submenu;
|
439 |
|
440 |
// SetList
|
441 |
function menu_widget( $menu_widget ) {
|
442 |
+
$new_widget = '';
|
443 |
+
if( !empty( $menu_widget["new"] ) ) {
|
444 |
+
$new_widget = 'new';
|
445 |
+
}
|
446 |
?>
|
447 |
<div class="widget <?php echo $menu_widget["slug"]; ?> <?php echo $new_widget; ?>">
|
448 |
|
469 |
<input type="hidden" class="slugtext" value="<?php echo $menu_widget["slug"]; ?>" name="data[][slug]">
|
470 |
<?php endif; ?>
|
471 |
</p>
|
472 |
+
<ul class="display_roles">
|
473 |
+
<?php _e( 'User Roles' ); ?> :
|
474 |
+
<?php foreach( $this->Roles as $user_roles ) : ?>
|
475 |
+
<?php $cap = $user_roles->capabilities; ?>
|
476 |
+
<?php $has_cap = false; ?>
|
477 |
+
<?php if( !empty( $cap[$menu_widget["cap"]] ) or $user_roles->name == $menu_widget["cap"] ) : ?>
|
478 |
+
<?php $has_cap = 'has_cap'; ?>
|
479 |
+
<?php endif; ?>
|
480 |
+
<li class="<?php echo $user_roles->name; ?> <?php echo $has_cap; ?>"><?php echo $user_roles->label; ?></li>
|
481 |
+
<?php endforeach ;?>
|
482 |
+
</ul>
|
483 |
<label>
|
484 |
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $menu_widget["title"] ); ?>" name="data[][title]">
|
485 |
</label>
|
514 |
<?php _e( 'Slug' ); ?>: <?php echo $sm["slug"]; ?>
|
515 |
<input type="hidden" class="slugtext" value="<?php echo $sm["slug"]; ?>" name="data[][slug]">
|
516 |
</p>
|
517 |
+
<ul class="display_roles">
|
518 |
+
<?php _e( 'User Roles' ); ?> :
|
519 |
+
<?php foreach( $this->Roles as $user_roles ) : ?>
|
520 |
+
<?php $cap = $user_roles->capabilities; ?>
|
521 |
+
<?php $has_cap = false; ?>
|
522 |
+
<?php if( !empty( $cap[$sm["cap"]] ) or $user_roles->name == $sm["cap"] ) : ?>
|
523 |
+
<?php $has_cap = 'has_cap'; ?>
|
524 |
+
<?php endif; ?>
|
525 |
+
<li class="<?php echo $user_roles->name; ?> <?php echo $has_cap; ?>"><?php echo $user_roles->label; ?></li>
|
526 |
+
<?php endforeach ;?>
|
527 |
+
</ul>
|
528 |
<label>
|
529 |
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $sm["title"] ); ?>" name="data[][title]">
|
530 |
</label>
|
1182 |
|
1183 |
if( !empty( $GetData["UPFN"] ) ) {
|
1184 |
unset( $GetData["UPFN"] );
|
1185 |
+
if( is_array( $GetData ) ) {
|
1186 |
|
1187 |
$update_data = wp_get_update_data();
|
1188 |
|
1242 |
}
|
1243 |
}
|
1244 |
}
|
|
|
1245 |
}
|
1246 |
}
|
1247 |
}
|
1577 |
$menu = $SetMain_menu;
|
1578 |
$submenu = $SetMain_submenu;
|
1579 |
|
1580 |
+
} else {
|
1581 |
+
// empty menu
|
1582 |
+
$menu = array();
|
1583 |
}
|
1584 |
}
|
1585 |
}
|