WP Admin UI Customize - Version 1.2

Version Description

was be able to hide the menu add, and the delete menu, and the change permalink.

Download this release

Release Info

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

Code changes from version 1.1.4 to 1.2

images/appearance_menus_add_new_menu.png ADDED
Binary file
images/appearance_menus_delete_menu.png ADDED
Binary file
images/post_add_edit_screen__edit_ppermalink.png ADDED
Binary file
inc/setting_admin_general.php CHANGED
@@ -19,7 +19,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
19
  <div class="wrap">
20
  <div class="icon32" id="icon-tools"></div>
21
  <?php echo $this->Msg; ?>
22
- <h2><?php _e( 'Admin screen setting' , $this->ltd ); ?></h2>
23
  <p>&nbsp;</p>
24
 
25
  <form id="waum_setting_admin_genelral" class="waum_form" method="post" action="">
19
  <div class="wrap">
20
  <div class="icon32" id="icon-tools"></div>
21
  <?php echo $this->Msg; ?>
22
+ <h2><?php _e( 'General screen setting' , $this->ltd ); ?></h2>
23
  <p>&nbsp;</p>
24
 
25
  <form id="waum_setting_admin_genelral" class="waum_form" method="post" action="">
inc/setting_appearance_menus.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_appearance_menus();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'appearance_menus' );
7
+ }
8
+
9
+ $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->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
+ ?>
17
+
18
+ <div class="wrap">
19
+ <div class="icon32" id="icon-tools"></div>
20
+ <?php echo $this->Msg; ?>
21
+ <h2><?php _e( 'Appearance\'s Menus screen setting' , $this->ltd ); ?></h2>
22
+ <p>&nbsp;</p>
23
+
24
+ <form id="waum_setting_removemtabox" class="waum_form" method="post" action="">
25
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
+ <?php wp_nonce_field(); ?>
27
+
28
+ <div class="metabox-holder columns-1">
29
+
30
+ <div class="postbox">
31
+ <div class="handlediv" title="Click to toggle"><br></div>
32
+ <h3 class="hndle"><span><?php _e( 'Add New Post' ); ?> &amp; <?php _e( 'Edit Post' ); ?></span></h3>
33
+ <div class="inside">
34
+ <table class="form-table">
35
+ <tbody>
36
+ <?php $field = 'add_new_menu'; ?>
37
+ <tr>
38
+ <th>
39
+ <label><?php _e( 'Add a new menu' , $this->ltd ); ?></label>
40
+ </th>
41
+ <td>
42
+ <?php $Checked = ''; ?>
43
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
44
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
45
+ <p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?>
46
+ <p><img src="<?php echo $this->Dir; ?>images/appearance_menus_add_new_menu.png" /></p>
47
+ </td>
48
+ </tr>
49
+ <?php $field = 'delete_menu'; ?>
50
+ <tr>
51
+ <th>
52
+ <label><?php _e( 'Delete Menu' ); ?></label>
53
+ </th>
54
+ <td>
55
+ <?php $Checked = ''; ?>
56
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
57
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
58
+ <p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?>
59
+ <p><img src="<?php echo $this->Dir; ?>images/appearance_menus_delete_menu.png" /></p>
60
+ </td>
61
+ </tr>
62
+ </tbody>
63
+ </table>
64
+ </div>
65
+ </div>
66
+
67
+ </div>
68
+
69
+ <p class="submit">
70
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
71
+ </p>
72
+
73
+ <p class="submit reset">
74
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
75
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
76
+ </p>
77
+
78
+ </form>
79
+
80
+ </div>
inc/setting_default.php CHANGED
@@ -20,7 +20,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
20
  <?php echo $this->Msg; ?>
21
  <h2><?php echo $this->Name; ?></h2>
22
  <p><?php _e( 'Customize the UI of the management screen for all users.' , $this->ltd ); ?>
23
- <p><?php _e ('Please select the user role you want to apply the settings.' , $this->ltd ); ?></p>
 
24
 
25
  <form id="waum_setting_site" class="waum_form" method="post" action="">
26
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
@@ -57,9 +58,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
57
  <p><a href="http://gqevu6bsiz.chicappa.jp/please-translation/" target="_blank">To translate</a></p>
58
  <?php endif; ?>
59
  <p><strong><?php _e( 'Please donation.' , $this->ltd ); ?></strong></p>
60
- <p><?php _e( 'When you are satisfied with my plugin,<br />I\'m want a gift card.<br />Thanks!' , $this->ltd ); ?></p>
61
- <p><img src="http://gqevu6bsiz.chicappa.jp/wp-content/uploads/2013/01/email.gif" /></p>
62
- <p><a href="<?php _e( 'http://www.amazon.com/gp/gc' , $this->ltd ); ?>" target="_blank">Amazon Gift Card</a></p>
63
  <p><strong><?php _e( 'Other' , $this->ltd ); ?></strong></p>
64
  <p>
65
  <span><a href="http://gqevu6bsiz.chicappa.jp/" target="_blank">blog</a></span> &nbsp;
20
  <?php echo $this->Msg; ?>
21
  <h2><?php echo $this->Name; ?></h2>
22
  <p><?php _e( 'Customize the UI of the management screen for all users.' , $this->ltd ); ?>
23
+ <p><?php _e ( 'Please select the user role you want to apply the settings.' , $this->ltd ); ?></p>
24
+ <p><strong><?php _e( 'With this plugin, you can be more customized.' , $this->ltd ); ?></strong> &gt;&gt; Wordpress Plugin <a href="http://wordpress.org/extend/plugins/post-lists-view-custom/" target="_blank">Post Lists View Custom</a></p>
25
 
26
  <form id="waum_setting_site" class="waum_form" method="post" action="">
27
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
58
  <p><a href="http://gqevu6bsiz.chicappa.jp/please-translation/" target="_blank">To translate</a></p>
59
  <?php endif; ?>
60
  <p><strong><?php _e( 'Please donation.' , $this->ltd ); ?></strong></p>
61
+ <p><?php _e( 'Please donate for better development.' , $this->ltd ); ?></p>
62
+ <p>&gt;&gt; <a href="http://gqevu6bsiz.chicappa.jp/please-donation/" target="_blank"><?php _e( 'Donation' , $this->ltd ); ?></a></p>
 
63
  <p><strong><?php _e( 'Other' , $this->ltd ); ?></strong></p>
64
  <p>
65
  <span><a href="http://gqevu6bsiz.chicappa.jp/" target="_blank">blog</a></span> &nbsp;
inc/setting_post_add_edit.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !empty( $_POST["update"] ) ) {
4
+ $this->update_post_add_edit();
5
+ } elseif( !empty( $_POST["reset"] ) ) {
6
+ $this->update_reset( 'post_add_edit' );
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->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
+ ?>
17
+
18
+ <div class="wrap">
19
+ <div class="icon32" id="icon-tools"></div>
20
+ <?php echo $this->Msg; ?>
21
+ <h2><?php _e( 'Add New Post and Edit Post screen setting' , $this->ltd ); ?></h2>
22
+ <p>&nbsp;</p>
23
+
24
+ <form id="waum_setting_removemtabox" class="waum_form" method="post" action="">
25
+ <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
+ <?php wp_nonce_field(); ?>
27
+
28
+ <div class="metabox-holder columns-1">
29
+
30
+ <div class="postbox">
31
+ <div class="handlediv" title="Click to toggle"><br></div>
32
+ <h3 class="hndle"><span><?php _e( 'Add New Post' ); ?> &amp; <?php _e( 'Edit Post' ); ?></span></h3>
33
+ <div class="inside">
34
+ <table class="form-table">
35
+ <tbody>
36
+ <?php $field = 'default_permalink'; ?>
37
+ <tr>
38
+ <th>
39
+ <label><?php _e( 'Change Permalinks' ); ?></label>
40
+ </th>
41
+ <td>
42
+ <?php $Checked = ''; ?>
43
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
44
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
45
+ <p class="description"><?php _e( 'Only appears when you have settings to the default permalink.' , $this->ltd ); ?></p>
46
+ <p><img src="<?php echo $this->Dir; ?>images/post_add_edit_screen__edit_ppermalink.png" /></p>
47
+ </td>
48
+ </tr>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+
56
+ <p class="submit">
57
+ <input type="submit" class="button-primary" name="update" value="<?php _e( 'Save' ); ?>" />
58
+ </p>
59
+
60
+ <p class="submit reset">
61
+ <span class="description"><?php _e( 'Would initialize?' , $this->ltd ); ?></span>
62
+ <input type="submit" class="button-secondary" name="reset" value="<?php _e('Reset'); ?>" />
63
+ </p>
64
+
65
+ </form>
66
+
67
+ </div>
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc.pot CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: 1.0.0\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-02-09 11:26+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
@@ -22,17 +22,17 @@ msgstr ""
22
  msgid "Please donation."
23
  msgstr ""
24
 
25
- msgid "Other"
26
  msgstr ""
27
 
28
- msgid ""
29
  msgstr ""
30
 
31
- msgid "http://www.amazon.com/gp/gc"
32
  msgstr ""
33
 
34
  msgid "Customize the UI of the management screen for all users."
35
- msgstr "
36
 
37
  msgid "Authority to apply the setting is not selected. <a href=\"%s\">From here</a>, please select the permissions you want to set."
38
  msgstr ""
@@ -40,6 +40,9 @@ msgstr ""
40
  msgid "Please select the user role you want to apply the settings."
41
  msgstr ""
42
 
 
 
 
43
  msgid "Would initialize?"
44
  msgstr ""
45
 
@@ -76,7 +79,7 @@ msgstr ""
76
  msgid "Profile Edit"
77
  msgstr ""
78
 
79
- msgid "Admin screen setting"
80
  msgstr ""
81
 
82
  msgid "Notice"
@@ -142,6 +145,21 @@ msgstr ""
142
  msgid "Remove meta box"
143
  msgstr ""
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  msgid "Login Screen"
146
  msgstr ""
147
 
2
  msgstr ""
3
  "Project-Id-Version: 1.0.0\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-03-19 17:05+0900\n"
6
  "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
22
  msgid "Please donation."
23
  msgstr ""
24
 
25
+ msgid "Donation"
26
  msgstr ""
27
 
28
+ msgid "Please donate for better development."
29
  msgstr ""
30
 
31
+ msgid "Other"
32
  msgstr ""
33
 
34
  msgid "Customize the UI of the management screen for all users."
35
+ msgstr ""
36
 
37
  msgid "Authority to apply the setting is not selected. <a href=\"%s\">From here</a>, please select the permissions you want to set."
38
  msgstr ""
40
  msgid "Please select the user role you want to apply the settings."
41
  msgstr ""
42
 
43
+ msgid "With this plugin, you can be more customized."
44
+ msgstr ""
45
+
46
  msgid "Would initialize?"
47
  msgstr ""
48
 
79
  msgid "Profile Edit"
80
  msgstr ""
81
 
82
+ msgid "General screen setting"
83
  msgstr ""
84
 
85
  msgid "Notice"
145
  msgid "Remove meta box"
146
  msgstr ""
147
 
148
+ msgid "Add New Post and Edit Post screen setting"
149
+ msgstr ""
150
+
151
+ msgid "Only appears when you have settings to the default permalink."
152
+ msgstr ""
153
+
154
+ msgid "Appearance's Menus screen setting"
155
+ msgstr ""
156
+
157
+ msgid "Add a new menu"
158
+ msgstr ""
159
+
160
+ msgid "This is useful when you want to use only the menus have been created."
161
+ msgstr ""
162
+
163
  msgid "Login Screen"
164
  msgstr ""
165
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/
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.1.4
8
  License: GPL2
9
 
10
  Customize the management screen UI.
@@ -49,6 +49,8 @@ These to Customization is possible.
49
 
50
  == Changelog ==
51
 
 
 
52
 
53
  = 1.1.3 =
54
  I fixed bug the remove metabox excerpt.
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.2
8
  License: GPL2
9
 
10
  Customize the management screen UI.
49
 
50
  == Changelog ==
51
 
52
+ = 1.2 =
53
+ was be able to hide the menu add, and the delete menu, and the change permalink.
54
 
55
  = 1.1.3 =
56
  I fixed bug the remove metabox excerpt.
wp-admin-ui-customize.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Admin UI Customize
4
  Description: Customize the management screen UI.
5
  Plugin URI: http://gqevu6bsiz.chicappa.jp
6
- Version: 1.1.4
7
  Author: gqevu6bsiz
8
  Author URI: http://gqevu6bsiz.chicappa.jp/author/admin/
9
  Text Domain: wauc
@@ -45,7 +45,7 @@ class WP_Admin_UI_Customize
45
 
46
 
47
  function __construct() {
48
- $this->Ver = '1.1.4';
49
  $this->Name = 'WP Admin UI Customize';
50
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
51
  $this->ltd = 'wauc';
@@ -57,6 +57,8 @@ class WP_Admin_UI_Customize
57
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
58
  "sidemenu" => $this->ltd . '_sidemenu_setting',
59
  "removemetabox" => $this->ltd . '_removemetabox_setting',
 
 
60
  "loginscreen" => $this->ltd . '_loginscreen_setting',
61
  );
62
  $this->PageSlug = 'wp_admin_ui_customize';
@@ -95,11 +97,13 @@ class WP_Admin_UI_Customize
95
  function admin_menu() {
96
  add_menu_page( $this->Name , $this->Name , 'administrator', $this->PageSlug , array( $this , 'setting_default') );
97
  add_submenu_page( $this->PageSlug , __( 'Site Settings' , $this->ltd ) , __( 'Site Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_setting_site' , array( $this , 'setting_site' ) );
98
- add_submenu_page( $this->PageSlug , __( 'Admin screen setting' , $this->ltd ) , __( 'Admin screen setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_general_setting' , array( $this , 'setting_admin_general' ) );
99
  add_submenu_page( $this->PageSlug , __( 'Dashboard' ) , __( 'Dashboard' ) , 'administrator' , $this->PageSlug . '_dashboard' , array( $this , 'setting_dashboard' ) );
100
  add_submenu_page( $this->PageSlug , __( 'Admin bar Menu' , $this->ltd ) , __( 'Admin bar Menu' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_bar' , array( $this , 'setting_admin_bar_menu' ) );
101
  add_submenu_page( $this->PageSlug , __( 'Side Menu' , $this->ltd ) , __( 'Side Menu' , $this->ltd ) , 'administrator' , $this->PageSlug . '_sidemenu' , array( $this , 'setting_sidemenu' ) );
102
  add_submenu_page( $this->PageSlug , __( 'Remove meta box' , $this->ltd ) , __( 'Remove meta box' , $this->ltd ) , 'administrator' , $this->PageSlug . '_removemtabox' , array( $this , 'setting_removemtabox' ) );
 
 
103
  add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , 'administrator' , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
104
  }
105
 
@@ -147,6 +151,18 @@ class WP_Admin_UI_Customize
147
  include_once 'inc/setting_removemtabox.php';
148
  }
149
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  // SettingPage
151
  function setting_loginscreen() {
152
  $this->settingCheck();
@@ -589,6 +605,42 @@ class WP_Admin_UI_Customize
589
  }
590
  }
591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  // DataUpdate
593
  function update_loginscreen() {
594
  $Update = $this->update_validate();
@@ -656,6 +708,8 @@ class WP_Admin_UI_Customize
656
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
657
  add_action( 'admin_menu' , array( $this , 'removemetabox' ) );
658
  add_filter( 'admin_menu', array( $this , 'sidemenu' ) );
 
 
659
  }
660
  }
661
 
@@ -1033,6 +1087,45 @@ class WP_Admin_UI_Customize
1033
  }
1034
  }
1035
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
  }
1037
  $wauc = new WP_Admin_UI_Customize();
1038
 
3
  Plugin Name: WP Admin UI Customize
4
  Description: Customize the management screen UI.
5
  Plugin URI: http://gqevu6bsiz.chicappa.jp
6
+ Version: 1.2
7
  Author: gqevu6bsiz
8
  Author URI: http://gqevu6bsiz.chicappa.jp/author/admin/
9
  Text Domain: wauc
45
 
46
 
47
  function __construct() {
48
+ $this->Ver = '1.2';
49
  $this->Name = 'WP Admin UI Customize';
50
  $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
51
  $this->ltd = 'wauc';
57
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
58
  "sidemenu" => $this->ltd . '_sidemenu_setting',
59
  "removemetabox" => $this->ltd . '_removemetabox_setting',
60
+ "post_add_edit" => $this->ltd . '_post_add_edit_setting',
61
+ "appearance_menus" => $this->ltd . '_appearance_menus_setting',
62
  "loginscreen" => $this->ltd . '_loginscreen_setting',
63
  );
64
  $this->PageSlug = 'wp_admin_ui_customize';
97
  function admin_menu() {
98
  add_menu_page( $this->Name , $this->Name , 'administrator', $this->PageSlug , array( $this , 'setting_default') );
99
  add_submenu_page( $this->PageSlug , __( 'Site Settings' , $this->ltd ) , __( 'Site Settings' , $this->ltd ) , 'administrator' , $this->PageSlug . '_setting_site' , array( $this , 'setting_site' ) );
100
+ add_submenu_page( $this->PageSlug , __( 'General screen setting' , $this->ltd ) , __( 'General screen setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_general_setting' , array( $this , 'setting_admin_general' ) );
101
  add_submenu_page( $this->PageSlug , __( 'Dashboard' ) , __( 'Dashboard' ) , 'administrator' , $this->PageSlug . '_dashboard' , array( $this , 'setting_dashboard' ) );
102
  add_submenu_page( $this->PageSlug , __( 'Admin bar Menu' , $this->ltd ) , __( 'Admin bar Menu' , $this->ltd ) , 'administrator' , $this->PageSlug . '_admin_bar' , array( $this , 'setting_admin_bar_menu' ) );
103
  add_submenu_page( $this->PageSlug , __( 'Side Menu' , $this->ltd ) , __( 'Side Menu' , $this->ltd ) , 'administrator' , $this->PageSlug . '_sidemenu' , array( $this , 'setting_sidemenu' ) );
104
  add_submenu_page( $this->PageSlug , __( 'Remove meta box' , $this->ltd ) , __( 'Remove meta box' , $this->ltd ) , 'administrator' , $this->PageSlug . '_removemtabox' , array( $this , 'setting_removemtabox' ) );
105
+ add_submenu_page( $this->PageSlug , __( 'Add New Post and Edit Post screen setting' , $this->ltd ) , __( 'Add New Post and Edit Post screen setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_post_add_edit_screen' , array( $this , 'setting_post_add_edit' ) );
106
+ add_submenu_page( $this->PageSlug , __( 'Appearance\'s Menus screen setting' , $this->ltd ) , __( 'Appearance\'s Menus screen setting' , $this->ltd ) , 'administrator' , $this->PageSlug . '_appearance_menus' , array( $this , 'setting_appearance_menus' ) );
107
  add_submenu_page( $this->PageSlug , __( 'Login Screen' , $this->ltd ) , __( 'Login Screen' , $this->ltd ) , 'administrator' , $this->PageSlug . '_loginscreen' , array( $this , 'setting_loginscreen' ) );
108
  }
109
 
151
  include_once 'inc/setting_removemtabox.php';
152
  }
153
 
154
+ // SettingPage
155
+ function setting_post_add_edit() {
156
+ $this->settingCheck();
157
+ include_once 'inc/setting_post_add_edit.php';
158
+ }
159
+
160
+ // SettingPage
161
+ function setting_appearance_menus() {
162
+ $this->settingCheck();
163
+ include_once 'inc/setting_appearance_menus.php';
164
+ }
165
+
166
  // SettingPage
167
  function setting_loginscreen() {
168
  $this->settingCheck();
605
  }
606
  }
607
 
608
+ // DataUpdate
609
+ function update_post_add_edit() {
610
+ $Update = $this->update_validate();
611
+ if( !empty( $Update ) ) {
612
+
613
+ if( !empty( $_POST["data"] ) ) {
614
+ foreach($_POST["data"] as $edited => $val) {
615
+ $tmpK = strip_tags( $edited );
616
+ $tmpV = strip_tags ( $val );
617
+ $Update[$tmpK] = $tmpV;
618
+ }
619
+ }
620
+
621
+ update_option( $this->Record["post_add_edit"] , $Update );
622
+ $this->Msg .= '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
623
+ }
624
+ }
625
+
626
+ // DataUpdate
627
+ function update_appearance_menus() {
628
+ $Update = $this->update_validate();
629
+ if( !empty( $Update ) ) {
630
+
631
+ if( !empty( $_POST["data"] ) ) {
632
+ foreach($_POST["data"] as $edited => $val) {
633
+ $tmpK = strip_tags( $edited );
634
+ $tmpV = strip_tags ( $val );
635
+ $Update[$tmpK] = $tmpV;
636
+ }
637
+ }
638
+
639
+ update_option( $this->Record["appearance_menus"] , $Update );
640
+ $this->Msg .= '<div class="updated"><p><strong>' . __('Settings saved.') . '</strong></p></div>';
641
+ }
642
+ }
643
+
644
  // DataUpdate
645
  function update_loginscreen() {
646
  $Update = $this->update_validate();
708
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) );
709
  add_action( 'admin_menu' , array( $this , 'removemetabox' ) );
710
  add_filter( 'admin_menu', array( $this , 'sidemenu' ) );
711
+ add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
712
+ add_action( 'admin_print_styles-nav-menus.php', array( $this , 'nav_menus' ) );
713
  }
714
  }
715
 
1087
  }
1088
  }
1089
 
1090
+ // FilterStart
1091
+ function add_edit_post_change_permalink( $permalink_html ) {
1092
+ $GetData = get_option( $this->Record["post_add_edit"] );
1093
+
1094
+ if( !empty( $GetData["UPFN"] ) ) {
1095
+ unset( $GetData["UPFN"] );
1096
+
1097
+ if( !empty( $GetData ) && is_array( $GetData ) ) {
1098
+ if( !empty( $GetData["default_permalink"] ) ) {
1099
+ if( strpos( $permalink_html , 'change-permalinks' ) ) {
1100
+
1101
+ $permalink_html = preg_replace( "/<span id=\"change-permalinks\">(.*)<\/span>/" , "" , $permalink_html );
1102
+
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+
1108
+ return $permalink_html;
1109
+ }
1110
+
1111
+ // FilterStart
1112
+ function nav_menus() {
1113
+ $GetData = get_option( $this->Record["appearance_menus"] );
1114
+ if( !empty( $GetData["UPFN"] ) ) {
1115
+ unset( $GetData["UPFN"] );
1116
+
1117
+ if( !empty( $GetData["add_new_menu"] ) ) {
1118
+ echo '<style>.nav-tabs .menu-add-new { display: none; }</style>';
1119
+ }
1120
+ if( !empty( $GetData["delete_menu"] ) ) {
1121
+ echo '<style>.major-publishing-actions .delete-action { display: none; }</style>';
1122
+ }
1123
+
1124
+ }
1125
+
1126
+ wp_enqueue_style( $this->PageSlug , $this->Dir . 'css/nav-menus.css' , array() , $this->Ver );
1127
+ }
1128
+
1129
  }
1130
  $wauc = new WP_Admin_UI_Customize();
1131