Version Description
- Fixed: Svn upload miss.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.4.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.1.1
- inc/list_variables.php +14 -0
- inc/setting_admin_bar_menu.php +141 -231
- languages/wauc-ja.mo +0 -0
- languages/wauc-ja.po +39 -20
- languages/wauc.pot +37 -18
- languages/wauc_plugin-ja.mo +0 -0
- languages/wauc_plugin-ja.po +4 -4
- languages/wauc_plugin.pot +3 -4
- readme.txt +12 -4
- wp-admin-ui-customize.css +79 -18
- wp-admin-ui-customize.js +4 -0
- wp-admin-ui-customize.php +273 -170
inc/list_variables.php
CHANGED
@@ -95,6 +95,13 @@ if( is_multisite() ) {
|
|
95 |
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
96 |
</td>
|
97 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
<tr>
|
99 |
<th><strong>[user_avatar]</strong></th>
|
100 |
<td>
|
@@ -102,6 +109,13 @@ if( is_multisite() ) {
|
|
102 |
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
103 |
</td>
|
104 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
</tbody>
|
106 |
</table>
|
107 |
|
95 |
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
96 |
</td>
|
97 |
</tr>
|
98 |
+
<tr>
|
99 |
+
<th><strong>[user_login_name]</strong></th>
|
100 |
+
<td>
|
101 |
+
<code><?php echo $current_user->user_login; ?></code>
|
102 |
+
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
103 |
+
</td>
|
104 |
+
</tr>
|
105 |
<tr>
|
106 |
<th><strong>[user_avatar]</strong></th>
|
107 |
<td>
|
109 |
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
110 |
</td>
|
111 |
</tr>
|
112 |
+
<tr>
|
113 |
+
<th><strong>[user_avatar_64]</strong></th>
|
114 |
+
<td>
|
115 |
+
<code><?php echo get_avatar( $current_user->ID , 64 ); ?></code>
|
116 |
+
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
117 |
+
</td>
|
118 |
+
</tr>
|
119 |
</tbody>
|
120 |
</table>
|
121 |
|
inc/setting_admin_bar_menu.php
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
|
3 |
$Data = $this->get_data( 'admin_bar_menu' );
|
4 |
$AllDefaultNodes = $this->admin_bar_filter_load();
|
|
|
5 |
|
6 |
// include js css
|
7 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
@@ -28,273 +29,166 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
28 |
<?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
|
29 |
<input type="hidden" name="record_field" value="admin_bar_menu" />
|
30 |
|
|
|
|
|
|
|
31 |
<div id="poststuff">
|
32 |
|
33 |
<div id="post-body" class="metabox-holder columns-2">
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
<div
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
<?php $
|
47 |
-
|
48 |
-
|
49 |
-
<?php
|
50 |
-
|
51 |
-
<?php if( $main_node->id == $sub_node->parent ) : ?>
|
52 |
-
|
53 |
-
<?php $pnsn[] = array( 'id' => $sub_node->id , 'title' => stripslashes( $sub_node->title ) , 'parent' => $main_node->id , 'href' => $sub_node->href , 'group' => false , 'meta' => $sub_node->meta , 'new' => false ); ?>
|
54 |
-
|
55 |
-
<?php endif; ?>
|
56 |
-
|
57 |
-
<?php endforeach; ?>
|
58 |
-
|
59 |
<?php endif; ?>
|
60 |
-
|
61 |
-
<?php $menu_widget = array( 'id' => $main_node->id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => false , 'meta' => $main_node->meta , 'new' => false , 'subnode' => $pnsn ); ?>
|
62 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
63 |
-
|
64 |
-
<?php endforeach; ?>
|
65 |
-
|
66 |
-
<?php else : ?>
|
67 |
-
|
68 |
-
<?php if( !empty( $Data["right"]["main"] ) ) : ?>
|
69 |
-
|
70 |
-
<?php foreach( $Data["right"]["main"] as $main_node) : ?>
|
71 |
-
|
72 |
-
<?php $pnsn = array(); ?>
|
73 |
-
<?php if( !empty( $Data["right"]["sub"] ) ) : ?>
|
74 |
-
|
75 |
-
<?php foreach( $Data["right"]["sub"] as $sub_node) : ?>
|
76 |
-
|
77 |
-
<?php if( $main_node["id"] == $sub_node["parent"] ) : ?>
|
78 |
-
|
79 |
-
<?php if( empty( $sub_node["meta"] ) ) : ?>
|
80 |
-
<?php $sub_node["meta"] = array(); ?>
|
81 |
-
<?php endif; ?>
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
<?php endif; ?>
|
86 |
-
|
87 |
-
<?php endforeach; ?>
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
<?php $
|
93 |
-
<?php endif; ?>
|
94 |
-
|
95 |
-
<?php $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => false , 'meta' => $main_node["meta"] , 'new' => false , 'subnode' => $pnsn ); ?>
|
96 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
97 |
-
|
98 |
-
<?php endforeach; ?>
|
99 |
-
|
100 |
-
<?php endif; ?>
|
101 |
-
|
102 |
-
<?php endif; ?>
|
103 |
-
|
104 |
-
</div>
|
105 |
-
</div>
|
106 |
-
</div>
|
107 |
-
</div>
|
108 |
-
|
109 |
-
<div id="postbox-container-2" class="postbox-container">
|
110 |
-
<div id="left_menus">
|
111 |
-
<div class="postbox">
|
112 |
-
<div class="handlediv" title="Click to toggle"><br></div>
|
113 |
-
<h3 class="hndle"><span><?php _e( 'Left' ); ?><?php _e( 'Menus' ); ?></span></h3>
|
114 |
-
<div class="inside">
|
115 |
-
<?php if( empty( $Data ) ) : ?>
|
116 |
-
|
117 |
-
<?php foreach( $AllDefaultNodes["left"]["main"] as $main_node) : ?>
|
118 |
-
|
119 |
-
<?php $pnsn = array(); ?>
|
120 |
-
<?php if( !empty( $AllDefaultNodes["left"]["sub"] ) ) : ?>
|
121 |
|
122 |
-
<?php foreach( $AllDefaultNodes["left"]["sub"] as $sub_node) : ?>
|
123 |
-
|
124 |
-
<?php if( $main_node->id == $sub_node->parent ) : ?>
|
125 |
-
|
126 |
-
<?php $pnsn[] = array( 'id' => $sub_node->id , 'title' => stripslashes( $sub_node->title ) , 'parent' => $main_node->id , 'href' => $sub_node->href , 'group' => false , 'meta' => $sub_node->meta , 'new' => false ); ?>
|
127 |
-
|
128 |
-
<?php endif; ?>
|
129 |
-
|
130 |
<?php endforeach; ?>
|
131 |
-
|
132 |
<?php endif; ?>
|
133 |
-
|
134 |
-
<?php $menu_widget = array( 'id' => $main_node->id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => false , 'meta' => $main_node->meta , 'new' => false , 'subnode' => $pnsn ); ?>
|
135 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
136 |
-
|
137 |
-
<?php endforeach; ?>
|
138 |
-
|
139 |
-
<?php else : ?>
|
140 |
-
|
141 |
-
<?php if( !empty( $Data["left"]["main"] ) ) : ?>
|
142 |
-
|
143 |
-
<?php foreach( $Data["left"]["main"] as $main_node) : ?>
|
144 |
-
|
145 |
-
<?php $pnsn = array(); ?>
|
146 |
-
<?php if( !empty( $Data["left"]["sub"] ) ) : ?>
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
<?php if( $main_node["id"] == $sub_node["parent"] ) : ?>
|
151 |
-
|
152 |
-
<?php if( empty( $sub_node["meta"] ) ) : ?>
|
153 |
-
<?php $sub_node["meta"] = array(); ?>
|
154 |
-
<?php endif; ?>
|
155 |
-
|
156 |
-
<?php $pnsn[] = array( 'id' => $sub_node["id"] , 'title' => stripslashes( $sub_node["title"] ) , 'parent' => $main_node["id"] , 'href' => $sub_node["href"] , 'group' => false , 'meta' => $sub_node["meta"] , 'new' => false ); ?>
|
157 |
-
|
158 |
-
<?php endif; ?>
|
159 |
-
|
160 |
-
<?php endforeach; ?>
|
161 |
-
|
162 |
-
<?php endif; ?>
|
163 |
-
|
164 |
-
<?php if( empty( $main_node["meta"] ) ) : ?>
|
165 |
-
<?php $main_node["meta"] = array(); ?>
|
166 |
-
<?php endif; ?>
|
167 |
-
|
168 |
-
<?php $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => false , 'meta' => $main_node["meta"] , 'new' => false , 'subnode' => $pnsn ); ?>
|
169 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
170 |
-
|
171 |
-
<?php endforeach; ?>
|
172 |
-
|
173 |
-
<?php endif; ?>
|
174 |
-
|
175 |
-
<?php endif; ?>
|
176 |
</div>
|
177 |
</div>
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
181 |
<br class="clear">
|
182 |
|
183 |
</div>
|
184 |
|
185 |
</div>
|
186 |
|
187 |
-
<
|
188 |
-
|
189 |
-
|
190 |
-
<h3 class="hndle"><span><?php _e ( 'Menu items that can be added' , $this->ltd ); ?></span></h3>
|
191 |
-
<div class="inside">
|
192 |
-
|
193 |
-
<h4><?php _e( 'Custom' ); ?> <?php _e( 'Menus' ); ?></h4>
|
194 |
-
<?php $menu_widget = array( 'id' => "custom_node" , 'title' => "" , 'parent' => '' , 'href' => "" , 'group' => false , 'meta' => array() , 'new' => true , 'subnode' => false ); ?>
|
195 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
196 |
-
<div class="clear"></div>
|
197 |
-
|
198 |
-
<h4><?php _e( 'Left' ); ?> <?php _e( 'Menus' ); ?></h4>
|
199 |
-
|
200 |
-
<?php foreach( $AllDefaultNodes["left"]["main"] as $node_id => $node ) : ?>
|
201 |
-
|
202 |
-
<p class="description"><?php echo $node_id; ?></p>
|
203 |
-
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'meta' => $node->meta , 'new' => true , 'subnode' => false ); ?>
|
204 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
205 |
-
|
206 |
-
<?php foreach( $AllDefaultNodes["left"]["sub"] as $child_node_id => $child_node ) : ?>
|
207 |
-
|
208 |
-
<?php if( $child_node->parent == $node_id ) : ?>
|
209 |
-
|
210 |
-
<?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'meta' => $child_node->meta , 'new' => true , 'subnode' => false ); ?>
|
211 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
212 |
-
|
213 |
-
<?php endif; ?>
|
214 |
-
|
215 |
-
<?php endforeach; ?>
|
216 |
-
|
217 |
-
<div class="clear"></div>
|
218 |
-
|
219 |
-
<?php endforeach; ?>
|
220 |
-
|
221 |
-
<div class="clear"></div>
|
222 |
|
223 |
-
|
|
|
|
|
|
|
224 |
|
225 |
-
|
226 |
|
227 |
-
|
228 |
-
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => $node->meta , 'new' => true , 'subnode' => false ); ?>
|
229 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
230 |
-
|
231 |
-
<?php foreach( $AllDefaultNodes["right"]["sub"] as $child_node_id => $child_node ) : ?>
|
232 |
|
233 |
-
|
234 |
|
235 |
-
|
236 |
-
|
237 |
|
238 |
-
|
|
|
|
|
|
|
239 |
|
240 |
-
<?php
|
241 |
-
|
|
|
|
|
242 |
<div class="clear"></div>
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
<div class="clear"></div>
|
247 |
-
|
248 |
-
<h4><?php _e( 'Front' ); ?> <?php _e( 'Menus' ); ?></h4>
|
249 |
-
|
250 |
-
<?php foreach( $AllDefaultNodes["front"]["main"] as $node_id => $node ) : ?>
|
251 |
-
|
252 |
-
<p class="description"><?php echo $node_id; ?></p>
|
253 |
-
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => $node->meta , 'new' => true , 'subnode' => false ); ?>
|
254 |
-
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
255 |
-
|
256 |
-
<?php foreach( $AllDefaultNodes["front"]["sub"] as $child_node_id => $child_node ) : ?>
|
257 |
|
258 |
-
|
259 |
|
260 |
-
|
261 |
-
|
|
|
|
|
262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
<?php endif; ?>
|
264 |
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
<?php endforeach; ?>
|
270 |
-
|
271 |
-
<div class="clear"></div>
|
272 |
|
273 |
-
</div>
|
274 |
</div>
|
275 |
-
|
276 |
</div>
|
277 |
|
278 |
-
|
279 |
-
<input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
|
280 |
-
</p>
|
281 |
-
|
282 |
-
<p class="submit reset">
|
283 |
-
<span class="description"><?php _e( 'Reset all settings?' , $this->ltd ); ?></span>
|
284 |
-
<input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
|
285 |
-
</p>
|
286 |
-
|
287 |
-
</form>
|
288 |
|
289 |
</div>
|
290 |
|
291 |
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
292 |
|
293 |
<style>
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
{ background-image: url(../wp-includes/images/admin-bar-sprite.png); }
|
299 |
</style>
|
300 |
|
@@ -305,7 +199,7 @@ var wauc_widget_each, wauc_menu_sortable;
|
|
305 |
jQuery(document).ready(function($) {
|
306 |
|
307 |
var $Form = $("#wauc_setting_admin_bar_menu");
|
308 |
-
var $AddInside = $('#can_menus .postbox .inside'
|
309 |
var $SettingInside = $('#poststuff #post-body .postbox-container .postbox .inside', $Form);
|
310 |
|
311 |
$AddInside.children('.widget').draggable({
|
@@ -379,18 +273,33 @@ jQuery(document).ready(function($) {
|
|
379 |
|
380 |
wauc_widget_each = function widget_each() {
|
381 |
var $Count = 0;
|
382 |
-
$('#wauc_setting_admin_bar_menu #poststuff
|
383 |
var $InputId = $(this).children(".widget-inside").children(".settings").children(".field-url").children(".idtext");
|
384 |
var $InputLink = $(this).children(".widget-inside").children(".settings").children(".field-url").children(".linktext");
|
385 |
var $InputTitle = $(this).children(".widget-inside").children(".settings").children(".field-title").children("label").children(".titletext");
|
|
|
|
|
386 |
var $InputMetaTarget = $(this).children(".widget-inside").children(".settings").children(".field-meta").children("label").children(".meta_target");
|
387 |
var $InputParentName = $(this).children(".widget-inside").children(".settings").children(".parent");
|
|
|
388 |
|
389 |
var $BoxName = "";
|
390 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
$BoxName = $(this).parent().parent().parent().parent().parent().parent().attr("id");
|
|
|
392 |
} else {
|
393 |
$BoxName = $(this).parent().parent().parent().attr("id");
|
|
|
394 |
}
|
395 |
|
396 |
if( $BoxName ) {
|
@@ -412,13 +321,14 @@ jQuery(document).ready(function($) {
|
|
412 |
$InputId.attr("name", $Name+'[id]');
|
413 |
$InputLink.attr("name", $Name+'[href]');
|
414 |
$InputTitle.attr("name", $Name+'[title]');
|
|
|
|
|
415 |
$InputMetaTarget.attr("name", $Name+'[meta][target]');
|
416 |
$InputParentName.attr("name", $Name+'[parent]');
|
|
|
|
|
417 |
|
418 |
-
if ( $(this).parent().
|
419 |
-
// None three
|
420 |
-
$(this).remove();
|
421 |
-
} else if ( $(this).parent().hasClass("submenu") ) {
|
422 |
var $ParentId = $(this).parent().parent().children(".settings").children(".description").children(".idtext").val();
|
423 |
$InputParentName.val($ParentId);
|
424 |
} else {
|
2 |
|
3 |
$Data = $this->get_data( 'admin_bar_menu' );
|
4 |
$AllDefaultNodes = $this->admin_bar_filter_load();
|
5 |
+
$Place_types = $this->admin_bar_places();
|
6 |
|
7 |
// include js css
|
8 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
29 |
<?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
|
30 |
<input type="hidden" name="record_field" value="admin_bar_menu" />
|
31 |
|
32 |
+
<p></p>
|
33 |
+
<p><?php _e( 'Sub-menu can to settings to four levels.' , $this->ltd ); ?></p>
|
34 |
+
|
35 |
<div id="poststuff">
|
36 |
|
37 |
<div id="post-body" class="metabox-holder columns-2">
|
38 |
|
39 |
+
<?php foreach( $Place_types as $place => $place_label ) : ?>
|
40 |
+
<?php if( $place != 'front' ) : ?>
|
41 |
+
|
42 |
+
<?php if( $place == 'left' ) : $box_id = 2; else: $box_id = 1; endif; ?>
|
43 |
+
<div id="postbox-container-<?php echo $box_id; ?>" class="postbox-container">
|
44 |
+
<div id="<?php echo $place; ?>_menus">
|
45 |
+
<div class="postbox">
|
46 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
47 |
+
<h3 class="hndle"><span><?php echo $place_label; ?><?php _e( 'Menus' ); ?></span></h3>
|
48 |
+
<div class="inside">
|
49 |
+
|
50 |
+
<?php if( empty( $Data ) ) : ?>
|
51 |
+
<?php $Nodes = $AllDefaultNodes; ?>
|
52 |
+
<?php else: ?>
|
53 |
+
<?php $Nodes = $Data; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
<?php if( !empty( $Nodes[$place]["main"] ) ) : ?>
|
57 |
+
<?php foreach( $Nodes[$place]["main"] as $main_node ) : ?>
|
|
|
|
|
|
|
58 |
|
59 |
+
<?php if ( is_object( $main_node ) ) $main_node = (array) $main_node; ?>
|
60 |
+
<?php if ( !isset( $main_node["group"] ) ) $main_node["group"] = ""; ?>
|
61 |
+
<?php $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => $main_node["group"] , 'meta' => $main_node["meta"] , 'new' => false ); ?>
|
62 |
+
<?php $this->admin_bar_menu_widget( $Nodes[$place] , $menu_widget , 'main' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
<?php endforeach; ?>
|
|
|
65 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
</div>
|
68 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</div>
|
70 |
</div>
|
71 |
+
|
72 |
+
<?php endif; ?>
|
73 |
+
<?php endforeach; ?>
|
74 |
+
|
75 |
<br class="clear">
|
76 |
|
77 |
</div>
|
78 |
|
79 |
</div>
|
80 |
|
81 |
+
<p class="submit">
|
82 |
+
<input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
|
83 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
+
<p class="submit reset">
|
86 |
+
<span class="description"><?php _e( 'Reset all settings?' , $this->ltd ); ?></span>
|
87 |
+
<input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
|
88 |
+
</p>
|
89 |
|
90 |
+
</form>
|
91 |
|
92 |
+
<h3><?php _e ( 'Menu items that can be added' , $this->ltd ); ?></h3>
|
|
|
|
|
|
|
|
|
93 |
|
94 |
+
<div id="can_menus" class="metabox-holder columns-1">
|
95 |
|
96 |
+
<div class="postbox">
|
97 |
+
<div class="inside">
|
98 |
|
99 |
+
<div class="postbox">
|
100 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
101 |
+
<h3 class="hndle"><span><?php _e( 'Custom' ); ?> <?php _e( 'Menus' ); ?></span></h3>
|
102 |
+
<div class="inside">
|
103 |
|
104 |
+
<?php $menu_widget = array( 'id' => "custom_node" , 'title' => "" , 'parent' => '' , 'href' => "" , 'group' => "" , 'meta' => array() , 'new' => true ); ?>
|
105 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes["front"] , $menu_widget , 'custom' ); ?>
|
106 |
+
<?php $menu_widget = array( 'id' => "custom_node" , 'title' => "" , 'parent' => '' , 'href' => "" , 'group' => 1 , 'meta' => array() , 'new' => true ); ?>
|
107 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes["front"] , $menu_widget , 'custom' ); ?>
|
108 |
<div class="clear"></div>
|
109 |
|
110 |
+
</div>
|
111 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
<?php foreach( $Place_types as $place => $place_label ) : ?>
|
114 |
|
115 |
+
<div class="postbox">
|
116 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
117 |
+
<h3 class="hndle"><span><?php echo $place_label; ?> <?php _e( 'Menus' ); ?></span></h3>
|
118 |
+
<div class="inside">
|
119 |
|
120 |
+
<?php if( !empty( $AllDefaultNodes[$place] ) ) : ?>
|
121 |
+
<?php foreach( $AllDefaultNodes[$place]["main"] as $main_node_id => $main_node ) : ?>
|
122 |
+
|
123 |
+
<p class="description"><?php echo $main_node_id; ?></p>
|
124 |
+
<?php $menu_widget = array( 'id' => $main_node_id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => $main_node->group , 'meta' => $main_node->meta , 'new' => true ); ?>
|
125 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes[$place] , $menu_widget , 'main' ); ?>
|
126 |
+
|
127 |
+
<?php foreach( $AllDefaultNodes[$place]["sub"] as $sub_node_id => $sub_node ) : ?>
|
128 |
+
<?php if( $sub_node->parent == $main_node_id ) : ?>
|
129 |
+
|
130 |
+
<?php $menu_widget = array( 'id' => $sub_node_id , 'title' => stripslashes( $sub_node->title ) , 'parent' => '' , 'href' => $sub_node->href , 'group' => $sub_node->group , 'meta' => $sub_node->meta , 'new' => true ); ?>
|
131 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes[$place] , $menu_widget , 'sub' ); ?>
|
132 |
+
|
133 |
+
<?php if( !empty( $AllDefaultNodes[$place]["sub2"] ) ) : ?>
|
134 |
+
<?php foreach( $AllDefaultNodes[$place]["sub2"] as $sub_node_id2 => $sub_node2 ) : ?>
|
135 |
+
<?php if( $sub_node2->parent == $sub_node_id ) : ?>
|
136 |
+
|
137 |
+
<?php $menu_widget = array( 'id' => $sub_node_id2 , 'title' => stripslashes( $sub_node2->title ) , 'parent' => '' , 'href' => $sub_node2->href , 'group' => $sub_node2->group , 'meta' => $sub_node2->meta , 'new' => true ); ?>
|
138 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes[$place] , $menu_widget , 'sub2' ); ?>
|
139 |
+
|
140 |
+
<?php if( !empty( $AllDefaultNodes[$place]["sub3"] ) ) : ?>
|
141 |
+
<?php foreach( $AllDefaultNodes[$place]["sub3"] as $sub_node_id3 => $sub_node3 ) : ?>
|
142 |
+
<?php if( $sub_node3->parent == $sub_node_id2 ) : ?>
|
143 |
+
|
144 |
+
<?php $menu_widget = array( 'id' => $sub_node_id3 , 'title' => stripslashes( $sub_node3->title ) , 'parent' => '' , 'href' => $sub_node3->href , 'group' => $sub_node3->group , 'meta' => $sub_node3->meta , 'new' => true ); ?>
|
145 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes[$place] , $menu_widget , 'sub3' ); ?>
|
146 |
+
|
147 |
+
<?php if( !empty( $AllDefaultNodes[$place]["sub4"] ) ) : ?>
|
148 |
+
<?php foreach( $AllDefaultNodes[$place]["sub4"] as $sub_node_id4 => $sub_node4 ) : ?>
|
149 |
+
<?php if( $sub_node4->parent == $sub_node_id3 ) : ?>
|
150 |
+
|
151 |
+
<?php $menu_widget = array( 'id' => $sub_node_id4 , 'title' => stripslashes( $sub_node4->title ) , 'parent' => '' , 'href' => $sub_node4->href , 'group' => $sub_node4->group , 'meta' => $sub_node4->meta , 'new' => true ); ?>
|
152 |
+
<?php $this->admin_bar_menu_widget( $AllDefaultNodes[$place] , $menu_widget , 'sub4' ); ?>
|
153 |
+
|
154 |
+
<?php endif; ?>
|
155 |
+
<?php endforeach; ?>
|
156 |
+
<?php endif; ?>
|
157 |
+
|
158 |
+
<?php endif; ?>
|
159 |
+
<?php endforeach; ?>
|
160 |
+
<?php endif; ?>
|
161 |
+
|
162 |
+
<?php endif; ?>
|
163 |
+
<?php endforeach; ?>
|
164 |
+
<?php endif; ?>
|
165 |
+
|
166 |
+
<?php endif; ?>
|
167 |
+
<?php endforeach; ?>
|
168 |
+
|
169 |
+
<div class="clear"></div>
|
170 |
+
|
171 |
+
<?php endforeach; ?>
|
172 |
<?php endif; ?>
|
173 |
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
177 |
|
|
|
178 |
</div>
|
|
|
179 |
</div>
|
180 |
|
181 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
</div>
|
184 |
|
185 |
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
186 |
|
187 |
<style>
|
188 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.wp-logo .widget-top .widget-title h4 .ab-icon,
|
189 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.updates .widget-top .widget-title h4 .ab-icon,
|
190 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.comments .widget-top .widget-title h4 .ab-icon,
|
191 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.new-content .widget-top .widget-title h4 .ab-icon
|
192 |
{ background-image: url(../wp-includes/images/admin-bar-sprite.png); }
|
193 |
</style>
|
194 |
|
199 |
jQuery(document).ready(function($) {
|
200 |
|
201 |
var $Form = $("#wauc_setting_admin_bar_menu");
|
202 |
+
var $AddInside = $('#can_menus .postbox .inside');
|
203 |
var $SettingInside = $('#poststuff #post-body .postbox-container .postbox .inside', $Form);
|
204 |
|
205 |
$AddInside.children('.widget').draggable({
|
273 |
|
274 |
wauc_widget_each = function widget_each() {
|
275 |
var $Count = 0;
|
276 |
+
$('.widget', '#wauc_setting_admin_bar_menu #poststuff').each(function() {
|
277 |
var $InputId = $(this).children(".widget-inside").children(".settings").children(".field-url").children(".idtext");
|
278 |
var $InputLink = $(this).children(".widget-inside").children(".settings").children(".field-url").children(".linktext");
|
279 |
var $InputTitle = $(this).children(".widget-inside").children(".settings").children(".field-title").children("label").children(".titletext");
|
280 |
+
var $InputGourp = $(this).children(".widget-inside").children(".settings").children(".group");
|
281 |
+
var $InputMetaClass = $(this).children(".widget-inside").children(".settings").children(".field-meta").children(".meta_class");
|
282 |
var $InputMetaTarget = $(this).children(".widget-inside").children(".settings").children(".field-meta").children("label").children(".meta_target");
|
283 |
var $InputParentName = $(this).children(".widget-inside").children(".settings").children(".parent");
|
284 |
+
var $InputNodeType = $(this).children(".widget-inside").children(".settings").children(".node_type");
|
285 |
|
286 |
var $BoxName = "";
|
287 |
+
var $NodeType = "";
|
288 |
+
if( $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().hasClass("submenu") ) {
|
289 |
+
$BoxName = $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().attr("id");
|
290 |
+
$NodeType = "sub4";
|
291 |
+
} else if( $(this).parent().parent().parent().parent().parent().parent().parent().hasClass("submenu") ) {
|
292 |
+
$BoxName = $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().attr("id");
|
293 |
+
$NodeType = "sub3";
|
294 |
+
} else if( $(this).parent().parent().parent().parent().hasClass("submenu") ) {
|
295 |
+
$BoxName = $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().attr("id");
|
296 |
+
$NodeType = "sub2";
|
297 |
+
} else if( $(this).parent().hasClass("submenu") ) {
|
298 |
$BoxName = $(this).parent().parent().parent().parent().parent().parent().attr("id");
|
299 |
+
$NodeType = "sub";
|
300 |
} else {
|
301 |
$BoxName = $(this).parent().parent().parent().attr("id");
|
302 |
+
$NodeType = "main";
|
303 |
}
|
304 |
|
305 |
if( $BoxName ) {
|
321 |
$InputId.attr("name", $Name+'[id]');
|
322 |
$InputLink.attr("name", $Name+'[href]');
|
323 |
$InputTitle.attr("name", $Name+'[title]');
|
324 |
+
$InputGourp.attr("name", $Name+'[group]');
|
325 |
+
$InputMetaClass.attr("name", $Name+'[meta][class]');
|
326 |
$InputMetaTarget.attr("name", $Name+'[meta][target]');
|
327 |
$InputParentName.attr("name", $Name+'[parent]');
|
328 |
+
$InputNodeType.attr("name", $Name+'[node_type]');
|
329 |
+
$InputNodeType.val( $NodeType );
|
330 |
|
331 |
+
if ( $(this).parent().hasClass("submenu") ) {
|
|
|
|
|
|
|
332 |
var $ParentId = $(this).parent().parent().children(".settings").children(".description").children(".idtext").val();
|
333 |
$InputParentName.val($ParentId);
|
334 |
} else {
|
languages/wauc-ja.mo
CHANGED
Binary file
|
languages/wauc-ja.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz@gmail.com <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -38,7 +38,7 @@ msgid "General Screen Settings"
|
|
38 |
msgstr "一般設定"
|
39 |
|
40 |
#: wp-admin-ui-customize.php:154
|
41 |
-
#: inc/setting_admin_bar_menu.php:
|
42 |
msgid "Admin Bar Menu"
|
43 |
msgstr "管理バー"
|
44 |
|
@@ -76,21 +76,30 @@ msgstr "設定を適用する権限が選択されていません。<a href=\"%s
|
|
76 |
msgid "Apply user roles"
|
77 |
msgstr "適用されるユーザー権限"
|
78 |
|
79 |
-
#: wp-admin-ui-customize.php:
|
80 |
-
#: wp-admin-ui-customize.php:
|
81 |
msgid "Sub Menus"
|
82 |
msgstr "サブメニュー"
|
83 |
|
84 |
-
#: wp-admin-ui-customize.php:
|
85 |
-
|
86 |
-
|
|
|
87 |
|
88 |
-
#: wp-admin-ui-customize.php:
|
89 |
msgid "Show only on front end."
|
90 |
msgstr "フロントのみ表示"
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
#: inc/list_variables.php:17
|
93 |
-
#: inc/setting_admin_bar_menu.php:
|
94 |
#: inc/setting_admin_general.php:125
|
95 |
#: inc/setting_admin_general.php:148
|
96 |
#: inc/setting_loginscreen.php:64
|
@@ -112,6 +121,8 @@ msgstr "ログイン中のブログURL"
|
|
112 |
|
113 |
#: inc/list_variables.php:95
|
114 |
#: inc/list_variables.php:102
|
|
|
|
|
115 |
msgid "In your case."
|
116 |
msgstr "これはあなたの場合です。"
|
117 |
|
@@ -123,21 +134,21 @@ msgstr "適用されたユーザー権限"
|
|
123 |
msgid "You want to reset the user roles?"
|
124 |
msgstr "ユーザー権限をリセットしてもよろしいですか?"
|
125 |
|
126 |
-
#: inc/setting_admin_bar_menu.php:
|
127 |
#: inc/setting_sidemenu.php:20
|
128 |
msgid "Please change the menu by drag and drop."
|
129 |
msgstr "ドラッグ&ドロップでメニューを変更してください。"
|
130 |
|
131 |
-
#: inc/setting_admin_bar_menu.php:
|
132 |
#: inc/setting_sidemenu.php:22
|
133 |
msgid "Notice: Please do not place the same multiple menu slug."
|
134 |
msgstr "注意: 複数同じメニュースラッグを設置しないでください。"
|
135 |
|
136 |
-
#: inc/setting_admin_bar_menu.php:
|
137 |
msgid "Can be more than one custom menu."
|
138 |
msgstr "カスタムメニューは複数設置できます。"
|
139 |
|
140 |
-
#: inc/setting_admin_bar_menu.php:
|
141 |
#: inc/setting_admin_general.php:125
|
142 |
#: inc/setting_admin_general.php:148
|
143 |
#: inc/setting_loginscreen.php:64
|
@@ -149,13 +160,11 @@ msgstr "カスタムメニューは複数設置できます。"
|
|
149 |
msgid "Available Shortcodes"
|
150 |
msgstr "利用可能なショートコード一覧"
|
151 |
|
152 |
-
#: inc/setting_admin_bar_menu.php:
|
153 |
-
|
154 |
-
|
155 |
-
msgid "Menu items that can be added"
|
156 |
-
msgstr "追加できるメニュー一覧"
|
157 |
|
158 |
-
#: inc/setting_admin_bar_menu.php:
|
159 |
#: inc/setting_admin_general.php:181
|
160 |
#: inc/setting_appearance_menus.php:90
|
161 |
#: inc/setting_dashboard.php:176
|
@@ -168,6 +177,12 @@ msgstr "追加できるメニュー一覧"
|
|
168 |
msgid "Reset all settings?"
|
169 |
msgstr "リセットしますか?"
|
170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
#: inc/setting_admin_general.php:34
|
172 |
msgid "Notifications"
|
173 |
msgstr "通知"
|
@@ -350,6 +365,10 @@ msgstr "デフォルトのパーマリンクに設定している時のみ表示
|
|
350 |
msgid "New plugin menus will be added to the <strong>%s</strong>."
|
351 |
msgstr "新しいプラグインメニューは <strong>%s</strong> に追加されます。"
|
352 |
|
|
|
|
|
|
|
|
|
353 |
#: inc/setting_sidemenu.php:107
|
354 |
msgid "Current menu"
|
355 |
msgstr "現在のメニュー"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-11-08 12:24+0900\n"
|
6 |
+
"PO-Revision-Date: 2013-11-08 12:36+0900\n"
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz@gmail.com <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
38 |
msgstr "一般設定"
|
39 |
|
40 |
#: wp-admin-ui-customize.php:154
|
41 |
+
#: inc/setting_admin_bar_menu.php:18
|
42 |
msgid "Admin Bar Menu"
|
43 |
msgstr "管理バー"
|
44 |
|
76 |
msgid "Apply user roles"
|
77 |
msgstr "適用されるユーザー権限"
|
78 |
|
79 |
+
#: wp-admin-ui-customize.php:603
|
80 |
+
#: wp-admin-ui-customize.php:763
|
81 |
msgid "Sub Menus"
|
82 |
msgstr "サブメニュー"
|
83 |
|
84 |
+
#: wp-admin-ui-customize.php:696
|
85 |
+
#: wp-admin-ui-customize.php:718
|
86 |
+
msgid "Menu Group"
|
87 |
+
msgstr "メニューグループ"
|
88 |
|
89 |
+
#: wp-admin-ui-customize.php:716
|
90 |
msgid "Show only on front end."
|
91 |
msgstr "フロントのみ表示"
|
92 |
|
93 |
+
#: wp-admin-ui-customize.php:733
|
94 |
+
msgid "If you want edit to name, please edit of translation file(PO)."
|
95 |
+
msgstr "タイトルを変更したい場合は翻訳ファイル(PO)を編集してください。"
|
96 |
+
|
97 |
+
#: wp-admin-ui-customize.php:925
|
98 |
+
msgid "Front"
|
99 |
+
msgstr "フロント"
|
100 |
+
|
101 |
#: inc/list_variables.php:17
|
102 |
+
#: inc/setting_admin_bar_menu.php:25
|
103 |
#: inc/setting_admin_general.php:125
|
104 |
#: inc/setting_admin_general.php:148
|
105 |
#: inc/setting_loginscreen.php:64
|
121 |
|
122 |
#: inc/list_variables.php:95
|
123 |
#: inc/list_variables.php:102
|
124 |
+
#: inc/list_variables.php:109
|
125 |
+
#: inc/list_variables.php:116
|
126 |
msgid "In your case."
|
127 |
msgstr "これはあなたの場合です。"
|
128 |
|
134 |
msgid "You want to reset the user roles?"
|
135 |
msgstr "ユーザー権限をリセットしてもよろしいですか?"
|
136 |
|
137 |
+
#: inc/setting_admin_bar_menu.php:19
|
138 |
#: inc/setting_sidemenu.php:20
|
139 |
msgid "Please change the menu by drag and drop."
|
140 |
msgstr "ドラッグ&ドロップでメニューを変更してください。"
|
141 |
|
142 |
+
#: inc/setting_admin_bar_menu.php:20
|
143 |
#: inc/setting_sidemenu.php:22
|
144 |
msgid "Notice: Please do not place the same multiple menu slug."
|
145 |
msgstr "注意: 複数同じメニュースラッグを設置しないでください。"
|
146 |
|
147 |
+
#: inc/setting_admin_bar_menu.php:21
|
148 |
msgid "Can be more than one custom menu."
|
149 |
msgstr "カスタムメニューは複数設置できます。"
|
150 |
|
151 |
+
#: inc/setting_admin_bar_menu.php:25
|
152 |
#: inc/setting_admin_general.php:125
|
153 |
#: inc/setting_admin_general.php:148
|
154 |
#: inc/setting_loginscreen.php:64
|
160 |
msgid "Available Shortcodes"
|
161 |
msgstr "利用可能なショートコード一覧"
|
162 |
|
163 |
+
#: inc/setting_admin_bar_menu.php:33
|
164 |
+
msgid "Sub-menu can to settings to four levels."
|
165 |
+
msgstr "サブメニューは4階層まで設定できます。"
|
|
|
|
|
166 |
|
167 |
+
#: inc/setting_admin_bar_menu.php:86
|
168 |
#: inc/setting_admin_general.php:181
|
169 |
#: inc/setting_appearance_menus.php:90
|
170 |
#: inc/setting_dashboard.php:176
|
177 |
msgid "Reset all settings?"
|
178 |
msgstr "リセットしますか?"
|
179 |
|
180 |
+
#: inc/setting_admin_bar_menu.php:92
|
181 |
+
#: inc/setting_sidemenu.php:21
|
182 |
+
#: inc/setting_sidemenu.php:42
|
183 |
+
msgid "Menu items that can be added"
|
184 |
+
msgstr "追加できるメニュー一覧"
|
185 |
+
|
186 |
#: inc/setting_admin_general.php:34
|
187 |
msgid "Notifications"
|
188 |
msgstr "通知"
|
365 |
msgid "New plugin menus will be added to the <strong>%s</strong>."
|
366 |
msgstr "新しいプラグインメニューは <strong>%s</strong> に追加されます。"
|
367 |
|
368 |
+
#: inc/setting_sidemenu.php:45
|
369 |
+
msgid "Sepalator"
|
370 |
+
msgstr "区切り線"
|
371 |
+
|
372 |
#: inc/setting_sidemenu.php:107
|
373 |
msgid "Current menu"
|
374 |
msgstr "現在のメニュー"
|
languages/wauc.pot
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -35,7 +35,7 @@ msgid "General Screen Settings"
|
|
35 |
msgstr ""
|
36 |
|
37 |
#: wp-admin-ui-customize.php:154
|
38 |
-
#: inc/setting_admin_bar_menu.php:
|
39 |
msgid "Admin Bar Menu"
|
40 |
msgstr ""
|
41 |
|
@@ -73,21 +73,30 @@ msgstr ""
|
|
73 |
msgid "Apply user roles"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: wp-admin-ui-customize.php:
|
77 |
-
#: wp-admin-ui-customize.php:
|
78 |
msgid "Sub Menus"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: wp-admin-ui-customize.php:
|
82 |
-
|
|
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: wp-admin-ui-customize.php:
|
86 |
msgid "Show only on front end."
|
87 |
msgstr ""
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
#: inc/list_variables.php:17
|
90 |
-
#: inc/setting_admin_bar_menu.php:
|
91 |
#: inc/setting_admin_general.php:125
|
92 |
#: inc/setting_admin_general.php:148
|
93 |
#: inc/setting_loginscreen.php:64
|
@@ -109,6 +118,8 @@ msgstr ""
|
|
109 |
|
110 |
#: inc/list_variables.php:95
|
111 |
#: inc/list_variables.php:102
|
|
|
|
|
112 |
msgid "In your case."
|
113 |
msgstr ""
|
114 |
|
@@ -120,21 +131,21 @@ msgstr ""
|
|
120 |
msgid "You want to reset the user roles?"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: inc/setting_admin_bar_menu.php:
|
124 |
#: inc/setting_sidemenu.php:20
|
125 |
msgid "Please change the menu by drag and drop."
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: inc/setting_admin_bar_menu.php:
|
129 |
#: inc/setting_sidemenu.php:22
|
130 |
msgid "Notice: Please do not place the same multiple menu slug."
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: inc/setting_admin_bar_menu.php:
|
134 |
msgid "Can be more than one custom menu."
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: inc/setting_admin_bar_menu.php:
|
138 |
#: inc/setting_admin_general.php:125
|
139 |
#: inc/setting_admin_general.php:148
|
140 |
#: inc/setting_loginscreen.php:64
|
@@ -146,13 +157,11 @@ msgstr ""
|
|
146 |
msgid "Available Shortcodes"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: inc/setting_admin_bar_menu.php:
|
150 |
-
|
151 |
-
#: inc/setting_sidemenu.php:42
|
152 |
-
msgid "Menu items that can be added"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: inc/setting_admin_bar_menu.php:
|
156 |
#: inc/setting_admin_general.php:181
|
157 |
#: inc/setting_appearance_menus.php:90
|
158 |
#: inc/setting_dashboard.php:176
|
@@ -165,6 +174,12 @@ msgstr ""
|
|
165 |
msgid "Reset all settings?"
|
166 |
msgstr ""
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
#: inc/setting_admin_general.php:34
|
169 |
msgid "Notifications"
|
170 |
msgstr ""
|
@@ -347,6 +362,10 @@ msgstr ""
|
|
347 |
msgid "New plugin menus will be added to the <strong>%s</strong>."
|
348 |
msgstr ""
|
349 |
|
|
|
|
|
|
|
|
|
350 |
#: inc/setting_sidemenu.php:107
|
351 |
msgid "Current menu"
|
352 |
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-11-08 12:24+0900\n"
|
6 |
+
"PO-Revision-Date: 2013-11-08 12:24+0900\n"
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
35 |
msgstr ""
|
36 |
|
37 |
#: wp-admin-ui-customize.php:154
|
38 |
+
#: inc/setting_admin_bar_menu.php:18
|
39 |
msgid "Admin Bar Menu"
|
40 |
msgstr ""
|
41 |
|
73 |
msgid "Apply user roles"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: wp-admin-ui-customize.php:603
|
77 |
+
#: wp-admin-ui-customize.php:763
|
78 |
msgid "Sub Menus"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: wp-admin-ui-customize.php:696
|
82 |
+
#: wp-admin-ui-customize.php:718
|
83 |
+
msgid "Menu Group"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: wp-admin-ui-customize.php:716
|
87 |
msgid "Show only on front end."
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: wp-admin-ui-customize.php:733
|
91 |
+
msgid "If you want edit to name, please edit of translation file(PO)."
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: wp-admin-ui-customize.php:925
|
95 |
+
msgid "Front"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
#: inc/list_variables.php:17
|
99 |
+
#: inc/setting_admin_bar_menu.php:25
|
100 |
#: inc/setting_admin_general.php:125
|
101 |
#: inc/setting_admin_general.php:148
|
102 |
#: inc/setting_loginscreen.php:64
|
118 |
|
119 |
#: inc/list_variables.php:95
|
120 |
#: inc/list_variables.php:102
|
121 |
+
#: inc/list_variables.php:109
|
122 |
+
#: inc/list_variables.php:116
|
123 |
msgid "In your case."
|
124 |
msgstr ""
|
125 |
|
131 |
msgid "You want to reset the user roles?"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: inc/setting_admin_bar_menu.php:19
|
135 |
#: inc/setting_sidemenu.php:20
|
136 |
msgid "Please change the menu by drag and drop."
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: inc/setting_admin_bar_menu.php:20
|
140 |
#: inc/setting_sidemenu.php:22
|
141 |
msgid "Notice: Please do not place the same multiple menu slug."
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: inc/setting_admin_bar_menu.php:21
|
145 |
msgid "Can be more than one custom menu."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: inc/setting_admin_bar_menu.php:25
|
149 |
#: inc/setting_admin_general.php:125
|
150 |
#: inc/setting_admin_general.php:148
|
151 |
#: inc/setting_loginscreen.php:64
|
157 |
msgid "Available Shortcodes"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: inc/setting_admin_bar_menu.php:33
|
161 |
+
msgid "Sub-menu can to settings to four levels."
|
|
|
|
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: inc/setting_admin_bar_menu.php:86
|
165 |
#: inc/setting_admin_general.php:181
|
166 |
#: inc/setting_appearance_menus.php:90
|
167 |
#: inc/setting_dashboard.php:176
|
174 |
msgid "Reset all settings?"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: inc/setting_admin_bar_menu.php:92
|
178 |
+
#: inc/setting_sidemenu.php:21
|
179 |
+
#: inc/setting_sidemenu.php:42
|
180 |
+
msgid "Menu items that can be added"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
#: inc/setting_admin_general.php:34
|
184 |
msgid "Notifications"
|
185 |
msgstr ""
|
362 |
msgid "New plugin menus will be added to the <strong>%s</strong>."
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: inc/setting_sidemenu.php:45
|
366 |
+
msgid "Sepalator"
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
#: inc/setting_sidemenu.php:107
|
370 |
msgid "Current menu"
|
371 |
msgstr ""
|
languages/wauc_plugin-ja.mo
CHANGED
Binary file
|
languages/wauc_plugin-ja.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: WP Admin UI Customize sub\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2013-10-03 14:57+0900\n"
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -17,16 +17,16 @@ msgstr ""
|
|
17 |
"X-Poedit-SourceCharset: utf-8\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
-
#: wp-admin-ui-customize.php:
|
21 |
#: inc/setting_default.php:178
|
22 |
msgid "Thank you for your donation."
|
23 |
msgstr "寄付いただきありがとうございます。"
|
24 |
|
25 |
-
#: wp-admin-ui-customize.php:
|
26 |
msgid "Thank you for considering donate."
|
27 |
msgstr "寄付のご検討宜しくお願いします。"
|
28 |
|
29 |
-
#: wp-admin-ui-customize.php:
|
30 |
#: inc/setting_default.php:30
|
31 |
msgid "Donate"
|
32 |
msgstr "寄付について"
|
3 |
"Project-Id-Version: WP Admin UI Customize sub\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2013-10-03 14:57+0900\n"
|
6 |
+
"PO-Revision-Date: 2013-11-08 12:36+0900\n"
|
7 |
"Last-Translator: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
8 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
17 |
"X-Poedit-SourceCharset: utf-8\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: wp-admin-ui-customize.php:2015
|
21 |
#: inc/setting_default.php:178
|
22 |
msgid "Thank you for your donation."
|
23 |
msgstr "寄付いただきありがとうございます。"
|
24 |
|
25 |
+
#: wp-admin-ui-customize.php:2030
|
26 |
msgid "Thank you for considering donate."
|
27 |
msgstr "寄付のご検討宜しくお願いします。"
|
28 |
|
29 |
+
#: wp-admin-ui-customize.php:2030
|
30 |
#: inc/setting_default.php:30
|
31 |
msgid "Donate"
|
32 |
msgstr "寄付について"
|
languages/wauc_plugin.pot
CHANGED
@@ -14,16 +14,16 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
|
17 |
-
#: wp-admin-ui-customize.php:
|
18 |
#: inc/setting_default.php:178
|
19 |
msgid "Thank you for your donation."
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: wp-admin-ui-customize.php:
|
23 |
msgid "Thank you for considering donate."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: wp-admin-ui-customize.php:
|
27 |
#: inc/setting_default.php:30
|
28 |
msgid "Donate"
|
29 |
msgstr ""
|
@@ -145,4 +145,3 @@ msgstr ""
|
|
145 |
msgid "This plugin is that can be for customizing flexibly Login Screen."
|
146 |
msgstr ""
|
147 |
|
148 |
-
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
|
17 |
+
#: wp-admin-ui-customize.php:2015
|
18 |
#: inc/setting_default.php:178
|
19 |
msgid "Thank you for your donation."
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: wp-admin-ui-customize.php:2030
|
23 |
msgid "Thank you for considering donate."
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: wp-admin-ui-customize.php:2030
|
27 |
#: inc/setting_default.php:30
|
28 |
msgid "Donate"
|
29 |
msgstr ""
|
145 |
msgid "This plugin is that can be for customizing flexibly Login Screen."
|
146 |
msgstr ""
|
147 |
|
|
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, multisite, network, metabox
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 3.7.1
|
7 |
-
Stable tag: 1.4.1
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -14,7 +14,7 @@ Customize the management screen UI.
|
|
14 |
* Dashboard
|
15 |
* Display options tab
|
16 |
* Output-meta site
|
17 |
-
* Admin bar
|
18 |
* Admin menu (Side menu)
|
19 |
* Management of meta boxes
|
20 |
* Login screen
|
@@ -49,8 +49,16 @@ These to Customization is possible.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
52 |
= 1.4.1 =
|
53 |
-
* Fixed
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
= 1.4 =
|
56 |
* Removed: Remove meta box feature.
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
+
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_4_1_1
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 3.7.1
|
7 |
+
Stable tag: 1.4.1.1
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
14 |
* Dashboard
|
15 |
* Display options tab
|
16 |
* Output-meta site
|
17 |
+
* Admin bar (Toolbar)
|
18 |
* Admin menu (Side menu)
|
19 |
* Management of meta boxes
|
20 |
* Login screen
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.4.1.1 =
|
53 |
+
* Fixed: Svn upload miss.
|
54 |
+
|
55 |
= 1.4.1 =
|
56 |
+
* Fixed: Show front item on Admin bar settings.
|
57 |
+
* Updated: Get the user role if in Multisite.
|
58 |
+
* Updated: Four levels of sub menu settings on Admin Bar settings.
|
59 |
+
* Added: Group settings on Admin Bar settings.
|
60 |
+
* Fixed: Error avoid as much max_input_vars of PHP on Admin Bar settings.
|
61 |
+
* Updated: Compatible to Admin theme mp6.
|
62 |
|
63 |
= 1.4 =
|
64 |
* Removed: Remove meta box feature.
|
wp-admin-ui-customize.css
CHANGED
@@ -114,32 +114,51 @@
|
|
114 |
|
115 |
|
116 |
#wauc_setting_admin_bar_menu {}
|
117 |
-
|
118 |
padding: 10px;
|
119 |
}
|
120 |
-
|
121 |
width: auto;
|
122 |
}
|
123 |
-
|
124 |
opacity: 0.7;
|
125 |
font-weight: normal;
|
126 |
}
|
127 |
-
|
128 |
padding: 5px 5px 20px 5px;
|
129 |
border: 1px solid #DFDFDF;
|
130 |
margin: 8px 0 0 0;
|
131 |
}
|
132 |
|
133 |
-
|
134 |
height: auto;
|
135 |
}
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
line-height: 20px;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
width: 20px;
|
144 |
height: 20px;
|
145 |
background-repeat: no-repeat;
|
@@ -147,31 +166,34 @@
|
|
147 |
float: left;
|
148 |
margin: 0 2px 0 0;
|
149 |
}
|
150 |
-
|
151 |
background-position: 0 -104px;
|
152 |
}
|
153 |
-
|
154 |
background-position: -2px -159px;
|
155 |
}
|
156 |
-
|
157 |
background-position: -2px -135px;
|
158 |
}
|
159 |
-
|
160 |
background-position: -2px -202px;
|
161 |
}
|
162 |
|
|
|
|
|
|
|
163 |
|
164 |
-
|
165 |
-
|
166 |
display: none;
|
167 |
}
|
168 |
|
169 |
|
170 |
-
|
171 |
cursor: default;
|
172 |
border-bottom: none;
|
173 |
}
|
174 |
-
|
175 |
width: 170px;
|
176 |
float: left;
|
177 |
margin: 0 4px 4px 0;
|
@@ -183,3 +205,42 @@
|
|
183 |
#wauc_setting_manage_metabox table.form-table td {
|
184 |
vertical-align: top;
|
185 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
#wauc_setting_admin_bar_menu {}
|
117 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside {
|
118 |
padding: 10px;
|
119 |
}
|
120 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget-placeholder {
|
121 |
width: auto;
|
122 |
}
|
123 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-top .widget-title .in-widget-title {
|
124 |
opacity: 0.7;
|
125 |
font-weight: normal;
|
126 |
}
|
127 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-inside .submenu {
|
128 |
padding: 5px 5px 20px 5px;
|
129 |
border: 1px solid #DFDFDF;
|
130 |
margin: 8px 0 0 0;
|
131 |
}
|
132 |
|
133 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-top {
|
134 |
height: auto;
|
135 |
}
|
136 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget-group > .widget-top {
|
137 |
+
color: #fff;
|
138 |
+
text-shadow: 0 -1px 0 #333;
|
139 |
+
border-top-color: gray;
|
140 |
+
border-bottom-color: #6d6d6d;
|
141 |
+
background: #777;
|
142 |
+
background-image: -webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(gray));
|
143 |
+
background-image: -webkit-linear-gradient(bottom,#6d6d6d,gray);
|
144 |
+
background-image: -moz-linear-gradient(bottom,#6d6d6d,gray);
|
145 |
+
background-image: -o-linear-gradient(bottom,#6d6d6d,gray);
|
146 |
+
background-image: linear-gradient(to top,#6d6d6d,gray);
|
147 |
+
}
|
148 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget-group > .widget-top .in-widget-title {
|
149 |
+
color: #fff;
|
150 |
+
}
|
151 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-top .widget-title {
|
152 |
+
padding-top: 4px;
|
153 |
+
padding-bottom: 4px;
|
154 |
+
}
|
155 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-top .widget-title h4 {
|
156 |
line-height: 20px;
|
157 |
}
|
158 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.wp-logo .widget-top .widget-title h4 .ab-icon,
|
159 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.updates .widget-top .widget-title h4 .ab-icon,
|
160 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.comments .widget-top .widget-title h4 .ab-icon,
|
161 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.new-content .widget-top .widget-title h4 .ab-icon {
|
162 |
width: 20px;
|
163 |
height: 20px;
|
164 |
background-repeat: no-repeat;
|
166 |
float: left;
|
167 |
margin: 0 2px 0 0;
|
168 |
}
|
169 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.wp-logo .widget-top .widget-title h4 .ab-icon {
|
170 |
background-position: 0 -104px;
|
171 |
}
|
172 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.updates .widget-top .widget-title h4 .ab-icon {
|
173 |
background-position: -2px -159px;
|
174 |
}
|
175 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.comments .widget-top .widget-title h4 .ab-icon {
|
176 |
background-position: -2px -135px;
|
177 |
}
|
178 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget.new-content .widget-top .widget-title h4 .ab-icon {
|
179 |
background-position: -2px -202px;
|
180 |
}
|
181 |
|
182 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar #can_menus > .postbox {
|
183 |
+
background: #fff;
|
184 |
+
}
|
185 |
|
186 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar #can_menus .postbox .inside .widget .widget-top .widget-title-action,
|
187 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget .widget-inside .submenu .submenu .submenu .submenu .submenu {
|
188 |
display: none;
|
189 |
}
|
190 |
|
191 |
|
192 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .columns-1 .postbox .inside h3 {
|
193 |
cursor: default;
|
194 |
border-bottom: none;
|
195 |
}
|
196 |
+
body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .columns-1 .postbox .inside .widget {
|
197 |
width: 170px;
|
198 |
float: left;
|
199 |
margin: 0 4px 4px 0;
|
205 |
#wauc_setting_manage_metabox table.form-table td {
|
206 |
vertical-align: top;
|
207 |
}
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
/* compatible mp6 */
|
212 |
+
|
213 |
+
body.mp6.toplevel_page_wp_admin_ui_customize .postbox:hover .handlediv:before,
|
214 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_setting_site .postbox:hover .handlediv:before,
|
215 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_general_setting .postbox:hover .handlediv:before,
|
216 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_dashboard .postbox:hover .handlediv:before,
|
217 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox:hover .handlediv:before,
|
218 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_sidemenu .postbox:hover .handlediv:before,
|
219 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_manage_metabox .postbox:hover .handlediv:before,
|
220 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_post_add_edit_screen .postbox:hover .handlediv:before,
|
221 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_appearance_menus .postbox:hover .handlediv:before,
|
222 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_loginscreen .postbox:hover .handlediv:before {
|
223 |
+
right: 12px;
|
224 |
+
content: '\f142';
|
225 |
+
font: normal 20px/1 'dashicons';
|
226 |
+
speak: none;
|
227 |
+
display: inline-block;
|
228 |
+
padding: 8px 10px;
|
229 |
+
color: #888;
|
230 |
+
top: 0;
|
231 |
+
position: relative;
|
232 |
+
-webkit-font-smoothing: antialiased;
|
233 |
+
text-decoration: none !important;
|
234 |
+
}
|
235 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar #can_menus > .postbox {
|
236 |
+
background: none;
|
237 |
+
}
|
238 |
+
|
239 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget-group > .widget-top {
|
240 |
+
background: #333;
|
241 |
+
}
|
242 |
+
body.mp6.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside .widget-group .widget-top a {
|
243 |
+
color: #333;
|
244 |
+
}
|
245 |
+
|
246 |
+
|
wp-admin-ui-customize.js
CHANGED
@@ -6,4 +6,8 @@ jQuery(document).ready(function($) {
|
|
6 |
$(this).parent().toggleClass('closed');
|
7 |
});
|
8 |
|
|
|
|
|
|
|
|
|
9 |
});
|
6 |
$(this).parent().toggleClass('closed');
|
7 |
});
|
8 |
|
9 |
+
$('.handlediv' , 'body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar #can_menus').live( 'click', function() {
|
10 |
+
$(this).parent().toggleClass('closed');
|
11 |
+
});
|
12 |
+
|
13 |
});
|
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.4.1
|
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 |
*/
|
@@ -53,7 +53,7 @@ class WP_Admin_UI_Customize
|
|
53 |
|
54 |
|
55 |
function __construct() {
|
56 |
-
$this->Ver = '1.4.1';
|
57 |
$this->Name = 'WP Admin UI Customize';
|
58 |
$this->Dir = plugin_dir_path( __FILE__ );
|
59 |
$this->Url = plugin_dir_url( __FILE__ );
|
@@ -142,7 +142,7 @@ class WP_Admin_UI_Customize
|
|
142 |
|
143 |
if( !empty( $_GET["page"] ) ) {
|
144 |
$page = strip_tags( $_GET["page"] );
|
145 |
-
if( $page == $this->PageSlug ) {
|
146 |
@header("X-XSS-Protection: 0");
|
147 |
}
|
148 |
}
|
@@ -369,7 +369,7 @@ class WP_Admin_UI_Customize
|
|
369 |
}
|
370 |
|
371 |
// SetList
|
372 |
-
function admin_bar_default_load(
|
373 |
global $wp_admin_bar;
|
374 |
|
375 |
$this->Admin_bar = $wp_admin_bar->get_nodes();
|
@@ -379,28 +379,21 @@ class WP_Admin_UI_Customize
|
|
379 |
function admin_bar_filter_load() {
|
380 |
$Default_bar = $this->Admin_bar;
|
381 |
|
382 |
-
$Delete_bar = array( "
|
383 |
foreach( $Delete_bar as $del_name ) {
|
384 |
if( !empty( $Default_bar[$del_name] ) ) {
|
385 |
unset( $Default_bar[$del_name] );
|
386 |
}
|
387 |
}
|
388 |
-
if( !empty( $Default_bar ) ) {
|
389 |
-
foreach( $Default_bar as $node_id => $node ) {
|
390 |
-
if( preg_match( "/blog-[0-9]/" , $node->parent ) ) {
|
391 |
-
unset( $Default_bar[$node_id] );
|
392 |
-
}
|
393 |
-
}
|
394 |
-
}
|
395 |
|
396 |
-
// front
|
397 |
-
$Default_bar["dashboard"] = (object) array( "id" => "dashboard" , "title" => __( 'Dashboard' ) , "parent" => "site-name" , "href" => admin_url() );
|
398 |
|
399 |
foreach( $Default_bar as $node_id => $node ) {
|
400 |
if( $node->id == 'my-account' ) {
|
401 |
$Default_bar[$node_id]->title = sprintf( __( 'Howdy, %1$s' ) , '[user_name]' ) . '[user_avatar]';
|
402 |
} elseif( $node->id == 'user-info' ) {
|
403 |
-
$Default_bar[$node_id]->title = '<span class="display-name">[user_name]</span>';
|
404 |
} elseif( $node->id == 'logout' ) {
|
405 |
$Default_bar[$node_id]->href = preg_replace( '/&(.*)/' , '' , $node->href );
|
406 |
} elseif( $node->id == 'site-name' ) {
|
@@ -427,31 +420,15 @@ class WP_Admin_UI_Customize
|
|
427 |
}
|
428 |
}
|
429 |
|
430 |
-
foreach( $Default_bar as $node_id => $node ) {
|
431 |
-
if( $node->parent == 'wp-logo-external' ) {
|
432 |
-
$Default_bar[$node_id]->parent = 'wp-logo';
|
433 |
-
} elseif( $node->parent == 'user-actions' ) {
|
434 |
-
$Default_bar[$node_id]->parent = 'my-account';
|
435 |
-
} elseif( $node->parent == 'my-sites-list' ) {
|
436 |
-
$Default_bar[$node_id]->parent = 'my-sites';
|
437 |
-
} else{
|
438 |
-
if( !array_keys( $MainMenuIDs , $node->parent ) ) {
|
439 |
-
if( !empty( $Default_bar[$node->parent] ) ) {
|
440 |
-
$Default_bar[$node_id]->parent = $Default_bar[$node->parent]->parent;
|
441 |
-
}
|
442 |
-
}
|
443 |
-
}
|
444 |
-
}
|
445 |
-
|
446 |
// meta field add
|
447 |
foreach( $Default_bar as $node_id => $node ) {
|
448 |
if( !isset( $node->meta ) ) {
|
449 |
$Default_bar[$node_id]->meta = array();
|
450 |
}
|
451 |
}
|
452 |
-
|
453 |
-
foreach( $MainMenuIDs as $parent_id => $menu_type ) {
|
454 |
|
|
|
|
|
455 |
foreach( $Default_bar as $node_id => $node ) {
|
456 |
if( $node->parent == $parent_id ) {
|
457 |
$Filter_bar[$menu_type]["sub"][$node_id] = $node;
|
@@ -460,10 +437,60 @@ class WP_Admin_UI_Customize
|
|
460 |
}
|
461 |
}
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
// front field
|
464 |
$Filter_bar["front"] = array( "main" => array() , "sub" => array() );
|
465 |
$Filter_bar["front"]["main"]["edit-post_type"] = new stdClass;
|
466 |
-
$Filter_bar["front"]["main"]["edit-post_type"] = (object) array( 'id' => 'edit-post_type' , 'title' => '' , 'href' => '' , 'meta' => array() );
|
467 |
$Filter_bar["front"]["main"]["edit-post_type"]->title = sprintf( '%1$s (%2$s/%3$s/%4$s/%5$s/%6$s)' , __( 'Edit' ) , __( 'Post' ) , __( 'Page' ) , __( 'Category' ) , __( 'Tags' ) , __( 'Custom' ) );
|
468 |
|
469 |
return $Filter_bar;
|
@@ -522,7 +549,6 @@ class WP_Admin_UI_Customize
|
|
522 |
|
523 |
}
|
524 |
|
525 |
-
|
526 |
// SetList
|
527 |
function sidebar_menu_widget( $menu_widget ) {
|
528 |
$UserRoles = $this->get_user_role();
|
@@ -642,14 +668,23 @@ class WP_Admin_UI_Customize
|
|
642 |
}
|
643 |
|
644 |
// SetList
|
645 |
-
function admin_bar_menu_widget( $menu_widget ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
$new_widget = '';
|
647 |
if( !empty( $menu_widget["new"] ) ) {
|
648 |
$new_widget = 'new';
|
|
|
|
|
|
|
|
|
649 |
}
|
650 |
-
|
651 |
?>
|
652 |
-
<div class="widget <?php echo $
|
653 |
|
654 |
<div class="widget-top">
|
655 |
<div class="widget-title-action">
|
@@ -657,7 +692,10 @@ class WP_Admin_UI_Customize
|
|
657 |
</div>
|
658 |
<div class="widget-title">
|
659 |
<h4>
|
660 |
-
<?php if(
|
|
|
|
|
|
|
661 |
<?php echo $menu_widget["id"]; ?>
|
662 |
<?php else: ?>
|
663 |
<?php echo $menu_widget["title"]; ?>
|
@@ -671,96 +709,86 @@ class WP_Admin_UI_Customize
|
|
671 |
<div class="settings">
|
672 |
<p class="field-url description">
|
673 |
<input type="hidden" class="idtext" value="<?php echo $menu_widget["id"]; ?>" name="data[][id]" />
|
674 |
-
<?php if( $menu_widget["id"]
|
675 |
-
URL: <input type="text" class="regular-text linktext" value="" name="data[][href]" placeholder="http://" />
|
676 |
<?php else: ?>
|
677 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
<input type="hidden" class="linktext" value="<?php echo $menu_widget["href"]; ?>" name="data[][href]" />
|
679 |
<?php endif; ?>
|
680 |
</p>
|
681 |
<p class="field-title description">
|
682 |
<label>
|
683 |
-
<?php if( $menu_widget["
|
684 |
-
|
685 |
-
<span class="description"><?php _e( 'If you want edit to name, please edit of translation file(PO).' , $this->ltd ); ?></span><br />
|
686 |
-
<strong><?php _e( 'Show only on front end.' , $this->ltd ); ?></strong>
|
687 |
<?php else : ?>
|
688 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
689 |
<?php endif; ?>
|
690 |
</label>
|
691 |
</p>
|
692 |
<p class="field-meta description">
|
693 |
<label class="description">
|
694 |
-
<?php
|
695 |
-
|
696 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
<?php endif; ?>
|
698 |
-
<input type="checkbox" class="meta_target" value="_blank" name="data[][meta][target]" <?php echo $checked; ?> />
|
699 |
-
<?php _e( 'Open link in a new window/tab' ); ?>
|
700 |
</label>
|
|
|
701 |
</p>
|
702 |
<input type="hidden" class="parent" value="<?php echo $menu_widget["parent"]; ?>" name="data[][parent]" />
|
|
|
|
|
703 |
</div>
|
704 |
|
705 |
-
|
706 |
-
<
|
707 |
-
|
708 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
|
710 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
|
712 |
-
|
713 |
-
<div class="widget-title-action">
|
714 |
-
<a class="widget-action" href="#available"></a>
|
715 |
-
</div>
|
716 |
-
<div class="widget-title">
|
717 |
-
<h4>
|
718 |
-
<?php if( preg_match( '/\<form/' , $sm["title"] ) ) : ?>
|
719 |
-
<?php echo $sm["id"]; ?>
|
720 |
-
<?php else: ?>
|
721 |
-
<?php echo $sm["title"]; ?>
|
722 |
-
: <span class="in-widget-title"><?php echo $sm["id"]; ?></span>
|
723 |
-
<?php endif; ?>
|
724 |
-
</h4>
|
725 |
-
</div>
|
726 |
-
</div>
|
727 |
|
728 |
-
|
729 |
-
|
730 |
-
<p class="field-url description">
|
731 |
-
<input type="hidden" class="idtext" value="<?php echo $sm["id"]; ?>" name="data[][id]" />
|
732 |
-
<a href="<?php echo $sm["href"]; ?>" target="_blank"><?php echo $sm["id"]; ?></a>
|
733 |
-
<input type="hidden" class="linktext" value="<?php echo $sm["href"]; ?>" name="data[][href]" />
|
734 |
-
</p>
|
735 |
-
<p class="field-title description">
|
736 |
-
<label>
|
737 |
-
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_html( $sm["title"] ); ?>" name="data[][title]" />
|
738 |
-
</label>
|
739 |
-
</p>
|
740 |
-
<p class="field-meta description">
|
741 |
-
<label class="description">
|
742 |
-
<?php $checked = ""; ?>
|
743 |
-
<?php if( !empty( $sm["meta"]["target"] ) ) : ?>
|
744 |
-
<?php $checked = checked( $sm["meta"]["target"] , '_blank' , 0 ); ?>
|
745 |
-
<?php endif; ?>
|
746 |
-
<input type="checkbox" class="meta_target" value="_blank" name="data[][meta][target]" <?php echo $checked; ?> />
|
747 |
-
<?php _e( 'Open link in a new window/tab' ); ?>
|
748 |
-
</label>
|
749 |
-
</p>
|
750 |
-
<input type="hidden" class="parent" value="<?php echo $sm["parent"]; ?>" name="data[][parent]" />
|
751 |
-
</div>
|
752 |
-
<div class="widget-control-actions">
|
753 |
-
<div class="alignleft">
|
754 |
-
<a href="#remove"><?php _e( 'Remove' ); ?></a>
|
755 |
-
</div>
|
756 |
-
<div class="clear"></div>
|
757 |
-
</div>
|
758 |
-
</div>
|
759 |
-
</div>
|
760 |
|
761 |
-
<?php endforeach; ?>
|
762 |
-
<?php endif; ?>
|
763 |
-
</div>
|
764 |
<div class="widget-control-actions">
|
765 |
<div class="alignleft">
|
766 |
<a href="#remove"><?php _e( 'Remove' ); ?></a>
|
@@ -790,7 +818,6 @@ class WP_Admin_UI_Customize
|
|
790 |
|
791 |
return $custom_posts;
|
792 |
}
|
793 |
-
|
794 |
|
795 |
// SetList
|
796 |
function val_replace( $str ) {
|
@@ -844,9 +871,15 @@ class WP_Admin_UI_Customize
|
|
844 |
if( strstr( $str , '[user_name]') ) {
|
845 |
$str = str_replace( '[user_name]' , $current_user->display_name , $str );
|
846 |
}
|
|
|
|
|
|
|
847 |
if( strstr( $str , '[user_avatar]') ) {
|
848 |
$str = str_replace( '[user_avatar]' , get_avatar( $current_user->ID , 16 ) , $str );
|
849 |
}
|
|
|
|
|
|
|
850 |
|
851 |
if( is_multisite() ) {
|
852 |
if( strstr( $str , '[site_name]') ) {
|
@@ -872,9 +905,27 @@ class WP_Admin_UI_Customize
|
|
872 |
break;
|
873 |
}
|
874 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
return $UserRole;
|
876 |
}
|
877 |
|
|
|
|
|
|
|
|
|
|
|
|
|
878 |
|
879 |
|
880 |
// DataUpdate
|
@@ -1065,11 +1116,17 @@ class WP_Admin_UI_Customize
|
|
1065 |
if( !empty( $node["href"] ) ) {
|
1066 |
$href = strip_tags( $node["href"] );
|
1067 |
}
|
|
|
|
|
|
|
|
|
1068 |
$parent = "";
|
1069 |
-
$depth = "main";
|
1070 |
if( !empty( $node["parent"] ) ) {
|
1071 |
$parent = strip_tags( $node["parent"] );
|
1072 |
-
|
|
|
|
|
|
|
1073 |
}
|
1074 |
$meta = array();
|
1075 |
if( !empty( $node["meta"] ) ) {
|
@@ -1080,7 +1137,7 @@ class WP_Admin_UI_Customize
|
|
1080 |
}
|
1081 |
}
|
1082 |
|
1083 |
-
$Update[$boxtype][$
|
1084 |
}
|
1085 |
}
|
1086 |
}
|
@@ -1406,9 +1463,7 @@ class WP_Admin_UI_Customize
|
|
1406 |
unset( $GetData["UPFN"] );
|
1407 |
if( is_array( $GetData ) ) {
|
1408 |
|
1409 |
-
|
1410 |
-
|
1411 |
-
// remove all nodes
|
1412 |
$All_Nodes = $wp_admin_bar->get_nodes();
|
1413 |
foreach( $All_Nodes as $node ) {
|
1414 |
if( $node->id != 'top-secondary' ) {
|
@@ -1416,96 +1471,144 @@ class WP_Admin_UI_Customize
|
|
1416 |
}
|
1417 |
}
|
1418 |
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
|
|
|
|
|
|
|
|
|
|
1425 |
if( strstr( $node["id"] , 'custom_node' ) ) {
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1430 |
}
|
1431 |
-
if(
|
1432 |
-
$
|
1433 |
}
|
1434 |
-
if(
|
1435 |
-
$
|
1436 |
}
|
1437 |
-
if( strstr( $
|
1438 |
if ( !current_user_can('edit_posts') ) {
|
|
|
1439 |
continue;
|
1440 |
} else {
|
1441 |
-
$
|
1442 |
}
|
1443 |
}
|
1444 |
-
if( strstr( $
|
1445 |
if ( !$update_data['counts']['total'] ) {
|
|
|
1446 |
continue;
|
1447 |
} else {
|
1448 |
-
$
|
1449 |
}
|
1450 |
}
|
1451 |
-
if( strstr( $
|
1452 |
if ( !$update_data['counts']['plugins'] ) {
|
|
|
1453 |
continue;
|
1454 |
} else {
|
1455 |
-
$
|
1456 |
}
|
1457 |
}
|
1458 |
-
if( strstr( $
|
1459 |
if ( !$update_data['counts']['themes'] ) {
|
|
|
1460 |
continue;
|
1461 |
} else {
|
1462 |
-
$
|
1463 |
}
|
1464 |
}
|
1465 |
-
$
|
1466 |
-
|
1467 |
-
if( $args["id"] == 'logout' ) {
|
1468 |
-
$args["href"] = wp_logout_url();
|
1469 |
}
|
1470 |
-
|
1471 |
-
|
1472 |
-
$avatar = get_avatar( get_current_user_id() , 16 );
|
1473 |
$class = empty( $avatar ) ? '' : 'with-avatar';
|
1474 |
-
$
|
|
|
|
|
|
|
1475 |
}
|
1476 |
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1500 |
}
|
1501 |
}
|
|
|
|
|
|
|
1502 |
|
1503 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1504 |
}
|
1505 |
}
|
1506 |
}
|
|
|
1507 |
}
|
1508 |
}
|
|
|
1509 |
}
|
1510 |
|
1511 |
// FilterStart
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_1_1
|
6 |
+
Version: 1.4.1.1
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_4_1_1
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
53 |
|
54 |
|
55 |
function __construct() {
|
56 |
+
$this->Ver = '1.4.1.1';
|
57 |
$this->Name = 'WP Admin UI Customize';
|
58 |
$this->Dir = plugin_dir_path( __FILE__ );
|
59 |
$this->Url = plugin_dir_url( __FILE__ );
|
142 |
|
143 |
if( !empty( $_GET["page"] ) ) {
|
144 |
$page = strip_tags( $_GET["page"] );
|
145 |
+
if( $page == $this->PageSlug . '_admin_bar' ) {
|
146 |
@header("X-XSS-Protection: 0");
|
147 |
}
|
148 |
}
|
369 |
}
|
370 |
|
371 |
// SetList
|
372 |
+
function admin_bar_default_load() {
|
373 |
global $wp_admin_bar;
|
374 |
|
375 |
$this->Admin_bar = $wp_admin_bar->get_nodes();
|
379 |
function admin_bar_filter_load() {
|
380 |
$Default_bar = $this->Admin_bar;
|
381 |
|
382 |
+
$Delete_bar = array( "top-secondary" , "my-sites-super-admin" );
|
383 |
foreach( $Delete_bar as $del_name ) {
|
384 |
if( !empty( $Default_bar[$del_name] ) ) {
|
385 |
unset( $Default_bar[$del_name] );
|
386 |
}
|
387 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
+
// front
|
390 |
+
$Default_bar["dashboard"] = (object) array( "id" => "dashboard" , "title" => __( 'Dashboard' ) , "parent" => "site-name" , "href" => admin_url() , "group" => false );
|
391 |
|
392 |
foreach( $Default_bar as $node_id => $node ) {
|
393 |
if( $node->id == 'my-account' ) {
|
394 |
$Default_bar[$node_id]->title = sprintf( __( 'Howdy, %1$s' ) , '[user_name]' ) . '[user_avatar]';
|
395 |
} elseif( $node->id == 'user-info' ) {
|
396 |
+
$Default_bar[$node_id]->title = '[user_avatar_64]<span class="display-name">[user_name]</span><span class="username">[user_login_name]</span>';
|
397 |
} elseif( $node->id == 'logout' ) {
|
398 |
$Default_bar[$node_id]->href = preg_replace( '/&(.*)/' , '' , $node->href );
|
399 |
} elseif( $node->id == 'site-name' ) {
|
420 |
}
|
421 |
}
|
422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
// meta field add
|
424 |
foreach( $Default_bar as $node_id => $node ) {
|
425 |
if( !isset( $node->meta ) ) {
|
426 |
$Default_bar[$node_id]->meta = array();
|
427 |
}
|
428 |
}
|
|
|
|
|
429 |
|
430 |
+
// sub node
|
431 |
+
foreach( $MainMenuIDs as $parent_id => $menu_type ) {
|
432 |
foreach( $Default_bar as $node_id => $node ) {
|
433 |
if( $node->parent == $parent_id ) {
|
434 |
$Filter_bar[$menu_type]["sub"][$node_id] = $node;
|
437 |
}
|
438 |
}
|
439 |
|
440 |
+
$Place_types = $this->admin_bar_places();
|
441 |
+
|
442 |
+
// sub2 node
|
443 |
+
if( !empty( $Default_bar ) ) {
|
444 |
+
foreach( $Place_types as $place => $place_label ) {
|
445 |
+
if( !empty( $Filter_bar[$place]["sub"] ) && $place != 'front' ) {
|
446 |
+
foreach( $Filter_bar[$place]["sub"] as $parent_id => $parent_node ) {
|
447 |
+
foreach( $Default_bar as $node_id => $node ) {
|
448 |
+
if( $node->parent == $parent_id ) {
|
449 |
+
$Filter_bar[$place]["sub2"][$node_id] = $node;
|
450 |
+
unset( $Default_bar[$node_id] );
|
451 |
+
}
|
452 |
+
}
|
453 |
+
}
|
454 |
+
}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
// sub3 node
|
459 |
+
if( !empty( $Default_bar ) ) {
|
460 |
+
foreach( $Place_types as $place => $place_label ) {
|
461 |
+
if( !empty( $Filter_bar[$place]["sub2"] ) && $place != 'front' ) {
|
462 |
+
foreach( $Filter_bar[$place]["sub2"] as $parent_id => $parent_node ) {
|
463 |
+
foreach( $Default_bar as $node_id => $node ) {
|
464 |
+
if( $node->parent == $parent_id ) {
|
465 |
+
$Filter_bar[$place]["sub3"][$node_id] = $node;
|
466 |
+
unset( $Default_bar[$node_id] );
|
467 |
+
}
|
468 |
+
}
|
469 |
+
}
|
470 |
+
}
|
471 |
+
}
|
472 |
+
}
|
473 |
+
|
474 |
+
// sub4 node
|
475 |
+
if( !empty( $Default_bar ) ) {
|
476 |
+
foreach( $Place_types as $place => $place_label ) {
|
477 |
+
if( !empty( $Filter_bar[$place]["sub3"] ) && $place != 'front' ) {
|
478 |
+
foreach( $Filter_bar[$place]["sub3"] as $parent_id => $parent_node ) {
|
479 |
+
foreach( $Default_bar as $node_id => $node ) {
|
480 |
+
if( $node->parent == $parent_id ) {
|
481 |
+
$Filter_bar[$place]["sub4"][$node_id] = $node;
|
482 |
+
unset( $Default_bar[$node_id] );
|
483 |
+
}
|
484 |
+
}
|
485 |
+
}
|
486 |
+
}
|
487 |
+
}
|
488 |
+
}
|
489 |
+
|
490 |
// front field
|
491 |
$Filter_bar["front"] = array( "main" => array() , "sub" => array() );
|
492 |
$Filter_bar["front"]["main"]["edit-post_type"] = new stdClass;
|
493 |
+
$Filter_bar["front"]["main"]["edit-post_type"] = (object) array( 'id' => 'edit-post_type' , 'title' => '' , 'href' => '' , 'group' => '' , 'meta' => array() );
|
494 |
$Filter_bar["front"]["main"]["edit-post_type"]->title = sprintf( '%1$s (%2$s/%3$s/%4$s/%5$s/%6$s)' , __( 'Edit' ) , __( 'Post' ) , __( 'Page' ) , __( 'Category' ) , __( 'Tags' ) , __( 'Custom' ) );
|
495 |
|
496 |
return $Filter_bar;
|
549 |
|
550 |
}
|
551 |
|
|
|
552 |
// SetList
|
553 |
function sidebar_menu_widget( $menu_widget ) {
|
554 |
$UserRoles = $this->get_user_role();
|
668 |
}
|
669 |
|
670 |
// SetList
|
671 |
+
function admin_bar_menu_widget( $Nodes , $menu_widget , $node_type ) {
|
672 |
+
if ( is_object( $menu_widget ) ) $menu_widget = (array) $menu_widget;
|
673 |
+
if( !isset( $menu_widget["group"] ) ) $menu_widget["group"] = 0;
|
674 |
+
if( !isset( $menu_widget["meta"]["class"] ) ) $menu_widget["meta"]["class"] = "";
|
675 |
+
$no_submenu = array( 'search' );
|
676 |
+
|
677 |
+
$widget_class = $menu_widget["id"];
|
678 |
$new_widget = '';
|
679 |
if( !empty( $menu_widget["new"] ) ) {
|
680 |
$new_widget = 'new';
|
681 |
+
$widget_class .= ' new';
|
682 |
+
}
|
683 |
+
if( !empty( $menu_widget["group"] ) ) {
|
684 |
+
$widget_class .= ' widget-group';
|
685 |
}
|
|
|
686 |
?>
|
687 |
+
<div class="widget <?php echo $widget_class; ?>">
|
688 |
|
689 |
<div class="widget-top">
|
690 |
<div class="widget-title-action">
|
692 |
</div>
|
693 |
<div class="widget-title">
|
694 |
<h4>
|
695 |
+
<?php if( !empty( $menu_widget["group"] ) ) : ?>
|
696 |
+
<?php _e( 'Menu Group' , $this->ltd ); ?>
|
697 |
+
: <span class="in-widget-title"><?php echo $menu_widget["id"]; ?></span>
|
698 |
+
<?php elseif( preg_match( '/\<form/' , $menu_widget["title"] ) ) : ?>
|
699 |
<?php echo $menu_widget["id"]; ?>
|
700 |
<?php else: ?>
|
701 |
<?php echo $menu_widget["title"]; ?>
|
709 |
<div class="settings">
|
710 |
<p class="field-url description">
|
711 |
<input type="hidden" class="idtext" value="<?php echo $menu_widget["id"]; ?>" name="data[][id]" />
|
712 |
+
<?php if( strstr( $menu_widget["id"] , 'custom_node' ) && empty( $menu_widget["group"] ) ) : ?>
|
713 |
+
URL: <input type="text" class="regular-text linktext" value="<?php echo $menu_widget["href"]; ?>" name="data[][href]" placeholder="http://" />
|
714 |
<?php else: ?>
|
715 |
+
<?php if( $menu_widget["id"] == 'edit-post_type' ) : ?>
|
716 |
+
<strong><?php _e( 'Show only on front end.' , $this->ltd ); ?></strong>
|
717 |
+
<?php elseif( !empty( $menu_widget["group"] ) ) : ?>
|
718 |
+
<strong><?php _e( 'Menu Group' , $this->ltd ); ?></strong>
|
719 |
+
<?php else: ?>
|
720 |
+
<a href="<?php echo $menu_widget["href"]; ?>" target="_blank"><?php echo $menu_widget["id"]; ?></a>
|
721 |
+
<?php endif; ?>
|
722 |
<input type="hidden" class="linktext" value="<?php echo $menu_widget["href"]; ?>" name="data[][href]" />
|
723 |
<?php endif; ?>
|
724 |
</p>
|
725 |
<p class="field-title description">
|
726 |
<label>
|
727 |
+
<?php if( !empty( $menu_widget["group"] ) ) : ?>
|
728 |
+
<input type="hidden" class="regular-text titletext" value="" name="data[][title]" />
|
|
|
|
|
729 |
<?php else : ?>
|
730 |
+
<?php if( $menu_widget["id"] == 'edit-post_type' or in_array( $menu_widget["id"] , $no_submenu ) ) : ?>
|
731 |
+
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" readonly="readonly" /><br />
|
732 |
+
<?php if( $menu_widget["id"] == 'edit-post_type' ) : ?>
|
733 |
+
<span class="description"><?php _e( 'If you want edit to name, please edit of translation file(PO).' , $this->ltd ); ?></span><br />
|
734 |
+
<?php endif; ?>
|
735 |
+
<?php else : ?>
|
736 |
+
<?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" />
|
737 |
+
<?php endif; ?>
|
738 |
<?php endif; ?>
|
739 |
</label>
|
740 |
</p>
|
741 |
<p class="field-meta description">
|
742 |
<label class="description">
|
743 |
+
<?php if( !empty( $menu_widget["group"] ) ) : ?>
|
744 |
+
<input type="hidden" class="meta_target" value="_blank" name="data[][meta][target]" />
|
745 |
+
<?php else: ?>
|
746 |
+
<?php $checked = ""; ?>
|
747 |
+
<?php if( !empty( $menu_widget["meta"]["target"] ) ) : ?>
|
748 |
+
<?php $checked = checked( $menu_widget["meta"]["target"] , '_blank' , 0 ); ?>
|
749 |
+
<?php endif; ?>
|
750 |
+
<input type="checkbox" class="meta_target" value="_blank" name="data[][meta][target]" <?php echo $checked; ?> />
|
751 |
+
<?php _e( 'Open link in a new window/tab' ); ?>
|
752 |
<?php endif; ?>
|
|
|
|
|
753 |
</label>
|
754 |
+
<input type="hidden" class="meta_class" value="<?php echo $menu_widget["meta"]["class"]; ?>" name="data[][meta][class]" />
|
755 |
</p>
|
756 |
<input type="hidden" class="parent" value="<?php echo $menu_widget["parent"]; ?>" name="data[][parent]" />
|
757 |
+
<input type="hidden" class="group" value="<?php echo $menu_widget["group"]; ?>" name="data[][group]" />
|
758 |
+
<input type="hidden" class="node_type" value="" name="data[][node_type]" />
|
759 |
</div>
|
760 |
|
761 |
+
<?php if( !in_array( $menu_widget["id"] , $no_submenu ) ) : ?>
|
762 |
+
<div class="submenu">
|
763 |
+
<p class="description"><?php _e( 'Sub Menus' , $this->ltd ); ?></p>
|
764 |
+
|
765 |
+
<?php if( empty( $new_widget ) && !empty( $node_type ) ) : ?>
|
766 |
+
|
767 |
+
<?php $subnode_type = ''; ?>
|
768 |
+
<?php if( $node_type == 'main' ) : ?>
|
769 |
+
<?php $subnode_type = 'sub'; ?>
|
770 |
+
<?php elseif( $node_type == 'sub' ) : ?>
|
771 |
+
<?php $subnode_type = 'sub2'; ?>
|
772 |
+
<?php elseif( $node_type == 'sub2' ) : ?>
|
773 |
+
<?php $subnode_type = 'sub3'; ?>
|
774 |
+
<?php elseif( $node_type == 'sub3' ) : ?>
|
775 |
+
<?php $subnode_type = 'sub4'; ?>
|
776 |
+
<?php endif; ?>
|
777 |
|
778 |
+
<?php if( !empty( $subnode_type ) && !empty( $Nodes[$subnode_type] ) ) : ?>
|
779 |
+
<?php foreach( $Nodes[$subnode_type] as $subnode_id => $subnode ) : ?>
|
780 |
+
<?php if( is_object( $subnode ) ) $subnode = get_object_vars( $subnode ); ?>
|
781 |
+
<?php if( $menu_widget["id"] == $subnode["parent"] ) : ?>
|
782 |
+
<?php array_map( array( $this , 'admin_bar_menu_widget' ) , array( $Nodes ) , array( $subnode ) , array( $subnode_type ) ); ?>
|
783 |
+
<?php endif; ?>
|
784 |
+
<?php endforeach; ?>
|
785 |
+
<?php endif; ?>
|
786 |
|
787 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
+
</div>
|
790 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
|
|
|
|
|
|
|
792 |
<div class="widget-control-actions">
|
793 |
<div class="alignleft">
|
794 |
<a href="#remove"><?php _e( 'Remove' ); ?></a>
|
818 |
|
819 |
return $custom_posts;
|
820 |
}
|
|
|
821 |
|
822 |
// SetList
|
823 |
function val_replace( $str ) {
|
871 |
if( strstr( $str , '[user_name]') ) {
|
872 |
$str = str_replace( '[user_name]' , $current_user->display_name , $str );
|
873 |
}
|
874 |
+
if( strstr( $str , '[user_login_name]') ) {
|
875 |
+
$str = str_replace( '[user_login_name]' , $current_user->user_login , $str );
|
876 |
+
}
|
877 |
if( strstr( $str , '[user_avatar]') ) {
|
878 |
$str = str_replace( '[user_avatar]' , get_avatar( $current_user->ID , 16 ) , $str );
|
879 |
}
|
880 |
+
if( strstr( $str , '[user_avatar_64]') ) {
|
881 |
+
$str = str_replace( '[user_avatar_64]' , get_avatar( $current_user->ID , 64 ) , $str );
|
882 |
+
}
|
883 |
|
884 |
if( is_multisite() ) {
|
885 |
if( strstr( $str , '[site_name]') ) {
|
905 |
break;
|
906 |
}
|
907 |
}
|
908 |
+
if( empty( $UserRole ) && is_multisite() ) {
|
909 |
+
$current_site = get_current_site();
|
910 |
+
switch_to_blog( $current_site->blog_id );
|
911 |
+
$User = wp_get_current_user();
|
912 |
+
if( !empty( $User->roles ) ) {
|
913 |
+
foreach( $User->roles as $role ) {
|
914 |
+
$UserRole = $role;
|
915 |
+
break;
|
916 |
+
}
|
917 |
+
}
|
918 |
+
restore_current_blog();
|
919 |
+
}
|
920 |
return $UserRole;
|
921 |
}
|
922 |
|
923 |
+
// SetList
|
924 |
+
function admin_bar_places() {
|
925 |
+
return $Place_types = array( "left" => __( 'Left' ) , "right" => __( 'Right' ) , "front" => __( 'Front' , $this->ltd ) );
|
926 |
+
}
|
927 |
+
|
928 |
+
|
929 |
|
930 |
|
931 |
// DataUpdate
|
1116 |
if( !empty( $node["href"] ) ) {
|
1117 |
$href = strip_tags( $node["href"] );
|
1118 |
}
|
1119 |
+
$group = "";
|
1120 |
+
if( !empty( $node["group"] ) ) {
|
1121 |
+
$group = intval( $node["group"] );
|
1122 |
+
}
|
1123 |
$parent = "";
|
|
|
1124 |
if( !empty( $node["parent"] ) ) {
|
1125 |
$parent = strip_tags( $node["parent"] );
|
1126 |
+
}
|
1127 |
+
$node_type = "";
|
1128 |
+
if( !empty( $node["node_type"] ) ) {
|
1129 |
+
$node_type = strip_tags( $node["node_type"] );
|
1130 |
}
|
1131 |
$meta = array();
|
1132 |
if( !empty( $node["meta"] ) ) {
|
1137 |
}
|
1138 |
}
|
1139 |
|
1140 |
+
$Update[$boxtype][$node_type][] = array( "id" => $id , "title" => $title , "href" => $href , "parent" => $parent , "group" => $group , "meta" => $meta );
|
1141 |
}
|
1142 |
}
|
1143 |
}
|
1463 |
unset( $GetData["UPFN"] );
|
1464 |
if( is_array( $GetData ) ) {
|
1465 |
|
1466 |
+
// admin bar initialize nodes
|
|
|
|
|
1467 |
$All_Nodes = $wp_admin_bar->get_nodes();
|
1468 |
foreach( $All_Nodes as $node ) {
|
1469 |
if( $node->id != 'top-secondary' ) {
|
1471 |
}
|
1472 |
}
|
1473 |
|
1474 |
+
$SettingNodes = $GetData;
|
1475 |
+
$user_id = get_current_user_id();
|
1476 |
+
$current_user = wp_get_current_user();
|
1477 |
+
$profile_url = get_edit_profile_url( $user_id );
|
1478 |
+
$update_data = wp_get_update_data();
|
1479 |
+
|
1480 |
+
// all nodes adjustment
|
1481 |
+
foreach($SettingNodes as $Boxtype => $allnodes) {
|
1482 |
+
foreach($allnodes as $node_type => $nodes) {
|
1483 |
+
foreach($nodes as $key => $node) {
|
1484 |
+
|
1485 |
if( strstr( $node["id"] , 'custom_node' ) ) {
|
1486 |
+
if( !empty( $node["group"] ) ) {
|
1487 |
+
$node["meta"]["class"] = 'ab-sub-secondary';
|
1488 |
+
} else {
|
1489 |
+
$node["href"] = $this->val_replace( $node["href"] );
|
1490 |
+
}
|
1491 |
+
} elseif( $node["id"] == 'edit-post_type' ) {
|
1492 |
+
if( !empty( $All_Nodes["edit"] ) ) {
|
1493 |
+
$node["title"] = $All_Nodes["edit"]->title;
|
1494 |
+
$node["href"] = $All_Nodes["edit"]->href;
|
1495 |
+
} else {
|
1496 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1497 |
+
continue;
|
1498 |
+
}
|
1499 |
+
} elseif( !empty( $All_Nodes[$node["id"]] ) ) {
|
1500 |
+
if( $node["id"] == 'search' ) {
|
1501 |
+
$node["href"] = $All_Nodes[$node["id"]]->href;
|
1502 |
+
$node["title"] = $All_Nodes[$node["id"]]->title;
|
1503 |
+
} else {
|
1504 |
+
$node["href"] = $All_Nodes[$node["id"]]->href;
|
1505 |
+
}
|
1506 |
+
} else {
|
1507 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1508 |
+
continue;
|
1509 |
}
|
1510 |
+
if( !empty( $All_Nodes[$node["id"]]->meta["title"] ) ) {
|
1511 |
+
$node["meta"]["title"] = $All_Nodes[$node["id"]]->meta["title"];
|
1512 |
}
|
1513 |
+
if( $Boxtype == 'right' && $node_type == 'main' ) {
|
1514 |
+
$node["parent"] = "top-secondary";
|
1515 |
}
|
1516 |
+
if( strstr( $node["title"] , '[comment_count]') ) {
|
1517 |
if ( !current_user_can('edit_posts') ) {
|
1518 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1519 |
continue;
|
1520 |
} else {
|
1521 |
+
$node["title"] = str_replace( '[comment_count]' , '<span class="ab-icon"></span><span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-[comment_count]">[comment_count_format]</span>' , $node["title"] );
|
1522 |
}
|
1523 |
}
|
1524 |
+
if( strstr( $node["title"] , '[update_total]') ) {
|
1525 |
if ( !$update_data['counts']['total'] ) {
|
1526 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1527 |
continue;
|
1528 |
} else {
|
1529 |
+
$node["title"] = str_replace( '[update_total]' , '<span class="ab-icon"></span><span class="ab-label">[update_total_format]</span>' , $node["title"] );
|
1530 |
}
|
1531 |
}
|
1532 |
+
if( strstr( $node["title"] , '[update_plugins]') ) {
|
1533 |
if ( !$update_data['counts']['plugins'] ) {
|
1534 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1535 |
continue;
|
1536 |
} else {
|
1537 |
+
$node["title"] = str_replace( '[update_plugins]' , '[update_plugins_format]' , $node["title"] );
|
1538 |
}
|
1539 |
}
|
1540 |
+
if( strstr( $node["title"] , '[update_themes]') ) {
|
1541 |
if ( !$update_data['counts']['themes'] ) {
|
1542 |
+
unset( $SettingNodes[$Boxtype][$node_type][$key] );
|
1543 |
continue;
|
1544 |
} else {
|
1545 |
+
$node["title"] = str_replace( '[update_themes]' , '[update_themes_format]' , $node["title"] );
|
1546 |
}
|
1547 |
}
|
1548 |
+
if( $node["id"] == 'logout' ) {
|
1549 |
+
$node["href"] = wp_logout_url();
|
|
|
|
|
1550 |
}
|
1551 |
+
if( $node["id"] == 'my-account' ) {
|
1552 |
+
$avatar = get_avatar( $user_id , 16 );
|
|
|
1553 |
$class = empty( $avatar ) ? '' : 'with-avatar';
|
1554 |
+
$node["meta"]["class"] = $class;
|
1555 |
+
}
|
1556 |
+
if( !isset( $node["group"] ) ) {
|
1557 |
+
$node["group"] = "";
|
1558 |
}
|
1559 |
|
1560 |
+
$node["title"] = $this->val_replace( $node["title"] );
|
1561 |
+
|
1562 |
+
$SettingNodes[$Boxtype][$node_type][$key] = $node;
|
1563 |
+
|
1564 |
+
}
|
1565 |
+
}
|
1566 |
+
}
|
1567 |
+
|
1568 |
+
// add main nodes
|
1569 |
+
foreach($SettingNodes as $Boxtype => $allnodes) {
|
1570 |
+
foreach($allnodes as $node_type => $nodes) {
|
1571 |
+
if( $node_type == 'main' ) {
|
1572 |
+
foreach($nodes as $node_id => $node) {
|
1573 |
+
$args = array( "id" => $node["id"] , "title" => stripslashes( $node["title"] ) , "href" => $node["href"] , "parent" => $node["parent"] , "group" => $node["group"] , "meta" => $node["meta"] );
|
1574 |
+
$wp_admin_bar->add_menu( $args );
|
1575 |
+
unset( $SettingNodes[$Boxtype][$node_type][$node_id] );
|
1576 |
+
}
|
1577 |
+
}
|
1578 |
+
}
|
1579 |
+
}
|
1580 |
+
|
1581 |
+
// add all nodes
|
1582 |
+
foreach($SettingNodes as $Boxtype => $allnodes) {
|
1583 |
+
foreach($allnodes as $node_type => $nodes) {
|
1584 |
+
if( $node_type != 'main' ) {
|
1585 |
+
foreach($nodes as $node_id => $node) {
|
1586 |
+
if( empty( $node["group"] ) ) {
|
1587 |
+
$args = array( "id" => $node["id"] , "title" => stripslashes( $node["title"] ) , "href" => $node["href"] , "parent" => $node["parent"] , "group" => false , "meta" => $node["meta"] );
|
1588 |
+
$wp_admin_bar->add_menu( $args );
|
1589 |
+
unset( $SettingNodes[$Boxtype][$node_type][$node_id] );
|
1590 |
}
|
1591 |
}
|
1592 |
+
}
|
1593 |
+
}
|
1594 |
+
}
|
1595 |
|
1596 |
+
// add groups
|
1597 |
+
foreach($SettingNodes as $Boxtype => $allnodes) {
|
1598 |
+
foreach($allnodes as $node_type => $nodes) {
|
1599 |
+
foreach($nodes as $node_id => $node) {
|
1600 |
+
if( !empty( $node["group"] ) ) {
|
1601 |
+
$args = array( "id" => $node["id"] , "parent" => $node["parent"] , "meta" => $node["meta"] );
|
1602 |
+
$wp_admin_bar->add_group( $args );
|
1603 |
+
unset( $SettingNodes[$Boxtype][$node_type][$node_id] );
|
1604 |
+
}
|
1605 |
}
|
1606 |
}
|
1607 |
}
|
1608 |
+
|
1609 |
}
|
1610 |
}
|
1611 |
+
|
1612 |
}
|
1613 |
|
1614 |
// FilterStart
|