WP Admin UI Customize - Version 1.3.3-beta

Version Description

  • Apply to admin bar on the front end also.
Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.3-beta

inc/setting_site.php CHANGED
@@ -115,9 +115,20 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
115
  <?php echo $field; ?>
116
  </th>
117
  <td>
118
- <?php $Checked = ''; ?>
119
- <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
120
- <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
 
 
 
 
 
 
 
 
 
 
 
121
  </td>
122
  </tr>
123
  </tbody>
115
  <?php echo $field; ?>
116
  </th>
117
  <td>
118
+ <?php $arr = array( "hide" => __( 'Hide' ) , "front" => __( 'Apply to the settings to WP Admin UI Customize on the front end also' , $this->ltd ) ); ?>
119
+ <ul>
120
+ <?php foreach( $arr as $key => $label ) : ?>
121
+ <?php $Checked = ''; ?>
122
+ <?php if( !empty( $Data[$field] ) ) : ?>
123
+ <?php if( $Data[$field] == $key ) : $Checked = 'checked="checked"'; endif; ?>
124
+ <?php if( $key == "hide" && $Data[$field] == "1" ) : $Checked = 'checked="checked"'; endif; ?>
125
+ <?php endif; ?>
126
+
127
+ <li>
128
+ <label><input type="radio" name="data[<?php echo $field; ?>]" value="<?php echo $key; ?>" <?php echo $Checked; ?> /> <?php echo $label; ?></label>
129
+ </li>
130
+ <?php endforeach; ?>
131
+ </ul>
132
  </td>
133
  </tr>
134
  </tbody>
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc-ja.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-05-21 01:42+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -46,6 +46,9 @@ msgstr "サイト全体のフィードリンク"
46
  msgid "Extra feed"
47
  msgstr "その他のフィードリンク"
48
 
 
 
 
49
  msgid "Account Title"
50
  msgstr "アカウント表記"
51
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-06-04 10:57+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
46
  msgid "Extra feed"
47
  msgstr "その他のフィードリンク"
48
 
49
+ msgid "Apply to the settings to WP Admin UI Customize on the front end also"
50
+ msgstr "WP Admin UI Customize の管理バーの設定をフロントにも適用"
51
+
52
  msgid "Account Title"
53
  msgstr "アカウント表記"
54
 
languages/wauc.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-05-21 01:00+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -46,6 +46,9 @@ msgstr ""
46
  msgid "Extra feed"
47
  msgstr ""
48
 
 
 
 
49
  msgid "Account Title"
50
  msgstr ""
51
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-06-04 10:57+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
46
  msgid "Extra feed"
47
  msgstr ""
48
 
49
+ msgid "Apply to the settings to WP Admin UI Customize on the front end also"
50
+ msgstr ""
51
+
52
  msgid "Account Title"
53
  msgstr ""
54
 
readme.txt CHANGED
@@ -1,6 +1,6 @@
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_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.6
@@ -49,6 +49,9 @@ These to Customization is possible.
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.3.3 =
53
  * Fixed bug : Error when deleting plugins and themes.
54
 
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
+ Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_3_3_beta
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.6
49
 
50
  == Changelog ==
51
 
52
+ = 1.3.3-beta =
53
+ * Apply to admin bar on the front end also.
54
+
55
  = 1.3.3 =
56
  * Fixed bug : Error when deleting plugins and themes.
57
 
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=1_3_3
6
- Version: 1.3.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_3
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -48,7 +48,7 @@ class WP_Admin_UI_Customize
48
 
49
 
50
  function __construct() {
51
- $this->Ver = '1.3.3';
52
  $this->Name = 'WP Admin UI Customize';
53
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
54
  $this->Site = 'http://wpadminuicustomize.com/';
@@ -859,6 +859,9 @@ class WP_Admin_UI_Customize
859
  add_filter( 'login_headertitle' , array( $this , 'login_headertitle' ) );
860
  add_action( 'login_head' , array( $this , 'login_head' ) );
861
  add_action( 'login_footer' , array( $this , 'login_footer' ) );
 
 
 
862
  }
863
  // admin UI
864
  if ( is_admin() ) {
@@ -910,6 +913,33 @@ class WP_Admin_UI_Customize
910
  }
911
  }
912
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
913
  // FilterStart
914
  function remove_action_front() {
915
  $GetData = $this->get_data( 'site' );
@@ -922,12 +952,15 @@ class WP_Admin_UI_Customize
922
  } elseif( $key == 'feed_links_extra' ) {
923
  remove_action( 'wp_head', $key , 3 );
924
  } elseif( $key == 'admin_bar' ) {
925
- add_filter( 'show_admin_bar' , '__return_false' );
 
 
926
  } else {
927
  remove_action( 'wp_head', $key );
928
  }
929
  }
930
  }
 
931
 
932
  }
933
 
@@ -1009,7 +1042,7 @@ class WP_Admin_UI_Customize
1009
  // FilterStart
1010
  function admin_bar_menu() {
1011
  global $wp_admin_bar;
1012
-
1013
  $GetData = $this->get_data( 'admin_bar_menu' );
1014
 
1015
  if( !empty( $GetData["UPFN"] ) ) {
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_3_beta
6
+ Version: 1.3.3-beta
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_3_3_beta
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
48
 
49
 
50
  function __construct() {
51
+ $this->Ver = '1.3.3-beta';
52
  $this->Name = 'WP Admin UI Customize';
53
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
54
  $this->Site = 'http://wpadminuicustomize.com/';
859
  add_filter( 'login_headertitle' , array( $this , 'login_headertitle' ) );
860
  add_action( 'login_head' , array( $this , 'login_head' ) );
861
  add_action( 'login_footer' , array( $this , 'login_footer' ) );
862
+
863
+ // front init
864
+ add_action( 'init' , array( $this , 'front_init' ) );
865
  }
866
  // admin UI
867
  if ( is_admin() ) {
913
  }
914
  }
915
 
916
+ // FilterStart
917
+ function front_init() {
918
+
919
+ $SettingRole = $this->get_data( 'user_role' );
920
+ if( !empty( $SettingRole ) ) {
921
+ unset($SettingRole["UPFN"]);
922
+
923
+ $UserRole = '';
924
+ $User = wp_get_current_user();
925
+ if( !empty( $User->roles[0] ) ) {
926
+ $UserRole = $User->roles[0];
927
+ }
928
+
929
+ if( !is_network_admin() && !empty( $UserRole ) ) {
930
+ if( array_key_exists( $UserRole , $SettingRole ) ) {
931
+
932
+ $GetData = $this->get_data( 'site' );
933
+
934
+ if( !empty( $GetData["admin_bar"] ) && $GetData["admin_bar"] == "front" ) {
935
+ add_action( 'init' , array( $this , 'notice_dismiss' ) , 2 );
936
+ add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_menu') , 25 );
937
+ }
938
+ }
939
+ }
940
+ }
941
+ }
942
+
943
  // FilterStart
944
  function remove_action_front() {
945
  $GetData = $this->get_data( 'site' );
952
  } elseif( $key == 'feed_links_extra' ) {
953
  remove_action( 'wp_head', $key , 3 );
954
  } elseif( $key == 'admin_bar' ) {
955
+ if( $val != "front" ) {
956
+ add_filter( 'show_admin_bar' , '__return_false' );
957
+ }
958
  } else {
959
  remove_action( 'wp_head', $key );
960
  }
961
  }
962
  }
963
+
964
 
965
  }
966
 
1042
  // FilterStart
1043
  function admin_bar_menu() {
1044
  global $wp_admin_bar;
1045
+
1046
  $GetData = $this->get_data( 'admin_bar_menu' );
1047
 
1048
  if( !empty( $GetData["UPFN"] ) ) {