Version Description
- Change mechanism : multiple form tag to error on Admin bar settings.
- Supported compatible to 3.6.
- Added to comments show on hide to discussion of metabox.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.3.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.8.1
- images/discussion_allow_comments.png +0 -0
- inc/reset_userrole.php +2 -2
- inc/setting_admin_bar_menu.php +5 -5
- inc/setting_admin_general.php +2 -2
- inc/setting_appearance_menus.php +2 -2
- inc/setting_dashboard.php +2 -2
- inc/setting_default.php +7 -8
- inc/setting_loginscreen.php +2 -2
- inc/setting_post_add_edit.php +36 -2
- inc/setting_removemtabox.php +12 -14
- inc/setting_sidemenu.php +3 -3
- inc/setting_site.php +2 -2
- languages/wauc-ja.mo +0 -0
- languages/wauc-ja.po +20 -3
- languages/wauc.pot +20 -3
- readme.txt +9 -4
- wp-admin-ui-customize.php +63 -43
images/discussion_allow_comments.png
ADDED
Binary file
|
inc/reset_userrole.php
CHANGED
@@ -6,8 +6,8 @@ $UserRoles = $this->get_user_role();
|
|
6 |
|
7 |
// include js css
|
8 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
9 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
10 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
11 |
|
12 |
?>
|
13 |
<div class="wrap">
|
6 |
|
7 |
// include js css
|
8 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
9 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
10 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
11 |
|
12 |
?>
|
13 |
<div class="wrap">
|
inc/setting_admin_bar_menu.php
CHANGED
@@ -11,9 +11,9 @@ $AllDefaultNodes = $this->admin_bar_filter_load();
|
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
14 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
15 |
-
wp_enqueue_style(
|
16 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
17 |
|
18 |
?>
|
19 |
|
@@ -41,7 +41,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
41 |
<div id="right_menus">
|
42 |
<div class="postbox">
|
43 |
<div class="handlediv" title="Click to toggle"><br></div>
|
44 |
-
<h3 class="hndle"><span><?php _e( 'Right'
|
45 |
<div class="inside">
|
46 |
|
47 |
<?php if( empty( $Data ) ) : ?>
|
@@ -107,7 +107,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
107 |
<div id="left_menus">
|
108 |
<div class="postbox">
|
109 |
<div class="handlediv" title="Click to toggle"><br></div>
|
110 |
-
<h3 class="hndle"><span><?php _e( 'Left'
|
111 |
<div class="inside">
|
112 |
<?php if( empty( $Data ) ) : ?>
|
113 |
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
14 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
15 |
+
wp_enqueue_style('thickbox');
|
16 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
17 |
|
18 |
?>
|
19 |
|
41 |
<div id="right_menus">
|
42 |
<div class="postbox">
|
43 |
<div class="handlediv" title="Click to toggle"><br></div>
|
44 |
+
<h3 class="hndle"><span><?php _e( 'Right' ); ?><?php _e( 'Menus' ); ?></span></h3>
|
45 |
<div class="inside">
|
46 |
|
47 |
<?php if( empty( $Data ) ) : ?>
|
107 |
<div id="left_menus">
|
108 |
<div class="postbox">
|
109 |
<div class="handlediv" title="Click to toggle"><br></div>
|
110 |
+
<h3 class="hndle"><span><?php _e( 'Left' ); ?><?php _e( 'Menus' ); ?></span></h3>
|
111 |
<div class="inside">
|
112 |
<?php if( empty( $Data ) ) : ?>
|
113 |
|
inc/setting_admin_general.php
CHANGED
@@ -10,9 +10,9 @@ $Data = $this->get_data( 'admin_general' );
|
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
|
13 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
14 |
wp_enqueue_style('thickbox');
|
15 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
16 |
|
17 |
?>
|
18 |
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
|
13 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
14 |
wp_enqueue_style('thickbox');
|
15 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
18 |
|
inc/setting_appearance_menus.php
CHANGED
@@ -10,8 +10,8 @@ $Data = $this->get_data( 'appearance_menus' );
|
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
13 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
14 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
15 |
|
16 |
?>
|
17 |
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
13 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
14 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
15 |
|
16 |
?>
|
17 |
|
inc/setting_dashboard.php
CHANGED
@@ -10,8 +10,8 @@ $Data = $this->get_data( 'dashboard' );
|
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
13 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
14 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
15 |
|
16 |
?>
|
17 |
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
13 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
14 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
15 |
|
16 |
?>
|
17 |
|
inc/setting_default.php
CHANGED
@@ -13,8 +13,8 @@ $UserRoles = $this->get_user_role();
|
|
13 |
|
14 |
// include js css
|
15 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
16 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
17 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
18 |
|
19 |
?>
|
20 |
<div class="wrap">
|
@@ -61,12 +61,12 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
61 |
<div class="stuffbox" id="aboutbox">
|
62 |
<h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd_p ); ?></span></h3>
|
63 |
<div class="inside">
|
64 |
-
<p><?php _e( 'Version check' , $this->ltd_p ); ?> : 3.
|
65 |
<ul>
|
66 |
<li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd_p ); ?></a></li>
|
67 |
<li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd_p ); ?></a></li>
|
68 |
-
<li><a href="http://wordpress.org/support/plugin
|
69 |
-
<li><a href="http://wordpress.org/support/view/plugin-reviews
|
70 |
<li><a href="https://twitter.com/gqevu6bsiz" target="_blank">twitter</a></li>
|
71 |
<li><a href="http://www.facebook.com/pages/Gqevu6bsiz/499584376749601" target="_blank">facebook</a></li>
|
72 |
</ul>
|
@@ -150,14 +150,13 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
150 |
<h3 style="background: #FFF2D0; border-color: #FFC426;"><span class="hndle"><?php _e( 'Have you want to customize?' , $this->ltd_p ); ?></span></h3>
|
151 |
<div class="inside">
|
152 |
<p style="float: right;">
|
153 |
-
<?php $
|
154 |
-
<img src="<?php echo $schema; ?>www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=46" width="46" /><br />
|
155 |
<a href="<?php echo $this->AuthorUrl; ?>contact-us/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">gqevu6bsiz</a>
|
156 |
</p>
|
157 |
<p><?php _e( 'I am good at Admin Screen Customize.' , $this->ltd_p ); ?></p>
|
158 |
<p><?php _e( 'Please consider the request to me if it is good.' , $this->ltd_p ); ?></p>
|
159 |
<p>
|
160 |
-
<a href="
|
161 |
<a href="<?php echo $this->AuthorUrl; ?>contact-us/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Contact me' , $this->ltd_p ); ?></a></p>
|
162 |
</div>
|
163 |
</div>
|
13 |
|
14 |
// include js css
|
15 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
16 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
17 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
18 |
|
19 |
?>
|
20 |
<div class="wrap">
|
61 |
<div class="stuffbox" id="aboutbox">
|
62 |
<h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd_p ); ?></span></h3>
|
63 |
<div class="inside">
|
64 |
+
<p><?php _e( 'Version check' , $this->ltd_p ); ?> : 3.5.2 - 3.6</p>
|
65 |
<ul>
|
66 |
<li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd_p ); ?></a></li>
|
67 |
<li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd_p ); ?></a></li>
|
68 |
+
<li><a href="http://wordpress.org/support/plugin/<?php echo $this->PluginSlug; ?>" target="_blank"><?php _e( 'Support Forums' ); ?></a></li>
|
69 |
+
<li><a href="http://wordpress.org/support/view/plugin-reviews/<?php echo $this->PluginSlug; ?>" target="_blank"><?php _e( 'Reviews' , $this->ltd_p ); ?></a></li>
|
70 |
<li><a href="https://twitter.com/gqevu6bsiz" target="_blank">twitter</a></li>
|
71 |
<li><a href="http://www.facebook.com/pages/Gqevu6bsiz/499584376749601" target="_blank">facebook</a></li>
|
72 |
</ul>
|
150 |
<h3 style="background: #FFF2D0; border-color: #FFC426;"><span class="hndle"><?php _e( 'Have you want to customize?' , $this->ltd_p ); ?></span></h3>
|
151 |
<div class="inside">
|
152 |
<p style="float: right;">
|
153 |
+
<img src="<?php echo $this->Schema; ?>www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=46" width="46" /><br />
|
|
|
154 |
<a href="<?php echo $this->AuthorUrl; ?>contact-us/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank">gqevu6bsiz</a>
|
155 |
</p>
|
156 |
<p><?php _e( 'I am good at Admin Screen Customize.' , $this->ltd_p ); ?></p>
|
157 |
<p><?php _e( 'Please consider the request to me if it is good.' , $this->ltd_p ); ?></p>
|
158 |
<p>
|
159 |
+
<a href="<?php echo $this->Site; ?>blog/category/example/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e ( 'Example Customize' , $this->ltd_p ); ?></a> :
|
160 |
<a href="<?php echo $this->AuthorUrl; ?>contact-us/?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Contact me' , $this->ltd_p ); ?></a></p>
|
161 |
</div>
|
162 |
</div>
|
inc/setting_loginscreen.php
CHANGED
@@ -10,9 +10,9 @@ $Data = $this->get_data( 'loginscreen' );
|
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
|
13 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
14 |
wp_enqueue_style('thickbox');
|
15 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
16 |
|
17 |
?>
|
18 |
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
|
13 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
14 |
wp_enqueue_style('thickbox');
|
15 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
18 |
|
inc/setting_post_add_edit.php
CHANGED
@@ -7,11 +7,12 @@ if( !empty( $_POST["update"] ) ) {
|
|
7 |
}
|
8 |
|
9 |
$Data = $this->get_data( 'post_add_edit' );
|
|
|
10 |
|
11 |
// include js css
|
12 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
13 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
14 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
15 |
|
16 |
?>
|
17 |
|
@@ -32,6 +33,38 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
32 |
<div id="post-body" class="metabox-holder columns-1">
|
33 |
|
34 |
<div id="postbox-container-1" class="postbox-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<div id="post_add_edit">
|
36 |
<div class="postbox">
|
37 |
<h3 class="hndle"><span><?php _e( 'Add New Post' ); ?> & <?php _e( 'Edit Post' ); ?></span></h3>
|
@@ -56,6 +89,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
56 |
</div>
|
57 |
</div>
|
58 |
</div>
|
|
|
59 |
</div>
|
60 |
|
61 |
<br class="clear">
|
7 |
}
|
8 |
|
9 |
$Data = $this->get_data( 'post_add_edit' );
|
10 |
+
$comment_status = get_option( 'default_comment_status' );
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
15 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
18 |
|
33 |
<div id="post-body" class="metabox-holder columns-1">
|
34 |
|
35 |
<div id="postbox-container-1" class="postbox-container">
|
36 |
+
|
37 |
+
<div id="post_add">
|
38 |
+
<div class="postbox">
|
39 |
+
<h3 class="hndle"><span><?php _e( 'Add New Post' ); ?> & <?php _e( 'Add New Page' ); ?></span></h3>
|
40 |
+
<div class="inside">
|
41 |
+
<table class="form-table">
|
42 |
+
<tbody>
|
43 |
+
<?php $field = 'allow_comments'; ?>
|
44 |
+
<tr>
|
45 |
+
<th>
|
46 |
+
<label><?php _e( 'Allow people to post comments on new articles when hide to discussion of metabox' , $this->ltd ); ?></label>
|
47 |
+
</th>
|
48 |
+
<td>
|
49 |
+
<?php if( $comment_status == 'open' ) : ?>
|
50 |
+
<?php $Checked = ''; ?>
|
51 |
+
<?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
52 |
+
<label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Allow' ); ?></label>
|
53 |
+
<p class="description"><?php _e( 'Notice: If hide the Discussion on metabox, comments does not display of Add New Post on apply user role.' , $this->ltd ); ?></p>
|
54 |
+
<p><?php _e( 'Please select if you want to display the comments on Site.' , $this->ltd ); ?></p>
|
55 |
+
<p><a href="<?php echo admin_url( 'options-discussion.php' ); ?>"><?php echo sprintf( __( 'However, this will follow the setting of %s.' , $this->ltd ) , __( 'Default article settings' ) ); ?></a></p>
|
56 |
+
<?php else : ?>
|
57 |
+
<p><a href="<?php echo admin_url( 'options-discussion.php' ); ?>"><?php echo sprintf( __( 'Please select the %s' , $this->ltd ) , __( 'Allow people to post comments on new articles' ) ); ?></a></p>
|
58 |
+
<?php endif; ?>
|
59 |
+
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
</tbody>
|
63 |
+
</table>
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
|
68 |
<div id="post_add_edit">
|
69 |
<div class="postbox">
|
70 |
<h3 class="hndle"><span><?php _e( 'Add New Post' ); ?> & <?php _e( 'Edit Post' ); ?></span></h3>
|
89 |
</div>
|
90 |
</div>
|
91 |
</div>
|
92 |
+
|
93 |
</div>
|
94 |
|
95 |
<br class="clear">
|
inc/setting_removemtabox.php
CHANGED
@@ -11,8 +11,8 @@ $Metaboxes = $this->get_data( "regist_metabox" );
|
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
15 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
16 |
|
17 |
?>
|
18 |
|
@@ -58,24 +58,17 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
58 |
<?php $Checked = ''; ?>
|
59 |
<?php if( !empty( $Data["post"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
60 |
<label><input type="checkbox" name="data[post][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
|
|
|
|
|
|
|
|
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<?php endif; ?>
|
64 |
<?php endforeach; ?>
|
65 |
<?php endforeach; ?>
|
66 |
<?php endforeach; ?>
|
67 |
-
|
68 |
-
<?php global $wp_version; ?>
|
69 |
-
<?php if ( version_compare( $wp_version , '3.6' , '>=' ) ) : ?>
|
70 |
-
<tr>
|
71 |
-
<th><?php _e( 'Post Formats' ); ?></th>
|
72 |
-
<td>
|
73 |
-
<?php $Checked = ''; ?>
|
74 |
-
<?php if( !empty( $Data["post"]["postformat"] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
75 |
-
<label><input type="checkbox" name="data[post][postformat]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
76 |
-
</td>
|
77 |
-
</tr>
|
78 |
-
<?php endif; ?>
|
79 |
</tbody>
|
80 |
</table>
|
81 |
|
@@ -112,6 +105,11 @@ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basena
|
|
112 |
<?php $Checked = ''; ?>
|
113 |
<?php if( !empty( $Data["page"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
114 |
<label><input type="checkbox" name="data[page][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
|
|
|
|
|
|
|
|
|
|
115 |
</td>
|
116 |
</tr>
|
117 |
<?php endif; ?>
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
15 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
18 |
|
58 |
<?php $Checked = ''; ?>
|
59 |
<?php if( !empty( $Data["post"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
60 |
<label><input type="checkbox" name="data[post][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
61 |
+
<?php if( $metabox_id == 'commentstatusdiv' ) : ?>
|
62 |
+
<p class="description"><?php _e( 'Notice: If hide the Discussion on metabox, comments does not display of Add New Post on apply user role.' , $this->ltd ); ?></p>
|
63 |
+
<p><img src="<?php echo $this->Url; ?>images/discussion_allow_comments.png" /></p>
|
64 |
+
<p><a href="<?php echo admin_url( 'admin.php?page=' . $this->PageSlug . '_post_add_edit_screen' ); ?>"><?php _e( 'Please set from here if you want to view the comments on screen.' , $this->ltd ); ?></a></p>
|
65 |
+
<?php endif; ?>
|
66 |
</td>
|
67 |
</tr>
|
68 |
<?php endif; ?>
|
69 |
<?php endforeach; ?>
|
70 |
<?php endforeach; ?>
|
71 |
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
</tbody>
|
73 |
</table>
|
74 |
|
105 |
<?php $Checked = ''; ?>
|
106 |
<?php if( !empty( $Data["page"][$metabox_id] ) ) : $Checked = 'checked="checked"'; endif; ?>
|
107 |
<label><input type="checkbox" name="data[page][<?php echo $metabox_id; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
|
108 |
+
<?php if( $metabox_id == 'commentstatusdiv' ) : ?>
|
109 |
+
<p class="description"><?php _e( 'Notice: If hide the Discussion on metabox, comments does not display of Add New Post on apply user role.' , $this->ltd ); ?></p>
|
110 |
+
<p><img src="<?php echo $this->Url; ?>images/discussion_allow_comments.png" /></p>
|
111 |
+
<p><a href="<?php echo admin_url( 'admin.php?page=' . $this->PageSlug . '_post_add_edit_screen' ); ?>"><?php _e( 'Please set from here if you want to view the comments on screen.' , $this->ltd ); ?></a></p>
|
112 |
+
<?php endif; ?>
|
113 |
</td>
|
114 |
</tr>
|
115 |
<?php endif; ?>
|
inc/setting_sidemenu.php
CHANGED
@@ -13,9 +13,9 @@ $Data = $this->get_data( 'sidemenu' );
|
|
13 |
|
14 |
// include js css
|
15 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
16 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
17 |
-
wp_enqueue_style(
|
18 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
19 |
|
20 |
?>
|
21 |
|
13 |
|
14 |
// include js css
|
15 |
$ReadedJs = array( 'jquery' , 'jquery-ui-draggable' , 'jquery-ui-droppable' , 'jquery-ui-sortable' , 'thickbox' );
|
16 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
17 |
+
wp_enqueue_style('thickbox');
|
18 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
19 |
|
20 |
?>
|
21 |
|
inc/setting_site.php
CHANGED
@@ -11,8 +11,8 @@ $SiteSetting = get_option( $this->Record["site"] );
|
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
-
wp_enqueue_script( $this->PageSlug , $this->Url .
|
15 |
-
wp_enqueue_style( $this->PageSlug , $this->Url .
|
16 |
|
17 |
?>
|
18 |
|
11 |
|
12 |
// include js css
|
13 |
$ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
|
14 |
+
wp_enqueue_script( $this->PageSlug , $this->Url . $this->PluginSlug . '.js', $ReadedJs , $this->Ver );
|
15 |
+
wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', array() , $this->Ver );
|
16 |
|
17 |
?>
|
18 |
|
languages/wauc-ja.mo
CHANGED
Binary file
|
languages/wauc-ja.po
CHANGED
@@ -2,16 +2,15 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date: 2013-08-
|
6 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"X-Poedit-Language: Japanese\n"
|
11 |
-
"X-Poedit-Country: JAPAN\n"
|
12 |
"Language: ja_JP\n"
|
13 |
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
"Last-Translator: Gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
|
|
15 |
|
16 |
msgid "An excellent plugin to customize the management screens."
|
17 |
msgstr "管理画面のカスタマイズに優れたプラグインです。"
|
@@ -163,9 +162,27 @@ msgstr "%s 編集画面を一度表示すると自動でメタボックスが読
|
|
163 |
msgid "Please update or add a \"post\" and a \"page\" to load the available meta boxes."
|
164 |
msgstr "新しいプラグインのメタボックスを読み込むには編集画面に一度アクセスしてください。"
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
msgid "Add New Post and Edit Post Screen Setting"
|
167 |
msgstr "新規投稿と投稿編集の設定"
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
msgid "Only appears when you have settings to the default permalink."
|
170 |
msgstr "デフォルトのパーマリンクに設定している時のみ表示されます。"
|
171 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2013-08-11 01:36+0900\n"
|
6 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
10 |
"Language: ja_JP\n"
|
11 |
"X-Poedit-SourceCharset: utf-8\n"
|
12 |
"Last-Translator: Gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
13 |
+
"X-Generator: Poedit 1.5.5\n"
|
14 |
|
15 |
msgid "An excellent plugin to customize the management screens."
|
16 |
msgstr "管理画面のカスタマイズに優れたプラグインです。"
|
162 |
msgid "Please update or add a \"post\" and a \"page\" to load the available meta boxes."
|
163 |
msgstr "新しいプラグインのメタボックスを読み込むには編集画面に一度アクセスしてください。"
|
164 |
|
165 |
+
msgid "Notice: If hide the Discussion on metabox, comments does not display of Add New Post on apply user role."
|
166 |
+
msgstr "注意: ディスカッションメタボックスを隠す場合、適用された権限の新規投稿はコメントが表示されません。"
|
167 |
+
|
168 |
+
msgid "Please set from here if you want to view the comments on screen."
|
169 |
+
msgstr "コメントが表示されるようにしたい場合はここから設定してください。"
|
170 |
+
|
171 |
msgid "Add New Post and Edit Post Screen Setting"
|
172 |
msgstr "新規投稿と投稿編集の設定"
|
173 |
|
174 |
+
msgid "Allow people to post comments on new articles when hide to discussion of metabox"
|
175 |
+
msgstr "ディスカッションメタボックスが非表示でも新しい投稿へのコメントを許可する"
|
176 |
+
|
177 |
+
msgid "Please select if you want to display the comments on Site."
|
178 |
+
msgstr "サイトでコメントを表示させたい場合選択してください。"
|
179 |
+
|
180 |
+
msgid "However, this will follow the setting of %s."
|
181 |
+
msgstr "ただし、これは%sの設定に従います。"
|
182 |
+
|
183 |
+
msgid "Please select the %s"
|
184 |
+
msgstr "%s を選択してください。"
|
185 |
+
|
186 |
msgid "Only appears when you have settings to the default permalink."
|
187 |
msgstr "デフォルトのパーマリンクに設定している時のみ表示されます。"
|
188 |
|
languages/wauc.pot
CHANGED
@@ -2,16 +2,15 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date: 2013-08-
|
6 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"X-Poedit-Language: Japanese\n"
|
11 |
-
"X-Poedit-Country: JAPAN\n"
|
12 |
"Language: ja_JP\n"
|
13 |
"X-Poedit-SourceCharset: utf-8\n"
|
14 |
"Last-Translator: Gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
|
|
15 |
|
16 |
msgid "An excellent plugin to customize the management screens."
|
17 |
msgstr ""
|
@@ -163,9 +162,27 @@ msgstr ""
|
|
163 |
msgid "Please update or add a \"post\" and a \"page\" to load the available meta boxes."
|
164 |
msgstr ""
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
msgid "Add New Post and Edit Post Screen Setting"
|
167 |
msgstr ""
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
msgid "Only appears when you have settings to the default permalink."
|
170 |
msgstr ""
|
171 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Admin UI Customize\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2013-08-11 00:26+0900\n"
|
6 |
"Language-Team: gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
10 |
"Language: ja_JP\n"
|
11 |
"X-Poedit-SourceCharset: utf-8\n"
|
12 |
"Last-Translator: Gqevu6bsiz <gqevu6bsiz@gmail.com>\n"
|
13 |
+
"X-Generator: Poedit 1.5.5\n"
|
14 |
|
15 |
msgid "An excellent plugin to customize the management screens."
|
16 |
msgstr ""
|
162 |
msgid "Please update or add a \"post\" and a \"page\" to load the available meta boxes."
|
163 |
msgstr ""
|
164 |
|
165 |
+
msgid "Notice: If hide the Discussion on metabox, comments does not display of Add New Post on apply user role."
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
msgid "Please set from here if you want to view the comments on screen."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
msgid "Add New Post and Edit Post Screen Setting"
|
172 |
msgstr ""
|
173 |
|
174 |
+
msgid "Allow people to post comments on new articles when hide to discussion of metabox"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
msgid "Please select if you want to display the comments on Site."
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
msgid "However, this will follow the setting of %s."
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
msgid "Please select the %s"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
msgid "Only appears when you have settings to the default permalink."
|
187 |
msgstr ""
|
188 |
|
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.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.3.8
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -49,6 +49,11 @@ These to Customization is possible.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
= 1.3.8 =
|
53 |
* Fixed bug : Sortables settings of Admin bar settings and Side menu settings.
|
54 |
* Fixed bug : Get the directory URL on use SSL.
|
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_8_1
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar
|
5 |
+
Requires at least: 3.5.2
|
6 |
+
Tested up to: 3.6
|
7 |
+
Stable tag: 1.3.8.1
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.3.8.1 =
|
53 |
+
* Change mechanism : multiple form tag to error on Admin bar settings.
|
54 |
+
* Supported compatible to 3.6.
|
55 |
+
* Added to comments show on hide to discussion of metabox.
|
56 |
+
|
57 |
= 1.3.8 =
|
58 |
* Fixed bug : Sortables settings of Admin bar settings and Side menu settings.
|
59 |
* Fixed bug : Get the directory URL on use SSL.
|
wp-admin-ui-customize.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
-
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
6 |
-
Version: 1.3.8
|
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 |
*/
|
@@ -34,12 +34,15 @@ class WP_Admin_UI_Customize
|
|
34 |
var $Ver,
|
35 |
$Name,
|
36 |
$Dir,
|
|
|
37 |
$Site,
|
38 |
$AuthorUrl,
|
39 |
$ltd,
|
40 |
$Record,
|
41 |
$PageSlug,
|
|
|
42 |
$Nonces,
|
|
|
43 |
$UPFN,
|
44 |
$DonateKey,
|
45 |
$Menu,
|
@@ -49,10 +52,10 @@ class WP_Admin_UI_Customize
|
|
49 |
|
50 |
|
51 |
function __construct() {
|
52 |
-
$this->Ver = '1.3.8';
|
53 |
$this->Name = 'WP Admin UI Customize';
|
54 |
-
$this->Url = plugin_dir_url( __FILE__ );
|
55 |
$this->Dir = plugin_dir_path( __FILE__ );
|
|
|
56 |
$this->Site = 'http://wpadminuicustomize.com/';
|
57 |
$this->AuthorUrl = 'http://gqevu6bsiz.chicappa.jp/';
|
58 |
$this->ltd = 'wauc';
|
@@ -72,7 +75,9 @@ class WP_Admin_UI_Customize
|
|
72 |
"donate" => $this->ltd . '_donated',
|
73 |
);
|
74 |
$this->PageSlug = 'wp_admin_ui_customize';
|
|
|
75 |
$this->Nonces = array( "field" => $this->ltd . '_field' , "value" => $this->ltd . '_value' );
|
|
|
76 |
$this->UPFN = 'Y';
|
77 |
$this->DonateKey = 'd77aec9bc89d445fd54b4c988d090f03';
|
78 |
|
@@ -87,8 +92,8 @@ class WP_Admin_UI_Customize
|
|
87 |
// PluginSetup
|
88 |
function PluginSetup() {
|
89 |
// load text domain
|
90 |
-
load_plugin_textdomain( $this->ltd , false ,
|
91 |
-
load_plugin_textdomain( $this->ltd_p , false ,
|
92 |
|
93 |
// plugin links
|
94 |
add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
|
@@ -107,7 +112,7 @@ class WP_Admin_UI_Customize
|
|
107 |
function plugin_action_links( $links , $file ) {
|
108 |
if( plugin_basename(__FILE__) == $file ) {
|
109 |
$link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug ) . '">' . __( 'Settings' ) . '</a>';
|
110 |
-
$support_link = '<a href="http://wordpress.org/support/plugin/
|
111 |
$delete_userrole_link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug . '_reset_userrole' ) . '">' . __( 'Reset User Roles' , $this->ltd ) . '</a>';
|
112 |
array_unshift( $links, $link , $delete_userrole_link , $support_link );
|
113 |
}
|
@@ -126,6 +131,14 @@ class WP_Admin_UI_Customize
|
|
126 |
|
127 |
// PluginSetup
|
128 |
function admin_menu() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
add_menu_page( $this->Name , $this->Name , 'administrator', $this->PageSlug , array( $this , 'setting_default') );
|
130 |
add_submenu_page( $this->PageSlug , __( 'Site Settings' , $this->ltd ) , __( 'Site Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_setting_site' , array( $this , 'setting_site' ) );
|
131 |
add_submenu_page( $this->PageSlug , __( 'General Screen Settings' , $this->ltd ) , __( 'General Screen Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_general_setting' , array( $this , 'setting_admin_general' ) );
|
@@ -577,10 +590,10 @@ class WP_Admin_UI_Customize
|
|
577 |
|
578 |
// SetList
|
579 |
function admin_bar_menu_widget( $menu_widget ) {
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
?>
|
585 |
<div class="widget <?php echo $new_widget; ?> <?php echo $menu_widget["id"]; ?>">
|
586 |
|
@@ -590,8 +603,12 @@ class WP_Admin_UI_Customize
|
|
590 |
</div>
|
591 |
<div class="widget-title">
|
592 |
<h4>
|
593 |
-
<?php
|
594 |
-
|
|
|
|
|
|
|
|
|
595 |
</h4>
|
596 |
</div>
|
597 |
</div>
|
@@ -626,8 +643,12 @@ class WP_Admin_UI_Customize
|
|
626 |
</div>
|
627 |
<div class="widget-title">
|
628 |
<h4>
|
629 |
-
<?php
|
630 |
-
|
|
|
|
|
|
|
|
|
631 |
</h4>
|
632 |
</div>
|
633 |
</div>
|
@@ -726,8 +747,7 @@ class WP_Admin_UI_Customize
|
|
726 |
$str = str_replace( '[site_name]' , esc_attr( $current_site->site_name ) , $str );
|
727 |
}
|
728 |
if( strstr( $str , '[site_url]') ) {
|
729 |
-
$
|
730 |
-
$str = str_replace( '[site_url]' , $protocol . esc_attr( $current_site->domain ) , $str );
|
731 |
}
|
732 |
}
|
733 |
|
@@ -1072,9 +1092,9 @@ class WP_Admin_UI_Customize
|
|
1072 |
add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
|
1073 |
add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
|
1074 |
add_action( 'admin_head' , array( $this , 'removemetabox' ) , 11 );
|
1075 |
-
add_action( 'admin_init' , array( $this , 'remove_postformats' ) );
|
1076 |
add_filter( 'admin_head', array( $this , 'sidemenu' ) );
|
1077 |
add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
|
|
|
1078 |
add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
|
1079 |
add_filter( 'admin_title', array( $this, 'admin_title' ) );
|
1080 |
}
|
@@ -1455,27 +1475,6 @@ class WP_Admin_UI_Customize
|
|
1455 |
|
1456 |
}
|
1457 |
|
1458 |
-
// FilterStart
|
1459 |
-
function remove_postformats() {
|
1460 |
-
global $wp_version;
|
1461 |
-
if ( version_compare( $wp_version , '3.6' , '>=' ) ) {
|
1462 |
-
$GetData = $this->get_flit_data( 'removemetabox' );
|
1463 |
-
|
1464 |
-
if( !empty( $GetData["UPFN"] ) ) {
|
1465 |
-
unset( $GetData["UPFN"] );
|
1466 |
-
|
1467 |
-
if( !empty( $GetData ) && is_array( $GetData ) ) {
|
1468 |
-
|
1469 |
-
if( !empty( $GetData["post"]["postformat"] ) ) {
|
1470 |
-
remove_post_type_support( "post" , "post-formats" );
|
1471 |
-
}
|
1472 |
-
|
1473 |
-
}
|
1474 |
-
|
1475 |
-
}
|
1476 |
-
}
|
1477 |
-
}
|
1478 |
-
|
1479 |
// FilterStart
|
1480 |
function sidemenu() {
|
1481 |
global $menu;
|
@@ -1641,6 +1640,28 @@ class WP_Admin_UI_Customize
|
|
1641 |
return $permalink_html;
|
1642 |
}
|
1643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1644 |
// FilterStart
|
1645 |
function admin_title( $title ) {
|
1646 |
$GetData = $this->get_flit_data( 'admin_general' );
|
@@ -1667,7 +1688,7 @@ class WP_Admin_UI_Customize
|
|
1667 |
if( !empty( $GetData["add_new_menu"] ) ) {
|
1668 |
global $wp_version;
|
1669 |
if ( version_compare( $wp_version , '3.6' , '>=' ) ) {
|
1670 |
-
echo '<style>.
|
1671 |
} else {
|
1672 |
echo '<style>.nav-tabs .menu-add-new { display: none; }</style>';
|
1673 |
}
|
@@ -1681,8 +1702,7 @@ class WP_Admin_UI_Customize
|
|
1681 |
|
1682 |
// FilterStart
|
1683 |
function layout_footer( $text ) {
|
1684 |
-
$
|
1685 |
-
$text = '<img src="' . $schema . 'www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=18" width="18" /> Plugin developer : <a href="' . $this->AuthorUrl . '?utm_source=use_plugin&utm_medium=footer&utm_content=' . $this->ltd . '&utm_campaign=' . str_replace( '.' , '_' , $this->Ver ) . '" target="_blank">gqevu6bsiz</a>';
|
1686 |
return $text;
|
1687 |
}
|
1688 |
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_8_1
|
6 |
+
Version: 1.3.8.1
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_8_1
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
34 |
var $Ver,
|
35 |
$Name,
|
36 |
$Dir,
|
37 |
+
$Url,
|
38 |
$Site,
|
39 |
$AuthorUrl,
|
40 |
$ltd,
|
41 |
$Record,
|
42 |
$PageSlug,
|
43 |
+
$PluginSlug,
|
44 |
$Nonces,
|
45 |
+
$Schema,
|
46 |
$UPFN,
|
47 |
$DonateKey,
|
48 |
$Menu,
|
52 |
|
53 |
|
54 |
function __construct() {
|
55 |
+
$this->Ver = '1.3.8.1';
|
56 |
$this->Name = 'WP Admin UI Customize';
|
|
|
57 |
$this->Dir = plugin_dir_path( __FILE__ );
|
58 |
+
$this->Url = plugin_dir_url( __FILE__ );
|
59 |
$this->Site = 'http://wpadminuicustomize.com/';
|
60 |
$this->AuthorUrl = 'http://gqevu6bsiz.chicappa.jp/';
|
61 |
$this->ltd = 'wauc';
|
75 |
"donate" => $this->ltd . '_donated',
|
76 |
);
|
77 |
$this->PageSlug = 'wp_admin_ui_customize';
|
78 |
+
$this->PluginSlug = dirname( plugin_basename( __FILE__ ) );
|
79 |
$this->Nonces = array( "field" => $this->ltd . '_field' , "value" => $this->ltd . '_value' );
|
80 |
+
$this->Schema = is_ssl() ? 'https://' : 'http://';
|
81 |
$this->UPFN = 'Y';
|
82 |
$this->DonateKey = 'd77aec9bc89d445fd54b4c988d090f03';
|
83 |
|
92 |
// PluginSetup
|
93 |
function PluginSetup() {
|
94 |
// load text domain
|
95 |
+
load_plugin_textdomain( $this->ltd , false , $this->PluginSlug . '/languages' );
|
96 |
+
load_plugin_textdomain( $this->ltd_p , false , $this->PluginSlug . '/languages' );
|
97 |
|
98 |
// plugin links
|
99 |
add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
|
112 |
function plugin_action_links( $links , $file ) {
|
113 |
if( plugin_basename(__FILE__) == $file ) {
|
114 |
$link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug ) . '">' . __( 'Settings' ) . '</a>';
|
115 |
+
$support_link = '<a href="http://wordpress.org/support/plugin/' . $this->PluginSlug . '" target="_blank">' . __( 'Support Forums' ) . '</a>';
|
116 |
$delete_userrole_link = '<a href="' . self_admin_url( 'admin.php?page=' . $this->PageSlug . '_reset_userrole' ) . '">' . __( 'Reset User Roles' , $this->ltd ) . '</a>';
|
117 |
array_unshift( $links, $link , $delete_userrole_link , $support_link );
|
118 |
}
|
131 |
|
132 |
// PluginSetup
|
133 |
function admin_menu() {
|
134 |
+
|
135 |
+
if( !empty( $_GET["page"] ) ) {
|
136 |
+
$page = strip_tags( $_GET["page"] );
|
137 |
+
if( $page == $this->PageSlug . '_admin_bar' ) {
|
138 |
+
@header("X-XSS-Protection: 0");
|
139 |
+
}
|
140 |
+
}
|
141 |
+
|
142 |
add_menu_page( $this->Name , $this->Name , 'administrator', $this->PageSlug , array( $this , 'setting_default') );
|
143 |
add_submenu_page( $this->PageSlug , __( 'Site Settings' , $this->ltd ) , __( 'Site Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_setting_site' , array( $this , 'setting_site' ) );
|
144 |
add_submenu_page( $this->PageSlug , __( 'General Screen Settings' , $this->ltd ) , __( 'General Screen Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_general_setting' , array( $this , 'setting_admin_general' ) );
|
590 |
|
591 |
// SetList
|
592 |
function admin_bar_menu_widget( $menu_widget ) {
|
593 |
+
$new_widget = '';
|
594 |
+
if( !empty( $menu_widget["new"] ) ) {
|
595 |
+
$new_widget = 'new';
|
596 |
+
}
|
597 |
?>
|
598 |
<div class="widget <?php echo $new_widget; ?> <?php echo $menu_widget["id"]; ?>">
|
599 |
|
603 |
</div>
|
604 |
<div class="widget-title">
|
605 |
<h4>
|
606 |
+
<?php if( preg_match( '/\<form/' , $menu_widget["title"] ) ) : ?>
|
607 |
+
<?php echo $menu_widget["id"]; ?>
|
608 |
+
<?php else: ?>
|
609 |
+
<?php echo $menu_widget["title"]; ?>
|
610 |
+
: <span class="in-widget-title"><?php echo $menu_widget["id"]; ?></span>
|
611 |
+
<?php endif; ?>
|
612 |
</h4>
|
613 |
</div>
|
614 |
</div>
|
643 |
</div>
|
644 |
<div class="widget-title">
|
645 |
<h4>
|
646 |
+
<?php if( preg_match( '/\<form/' , $sm["title"] ) ) : ?>
|
647 |
+
<?php echo $sm["id"]; ?>
|
648 |
+
<?php else: ?>
|
649 |
+
<?php echo $sm["title"]; ?>
|
650 |
+
: <span class="in-widget-title"><?php echo $sm["id"]; ?></span>
|
651 |
+
<?php endif; ?>
|
652 |
</h4>
|
653 |
</div>
|
654 |
</div>
|
747 |
$str = str_replace( '[site_name]' , esc_attr( $current_site->site_name ) , $str );
|
748 |
}
|
749 |
if( strstr( $str , '[site_url]') ) {
|
750 |
+
$str = str_replace( '[site_url]' , $this->Schema . esc_attr( $current_site->domain ) , $str );
|
|
|
751 |
}
|
752 |
}
|
753 |
|
1092 |
add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
|
1093 |
add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
|
1094 |
add_action( 'admin_head' , array( $this , 'removemetabox' ) , 11 );
|
|
|
1095 |
add_filter( 'admin_head', array( $this , 'sidemenu' ) );
|
1096 |
add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
|
1097 |
+
add_filter( 'edit_form_after_title' , array( $this , 'allow_comments' ) );
|
1098 |
add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
|
1099 |
add_filter( 'admin_title', array( $this, 'admin_title' ) );
|
1100 |
}
|
1475 |
|
1476 |
}
|
1477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1478 |
// FilterStart
|
1479 |
function sidemenu() {
|
1480 |
global $menu;
|
1640 |
return $permalink_html;
|
1641 |
}
|
1642 |
|
1643 |
+
// FilterStart
|
1644 |
+
function allow_comments() {
|
1645 |
+
global $current_screen;
|
1646 |
+
|
1647 |
+
$PostAddEdit = $this->get_flit_data( 'post_add_edit' );
|
1648 |
+
$RemoveMetaBox = $this->get_flit_data( 'removemetabox' );
|
1649 |
+
|
1650 |
+
if( !empty( $PostAddEdit["UPFN"] ) && !empty( $RemoveMetaBox["UPFN"] ) ) {
|
1651 |
+
if( $current_screen->action == 'add' ) {
|
1652 |
+
if( !empty( $RemoveMetaBox[$current_screen->id]["commentstatusdiv"] ) && !empty( $PostAddEdit["allow_comments"] ) ) {
|
1653 |
+
$comment_status = get_option( 'default_comment_status' );
|
1654 |
+
$comment_status = apply_filters( 'wauc_pre_get_comment_status' , $comment_status );
|
1655 |
+
if( $comment_status == 'open' ) {
|
1656 |
+
echo '<input name="comment_status" type="hidden" id="comment_status" value="open" />';
|
1657 |
+
}
|
1658 |
+
}
|
1659 |
+
}
|
1660 |
+
|
1661 |
+
}
|
1662 |
+
|
1663 |
+
}
|
1664 |
+
|
1665 |
// FilterStart
|
1666 |
function admin_title( $title ) {
|
1667 |
$GetData = $this->get_flit_data( 'admin_general' );
|
1688 |
if( !empty( $GetData["add_new_menu"] ) ) {
|
1689 |
global $wp_version;
|
1690 |
if ( version_compare( $wp_version , '3.6' , '>=' ) ) {
|
1691 |
+
echo '<style>.wrap > .manage-menus, .locations-row-links .locations-add-menu-link { display: none; }</style>';
|
1692 |
} else {
|
1693 |
echo '<style>.nav-tabs .menu-add-new { display: none; }</style>';
|
1694 |
}
|
1702 |
|
1703 |
// FilterStart
|
1704 |
function layout_footer( $text ) {
|
1705 |
+
$text = '<img src="' . $this->Schema . 'www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=18" width="18" /> Plugin developer : <a href="' . $this->AuthorUrl . '?utm_source=use_plugin&utm_medium=footer&utm_content=' . $this->ltd . '&utm_campaign=' . str_replace( '.' , '_' , $this->Ver ) . '" target="_blank">gqevu6bsiz</a>';
|
|
|
1706 |
return $text;
|
1707 |
}
|
1708 |
|