Version Description
- Came to be able to use the various variables.
- Removed the part menu from the Admin bar.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.3
- inc/list_variables.php +72 -0
- inc/setting_admin_bar_menu.php +63 -7
- inc/setting_admin_general.php +5 -2
- inc/setting_default.php +3 -0
- inc/setting_loginscreen.php +7 -4
- inc/setting_sidemenu.php +26 -15
- languages/wauc-ja.mo +0 -0
- languages/wauc.pot +12 -1
- languages/wauc_plugin-ja.mo +0 -0
- languages/wauc_plugin.pot +3 -0
- readme.txt +6 -2
- wp-admin-ui-customize.css +10 -0
- wp-admin-ui-customize.php +150 -19
inc/list_variables.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$update_data = wp_get_update_data();
|
3 |
+
$awaiting_mod = wp_count_comments();
|
4 |
+
$awaiting_mod = $awaiting_mod->moderated;
|
5 |
+
$current_user = wp_get_current_user();
|
6 |
+
?>
|
7 |
+
|
8 |
+
<div id="list_variables">
|
9 |
+
<div class="list_variables_wrap">
|
10 |
+
|
11 |
+
<table class="widefat fixed">
|
12 |
+
<thead>
|
13 |
+
<tr>
|
14 |
+
<th><?php _e( 'Shortcodes' , $this->ltd ); ?></th>
|
15 |
+
<th><?php _e( 'Value' ); ?></th>
|
16 |
+
</tr>
|
17 |
+
</thead>
|
18 |
+
<tbody>
|
19 |
+
<tr>
|
20 |
+
<th><strong>[blog_name]</strong></th>
|
21 |
+
<td>
|
22 |
+
<code><?php echo get_bloginfo( 'name' ); ?></code>
|
23 |
+
</td>
|
24 |
+
</tr>
|
25 |
+
<tr>
|
26 |
+
<th><strong>[blog_url]</strong></th>
|
27 |
+
<td>
|
28 |
+
<code><?php echo get_bloginfo( 'url' ); ?></code>
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
<tr>
|
32 |
+
<th><strong>[template_directory_uri]</strong></th>
|
33 |
+
<td>
|
34 |
+
<code><?php echo get_bloginfo( 'template_directory' ); ?></code>
|
35 |
+
</td>
|
36 |
+
</tr>
|
37 |
+
<tr>
|
38 |
+
<th><strong>[update_total]</strong></th>
|
39 |
+
<td>
|
40 |
+
<code><span class="update-plugins count-<?php echo $update_data["counts"]["total"]; ?>"><span class="update-count"><strong><?php echo number_format_i18n( $update_data["counts"]["total"] ); ?></strong></span></span></code>
|
41 |
+
</td>
|
42 |
+
</tr>
|
43 |
+
<tr>
|
44 |
+
<th><strong>[update_plugins]</strong></th>
|
45 |
+
<td>
|
46 |
+
<code><span class="update-plugins count-<?php echo $update_data["counts"]["plugins"]; ?>"><span class="plugin-count"><strong><?php echo number_format_i18n( $update_data["counts"]["plugins"] ); ?></strong></span></span></code>
|
47 |
+
</td>
|
48 |
+
</tr>
|
49 |
+
<tr>
|
50 |
+
<th><strong>[update_themes]</strong></th>
|
51 |
+
<td>
|
52 |
+
<code><span class="update-plugins count-<?php echo $update_data["counts"]["themes"]; ?>"><span class="theme-count"><strong><?php echo number_format_i18n( $update_data["counts"]["themes"] ); ?></strong></span></span></code>
|
53 |
+
</td>
|
54 |
+
</tr>
|
55 |
+
<tr>
|
56 |
+
<th><strong>[comment_count]</strong></th>
|
57 |
+
<td>
|
58 |
+
<code><span class="awaiting-mod count-<?php echo $awaiting_mod; ?>"><span class="pending-count"><strong><?php echo number_format_i18n( $awaiting_mod ); ?></strong></span></span></code>
|
59 |
+
</td>
|
60 |
+
</tr>
|
61 |
+
<tr>
|
62 |
+
<th><strong>[user_name]</strong></th>
|
63 |
+
<td>
|
64 |
+
<code><?php echo $current_user->display_name; ?></code>
|
65 |
+
<span class="description"><?php _e( 'In your case.' , $this->ltd ); ?></span>
|
66 |
+
</td>
|
67 |
+
</tr>
|
68 |
+
</tbody>
|
69 |
+
</table>
|
70 |
+
|
71 |
+
</div>
|
72 |
+
</div>
|
inc/setting_admin_bar_menu.php
CHANGED
@@ -9,8 +9,9 @@ if( !empty( $_POST["update"] ) ) {
|
|
9 |
$Data = $this->get_data( 'admin_bar_menu' );
|
10 |
|
11 |
// include js css
|
12 |
-
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' );
|
13 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
|
|
14 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
15 |
|
16 |
?>
|
@@ -20,9 +21,11 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
20 |
<?php echo $this->Msg; ?>
|
21 |
<h2><?php _e( 'Admin bar Menu' , $this->ltd ); ?></h2>
|
22 |
<p><?php _e( 'Please change the menu by drag and drop.' , $this->ltd ); ?></p>
|
23 |
-
<p><strong><?php _e( 'Notice:
|
24 |
<p class="description"><?php _e( 'can be more than one custom menu.' , $this->ltd ); ?></p>
|
25 |
|
|
|
|
|
26 |
<form id="waum_setting_admin_bar_menu" class="waum_form" method="post" action="">
|
27 |
<input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
|
28 |
<?php wp_nonce_field(); ?>
|
@@ -42,17 +45,37 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
42 |
|
43 |
<?php if( empty( $node->parent ) && $node_id != 'top-secondary' ) : ?>
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<?php $ParentNode[$node_id] = $node; ?>
|
46 |
|
47 |
<?php endif; ?>
|
48 |
|
49 |
<?php endforeach; ?>
|
50 |
-
|
51 |
<?php foreach( $this->Admin_bar as $node_id => $node ) : ?>
|
52 |
|
53 |
<?php if( !empty( $node->parent ) && $node->parent != 'top-secondary' ) : ?>
|
54 |
|
55 |
-
<?php $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
<?php endif; ?>
|
58 |
|
@@ -140,6 +163,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
140 |
|
141 |
<?php if( !empty( $node->parent ) && $node->parent == 'top-secondary' ) : ?>
|
142 |
|
|
|
|
|
|
|
143 |
<?php $ParentNode[$node_id] = $node; ?>
|
144 |
|
145 |
<?php endif; ?>
|
@@ -150,6 +176,11 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
150 |
|
151 |
<?php if( !empty( $node->parent ) && $node->parent == 'user-actions' ) : ?>
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
<?php $ChildNode["my-account"][] = $node; ?>
|
154 |
|
155 |
<?php endif; ?>
|
@@ -232,6 +263,15 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
232 |
<?php if( empty( $node->parent ) && $node_id != 'top-secondary' ) : ?>
|
233 |
|
234 |
<?php // left parent menu ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
236 |
<p class="description"><?php echo $node_id; ?></p>
|
237 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
@@ -252,6 +292,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
252 |
|
253 |
<?php // left child sub menu ?>
|
254 |
<?php if( !empty( $child_sub_node->href ) ) : ?>
|
|
|
|
|
|
|
255 |
<?php $menu_widget = array( 'id' => $child_sub_node->id , 'title' => $child_sub_node->title , 'parent' => '' , 'href' => $child_sub_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
256 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
257 |
<?php endif; ?>
|
@@ -279,12 +322,20 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
279 |
<?php if( $node->parent == 'top-secondary' ) : ?>
|
280 |
|
281 |
<p class="description"><?php echo $node_id; ?></p>
|
|
|
|
|
|
|
282 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
283 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
284 |
|
285 |
<?php foreach( $this->Admin_bar as $child_node_id => $child_node ) : ?>
|
286 |
|
287 |
<?php if( $child_node->parent == 'user-actions' ) : ?>
|
|
|
|
|
|
|
|
|
|
|
288 |
<?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
289 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
290 |
<?php endif; ?>
|
@@ -298,19 +349,22 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
298 |
<?php endforeach; ?>
|
299 |
|
300 |
<div class="clear"></div>
|
301 |
-
|
|
|
|
|
302 |
<?php foreach( $this->Admin_bar as $node_id => $node ) : ?>
|
303 |
|
304 |
<?php if( !empty( $node->parent ) && $node->parent != 'top-secondary' && $node->id != 'user-info' && $node->id != 'user-actions' && $node->id != 'wp-logo-external' ) : ?>
|
305 |
|
306 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
307 |
-
<?php
|
308 |
|
309 |
<?php endif; ?>
|
310 |
|
311 |
<?php endforeach; ?>
|
312 |
-
|
313 |
<div class="clear"></div>
|
|
|
|
|
314 |
|
315 |
</div>
|
316 |
</div>
|
@@ -330,6 +384,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
330 |
|
331 |
</div>
|
332 |
|
|
|
|
|
333 |
<style>
|
334 |
#admin_bar-holder .item-edit { background-image: url(<?php echo admin_url(); ?>images/arrows.png); }
|
335 |
#admin_bar-holder .item-edit:hover { background-image: url(<?php echo admin_url(); ?>images/arrows-dark.png); }
|
9 |
$Data = $this->get_data( 'admin_bar_menu' );
|
10 |
|
11 |
// include js css
|
12 |
+
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
13 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
14 |
+
wp_enqueue_style( 'thickbox' );
|
15 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
21 |
<?php echo $this->Msg; ?>
|
22 |
<h2><?php _e( 'Admin bar Menu' , $this->ltd ); ?></h2>
|
23 |
<p><?php _e( 'Please change the menu by drag and drop.' , $this->ltd ); ?></p>
|
24 |
+
<p><strong><?php _e( 'Notice: Please do not place the same multiple menu slug.' , $this->ltd ); ?></strong></p>
|
25 |
<p class="description"><?php _e( 'can be more than one custom menu.' , $this->ltd ); ?></p>
|
26 |
|
27 |
+
<p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
|
28 |
+
|
29 |
<form id="waum_setting_admin_bar_menu" class="waum_form" method="post" action="">
|
30 |
<input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
|
31 |
<?php wp_nonce_field(); ?>
|
45 |
|
46 |
<?php if( empty( $node->parent ) && $node_id != 'top-secondary' ) : ?>
|
47 |
|
48 |
+
<?php if( !empty( $node->id ) ) : ?>
|
49 |
+
<?php if( $node->id == 'site-name' ) : ?>
|
50 |
+
<?php $node->title = '[blog_name]'; ?>
|
51 |
+
<?php elseif( $node->id == 'updates' ) : ?>
|
52 |
+
<?php $node->title = '[update_total]'; ?>
|
53 |
+
<?php elseif( $node->id == 'comments' ) : ?>
|
54 |
+
<?php $node->title = '[comment_count]'; ?>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php endif; ?>
|
57 |
<?php $ParentNode[$node_id] = $node; ?>
|
58 |
|
59 |
<?php endif; ?>
|
60 |
|
61 |
<?php endforeach; ?>
|
62 |
+
|
63 |
<?php foreach( $this->Admin_bar as $node_id => $node ) : ?>
|
64 |
|
65 |
<?php if( !empty( $node->parent ) && $node->parent != 'top-secondary' ) : ?>
|
66 |
|
67 |
+
<?php if( $node->id != 'wp-logo-external' ) : ?>
|
68 |
+
<?php if( $node->parent == 'wp-logo-external' ) : ?>
|
69 |
+
<?php $node->parent = 'wp-logo'; ?>
|
70 |
+
<?php endif; ?>
|
71 |
+
<?php if( $node->id == 'my-sites-super-admin' or $node->id == 'my-sites-list' or preg_match( "/blog-[0-9]/" , $node->parent ) ) : ?>
|
72 |
+
<?php continue; ?>
|
73 |
+
<?php endif; ?>
|
74 |
+
<?php if( $node->parent == 'my-sites-list' ) : ?>
|
75 |
+
<?php $node->parent = 'my-sites'; ?>
|
76 |
+
<?php endif; ?>
|
77 |
+
<?php $ChildNode[$node->parent][] = $node; ?>
|
78 |
+
<?php endif; ?>
|
79 |
|
80 |
<?php endif; ?>
|
81 |
|
163 |
|
164 |
<?php if( !empty( $node->parent ) && $node->parent == 'top-secondary' ) : ?>
|
165 |
|
166 |
+
<?php if( $node->id == 'my-account' ) : ?>
|
167 |
+
<?php $node->title = sprintf( __('Howdy, %1$s'), '[user_name]' ); ?>
|
168 |
+
<?php endif; ?>
|
169 |
<?php $ParentNode[$node_id] = $node; ?>
|
170 |
|
171 |
<?php endif; ?>
|
176 |
|
177 |
<?php if( !empty( $node->parent ) && $node->parent == 'user-actions' ) : ?>
|
178 |
|
179 |
+
<?php if( $node->id == 'user-info' ) : ?>
|
180 |
+
<?php $node->title = '<span class="display-name">[user_name]</span>'; ?>
|
181 |
+
<?php elseif( $node->id == 'logout' ) : ?>
|
182 |
+
<?php $node->href = preg_replace( '/&(.*)/' , '' , $node->href ); ?>
|
183 |
+
<?php endif; ?>
|
184 |
<?php $ChildNode["my-account"][] = $node; ?>
|
185 |
|
186 |
<?php endif; ?>
|
263 |
<?php if( empty( $node->parent ) && $node_id != 'top-secondary' ) : ?>
|
264 |
|
265 |
<?php // left parent menu ?>
|
266 |
+
<?php if( !empty( $node->id ) ) : ?>
|
267 |
+
<?php if( $node->id == 'site-name' ) : ?>
|
268 |
+
<?php $node->title = '[blog_name]'; ?>
|
269 |
+
<?php elseif( $node->id == 'updates' ) : ?>
|
270 |
+
<?php $node->title = '[update_total]'; ?>
|
271 |
+
<?php elseif( $node->id == 'comments' ) : ?>
|
272 |
+
<?php $node->title = '[comment_count]'; ?>
|
273 |
+
<?php endif; ?>
|
274 |
+
<?php endif; ?>
|
275 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
276 |
<p class="description"><?php echo $node_id; ?></p>
|
277 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
292 |
|
293 |
<?php // left child sub menu ?>
|
294 |
<?php if( !empty( $child_sub_node->href ) ) : ?>
|
295 |
+
<?php if( preg_match( "/blog-[0-9]/" , $child_sub_node->parent ) ) : ?>
|
296 |
+
<?php continue; ?>
|
297 |
+
<?php endif; ?>
|
298 |
<?php $menu_widget = array( 'id' => $child_sub_node->id , 'title' => $child_sub_node->title , 'parent' => '' , 'href' => $child_sub_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
299 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
300 |
<?php endif; ?>
|
322 |
<?php if( $node->parent == 'top-secondary' ) : ?>
|
323 |
|
324 |
<p class="description"><?php echo $node_id; ?></p>
|
325 |
+
<?php if( $node->id == 'my-account' ) : ?>
|
326 |
+
<?php $node->title = sprintf( __('Howdy, %1$s'), '[user_name]' ); ?>
|
327 |
+
<?php endif; ?>
|
328 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
329 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
330 |
|
331 |
<?php foreach( $this->Admin_bar as $child_node_id => $child_node ) : ?>
|
332 |
|
333 |
<?php if( $child_node->parent == 'user-actions' ) : ?>
|
334 |
+
<?php if( $child_node->id == 'user-info' ) : ?>
|
335 |
+
<?php $child_node->title = '<span class="display-name">[user_name]</span>'; ?>
|
336 |
+
<?php elseif( $child_node->id == 'logout' ) : ?>
|
337 |
+
<?php $child_node->href = preg_replace( '/&(.*)/' , '' , $child_node->href ); ?>
|
338 |
+
<?php endif; ?>
|
339 |
<?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
340 |
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
341 |
<?php endif; ?>
|
349 |
<?php endforeach; ?>
|
350 |
|
351 |
<div class="clear"></div>
|
352 |
+
|
353 |
+
<?php
|
354 |
+
/*
|
355 |
<?php foreach( $this->Admin_bar as $node_id => $node ) : ?>
|
356 |
|
357 |
<?php if( !empty( $node->parent ) && $node->parent != 'top-secondary' && $node->id != 'user-info' && $node->id != 'user-actions' && $node->id != 'wp-logo-external' ) : ?>
|
358 |
|
359 |
<?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
|
360 |
+
<?php $this->admin_bar_menu_widget( $menu_widget ); ?>
|
361 |
|
362 |
<?php endif; ?>
|
363 |
|
364 |
<?php endforeach; ?>
|
|
|
365 |
<div class="clear"></div>
|
366 |
+
*/
|
367 |
+
?>
|
368 |
|
369 |
</div>
|
370 |
</div>
|
384 |
|
385 |
</div>
|
386 |
|
387 |
+
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
388 |
+
|
389 |
<style>
|
390 |
#admin_bar-holder .item-edit { background-image: url(<?php echo admin_url(); ?>images/arrows.png); }
|
391 |
#admin_bar-holder .item-edit:hover { background-image: url(<?php echo admin_url(); ?>images/arrows-dark.png); }
|
inc/setting_admin_general.php
CHANGED
@@ -10,8 +10,9 @@ $Data = $this->get_data( 'admin_general' );
|
|
10 |
$User = wp_get_current_user();
|
11 |
|
12 |
// include js css
|
13 |
-
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
|
|
15 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
@@ -143,7 +144,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
143 |
<?php $Val = ''; ?>
|
144 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
145 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
146 |
-
<
|
147 |
</td>
|
148 |
</tr>
|
149 |
|
@@ -177,3 +178,5 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
177 |
</form>
|
178 |
|
179 |
</div>
|
|
|
|
10 |
$User = wp_get_current_user();
|
11 |
|
12 |
// include js css
|
13 |
+
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
|
14 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
15 |
+
wp_enqueue_style('thickbox');
|
16 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
17 |
|
18 |
?>
|
144 |
<?php $Val = ''; ?>
|
145 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
146 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
147 |
+
<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
|
148 |
</td>
|
149 |
</tr>
|
150 |
|
178 |
</form>
|
179 |
|
180 |
</div>
|
181 |
+
|
182 |
+
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
inc/setting_default.php
CHANGED
@@ -23,6 +23,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
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 role you want to apply the settings.' , $this->ltd ); ?></p>
|
|
|
26 |
|
27 |
<div class="metabox-holder columns-2">
|
28 |
|
@@ -119,6 +120,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
119 |
<div class="stuffbox" id="usefulbox">
|
120 |
<h3><span class="hndle"><?php _e( 'Useful plugins' , $this->ltd_p ); ?></span></h3>
|
121 |
<div class="inside">
|
|
|
|
|
122 |
<p><strong><a href="http://wordpress.org/extend/plugins/post-lists-view-custom/" target="_blank">Post Lists View Custom</a></strong></p>
|
123 |
<p class="description"><?php _e( 'Customize the list of the post and page. custom post type page, too. You can customize the column display items freely.' , $this->ltd_p ); ?></p>
|
124 |
<p><strong><a href="http://wordpress.org/extend/plugins/announce-from-the-dashboard/" target="_blank">Announce from the Dashboard</a></strong></p>
|
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 role you want to apply the settings.' , $this->ltd ); ?></p>
|
26 |
+
<p><strong><span style="color: orange;">new</span> <a href="<?php echo $this->Site; ?>multisite_about/?utm_source=use_plugin&utm_medium=side&utm_content=utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">WP Admin UI Customize for Multisite</a></strong></p>
|
27 |
|
28 |
<div class="metabox-holder columns-2">
|
29 |
|
120 |
<div class="stuffbox" id="usefulbox">
|
121 |
<h3><span class="hndle"><?php _e( 'Useful plugins' , $this->ltd_p ); ?></span></h3>
|
122 |
<div class="inside">
|
123 |
+
<p><strong><span style="color: orange;">new</span> <a href="<?php echo $this->Site; ?>multisite_about/?utm_source=use_plugin&utm_medium=side&utm_content=utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">WP Admin UI Customize for Multisite</a></strong></p>
|
124 |
+
<p class="description"><?php _e( 'This add-on is an add-on to unify the management screen of all sites.' , $this->ltd_p ); ?></p>
|
125 |
<p><strong><a href="http://wordpress.org/extend/plugins/post-lists-view-custom/" target="_blank">Post Lists View Custom</a></strong></p>
|
126 |
<p class="description"><?php _e( 'Customize the list of the post and page. custom post type page, too. You can customize the column display items freely.' , $this->ltd_p ); ?></p>
|
127 |
<p><strong><a href="http://wordpress.org/extend/plugins/announce-from-the-dashboard/" target="_blank">Announce from the Dashboard</a></strong></p>
|
inc/setting_loginscreen.php
CHANGED
@@ -48,7 +48,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
48 |
<?php $Val = ''; ?>
|
49 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
50 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
51 |
-
<
|
|
|
52 |
</td>
|
53 |
</tr>
|
54 |
<?php $field = 'login_headertitle'; ?>
|
@@ -60,7 +61,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
60 |
<?php $Val = ''; ?>
|
61 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
62 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
63 |
-
<
|
64 |
</td>
|
65 |
</tr>
|
66 |
<?php $field = 'login_headerlogo'; ?>
|
@@ -72,7 +73,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
72 |
<?php $Val = ''; ?>
|
73 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
74 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
75 |
-
<
|
76 |
<?php if( !empty( $Val ) ) : ?>
|
77 |
<?php $img = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $Val ); ?>
|
78 |
<?php $img = str_replace( '[template_directory_uri]' , get_bloginfo( 'url' ) , $img ); ?>
|
@@ -100,7 +101,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
100 |
<?php $Val = ''; ?>
|
101 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
102 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
103 |
-
<
|
104 |
</td>
|
105 |
</tr>
|
106 |
<?php $field = 'login_footer'; ?>
|
@@ -133,3 +134,5 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
133 |
</form>
|
134 |
|
135 |
</div>
|
|
|
|
48 |
<?php $Val = ''; ?>
|
49 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
50 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
51 |
+
<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
|
52 |
+
|
53 |
</td>
|
54 |
</tr>
|
55 |
<?php $field = 'login_headertitle'; ?>
|
61 |
<?php $Val = ''; ?>
|
62 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
63 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
64 |
+
<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
|
65 |
</td>
|
66 |
</tr>
|
67 |
<?php $field = 'login_headerlogo'; ?>
|
73 |
<?php $Val = ''; ?>
|
74 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
75 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
76 |
+
<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
|
77 |
<?php if( !empty( $Val ) ) : ?>
|
78 |
<?php $img = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $Val ); ?>
|
79 |
<?php $img = str_replace( '[template_directory_uri]' , get_bloginfo( 'url' ) , $img ); ?>
|
101 |
<?php $Val = ''; ?>
|
102 |
<?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
|
103 |
<input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
|
104 |
+
<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
|
105 |
</td>
|
106 |
</tr>
|
107 |
<?php $field = 'login_footer'; ?>
|
134 |
</form>
|
135 |
|
136 |
</div>
|
137 |
+
|
138 |
+
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
inc/setting_sidemenu.php
CHANGED
@@ -11,8 +11,9 @@ if( !empty( $_POST["update"] ) ) {
|
|
11 |
$Data = $this->get_data( 'sidemenu' );
|
12 |
|
13 |
// include js css
|
14 |
-
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' );
|
15 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
|
|
16 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
17 |
|
18 |
?>
|
@@ -22,6 +23,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
22 |
<?php echo $this->Msg; ?>
|
23 |
<h2><?php _e( 'Side Menu' , $this->ltd ); ?></h2>
|
24 |
<p><?php _e( 'Please change the menu by drag and drop.' , $this->ltd ); ?></p>
|
|
|
|
|
|
|
25 |
|
26 |
<form id="waum_setting_sidemenu" class="waum_form" method="post" action="">
|
27 |
<input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
|
@@ -30,6 +34,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
30 |
<div class="metabox-holder columns-2" id="sidemenu-holder">
|
31 |
|
32 |
<div id="postbox-container-1" class="postbox-container">
|
|
|
33 |
<div class="postbox">
|
34 |
<h3 class="hndle"><span><?php _e( 'The current menu' , $this->ltd ); ?></span></h3>
|
35 |
<div class="inside">
|
@@ -49,9 +54,11 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
49 |
<?php $menu_title = $mm[0]; ?>
|
50 |
<?php if( !empty( $mm[5] ) ) : ?>
|
51 |
<?php if( $mm[5] == 'menu-comments' ) : ?>
|
52 |
-
<?php $menu_title = __( 'Comments' ); ?>
|
|
|
|
|
53 |
<?php elseif( $mm[5] == 'menu-plugins' ) : ?>
|
54 |
-
<?php $menu_title = __( 'Plugins' ); ?>
|
55 |
<?php endif; ?>
|
56 |
<?php endif; ?>
|
57 |
|
@@ -60,12 +67,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
60 |
<?php foreach($sub as $sm) : ?>
|
61 |
<?php if( $mm[2] == $parent_slug ) : ?>
|
62 |
<?php $submenu_title = $sm[0]; ?>
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
<?php $submenu_title = __( 'Plugins' ); ?>
|
67 |
-
<?php elseif( $sm[1] == 'update_core' ) : ?>
|
68 |
-
<?php $submenu_title = __( 'Update' ); ?>
|
69 |
<?php endif; ?>
|
70 |
<?php $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug ); ?>
|
71 |
<?php endif; ?>
|
@@ -110,6 +114,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
110 |
</div>
|
111 |
|
112 |
<div id="postbox-container-2" class="postbox-container">
|
|
|
113 |
<div class="postbox">
|
114 |
<h3 class="hndle"><span><?php _e( 'Menu that can be added' , $this->ltd ); ?></span></h3>
|
115 |
<div class="inside">
|
@@ -126,6 +131,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
126 |
<?php $menu_title = $mm[0]; ?>
|
127 |
<?php if( $mm[5] == 'menu-comments' ) : ?>
|
128 |
<?php $menu_title = __( 'Comments' ); ?>
|
|
|
|
|
129 |
<?php elseif( $mm[5] == 'menu-plugins' ) : ?>
|
130 |
<?php $menu_title = __( 'Plugins' ); ?>
|
131 |
<?php endif; ?>
|
@@ -137,12 +144,14 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
137 |
|
138 |
<?php if( $mm[2] == $parent_slug ) : ?>
|
139 |
<?php $menu_title = $sm[0]; ?>
|
140 |
-
<?php if( $sm[1] == '
|
141 |
-
<?php $menu_title = __( '
|
142 |
-
<?php elseif( $sm[
|
143 |
-
<?php $menu_title
|
144 |
-
<?php elseif( $sm[
|
145 |
-
<?php $menu_title
|
|
|
|
|
146 |
<?php endif; ?>
|
147 |
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'submenu' => '' ); ?>
|
148 |
<?php $this->menu_widget( $menu_widget ); ?>
|
@@ -180,6 +189,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
|
|
180 |
|
181 |
</div>
|
182 |
|
|
|
|
|
183 |
<style>
|
184 |
#sidemenu-holder #postbox-container-1 .item-edit { background-image: url(<?php echo admin_url(); ?>images/arrows.png); }
|
185 |
#sidemenu-holder #postbox-container-1 .item-edit:hover { background-image: url(<?php echo admin_url(); ?>images/arrows-dark.png); }
|
11 |
$Data = $this->get_data( 'sidemenu' );
|
12 |
|
13 |
// include js css
|
14 |
+
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
15 |
wp_enqueue_script( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
|
16 |
+
wp_enqueue_style( 'thickbox' );
|
17 |
wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
|
18 |
|
19 |
?>
|
23 |
<?php echo $this->Msg; ?>
|
24 |
<h2><?php _e( 'Side Menu' , $this->ltd ); ?></h2>
|
25 |
<p><?php _e( 'Please change the menu by drag and drop.' , $this->ltd ); ?></p>
|
26 |
+
<p><strong><?php _e( 'Notice: Please do not place the same multiple menu slug.' , $this->ltd ); ?></strong></p>
|
27 |
+
|
28 |
+
<p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
|
29 |
|
30 |
<form id="waum_setting_sidemenu" class="waum_form" method="post" action="">
|
31 |
<input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
|
34 |
<div class="metabox-holder columns-2" id="sidemenu-holder">
|
35 |
|
36 |
<div id="postbox-container-1" class="postbox-container">
|
37 |
+
|
38 |
<div class="postbox">
|
39 |
<h3 class="hndle"><span><?php _e( 'The current menu' , $this->ltd ); ?></span></h3>
|
40 |
<div class="inside">
|
54 |
<?php $menu_title = $mm[0]; ?>
|
55 |
<?php if( !empty( $mm[5] ) ) : ?>
|
56 |
<?php if( $mm[5] == 'menu-comments' ) : ?>
|
57 |
+
<?php $menu_title = __( 'Comments' ) . ' [comment_count]'; ?>
|
58 |
+
<?php elseif( $mm[5] == 'menu-appearance' ) : ?>
|
59 |
+
<?php $menu_title = __( 'Appearance' ) . ' [update_themes]'; ?>
|
60 |
<?php elseif( $mm[5] == 'menu-plugins' ) : ?>
|
61 |
+
<?php $menu_title = __( 'Plugins' ) . ' [update_plugins]'; ?>
|
62 |
<?php endif; ?>
|
63 |
<?php endif; ?>
|
64 |
|
67 |
<?php foreach($sub as $sm) : ?>
|
68 |
<?php if( $mm[2] == $parent_slug ) : ?>
|
69 |
<?php $submenu_title = $sm[0]; ?>
|
70 |
+
|
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; ?>
|
114 |
</div>
|
115 |
|
116 |
<div id="postbox-container-2" class="postbox-container">
|
117 |
+
|
118 |
<div class="postbox">
|
119 |
<h3 class="hndle"><span><?php _e( 'Menu that can be added' , $this->ltd ); ?></span></h3>
|
120 |
<div class="inside">
|
131 |
<?php $menu_title = $mm[0]; ?>
|
132 |
<?php if( $mm[5] == 'menu-comments' ) : ?>
|
133 |
<?php $menu_title = __( 'Comments' ); ?>
|
134 |
+
<?php elseif( $mm[5] == 'menu-appearance' ) : ?>
|
135 |
+
<?php $menu_title = __( 'Appearance' ); ?>
|
136 |
<?php elseif( $mm[5] == 'menu-plugins' ) : ?>
|
137 |
<?php $menu_title = __( 'Plugins' ); ?>
|
138 |
<?php endif; ?>
|
144 |
|
145 |
<?php if( $mm[2] == $parent_slug ) : ?>
|
146 |
<?php $menu_title = $sm[0]; ?>
|
147 |
+
<?php if( $sm[1] == 'update_core' ) : ?>
|
148 |
+
<?php $menu_title = __( 'Update' ) . ' [update_total]'; ?>
|
149 |
+
<?php elseif( $sm[2] == 'edit-comments.php' ) : ?>
|
150 |
+
<?php $menu_title .= ' [comment_count]'; ?>
|
151 |
+
<?php elseif( $sm[2] == 'themes.php' ) : ?>
|
152 |
+
<?php $menu_title .= ' [update_themes]'; ?>
|
153 |
+
<?php elseif( $sm[2] == 'plugins.php' ) : ?>
|
154 |
+
<?php $menu_title .= ' [update_plugins]'; ?>
|
155 |
<?php endif; ?>
|
156 |
<?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'submenu' => '' ); ?>
|
157 |
<?php $this->menu_widget( $menu_widget ); ?>
|
189 |
|
190 |
</div>
|
191 |
|
192 |
+
<?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
|
193 |
+
|
194 |
<style>
|
195 |
#sidemenu-holder #postbox-container-1 .item-edit { background-image: url(<?php echo admin_url(); ?>images/arrows.png); }
|
196 |
#sidemenu-holder #postbox-container-1 .item-edit:hover { background-image: url(<?php echo admin_url(); ?>images/arrows-dark.png); }
|
languages/wauc-ja.mo
CHANGED
Binary file
|
languages/wauc.pot
CHANGED
@@ -106,7 +106,7 @@ msgstr ""
|
|
106 |
msgid "Admin bar Menu"
|
107 |
msgstr ""
|
108 |
|
109 |
-
msgid "Notice:
|
110 |
msgstr ""
|
111 |
|
112 |
msgid "can be more than one custom menu."
|
@@ -187,3 +187,14 @@ msgstr ""
|
|
187 |
msgid "Css file to load"
|
188 |
msgstr ""
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
msgid "Admin bar Menu"
|
107 |
msgstr ""
|
108 |
|
109 |
+
msgid "Notice: Please do not place the same multiple menu slug."
|
110 |
msgstr ""
|
111 |
|
112 |
msgid "can be more than one custom menu."
|
187 |
msgid "Css file to load"
|
188 |
msgstr ""
|
189 |
|
190 |
+
msgid "Available Shortcodes"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
msgid "Shortcodes"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
msgid "Shortcode"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
msgid "In your case."
|
200 |
+
msgstr ""
|
languages/wauc_plugin-ja.mo
CHANGED
Binary file
|
languages/wauc_plugin.pot
CHANGED
@@ -73,6 +73,9 @@ msgstr ""
|
|
73 |
msgid "Useful plugins"
|
74 |
msgstr ""
|
75 |
|
|
|
|
|
|
|
76 |
msgid "Customize the list of the post and page. custom post type page, too. You can customize the column display items freely."
|
77 |
msgstr ""
|
78 |
|
73 |
msgid "Useful plugins"
|
74 |
msgstr ""
|
75 |
|
76 |
+
msgid "This add-on is an add-on to unify the management screen of all sites."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
msgid "Customize the list of the post and page. custom post type page, too. You can customize the column display items freely."
|
80 |
msgstr ""
|
81 |
|
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.1
|
7 |
-
Stable tag: 1.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -49,6 +49,10 @@ These to Customization is possible.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
52 |
= 1.2.3 =
|
53 |
* Remove the "Wordpress" from the title tag of the Admin screen.
|
54 |
* Added a preview of the logo image of the login screen.
|
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
|
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.1
|
7 |
+
Stable tag: 1.3
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.3 =
|
53 |
+
* Came to be able to use the various variables.
|
54 |
+
* Removed the part menu from the Admin bar.
|
55 |
+
|
56 |
= 1.2.3 =
|
57 |
* Remove the "Wordpress" from the title tag of the Admin screen.
|
58 |
* Added a preview of the logo image of the login screen.
|
wp-admin-ui-customize.css
CHANGED
@@ -22,6 +22,13 @@
|
|
22 |
padding: 2px 10px;
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
/* sidemenu */
|
@@ -52,6 +59,9 @@
|
|
52 |
opacity: 0.7;
|
53 |
font-weight: normal;
|
54 |
}
|
|
|
|
|
|
|
55 |
#sidemenu-holder .postbox .inside .widget .widget-inside .submenu {
|
56 |
padding: 5px 5px 20px 5px;
|
57 |
border: 1px solid #DFDFDF;
|
22 |
padding: 2px 10px;
|
23 |
}
|
24 |
|
25 |
+
#list_variables {
|
26 |
+
display: none;
|
27 |
+
}
|
28 |
+
.list_variables_wrap {
|
29 |
+
padding: 16px 0 0 0;
|
30 |
+
}
|
31 |
+
|
32 |
|
33 |
|
34 |
/* sidemenu */
|
59 |
opacity: 0.7;
|
60 |
font-weight: normal;
|
61 |
}
|
62 |
+
#sidemenu-holder .postbox .inside .widget .widget-inside .settings {
|
63 |
+
margin-bottom: 12px;
|
64 |
+
}
|
65 |
#sidemenu-holder .postbox .inside .widget .widget-inside .submenu {
|
66 |
padding: 5px 5px 20px 5px;
|
67 |
border: 1px solid #DFDFDF;
|
wp-admin-ui-customize.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: It is an excellent plugin to customize the management screen.
|
5 |
-
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
6 |
-
Version: 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 |
*/
|
@@ -47,7 +47,7 @@ class WP_Admin_UI_Customize
|
|
47 |
|
48 |
|
49 |
function __construct() {
|
50 |
-
$this->Ver = '1.
|
51 |
$this->Name = 'WP Admin UI Customize';
|
52 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
53 |
$this->Site = 'http://wpadminuicustomize.com/';
|
@@ -447,6 +447,58 @@ class WP_Admin_UI_Customize
|
|
447 |
<?php
|
448 |
}
|
449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
|
451 |
|
452 |
// DataUpdate
|
@@ -793,8 +845,7 @@ class WP_Admin_UI_Customize
|
|
793 |
|
794 |
if( !empty( $GetData["login_headerurl"] ) ) {
|
795 |
$url = strip_tags( $GetData["login_headerurl"] );
|
796 |
-
$url =
|
797 |
-
|
798 |
}
|
799 |
}
|
800 |
|
@@ -811,8 +862,7 @@ class WP_Admin_UI_Customize
|
|
811 |
|
812 |
if( !empty( $GetData["login_headertitle"] ) ) {
|
813 |
$title = strip_tags( $GetData["login_headertitle"] );
|
814 |
-
$title =
|
815 |
-
|
816 |
}
|
817 |
}
|
818 |
|
@@ -828,16 +878,14 @@ class WP_Admin_UI_Customize
|
|
828 |
|
829 |
if( !empty( $GetData["login_headerlogo"] ) ) {
|
830 |
$logo = strip_tags( $GetData["login_headerlogo"] );
|
831 |
-
$logo =
|
832 |
-
$logo = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $logo );
|
833 |
|
834 |
echo '<style type="text/css">.login h1 a { background-image: url(' . $logo . '); }</style>';
|
835 |
}
|
836 |
|
837 |
if( !empty( $GetData["login_css"] ) ) {
|
838 |
$css = strip_tags( $GetData["login_css"] );
|
839 |
-
$css =
|
840 |
-
$css = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $css );
|
841 |
|
842 |
wp_enqueue_style( $this->PageSlug , $css , array() , $this->Ver );
|
843 |
}
|
@@ -872,6 +920,8 @@ class WP_Admin_UI_Customize
|
|
872 |
unset( $GetData["UPFN"] );
|
873 |
if( !empty( $GetData ) ) {
|
874 |
|
|
|
|
|
875 |
// remove all nodes
|
876 |
$All_Nodes = $wp_admin_bar->get_nodes();
|
877 |
foreach( $All_Nodes as $node ) {
|
@@ -891,6 +941,39 @@ class WP_Admin_UI_Customize
|
|
891 |
if( $Boxtype == 'right' && $depth == 'main' ) {
|
892 |
$args["parent"] = "top-secondary";
|
893 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
894 |
$wp_admin_bar->add_menu( $args );
|
895 |
}
|
896 |
}
|
@@ -986,8 +1069,7 @@ class WP_Admin_UI_Customize
|
|
986 |
if( !empty( $GetData["css"] ) ) {
|
987 |
|
988 |
$css = strip_tags( $GetData["css"] );
|
989 |
-
$css =
|
990 |
-
$css = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $css );
|
991 |
|
992 |
wp_enqueue_style( $this->PageSlug , strip_tags( $css ) , array() , $this->Ver );
|
993 |
}
|
@@ -1074,7 +1156,19 @@ class WP_Admin_UI_Customize
|
|
1074 |
$gm_search = false;
|
1075 |
foreach($menu as $gm_pos => $gm) {
|
1076 |
if($mm["slug"] == $gm[2]) {
|
1077 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1078 |
$SetMain_menu[] = $menu[$gm_pos];
|
1079 |
$gm_search = true;
|
1080 |
break;
|
@@ -1091,8 +1185,19 @@ class WP_Admin_UI_Customize
|
|
1091 |
break;
|
1092 |
}
|
1093 |
}
|
1094 |
-
|
1095 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1096 |
$SetMain_menu[] = $submenu[$gsm_parent_slug][$gsm_pos];
|
1097 |
|
1098 |
}
|
@@ -1109,7 +1214,19 @@ class WP_Admin_UI_Customize
|
|
1109 |
$gm_search = false;
|
1110 |
foreach($menu as $gm_pos => $gm) {
|
1111 |
if($sm["slug"] == $gm[2]) {
|
1112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1113 |
$SetMain_submenu[$sm["parent_slug"]][] = $menu[$gm_pos];
|
1114 |
$gm_search = true;
|
1115 |
break;
|
@@ -1119,7 +1236,20 @@ class WP_Admin_UI_Customize
|
|
1119 |
foreach($submenu as $gsm_parent_slug => $v) {
|
1120 |
foreach($v as $gsm_pos => $gsm) {
|
1121 |
if($sm["slug"] == $gsm[2]) {
|
1122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1123 |
$SetMain_submenu[$sm["parent_slug"]][] = $submenu[$gsm_parent_slug][$gsm_pos];
|
1124 |
}
|
1125 |
}
|
@@ -1192,6 +1322,7 @@ class WP_Admin_UI_Customize
|
|
1192 |
// FilterStart
|
1193 |
function layout_footer( $text ) {
|
1194 |
$text = '<img src="http://www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=18" width="18" /> Plugin developer : <a href="http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=footer&utm_content=' . $this->ltd . '&utm_campaign=' . str_replace( '.' , '_' , $this->Ver ) . '" target="_blank">gqevu6bsiz</a>';
|
|
|
1195 |
return $text;
|
1196 |
}
|
1197 |
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: It is an excellent plugin to customize the management screen.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3
|
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=1_3
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
47 |
|
48 |
|
49 |
function __construct() {
|
50 |
+
$this->Ver = '1.3';
|
51 |
$this->Name = 'WP Admin UI Customize';
|
52 |
$this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
|
53 |
$this->Site = 'http://wpadminuicustomize.com/';
|
447 |
<?php
|
448 |
}
|
449 |
|
450 |
+
// SetList
|
451 |
+
function val_replace( $str ) {
|
452 |
+
|
453 |
+
if( !empty( $str ) ) {
|
454 |
+
|
455 |
+
$update_data = wp_get_update_data();
|
456 |
+
$awaiting_mod = wp_count_comments();
|
457 |
+
$awaiting_mod = $awaiting_mod->moderated;
|
458 |
+
$current_user = wp_get_current_user();
|
459 |
+
|
460 |
+
if( strstr( $str , '[blog_url]') ) {
|
461 |
+
$str = str_replace( '[blog_url]' , get_bloginfo( 'url' ) , $str );
|
462 |
+
}
|
463 |
+
if( strstr( $str , '[template_directory_uri]') ) {
|
464 |
+
$str = str_replace( '[template_directory_uri]' , get_bloginfo( 'template_directory' ) , $str );
|
465 |
+
}
|
466 |
+
if( strstr( $str , '[blog_name]') ) {
|
467 |
+
$str = str_replace( '[blog_name]' , get_bloginfo( 'name' ) , $str );
|
468 |
+
}
|
469 |
+
if( strstr( $str , '[update_total]') ) {
|
470 |
+
$str = str_replace( '[update_total]' , $update_data["counts"]["total"] , $str );
|
471 |
+
}
|
472 |
+
if( strstr( $str , '[update_total_format]') ) {
|
473 |
+
$str = str_replace( '[update_total_format]' , number_format_i18n( $update_data["counts"]["total"] ) , $str );
|
474 |
+
}
|
475 |
+
if( strstr( $str , '[update_plugins]') ) {
|
476 |
+
$str = str_replace( '[update_plugins]' , $update_data["counts"]["plugins"] , $str );
|
477 |
+
}
|
478 |
+
if( strstr( $str , '[update_plugins_format]') ) {
|
479 |
+
$str = str_replace( '[update_plugins_format]' , number_format_i18n( $update_data["counts"]["plugins"] ) , $str );
|
480 |
+
}
|
481 |
+
if( strstr( $str , '[update_themes]') ) {
|
482 |
+
$str = str_replace( '[update_themes]' , $update_data["counts"]["themes"] , $str );
|
483 |
+
}
|
484 |
+
if( strstr( $str , '[update_themes_format]') ) {
|
485 |
+
$str = str_replace( '[update_themes_format]' , number_format_i18n( $update_data["counts"]["themes"] ) , $str );
|
486 |
+
}
|
487 |
+
if( strstr( $str , '[comment_count]') ) {
|
488 |
+
$str = str_replace( '[comment_count]' , $awaiting_mod , $str );
|
489 |
+
}
|
490 |
+
if( strstr( $str , '[comment_count_format]') ) {
|
491 |
+
$str = str_replace( '[comment_count_format]' , number_format_i18n( $awaiting_mod ) , $str );
|
492 |
+
}
|
493 |
+
if( strstr( $str , '[user_name]') ) {
|
494 |
+
$str = str_replace( '[user_name]' , '<span class="display-name">' . $current_user->display_name . '</span>' , $str );
|
495 |
+
}
|
496 |
+
}
|
497 |
+
|
498 |
+
return $str;
|
499 |
+
}
|
500 |
+
|
501 |
+
|
502 |
|
503 |
|
504 |
// DataUpdate
|
845 |
|
846 |
if( !empty( $GetData["login_headerurl"] ) ) {
|
847 |
$url = strip_tags( $GetData["login_headerurl"] );
|
848 |
+
$url = $this->val_replace( $url );
|
|
|
849 |
}
|
850 |
}
|
851 |
|
862 |
|
863 |
if( !empty( $GetData["login_headertitle"] ) ) {
|
864 |
$title = strip_tags( $GetData["login_headertitle"] );
|
865 |
+
$title = $this->val_replace( $title );
|
|
|
866 |
}
|
867 |
}
|
868 |
|
878 |
|
879 |
if( !empty( $GetData["login_headerlogo"] ) ) {
|
880 |
$logo = strip_tags( $GetData["login_headerlogo"] );
|
881 |
+
$logo = $this->val_replace( $logo );
|
|
|
882 |
|
883 |
echo '<style type="text/css">.login h1 a { background-image: url(' . $logo . '); }</style>';
|
884 |
}
|
885 |
|
886 |
if( !empty( $GetData["login_css"] ) ) {
|
887 |
$css = strip_tags( $GetData["login_css"] );
|
888 |
+
$css = $this->val_replace( $css );
|
|
|
889 |
|
890 |
wp_enqueue_style( $this->PageSlug , $css , array() , $this->Ver );
|
891 |
}
|
920 |
unset( $GetData["UPFN"] );
|
921 |
if( !empty( $GetData ) ) {
|
922 |
|
923 |
+
$update_data = wp_get_update_data();
|
924 |
+
|
925 |
// remove all nodes
|
926 |
$All_Nodes = $wp_admin_bar->get_nodes();
|
927 |
foreach( $All_Nodes as $node ) {
|
941 |
if( $Boxtype == 'right' && $depth == 'main' ) {
|
942 |
$args["parent"] = "top-secondary";
|
943 |
}
|
944 |
+
if( strstr( $args["title"] , '[comment_count]') ) {
|
945 |
+
if ( !current_user_can('edit_posts') ) {
|
946 |
+
continue;
|
947 |
+
} else {
|
948 |
+
$args["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>' , $args["title"] );
|
949 |
+
}
|
950 |
+
}
|
951 |
+
if( strstr( $args["title"] , '[update_total]') ) {
|
952 |
+
if ( !$update_data['counts']['total'] ) {
|
953 |
+
continue;
|
954 |
+
} else {
|
955 |
+
$args["title"] = str_replace( '[update_total]' , '<span class="ab-icon"></span><span class="ab-label">[update_total_format]</span>' , $args["title"] );
|
956 |
+
}
|
957 |
+
}
|
958 |
+
if( strstr( $args["title"] , '[update_plugins]') ) {
|
959 |
+
if ( !$update_data['counts']['plugins'] ) {
|
960 |
+
continue;
|
961 |
+
} else {
|
962 |
+
$args["title"] = str_replace( '[update_plugins]' , '[update_plugins_format]' , $args["title"] );
|
963 |
+
}
|
964 |
+
}
|
965 |
+
if( strstr( $args["title"] , '[update_themes]') ) {
|
966 |
+
if ( !$update_data['counts']['themes'] ) {
|
967 |
+
continue;
|
968 |
+
} else {
|
969 |
+
$args["title"] = str_replace( '[update_themes]' , '[update_themes_format]' , $args["title"] );
|
970 |
+
}
|
971 |
+
}
|
972 |
+
$args["title"] = $this->val_replace( $args["title"] );
|
973 |
+
|
974 |
+
if( $args["id"] == 'logout' ) {
|
975 |
+
$args["href"] = wp_logout_url();
|
976 |
+
}
|
977 |
$wp_admin_bar->add_menu( $args );
|
978 |
}
|
979 |
}
|
1069 |
if( !empty( $GetData["css"] ) ) {
|
1070 |
|
1071 |
$css = strip_tags( $GetData["css"] );
|
1072 |
+
$css = $this->val_replace( $css );
|
|
|
1073 |
|
1074 |
wp_enqueue_style( $this->PageSlug , strip_tags( $css ) , array() , $this->Ver );
|
1075 |
}
|
1156 |
$gm_search = false;
|
1157 |
foreach($menu as $gm_pos => $gm) {
|
1158 |
if($mm["slug"] == $gm[2]) {
|
1159 |
+
if( strstr( $mm["title"] , '[comment_count]') ) {
|
1160 |
+
$mm["title"] = str_replace( '[comment_count]' , '<span class="update-plugins count-[comment_count]"><span class="theme-count">[comment_count_format]</span></span>' , $mm["title"] );
|
1161 |
+
}
|
1162 |
+
if( strstr( $mm["title"] , '[update_total]') ) {
|
1163 |
+
$mm["title"] = str_replace( '[update_total]' , '<span class="update-plugins count-[update_total]"><span class="update-count">[update_total_format]</span></span>' , $mm["title"] );
|
1164 |
+
}
|
1165 |
+
if( strstr( $mm["title"] , '[update_plugins]') ) {
|
1166 |
+
$mm["title"] = str_replace( '[update_plugins]' , '<span class="update-plugins count-[update_plugins]"><span class="plugin-count">[update_plugins_format]</span></span>' , $mm["title"] );
|
1167 |
+
}
|
1168 |
+
if( strstr( $mm["title"] , '[update_themes]') ) {
|
1169 |
+
$mm["title"] = str_replace( '[update_themes]' , '<span class="update-plugins count-[update_themes]"><span class="theme-count">[update_themes_format]</span></span>' , $mm["title"] );
|
1170 |
+
}
|
1171 |
+
$menu[$gm_pos][0] = $this->val_replace( $mm["title"] );
|
1172 |
$SetMain_menu[] = $menu[$gm_pos];
|
1173 |
$gm_search = true;
|
1174 |
break;
|
1185 |
break;
|
1186 |
}
|
1187 |
}
|
1188 |
+
if( strstr( $mm["title"] , '[comment_count]') ) {
|
1189 |
+
$mm["title"] = str_replace( '[comment_count]' , '<span class="update-plugins count-[comment_count]"><span class="theme-count">[comment_count_format]</span></span>' , $mm["title"] );
|
1190 |
+
}
|
1191 |
+
if( strstr( $mm["title"] , '[update_total]') ) {
|
1192 |
+
$mm["title"] = str_replace( '[update_total]' , '<span class="update-plugins count-[update_total]"><span class="update-count">[update_total_format]</span></span>' , $mm["title"] );
|
1193 |
+
}
|
1194 |
+
if( strstr( $mm["title"] , '[update_plugins]') ) {
|
1195 |
+
$mm["title"] = str_replace( '[update_plugins]' , '<span class="update-plugins count-[update_plugins]"><span class="plugin-count">[update_plugins_format]</span></span>' , $mm["title"] );
|
1196 |
+
}
|
1197 |
+
if( strstr( $mm["title"] , '[update_themes]') ) {
|
1198 |
+
$mm["title"] = str_replace( '[update_themes]' , '<span class="update-plugins count-[update_themes]"><span class="theme-count">[update_themes_format]</span></span>' , $mm["title"] );
|
1199 |
+
}
|
1200 |
+
$submenu[$gsm_parent_slug][$gsm_pos][0] = $this->val_replace( $mm["title"] );
|
1201 |
$SetMain_menu[] = $submenu[$gsm_parent_slug][$gsm_pos];
|
1202 |
|
1203 |
}
|
1214 |
$gm_search = false;
|
1215 |
foreach($menu as $gm_pos => $gm) {
|
1216 |
if($sm["slug"] == $gm[2]) {
|
1217 |
+
if( strstr( $sm["title"] , '[comment_count]') ) {
|
1218 |
+
$sm["title"] = str_replace( '[comment_count]' , '<span class="update-plugins count-[comment_count]"><span class="theme-count">[comment_count_format]</span></span>' , $sm["title"] );
|
1219 |
+
}
|
1220 |
+
if( strstr( $sm["title"] , '[update_total]') ) {
|
1221 |
+
$sm["title"] = str_replace( '[update_total]' , '<span class="update-plugins count-[update_total]"><span class="update-count">[update_total_format]</span></span>' , $sm["title"] );
|
1222 |
+
}
|
1223 |
+
if( strstr( $sm["title"] , '[update_plugins]') ) {
|
1224 |
+
$sm["title"] = str_replace( '[update_plugins]' , '<span class="update-plugins count-[update_plugins]"><span class="plugin-count">[update_plugins_format]</span></span>' , $sm["title"] );
|
1225 |
+
}
|
1226 |
+
if( strstr( $sm["title"] , '[update_themes]') ) {
|
1227 |
+
$sm["title"] = str_replace( '[update_themes]' , '<span class="update-plugins count-[update_themes]"><span class="theme-count">[update_themes_format]</span></span>' , $sm["title"] );
|
1228 |
+
}
|
1229 |
+
$menu[$gm_pos][0] = $this->val_replace( $sm["title"] );
|
1230 |
$SetMain_submenu[$sm["parent_slug"]][] = $menu[$gm_pos];
|
1231 |
$gm_search = true;
|
1232 |
break;
|
1236 |
foreach($submenu as $gsm_parent_slug => $v) {
|
1237 |
foreach($v as $gsm_pos => $gsm) {
|
1238 |
if($sm["slug"] == $gsm[2]) {
|
1239 |
+
|
1240 |
+
if( strstr( $sm["title"] , '[comment_count]') ) {
|
1241 |
+
$sm["title"] = str_replace( '[comment_count]' , '<span class="update-plugins count-[comment_count]"><span class="theme-count">[comment_count_format]</span></span>' , $sm["title"] );
|
1242 |
+
}
|
1243 |
+
if( strstr( $sm["title"] , '[update_total]') ) {
|
1244 |
+
$sm["title"] = str_replace( '[update_total]' , '<span class="update-plugins count-[update_total]"><span class="update-count">[update_total_format]</span></span>' , $sm["title"] );
|
1245 |
+
}
|
1246 |
+
if( strstr( $sm["title"] , '[update_plugins]') ) {
|
1247 |
+
$sm["title"] = str_replace( '[update_plugins]' , '<span class="update-plugins count-[update_plugins]"><span class="plugin-count">[update_plugins_format]</span></span>' , $sm["title"] );
|
1248 |
+
}
|
1249 |
+
if( strstr( $sm["title"] , '[update_themes]') ) {
|
1250 |
+
$sm["title"] = str_replace( '[update_themes]' , '<span class="update-plugins count-[update_themes]"><span class="theme-count">[update_themes_format]</span></span>' , $sm["title"] );
|
1251 |
+
}
|
1252 |
+
$submenu[$gsm_parent_slug][$gsm_pos][0] = $this->val_replace( $sm["title"] );
|
1253 |
$SetMain_submenu[$sm["parent_slug"]][] = $submenu[$gsm_parent_slug][$gsm_pos];
|
1254 |
}
|
1255 |
}
|
1322 |
// FilterStart
|
1323 |
function layout_footer( $text ) {
|
1324 |
$text = '<img src="http://www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=18" width="18" /> Plugin developer : <a href="http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=footer&utm_content=' . $this->ltd . '&utm_campaign=' . str_replace( '.' , '_' , $this->Ver ) . '" target="_blank">gqevu6bsiz</a>';
|
1325 |
+
$text .= '<br /><strong><span style="color: orange;">new</span> <a href="' . $this->Site . 'multisite_about/?utm_source=use_plugin&utm_medium=side&utm_content=utm_content=' . $this->ltd . '&utm_campaign=' . str_replace( '.' , '_' , $this->Ver ) . '" target="_blank">WP Admin UI Customize for Multisite Add-on</a></strong>';
|
1326 |
return $text;
|
1327 |
}
|
1328 |
|